@bitrix24/b24ui-nuxt 0.6.0 → 0.6.2
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/advice.ts +10 -2
- package/.nuxt/b24ui/alert.ts +10 -2
- package/.nuxt/b24ui/avatar-group.ts +10 -2
- package/.nuxt/b24ui/avatar.ts +10 -2
- package/.nuxt/b24ui/badge.ts +10 -2
- package/.nuxt/b24ui/button-group.ts +10 -2
- package/.nuxt/b24ui/button.ts +16 -6
- package/.nuxt/b24ui/calendar.ts +10 -2
- package/.nuxt/b24ui/checkbox.ts +10 -2
- package/.nuxt/b24ui/chip.ts +10 -2
- package/.nuxt/b24ui/collapsible.ts +10 -2
- package/.nuxt/b24ui/container.ts +10 -2
- package/.nuxt/b24ui/countdown.ts +10 -2
- package/.nuxt/b24ui/description-list.ts +10 -2
- package/.nuxt/b24ui/dropdown-menu.ts +10 -2
- package/.nuxt/b24ui/form-field.ts +10 -2
- package/.nuxt/b24ui/form.ts +10 -2
- package/.nuxt/b24ui/input-menu.ts +10 -2
- package/.nuxt/b24ui/input-number.ts +10 -2
- package/.nuxt/b24ui/input.ts +10 -2
- package/.nuxt/b24ui/kbd.ts +10 -2
- package/.nuxt/b24ui/link.ts +10 -2
- package/.nuxt/b24ui/modal.ts +10 -2
- package/.nuxt/b24ui/navbar-divider.ts +10 -2
- package/.nuxt/b24ui/navbar-section.ts +10 -2
- package/.nuxt/b24ui/navbar-spacer.ts +10 -2
- package/.nuxt/b24ui/navbar.ts +10 -2
- package/.nuxt/b24ui/navigation-menu.ts +10 -2
- package/.nuxt/b24ui/popover.ts +10 -2
- package/.nuxt/b24ui/progress.ts +10 -2
- package/.nuxt/b24ui/radio-group.ts +10 -2
- package/.nuxt/b24ui/range.ts +10 -2
- package/.nuxt/b24ui/select-menu.ts +10 -2
- package/.nuxt/b24ui/select.ts +10 -2
- package/.nuxt/b24ui/separator.ts +10 -2
- package/.nuxt/b24ui/sidebar-body.ts +10 -2
- package/.nuxt/b24ui/sidebar-footer.ts +10 -2
- package/.nuxt/b24ui/sidebar-header.ts +10 -2
- package/.nuxt/b24ui/sidebar-heading.ts +10 -2
- package/.nuxt/b24ui/sidebar-layout.ts +10 -2
- package/.nuxt/b24ui/sidebar-section.ts +10 -2
- package/.nuxt/b24ui/sidebar-spacer.ts +10 -2
- package/.nuxt/b24ui/sidebar.ts +10 -2
- package/.nuxt/b24ui/skeleton.ts +10 -2
- package/.nuxt/b24ui/slideover.ts +10 -2
- package/.nuxt/b24ui/stacked-layout.ts +10 -2
- package/.nuxt/b24ui/switch.ts +10 -2
- package/.nuxt/b24ui/tabs.ts +10 -2
- package/.nuxt/b24ui/textarea.ts +10 -2
- package/.nuxt/b24ui/toast.ts +10 -2
- package/.nuxt/b24ui/toaster.ts +10 -2
- package/.nuxt/b24ui/tooltip.ts +10 -2
- package/cli/templates.mjs +19 -15
- package/dist/meta.d.mts +1807 -3391
- package/dist/meta.mjs +1807 -3391
- package/dist/module.json +1 -1
- package/dist/module.mjs +2 -2
- package/dist/runtime/components/Advice.vue +5 -6
- package/dist/runtime/components/Advice.vue.d.ts +7 -121
- package/dist/runtime/components/Alert.vue +5 -6
- package/dist/runtime/components/Alert.vue.d.ts +12 -379
- package/dist/runtime/components/Avatar.vue +5 -6
- package/dist/runtime/components/Avatar.vue.d.ts +6 -225
- package/dist/runtime/components/AvatarGroup.vue +5 -6
- package/dist/runtime/components/AvatarGroup.vue.d.ts +6 -170
- package/dist/runtime/components/Badge.vue +5 -6
- package/dist/runtime/components/Badge.vue.d.ts +8 -447
- package/dist/runtime/components/Button.vue +16 -14
- package/dist/runtime/components/Button.vue.d.ts +10 -535
- package/dist/runtime/components/ButtonGroup.vue +11 -6
- package/dist/runtime/components/ButtonGroup.vue.d.ts +8 -61
- package/dist/runtime/components/Calendar.vue +4 -5
- package/dist/runtime/components/Calendar.vue.d.ts +7 -337
- package/dist/runtime/components/Checkbox.vue +5 -6
- package/dist/runtime/components/Checkbox.vue.d.ts +7 -306
- package/dist/runtime/components/Chip.vue +5 -6
- package/dist/runtime/components/Chip.vue.d.ts +8 -202
- package/dist/runtime/components/Collapsible.vue +6 -6
- package/dist/runtime/components/Collapsible.vue.d.ts +5 -73
- package/dist/runtime/components/Container.vue +6 -5
- package/dist/runtime/components/Countdown.vue +6 -7
- package/dist/runtime/components/Countdown.vue.d.ts +7 -241
- package/dist/runtime/components/DescriptionList.vue +5 -6
- package/dist/runtime/components/DescriptionList.vue.d.ts +8 -278
- package/dist/runtime/components/DropdownMenu.vue +4 -5
- package/dist/runtime/components/DropdownMenu.vue.d.ts +9 -409
- package/dist/runtime/components/DropdownMenuContent.vue +1 -3
- package/dist/runtime/components/DropdownMenuContent.vue.d.ts +9 -186
- package/dist/runtime/components/Form.vue +8 -6
- package/dist/runtime/components/Form.vue.d.ts +6 -0
- package/dist/runtime/components/FormField.vue +5 -6
- package/dist/runtime/components/FormField.vue.d.ts +6 -215
- package/dist/runtime/components/Input.vue +4 -5
- package/dist/runtime/components/Input.vue.d.ts +8 -628
- package/dist/runtime/components/InputMenu.vue +4 -5
- package/dist/runtime/components/InputMenu.vue.d.ts +19 -1185
- package/dist/runtime/components/InputNumber.vue +4 -5
- package/dist/runtime/components/InputNumber.vue.d.ts +10 -430
- package/dist/runtime/components/Kbd.vue +6 -5
- package/dist/runtime/components/Kbd.vue.d.ts +6 -60
- package/dist/runtime/components/Link.vue +12 -11
- package/dist/runtime/components/Modal.vue +5 -6
- package/dist/runtime/components/Modal.vue.d.ts +13 -216
- package/dist/runtime/components/Navbar.vue +6 -6
- package/dist/runtime/components/Navbar.vue.d.ts +5 -60
- package/dist/runtime/components/NavbarDivider.vue +6 -6
- package/dist/runtime/components/NavbarDivider.vue.d.ts +5 -60
- package/dist/runtime/components/NavbarSection.vue +6 -6
- package/dist/runtime/components/NavbarSection.vue.d.ts +5 -60
- package/dist/runtime/components/NavbarSpacer.vue +6 -6
- package/dist/runtime/components/NavbarSpacer.vue.d.ts +5 -60
- package/dist/runtime/components/NavigationMenu.vue +4 -5
- package/dist/runtime/components/NavigationMenu.vue.d.ts +11 -676
- package/dist/runtime/components/Popover.vue +5 -6
- package/dist/runtime/components/Popover.vue.d.ts +7 -75
- package/dist/runtime/components/Progress.vue +5 -6
- package/dist/runtime/components/Progress.vue.d.ts +11 -500
- package/dist/runtime/components/RadioGroup.vue +5 -6
- package/dist/runtime/components/RadioGroup.vue.d.ts +9 -644
- package/dist/runtime/components/Range.vue +5 -6
- package/dist/runtime/components/Range.vue.d.ts +7 -351
- package/dist/runtime/components/Select.vue +4 -5
- package/dist/runtime/components/Select.vue.d.ts +15 -1046
- package/dist/runtime/components/SelectMenu.vue +4 -5
- package/dist/runtime/components/SelectMenu.vue.d.ts +17 -1098
- package/dist/runtime/components/Separator.vue +5 -6
- package/dist/runtime/components/Separator.vue.d.ts +9 -332
- package/dist/runtime/components/Sidebar.vue +6 -6
- package/dist/runtime/components/Sidebar.vue.d.ts +5 -60
- package/dist/runtime/components/SidebarBody.vue +5 -6
- package/dist/runtime/components/SidebarBody.vue.d.ts +5 -42
- package/dist/runtime/components/SidebarFooter.vue +6 -6
- package/dist/runtime/components/SidebarFooter.vue.d.ts +5 -60
- package/dist/runtime/components/SidebarHeader.vue +6 -6
- package/dist/runtime/components/SidebarHeader.vue.d.ts +5 -60
- package/dist/runtime/components/SidebarHeading.vue +6 -6
- package/dist/runtime/components/SidebarHeading.vue.d.ts +5 -60
- package/dist/runtime/components/SidebarLayout.vue +6 -7
- package/dist/runtime/components/SidebarLayout.vue.d.ts +5 -162
- package/dist/runtime/components/SidebarSection.vue +6 -6
- package/dist/runtime/components/SidebarSection.vue.d.ts +5 -60
- package/dist/runtime/components/SidebarSpacer.vue +6 -6
- package/dist/runtime/components/SidebarSpacer.vue.d.ts +5 -60
- package/dist/runtime/components/Skeleton.vue +6 -5
- package/dist/runtime/components/Slideover.vue +5 -6
- package/dist/runtime/components/Slideover.vue.d.ts +15 -248
- package/dist/runtime/components/StackedLayout.vue +6 -7
- package/dist/runtime/components/StackedLayout.vue.d.ts +5 -132
- package/dist/runtime/components/Switch.vue +4 -5
- package/dist/runtime/components/Switch.vue.d.ts +7 -517
- package/dist/runtime/components/Tabs.vue +8 -5
- package/dist/runtime/components/Tabs.vue.d.ts +18 -367
- package/dist/runtime/components/Textarea.vue +4 -5
- package/dist/runtime/components/Textarea.vue.d.ts +7 -467
- package/dist/runtime/components/Toast.vue +5 -6
- package/dist/runtime/components/Toast.vue.d.ts +11 -354
- package/dist/runtime/components/Toaster.vue +6 -7
- package/dist/runtime/components/Toaster.vue.d.ts +7 -156
- package/dist/runtime/components/Tooltip.vue +5 -6
- package/dist/runtime/components/Tooltip.vue.d.ts +5 -126
- package/dist/runtime/components/content/TableWrapper.vue +5 -6
- package/dist/runtime/components/content/TableWrapper.vue.d.ts +6 -160
- package/dist/runtime/inertia/components/Link.vue +153 -0
- package/dist/runtime/inertia/components/Link.vue.d.ts +97 -0
- package/dist/runtime/inertia/stubs.d.ts +45 -0
- package/dist/runtime/inertia/stubs.js +84 -0
- package/dist/runtime/prose/A.vue +10 -9
- package/dist/runtime/prose/A.vue.d.ts +8 -65
- package/dist/runtime/prose/Blockquote.vue +8 -9
- package/dist/runtime/prose/Blockquote.vue.d.ts +8 -65
- package/dist/runtime/prose/Code.vue +6 -6
- package/dist/runtime/prose/Code.vue.d.ts +9 -75
- package/dist/runtime/prose/Em.vue +10 -9
- package/dist/runtime/prose/Em.vue.d.ts +8 -65
- package/dist/runtime/prose/H1.vue +8 -9
- package/dist/runtime/prose/H1.vue.d.ts +8 -78
- package/dist/runtime/prose/H2.vue +8 -9
- package/dist/runtime/prose/H2.vue.d.ts +8 -104
- package/dist/runtime/prose/H3.vue +8 -9
- package/dist/runtime/prose/H3.vue.d.ts +8 -104
- package/dist/runtime/prose/H4.vue +8 -9
- package/dist/runtime/prose/H4.vue.d.ts +8 -104
- package/dist/runtime/prose/H5.vue +8 -9
- package/dist/runtime/prose/H5.vue.d.ts +8 -104
- package/dist/runtime/prose/H6.vue +8 -9
- package/dist/runtime/prose/H6.vue.d.ts +8 -104
- package/dist/runtime/prose/Hr.vue +7 -9
- package/dist/runtime/prose/Hr.vue.d.ts +7 -62
- package/dist/runtime/prose/Img.vue +7 -9
- package/dist/runtime/prose/Img.vue.d.ts +7 -65
- package/dist/runtime/prose/Li.vue +8 -9
- package/dist/runtime/prose/Li.vue.d.ts +8 -65
- package/dist/runtime/prose/Ol.vue +8 -9
- package/dist/runtime/prose/Ol.vue.d.ts +8 -65
- package/dist/runtime/prose/P.vue +8 -9
- package/dist/runtime/prose/P.vue.d.ts +8 -65
- package/dist/runtime/prose/Pre.vue +7 -6
- package/dist/runtime/prose/Pre.vue.d.ts +10 -80
- package/dist/runtime/prose/Strong.vue +8 -9
- package/dist/runtime/prose/Strong.vue.d.ts +8 -65
- package/dist/runtime/prose/Table.vue +8 -9
- package/dist/runtime/prose/Table.vue.d.ts +10 -80
- package/dist/runtime/prose/Tbody.vue +8 -9
- package/dist/runtime/prose/Tbody.vue.d.ts +8 -65
- package/dist/runtime/prose/Td.vue +8 -9
- package/dist/runtime/prose/Td.vue.d.ts +8 -65
- package/dist/runtime/prose/Th.vue +8 -9
- package/dist/runtime/prose/Th.vue.d.ts +8 -65
- package/dist/runtime/prose/Thead.vue +8 -9
- package/dist/runtime/prose/Thead.vue.d.ts +8 -65
- package/dist/runtime/prose/Tr.vue +8 -9
- package/dist/runtime/prose/Tr.vue.d.ts +8 -65
- package/dist/runtime/prose/Ul.vue +8 -9
- package/dist/runtime/prose/Ul.vue.d.ts +8 -65
- package/dist/runtime/types/form.d.ts +1 -0
- package/dist/runtime/types/utils.d.ts +47 -7
- package/dist/runtime/utils/tv.js +2 -2
- package/dist/runtime/vue/components/Link.vue +13 -12
- package/dist/runtime/vue/stubs.d.ts +1 -1
- package/dist/shared/{b24ui-nuxt.BA6Y2FnC.mjs → b24ui-nuxt.wBs9vEU5.mjs} +27 -2
- package/dist/unplugin.d.mts +4 -0
- package/dist/unplugin.mjs +12 -4
- package/dist/vite.mjs +1 -1
- package/package.json +21 -15
|
@@ -1,352 +1,8 @@
|
|
|
1
|
-
import type { VariantProps } from 'tailwind-variants';
|
|
2
1
|
import type { SliderRootProps } from 'reka-ui';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
thumb: string;
|
|
8
|
-
};
|
|
9
|
-
danger: {
|
|
10
|
-
range: string;
|
|
11
|
-
thumb: string;
|
|
12
|
-
};
|
|
13
|
-
success: {
|
|
14
|
-
range: string;
|
|
15
|
-
thumb: string;
|
|
16
|
-
};
|
|
17
|
-
warning: {
|
|
18
|
-
range: string;
|
|
19
|
-
thumb: string;
|
|
20
|
-
};
|
|
21
|
-
primary: {
|
|
22
|
-
range: string;
|
|
23
|
-
thumb: string;
|
|
24
|
-
};
|
|
25
|
-
secondary: {
|
|
26
|
-
range: string;
|
|
27
|
-
thumb: string;
|
|
28
|
-
};
|
|
29
|
-
collab: {
|
|
30
|
-
range: string;
|
|
31
|
-
thumb: string;
|
|
32
|
-
};
|
|
33
|
-
ai: {
|
|
34
|
-
range: string;
|
|
35
|
-
thumb: string;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
size: {
|
|
39
|
-
xs: {
|
|
40
|
-
thumb: string;
|
|
41
|
-
};
|
|
42
|
-
sm: {
|
|
43
|
-
thumb: string;
|
|
44
|
-
};
|
|
45
|
-
md: {
|
|
46
|
-
thumb: string;
|
|
47
|
-
};
|
|
48
|
-
lg: {
|
|
49
|
-
thumb: string;
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
orientation: {
|
|
53
|
-
horizontal: {
|
|
54
|
-
root: string;
|
|
55
|
-
range: string;
|
|
56
|
-
};
|
|
57
|
-
vertical: {
|
|
58
|
-
root: string;
|
|
59
|
-
range: string;
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
disabled: {
|
|
63
|
-
true: {
|
|
64
|
-
root: string;
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
}, {
|
|
68
|
-
root: string;
|
|
69
|
-
track: string;
|
|
70
|
-
range: string;
|
|
71
|
-
thumb: string;
|
|
72
|
-
}, undefined, {
|
|
73
|
-
color: {
|
|
74
|
-
default: {
|
|
75
|
-
range: string;
|
|
76
|
-
thumb: string;
|
|
77
|
-
};
|
|
78
|
-
danger: {
|
|
79
|
-
range: string;
|
|
80
|
-
thumb: string;
|
|
81
|
-
};
|
|
82
|
-
success: {
|
|
83
|
-
range: string;
|
|
84
|
-
thumb: string;
|
|
85
|
-
};
|
|
86
|
-
warning: {
|
|
87
|
-
range: string;
|
|
88
|
-
thumb: string;
|
|
89
|
-
};
|
|
90
|
-
primary: {
|
|
91
|
-
range: string;
|
|
92
|
-
thumb: string;
|
|
93
|
-
};
|
|
94
|
-
secondary: {
|
|
95
|
-
range: string;
|
|
96
|
-
thumb: string;
|
|
97
|
-
};
|
|
98
|
-
collab: {
|
|
99
|
-
range: string;
|
|
100
|
-
thumb: string;
|
|
101
|
-
};
|
|
102
|
-
ai: {
|
|
103
|
-
range: string;
|
|
104
|
-
thumb: string;
|
|
105
|
-
};
|
|
106
|
-
};
|
|
107
|
-
size: {
|
|
108
|
-
xs: {
|
|
109
|
-
thumb: string;
|
|
110
|
-
};
|
|
111
|
-
sm: {
|
|
112
|
-
thumb: string;
|
|
113
|
-
};
|
|
114
|
-
md: {
|
|
115
|
-
thumb: string;
|
|
116
|
-
};
|
|
117
|
-
lg: {
|
|
118
|
-
thumb: string;
|
|
119
|
-
};
|
|
120
|
-
};
|
|
121
|
-
orientation: {
|
|
122
|
-
horizontal: {
|
|
123
|
-
root: string;
|
|
124
|
-
range: string;
|
|
125
|
-
};
|
|
126
|
-
vertical: {
|
|
127
|
-
root: string;
|
|
128
|
-
range: string;
|
|
129
|
-
};
|
|
130
|
-
};
|
|
131
|
-
disabled: {
|
|
132
|
-
true: {
|
|
133
|
-
root: string;
|
|
134
|
-
};
|
|
135
|
-
};
|
|
136
|
-
}, {
|
|
137
|
-
root: string;
|
|
138
|
-
track: string;
|
|
139
|
-
range: string;
|
|
140
|
-
thumb: string;
|
|
141
|
-
}, import("tailwind-variants").TVReturnType<{
|
|
142
|
-
color: {
|
|
143
|
-
default: {
|
|
144
|
-
range: string;
|
|
145
|
-
thumb: string;
|
|
146
|
-
};
|
|
147
|
-
danger: {
|
|
148
|
-
range: string;
|
|
149
|
-
thumb: string;
|
|
150
|
-
};
|
|
151
|
-
success: {
|
|
152
|
-
range: string;
|
|
153
|
-
thumb: string;
|
|
154
|
-
};
|
|
155
|
-
warning: {
|
|
156
|
-
range: string;
|
|
157
|
-
thumb: string;
|
|
158
|
-
};
|
|
159
|
-
primary: {
|
|
160
|
-
range: string;
|
|
161
|
-
thumb: string;
|
|
162
|
-
};
|
|
163
|
-
secondary: {
|
|
164
|
-
range: string;
|
|
165
|
-
thumb: string;
|
|
166
|
-
};
|
|
167
|
-
collab: {
|
|
168
|
-
range: string;
|
|
169
|
-
thumb: string;
|
|
170
|
-
};
|
|
171
|
-
ai: {
|
|
172
|
-
range: string;
|
|
173
|
-
thumb: string;
|
|
174
|
-
};
|
|
175
|
-
};
|
|
176
|
-
size: {
|
|
177
|
-
xs: {
|
|
178
|
-
thumb: string;
|
|
179
|
-
};
|
|
180
|
-
sm: {
|
|
181
|
-
thumb: string;
|
|
182
|
-
};
|
|
183
|
-
md: {
|
|
184
|
-
thumb: string;
|
|
185
|
-
};
|
|
186
|
-
lg: {
|
|
187
|
-
thumb: string;
|
|
188
|
-
};
|
|
189
|
-
};
|
|
190
|
-
orientation: {
|
|
191
|
-
horizontal: {
|
|
192
|
-
root: string;
|
|
193
|
-
range: string;
|
|
194
|
-
};
|
|
195
|
-
vertical: {
|
|
196
|
-
root: string;
|
|
197
|
-
range: string;
|
|
198
|
-
};
|
|
199
|
-
};
|
|
200
|
-
disabled: {
|
|
201
|
-
true: {
|
|
202
|
-
root: string;
|
|
203
|
-
};
|
|
204
|
-
};
|
|
205
|
-
}, {
|
|
206
|
-
root: string;
|
|
207
|
-
track: string;
|
|
208
|
-
range: string;
|
|
209
|
-
thumb: string;
|
|
210
|
-
}, undefined, {
|
|
211
|
-
color: {
|
|
212
|
-
default: {
|
|
213
|
-
range: string;
|
|
214
|
-
thumb: string;
|
|
215
|
-
};
|
|
216
|
-
danger: {
|
|
217
|
-
range: string;
|
|
218
|
-
thumb: string;
|
|
219
|
-
};
|
|
220
|
-
success: {
|
|
221
|
-
range: string;
|
|
222
|
-
thumb: string;
|
|
223
|
-
};
|
|
224
|
-
warning: {
|
|
225
|
-
range: string;
|
|
226
|
-
thumb: string;
|
|
227
|
-
};
|
|
228
|
-
primary: {
|
|
229
|
-
range: string;
|
|
230
|
-
thumb: string;
|
|
231
|
-
};
|
|
232
|
-
secondary: {
|
|
233
|
-
range: string;
|
|
234
|
-
thumb: string;
|
|
235
|
-
};
|
|
236
|
-
collab: {
|
|
237
|
-
range: string;
|
|
238
|
-
thumb: string;
|
|
239
|
-
};
|
|
240
|
-
ai: {
|
|
241
|
-
range: string;
|
|
242
|
-
thumb: string;
|
|
243
|
-
};
|
|
244
|
-
};
|
|
245
|
-
size: {
|
|
246
|
-
xs: {
|
|
247
|
-
thumb: string;
|
|
248
|
-
};
|
|
249
|
-
sm: {
|
|
250
|
-
thumb: string;
|
|
251
|
-
};
|
|
252
|
-
md: {
|
|
253
|
-
thumb: string;
|
|
254
|
-
};
|
|
255
|
-
lg: {
|
|
256
|
-
thumb: string;
|
|
257
|
-
};
|
|
258
|
-
};
|
|
259
|
-
orientation: {
|
|
260
|
-
horizontal: {
|
|
261
|
-
root: string;
|
|
262
|
-
range: string;
|
|
263
|
-
};
|
|
264
|
-
vertical: {
|
|
265
|
-
root: string;
|
|
266
|
-
range: string;
|
|
267
|
-
};
|
|
268
|
-
};
|
|
269
|
-
disabled: {
|
|
270
|
-
true: {
|
|
271
|
-
root: string;
|
|
272
|
-
};
|
|
273
|
-
};
|
|
274
|
-
}, {
|
|
275
|
-
root: string;
|
|
276
|
-
track: string;
|
|
277
|
-
range: string;
|
|
278
|
-
thumb: string;
|
|
279
|
-
}, import("tailwind-variants").TVReturnType<{
|
|
280
|
-
color: {
|
|
281
|
-
default: {
|
|
282
|
-
range: string;
|
|
283
|
-
thumb: string;
|
|
284
|
-
};
|
|
285
|
-
danger: {
|
|
286
|
-
range: string;
|
|
287
|
-
thumb: string;
|
|
288
|
-
};
|
|
289
|
-
success: {
|
|
290
|
-
range: string;
|
|
291
|
-
thumb: string;
|
|
292
|
-
};
|
|
293
|
-
warning: {
|
|
294
|
-
range: string;
|
|
295
|
-
thumb: string;
|
|
296
|
-
};
|
|
297
|
-
primary: {
|
|
298
|
-
range: string;
|
|
299
|
-
thumb: string;
|
|
300
|
-
};
|
|
301
|
-
secondary: {
|
|
302
|
-
range: string;
|
|
303
|
-
thumb: string;
|
|
304
|
-
};
|
|
305
|
-
collab: {
|
|
306
|
-
range: string;
|
|
307
|
-
thumb: string;
|
|
308
|
-
};
|
|
309
|
-
ai: {
|
|
310
|
-
range: string;
|
|
311
|
-
thumb: string;
|
|
312
|
-
};
|
|
313
|
-
};
|
|
314
|
-
size: {
|
|
315
|
-
xs: {
|
|
316
|
-
thumb: string;
|
|
317
|
-
};
|
|
318
|
-
sm: {
|
|
319
|
-
thumb: string;
|
|
320
|
-
};
|
|
321
|
-
md: {
|
|
322
|
-
thumb: string;
|
|
323
|
-
};
|
|
324
|
-
lg: {
|
|
325
|
-
thumb: string;
|
|
326
|
-
};
|
|
327
|
-
};
|
|
328
|
-
orientation: {
|
|
329
|
-
horizontal: {
|
|
330
|
-
root: string;
|
|
331
|
-
range: string;
|
|
332
|
-
};
|
|
333
|
-
vertical: {
|
|
334
|
-
root: string;
|
|
335
|
-
range: string;
|
|
336
|
-
};
|
|
337
|
-
};
|
|
338
|
-
disabled: {
|
|
339
|
-
true: {
|
|
340
|
-
root: string;
|
|
341
|
-
};
|
|
342
|
-
};
|
|
343
|
-
}, {
|
|
344
|
-
root: string;
|
|
345
|
-
track: string;
|
|
346
|
-
range: string;
|
|
347
|
-
thumb: string;
|
|
348
|
-
}, undefined, unknown, unknown, undefined>>>;
|
|
349
|
-
type RangeVariants = VariantProps<typeof range>;
|
|
2
|
+
import type { AppConfig } from '@nuxt/schema';
|
|
3
|
+
import theme from '#build/b24ui/range';
|
|
4
|
+
import type { ComponentConfig } from '../types/utils';
|
|
5
|
+
type Range = ComponentConfig<typeof theme, AppConfig, 'range'>;
|
|
350
6
|
export interface RangeProps extends Pick<SliderRootProps, 'name' | 'disabled' | 'inverted' | 'min' | 'max' | 'step' | 'minStepsBetweenThumbs'> {
|
|
351
7
|
/**
|
|
352
8
|
* The element or component this component should render as.
|
|
@@ -356,11 +12,11 @@ export interface RangeProps extends Pick<SliderRootProps, 'name' | 'disabled' |
|
|
|
356
12
|
/**
|
|
357
13
|
* @defaultValue 'md'
|
|
358
14
|
*/
|
|
359
|
-
size?:
|
|
15
|
+
size?: Range['variants']['size'];
|
|
360
16
|
/**
|
|
361
17
|
* @defaultValue 'primary'
|
|
362
18
|
*/
|
|
363
|
-
color?:
|
|
19
|
+
color?: Range['variants']['color'];
|
|
364
20
|
/**
|
|
365
21
|
* The orientation of the Range.
|
|
366
22
|
* @defaultValue 'horizontal'
|
|
@@ -371,7 +27,7 @@ export interface RangeProps extends Pick<SliderRootProps, 'name' | 'disabled' |
|
|
|
371
27
|
*/
|
|
372
28
|
defaultValue?: number | number[];
|
|
373
29
|
class?: any;
|
|
374
|
-
b24ui?:
|
|
30
|
+
b24ui?: Range['slots'];
|
|
375
31
|
}
|
|
376
32
|
export interface RangeEmits {
|
|
377
33
|
(e: 'update:modelValue', payload: number | number[]): void;
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import _appConfig from "#build/app.config";
|
|
3
2
|
import theme from "#build/b24ui/select";
|
|
4
|
-
import { tv } from "../utils/tv";
|
|
5
|
-
const appConfigSelect = _appConfig;
|
|
6
|
-
const select = tv({ extend: tv(theme), ...appConfigSelect.b24ui?.select || {} });
|
|
7
3
|
</script>
|
|
8
4
|
|
|
9
5
|
<script setup>
|
|
@@ -11,10 +7,12 @@ import { computed, toRef } from "vue";
|
|
|
11
7
|
import { Primitive, SelectRoot, SelectArrow, SelectTrigger, SelectPortal, SelectContent, SelectViewport, SelectScrollUpButton, SelectScrollDownButton, SelectLabel, SelectGroup, SelectItem, SelectItemIndicator, SelectItemText, SelectSeparator, useForwardPropsEmits } from "reka-ui";
|
|
12
8
|
import { defu } from "defu";
|
|
13
9
|
import { reactivePick } from "@vueuse/core";
|
|
10
|
+
import { useAppConfig } from "#imports";
|
|
14
11
|
import { useButtonGroup } from "../composables/useButtonGroup";
|
|
15
12
|
import { useComponentIcons } from "../composables/useComponentIcons";
|
|
16
13
|
import { useFormField } from "../composables/useFormField";
|
|
17
14
|
import { compare, get, isArrayOfArray } from "../utils";
|
|
15
|
+
import { tv } from "../utils/tv";
|
|
18
16
|
import icons from "../dictionary/icons";
|
|
19
17
|
import B24Avatar from "./Avatar.vue";
|
|
20
18
|
import B24Chip from "./Chip.vue";
|
|
@@ -57,6 +55,7 @@ const props = defineProps({
|
|
|
57
55
|
});
|
|
58
56
|
const emits = defineEmits(["update:open", "change", "blur", "focus", "update:modelValue"]);
|
|
59
57
|
const slots = defineSlots();
|
|
58
|
+
const appConfig = useAppConfig();
|
|
60
59
|
const rootProps = useForwardPropsEmits(reactivePick(props, "open", "defaultOpen", "disabled", "autocomplete", "required", "multiple"), emits);
|
|
61
60
|
const contentProps = toRef(() => defu(props.content, { side: "bottom", sideOffset: 8, collisionPadding: 8, position: "popper" }));
|
|
62
61
|
const arrowProps = toRef(() => props.arrow);
|
|
@@ -70,7 +69,7 @@ const selectSize = computed(() => buttonGroupSize.value || formGroupSize.value);
|
|
|
70
69
|
const isTag = computed(() => {
|
|
71
70
|
return props.tag;
|
|
72
71
|
});
|
|
73
|
-
const b24ui = computed(() => select({
|
|
72
|
+
const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.select || {} })({
|
|
74
73
|
color: color.value,
|
|
75
74
|
size: selectSize?.value,
|
|
76
75
|
loading: props.loading,
|