UNPKG

@nex-ui/react

Version:

🎉 A beautiful, modern, and reliable React component library.

244 lines (241 loc) • 5.78 kB
import * as _nex_ui_system from '@nex-ui/system'; import { RecipeVariants } from '@nex-ui/system'; declare const radioRecipe: _nex_ui_system.SlotRecipeRuntimeFn<{ root: { position: "relative"; display: "inline-flex"; alignItems: "center"; cursor: "pointer"; boxSizing: "border-box"; maxWidth: "fit-content"; WebkitTapHighlightColor: "transparent"; }; input: { position: "absolute"; inset: number; opacity: number; zIndex: number; cursor: "inherit"; _hover: { '& + *': { borderColor: string; }; }; _checked: { '& + *': { borderColor: string; }; }; _focusVisibleRing: { '& + *': { outline: string; outlineOffset: string; }; }; }; dot: { borderRadius: "full"; border: "md"; borderColor: "gray.highlight"; display: "inline-flex"; alignItems: "center"; justifyContent: "center"; boxSizing: "border-box"; transition: "colors"; '::before': { content: "\"\""; display: "block"; transform: "scale(0)"; borderRadius: "full"; backgroundColor: "colorPalette.primary"; transition: "all"; }; }; label: { ml: "2"; }; }, { color: { readonly blue: { input: { readonly colorPalette: "blue"; }; dot: { readonly colorPalette: "blue"; }; }; readonly gray: { input: { readonly colorPalette: "gray"; }; dot: { readonly colorPalette: "gray"; }; }; readonly pink: { input: { readonly colorPalette: "pink"; }; dot: { readonly colorPalette: "pink"; }; }; readonly purple: { input: { readonly colorPalette: "purple"; }; dot: { readonly colorPalette: "purple"; }; }; readonly cyan: { input: { readonly colorPalette: "cyan"; }; dot: { readonly colorPalette: "cyan"; }; }; readonly orange: { input: { readonly colorPalette: "orange"; }; dot: { readonly colorPalette: "orange"; }; }; readonly yellow: { input: { readonly colorPalette: "yellow"; }; dot: { readonly colorPalette: "yellow"; }; }; readonly green: { input: { readonly colorPalette: "green"; }; dot: { readonly colorPalette: "green"; }; }; readonly red: { input: { readonly colorPalette: "red"; }; dot: { readonly colorPalette: "red"; }; }; }; size: { sm: { root: { p: "1"; h: "6"; }; dot: { w: "4"; h: "4"; '::before': { w: "1.5"; h: "1.5"; }; }; label: { fs: "md"; }; }; md: { root: { p: "1.5"; h: "8"; }; dot: { w: "5"; h: "5"; '::before': { w: "2"; h: "2"; }; }; label: { fs: "lg"; }; }; lg: { root: { p: "2"; h: "10"; }; dot: { w: "6"; h: "6"; '::before': { w: "2.5"; h: "2.5"; }; }; label: { fs: "xl"; }; }; }; checked: { true: { dot: { borderColor: "colorPalette.primary"; '::before': { transform: "scale(1)"; }; }; }; }; disabled: { readonly true: { root: { readonly opacity: 0.6; readonly pointerEvents: "none"; }; }; }; inGroup: { true: {}; }; }>; declare const radioGroupRecipe: _nex_ui_system.SlotRecipeRuntimeFn<{ root: { display: "flex"; flexDirection: "column"; gap: "2"; }; label: { m: number; fs: "lg"; fontWeight: "normal"; }; wrapper: { display: "flex"; }; }, { orientation: { horizontal: { wrapper: { flexDirection: "row"; flexWrap: "wrap"; }; }; vertical: { wrapper: { flexDirection: "column"; }; }; }; }>; type RadioRecipe = typeof radioRecipe; type RadioVariants = RecipeVariants<RadioRecipe>; type RadioGroupRecipe = typeof radioGroupRecipe; type RadioGroupVariants = RecipeVariants<RadioGroupRecipe>; export { radioGroupRecipe, radioRecipe }; export type { RadioGroupRecipe, RadioGroupVariants, RadioRecipe, RadioVariants };