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