UNPKG

@bitrix24/b24ui-nuxt

Version:

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

451 lines (447 loc) 13.8 kB
const size = [ "xs", "sm", "md", "lg" ] as const const color = [ "default", "danger", "success", "warning", "primary", "secondary", "collab", "ai" ] as const const tagColor = [ "default", "danger", "success", "warning", "primary", "secondary", "collab", "ai" ] as const const type = [ "file" ] as const export default { "slots": { "root": "isolate relative inline-flex items-center w-full", "base": "px-3 w-full py-0 border-0 focus:outline-none disabled:cursor-not-allowed disabled:bg-base-30/37 disabled:resize-none disabled:text-base-500 dark:disabled:bg-base-900/37 dark:disabled:text-base-800 appearance-none transition duration-300 ease-linear ring ring-inset ring-base-300 dark:ring-base-800 text-base-master bg-white placeholder:text-base-400 hover:text-base-900 focus:text-base-900 active:text-base-900 dark:text-base-150 dark:bg-transparent dark:placeholder:text-base-300 dark:hover:text-base-350 dark:focus:text-base-350 dark:active:text-base-350 font-b24-primary font-regular text-md leading-none align-middle text-ellipsis whitespace-nowrap", "leading": "absolute inset-y-0 start-0 flex items-center", "leadingIcon": "shrink-0 text-base-400", "leadingAvatar": "shrink-0", "leadingAvatarSize": "", "trailing": "absolute inset-y-0 end-0 flex items-center", "trailingIcon": "shrink-0 text-base-400", "tag": "pointer-events-none select-none absolute z-10 -top-1.5 right-3 h-sm px-1.5 flex flex-col justify-center items-center font-b24-primary font-bold text-6xs leading-none uppercase rounded-full" }, "variants": { "buttonGroup": { "horizontal": { "root": "group leading-none has-focus-visible:z-[1]", "base": "focus-visible:outline-none ring ring-inset ring-1 focus-visible:ring-2 group-not-only:group-first:rounded-e-3xl group-not-only:group-last:rounded-s-none group-not-last:group-not-first:rounded-none group-not-only:group-first:rounded-e-none group-not-only:group-last:rounded-s-none group-not-last:group-not-first:rounded-none group-not-only:group-first:border-e-0 group-not-only:group-not-first:border-s-0" }, "vertical": { "root": "group has-focus-visible:z-[1]", "base": "focus-visible:outline-none ring ring-inset ring-1 focus-visible:ring-2 group-not-only:group-first:rounded-b-none group-not-only:group-last:rounded-t-none group-not-last:group-not-first:rounded-none" } }, "noSplit": { "false": "group-not-only:not-first:after:content-[''] group-not-only:not-first:after:absolute group-not-only:not-first:after:top-[7px] group-not-only:not-first:after:bottom-[6px] group-not-only:not-first:after:left-0 group-not-only:not-first:after:w-px group-not-only:not-first:after:bg-current/30" }, "size": { "xs": { "base": "h-xl2 gap-1", "leading": "px-1", "trailing": "px-1", "leadingIcon": "size-lg2", "leadingAvatarSize": "2xs", "trailingIcon": "size-lg2" }, "sm": { "base": "h-8 gap-1.5", "leading": "px-1.5", "trailing": "px-1.5", "leadingIcon": "size-lg2", "leadingAvatarSize": "xs", "trailingIcon": "size-lg2" }, "md": { "base": "h-10 gap-1.5", "leading": "px-2", "trailing": "px-2", "leadingIcon": "size-[24px]", "leadingAvatarSize": "sm", "trailingIcon": "size-[24px]" }, "lg": { "base": "h-12 gap-2", "leading": "px-2", "trailing": "px-2", "leadingIcon": "size-[24px]", "leadingAvatarSize": "md", "trailingIcon": "size-[24px]" } }, "color": { "default": "", "danger": "", "success": "", "warning": "", "primary": "", "secondary": "", "collab": "", "ai": "" }, "tagColor": { "default": { "tag": "text-white bg-base-900 dark:text-base-150 dark:bg-base-900" }, "danger": { "tag": "text-white bg-red-500 dark:text-red-250 dark:bg-red-600" }, "success": { "tag": "text-white bg-green-500 dark:text-green-250 dark:bg-green-600" }, "warning": { "tag": "text-white bg-orange-500 dark:text-orange-250 dark:bg-orange-600" }, "primary": { "tag": "text-white bg-blue-500 dark:text-blue-250 dark:bg-blue-600" }, "secondary": { "tag": "text-white bg-cyan-350 dark:text-base-150 dark:bg-cyan-500" }, "collab": { "tag": "text-white bg-collab-500 dark:text-collab-200 dark:bg-collab-800" }, "ai": { "tag": "text-white bg-ai-500 dark:text-ai-200 dark:bg-ai-800" } }, "rounded": { "true": "rounded-3xl", "false": "rounded-2xs" }, "noPadding": { "true": { "base": "px-0" } }, "noBorder": { "true": "ring-0 focus-visible:ring-0" }, "underline": { "true": "ring-0 focus-visible:ring-0 border-b border-b-base-300 rounded-none" }, "leading": { "true": "" }, "trailing": { "true": "" }, "loading": { "true": "" }, "highlight": { "true": "" }, "type": { "file": "file:me-1.5 file:text-base-500 file:outline-none" } }, "compoundVariants": [ { "color": "default" as typeof color[number], "noBorder": false, "underline": false, "class": "focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-base-900 dark:focus-visible:ring-base-350" }, { "color": "default" as typeof color[number], "highlight": true, "noBorder": false, "underline": false, "class": "ring ring-inset ring-base-900 dark:ring-base-350" }, { "color": "default" as typeof color[number], "noBorder": false, "underline": true, "class": "focus-visible:border-base-900 dark:focus-visible:border-b-base-350" }, { "color": "default" as typeof color[number], "highlight": true, "noBorder": false, "underline": true, "class": "border-b-base-900 dark:border-b-base-350" }, { "color": "danger" as typeof color[number], "noBorder": false, "underline": false, "class": "focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-red-500 dark:focus-visible:ring-red-600" }, { "color": "danger" as typeof color[number], "highlight": true, "noBorder": false, "underline": false, "class": "ring ring-inset ring-red-500 dark:ring-red-600" }, { "color": "danger" as typeof color[number], "noBorder": false, "underline": true, "class": "focus-visible:border-b-red-500 dark:focus-visible:border-b-red-600" }, { "color": "danger" as typeof color[number], "highlight": true, "noBorder": false, "underline": true, "class": "border-b-red-500 dark:border-b-red-600" }, { "color": "success" as typeof color[number], "noBorder": false, "underline": false, "class": "focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-green-500 dark:focus-visible:ring-green-600" }, { "color": "success" as typeof color[number], "highlight": true, "noBorder": false, "underline": false, "class": "ring ring-inset ring-green-500 dark:ring-green-600" }, { "color": "success" as typeof color[number], "noBorder": false, "underline": true, "class": "focus-visible:border-b-green-500 dark:focus-visible:border-b-green-600" }, { "color": "success" as typeof color[number], "highlight": true, "noBorder": false, "underline": true, "class": "border-b-green-500 dark:border-b-green-600" }, { "color": "warning" as typeof color[number], "noBorder": false, "underline": false, "class": "focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-orange-500 dark:focus-visible:ring-orange-600" }, { "color": "warning" as typeof color[number], "highlight": true, "noBorder": false, "underline": false, "class": "ring ring-inset ring-orange-500 dark:ring-orange-600" }, { "color": "warning" as typeof color[number], "noBorder": false, "underline": true, "class": "focus-visible:border-b-orange-500 dark:focus-visible:border-b-orange-600" }, { "color": "warning" as typeof color[number], "highlight": true, "noBorder": false, "underline": true, "class": "border-b-orange-500 dark:border-b-orange-600" }, { "color": "primary" as typeof color[number], "noBorder": false, "underline": false, "class": "focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-blue-500 dark:focus-visible:ring-blue-600" }, { "color": "primary" as typeof color[number], "highlight": true, "noBorder": false, "underline": false, "class": "ring ring-inset ring-blue-500 dark:ring-blue-600" }, { "color": "primary" as typeof color[number], "noBorder": false, "underline": true, "class": "focus-visible:border-b-blue-500 dark:focus-visible:border-b-blue-600" }, { "color": "primary" as typeof color[number], "highlight": true, "noBorder": false, "underline": true, "class": "border-b-blue-500 dark:border-b-blue-600" }, { "color": "secondary" as typeof color[number], "noBorder": false, "underline": false, "class": "focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-cyan-350 dark:focus-visible:ring-cyan-500" }, { "color": "secondary" as typeof color[number], "highlight": true, "noBorder": false, "underline": false, "class": "ring ring-inset ring-cyan-350 dark:ring-cyan-500" }, { "color": "secondary" as typeof color[number], "noBorder": false, "underline": true, "class": "focus-visible:border-b-cyan-350 dark:focus-visible:border-b-cyan-500" }, { "color": "secondary" as typeof color[number], "highlight": true, "noBorder": false, "underline": true, "class": "border-b-cyan-350 dark:border-b-cyan-500" }, { "color": "collab" as typeof color[number], "noBorder": false, "underline": false, "class": "focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-collab-500 dark:focus-visible:ring-collab-600" }, { "color": "collab" as typeof color[number], "highlight": true, "noBorder": false, "underline": false, "class": "ring ring-inset ring-collab-500 dark:ring-collab-600" }, { "color": "collab" as typeof color[number], "noBorder": false, "underline": true, "class": "focus-visible:border-b-collab-500 dark:focus-visible:border-b-collab-600" }, { "color": "collab" as typeof color[number], "highlight": true, "noBorder": false, "underline": true, "class": "border-b-collab-500 dark:border-b-collab-600" }, { "color": "ai" as typeof color[number], "noBorder": false, "underline": false, "class": "focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-ai-500 dark:focus-visible:ring-ai-600" }, { "color": "ai" as typeof color[number], "highlight": true, "noBorder": false, "underline": false, "class": "ring ring-inset ring-ai-500 dark:ring-ai-600" }, { "color": "ai" as typeof color[number], "noBorder": false, "underline": true, "class": "focus-visible:border-b-ai-500 dark:focus-visible:border-b-ai-600" }, { "color": "ai" as typeof color[number], "highlight": true, "noBorder": false, "underline": true, "class": "border-b-ai-500 dark:border-b-ai-600" }, { "type": "file" as typeof type[number], "size": "xs" as typeof size[number], "class": "py-1.5" }, { "type": "file" as typeof type[number], "size": "sm" as typeof size[number], "class": "py-2.5" }, { "type": "file" as typeof type[number], "size": "md" as typeof size[number], "class": "py-3" }, { "type": "file" as typeof type[number], "size": "lg" as typeof size[number], "class": "py-4" }, { "leading": true, "size": "xs" as typeof size[number], "class": "ps-7" }, { "leading": true, "size": "sm" as typeof size[number], "class": "ps-8" }, { "leading": true, "size": "md" as typeof size[number], "class": "ps-[39px]" }, { "leading": true, "size": "lg" as typeof size[number], "class": "ps-[42px]" }, { "trailing": true, "size": "xs" as typeof size[number], "class": "pe-7" }, { "trailing": true, "size": "sm" as typeof size[number], "class": "pe-8" }, { "trailing": true, "size": "md" as typeof size[number], "class": "pe-[39px]" }, { "trailing": true, "size": "lg" as typeof size[number], "class": "pe-[39px]" }, { "loading": true, "leading": true, "class": { "leadingIcon": "size-[21px]" } }, { "loading": true, "leading": false, "trailing": true, "class": { "trailingIcon": "size-[21px]" } } ], "defaultVariants": { "size": "md" as typeof size[number], "color": "primary" as typeof color[number], "tagColor": "primary" as typeof tagColor[number] } }