@bitrix24/b24ui-nuxt 0.6.0 → 0.6.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/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 +1388 -3373
- package/dist/meta.mjs +1388 -3373
- 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 +6 -5
- 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/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 +42 -3
- package/dist/runtime/utils/tv.js +2 -2
- package/dist/runtime/vue/components/Link.vue +12 -11
- package/dist/shared/{b24ui-nuxt.BA6Y2FnC.mjs → b24ui-nuxt.wBs9vEU5.mjs} +27 -2
- package/dist/unplugin.mjs +1 -1
- package/dist/vite.mjs +1 -1
- package/package.json +6 -6
|
@@ -1,643 +1,8 @@
|
|
|
1
|
-
import type { VariantProps } from 'tailwind-variants';
|
|
2
1
|
import type { RadioGroupRootProps, RadioGroupRootEmits } from 'reka-ui';
|
|
3
|
-
import type {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
base: string;
|
|
8
|
-
indicator: "end" | "start" | "hidden";
|
|
9
|
-
};
|
|
10
|
-
danger: {
|
|
11
|
-
base: string;
|
|
12
|
-
indicator: "end" | "start" | "hidden";
|
|
13
|
-
};
|
|
14
|
-
success: {
|
|
15
|
-
base: string;
|
|
16
|
-
indicator: "end" | "start" | "hidden";
|
|
17
|
-
};
|
|
18
|
-
warning: {
|
|
19
|
-
base: string;
|
|
20
|
-
indicator: "end" | "start" | "hidden";
|
|
21
|
-
};
|
|
22
|
-
primary: {
|
|
23
|
-
base: string;
|
|
24
|
-
indicator: "end" | "start" | "hidden";
|
|
25
|
-
};
|
|
26
|
-
secondary: {
|
|
27
|
-
base: string;
|
|
28
|
-
indicator: "end" | "start" | "hidden";
|
|
29
|
-
};
|
|
30
|
-
collab: {
|
|
31
|
-
base: string;
|
|
32
|
-
indicator: "end" | "start" | "hidden";
|
|
33
|
-
};
|
|
34
|
-
ai: {
|
|
35
|
-
base: string;
|
|
36
|
-
indicator: "end" | "start" | "hidden";
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
variant: {
|
|
40
|
-
list: {};
|
|
41
|
-
card: {
|
|
42
|
-
item: string;
|
|
43
|
-
};
|
|
44
|
-
table: {
|
|
45
|
-
item: string;
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
orientation: {
|
|
49
|
-
horizontal: {
|
|
50
|
-
fieldset: string;
|
|
51
|
-
wrapper: string;
|
|
52
|
-
};
|
|
53
|
-
vertical: {
|
|
54
|
-
fieldset: string;
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
indicator: {
|
|
58
|
-
start: {
|
|
59
|
-
item: string;
|
|
60
|
-
base: string;
|
|
61
|
-
};
|
|
62
|
-
end: {
|
|
63
|
-
item: string;
|
|
64
|
-
base: string;
|
|
65
|
-
};
|
|
66
|
-
hidden: {
|
|
67
|
-
base: string;
|
|
68
|
-
wrapper: string;
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
size: {
|
|
72
|
-
xs: {
|
|
73
|
-
fieldset: string;
|
|
74
|
-
legend: string;
|
|
75
|
-
base: string;
|
|
76
|
-
item: string;
|
|
77
|
-
label: string;
|
|
78
|
-
container: string;
|
|
79
|
-
indicator: "end" | "start" | "hidden";
|
|
80
|
-
};
|
|
81
|
-
sm: {
|
|
82
|
-
fieldset: string;
|
|
83
|
-
legend: string;
|
|
84
|
-
base: string;
|
|
85
|
-
item: string;
|
|
86
|
-
label: string;
|
|
87
|
-
container: string;
|
|
88
|
-
indicator: "end" | "start" | "hidden";
|
|
89
|
-
};
|
|
90
|
-
md: {
|
|
91
|
-
fieldset: string;
|
|
92
|
-
legend: string;
|
|
93
|
-
base: string;
|
|
94
|
-
item: string;
|
|
95
|
-
label: string;
|
|
96
|
-
container: string;
|
|
97
|
-
indicator: "end" | "start" | "hidden";
|
|
98
|
-
};
|
|
99
|
-
lg: {
|
|
100
|
-
fieldset: string;
|
|
101
|
-
legend: string;
|
|
102
|
-
base: string;
|
|
103
|
-
item: string;
|
|
104
|
-
label: string;
|
|
105
|
-
container: string;
|
|
106
|
-
indicator: "end" | "start" | "hidden";
|
|
107
|
-
};
|
|
108
|
-
};
|
|
109
|
-
disabled: {
|
|
110
|
-
true: {
|
|
111
|
-
base: string;
|
|
112
|
-
label: string;
|
|
113
|
-
};
|
|
114
|
-
};
|
|
115
|
-
required: {
|
|
116
|
-
true: {
|
|
117
|
-
label: string;
|
|
118
|
-
};
|
|
119
|
-
};
|
|
120
|
-
}, {
|
|
121
|
-
root: string;
|
|
122
|
-
fieldset: string;
|
|
123
|
-
legend: string;
|
|
124
|
-
item: string;
|
|
125
|
-
base: string;
|
|
126
|
-
indicator: "end" | "start" | "hidden";
|
|
127
|
-
container: string;
|
|
128
|
-
wrapper: string;
|
|
129
|
-
label: string;
|
|
130
|
-
description: string;
|
|
131
|
-
}, undefined, {
|
|
132
|
-
color: {
|
|
133
|
-
default: {
|
|
134
|
-
base: string;
|
|
135
|
-
indicator: "end" | "start" | "hidden";
|
|
136
|
-
};
|
|
137
|
-
danger: {
|
|
138
|
-
base: string;
|
|
139
|
-
indicator: "end" | "start" | "hidden";
|
|
140
|
-
};
|
|
141
|
-
success: {
|
|
142
|
-
base: string;
|
|
143
|
-
indicator: "end" | "start" | "hidden";
|
|
144
|
-
};
|
|
145
|
-
warning: {
|
|
146
|
-
base: string;
|
|
147
|
-
indicator: "end" | "start" | "hidden";
|
|
148
|
-
};
|
|
149
|
-
primary: {
|
|
150
|
-
base: string;
|
|
151
|
-
indicator: "end" | "start" | "hidden";
|
|
152
|
-
};
|
|
153
|
-
secondary: {
|
|
154
|
-
base: string;
|
|
155
|
-
indicator: "end" | "start" | "hidden";
|
|
156
|
-
};
|
|
157
|
-
collab: {
|
|
158
|
-
base: string;
|
|
159
|
-
indicator: "end" | "start" | "hidden";
|
|
160
|
-
};
|
|
161
|
-
ai: {
|
|
162
|
-
base: string;
|
|
163
|
-
indicator: "end" | "start" | "hidden";
|
|
164
|
-
};
|
|
165
|
-
};
|
|
166
|
-
variant: {
|
|
167
|
-
list: {};
|
|
168
|
-
card: {
|
|
169
|
-
item: string;
|
|
170
|
-
};
|
|
171
|
-
table: {
|
|
172
|
-
item: string;
|
|
173
|
-
};
|
|
174
|
-
};
|
|
175
|
-
orientation: {
|
|
176
|
-
horizontal: {
|
|
177
|
-
fieldset: string;
|
|
178
|
-
wrapper: string;
|
|
179
|
-
};
|
|
180
|
-
vertical: {
|
|
181
|
-
fieldset: string;
|
|
182
|
-
};
|
|
183
|
-
};
|
|
184
|
-
indicator: {
|
|
185
|
-
start: {
|
|
186
|
-
item: string;
|
|
187
|
-
base: string;
|
|
188
|
-
};
|
|
189
|
-
end: {
|
|
190
|
-
item: string;
|
|
191
|
-
base: string;
|
|
192
|
-
};
|
|
193
|
-
hidden: {
|
|
194
|
-
base: string;
|
|
195
|
-
wrapper: string;
|
|
196
|
-
};
|
|
197
|
-
};
|
|
198
|
-
size: {
|
|
199
|
-
xs: {
|
|
200
|
-
fieldset: string;
|
|
201
|
-
legend: string;
|
|
202
|
-
base: string;
|
|
203
|
-
item: string;
|
|
204
|
-
label: string;
|
|
205
|
-
container: string;
|
|
206
|
-
indicator: "end" | "start" | "hidden";
|
|
207
|
-
};
|
|
208
|
-
sm: {
|
|
209
|
-
fieldset: string;
|
|
210
|
-
legend: string;
|
|
211
|
-
base: string;
|
|
212
|
-
item: string;
|
|
213
|
-
label: string;
|
|
214
|
-
container: string;
|
|
215
|
-
indicator: "end" | "start" | "hidden";
|
|
216
|
-
};
|
|
217
|
-
md: {
|
|
218
|
-
fieldset: string;
|
|
219
|
-
legend: string;
|
|
220
|
-
base: string;
|
|
221
|
-
item: string;
|
|
222
|
-
label: string;
|
|
223
|
-
container: string;
|
|
224
|
-
indicator: "end" | "start" | "hidden";
|
|
225
|
-
};
|
|
226
|
-
lg: {
|
|
227
|
-
fieldset: string;
|
|
228
|
-
legend: string;
|
|
229
|
-
base: string;
|
|
230
|
-
item: string;
|
|
231
|
-
label: string;
|
|
232
|
-
container: string;
|
|
233
|
-
indicator: "end" | "start" | "hidden";
|
|
234
|
-
};
|
|
235
|
-
};
|
|
236
|
-
disabled: {
|
|
237
|
-
true: {
|
|
238
|
-
base: string;
|
|
239
|
-
label: string;
|
|
240
|
-
};
|
|
241
|
-
};
|
|
242
|
-
required: {
|
|
243
|
-
true: {
|
|
244
|
-
label: string;
|
|
245
|
-
};
|
|
246
|
-
};
|
|
247
|
-
}, {
|
|
248
|
-
root: string;
|
|
249
|
-
fieldset: string;
|
|
250
|
-
legend: string;
|
|
251
|
-
item: string;
|
|
252
|
-
base: string;
|
|
253
|
-
indicator: "end" | "start" | "hidden";
|
|
254
|
-
container: string;
|
|
255
|
-
wrapper: string;
|
|
256
|
-
label: string;
|
|
257
|
-
description: string;
|
|
258
|
-
}, import("tailwind-variants").TVReturnType<{
|
|
259
|
-
color: {
|
|
260
|
-
default: {
|
|
261
|
-
base: string;
|
|
262
|
-
indicator: "end" | "start" | "hidden";
|
|
263
|
-
};
|
|
264
|
-
danger: {
|
|
265
|
-
base: string;
|
|
266
|
-
indicator: "end" | "start" | "hidden";
|
|
267
|
-
};
|
|
268
|
-
success: {
|
|
269
|
-
base: string;
|
|
270
|
-
indicator: "end" | "start" | "hidden";
|
|
271
|
-
};
|
|
272
|
-
warning: {
|
|
273
|
-
base: string;
|
|
274
|
-
indicator: "end" | "start" | "hidden";
|
|
275
|
-
};
|
|
276
|
-
primary: {
|
|
277
|
-
base: string;
|
|
278
|
-
indicator: "end" | "start" | "hidden";
|
|
279
|
-
};
|
|
280
|
-
secondary: {
|
|
281
|
-
base: string;
|
|
282
|
-
indicator: "end" | "start" | "hidden";
|
|
283
|
-
};
|
|
284
|
-
collab: {
|
|
285
|
-
base: string;
|
|
286
|
-
indicator: "end" | "start" | "hidden";
|
|
287
|
-
};
|
|
288
|
-
ai: {
|
|
289
|
-
base: string;
|
|
290
|
-
indicator: "end" | "start" | "hidden";
|
|
291
|
-
};
|
|
292
|
-
};
|
|
293
|
-
variant: {
|
|
294
|
-
list: {};
|
|
295
|
-
card: {
|
|
296
|
-
item: string;
|
|
297
|
-
};
|
|
298
|
-
table: {
|
|
299
|
-
item: string;
|
|
300
|
-
};
|
|
301
|
-
};
|
|
302
|
-
orientation: {
|
|
303
|
-
horizontal: {
|
|
304
|
-
fieldset: string;
|
|
305
|
-
wrapper: string;
|
|
306
|
-
};
|
|
307
|
-
vertical: {
|
|
308
|
-
fieldset: string;
|
|
309
|
-
};
|
|
310
|
-
};
|
|
311
|
-
indicator: {
|
|
312
|
-
start: {
|
|
313
|
-
item: string;
|
|
314
|
-
base: string;
|
|
315
|
-
};
|
|
316
|
-
end: {
|
|
317
|
-
item: string;
|
|
318
|
-
base: string;
|
|
319
|
-
};
|
|
320
|
-
hidden: {
|
|
321
|
-
base: string;
|
|
322
|
-
wrapper: string;
|
|
323
|
-
};
|
|
324
|
-
};
|
|
325
|
-
size: {
|
|
326
|
-
xs: {
|
|
327
|
-
fieldset: string;
|
|
328
|
-
legend: string;
|
|
329
|
-
base: string;
|
|
330
|
-
item: string;
|
|
331
|
-
label: string;
|
|
332
|
-
container: string;
|
|
333
|
-
indicator: "end" | "start" | "hidden";
|
|
334
|
-
};
|
|
335
|
-
sm: {
|
|
336
|
-
fieldset: string;
|
|
337
|
-
legend: string;
|
|
338
|
-
base: string;
|
|
339
|
-
item: string;
|
|
340
|
-
label: string;
|
|
341
|
-
container: string;
|
|
342
|
-
indicator: "end" | "start" | "hidden";
|
|
343
|
-
};
|
|
344
|
-
md: {
|
|
345
|
-
fieldset: string;
|
|
346
|
-
legend: string;
|
|
347
|
-
base: string;
|
|
348
|
-
item: string;
|
|
349
|
-
label: string;
|
|
350
|
-
container: string;
|
|
351
|
-
indicator: "end" | "start" | "hidden";
|
|
352
|
-
};
|
|
353
|
-
lg: {
|
|
354
|
-
fieldset: string;
|
|
355
|
-
legend: string;
|
|
356
|
-
base: string;
|
|
357
|
-
item: string;
|
|
358
|
-
label: string;
|
|
359
|
-
container: string;
|
|
360
|
-
indicator: "end" | "start" | "hidden";
|
|
361
|
-
};
|
|
362
|
-
};
|
|
363
|
-
disabled: {
|
|
364
|
-
true: {
|
|
365
|
-
base: string;
|
|
366
|
-
label: string;
|
|
367
|
-
};
|
|
368
|
-
};
|
|
369
|
-
required: {
|
|
370
|
-
true: {
|
|
371
|
-
label: string;
|
|
372
|
-
};
|
|
373
|
-
};
|
|
374
|
-
}, {
|
|
375
|
-
root: string;
|
|
376
|
-
fieldset: string;
|
|
377
|
-
legend: string;
|
|
378
|
-
item: string;
|
|
379
|
-
base: string;
|
|
380
|
-
indicator: "end" | "start" | "hidden";
|
|
381
|
-
container: string;
|
|
382
|
-
wrapper: string;
|
|
383
|
-
label: string;
|
|
384
|
-
description: string;
|
|
385
|
-
}, undefined, {
|
|
386
|
-
color: {
|
|
387
|
-
default: {
|
|
388
|
-
base: string;
|
|
389
|
-
indicator: "end" | "start" | "hidden";
|
|
390
|
-
};
|
|
391
|
-
danger: {
|
|
392
|
-
base: string;
|
|
393
|
-
indicator: "end" | "start" | "hidden";
|
|
394
|
-
};
|
|
395
|
-
success: {
|
|
396
|
-
base: string;
|
|
397
|
-
indicator: "end" | "start" | "hidden";
|
|
398
|
-
};
|
|
399
|
-
warning: {
|
|
400
|
-
base: string;
|
|
401
|
-
indicator: "end" | "start" | "hidden";
|
|
402
|
-
};
|
|
403
|
-
primary: {
|
|
404
|
-
base: string;
|
|
405
|
-
indicator: "end" | "start" | "hidden";
|
|
406
|
-
};
|
|
407
|
-
secondary: {
|
|
408
|
-
base: string;
|
|
409
|
-
indicator: "end" | "start" | "hidden";
|
|
410
|
-
};
|
|
411
|
-
collab: {
|
|
412
|
-
base: string;
|
|
413
|
-
indicator: "end" | "start" | "hidden";
|
|
414
|
-
};
|
|
415
|
-
ai: {
|
|
416
|
-
base: string;
|
|
417
|
-
indicator: "end" | "start" | "hidden";
|
|
418
|
-
};
|
|
419
|
-
};
|
|
420
|
-
variant: {
|
|
421
|
-
list: {};
|
|
422
|
-
card: {
|
|
423
|
-
item: string;
|
|
424
|
-
};
|
|
425
|
-
table: {
|
|
426
|
-
item: string;
|
|
427
|
-
};
|
|
428
|
-
};
|
|
429
|
-
orientation: {
|
|
430
|
-
horizontal: {
|
|
431
|
-
fieldset: string;
|
|
432
|
-
wrapper: string;
|
|
433
|
-
};
|
|
434
|
-
vertical: {
|
|
435
|
-
fieldset: string;
|
|
436
|
-
};
|
|
437
|
-
};
|
|
438
|
-
indicator: {
|
|
439
|
-
start: {
|
|
440
|
-
item: string;
|
|
441
|
-
base: string;
|
|
442
|
-
};
|
|
443
|
-
end: {
|
|
444
|
-
item: string;
|
|
445
|
-
base: string;
|
|
446
|
-
};
|
|
447
|
-
hidden: {
|
|
448
|
-
base: string;
|
|
449
|
-
wrapper: string;
|
|
450
|
-
};
|
|
451
|
-
};
|
|
452
|
-
size: {
|
|
453
|
-
xs: {
|
|
454
|
-
fieldset: string;
|
|
455
|
-
legend: string;
|
|
456
|
-
base: string;
|
|
457
|
-
item: string;
|
|
458
|
-
label: string;
|
|
459
|
-
container: string;
|
|
460
|
-
indicator: "end" | "start" | "hidden";
|
|
461
|
-
};
|
|
462
|
-
sm: {
|
|
463
|
-
fieldset: string;
|
|
464
|
-
legend: string;
|
|
465
|
-
base: string;
|
|
466
|
-
item: string;
|
|
467
|
-
label: string;
|
|
468
|
-
container: string;
|
|
469
|
-
indicator: "end" | "start" | "hidden";
|
|
470
|
-
};
|
|
471
|
-
md: {
|
|
472
|
-
fieldset: string;
|
|
473
|
-
legend: string;
|
|
474
|
-
base: string;
|
|
475
|
-
item: string;
|
|
476
|
-
label: string;
|
|
477
|
-
container: string;
|
|
478
|
-
indicator: "end" | "start" | "hidden";
|
|
479
|
-
};
|
|
480
|
-
lg: {
|
|
481
|
-
fieldset: string;
|
|
482
|
-
legend: string;
|
|
483
|
-
base: string;
|
|
484
|
-
item: string;
|
|
485
|
-
label: string;
|
|
486
|
-
container: string;
|
|
487
|
-
indicator: "end" | "start" | "hidden";
|
|
488
|
-
};
|
|
489
|
-
};
|
|
490
|
-
disabled: {
|
|
491
|
-
true: {
|
|
492
|
-
base: string;
|
|
493
|
-
label: string;
|
|
494
|
-
};
|
|
495
|
-
};
|
|
496
|
-
required: {
|
|
497
|
-
true: {
|
|
498
|
-
label: string;
|
|
499
|
-
};
|
|
500
|
-
};
|
|
501
|
-
}, {
|
|
502
|
-
root: string;
|
|
503
|
-
fieldset: string;
|
|
504
|
-
legend: string;
|
|
505
|
-
item: string;
|
|
506
|
-
base: string;
|
|
507
|
-
indicator: "end" | "start" | "hidden";
|
|
508
|
-
container: string;
|
|
509
|
-
wrapper: string;
|
|
510
|
-
label: string;
|
|
511
|
-
description: string;
|
|
512
|
-
}, import("tailwind-variants").TVReturnType<{
|
|
513
|
-
color: {
|
|
514
|
-
default: {
|
|
515
|
-
base: string;
|
|
516
|
-
indicator: "end" | "start" | "hidden";
|
|
517
|
-
};
|
|
518
|
-
danger: {
|
|
519
|
-
base: string;
|
|
520
|
-
indicator: "end" | "start" | "hidden";
|
|
521
|
-
};
|
|
522
|
-
success: {
|
|
523
|
-
base: string;
|
|
524
|
-
indicator: "end" | "start" | "hidden";
|
|
525
|
-
};
|
|
526
|
-
warning: {
|
|
527
|
-
base: string;
|
|
528
|
-
indicator: "end" | "start" | "hidden";
|
|
529
|
-
};
|
|
530
|
-
primary: {
|
|
531
|
-
base: string;
|
|
532
|
-
indicator: "end" | "start" | "hidden";
|
|
533
|
-
};
|
|
534
|
-
secondary: {
|
|
535
|
-
base: string;
|
|
536
|
-
indicator: "end" | "start" | "hidden";
|
|
537
|
-
};
|
|
538
|
-
collab: {
|
|
539
|
-
base: string;
|
|
540
|
-
indicator: "end" | "start" | "hidden";
|
|
541
|
-
};
|
|
542
|
-
ai: {
|
|
543
|
-
base: string;
|
|
544
|
-
indicator: "end" | "start" | "hidden";
|
|
545
|
-
};
|
|
546
|
-
};
|
|
547
|
-
variant: {
|
|
548
|
-
list: {};
|
|
549
|
-
card: {
|
|
550
|
-
item: string;
|
|
551
|
-
};
|
|
552
|
-
table: {
|
|
553
|
-
item: string;
|
|
554
|
-
};
|
|
555
|
-
};
|
|
556
|
-
orientation: {
|
|
557
|
-
horizontal: {
|
|
558
|
-
fieldset: string;
|
|
559
|
-
wrapper: string;
|
|
560
|
-
};
|
|
561
|
-
vertical: {
|
|
562
|
-
fieldset: string;
|
|
563
|
-
};
|
|
564
|
-
};
|
|
565
|
-
indicator: {
|
|
566
|
-
start: {
|
|
567
|
-
item: string;
|
|
568
|
-
base: string;
|
|
569
|
-
};
|
|
570
|
-
end: {
|
|
571
|
-
item: string;
|
|
572
|
-
base: string;
|
|
573
|
-
};
|
|
574
|
-
hidden: {
|
|
575
|
-
base: string;
|
|
576
|
-
wrapper: string;
|
|
577
|
-
};
|
|
578
|
-
};
|
|
579
|
-
size: {
|
|
580
|
-
xs: {
|
|
581
|
-
fieldset: string;
|
|
582
|
-
legend: string;
|
|
583
|
-
base: string;
|
|
584
|
-
item: string;
|
|
585
|
-
label: string;
|
|
586
|
-
container: string;
|
|
587
|
-
indicator: "end" | "start" | "hidden";
|
|
588
|
-
};
|
|
589
|
-
sm: {
|
|
590
|
-
fieldset: string;
|
|
591
|
-
legend: string;
|
|
592
|
-
base: string;
|
|
593
|
-
item: string;
|
|
594
|
-
label: string;
|
|
595
|
-
container: string;
|
|
596
|
-
indicator: "end" | "start" | "hidden";
|
|
597
|
-
};
|
|
598
|
-
md: {
|
|
599
|
-
fieldset: string;
|
|
600
|
-
legend: string;
|
|
601
|
-
base: string;
|
|
602
|
-
item: string;
|
|
603
|
-
label: string;
|
|
604
|
-
container: string;
|
|
605
|
-
indicator: "end" | "start" | "hidden";
|
|
606
|
-
};
|
|
607
|
-
lg: {
|
|
608
|
-
fieldset: string;
|
|
609
|
-
legend: string;
|
|
610
|
-
base: string;
|
|
611
|
-
item: string;
|
|
612
|
-
label: string;
|
|
613
|
-
container: string;
|
|
614
|
-
indicator: "end" | "start" | "hidden";
|
|
615
|
-
};
|
|
616
|
-
};
|
|
617
|
-
disabled: {
|
|
618
|
-
true: {
|
|
619
|
-
base: string;
|
|
620
|
-
label: string;
|
|
621
|
-
};
|
|
622
|
-
};
|
|
623
|
-
required: {
|
|
624
|
-
true: {
|
|
625
|
-
label: string;
|
|
626
|
-
};
|
|
627
|
-
};
|
|
628
|
-
}, {
|
|
629
|
-
root: string;
|
|
630
|
-
fieldset: string;
|
|
631
|
-
legend: string;
|
|
632
|
-
item: string;
|
|
633
|
-
base: string;
|
|
634
|
-
indicator: "end" | "start" | "hidden";
|
|
635
|
-
container: string;
|
|
636
|
-
wrapper: string;
|
|
637
|
-
label: string;
|
|
638
|
-
description: string;
|
|
639
|
-
}, undefined, unknown, unknown, undefined>>>;
|
|
640
|
-
type RadioGroupVariants = VariantProps<typeof radioGroup>;
|
|
2
|
+
import type { AppConfig } from '@nuxt/schema';
|
|
3
|
+
import theme from '#build/b24ui/radio-group';
|
|
4
|
+
import type { AcceptableValue, ComponentConfig } from '../types/utils';
|
|
5
|
+
type RadioGroup = ComponentConfig<typeof theme, AppConfig, 'radioGroup'>;
|
|
641
6
|
export type RadioGroupValue = AcceptableValue;
|
|
642
7
|
export type RadioGroupItem = {
|
|
643
8
|
label?: string;
|
|
@@ -672,15 +37,15 @@ export interface RadioGroupProps<T extends RadioGroupItem = RadioGroupItem> exte
|
|
|
672
37
|
/**
|
|
673
38
|
* @defaultValue 'md'
|
|
674
39
|
*/
|
|
675
|
-
size?:
|
|
40
|
+
size?: RadioGroup['variants']['size'];
|
|
676
41
|
/**
|
|
677
42
|
* @defaultValue 'list'
|
|
678
43
|
*/
|
|
679
|
-
variant?:
|
|
44
|
+
variant?: RadioGroup['variants']['variant'];
|
|
680
45
|
/**
|
|
681
46
|
* @defaultValue 'primary'
|
|
682
47
|
*/
|
|
683
|
-
color?:
|
|
48
|
+
color?: RadioGroup['variants']['color'];
|
|
684
49
|
/**
|
|
685
50
|
* The orientation the radio buttons are laid out.
|
|
686
51
|
* @defaultValue 'vertical'
|
|
@@ -690,9 +55,9 @@ export interface RadioGroupProps<T extends RadioGroupItem = RadioGroupItem> exte
|
|
|
690
55
|
* Position of the indicator.
|
|
691
56
|
* @defaultValue 'start'
|
|
692
57
|
*/
|
|
693
|
-
indicator?:
|
|
58
|
+
indicator?: RadioGroup['variants']['indicator'];
|
|
694
59
|
class?: any;
|
|
695
|
-
b24ui?:
|
|
60
|
+
b24ui?: RadioGroup['slots'];
|
|
696
61
|
}
|
|
697
62
|
export type RadioGroupEmits = RadioGroupRootEmits & {
|
|
698
63
|
change: [payload: Event];
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import _appConfig from "#build/app.config";
|
|
3
2
|
import theme from "#build/b24ui/range";
|
|
4
|
-
import { tv } from "../utils/tv";
|
|
5
|
-
const appConfigRange = _appConfig;
|
|
6
|
-
const range = tv({ extend: tv(theme), ...appConfigRange.b24ui?.range || {} });
|
|
7
3
|
</script>
|
|
8
4
|
|
|
9
5
|
<script setup>
|
|
10
6
|
import { computed } from "vue";
|
|
11
7
|
import { SliderRoot, SliderRange, SliderTrack, SliderThumb, useForwardPropsEmits } from "reka-ui";
|
|
12
8
|
import { reactivePick } from "@vueuse/core";
|
|
9
|
+
import { useAppConfig } from "#imports";
|
|
13
10
|
import { useFormField } from "../composables/useFormField";
|
|
11
|
+
import { tv } from "../utils/tv";
|
|
14
12
|
const props = defineProps({
|
|
15
13
|
as: { type: null, required: false },
|
|
16
14
|
size: { type: null, required: false },
|
|
@@ -18,7 +16,7 @@ const props = defineProps({
|
|
|
18
16
|
orientation: { type: null, required: false, default: "horizontal" },
|
|
19
17
|
defaultValue: { type: [Number, Array], required: false },
|
|
20
18
|
class: { type: null, required: false },
|
|
21
|
-
b24ui: { type:
|
|
19
|
+
b24ui: { type: null, required: false },
|
|
22
20
|
name: { type: String, required: false },
|
|
23
21
|
disabled: { type: Boolean, required: false },
|
|
24
22
|
inverted: { type: Boolean, required: false },
|
|
@@ -29,6 +27,7 @@ const props = defineProps({
|
|
|
29
27
|
});
|
|
30
28
|
const emits = defineEmits(["update:modelValue", "change"]);
|
|
31
29
|
const modelValue = defineModel({ type: [Number, Array] });
|
|
30
|
+
const appConfig = useAppConfig();
|
|
32
31
|
const rootProps = useForwardPropsEmits(reactivePick(props, "as", "orientation", "min", "max", "step", "minStepsBetweenThumbs", "inverted"), emits);
|
|
33
32
|
const { id, emitFormChange, emitFormInput, size, color, name, disabled, ariaAttrs } = useFormField(props);
|
|
34
33
|
const defaultRangeValue = computed(() => {
|
|
@@ -49,7 +48,7 @@ const rangeValue = computed({
|
|
|
49
48
|
}
|
|
50
49
|
});
|
|
51
50
|
const thumbsCount = computed(() => rangeValue.value?.length ?? 1);
|
|
52
|
-
const b24ui = computed(() => range({
|
|
51
|
+
const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.range || {} })({
|
|
53
52
|
disabled: disabled.value,
|
|
54
53
|
size: size.value,
|
|
55
54
|
color: color.value,
|