@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/textarea.ts
CHANGED
|
@@ -1,15 +1,9 @@
|
|
|
1
1
|
const color = [
|
|
2
|
-
"
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"primary",
|
|
7
|
-
"secondary",
|
|
8
|
-
"collab",
|
|
9
|
-
"ai"
|
|
10
|
-
] as const
|
|
11
|
-
|
|
12
|
-
const tagColor = [
|
|
2
|
+
"air-primary",
|
|
3
|
+
"air-primary-success",
|
|
4
|
+
"air-primary-alert",
|
|
5
|
+
"air-primary-copilot",
|
|
6
|
+
"air-primary-warning",
|
|
13
7
|
"default",
|
|
14
8
|
"danger",
|
|
15
9
|
"success",
|
|
@@ -23,14 +17,14 @@ const tagColor = [
|
|
|
23
17
|
export default {
|
|
24
18
|
"slots": {
|
|
25
19
|
"root": "isolate relative inline-flex items-center w-full",
|
|
26
|
-
"base": "w-full
|
|
27
|
-
"leading": "absolute start-0 flex items-start
|
|
28
|
-
"leadingIcon": "shrink-0
|
|
29
|
-
"leadingAvatar": "shrink-0",
|
|
30
|
-
"leadingAvatarSize": "
|
|
31
|
-
"trailing": "absolute end-0 flex items-start
|
|
32
|
-
"trailingIcon": "shrink-0 text-
|
|
33
|
-
"tag": "pointer-events-none select-none absolute z-10 -top-
|
|
20
|
+
"base": "px-3 w-full pt-[7px] pb-[8px] border-0 focus:outline-none disabled:cursor-not-allowed disabled:pointer-events-none disabled:opacity-30 disabled:resize-none appearance-none transition duration-300 ease-linear ring ring-inset ring-(--ui-color-design-outline-stroke) text-(--ui-color-base-1) style-blurred-bg-input placeholder:text-(--ui-color-design-plain-na-content-secondary) hover:text-(--ui-color-base-1) focus:text-(--ui-color-base-1) active:text-(--ui-color-base-1) font-[family-name:var(--ui-font-family-primary)] font-(--ui-font-weight-regular) text-(length:--ui-font-size-lg)/(--ui-font-line-height-2xs) align-middle focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-(--b24ui-border-color)",
|
|
21
|
+
"leading": "absolute inset-y-[7px] start-0 flex items-start px-[8px]",
|
|
22
|
+
"leadingIcon": "shrink-0 size-[18px] text-(--b24ui-icon-color)",
|
|
23
|
+
"leadingAvatar": "shrink-0 size-[20px]",
|
|
24
|
+
"leadingAvatarSize": "2xs",
|
|
25
|
+
"trailing": "absolute inset-y-[8px] end-0 flex items-start px-[6px]",
|
|
26
|
+
"trailingIcon": "shrink-0 size-[18px] text-(--b24ui-icon-color)",
|
|
27
|
+
"tag": "pointer-events-none select-none absolute z-10 -top-[6px] right-[12px]"
|
|
34
28
|
},
|
|
35
29
|
"variants": {
|
|
36
30
|
"buttonGroup": {
|
|
@@ -52,44 +46,49 @@ export default {
|
|
|
52
46
|
}
|
|
53
47
|
},
|
|
54
48
|
"color": {
|
|
55
|
-
"
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
"
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
"
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
49
|
+
"air-primary": {
|
|
50
|
+
"base": "style-filled"
|
|
51
|
+
},
|
|
52
|
+
"air-primary-success": {
|
|
53
|
+
"base": "style-filled-success"
|
|
54
|
+
},
|
|
55
|
+
"air-primary-alert": {
|
|
56
|
+
"base": "style-filled-alert"
|
|
57
|
+
},
|
|
58
|
+
"air-primary-copilot": {
|
|
59
|
+
"base": "style-filled-copilot"
|
|
60
|
+
},
|
|
61
|
+
"air-primary-warning": {
|
|
62
|
+
"base": "style-filled-warning"
|
|
63
|
+
},
|
|
65
64
|
"default": {
|
|
66
|
-
"
|
|
65
|
+
"base": "style-old-default"
|
|
67
66
|
},
|
|
68
67
|
"danger": {
|
|
69
|
-
"
|
|
68
|
+
"base": "style-old-danger"
|
|
70
69
|
},
|
|
71
70
|
"success": {
|
|
72
|
-
"
|
|
71
|
+
"base": "style-old-success"
|
|
73
72
|
},
|
|
74
73
|
"warning": {
|
|
75
|
-
"
|
|
74
|
+
"base": "style-old-warning"
|
|
76
75
|
},
|
|
77
76
|
"primary": {
|
|
78
|
-
"
|
|
77
|
+
"base": "style-old-primary"
|
|
79
78
|
},
|
|
80
79
|
"secondary": {
|
|
81
|
-
"
|
|
80
|
+
"base": "style-old-secondary"
|
|
82
81
|
},
|
|
83
82
|
"collab": {
|
|
84
|
-
"
|
|
83
|
+
"base": "style-old-collab"
|
|
85
84
|
},
|
|
86
85
|
"ai": {
|
|
87
|
-
"
|
|
86
|
+
"base": "style-old-ai"
|
|
88
87
|
}
|
|
89
88
|
},
|
|
90
89
|
"rounded": {
|
|
91
|
-
"true": "rounded-3xl",
|
|
92
|
-
"false": "rounded-
|
|
90
|
+
"true": "rounded-(--ui-border-radius-3xl)",
|
|
91
|
+
"false": "rounded-(--ui-border-radius-sm)"
|
|
93
92
|
},
|
|
94
93
|
"noPadding": {
|
|
95
94
|
"true": {
|
|
@@ -97,10 +96,10 @@ export default {
|
|
|
97
96
|
}
|
|
98
97
|
},
|
|
99
98
|
"noBorder": {
|
|
100
|
-
"true": "ring-0 focus-visible:ring-0"
|
|
99
|
+
"true": "ring-0 focus-visible:ring-0 style-transparent-bg"
|
|
101
100
|
},
|
|
102
101
|
"underline": {
|
|
103
|
-
"true": "ring-0 focus-visible:ring-0 border-b border-b-
|
|
102
|
+
"true": "ring-0 focus-visible:ring-0 style-transparent-bg border-b-1 border-b-(--ui-color-design-outline-stroke) rounded-none"
|
|
104
103
|
},
|
|
105
104
|
"leading": {
|
|
106
105
|
"true": ""
|
|
@@ -112,225 +111,41 @@ export default {
|
|
|
112
111
|
"true": ""
|
|
113
112
|
},
|
|
114
113
|
"highlight": {
|
|
115
|
-
"true": ""
|
|
114
|
+
"true": "ring ring-inset ring-(--b24ui-border-color)"
|
|
116
115
|
}
|
|
117
116
|
},
|
|
118
117
|
"compoundVariants": [
|
|
119
118
|
{
|
|
120
|
-
"color": "default" as typeof color[number],
|
|
121
|
-
"noBorder": false,
|
|
122
|
-
"underline": false,
|
|
123
|
-
"class": "focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-base-900 dark:focus-visible:ring-base-350"
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
"color": "default" as typeof color[number],
|
|
127
|
-
"highlight": true,
|
|
128
|
-
"noBorder": false,
|
|
129
|
-
"underline": false,
|
|
130
|
-
"class": "ring ring-inset ring-base-900 dark:ring-base-350"
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
"color": "default" as typeof color[number],
|
|
134
|
-
"noBorder": false,
|
|
135
|
-
"underline": true,
|
|
136
|
-
"class": "focus-visible:border-base-900 dark:focus-visible:border-b-base-350"
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
"color": "default" as typeof color[number],
|
|
140
|
-
"highlight": true,
|
|
141
|
-
"noBorder": false,
|
|
142
|
-
"underline": true,
|
|
143
|
-
"class": "border-b-base-900 dark:border-b-base-350"
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
"color": "danger" as typeof color[number],
|
|
147
|
-
"noBorder": false,
|
|
148
|
-
"underline": false,
|
|
149
|
-
"class": "focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-red-500 dark:focus-visible:ring-red-600"
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
"color": "danger" as typeof color[number],
|
|
153
|
-
"highlight": true,
|
|
154
|
-
"noBorder": false,
|
|
155
|
-
"underline": false,
|
|
156
|
-
"class": "ring ring-inset ring-red-500 dark:ring-red-600"
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
"color": "danger" as typeof color[number],
|
|
160
|
-
"noBorder": false,
|
|
161
|
-
"underline": true,
|
|
162
|
-
"class": "focus-visible:border-b-red-500 dark:focus-visible:border-b-red-600"
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
"color": "danger" as typeof color[number],
|
|
166
|
-
"highlight": true,
|
|
167
|
-
"noBorder": false,
|
|
168
|
-
"underline": true,
|
|
169
|
-
"class": "border-b-red-500 dark:border-b-red-600"
|
|
170
|
-
},
|
|
171
|
-
{
|
|
172
|
-
"color": "success" as typeof color[number],
|
|
173
|
-
"noBorder": false,
|
|
174
|
-
"underline": false,
|
|
175
|
-
"class": "focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-green-500 dark:focus-visible:ring-green-600"
|
|
176
|
-
},
|
|
177
|
-
{
|
|
178
|
-
"color": "success" as typeof color[number],
|
|
179
|
-
"highlight": true,
|
|
180
|
-
"noBorder": false,
|
|
181
|
-
"underline": false,
|
|
182
|
-
"class": "ring ring-inset ring-green-500 dark:ring-green-600"
|
|
183
|
-
},
|
|
184
|
-
{
|
|
185
|
-
"color": "success" as typeof color[number],
|
|
186
|
-
"noBorder": false,
|
|
187
|
-
"underline": true,
|
|
188
|
-
"class": "focus-visible:border-b-green-500 dark:focus-visible:border-b-green-600"
|
|
189
|
-
},
|
|
190
|
-
{
|
|
191
|
-
"color": "success" as typeof color[number],
|
|
192
|
-
"highlight": true,
|
|
193
|
-
"noBorder": false,
|
|
194
|
-
"underline": true,
|
|
195
|
-
"class": "border-b-green-500 dark:border-b-green-600"
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
"color": "warning" as typeof color[number],
|
|
199
|
-
"noBorder": false,
|
|
200
|
-
"underline": false,
|
|
201
|
-
"class": "focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-orange-500 dark:focus-visible:ring-orange-600"
|
|
202
|
-
},
|
|
203
|
-
{
|
|
204
|
-
"color": "warning" as typeof color[number],
|
|
205
|
-
"highlight": true,
|
|
206
|
-
"noBorder": false,
|
|
207
|
-
"underline": false,
|
|
208
|
-
"class": "ring ring-inset ring-orange-500 dark:ring-orange-600"
|
|
209
|
-
},
|
|
210
|
-
{
|
|
211
|
-
"color": "warning" as typeof color[number],
|
|
212
|
-
"noBorder": false,
|
|
213
|
-
"underline": true,
|
|
214
|
-
"class": "focus-visible:border-b-orange-500 dark:focus-visible:border-b-orange-600"
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
"color": "warning" as typeof color[number],
|
|
218
|
-
"highlight": true,
|
|
219
|
-
"noBorder": false,
|
|
220
|
-
"underline": true,
|
|
221
|
-
"class": "border-b-orange-500 dark:border-b-orange-600"
|
|
222
|
-
},
|
|
223
|
-
{
|
|
224
|
-
"color": "primary" as typeof color[number],
|
|
225
|
-
"noBorder": false,
|
|
226
|
-
"underline": false,
|
|
227
|
-
"class": "focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-blue-500 dark:focus-visible:ring-blue-600"
|
|
228
|
-
},
|
|
229
|
-
{
|
|
230
|
-
"color": "primary" as typeof color[number],
|
|
231
|
-
"highlight": true,
|
|
232
|
-
"noBorder": false,
|
|
233
|
-
"underline": false,
|
|
234
|
-
"class": "ring ring-inset ring-blue-500 dark:ring-blue-600"
|
|
235
|
-
},
|
|
236
|
-
{
|
|
237
|
-
"color": "primary" as typeof color[number],
|
|
238
|
-
"noBorder": false,
|
|
239
|
-
"underline": true,
|
|
240
|
-
"class": "focus-visible:border-b-blue-500 dark:focus-visible:border-b-blue-600"
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
"color": "primary" as typeof color[number],
|
|
244
|
-
"highlight": true,
|
|
245
|
-
"noBorder": false,
|
|
246
|
-
"underline": true,
|
|
247
|
-
"class": "border-b-blue-500 dark:border-b-blue-600"
|
|
248
|
-
},
|
|
249
|
-
{
|
|
250
|
-
"color": "secondary" as typeof color[number],
|
|
251
|
-
"noBorder": false,
|
|
252
|
-
"underline": false,
|
|
253
|
-
"class": "focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-cyan-350 dark:focus-visible:ring-cyan-500"
|
|
254
|
-
},
|
|
255
|
-
{
|
|
256
|
-
"color": "secondary" as typeof color[number],
|
|
257
|
-
"highlight": true,
|
|
258
|
-
"noBorder": false,
|
|
259
|
-
"underline": false,
|
|
260
|
-
"class": "ring ring-inset ring-cyan-350 dark:ring-cyan-500"
|
|
261
|
-
},
|
|
262
|
-
{
|
|
263
|
-
"color": "secondary" as typeof color[number],
|
|
264
|
-
"noBorder": false,
|
|
265
|
-
"underline": true,
|
|
266
|
-
"class": "focus-visible:border-b-cyan-350 dark:focus-visible:border-b-cyan-500"
|
|
267
|
-
},
|
|
268
|
-
{
|
|
269
|
-
"color": "secondary" as typeof color[number],
|
|
270
|
-
"highlight": true,
|
|
271
|
-
"noBorder": false,
|
|
272
|
-
"underline": true,
|
|
273
|
-
"class": "border-b-cyan-350 dark:border-b-cyan-500"
|
|
274
|
-
},
|
|
275
|
-
{
|
|
276
|
-
"color": "collab" as typeof color[number],
|
|
277
|
-
"noBorder": false,
|
|
278
|
-
"underline": false,
|
|
279
|
-
"class": "focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-collab-500 dark:focus-visible:ring-collab-600"
|
|
280
|
-
},
|
|
281
|
-
{
|
|
282
|
-
"color": "collab" as typeof color[number],
|
|
283
|
-
"highlight": true,
|
|
284
|
-
"noBorder": false,
|
|
285
|
-
"underline": false,
|
|
286
|
-
"class": "ring ring-inset ring-collab-500 dark:ring-collab-600"
|
|
287
|
-
},
|
|
288
|
-
{
|
|
289
|
-
"color": "collab" as typeof color[number],
|
|
290
|
-
"noBorder": false,
|
|
291
|
-
"underline": true,
|
|
292
|
-
"class": "focus-visible:border-b-collab-500 dark:focus-visible:border-b-collab-600"
|
|
293
|
-
},
|
|
294
|
-
{
|
|
295
|
-
"color": "collab" as typeof color[number],
|
|
296
|
-
"highlight": true,
|
|
297
|
-
"noBorder": false,
|
|
298
|
-
"underline": true,
|
|
299
|
-
"class": "border-b-collab-500 dark:border-b-collab-600"
|
|
300
|
-
},
|
|
301
|
-
{
|
|
302
|
-
"color": "ai" as typeof color[number],
|
|
303
119
|
"noBorder": false,
|
|
304
120
|
"underline": false,
|
|
305
|
-
"class": "
|
|
121
|
+
"class": ""
|
|
306
122
|
},
|
|
307
123
|
{
|
|
308
|
-
"color": "ai" as typeof color[number],
|
|
309
124
|
"highlight": true,
|
|
310
125
|
"noBorder": false,
|
|
311
126
|
"underline": false,
|
|
312
|
-
"class": "ring ring-inset ring-
|
|
127
|
+
"class": "ring ring-inset ring-(--b24ui-border-color)"
|
|
313
128
|
},
|
|
314
129
|
{
|
|
315
|
-
"color": "ai" as typeof color[number],
|
|
316
130
|
"noBorder": false,
|
|
317
131
|
"underline": true,
|
|
318
|
-
"class": "focus-visible:border-
|
|
132
|
+
"class": "focus-visible:border-(--b24ui-border-color)"
|
|
319
133
|
},
|
|
320
134
|
{
|
|
321
|
-
"color": "ai" as typeof color[number],
|
|
322
135
|
"highlight": true,
|
|
323
136
|
"noBorder": false,
|
|
324
137
|
"underline": true,
|
|
325
|
-
"class": "border-b-
|
|
138
|
+
"class": "border-b-(--b24ui-border-color)"
|
|
326
139
|
},
|
|
327
140
|
{
|
|
328
141
|
"leading": true,
|
|
329
|
-
"
|
|
142
|
+
"noPadding": false,
|
|
143
|
+
"class": "ps-[34px]"
|
|
330
144
|
},
|
|
331
145
|
{
|
|
332
146
|
"trailing": true,
|
|
333
|
-
"
|
|
147
|
+
"noPadding": false,
|
|
148
|
+
"class": "pe-[34px]"
|
|
334
149
|
},
|
|
335
150
|
{
|
|
336
151
|
"loading": true,
|
|
@@ -349,7 +164,6 @@ export default {
|
|
|
349
164
|
}
|
|
350
165
|
],
|
|
351
166
|
"defaultVariants": {
|
|
352
|
-
"color": "primary" as typeof color[number]
|
|
353
|
-
"tagColor": "primary" as typeof tagColor[number]
|
|
167
|
+
"color": "air-primary" as typeof color[number]
|
|
354
168
|
}
|
|
355
169
|
}
|
package/.nuxt/b24ui/toast.ts
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
const color = [
|
|
2
|
+
"air-primary",
|
|
3
|
+
"air-primary-success",
|
|
4
|
+
"air-primary-alert",
|
|
5
|
+
"air-primary-copilot",
|
|
6
|
+
"air-primary-warning",
|
|
7
|
+
"air-secondary",
|
|
2
8
|
"default",
|
|
3
9
|
"danger",
|
|
4
10
|
"success",
|
|
@@ -11,58 +17,60 @@ const color = [
|
|
|
11
17
|
|
|
12
18
|
export default {
|
|
13
19
|
"slots": {
|
|
14
|
-
"root": "relative group overflow-hidden rounded-[26px] py-3.5 ps-6 pe-4 flex items-center gap-2.5 focus:outline-
|
|
20
|
+
"root": "dark relative group overflow-hidden rounded-[26px] py-3.5 ps-6 pe-4 flex items-center gap-2.5 focus-visible:outline-(length:--ui-design-outline-stroke-weight) focus-visible:outline-offset-2 focus-visible:outline-(--ui-color-design-outline-content-divider) font-[family-name:var(--ui-font-family-primary)] bg-(--ui-color-bg-content-primary)/80 text-(--ui-color-design-plain-na-focused-content) text-(length:--ui-font-size-sm) font-(--ui-font-weight-normal)",
|
|
15
21
|
"wrapper": "w-0 flex-1 flex flex-col",
|
|
16
|
-
"title": "font-medium",
|
|
22
|
+
"title": "font-(--ui-font-weight-medium)",
|
|
17
23
|
"description": "",
|
|
18
|
-
"icon": "shrink-0 size-6",
|
|
24
|
+
"icon": "shrink-0 size-6 text-(--b24ui-border-color)",
|
|
19
25
|
"avatar": "shrink-0",
|
|
20
26
|
"avatarSize": "xl",
|
|
21
27
|
"actions": "flex gap-1.5 shrink-0",
|
|
22
|
-
"progress": "absolute inset-x-0 bottom-0
|
|
23
|
-
"close": "p-0
|
|
28
|
+
"progress": "absolute inset-x-0 bottom-0",
|
|
29
|
+
"close": "p-0"
|
|
24
30
|
},
|
|
25
31
|
"variants": {
|
|
26
32
|
"color": {
|
|
33
|
+
"air-primary": {
|
|
34
|
+
"root": "style-filled"
|
|
35
|
+
},
|
|
36
|
+
"air-primary-success": {
|
|
37
|
+
"root": "style-filled-success"
|
|
38
|
+
},
|
|
39
|
+
"air-primary-alert": {
|
|
40
|
+
"root": "style-filled-alert"
|
|
41
|
+
},
|
|
42
|
+
"air-primary-copilot": {
|
|
43
|
+
"root": "style-filled-copilot"
|
|
44
|
+
},
|
|
45
|
+
"air-primary-warning": {
|
|
46
|
+
"root": "style-filled-warning"
|
|
47
|
+
},
|
|
48
|
+
"air-secondary": {
|
|
49
|
+
"root": "style-filled-inverted"
|
|
50
|
+
},
|
|
27
51
|
"default": {
|
|
28
|
-
"root": "
|
|
29
|
-
"icon": "text-white",
|
|
30
|
-
"progress": "bg-base-350 dark:bg-base-350"
|
|
52
|
+
"root": "old-style-default"
|
|
31
53
|
},
|
|
32
54
|
"danger": {
|
|
33
|
-
"root": "
|
|
34
|
-
"icon": "text-red-500",
|
|
35
|
-
"progress": "bg-red-500 dark:bg-red-500"
|
|
55
|
+
"root": "old-style-danger"
|
|
36
56
|
},
|
|
37
57
|
"success": {
|
|
38
|
-
"root": "
|
|
39
|
-
"icon": "text-green-500",
|
|
40
|
-
"progress": "bg-green-500 dark:bg-green-500"
|
|
58
|
+
"root": "old-style-success"
|
|
41
59
|
},
|
|
42
60
|
"warning": {
|
|
43
|
-
"root": "
|
|
44
|
-
"icon": "text-orange-500",
|
|
45
|
-
"progress": "bg-orange-500 dark:bg-orange-500"
|
|
61
|
+
"root": "old-style-warning"
|
|
46
62
|
},
|
|
47
63
|
"primary": {
|
|
48
|
-
"root": "
|
|
49
|
-
"icon": "text-blue-500",
|
|
50
|
-
"progress": "bg-blue-500 dark:bg-blue-500"
|
|
64
|
+
"root": "old-style-primary"
|
|
51
65
|
},
|
|
52
66
|
"secondary": {
|
|
53
|
-
"root": "
|
|
54
|
-
"icon": "text-cyan-500",
|
|
55
|
-
"progress": "bg-cyan-500 dark:bg-cyan-500"
|
|
67
|
+
"root": "old-style-secondary"
|
|
56
68
|
},
|
|
57
69
|
"collab": {
|
|
58
|
-
"root": "
|
|
59
|
-
"icon": "text-collab-500",
|
|
60
|
-
"progress": "bg-collab-500 dark:bg-collab-500"
|
|
70
|
+
"root": "old-style-collab"
|
|
61
71
|
},
|
|
62
72
|
"ai": {
|
|
63
|
-
"root": "
|
|
64
|
-
"icon": "text-ai-500",
|
|
65
|
-
"progress": "bg-ai-500 dark:bg-ai-500"
|
|
73
|
+
"root": "old-style-ai"
|
|
66
74
|
}
|
|
67
75
|
},
|
|
68
76
|
"orientation": {
|
|
@@ -82,6 +90,6 @@ export default {
|
|
|
82
90
|
}
|
|
83
91
|
},
|
|
84
92
|
"defaultVariants": {
|
|
85
|
-
"color": "
|
|
93
|
+
"color": "air-secondary" as typeof color[number]
|
|
86
94
|
}
|
|
87
95
|
}
|
package/.nuxt/b24ui/toaster.ts
CHANGED
|
@@ -16,7 +16,7 @@ const swipeDirection = [
|
|
|
16
16
|
|
|
17
17
|
export default {
|
|
18
18
|
"slots": {
|
|
19
|
-
"viewport": "fixed flex flex-col w-[calc(100%-2rem)] sm:w-
|
|
19
|
+
"viewport": "fixed flex flex-col w-[calc(100%-2rem)] sm:w-[384px] z-[100] data-[expanded=true]:h-(--height) focus:outline-none mr-(--scrollbar-width)",
|
|
20
20
|
"base": "pointer-events-auto absolute inset-x-0 z-(--index) transform-(--transform) data-[expanded=false]:data-[front=false]:h-(--front-height) data-[expanded=false]:data-[front=false]:*:opacity-0 data-[front=false]:*:transition-opacity data-[front=false]:*:duration-100 data-[state=closed]:animate-[toast-closed_200ms_ease-in-out] data-[state=closed]:data-[expanded=false]:data-[front=false]:animate-[toast-collapsed-closed_200ms_ease-in-out] data-[swipe=move]:transition-none transition-[transform,translate,height] duration-200 ease-out"
|
|
21
21
|
},
|
|
22
22
|
"variants": {
|
package/.nuxt/b24ui/tooltip.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
"slots": {
|
|
3
|
-
"content": "flex items-center gap-
|
|
4
|
-
"arrow": "fill-
|
|
5
|
-
"text": "text-pretty max-w-[200px]",
|
|
6
|
-
"kbds": "hidden lg:inline-flex items-center shrink-0 gap-0.5 before:content-[''] before:me-0.5",
|
|
3
|
+
"content": "dark flex flex-row items-center justify-between gap-[5px] will-change-[opacity] min-h-[37px] shadow-xl/20 select-none motion-safe:data-[state=delayed-open]:animate-[scale-in_100ms_ease-out] motion-safe:data-[state=closed]:animate-[scale-out_100ms_ease-in] p-[10px] text-(length:--ui-font-size-sm)/(--ui-font-line-height-reset) font-[family-name:var(--ui-font-family-primary)] bg-(--ui-color-bg-content-primary)/80 text-(--ui-color-design-plain-na-focused-content) rounded-[calc(var(--popup-window-border-radius)-2px)] origin-(--reka-tooltip-content-transform-origin) pointer-events-auto",
|
|
4
|
+
"arrow": "fill-(--ui-color-bg-content-primary)/80",
|
|
5
|
+
"text": "text-pretty max-w-[200px] min-w-[100px]",
|
|
6
|
+
"kbds": "hidden lg:inline-flex items-center shrink-0 gap-0.5 not-first-of-type:before:content-[''] not-first-of-type:before:me-0.5",
|
|
7
7
|
"kbdsSize": "sm",
|
|
8
|
-
"
|
|
8
|
+
"kbdsAccent": "default"
|
|
9
9
|
}
|
|
10
10
|
}
|
package/cli/templates.mjs
CHANGED
|
@@ -156,7 +156,8 @@ const test = ({ name, prose, content }) => {
|
|
|
156
156
|
? undefined
|
|
157
157
|
: `
|
|
158
158
|
import { describe, it, expect } from 'vitest'
|
|
159
|
-
import ${upperName}
|
|
159
|
+
import ${upperName} from '../../${content ? '../' : ''}src/runtime/components/${content ? 'content/' : ''}${upperName}.vue'
|
|
160
|
+
import type { ${upperName}Props, ${upperName}Slots } from '../../${content ? '../' : ''}src/runtime/components/${content ? 'content/' : ''}${upperName}.vue'
|
|
160
161
|
import ComponentRender from '../${content ? '../' : ''}component-render'
|
|
161
162
|
|
|
162
163
|
describe('${upperName}', () => {
|