UNPKG

@bitrix24/b24ui-nuxt

Version:

Bitrix24 UI-Kit for developing web applications REST API for NUXT & VUE

303 lines (298 loc) 8.37 kB
const animation = [ "loading", "carousel", "carousel-inverse", "swing", "elastic" ] as const const color = [ "default", "danger", "success", "warning", "primary", "secondary", "collab", "ai" ] as const const size = [ "xs", "sm", "md", "lg" ] as const const step = [ "active", "first", "other", "last" ] as const const orientation = [ "horizontal", "vertical" ] as const export default { "slots": { "root": "gap-2", "base": "relative overflow-hidden rounded-full bg-base-200 dark:bg-base-800", "indicator": "rounded-full size-full transition-transform duration-200 ease-out", "status": "flex justify-end text-base-500 dark:text-base-600 transition-[width] duration-200", "steps": "grid items-end", "step": "truncate text-end row-start-1 col-start-1 transition-opacity" as typeof step[number] }, "variants": { "animation": { "loading": "", "carousel": "", "carousel-inverse": "", "swing": "", "elastic": "" }, "color": { "default": { "indicator": "bg-base-900 dark:bg-base-100", "steps": "text-base-500" }, "danger": { "indicator": "bg-red-500 dark:bg-red-600", "steps": "text-base-500" }, "success": { "indicator": "bg-green-500 dark:bg-green-600", "steps": "text-base-500" }, "warning": { "indicator": "bg-orange-500 dark:bg-orange-600", "steps": "text-base-500" }, "primary": { "indicator": "bg-blue-500 dark:bg-blue-600", "steps": "text-base-500" }, "secondary": { "indicator": "bg-cyan-350 dark:bg-cyan-500", "steps": "text-base-500" }, "collab": { "indicator": "bg-collab-500 dark:bg-collab-600", "steps": "text-base-500" }, "ai": { "indicator": "bg-ai-500 dark:bg-ai-900/85", "steps": "text-base-500" } }, "size": { "xs": { "status": "text-xs", "steps": "text-xs" }, "sm": { "status": "text-sm", "steps": "text-sm" }, "md": { "status": "text-sm", "steps": "text-sm" }, "lg": { "status": "text-sm", "steps": "text-sm" } }, "step": { "active": { "step": "opacity-100" as typeof step[number] }, "first": { "step": "opacity-100 text-base-500 dark:text-base-600" as typeof step[number] }, "other": { "step": "opacity-0" as typeof step[number] }, "last": { "step": "" } }, "orientation": { "horizontal": { "root": "w-full flex flex-col", "base": "w-full", "status": "flex-row" }, "vertical": { "root": "h-full flex flex-row-reverse", "base": "h-full", "status": "flex-col min-w-[32px]" } }, "inverted": { "true": { "status": "self-end" } } }, "compoundVariants": [ { "inverted": true, "orientation": "horizontal" as typeof orientation[number], "class": { "step": "text-start" as typeof step[number], "status": "flex-row-reverse" } }, { "inverted": true, "orientation": "vertical" as typeof orientation[number], "class": { "steps": "items-start", "status": "flex-col-reverse" } }, { "orientation": "horizontal" as typeof orientation[number], "size": "2xs" as typeof size[number], "class": "h-px" }, { "orientation": "horizontal" as typeof orientation[number], "size": "xs" as typeof size[number], "class": "h-0.5" }, { "orientation": "horizontal" as typeof orientation[number], "size": "sm" as typeof size[number], "class": "h-1" }, { "orientation": "horizontal" as typeof orientation[number], "size": "md" as typeof size[number], "class": "h-2" }, { "orientation": "horizontal" as typeof orientation[number], "size": "lg" as typeof size[number], "class": "h-3" }, { "orientation": "horizontal" as typeof orientation[number], "size": "xl" as typeof size[number], "class": "h-4" }, { "orientation": "horizontal" as typeof orientation[number], "size": "2xl" as typeof size[number], "class": "h-5" }, { "orientation": "vertical" as typeof orientation[number], "size": "2xs" as typeof size[number], "class": "w-px" }, { "orientation": "vertical" as typeof orientation[number], "size": "xs" as typeof size[number], "class": "w-0.5" }, { "orientation": "vertical" as typeof orientation[number], "size": "sm" as typeof size[number], "class": "w-1" }, { "orientation": "vertical" as typeof orientation[number], "size": "md" as typeof size[number], "class": "w-2" }, { "orientation": "vertical" as typeof orientation[number], "size": "lg" as typeof size[number], "class": "w-3" }, { "orientation": "vertical" as typeof orientation[number], "size": "xl" as typeof size[number], "class": "w-4" }, { "orientation": "vertical" as typeof orientation[number], "size": "2xl" as typeof size[number], "class": "w-5" }, { "orientation": "horizontal" as typeof orientation[number], "animation": "carousel" as typeof animation[number], "class": { "indicator": "data-[state=indeterminate]:animate-[carousel_2s_ease-in-out_infinite] data-[state=indeterminate]:rtl:animate-[carousel-rtl_2s_ease-in-out_infinite]" } }, { "orientation": "vertical" as typeof orientation[number], "animation": "carousel" as typeof animation[number], "class": { "indicator": "data-[state=indeterminate]:animate-[carousel-vertical_2s_ease-in-out_infinite]" } }, { "orientation": "horizontal" as typeof orientation[number], "animation": "carousel-inverse" as typeof animation[number], "class": { "indicator": "data-[state=indeterminate]:animate-[carousel-inverse_2s_ease-in-out_infinite] data-[state=indeterminate]:rtl:animate-[carousel-inverse-rtl_2s_ease-in-out_infinite]" } }, { "orientation": "vertical" as typeof orientation[number], "animation": "carousel-inverse" as typeof animation[number], "class": { "indicator": "data-[state=indeterminate]:animate-[carousel-inverse-vertical_2s_ease-in-out_infinite]" } }, { "orientation": "horizontal" as typeof orientation[number], "animation": "swing" as typeof animation[number], "class": { "indicator": "data-[state=indeterminate]:animate-[swing_2s_ease-in-out_infinite]" } }, { "orientation": "vertical" as typeof orientation[number], "animation": "swing" as typeof animation[number], "class": { "indicator": "data-[state=indeterminate]:animate-[swing-vertical_2s_ease-in-out_infinite]" } }, { "orientation": "horizontal" as typeof orientation[number], "animation": "elastic" as typeof animation[number], "class": { "indicator": "data-[state=indeterminate]:animate-[elastic_2s_ease-in-out_infinite]" } }, { "orientation": "vertical" as typeof orientation[number], "animation": "elastic" as typeof animation[number], "class": { "indicator": "data-[state=indeterminate]:animate-[elastic-vertical_2s_ease-in-out_infinite]" } }, { "orientation": "horizontal" as typeof orientation[number], "animation": "loading" as typeof animation[number], "class": { "indicator": "data-[state=indeterminate]:animate-[progressbar-loading_2s_infinite]" } }, { "orientation": "vertical" as typeof orientation[number], "animation": "loading" as typeof animation[number], "class": { "indicator": "data-[state=indeterminate]:animate-[progressbar-loading-vertical_2s_infinite]" } } ], "defaultVariants": { "animation": "loading" as typeof animation[number], "color": "primary" as typeof color[number], "size": "md" as typeof size[number] } }