@bitrix24/b24ui-nuxt
Version:
Bitrix24 UI-Kit for developing web applications REST API for NUXT & VUE
58 lines (57 loc) • 1.37 kB
text/typescript
const size = [
"xs",
"sm",
"md",
"lg"
] as const
export default {
"slots": {
"root": "font-b24-system font-regular",
"wrapper": "leading-none",
"labelWrapper": "flex content-center items-center justify-between",
"label": "block text-base-900 dark:text-base-400",
"hint": "text-base-500 dark:text-base-600",
"container": "relative",
"description": "mt-0.5 leading-tight text-base-500 dark:text-base-600",
"error": "mt-1 text-red-500 dark:text-red-600",
"errorWrapper": "flex flex-row flex-nowrap gap-0.5",
"errorIcon": "size-lg",
"help": "mt-1.5 leading-tight italic text-base-500 dark:text-base-600"
},
"variants": {
"useDescription": {
"true": {
"wrapper": "mb-1.5"
},
"false": {
"wrapper": "mb-2.5"
}
},
"size": {
"xs": {
"root": "text-xs",
"errorIcon": "size-md"
},
"sm": {
"root": "text-xs",
"errorIcon": "size-md"
},
"md": {
"root": "text-sm",
"errorIcon": "size-md2"
},
"lg": {
"root": "text-md"
}
},
"required": {
"true": {
"label": "after:content-['*'] after:ms-0.5 after:text-red-500 dark:after:text-red-600"
}
}
},
"compoundVariants": [],
"defaultVariants": {
"size": "md" as typeof size[number]
}
}