@nex-ui/react
Version:
🎉 A beautiful, modern, and reliable React component library.
180 lines (177 loc) • 4.43 kB
TypeScript
import * as _nex_ui_system from '@nex-ui/system';
import { RecipeVariants } from '@nex-ui/system';
declare const alertRecipe: _nex_ui_system.SlotRecipeRuntimeFn<{
root: {
display: "flex";
alignItems: "center";
px: "4";
py: "3";
gap: "3";
overflow: "hidden";
};
icon: {
display: "flex";
alignItems: "center";
justifyContent: "center";
fontSize: number;
};
content: {
flex: number;
minHeight: "8";
display: "flex";
justifyContent: "center";
flexDirection: "column";
gap: "1";
color: "inherit";
};
title: {
fontWeight: "medium";
fs: "md";
color: "inherit";
};
description: {
fs: "md";
opacity: number;
color: "inherit";
};
closeButton: {};
}, {
variant: {
solid: {
root: {
bg: "colorPalette.primary";
color: "colorPalette.contrastText";
};
closeButton: {
color: "colorPalette.contrastText";
};
};
outlined: {
root: {
bg: "transparent";
border: "sm";
borderColor: "colorPalette.primary";
color: "colorPalette.tertiary";
};
};
faded: {
root: {
bg: "colorPalette.subtle";
color: "colorPalette.tertiary";
};
};
subtle: {
root: {
bg: "colorPalette.subtle";
color: "colorPalette.tertiary";
border: "sm";
borderColor: "colorPalette.highlight";
};
};
};
color: {
readonly blue: {
root: {
readonly colorPalette: "blue";
};
closeButton: {
readonly colorPalette: "blue";
};
};
readonly gray: {
root: {
readonly colorPalette: "gray";
};
closeButton: {
readonly colorPalette: "gray";
};
};
readonly pink: {
root: {
readonly colorPalette: "pink";
};
closeButton: {
readonly colorPalette: "pink";
};
};
readonly purple: {
root: {
readonly colorPalette: "purple";
};
closeButton: {
readonly colorPalette: "purple";
};
};
readonly cyan: {
root: {
readonly colorPalette: "cyan";
};
closeButton: {
readonly colorPalette: "cyan";
};
};
readonly orange: {
root: {
readonly colorPalette: "orange";
};
closeButton: {
readonly colorPalette: "orange";
};
};
readonly yellow: {
root: {
readonly colorPalette: "yellow";
};
closeButton: {
readonly colorPalette: "yellow";
};
};
readonly green: {
root: {
readonly colorPalette: "green";
};
closeButton: {
readonly colorPalette: "green";
};
};
readonly red: {
root: {
readonly colorPalette: "red";
};
closeButton: {
readonly colorPalette: "red";
};
};
};
radius: {
readonly sm: {
root: {
readonly borderRadius: "md";
};
};
readonly md: {
root: {
readonly borderRadius: "lg";
};
};
readonly lg: {
root: {
readonly borderRadius: "xl";
};
};
readonly full: {
root: {
readonly borderRadius: "full";
};
};
readonly none: {
root: {
readonly borderRadius: "none";
};
};
};
}>;
type AlertRecipe = typeof alertRecipe;
type AlertVariants = RecipeVariants<AlertRecipe>;
export { alertRecipe };
export type { AlertRecipe, AlertVariants };