@bitrix24/b24ui-nuxt 0.7.2 → 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 +0 -1
- package/dist/runtime/types/index.js +0 -1
- 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/switch.ts
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
const color = [
|
|
2
|
+
"air-primary",
|
|
3
|
+
"air-primary-success",
|
|
4
|
+
"air-primary-alert",
|
|
5
|
+
"air-primary-copilot",
|
|
6
|
+
"air-primary-warning",
|
|
2
7
|
"default",
|
|
3
8
|
"danger",
|
|
4
9
|
"success",
|
|
@@ -19,78 +24,84 @@ const size = [
|
|
|
19
24
|
export default {
|
|
20
25
|
"slots": {
|
|
21
26
|
"root": "relative flex items-start",
|
|
22
|
-
"base": "cursor-pointer inline-flex items-center shrink-0 rounded-
|
|
27
|
+
"base": "cursor-pointer inline-flex items-center shrink-0 rounded-(--ui-border-radius-pill) outline-(--ui-color-background-transparent) focus-visible:outline-2 focus-visible:outline-offset-2 transition-[background] duration-200 border-2 border-(--ui-color-background-transparent) data-[state=unchecked]:bg-(--ui-color-base-5) data-[state=checked]:bg-(--b24ui-background) focus-visible:outline-(--b24ui-border-color)",
|
|
23
28
|
"container": "flex items-center",
|
|
24
|
-
"thumb": "group pointer-events-none
|
|
25
|
-
"icon": "absolute shrink-0 group-data-[state=unchecked]:text-base-
|
|
26
|
-
"wrapper": "font-
|
|
27
|
-
"label": "cursor-pointer block text-
|
|
28
|
-
"description": "text-
|
|
29
|
+
"thumb": "group pointer-events-none flex items-center justify-center rounded-(--ui-border-radius-pill) bg-(--ui-color-base-white-fixed) shadow-lg ring-0 transition-transform duration-200 data-[state=unchecked]:translate-x-0 data-[state=unchecked]:rtl:-translate-x-0",
|
|
30
|
+
"icon": "absolute shrink-0 group-data-[state=unchecked]:text-(--ui-color-base-5) edge-dark:group-data-[state=unchecked]:text-(--ui-color-gray-60) opacity-0 p-0.5 size-full transition-[color,opacity] duration-200 group-data-[state=checked]:text-(--b24ui-background)",
|
|
31
|
+
"wrapper": "font-[family-name:var(--ui-font-family-primary)] font-(--ui-font-weight-regular) ms-2",
|
|
32
|
+
"label": "cursor-pointer block text-(--b24ui-typography-label-color)",
|
|
33
|
+
"description": "text-(--b24ui-typography-description-color)"
|
|
29
34
|
},
|
|
30
35
|
"variants": {
|
|
31
36
|
"color": {
|
|
37
|
+
"air-primary": {
|
|
38
|
+
"base": "style-filled"
|
|
39
|
+
},
|
|
40
|
+
"air-primary-success": {
|
|
41
|
+
"base": "style-filled-success"
|
|
42
|
+
},
|
|
43
|
+
"air-primary-alert": {
|
|
44
|
+
"base": "style-filled-alert"
|
|
45
|
+
},
|
|
46
|
+
"air-primary-copilot": {
|
|
47
|
+
"base": "style-filled-copilot"
|
|
48
|
+
},
|
|
49
|
+
"air-primary-warning": {
|
|
50
|
+
"base": "style-filled-warning"
|
|
51
|
+
},
|
|
32
52
|
"default": {
|
|
33
|
-
"base": "
|
|
34
|
-
"icon": "group-data-[state=checked]:text-base-900 dark:group-data-[state=checked]:text-base-900",
|
|
35
|
-
"thumb": "dark:data-[state=checked]:bg-base-master"
|
|
53
|
+
"base": "style-old-default"
|
|
36
54
|
},
|
|
37
55
|
"danger": {
|
|
38
|
-
"base": "
|
|
39
|
-
"icon": "group-data-[state=checked]:text-red-500 dark:group-data-[state=checked]:text-red-600"
|
|
56
|
+
"base": "style-old-danger"
|
|
40
57
|
},
|
|
41
58
|
"success": {
|
|
42
|
-
"base": "
|
|
43
|
-
"icon": "group-data-[state=checked]:text-green-500 dark:group-data-[state=checked]:text-green-600"
|
|
59
|
+
"base": "style-old-success"
|
|
44
60
|
},
|
|
45
61
|
"warning": {
|
|
46
|
-
"base": "
|
|
47
|
-
"icon": "group-data-[state=checked]:text-orange-500 dark:group-data-[state=checked]:text-orange-600"
|
|
62
|
+
"base": "style-old-warning"
|
|
48
63
|
},
|
|
49
64
|
"primary": {
|
|
50
|
-
"base": "
|
|
51
|
-
"icon": "group-data-[state=checked]:text-blue-500 dark:group-data-[state=checked]:text-blue-600"
|
|
65
|
+
"base": "style-old-primary"
|
|
52
66
|
},
|
|
53
67
|
"secondary": {
|
|
54
|
-
"base": "
|
|
55
|
-
"icon": "group-data-[state=checked]:text-cyan-350 dark:group-data-[state=checked]:text-cyan-500"
|
|
68
|
+
"base": "style-old-secondary"
|
|
56
69
|
},
|
|
57
70
|
"collab": {
|
|
58
|
-
"base": "
|
|
59
|
-
"icon": "group-data-[state=checked]:text-collab-500 dark:group-data-[state=checked]:text-collab-600"
|
|
71
|
+
"base": "style-old-collab"
|
|
60
72
|
},
|
|
61
73
|
"ai": {
|
|
62
|
-
"base": "
|
|
63
|
-
"icon": "group-data-[state=checked]:text-ai-500 dark:group-data-[state=checked]:text-ai-600"
|
|
74
|
+
"base": "style-old-ai"
|
|
64
75
|
}
|
|
65
76
|
},
|
|
66
77
|
"size": {
|
|
67
78
|
"xs": {
|
|
68
|
-
"base": "w-
|
|
69
|
-
"container": "h-
|
|
70
|
-
"thumb": "size-
|
|
71
|
-
"wrapper": "text-xs",
|
|
72
|
-
"label": "leading-
|
|
79
|
+
"base": "w-[28px]",
|
|
80
|
+
"container": "h-[16px]",
|
|
81
|
+
"thumb": "size-[12px] data-[state=checked]:translate-x-3 data-[state=checked]:rtl:-translate-x-3",
|
|
82
|
+
"wrapper": "text-(length:--ui-font-size-xs)",
|
|
83
|
+
"label": "leading-[16px]"
|
|
73
84
|
},
|
|
74
85
|
"sm": {
|
|
75
|
-
"base": "w-
|
|
76
|
-
"container": "h-
|
|
77
|
-
"thumb": "size-
|
|
78
|
-
"wrapper": "text-sm",
|
|
79
|
-
"label": "leading-
|
|
86
|
+
"base": "w-[32px]",
|
|
87
|
+
"container": "h-[16px]",
|
|
88
|
+
"thumb": "size-[14px] data-[state=checked]:translate-x-3.5 data-[state=checked]:rtl:-translate-x-3.5",
|
|
89
|
+
"wrapper": "text-(length:--ui-font-size-sm)",
|
|
90
|
+
"label": "leading-[16px]"
|
|
80
91
|
},
|
|
81
92
|
"md": {
|
|
82
|
-
"base": "w-
|
|
83
|
-
"container": "h-
|
|
84
|
-
"thumb": "size-
|
|
85
|
-
"wrapper": "text-md",
|
|
86
|
-
"label": "leading-
|
|
93
|
+
"base": "w-[36px]",
|
|
94
|
+
"container": "h-[20px]",
|
|
95
|
+
"thumb": "size-[16px] data-[state=checked]:translate-x-4 data-[state=checked]:rtl:-translate-x-4",
|
|
96
|
+
"wrapper": "text-(length:--ui-font-size-md)",
|
|
97
|
+
"label": "leading-[20px]"
|
|
87
98
|
},
|
|
88
99
|
"lg": {
|
|
89
|
-
"base": "w-
|
|
90
|
-
"container": "h-
|
|
91
|
-
"thumb": "size-
|
|
92
|
-
"wrapper": "text-xl",
|
|
93
|
-
"label": "leading-
|
|
100
|
+
"base": "w-[40px]",
|
|
101
|
+
"container": "h-[20px]",
|
|
102
|
+
"thumb": "size-[20px] data-[state=checked]:translate-x-4 data-[state=checked]:rtl:-translate-x-4",
|
|
103
|
+
"wrapper": "text-(length:--ui-font-size-xl)",
|
|
104
|
+
"label": "leading-[20px]"
|
|
94
105
|
}
|
|
95
106
|
},
|
|
96
107
|
"checked": {
|
|
@@ -110,19 +121,19 @@ export default {
|
|
|
110
121
|
},
|
|
111
122
|
"required": {
|
|
112
123
|
"true": {
|
|
113
|
-
"label": "after:content-['*'] after:ms-0.5 after:text-
|
|
124
|
+
"label": "after:content-['*'] after:ms-0.5 after:text-(--ui-color-accent-main-alert)"
|
|
114
125
|
}
|
|
115
126
|
},
|
|
116
127
|
"disabled": {
|
|
117
128
|
"true": {
|
|
118
|
-
"base": "cursor-not-allowed opacity-
|
|
119
|
-
"label": "cursor-not-allowed opacity-
|
|
120
|
-
"description": "cursor-not-allowed opacity-
|
|
129
|
+
"base": "cursor-not-allowed opacity-30",
|
|
130
|
+
"label": "cursor-not-allowed opacity-30",
|
|
131
|
+
"description": "cursor-not-allowed opacity-30"
|
|
121
132
|
}
|
|
122
133
|
}
|
|
123
134
|
},
|
|
124
135
|
"defaultVariants": {
|
|
125
|
-
"color": "primary" as typeof color[number],
|
|
136
|
+
"color": "air-primary" as typeof color[number],
|
|
126
137
|
"size": "md" as typeof size[number]
|
|
127
138
|
}
|
|
128
139
|
}
|
package/.nuxt/b24ui/tabs.ts
CHANGED
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
const color = [
|
|
2
|
-
"default",
|
|
3
|
-
"danger",
|
|
4
|
-
"success",
|
|
5
|
-
"warning",
|
|
6
|
-
"primary",
|
|
7
|
-
"secondary",
|
|
8
|
-
"collab",
|
|
9
|
-
"ai"
|
|
10
|
-
] as const
|
|
11
|
-
|
|
12
1
|
const variant = [
|
|
13
|
-
"pill",
|
|
14
2
|
"link"
|
|
15
3
|
] as const
|
|
16
4
|
|
|
@@ -20,6 +8,7 @@ const orientation = [
|
|
|
20
8
|
] as const
|
|
21
9
|
|
|
22
10
|
const size = [
|
|
11
|
+
"xss",
|
|
23
12
|
"xs",
|
|
24
13
|
"sm",
|
|
25
14
|
"md",
|
|
@@ -29,36 +18,26 @@ const size = [
|
|
|
29
18
|
|
|
30
19
|
export default {
|
|
31
20
|
"slots": {
|
|
32
|
-
"root":
|
|
21
|
+
"root": [
|
|
22
|
+
"style-outline-accent-2",
|
|
23
|
+
"flex items-center gap-2"
|
|
24
|
+
],
|
|
33
25
|
"list": "relative flex p-1 group",
|
|
34
26
|
"indicator": "absolute transition-[translate,width] duration-200",
|
|
35
|
-
"trigger": "group relative inline-flex items-center min-w-0 data-[state=inactive]:text-
|
|
36
|
-
"content": "focus:outline-none w-full",
|
|
27
|
+
"trigger": "group relative inline-flex items-center min-w-0 data-[state=inactive]:text-(--ui-color-design-plain-na-content) hover:data-[state=inactive]:not-disabled:text-(--ui-color-design-selection-content) font-(--ui-font-weight-medium) cursor-pointer disabled:cursor-not-allowed disabled:opacity-30 transition-colors rounded-(--ui-border-radius-md)",
|
|
37
28
|
"leadingIcon": "shrink-0",
|
|
38
29
|
"leadingAvatar": "shrink-0",
|
|
39
30
|
"leadingAvatarSize": "",
|
|
40
|
-
"label": ""
|
|
31
|
+
"label": "",
|
|
32
|
+
"trailingBadge": "shrink-0",
|
|
33
|
+
"trailingBadgeSize": "sm",
|
|
34
|
+
"content": "focus:outline-none w-full"
|
|
41
35
|
},
|
|
42
36
|
"variants": {
|
|
43
|
-
"color": {
|
|
44
|
-
"default": "",
|
|
45
|
-
"danger": "",
|
|
46
|
-
"success": "",
|
|
47
|
-
"warning": "",
|
|
48
|
-
"primary": "",
|
|
49
|
-
"secondary": "",
|
|
50
|
-
"collab": "",
|
|
51
|
-
"ai": ""
|
|
52
|
-
},
|
|
53
37
|
"variant": {
|
|
54
|
-
"pill": {
|
|
55
|
-
"list": "bg-base-100 dark:bg-transparent rounded-md",
|
|
56
|
-
"trigger": "grow",
|
|
57
|
-
"indicator": "rounded-xl shadow-xs"
|
|
58
|
-
},
|
|
59
38
|
"link": {
|
|
60
|
-
"list": "border-
|
|
61
|
-
"indicator": "rounded-
|
|
39
|
+
"list": "border-(--ui-color-divider-vibrant-accent-more)",
|
|
40
|
+
"indicator": "rounded-(--ui-border-radius-pill)",
|
|
62
41
|
"trigger": "focus:outline-none"
|
|
63
42
|
}
|
|
64
43
|
},
|
|
@@ -75,41 +54,39 @@ export default {
|
|
|
75
54
|
}
|
|
76
55
|
},
|
|
77
56
|
"size": {
|
|
57
|
+
"xss": {
|
|
58
|
+
"trigger": "px-2 py-1 text-(length:--ui-font-size-4xs)/[normal] gap-1",
|
|
59
|
+
"leadingIcon": "size-4",
|
|
60
|
+
"leadingAvatarSize": "3xs"
|
|
61
|
+
},
|
|
78
62
|
"xs": {
|
|
79
|
-
"trigger": "px-2 py-1 text-xs gap-1",
|
|
63
|
+
"trigger": "px-2 py-1 text-(length:--ui-font-size-xs)/[normal] gap-1",
|
|
80
64
|
"leadingIcon": "size-4",
|
|
81
65
|
"leadingAvatarSize": "3xs"
|
|
82
66
|
},
|
|
83
67
|
"sm": {
|
|
84
|
-
"trigger": "px-2.5 py-1.5 text-
|
|
68
|
+
"trigger": "px-2.5 py-1.5 text-(length:--ui-font-size-sm)/[normal] gap-1.5",
|
|
85
69
|
"leadingIcon": "size-4",
|
|
86
70
|
"leadingAvatarSize": "3xs"
|
|
87
71
|
},
|
|
88
72
|
"md": {
|
|
89
|
-
"trigger": "px-3 py-1.5 text-
|
|
73
|
+
"trigger": "px-3 py-1.5 text-(length:--ui-font-size-md)/[normal] gap-1.5",
|
|
90
74
|
"leadingIcon": "size-5",
|
|
91
75
|
"leadingAvatarSize": "2xs"
|
|
92
76
|
},
|
|
93
77
|
"lg": {
|
|
94
|
-
"trigger": "px-3 py-2 text-
|
|
78
|
+
"trigger": "px-3 py-2 text-(length:--ui-font-size-lg)/[normal] gap-2",
|
|
95
79
|
"leadingIcon": "size-5",
|
|
96
80
|
"leadingAvatarSize": "2xs"
|
|
97
81
|
},
|
|
98
82
|
"xl": {
|
|
99
|
-
"trigger": "px-3 py-2 text-
|
|
83
|
+
"trigger": "px-3 py-2 text-(length:--ui-font-size-xl)/[normal] gap-2",
|
|
100
84
|
"leadingIcon": "size-6",
|
|
101
85
|
"leadingAvatarSize": "xs"
|
|
102
86
|
}
|
|
103
87
|
}
|
|
104
88
|
},
|
|
105
89
|
"compoundVariants": [
|
|
106
|
-
{
|
|
107
|
-
"orientation": "horizontal" as typeof orientation[number],
|
|
108
|
-
"variant": "pill" as typeof variant[number],
|
|
109
|
-
"class": {
|
|
110
|
-
"indicator": "inset-y-1"
|
|
111
|
-
}
|
|
112
|
-
},
|
|
113
90
|
{
|
|
114
91
|
"orientation": "horizontal" as typeof orientation[number],
|
|
115
92
|
"variant": "link" as typeof variant[number],
|
|
@@ -118,14 +95,6 @@ export default {
|
|
|
118
95
|
"indicator": "-bottom-px h-px"
|
|
119
96
|
}
|
|
120
97
|
},
|
|
121
|
-
{
|
|
122
|
-
"orientation": "vertical" as typeof orientation[number],
|
|
123
|
-
"variant": "pill" as typeof variant[number],
|
|
124
|
-
"class": {
|
|
125
|
-
"indicator": "inset-x-1",
|
|
126
|
-
"list": "items-center"
|
|
127
|
-
}
|
|
128
|
-
},
|
|
129
98
|
{
|
|
130
99
|
"orientation": "vertical" as typeof orientation[number],
|
|
131
100
|
"variant": "link" as typeof variant[number],
|
|
@@ -135,200 +104,18 @@ export default {
|
|
|
135
104
|
}
|
|
136
105
|
},
|
|
137
106
|
{
|
|
138
|
-
"color": "default" as typeof color[number],
|
|
139
|
-
"variant": "pill" as typeof variant[number],
|
|
140
|
-
"class": {
|
|
141
|
-
"indicator": "bg-base-900 dark:bg-base-900",
|
|
142
|
-
"trigger": [
|
|
143
|
-
"data-[state=active]:text-white focus-visible:outline-base-900",
|
|
144
|
-
"dark:data-[state=active]:text-base-200 dark:focus-visible:outline-base-900",
|
|
145
|
-
"focus-visible:outline-2 focus-visible:outline-offset-2]"
|
|
146
|
-
]
|
|
147
|
-
}
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
"color": "default" as typeof color[number],
|
|
151
|
-
"variant": "link" as typeof variant[number],
|
|
152
|
-
"class": {
|
|
153
|
-
"indicator": "bg-base-900 dark:dark:bg-base-350",
|
|
154
|
-
"trigger": [
|
|
155
|
-
"focus-visible:ring-2 focus-visible:ring-inset",
|
|
156
|
-
"data-[state=active]:text-base-900 focus-visible:ring-base-900",
|
|
157
|
-
"dark:data-[state=active]:text-base-350 dark:focus-visible:ring-base-350"
|
|
158
|
-
]
|
|
159
|
-
}
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
"color": "danger" as typeof color[number],
|
|
163
|
-
"variant": "pill" as typeof variant[number],
|
|
164
|
-
"class": {
|
|
165
|
-
"indicator": "bg-red-900 dark:bg-red-900",
|
|
166
|
-
"trigger": [
|
|
167
|
-
"data-[state=active]:text-white focus-visible:outline-red-900",
|
|
168
|
-
"dark:data-[state=active]:text-red-200 dark:focus-visible:outline-red-900",
|
|
169
|
-
"focus-visible:outline-2 focus-visible:outline-offset-2]"
|
|
170
|
-
]
|
|
171
|
-
}
|
|
172
|
-
},
|
|
173
|
-
{
|
|
174
|
-
"color": "danger" as typeof color[number],
|
|
175
|
-
"variant": "link" as typeof variant[number],
|
|
176
|
-
"class": {
|
|
177
|
-
"indicator": "bg-red-900 dark:dark:bg-red-300",
|
|
178
|
-
"trigger": [
|
|
179
|
-
"focus-visible:ring-2 focus-visible:ring-inset",
|
|
180
|
-
"data-[state=active]:text-red-900 focus-visible:ring-red-900",
|
|
181
|
-
"dark:data-[state=active]:text-red-300 dark:focus-visible:ring-red-300"
|
|
182
|
-
]
|
|
183
|
-
}
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
"color": "success" as typeof color[number],
|
|
187
|
-
"variant": "pill" as typeof variant[number],
|
|
188
|
-
"class": {
|
|
189
|
-
"indicator": "bg-green-900 dark:bg-green-900",
|
|
190
|
-
"trigger": [
|
|
191
|
-
"data-[state=active]:text-white focus-visible:outline-green-900",
|
|
192
|
-
"dark:data-[state=active]:text-green-200 dark:focus-visible:outline-green-900",
|
|
193
|
-
"focus-visible:outline-2 focus-visible:outline-offset-2]"
|
|
194
|
-
]
|
|
195
|
-
}
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
"color": "success" as typeof color[number],
|
|
199
|
-
"variant": "link" as typeof variant[number],
|
|
200
|
-
"class": {
|
|
201
|
-
"indicator": "bg-green-900 dark:dark:bg-green-300",
|
|
202
|
-
"trigger": [
|
|
203
|
-
"focus-visible:ring-2 focus-visible:ring-inset",
|
|
204
|
-
"data-[state=active]:text-green-900 focus-visible:ring-green-900",
|
|
205
|
-
"dark:data-[state=active]:text-green-300 dark:focus-visible:ring-green-300"
|
|
206
|
-
]
|
|
207
|
-
}
|
|
208
|
-
},
|
|
209
|
-
{
|
|
210
|
-
"color": "warning" as typeof color[number],
|
|
211
|
-
"variant": "pill" as typeof variant[number],
|
|
212
|
-
"class": {
|
|
213
|
-
"indicator": "bg-orange-900 dark:bg-orange-900",
|
|
214
|
-
"trigger": [
|
|
215
|
-
"data-[state=active]:text-white focus-visible:outline-orange-900",
|
|
216
|
-
"dark:data-[state=active]:text-orange-200 dark:focus-visible:outline-orange-900",
|
|
217
|
-
"focus-visible:outline-2 focus-visible:outline-offset-2]"
|
|
218
|
-
]
|
|
219
|
-
}
|
|
220
|
-
},
|
|
221
|
-
{
|
|
222
|
-
"color": "warning" as typeof color[number],
|
|
223
|
-
"variant": "link" as typeof variant[number],
|
|
224
|
-
"class": {
|
|
225
|
-
"indicator": "bg-orange-900 dark:dark:bg-orange-300",
|
|
226
|
-
"trigger": [
|
|
227
|
-
"focus-visible:ring-2 focus-visible:ring-inset",
|
|
228
|
-
"data-[state=active]:text-orange-900 focus-visible:ring-orange-900",
|
|
229
|
-
"dark:data-[state=active]:text-orange-300 dark:focus-visible:ring-orange-300"
|
|
230
|
-
]
|
|
231
|
-
}
|
|
232
|
-
},
|
|
233
|
-
{
|
|
234
|
-
"color": "primary" as typeof color[number],
|
|
235
|
-
"variant": "pill" as typeof variant[number],
|
|
236
|
-
"class": {
|
|
237
|
-
"indicator": "bg-blue-900 dark:bg-blue-900",
|
|
238
|
-
"trigger": [
|
|
239
|
-
"data-[state=active]:text-white focus-visible:outline-blue-900",
|
|
240
|
-
"dark:data-[state=active]:text-blue-200 dark:focus-visible:outline-blue-900",
|
|
241
|
-
"focus-visible:outline-2 focus-visible:outline-offset-2]"
|
|
242
|
-
]
|
|
243
|
-
}
|
|
244
|
-
},
|
|
245
|
-
{
|
|
246
|
-
"color": "primary" as typeof color[number],
|
|
247
|
-
"variant": "link" as typeof variant[number],
|
|
248
|
-
"class": {
|
|
249
|
-
"indicator": "bg-blue-900 dark:dark:bg-blue-300",
|
|
250
|
-
"trigger": [
|
|
251
|
-
"focus-visible:ring-2 focus-visible:ring-inset",
|
|
252
|
-
"data-[state=active]:text-blue-900 focus-visible:ring-blue-900",
|
|
253
|
-
"dark:data-[state=active]:text-blue-300 dark:focus-visible:ring-blue-300"
|
|
254
|
-
]
|
|
255
|
-
}
|
|
256
|
-
},
|
|
257
|
-
{
|
|
258
|
-
"color": "secondary" as typeof color[number],
|
|
259
|
-
"variant": "pill" as typeof variant[number],
|
|
260
|
-
"class": {
|
|
261
|
-
"indicator": "bg-cyan-900 dark:bg-cyan-900",
|
|
262
|
-
"trigger": [
|
|
263
|
-
"data-[state=active]:text-white focus-visible:outline-cyan-900",
|
|
264
|
-
"dark:data-[state=active]:text-cyan-200 dark:focus-visible:outline-cyan-900",
|
|
265
|
-
"focus-visible:outline-2 focus-visible:outline-offset-2]"
|
|
266
|
-
]
|
|
267
|
-
}
|
|
268
|
-
},
|
|
269
|
-
{
|
|
270
|
-
"color": "secondary" as typeof color[number],
|
|
271
|
-
"variant": "link" as typeof variant[number],
|
|
272
|
-
"class": {
|
|
273
|
-
"indicator": "bg-cyan-900 dark:dark:bg-cyan-300",
|
|
274
|
-
"trigger": [
|
|
275
|
-
"focus-visible:ring-2 focus-visible:ring-inset",
|
|
276
|
-
"data-[state=active]:text-cyan-900 focus-visible:ring-cyan-900",
|
|
277
|
-
"dark:data-[state=active]:text-cyan-300 dark:focus-visible:ring-cyan-300"
|
|
278
|
-
]
|
|
279
|
-
}
|
|
280
|
-
},
|
|
281
|
-
{
|
|
282
|
-
"color": "collab" as typeof color[number],
|
|
283
|
-
"variant": "pill" as typeof variant[number],
|
|
284
|
-
"class": {
|
|
285
|
-
"indicator": "bg-collab-900 dark:bg-collab-900",
|
|
286
|
-
"trigger": [
|
|
287
|
-
"data-[state=active]:text-white focus-visible:outline-collab-900",
|
|
288
|
-
"dark:data-[state=active]:text-collab-200 dark:focus-visible:outline-collab-900",
|
|
289
|
-
"focus-visible:outline-2 focus-visible:outline-offset-2]"
|
|
290
|
-
]
|
|
291
|
-
}
|
|
292
|
-
},
|
|
293
|
-
{
|
|
294
|
-
"color": "collab" as typeof color[number],
|
|
295
|
-
"variant": "link" as typeof variant[number],
|
|
296
|
-
"class": {
|
|
297
|
-
"indicator": "bg-collab-900 dark:dark:bg-collab-300",
|
|
298
|
-
"trigger": [
|
|
299
|
-
"focus-visible:ring-2 focus-visible:ring-inset",
|
|
300
|
-
"data-[state=active]:text-collab-900 focus-visible:ring-collab-900",
|
|
301
|
-
"dark:data-[state=active]:text-collab-300 dark:focus-visible:ring-collab-300"
|
|
302
|
-
]
|
|
303
|
-
}
|
|
304
|
-
},
|
|
305
|
-
{
|
|
306
|
-
"color": "ai" as typeof color[number],
|
|
307
|
-
"variant": "pill" as typeof variant[number],
|
|
308
|
-
"class": {
|
|
309
|
-
"indicator": "bg-ai-900 dark:bg-ai-900",
|
|
310
|
-
"trigger": [
|
|
311
|
-
"data-[state=active]:text-white focus-visible:outline-ai-900",
|
|
312
|
-
"dark:data-[state=active]:text-ai-200 dark:focus-visible:outline-ai-900",
|
|
313
|
-
"focus-visible:outline-2 focus-visible:outline-offset-2]"
|
|
314
|
-
]
|
|
315
|
-
}
|
|
316
|
-
},
|
|
317
|
-
{
|
|
318
|
-
"color": "ai" as typeof color[number],
|
|
319
107
|
"variant": "link" as typeof variant[number],
|
|
320
108
|
"class": {
|
|
321
|
-
"indicator": "bg-
|
|
109
|
+
"indicator": "bg-(--ui-color-design-selection-content)",
|
|
322
110
|
"trigger": [
|
|
323
|
-
"focus-visible:ring-
|
|
324
|
-
"data-[state=active]:text-
|
|
325
|
-
"
|
|
111
|
+
"focus-visible:ring-1 focus-visible:ring-inset",
|
|
112
|
+
"data-[state=active]:text-(--b24ui-color)",
|
|
113
|
+
"focus-visible:ring-(--ui-color-design-selection-content)"
|
|
326
114
|
]
|
|
327
115
|
}
|
|
328
116
|
}
|
|
329
117
|
],
|
|
330
118
|
"defaultVariants": {
|
|
331
|
-
"color": "default" as typeof color[number],
|
|
332
119
|
"variant": "link" as typeof variant[number],
|
|
333
120
|
"size": "md" as typeof size[number]
|
|
334
121
|
}
|