@bitrix24/b24ui-nuxt
Version:
Bitrix24 UI-Kit for developing web applications REST API for NUXT & VUE
176 lines (172 loc) • 3.89 kB
text/typescript
const color = [
"default",
"danger",
"success",
"warning",
"primary",
"secondary",
"collab",
"ai"
] as const
const orientation = [
"horizontal",
"vertical"
] as const
const size = [
"xs",
"sm",
"md",
"lg",
"xl"
] as const
const type = [
"solid",
"dashed",
"dotted"
] as const
export default {
"slots": {
"root": "flex items-center align-center text-center",
"border": "",
"container": "font-b24-primary font-normal text-base-500 flex",
"icon": "shrink-0 size-7",
"avatar": "shrink-0",
"avatarSize": "sm",
"label": "text-sm"
},
"variants": {
"color": {
"default": {
"border": "border-base-master/10 dark:border-base-100/20"
},
"danger": {
"border": "border-red-500 dark:border-red-600"
},
"success": {
"border": "border-green-500 dark:border-green-600"
},
"warning": {
"border": "border-orange-500 dark:border-orange-600"
},
"primary": {
"border": "border-blue-500 dark:border-blue-600"
},
"secondary": {
"border": "border-cyan-350 dark:border-cyan-500"
},
"collab": {
"border": "border-collab-500 dark:border-collab-600"
},
"ai": {
"border": "border-ai-500 dark:border-ai-600"
}
},
"orientation": {
"horizontal": {
"root": "w-full flex-row",
"border": "w-full",
"container": "mx-3 whitespace-nowrap"
},
"vertical": {
"root": "h-full flex-col",
"border": "h-full",
"container": "my-2"
}
},
"size": {
"xs": "",
"sm": "",
"md": "",
"lg": "",
"xl": ""
},
"type": {
"solid": {
"border": "border-solid"
},
"dashed": {
"border": "border-dashed"
},
"dotted": {
"border": "border-dotted"
}
}
},
"compoundVariants": [
{
"orientation": "horizontal" as typeof orientation[number],
"size": "xs" as typeof size[number],
"class": {
"border": "border-t"
}
},
{
"orientation": "horizontal" as typeof orientation[number],
"size": "sm" as typeof size[number],
"class": {
"border": "border-t-[2px]"
}
},
{
"orientation": "horizontal" as typeof orientation[number],
"size": "md" as typeof size[number],
"class": {
"border": "border-t-[3px]"
}
},
{
"orientation": "horizontal" as typeof orientation[number],
"size": "lg" as typeof size[number],
"class": {
"border": "border-t-[4px]"
}
},
{
"orientation": "horizontal" as typeof orientation[number],
"size": "xl" as typeof size[number],
"class": {
"border": "border-t-[5px]"
}
},
{
"orientation": "vertical" as typeof orientation[number],
"size": "xs" as typeof size[number],
"class": {
"border": "border-s"
}
},
{
"orientation": "vertical" as typeof orientation[number],
"size": "sm" as typeof size[number],
"class": {
"border": "border-s-[2px]"
}
},
{
"orientation": "vertical" as typeof orientation[number],
"size": "md" as typeof size[number],
"class": {
"border": "border-s-[3px]"
}
},
{
"orientation": "vertical" as typeof orientation[number],
"size": "lg" as typeof size[number],
"class": {
"border": "border-s-[4px]"
}
},
{
"orientation": "vertical" as typeof orientation[number],
"size": "xl" as typeof size[number],
"class": {
"border": "border-s-[5px]"
}
}
],
"defaultVariants": {
"color": "default" as typeof color[number],
"size": "xs" as typeof size[number],
"type": "solid" as typeof type[number]
}
}