@bitrix24/b24ui-nuxt 0.7.1 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.nuxt/b24ui/accordion.ts +3 -3
- package/.nuxt/b24ui/advice.ts +6 -5
- package/.nuxt/b24ui/alert.ts +102 -49
- package/.nuxt/b24ui/avatar-group.ts +10 -10
- package/.nuxt/b24ui/avatar.ts +18 -18
- package/.nuxt/b24ui/badge.ts +167 -176
- package/.nuxt/b24ui/button-group.ts +3 -1
- package/.nuxt/b24ui/button.ts +179 -170
- package/.nuxt/b24ui/calendar.ts +48 -28
- package/.nuxt/b24ui/checkbox.ts +82 -85
- package/.nuxt/b24ui/chip.ts +121 -32
- package/.nuxt/b24ui/container.ts +1 -1
- package/.nuxt/b24ui/content/table-wrapper.ts +11 -11
- package/.nuxt/b24ui/countdown.ts +11 -11
- package/.nuxt/b24ui/description-list.ts +6 -6
- package/.nuxt/b24ui/dropdown-menu.ts +111 -183
- package/.nuxt/b24ui/form-field.ts +19 -19
- package/.nuxt/b24ui/index.ts +0 -1
- package/.nuxt/b24ui/input-menu.ts +294 -357
- package/.nuxt/b24ui/input-number.ts +111 -259
- package/.nuxt/b24ui/input.ts +136 -259
- package/.nuxt/b24ui/kbd.ts +15 -13
- package/.nuxt/b24ui/link.ts +5 -5
- package/.nuxt/b24ui/modal.ts +14 -12
- package/.nuxt/b24ui/navbar-divider.ts +1 -1
- package/.nuxt/b24ui/navbar-section.ts +1 -1
- package/.nuxt/b24ui/navbar.ts +1 -1
- package/.nuxt/b24ui/navigation-menu.ts +70 -754
- package/.nuxt/b24ui/popover.ts +2 -2
- package/.nuxt/b24ui/progress.ts +58 -68
- package/.nuxt/b24ui/prose/a.ts +1 -1
- package/.nuxt/b24ui/prose/blockquote.ts +1 -1
- package/.nuxt/b24ui/prose/code.ts +45 -9
- package/.nuxt/b24ui/prose/h1.ts +21 -2
- package/.nuxt/b24ui/prose/h2.ts +21 -12
- package/.nuxt/b24ui/prose/h3.ts +21 -12
- package/.nuxt/b24ui/prose/h4.ts +21 -12
- package/.nuxt/b24ui/prose/h5.ts +21 -12
- package/.nuxt/b24ui/prose/h6.ts +21 -12
- package/.nuxt/b24ui/prose/hr.ts +1 -1
- package/.nuxt/b24ui/prose/ol.ts +1 -1
- package/.nuxt/b24ui/prose/p.ts +26 -1
- package/.nuxt/b24ui/prose/thead.ts +1 -1
- package/.nuxt/b24ui/prose/ul.ts +1 -1
- package/.nuxt/b24ui/radio-group.ts +115 -155
- package/.nuxt/b24ui/range.ts +38 -26
- package/.nuxt/b24ui/select-menu.ts +251 -306
- package/.nuxt/b24ui/select.ts +246 -301
- package/.nuxt/b24ui/separator.ts +40 -85
- package/.nuxt/b24ui/sidebar-header.ts +1 -1
- package/.nuxt/b24ui/sidebar-heading.ts +1 -1
- package/.nuxt/b24ui/sidebar-layout.ts +130 -19
- package/.nuxt/b24ui/sidebar-section.ts +1 -1
- package/.nuxt/b24ui/skeleton.ts +19 -1
- package/.nuxt/b24ui/slideover.ts +35 -34
- package/.nuxt/b24ui/switch.ts +59 -48
- package/.nuxt/b24ui/tabs.ts +26 -239
- package/.nuxt/b24ui/textarea.ts +50 -236
- package/.nuxt/b24ui/toast.ts +38 -30
- package/.nuxt/b24ui/toaster.ts +1 -1
- package/.nuxt/b24ui/tooltip.ts +5 -5
- package/cli/templates.mjs +2 -1
- package/dist/meta.d.mts +18759 -5002
- package/dist/meta.mjs +18759 -5002
- package/dist/module.d.mts +1 -0
- package/dist/module.json +2 -2
- package/dist/module.mjs +3 -5
- package/dist/runtime/air-design-tokens/001_b24_global.css +1 -0
- package/dist/runtime/air-design-tokens/002_b24_context_utility.css +0 -0
- package/dist/runtime/air-design-tokens/003_b24_context_light.css +1 -0
- package/dist/runtime/air-design-tokens/004_b24_context_dark.css +1 -0
- package/dist/runtime/air-design-tokens/005_b24_context_edge-light.css +1 -0
- package/dist/runtime/air-design-tokens/006_b24_context_edge-dark.css +1 -0
- package/dist/runtime/air-design-tokens/007_b24_global.css +1 -0
- package/dist/runtime/air-design-tokens/008_ui_global.css +1 -0
- package/dist/runtime/air-design-tokens/009_b24_tools.css +1 -0
- package/dist/runtime/air-design-tokens/components/badge-counter.css +1 -0
- package/dist/runtime/air-design-tokens/components/button.css +1 -0
- package/dist/runtime/air-design-tokens/components/navigation-menu.css +1 -0
- package/dist/runtime/air-design-tokens/components/popup.css +1 -0
- package/dist/runtime/air-design-tokens/components/scrollbar.css +2 -0
- package/dist/runtime/air-design-tokens/index.css +1 -0
- package/dist/runtime/components/Accordion.vue.d.ts +1 -1
- package/dist/runtime/components/Advice.vue +1 -13
- package/dist/runtime/components/Advice.vue.d.ts +1 -1
- package/dist/runtime/components/Alert.vue +6 -4
- package/dist/runtime/components/Alert.vue.d.ts +11 -4
- package/dist/runtime/components/App.vue.d.ts +1 -1
- package/dist/runtime/components/Avatar.vue.d.ts +1 -1
- package/dist/runtime/components/AvatarGroup.vue.d.ts +1 -1
- package/dist/runtime/components/Badge.vue +7 -11
- package/dist/runtime/components/Badge.vue.d.ts +6 -8
- package/dist/runtime/components/Button.vue +18 -15
- package/dist/runtime/components/Button.vue.d.ts +5 -7
- package/dist/runtime/components/ButtonGroup.vue.d.ts +1 -1
- package/dist/runtime/components/Calendar.vue +8 -8
- package/dist/runtime/components/Calendar.vue.d.ts +14 -8
- package/dist/runtime/components/Checkbox.vue.d.ts +2 -2
- package/dist/runtime/components/Chip.vue +28 -7
- package/dist/runtime/components/Chip.vue.d.ts +22 -2
- package/dist/runtime/components/Collapsible.vue.d.ts +1 -1
- package/dist/runtime/components/Container.vue.d.ts +1 -1
- package/dist/runtime/components/Countdown.vue.d.ts +5 -3
- package/dist/runtime/components/DescriptionList.vue.d.ts +1 -1
- package/dist/runtime/components/DropdownMenu.vue +20 -9
- package/dist/runtime/components/DropdownMenu.vue.d.ts +1 -5
- package/dist/runtime/components/DropdownMenuContent.vue +29 -7
- package/dist/runtime/components/DropdownMenuContent.vue.d.ts +14 -6
- package/dist/runtime/components/Form.vue +3 -3
- package/dist/runtime/components/Form.vue.d.ts +6 -5
- package/dist/runtime/components/FormField.vue +2 -2
- package/dist/runtime/components/FormField.vue.d.ts +4 -4
- package/dist/runtime/components/Input.vue +8 -4
- package/dist/runtime/components/Input.vue.d.ts +9 -8
- package/dist/runtime/components/InputMenu.vue +44 -18
- package/dist/runtime/components/InputMenu.vue.d.ts +17 -223
- package/dist/runtime/components/InputNumber.vue +14 -11
- package/dist/runtime/components/InputNumber.vue.d.ts +13 -87
- package/dist/runtime/components/Kbd.vue +6 -3
- package/dist/runtime/components/Kbd.vue.d.ts +7 -3
- package/dist/runtime/components/Link.vue +6 -5
- package/dist/runtime/components/Link.vue.d.ts +1 -3
- package/dist/runtime/components/LinkBase.vue.d.ts +1 -1
- package/dist/runtime/components/Modal.vue +37 -33
- package/dist/runtime/components/Modal.vue.d.ts +2 -2
- package/dist/runtime/components/ModalDialogClose.vue.d.ts +1 -1
- package/dist/runtime/components/Navbar.vue.d.ts +1 -1
- package/dist/runtime/components/NavbarDivider.vue.d.ts +1 -1
- package/dist/runtime/components/NavbarSection.vue.d.ts +1 -1
- package/dist/runtime/components/NavbarSpacer.vue.d.ts +1 -1
- package/dist/runtime/components/NavigationMenu.vue +95 -84
- package/dist/runtime/components/NavigationMenu.vue.d.ts +31 -33
- package/dist/runtime/components/OverlayProvider.vue.d.ts +1 -1
- package/dist/runtime/components/Popover.vue +8 -2
- package/dist/runtime/components/Popover.vue.d.ts +9 -3
- package/dist/runtime/components/Progress.vue.d.ts +3 -3
- package/dist/runtime/components/RadioGroup.vue +1 -1
- package/dist/runtime/components/RadioGroup.vue.d.ts +6 -5
- package/dist/runtime/components/Range.vue.d.ts +6 -6
- package/dist/runtime/components/Select.vue +25 -11
- package/dist/runtime/components/Select.vue.d.ts +7 -7
- package/dist/runtime/components/SelectMenu.vue +38 -19
- package/dist/runtime/components/SelectMenu.vue.d.ts +11 -10
- package/dist/runtime/components/Separator.vue +4 -4
- package/dist/runtime/components/Separator.vue.d.ts +6 -3
- package/dist/runtime/components/Sidebar.vue.d.ts +4 -1
- package/dist/runtime/components/SidebarBody.vue.d.ts +4 -1
- package/dist/runtime/components/SidebarFooter.vue.d.ts +4 -1
- package/dist/runtime/components/SidebarHeader.vue.d.ts +4 -1
- package/dist/runtime/components/SidebarHeading.vue.d.ts +4 -1
- package/dist/runtime/components/SidebarLayout.vue +148 -63
- package/dist/runtime/components/SidebarLayout.vue.d.ts +61 -8
- package/dist/runtime/components/SidebarSection.vue.d.ts +4 -1
- package/dist/runtime/components/SidebarSpacer.vue.d.ts +4 -1
- package/dist/runtime/components/Skeleton.vue +7 -3
- package/dist/runtime/components/Skeleton.vue.d.ts +12 -1
- package/dist/runtime/components/Slideover.vue +120 -43
- package/dist/runtime/components/Slideover.vue.d.ts +22 -9
- package/dist/runtime/components/Switch.vue.d.ts +2 -2
- package/dist/runtime/components/Tabs.vue +11 -3
- package/dist/runtime/components/Tabs.vue.d.ts +8 -7
- package/dist/runtime/components/Textarea.vue +8 -4
- package/dist/runtime/components/Textarea.vue.d.ts +8 -7
- package/dist/runtime/components/Toast.vue +16 -8
- package/dist/runtime/components/Toast.vue.d.ts +16 -15
- package/dist/runtime/components/Toaster.vue.d.ts +2 -2
- package/dist/runtime/components/Tooltip.vue +9 -5
- package/dist/runtime/components/Tooltip.vue.d.ts +7 -1
- package/dist/runtime/components/content/TableWrapper.vue.d.ts +1 -1
- package/dist/runtime/composables/defineShortcuts.js +5 -3
- package/dist/runtime/composables/useAvatarGroup.d.ts +1 -1
- package/dist/runtime/composables/useButtonGroup.d.ts +1 -1
- package/dist/runtime/composables/useComponentIcons.d.ts +1 -1
- package/dist/runtime/composables/useFormField.d.ts +4 -7
- package/dist/runtime/composables/useFormField.js +6 -3
- package/dist/runtime/composables/useKbd.d.ts +1 -1
- package/dist/runtime/composables/useLocale.js +2 -2
- package/dist/runtime/composables/useOverlay.d.ts +29 -2
- package/dist/runtime/composables/useOverlay.js +8 -7
- package/dist/runtime/composables/usePortal.d.ts +1 -1
- package/dist/runtime/composables/useSidebarLayout.d.ts +20 -0
- package/dist/runtime/composables/useSidebarLayout.js +16 -0
- package/dist/runtime/dictionary/icons.js +7 -7
- package/dist/runtime/index.css +1 -1
- package/dist/runtime/inertia/components/Link.vue +3 -0
- package/dist/runtime/inertia/components/Link.vue.d.ts +1 -1
- package/dist/runtime/inertia/components/LinkBase.vue.d.ts +1 -1
- package/dist/runtime/inertia/stubs.d.ts +1 -0
- package/dist/runtime/inertia/stubs.js +4 -2
- package/dist/runtime/locale/ar.js +6 -0
- package/dist/runtime/locale/br.js +6 -0
- package/dist/runtime/locale/de.js +6 -0
- package/dist/runtime/locale/en.js +6 -0
- package/dist/runtime/locale/fr.js +6 -0
- package/dist/runtime/locale/id.js +6 -0
- package/dist/runtime/locale/it.js +6 -0
- package/dist/runtime/locale/ja.js +6 -0
- package/dist/runtime/locale/kz.js +6 -0
- package/dist/runtime/locale/la.js +6 -0
- package/dist/runtime/locale/ms.js +6 -0
- package/dist/runtime/locale/pl.js +6 -0
- package/dist/runtime/locale/ru.js +6 -0
- package/dist/runtime/locale/sc.js +6 -0
- package/dist/runtime/locale/tc.js +6 -0
- package/dist/runtime/locale/th.js +6 -0
- package/dist/runtime/locale/tr.js +6 -0
- package/dist/runtime/locale/ua.js +6 -0
- package/dist/runtime/locale/vn.js +6 -0
- package/dist/runtime/plugins/ui-version.d.ts +5 -0
- package/dist/runtime/plugins/ui-version.js +8 -0
- package/dist/runtime/prose/A.vue.d.ts +4 -1
- package/dist/runtime/prose/Blockquote.vue.d.ts +4 -1
- package/dist/runtime/prose/Code.vue.d.ts +4 -1
- package/dist/runtime/prose/Em.vue.d.ts +4 -1
- package/dist/runtime/prose/H1.vue +4 -1
- package/dist/runtime/prose/H1.vue.d.ts +7 -1
- package/dist/runtime/prose/H2.vue +4 -1
- package/dist/runtime/prose/H2.vue.d.ts +7 -1
- package/dist/runtime/prose/H3.vue +4 -1
- package/dist/runtime/prose/H3.vue.d.ts +7 -1
- package/dist/runtime/prose/H4.vue +4 -1
- package/dist/runtime/prose/H4.vue.d.ts +7 -1
- package/dist/runtime/prose/H5.vue +4 -1
- package/dist/runtime/prose/H5.vue.d.ts +7 -1
- package/dist/runtime/prose/H6.vue +4 -1
- package/dist/runtime/prose/H6.vue.d.ts +7 -1
- package/dist/runtime/prose/Hr.vue.d.ts +1 -1
- package/dist/runtime/prose/Img.vue.d.ts +1 -1
- package/dist/runtime/prose/Li.vue.d.ts +4 -1
- package/dist/runtime/prose/Ol.vue.d.ts +4 -1
- package/dist/runtime/prose/P.vue +6 -1
- package/dist/runtime/prose/P.vue.d.ts +12 -1
- package/dist/runtime/prose/Pre.vue.d.ts +4 -1
- package/dist/runtime/prose/Strong.vue.d.ts +4 -1
- package/dist/runtime/prose/Table.vue.d.ts +5 -2
- package/dist/runtime/prose/Tbody.vue.d.ts +4 -1
- package/dist/runtime/prose/Td.vue.d.ts +4 -1
- package/dist/runtime/prose/Th.vue.d.ts +4 -1
- package/dist/runtime/prose/Thead.vue.d.ts +4 -1
- package/dist/runtime/prose/Tr.vue.d.ts +4 -1
- package/dist/runtime/prose/Ul.vue.d.ts +4 -1
- package/dist/runtime/types/index.d.ts +1 -2
- package/dist/runtime/types/index.js +1 -2
- package/dist/runtime/types/locale.d.ts +6 -0
- package/dist/runtime/utils/index.d.ts +6 -0
- package/dist/runtime/utils/index.js +27 -0
- package/dist/runtime/utils/tv.js +66 -1
- package/dist/runtime/vue/components/Link.vue +3 -0
- package/dist/runtime/vue/components/Link.vue.d.ts +1 -1
- package/dist/runtime/vue/stubs.d.ts +1 -0
- package/dist/runtime/vue/stubs.js +3 -1
- package/dist/shared/b24ui-nuxt.dLc5H7ID.mjs +6100 -0
- package/dist/unplugin.mjs +1 -1
- package/dist/vite.mjs +1 -1
- package/package.json +40 -28
- package/.nuxt/b24ui/stacked-layout.ts +0 -34
- package/dist/runtime/air-design-tokens.css +0 -1
- package/dist/runtime/components/StackedLayout.vue +0 -117
- package/dist/runtime/components/StackedLayout.vue.d.ts +0 -44
- package/dist/shared/b24ui-nuxt.CxsFEY3M.mjs +0 -7895
package/.nuxt/b24ui/button.ts
CHANGED
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
const color = [
|
|
2
|
+
"air-primary",
|
|
3
|
+
"air-primary-success",
|
|
4
|
+
"air-primary-alert",
|
|
5
|
+
"air-primary-copilot",
|
|
6
|
+
"air-secondary",
|
|
7
|
+
"air-secondary-alert",
|
|
8
|
+
"air-secondary-accent",
|
|
9
|
+
"air-secondary-accent-1",
|
|
10
|
+
"air-secondary-accent-2",
|
|
11
|
+
"air-secondary-no-accent",
|
|
12
|
+
"air-tertiary",
|
|
13
|
+
"air-tertiary-accent",
|
|
14
|
+
"air-tertiary-no-accent",
|
|
15
|
+
"air-selection",
|
|
16
|
+
"air-boost",
|
|
2
17
|
"default",
|
|
3
18
|
"danger",
|
|
4
19
|
"success",
|
|
@@ -17,28 +32,49 @@ const depth = [
|
|
|
17
32
|
] as const
|
|
18
33
|
|
|
19
34
|
const size = [
|
|
35
|
+
"xss",
|
|
20
36
|
"xs",
|
|
21
37
|
"sm",
|
|
22
38
|
"md",
|
|
23
|
-
"lg"
|
|
39
|
+
"lg",
|
|
40
|
+
"xl"
|
|
24
41
|
] as const
|
|
25
42
|
|
|
26
43
|
export default {
|
|
27
44
|
"slots": {
|
|
28
45
|
"base": [
|
|
46
|
+
"ui-btn",
|
|
47
|
+
"font-[family-name:var(--ui-font-family-primary)]",
|
|
29
48
|
"select-none cursor-pointer inline-flex items-center",
|
|
30
49
|
"relative",
|
|
31
50
|
"outline-transparent focus-visible:outline-2 focus-visible:outline-offset-2",
|
|
32
|
-
"disabled:cursor-not-allowed aria-disabled:cursor-not-allowed disabled:opacity-
|
|
33
|
-
"transition duration-
|
|
51
|
+
"disabled:cursor-not-allowed aria-disabled:cursor-not-allowed disabled:opacity-30 aria-disabled:opacity-30",
|
|
52
|
+
"transition duration-0 ease-linear",
|
|
53
|
+
"border-(length:--ui-btn-border-width)",
|
|
54
|
+
"text-(--ui-btn-color) bg-(--ui-btn-background) border-(--ui-btn-border-color)",
|
|
55
|
+
"hover:text-(--ui-btn-color-hover) hover:bg-(--ui-btn-background-hover) hover:border-(--ui-btn-border-color-hover)",
|
|
56
|
+
"focus:text-(--ui-btn-color-hover) focus:bg-(--ui-btn-background-hover) focus:border-(--ui-btn-border-color-hover)",
|
|
57
|
+
"active:text-(--ui-btn-color-active) active:bg-(--ui-btn-background-active) active:border-(--ui-btn-border-color-active)",
|
|
58
|
+
"disabled:bg-(--ui-btn-background) disabled:border-(--ui-btn-border-color)",
|
|
59
|
+
"aria-disabled:bg-(--ui-btn-background) aria-disabled:border-(--ui-btn-border-color)",
|
|
60
|
+
"focus-visible:outline-(--ui-btn-background)",
|
|
61
|
+
"ring-(--ui-btn-background-hover) focus:outline-none focus-visible:ring-(--ui-btn-background-hover)",
|
|
62
|
+
"h-(--ui-btn-height)",
|
|
63
|
+
"text-(length:--ui-btn-font-size) leading-(--ui-btn-height) font-(--ui-btn-font-weight)",
|
|
64
|
+
""
|
|
34
65
|
],
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
66
|
+
"baseLoading": "h-full w-full absolute inset-0 flex flex-row flex-nowrap items-center justify-center",
|
|
67
|
+
"baseLoadingWaitIcon": "text-(--ui-btn-color) size-[calc(var(--ui-btn-wait-icon-size)_+_7px)]",
|
|
68
|
+
"baseLoadingClockIcon": "text-(--ui-btn-color) size-[calc(var(--ui-btn-wait-icon-size)_+_7px)]",
|
|
69
|
+
"baseLoadingSpinnerIcon": "text-(--ui-btn-color) size-(--ui-btn-wait-icon-size) animate-spin stroke-2",
|
|
70
|
+
"baseLine": "w-full inline-flex items-center justify-center gap-(--ui-btn-icon-space) ps-(--ui-btn-padding-left) pe-(--ui-btn-padding-right)",
|
|
71
|
+
"label": "h-(--ui-btn-height) max-w-full inline-flex items-center tracking-(--ui-btn-letter-spacing) overflow-visible text-clip mt-(--ui-btn-title-compensation)",
|
|
72
|
+
"labelInner": "truncate inline-block max-w-full mt-(--ui-btn-title-compensation)",
|
|
73
|
+
"leadingIcon": "text-(--ui-btn-color) shrink-0 size-(--ui-btn-icon-size)",
|
|
74
|
+
"leadingAvatar": "shrink-0 me-[4px]",
|
|
39
75
|
"leadingAvatarSize": "",
|
|
40
|
-
"trailingIcon": "shrink-0",
|
|
41
|
-
"safeList": "
|
|
76
|
+
"trailingIcon": "text-(--ui-btn-color) shrink-0 size-(--ui-btn-icon-size) mt-(--ui-btn-title-compensation)",
|
|
77
|
+
"safeList": "invisible"
|
|
42
78
|
},
|
|
43
79
|
"variants": {
|
|
44
80
|
"buttonGroup": {
|
|
@@ -49,15 +85,32 @@ export default {
|
|
|
49
85
|
"false": "group-[.is-button-group]/items:not-only:not-first:after:content-[''] group-[.is-button-group]/items:not-only:not-first:after:absolute group-[.is-button-group]/items:not-only:not-first:after:top-[7px] group-[.is-button-group]/items:not-only:not-first:after:bottom-[6px] group-[.is-button-group]/items:not-only:not-first:after:left-0 group-[.is-button-group]/items:not-only:not-first:after:w-px group-[.is-button-group]/items:not-only:not-first:after:bg-current/30"
|
|
50
86
|
},
|
|
51
87
|
"color": {
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"secondary": "
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
88
|
+
"air-primary": "--style-filled",
|
|
89
|
+
"air-primary-success": "--style-filled-success",
|
|
90
|
+
"air-primary-alert": "--style-filled-alert",
|
|
91
|
+
"air-primary-copilot": "--style-filled-copilot",
|
|
92
|
+
"air-secondary": "--style-tinted",
|
|
93
|
+
"air-secondary-alert": "--style-tinted-alert",
|
|
94
|
+
"air-secondary-accent": "--style-outline",
|
|
95
|
+
"air-secondary-accent-1": "--style-outline-accent-1",
|
|
96
|
+
"air-secondary-accent-2": "--style-outline-accent-2",
|
|
97
|
+
"air-secondary-no-accent": "--style-outline-no-accent",
|
|
98
|
+
"air-tertiary": "--style-plain",
|
|
99
|
+
"air-tertiary-accent": "--style-plain-accent",
|
|
100
|
+
"air-tertiary-no-accent": "--style-plain-no-accent",
|
|
101
|
+
"air-selection": "--style-selection",
|
|
102
|
+
"air-boost": {
|
|
103
|
+
"base": "--style-filled-boost bg-transparent hover:bg-transparent focus:bg-transparent active:bg-transparent disabled:bg-transparent aria-disabled:bg-transparent from-0% via-58.65% to-100% bg-radial-[110.42%_110.42%_at_-10.42%_31.25%] from-(--ui-color-design-filled-boost-bg-gradient-1) via-(--ui-color-design-filled-boost-bg-gradient-2) to-(--ui-color-design-filled-boost-bg-gradient-3) hover:bg-radial-[110.42%_110.42%_at_-10.42%_31.25%] hover:from-(--hover-color-1) via-(--hover-color-2) hover:via-58.65% hover:to-(--hover-color-3) focus:bg-radial-[110.42%_110.42%_at_-10.42%_31.25%] focus:from-(--hover-color-1) via-(--hover-color-2) focus:via-58.65% to-(--hover-color-3) active:bg-radial-[110.42%_110.42%_at_-10.42%_31.25%] active:from-(--active-color-1) via-(--active-color-2) active:via-58.65% to-(--active-color-3) disabled:bg-radial-[110.42%_110.42%_at_-10.42%_31.25%] disabled:from-(--ui-color-design-filled-boost-bg-gradient-1) via-(--ui-color-design-filled-boost-bg-gradient-2) to-(--ui-color-design-filled-boost-bg-gradient-3) aria-disabled:bg-radial-[110.42%_110.42%_at_-10.42%_31.25%] aria-disabled:from-(--ui-color-design-filled-boost-bg-gradient-1) aria-disabled:via-(--ui-color-design-filled-boost-bg-gradient-2) aria-disabled:to-(--ui-color-design-filled-boost-bg-gradient-3)"
|
|
104
|
+
},
|
|
105
|
+
"default": "",
|
|
106
|
+
"danger": "",
|
|
107
|
+
"success": "",
|
|
108
|
+
"warning": "",
|
|
109
|
+
"primary": "",
|
|
110
|
+
"secondary": "",
|
|
111
|
+
"collab": "",
|
|
112
|
+
"ai": "",
|
|
113
|
+
"link": ""
|
|
61
114
|
},
|
|
62
115
|
"depth": {
|
|
63
116
|
"light": "",
|
|
@@ -65,55 +118,60 @@ export default {
|
|
|
65
118
|
"dark": ""
|
|
66
119
|
},
|
|
67
120
|
"size": {
|
|
121
|
+
"xss": {
|
|
122
|
+
"base": "ui-btn-xss",
|
|
123
|
+
"leadingAvatarSize": "2xs"
|
|
124
|
+
},
|
|
68
125
|
"xs": {
|
|
69
|
-
"base": "
|
|
70
|
-
"
|
|
71
|
-
"leadingIcon": "size-5",
|
|
72
|
-
"leadingAvatarSize": "2xs",
|
|
73
|
-
"trailingIcon": "size-md2"
|
|
126
|
+
"base": "ui-btn-xs",
|
|
127
|
+
"leadingAvatarSize": "2xs"
|
|
74
128
|
},
|
|
75
129
|
"sm": {
|
|
76
|
-
"base": "
|
|
77
|
-
"
|
|
78
|
-
"leadingIcon": "size-6",
|
|
79
|
-
"leadingAvatarSize": "xs",
|
|
80
|
-
"trailingIcon": "size-lg"
|
|
130
|
+
"base": "ui-btn-sm",
|
|
131
|
+
"leadingAvatarSize": "xs"
|
|
81
132
|
},
|
|
82
133
|
"md": {
|
|
83
|
-
"base": "
|
|
84
|
-
"
|
|
85
|
-
"leadingIcon": "size-xl2",
|
|
86
|
-
"leadingAvatarSize": "sm",
|
|
87
|
-
"trailingIcon": "size-lg"
|
|
134
|
+
"base": "ui-btn-md",
|
|
135
|
+
"leadingAvatarSize": "xs"
|
|
88
136
|
},
|
|
89
137
|
"lg": {
|
|
90
|
-
"base": "
|
|
91
|
-
"
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
"
|
|
138
|
+
"base": "ui-btn-lg",
|
|
139
|
+
"leadingAvatarSize": "md"
|
|
140
|
+
},
|
|
141
|
+
"xl": {
|
|
142
|
+
"base": "ui-btn-xl",
|
|
143
|
+
"leadingAvatarSize": "md"
|
|
95
144
|
}
|
|
96
145
|
},
|
|
97
146
|
"block": {
|
|
98
147
|
"true": {
|
|
99
|
-
"base": "w-full"
|
|
100
|
-
"baseLine": "w-full justify-center",
|
|
101
|
-
"trailingIcon": "ms-auto"
|
|
148
|
+
"base": "w-full"
|
|
102
149
|
}
|
|
103
150
|
},
|
|
104
151
|
"rounded": {
|
|
105
|
-
"true": "rounded-
|
|
106
|
-
"false": "rounded-
|
|
152
|
+
"true": "rounded-(--ui-border-radius-lg)",
|
|
153
|
+
"false": "rounded-(--ui-btn-radius)"
|
|
107
154
|
},
|
|
108
155
|
"leading": {
|
|
109
156
|
"true": ""
|
|
110
157
|
},
|
|
158
|
+
"active": {
|
|
159
|
+
"true": {
|
|
160
|
+
"base": ""
|
|
161
|
+
},
|
|
162
|
+
"false": {
|
|
163
|
+
"base": ""
|
|
164
|
+
}
|
|
165
|
+
},
|
|
111
166
|
"useLabel": {
|
|
112
167
|
"true": "",
|
|
113
|
-
"false":
|
|
168
|
+
"false": {
|
|
169
|
+
"baseLine": "ps-[4px] pe-[4px]",
|
|
170
|
+
"leadingAvatar": "me-0"
|
|
171
|
+
}
|
|
114
172
|
},
|
|
115
173
|
"useDropdown": {
|
|
116
|
-
"true": "
|
|
174
|
+
"true": ""
|
|
117
175
|
},
|
|
118
176
|
"useWait": {
|
|
119
177
|
"true": ""
|
|
@@ -125,229 +183,180 @@ export default {
|
|
|
125
183
|
"true": ""
|
|
126
184
|
},
|
|
127
185
|
"normalCase": {
|
|
128
|
-
"true": "
|
|
129
|
-
"false": "
|
|
186
|
+
"true": "normal-case",
|
|
187
|
+
"false": "uppercase"
|
|
130
188
|
},
|
|
131
|
-
"
|
|
132
|
-
"true":
|
|
133
|
-
|
|
134
|
-
},
|
|
135
|
-
"false": {
|
|
136
|
-
"base": ""
|
|
137
|
-
}
|
|
189
|
+
"isAir": {
|
|
190
|
+
"true": "--air",
|
|
191
|
+
"false": ""
|
|
138
192
|
}
|
|
139
193
|
},
|
|
140
194
|
"compoundVariants": [
|
|
141
195
|
{
|
|
142
196
|
"color": "default" as typeof color[number],
|
|
143
197
|
"depth": "light" as typeof depth[number],
|
|
144
|
-
"class": "
|
|
198
|
+
"class": "--style-default-light"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"color": "default" as typeof color[number],
|
|
202
|
+
"depth": "normal" as typeof depth[number],
|
|
203
|
+
"class": "--style-default"
|
|
145
204
|
},
|
|
146
205
|
{
|
|
147
206
|
"color": "default" as typeof color[number],
|
|
148
207
|
"depth": "dark" as typeof depth[number],
|
|
149
|
-
"class": "
|
|
208
|
+
"class": "--style-default-dark"
|
|
150
209
|
},
|
|
151
210
|
{
|
|
152
211
|
"color": "danger" as typeof color[number],
|
|
153
212
|
"depth": "light" as typeof depth[number],
|
|
154
|
-
"class": "
|
|
213
|
+
"class": "--style-danger-light"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"color": "danger" as typeof color[number],
|
|
217
|
+
"depth": "normal" as typeof depth[number],
|
|
218
|
+
"class": "--style-danger"
|
|
155
219
|
},
|
|
156
220
|
{
|
|
157
221
|
"color": "danger" as typeof color[number],
|
|
158
222
|
"depth": "dark" as typeof depth[number],
|
|
159
|
-
"class": "
|
|
223
|
+
"class": "--style-danger-dark"
|
|
160
224
|
},
|
|
161
225
|
{
|
|
162
226
|
"color": "success" as typeof color[number],
|
|
163
227
|
"depth": "light" as typeof depth[number],
|
|
164
|
-
"class": "
|
|
228
|
+
"class": "--style-success-light"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"color": "success" as typeof color[number],
|
|
232
|
+
"depth": "normal" as typeof depth[number],
|
|
233
|
+
"class": "--style-success"
|
|
165
234
|
},
|
|
166
235
|
{
|
|
167
236
|
"color": "success" as typeof color[number],
|
|
168
237
|
"depth": "dark" as typeof depth[number],
|
|
169
|
-
"class": "
|
|
238
|
+
"class": "--style-success-dark"
|
|
170
239
|
},
|
|
171
240
|
{
|
|
172
241
|
"color": "warning" as typeof color[number],
|
|
173
242
|
"depth": "light" as typeof depth[number],
|
|
174
|
-
"class": "
|
|
243
|
+
"class": "--style-warning-light"
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"color": "warning" as typeof color[number],
|
|
247
|
+
"depth": "normal" as typeof depth[number],
|
|
248
|
+
"class": "--style-warning"
|
|
175
249
|
},
|
|
176
250
|
{
|
|
177
251
|
"color": "warning" as typeof color[number],
|
|
178
252
|
"depth": "dark" as typeof depth[number],
|
|
179
|
-
"class": "
|
|
253
|
+
"class": "--style-warning-dark"
|
|
180
254
|
},
|
|
181
255
|
{
|
|
182
256
|
"color": "primary" as typeof color[number],
|
|
183
257
|
"depth": "light" as typeof depth[number],
|
|
184
|
-
"class": "
|
|
258
|
+
"class": "--style-primary-light"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"color": "primary" as typeof color[number],
|
|
262
|
+
"depth": "normal" as typeof depth[number],
|
|
263
|
+
"class": "--style-primary"
|
|
185
264
|
},
|
|
186
265
|
{
|
|
187
266
|
"color": "primary" as typeof color[number],
|
|
188
267
|
"depth": "dark" as typeof depth[number],
|
|
189
|
-
"class": "
|
|
268
|
+
"class": "--style-primary-dark"
|
|
190
269
|
},
|
|
191
270
|
{
|
|
192
271
|
"color": "secondary" as typeof color[number],
|
|
193
272
|
"depth": "light" as typeof depth[number],
|
|
194
|
-
"class": "
|
|
273
|
+
"class": "--style-secondary-light"
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"color": "secondary" as typeof color[number],
|
|
277
|
+
"depth": "normal" as typeof depth[number],
|
|
278
|
+
"class": "--style-secondary"
|
|
195
279
|
},
|
|
196
280
|
{
|
|
197
281
|
"color": "secondary" as typeof color[number],
|
|
198
282
|
"depth": "dark" as typeof depth[number],
|
|
199
|
-
"class": "
|
|
283
|
+
"class": "--style-secondary-dark"
|
|
200
284
|
},
|
|
201
285
|
{
|
|
202
286
|
"color": "collab" as typeof color[number],
|
|
203
287
|
"depth": "light" as typeof depth[number],
|
|
204
|
-
"class": "
|
|
288
|
+
"class": "--style-collab-light"
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"color": "collab" as typeof color[number],
|
|
292
|
+
"depth": "normal" as typeof depth[number],
|
|
293
|
+
"class": "--style-collab"
|
|
205
294
|
},
|
|
206
295
|
{
|
|
207
296
|
"color": "collab" as typeof color[number],
|
|
208
297
|
"depth": "dark" as typeof depth[number],
|
|
209
|
-
"class": "
|
|
298
|
+
"class": "--style-collab-dark"
|
|
210
299
|
},
|
|
211
300
|
{
|
|
212
301
|
"color": "ai" as typeof color[number],
|
|
213
302
|
"depth": "light" as typeof depth[number],
|
|
214
|
-
"class": "
|
|
303
|
+
"class": "--style-ai-light"
|
|
215
304
|
},
|
|
216
305
|
{
|
|
217
306
|
"color": "ai" as typeof color[number],
|
|
218
|
-
"depth": "
|
|
219
|
-
"class": "
|
|
307
|
+
"depth": "normal" as typeof depth[number],
|
|
308
|
+
"class": "--style-ai"
|
|
220
309
|
},
|
|
221
310
|
{
|
|
222
|
-
"color": "
|
|
223
|
-
"depth": "
|
|
224
|
-
"class": "
|
|
311
|
+
"color": "ai" as typeof color[number],
|
|
312
|
+
"depth": "dark" as typeof depth[number],
|
|
313
|
+
"class": "--style-ai-dark"
|
|
225
314
|
},
|
|
226
315
|
{
|
|
227
316
|
"color": "link" as typeof color[number],
|
|
228
317
|
"depth": "light" as typeof depth[number],
|
|
229
|
-
"
|
|
230
|
-
"class": "ps-1.5 pe-1.5"
|
|
318
|
+
"class": "--style-link-light"
|
|
231
319
|
},
|
|
232
320
|
{
|
|
233
321
|
"color": "link" as typeof color[number],
|
|
234
322
|
"depth": "normal" as typeof depth[number],
|
|
235
|
-
"
|
|
236
|
-
"class": "ps-0 pe-0"
|
|
323
|
+
"class": "--style-link"
|
|
237
324
|
},
|
|
238
325
|
{
|
|
239
326
|
"color": "link" as typeof color[number],
|
|
240
327
|
"depth": "dark" as typeof depth[number],
|
|
241
|
-
"class": "
|
|
328
|
+
"class": "--style-link-dark"
|
|
242
329
|
},
|
|
243
330
|
{
|
|
244
|
-
"size": "xs" as typeof size[number],
|
|
245
331
|
"leading": true,
|
|
246
332
|
"useLabel": true,
|
|
247
333
|
"useDropdown": false,
|
|
248
|
-
"class":
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
"size": "sm" as typeof size[number],
|
|
252
|
-
"leading": true,
|
|
253
|
-
"useLabel": true,
|
|
254
|
-
"useDropdown": false,
|
|
255
|
-
"class": "ps-2.5 pe-[18px]"
|
|
256
|
-
},
|
|
257
|
-
{
|
|
258
|
-
"size": "md" as typeof size[number],
|
|
259
|
-
"leading": true,
|
|
260
|
-
"useLabel": true,
|
|
261
|
-
"useDropdown": false,
|
|
262
|
-
"class": "ps-3.5 pe-5"
|
|
263
|
-
},
|
|
264
|
-
{
|
|
265
|
-
"size": "lg" as typeof size[number],
|
|
266
|
-
"leading": true,
|
|
267
|
-
"useLabel": true,
|
|
268
|
-
"useDropdown": false,
|
|
269
|
-
"class": "ps-4 pe-[28px]"
|
|
270
|
-
},
|
|
271
|
-
{
|
|
272
|
-
"size": "xs" as typeof size[number],
|
|
273
|
-
"leading": false,
|
|
274
|
-
"useLabel": true,
|
|
275
|
-
"useDropdown": true,
|
|
276
|
-
"class": "ps-4 pe-1.5"
|
|
277
|
-
},
|
|
278
|
-
{
|
|
279
|
-
"size": "sm" as typeof size[number],
|
|
280
|
-
"leading": false,
|
|
281
|
-
"useLabel": true,
|
|
282
|
-
"useDropdown": true,
|
|
283
|
-
"class": "ps-[18px] pe-1.5"
|
|
284
|
-
},
|
|
285
|
-
{
|
|
286
|
-
"size": "md" as typeof size[number],
|
|
287
|
-
"leading": false,
|
|
288
|
-
"useLabel": true,
|
|
289
|
-
"useDropdown": true,
|
|
290
|
-
"class": "ps-5 pe-2.5"
|
|
334
|
+
"class": {
|
|
335
|
+
"baseLine": "ps-[calc(var(--ui-btn-padding-left)_-_var(--ui-btn-icon-compensation))]"
|
|
336
|
+
}
|
|
291
337
|
},
|
|
292
338
|
{
|
|
293
|
-
"size": "lg" as typeof size[number],
|
|
294
339
|
"leading": false,
|
|
295
340
|
"useLabel": true,
|
|
296
341
|
"useDropdown": true,
|
|
297
|
-
"class":
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
"size": "xs" as typeof size[number],
|
|
301
|
-
"leading": true,
|
|
302
|
-
"useLabel": true,
|
|
303
|
-
"useDropdown": true,
|
|
304
|
-
"class": "ps-1.5 pe-1.5"
|
|
305
|
-
},
|
|
306
|
-
{
|
|
307
|
-
"size": "sm" as typeof size[number],
|
|
308
|
-
"leading": true,
|
|
309
|
-
"useLabel": true,
|
|
310
|
-
"useDropdown": true,
|
|
311
|
-
"class": "ps-2.5 pe-1.5"
|
|
312
|
-
},
|
|
313
|
-
{
|
|
314
|
-
"size": "md" as typeof size[number],
|
|
315
|
-
"leading": true,
|
|
316
|
-
"useLabel": true,
|
|
317
|
-
"useDropdown": true,
|
|
318
|
-
"class": "ps-3.5 pe-2.5"
|
|
342
|
+
"class": {
|
|
343
|
+
"baseLine": "pe-[calc(var(--ui-btn-padding-right)_-_var(--ui-btn-icon-compensation))]"
|
|
344
|
+
}
|
|
319
345
|
},
|
|
320
346
|
{
|
|
321
|
-
"size": "lg" as typeof size[number],
|
|
322
347
|
"leading": true,
|
|
323
348
|
"useLabel": true,
|
|
324
349
|
"useDropdown": true,
|
|
325
|
-
"class":
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
"normalCase": true,
|
|
329
|
-
"size": "xs" as typeof size[number],
|
|
330
|
-
"class": "text-xs"
|
|
331
|
-
},
|
|
332
|
-
{
|
|
333
|
-
"normalCase": true,
|
|
334
|
-
"size": "sm" as typeof size[number],
|
|
335
|
-
"class": "text-sm"
|
|
336
|
-
},
|
|
337
|
-
{
|
|
338
|
-
"normalCase": true,
|
|
339
|
-
"size": "md" as typeof size[number],
|
|
340
|
-
"class": "text-md"
|
|
341
|
-
},
|
|
342
|
-
{
|
|
343
|
-
"normalCase": true,
|
|
344
|
-
"size": "lg" as typeof size[number],
|
|
345
|
-
"class": "text-md"
|
|
350
|
+
"class": {
|
|
351
|
+
"baseLine": "ps-[calc(var(--ui-btn-padding-left)_-_var(--ui-btn-icon-compensation))] pe-[calc(var(--ui-btn-padding-right)_-_var(--ui-btn-icon-compensation))]"
|
|
352
|
+
}
|
|
346
353
|
}
|
|
347
354
|
],
|
|
348
355
|
"defaultVariants": {
|
|
349
356
|
"size": "md" as typeof size[number],
|
|
350
|
-
"color": "
|
|
351
|
-
"depth": "normal" as typeof depth[number]
|
|
357
|
+
"color": "air-secondary-no-accent" as typeof color[number],
|
|
358
|
+
"depth": "normal" as typeof depth[number],
|
|
359
|
+
"normalCase": true,
|
|
360
|
+
"isAir": true
|
|
352
361
|
}
|
|
353
362
|
}
|