@bitrix24/b24ui-nuxt 0.5.11 → 0.6.0
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/input-menu.ts +2 -2
- package/.nuxt/b24ui/select-menu.ts +4 -4
- package/.nuxt/b24ui/select.ts +2 -2
- package/dist/meta.d.mts +5208 -5061
- package/dist/meta.mjs +5208 -5061
- package/dist/module.json +3 -3
- package/dist/module.mjs +2 -2
- package/dist/runtime/components/Advice.vue +27 -54
- package/dist/runtime/components/Advice.vue.d.ts +170 -0
- package/dist/runtime/components/Alert.vue +35 -96
- package/dist/runtime/components/Alert.vue.d.ts +464 -0
- package/dist/runtime/components/App.vue +24 -34
- package/dist/runtime/components/App.vue.d.ts +23 -0
- package/dist/runtime/components/Avatar.vue +43 -81
- package/dist/runtime/components/Avatar.vue.d.ts +281 -0
- package/dist/runtime/components/AvatarGroup.vue +40 -76
- package/dist/runtime/components/AvatarGroup.vue.d.ts +204 -0
- package/dist/runtime/components/Badge.vue +40 -83
- package/dist/runtime/components/Badge.vue.d.ts +517 -0
- package/dist/runtime/components/Button.vue +96 -155
- package/dist/runtime/components/Button.vue.d.ts +640 -0
- package/dist/runtime/components/ButtonGroup.vue +19 -51
- package/dist/runtime/components/ButtonGroup.vue.d.ts +116 -0
- package/dist/runtime/components/Calendar.vue +73 -152
- package/dist/runtime/components/Calendar.vue.d.ts +437 -0
- package/dist/runtime/components/Checkbox.vue +42 -73
- package/dist/runtime/components/Checkbox.vue.d.ts +354 -0
- package/dist/runtime/components/Chip.vue +26 -74
- package/dist/runtime/components/Chip.vue.d.ts +271 -0
- package/dist/runtime/components/Collapsible.vue +22 -41
- package/dist/runtime/components/Collapsible.vue.d.ts +118 -0
- package/dist/runtime/components/Container.vue +13 -27
- package/dist/runtime/components/Container.vue.d.ts +27 -0
- package/dist/runtime/components/Countdown.vue +153 -378
- package/dist/runtime/components/Countdown.vue.d.ts +356 -0
- package/dist/runtime/components/DescriptionList.vue +78 -149
- package/dist/runtime/components/DescriptionList.vue.d.ts +379 -0
- package/dist/runtime/components/DropdownMenu.vue +38 -139
- package/dist/runtime/components/DropdownMenu.vue.d.ts +533 -0
- package/dist/runtime/components/DropdownMenuContent.vue +68 -80
- package/dist/runtime/components/DropdownMenuContent.vue.d.ts +228 -0
- package/dist/runtime/components/Form.vue +130 -217
- package/dist/runtime/components/Form.vue.d.ts +55 -0
- package/dist/runtime/components/FormField.vue +36 -80
- package/dist/runtime/components/FormField.vue.d.ts +282 -0
- package/dist/runtime/components/Input.vue +79 -179
- package/dist/runtime/components/Input.vue.d.ts +755 -0
- package/dist/runtime/components/InputMenu.vue +185 -381
- package/dist/runtime/components/InputMenu.vue.d.ts +1523 -0
- package/dist/runtime/components/InputNumber.vue +77 -175
- package/dist/runtime/components/InputNumber.vue.d.ts +658 -0
- package/dist/runtime/components/Kbd.vue +18 -45
- package/dist/runtime/components/Kbd.vue.d.ts +109 -0
- package/dist/runtime/components/Link.vue +92 -173
- package/dist/runtime/components/Link.vue.d.ts +129 -0
- package/dist/runtime/components/LinkBase.vue +33 -42
- package/dist/runtime/components/LinkBase.vue.d.ts +48 -0
- package/dist/runtime/components/Modal.vue +48 -127
- package/dist/runtime/components/Modal.vue.d.ts +327 -0
- package/dist/runtime/components/ModalDialogClose.vue +5 -8
- package/dist/runtime/components/ModalDialogClose.vue.d.ts +10 -0
- package/dist/runtime/components/Navbar.vue +15 -33
- package/dist/runtime/components/Navbar.vue.d.ts +101 -0
- package/dist/runtime/components/NavbarDivider.vue +15 -33
- package/dist/runtime/components/NavbarDivider.vue.d.ts +101 -0
- package/dist/runtime/components/NavbarSection.vue +15 -33
- package/dist/runtime/components/NavbarSection.vue.d.ts +101 -0
- package/dist/runtime/components/NavbarSpacer.vue +15 -33
- package/dist/runtime/components/NavbarSpacer.vue.d.ts +101 -0
- package/dist/runtime/components/NavigationMenu.vue +74 -208
- package/dist/runtime/components/NavigationMenu.vue.d.ts +824 -0
- package/dist/runtime/components/OverlayProvider.vue +14 -18
- package/dist/runtime/components/OverlayProvider.vue.d.ts +2 -0
- package/dist/runtime/components/Popover.vue +40 -81
- package/dist/runtime/components/Popover.vue.d.ts +147 -0
- package/dist/runtime/components/Progress.vue +70 -136
- package/dist/runtime/components/Progress.vue.d.ts +592 -0
- package/dist/runtime/components/RadioGroup.vue +59 -134
- package/dist/runtime/components/RadioGroup.vue.d.ts +723 -0
- package/dist/runtime/components/Range.vue +46 -85
- package/dist/runtime/components/Range.vue.d.ts +417 -0
- package/dist/runtime/components/Select.vue +110 -260
- package/dist/runtime/components/Select.vue.d.ts +1201 -0
- package/dist/runtime/components/SelectMenu.vue +161 -347
- package/dist/runtime/components/SelectMenu.vue.d.ts +1298 -0
- package/dist/runtime/components/Separator.vue +28 -71
- package/dist/runtime/components/Separator.vue.d.ts +400 -0
- package/dist/runtime/components/Sidebar.vue +15 -33
- package/dist/runtime/components/Sidebar.vue.d.ts +101 -0
- package/dist/runtime/components/SidebarBody.vue +17 -38
- package/dist/runtime/components/SidebarBody.vue.d.ts +90 -0
- package/dist/runtime/components/SidebarFooter.vue +15 -33
- package/dist/runtime/components/SidebarFooter.vue.d.ts +101 -0
- package/dist/runtime/components/SidebarHeader.vue +15 -33
- package/dist/runtime/components/SidebarHeader.vue.d.ts +101 -0
- package/dist/runtime/components/SidebarHeading.vue +15 -33
- package/dist/runtime/components/SidebarHeading.vue.d.ts +101 -0
- package/dist/runtime/components/SidebarLayout.vue +34 -70
- package/dist/runtime/components/SidebarLayout.vue.d.ts +222 -0
- package/dist/runtime/components/SidebarSection.vue +15 -33
- package/dist/runtime/components/SidebarSection.vue.d.ts +101 -0
- package/dist/runtime/components/SidebarSpacer.vue +15 -33
- package/dist/runtime/components/SidebarSpacer.vue.d.ts +101 -0
- package/dist/runtime/components/Skeleton.vue +12 -22
- package/dist/runtime/components/Skeleton.vue.d.ts +26 -0
- package/dist/runtime/components/Slideover.vue +50 -131
- package/dist/runtime/components/Slideover.vue.d.ts +360 -0
- package/dist/runtime/components/StackedLayout.vue +34 -73
- package/dist/runtime/components/StackedLayout.vue.d.ts +192 -0
- package/dist/runtime/components/Switch.vue +46 -95
- package/dist/runtime/components/Switch.vue.d.ts +587 -0
- package/dist/runtime/components/Tabs.vue +37 -105
- package/dist/runtime/components/Tabs.vue.d.ts +453 -0
- package/dist/runtime/components/Textarea.vue +92 -201
- package/dist/runtime/components/Textarea.vue.d.ts +601 -0
- package/dist/runtime/components/Toast.vue +47 -105
- package/dist/runtime/components/Toast.vue.d.ts +438 -0
- package/dist/runtime/components/Toaster.vue +70 -115
- package/dist/runtime/components/Toaster.vue.d.ts +219 -0
- package/dist/runtime/components/Tooltip.vue +36 -64
- package/dist/runtime/components/Tooltip.vue.d.ts +186 -0
- package/dist/runtime/components/content/TableWrapper.vue +24 -70
- package/dist/runtime/components/content/TableWrapper.vue.d.ts +237 -0
- package/dist/runtime/composables/useAvatarGroup.d.ts +1 -1
- package/dist/runtime/composables/useButtonGroup.d.ts +2 -2
- package/dist/runtime/composables/useComponentIcons.d.ts +3 -3
- package/dist/runtime/composables/useFormField.d.ts +2 -2
- package/dist/runtime/composables/useOverlay.d.ts +14 -7
- package/dist/runtime/composables/useOverlay.js +14 -6
- package/dist/runtime/prose/A.vue +12 -23
- package/dist/runtime/prose/A.vue.d.ts +84 -0
- package/dist/runtime/prose/Blockquote.vue +12 -23
- package/dist/runtime/prose/Blockquote.vue.d.ts +84 -0
- package/dist/runtime/prose/Code.vue +14 -31
- package/dist/runtime/prose/Code.vue.d.ts +97 -0
- package/dist/runtime/prose/Em.vue +12 -23
- package/dist/runtime/prose/Em.vue.d.ts +84 -0
- package/dist/runtime/prose/H1.vue +12 -23
- package/dist/runtime/prose/H1.vue.d.ts +97 -0
- package/dist/runtime/prose/H2.vue +12 -23
- package/dist/runtime/prose/H2.vue.d.ts +123 -0
- package/dist/runtime/prose/H3.vue +12 -23
- package/dist/runtime/prose/H3.vue.d.ts +123 -0
- package/dist/runtime/prose/H4.vue +12 -23
- package/dist/runtime/prose/H4.vue.d.ts +123 -0
- package/dist/runtime/prose/H5.vue +12 -23
- package/dist/runtime/prose/H5.vue.d.ts +123 -0
- package/dist/runtime/prose/H6.vue +12 -23
- package/dist/runtime/prose/H6.vue.d.ts +123 -0
- package/dist/runtime/prose/Hr.vue +12 -19
- package/dist/runtime/prose/Hr.vue.d.ts +74 -0
- package/dist/runtime/prose/Img.vue +12 -23
- package/dist/runtime/prose/Img.vue.d.ts +77 -0
- package/dist/runtime/prose/Li.vue +12 -23
- package/dist/runtime/prose/Li.vue.d.ts +84 -0
- package/dist/runtime/prose/Ol.vue +12 -23
- package/dist/runtime/prose/Ol.vue.d.ts +84 -0
- package/dist/runtime/prose/P.vue +12 -23
- package/dist/runtime/prose/P.vue.d.ts +84 -0
- package/dist/runtime/prose/Pre.vue +16 -33
- package/dist/runtime/prose/Pre.vue.d.ts +117 -0
- package/dist/runtime/prose/Strong.vue +12 -23
- package/dist/runtime/prose/Strong.vue.d.ts +84 -0
- package/dist/runtime/prose/Table.vue +19 -54
- package/dist/runtime/prose/Table.vue.d.ts +144 -0
- package/dist/runtime/prose/Tbody.vue +12 -23
- package/dist/runtime/prose/Tbody.vue.d.ts +84 -0
- package/dist/runtime/prose/Td.vue +12 -23
- package/dist/runtime/prose/Td.vue.d.ts +84 -0
- package/dist/runtime/prose/Th.vue +12 -23
- package/dist/runtime/prose/Th.vue.d.ts +84 -0
- package/dist/runtime/prose/Thead.vue +12 -23
- package/dist/runtime/prose/Thead.vue.d.ts +84 -0
- package/dist/runtime/prose/Tr.vue +12 -23
- package/dist/runtime/prose/Tr.vue.d.ts +84 -0
- package/dist/runtime/prose/Ul.vue +12 -23
- package/dist/runtime/prose/Ul.vue.d.ts +84 -0
- package/dist/runtime/utils/link.d.ts +3 -3
- package/dist/runtime/vue/components/Link.vue +115 -202
- package/dist/runtime/vue/components/Link.vue.d.ts +129 -0
- package/dist/shared/{b24ui-nuxt.CS9Lf0os.mjs → b24ui-nuxt.BA6Y2FnC.mjs} +6 -6
- package/dist/types.d.mts +3 -5
- package/dist/unplugin.mjs +1 -1
- package/dist/vite.mjs +1 -1
- package/package.json +14 -22
- package/dist/meta.cjs +0 -72112
- package/dist/meta.d.cts +0 -72110
- package/dist/meta.d.ts +0 -72110
- package/dist/module.cjs +0 -63
- package/dist/module.d.cts +0 -15
- package/dist/module.d.ts +0 -15
- package/dist/shared/b24ui-nuxt.DrKwIWoc.cjs +0 -7721
- package/dist/types.d.ts +0 -7
- package/dist/unplugin.cjs +0 -236
- package/dist/unplugin.d.cts +0 -33
- package/dist/unplugin.d.ts +0 -33
- package/dist/vite.cjs +0 -21
- package/dist/vite.d.cts +0 -14
- package/dist/vite.d.ts +0 -14
|
@@ -0,0 +1,354 @@
|
|
|
1
|
+
import type { VariantProps } from 'tailwind-variants';
|
|
2
|
+
import type { CheckboxRootProps } from 'reka-ui';
|
|
3
|
+
declare const checkbox: import("tailwind-variants").TVReturnType<{
|
|
4
|
+
color: {
|
|
5
|
+
default: string;
|
|
6
|
+
danger: string;
|
|
7
|
+
success: string;
|
|
8
|
+
warning: string;
|
|
9
|
+
primary: string;
|
|
10
|
+
secondary: string;
|
|
11
|
+
collab: string;
|
|
12
|
+
ai: string;
|
|
13
|
+
};
|
|
14
|
+
size: {
|
|
15
|
+
xs: {
|
|
16
|
+
base: string;
|
|
17
|
+
container: string;
|
|
18
|
+
wrapper: string;
|
|
19
|
+
label: string;
|
|
20
|
+
};
|
|
21
|
+
sm: {
|
|
22
|
+
base: string;
|
|
23
|
+
container: string;
|
|
24
|
+
wrapper: string;
|
|
25
|
+
label: string;
|
|
26
|
+
};
|
|
27
|
+
md: {
|
|
28
|
+
base: string;
|
|
29
|
+
container: string;
|
|
30
|
+
wrapper: string;
|
|
31
|
+
label: string;
|
|
32
|
+
};
|
|
33
|
+
lg: {
|
|
34
|
+
base: string;
|
|
35
|
+
container: string;
|
|
36
|
+
wrapper: string;
|
|
37
|
+
label: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
required: {
|
|
41
|
+
true: {
|
|
42
|
+
label: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
disabled: {
|
|
46
|
+
true: {
|
|
47
|
+
base: string;
|
|
48
|
+
label: string;
|
|
49
|
+
description: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
checked: {
|
|
53
|
+
true: string;
|
|
54
|
+
};
|
|
55
|
+
}, {
|
|
56
|
+
root: string;
|
|
57
|
+
base: string;
|
|
58
|
+
container: string;
|
|
59
|
+
wrapper: string;
|
|
60
|
+
icon: string;
|
|
61
|
+
label: string;
|
|
62
|
+
description: string;
|
|
63
|
+
}, undefined, {
|
|
64
|
+
color: {
|
|
65
|
+
default: string;
|
|
66
|
+
danger: string;
|
|
67
|
+
success: string;
|
|
68
|
+
warning: string;
|
|
69
|
+
primary: string;
|
|
70
|
+
secondary: string;
|
|
71
|
+
collab: string;
|
|
72
|
+
ai: string;
|
|
73
|
+
};
|
|
74
|
+
size: {
|
|
75
|
+
xs: {
|
|
76
|
+
base: string;
|
|
77
|
+
container: string;
|
|
78
|
+
wrapper: string;
|
|
79
|
+
label: string;
|
|
80
|
+
};
|
|
81
|
+
sm: {
|
|
82
|
+
base: string;
|
|
83
|
+
container: string;
|
|
84
|
+
wrapper: string;
|
|
85
|
+
label: string;
|
|
86
|
+
};
|
|
87
|
+
md: {
|
|
88
|
+
base: string;
|
|
89
|
+
container: string;
|
|
90
|
+
wrapper: string;
|
|
91
|
+
label: string;
|
|
92
|
+
};
|
|
93
|
+
lg: {
|
|
94
|
+
base: string;
|
|
95
|
+
container: string;
|
|
96
|
+
wrapper: string;
|
|
97
|
+
label: string;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
required: {
|
|
101
|
+
true: {
|
|
102
|
+
label: string;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
disabled: {
|
|
106
|
+
true: {
|
|
107
|
+
base: string;
|
|
108
|
+
label: string;
|
|
109
|
+
description: string;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
checked: {
|
|
113
|
+
true: string;
|
|
114
|
+
};
|
|
115
|
+
}, {
|
|
116
|
+
root: string;
|
|
117
|
+
base: string;
|
|
118
|
+
container: string;
|
|
119
|
+
wrapper: string;
|
|
120
|
+
icon: string;
|
|
121
|
+
label: string;
|
|
122
|
+
description: string;
|
|
123
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
124
|
+
color: {
|
|
125
|
+
default: string;
|
|
126
|
+
danger: string;
|
|
127
|
+
success: string;
|
|
128
|
+
warning: string;
|
|
129
|
+
primary: string;
|
|
130
|
+
secondary: string;
|
|
131
|
+
collab: string;
|
|
132
|
+
ai: string;
|
|
133
|
+
};
|
|
134
|
+
size: {
|
|
135
|
+
xs: {
|
|
136
|
+
base: string;
|
|
137
|
+
container: string;
|
|
138
|
+
wrapper: string;
|
|
139
|
+
label: string;
|
|
140
|
+
};
|
|
141
|
+
sm: {
|
|
142
|
+
base: string;
|
|
143
|
+
container: string;
|
|
144
|
+
wrapper: string;
|
|
145
|
+
label: string;
|
|
146
|
+
};
|
|
147
|
+
md: {
|
|
148
|
+
base: string;
|
|
149
|
+
container: string;
|
|
150
|
+
wrapper: string;
|
|
151
|
+
label: string;
|
|
152
|
+
};
|
|
153
|
+
lg: {
|
|
154
|
+
base: string;
|
|
155
|
+
container: string;
|
|
156
|
+
wrapper: string;
|
|
157
|
+
label: string;
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
required: {
|
|
161
|
+
true: {
|
|
162
|
+
label: string;
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
disabled: {
|
|
166
|
+
true: {
|
|
167
|
+
base: string;
|
|
168
|
+
label: string;
|
|
169
|
+
description: string;
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
checked: {
|
|
173
|
+
true: string;
|
|
174
|
+
};
|
|
175
|
+
}, {
|
|
176
|
+
root: string;
|
|
177
|
+
base: string;
|
|
178
|
+
container: string;
|
|
179
|
+
wrapper: string;
|
|
180
|
+
icon: string;
|
|
181
|
+
label: string;
|
|
182
|
+
description: string;
|
|
183
|
+
}, undefined, {
|
|
184
|
+
color: {
|
|
185
|
+
default: string;
|
|
186
|
+
danger: string;
|
|
187
|
+
success: string;
|
|
188
|
+
warning: string;
|
|
189
|
+
primary: string;
|
|
190
|
+
secondary: string;
|
|
191
|
+
collab: string;
|
|
192
|
+
ai: string;
|
|
193
|
+
};
|
|
194
|
+
size: {
|
|
195
|
+
xs: {
|
|
196
|
+
base: string;
|
|
197
|
+
container: string;
|
|
198
|
+
wrapper: string;
|
|
199
|
+
label: string;
|
|
200
|
+
};
|
|
201
|
+
sm: {
|
|
202
|
+
base: string;
|
|
203
|
+
container: string;
|
|
204
|
+
wrapper: string;
|
|
205
|
+
label: string;
|
|
206
|
+
};
|
|
207
|
+
md: {
|
|
208
|
+
base: string;
|
|
209
|
+
container: string;
|
|
210
|
+
wrapper: string;
|
|
211
|
+
label: string;
|
|
212
|
+
};
|
|
213
|
+
lg: {
|
|
214
|
+
base: string;
|
|
215
|
+
container: string;
|
|
216
|
+
wrapper: string;
|
|
217
|
+
label: string;
|
|
218
|
+
};
|
|
219
|
+
};
|
|
220
|
+
required: {
|
|
221
|
+
true: {
|
|
222
|
+
label: string;
|
|
223
|
+
};
|
|
224
|
+
};
|
|
225
|
+
disabled: {
|
|
226
|
+
true: {
|
|
227
|
+
base: string;
|
|
228
|
+
label: string;
|
|
229
|
+
description: string;
|
|
230
|
+
};
|
|
231
|
+
};
|
|
232
|
+
checked: {
|
|
233
|
+
true: string;
|
|
234
|
+
};
|
|
235
|
+
}, {
|
|
236
|
+
root: string;
|
|
237
|
+
base: string;
|
|
238
|
+
container: string;
|
|
239
|
+
wrapper: string;
|
|
240
|
+
icon: string;
|
|
241
|
+
label: string;
|
|
242
|
+
description: string;
|
|
243
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
244
|
+
color: {
|
|
245
|
+
default: string;
|
|
246
|
+
danger: string;
|
|
247
|
+
success: string;
|
|
248
|
+
warning: string;
|
|
249
|
+
primary: string;
|
|
250
|
+
secondary: string;
|
|
251
|
+
collab: string;
|
|
252
|
+
ai: string;
|
|
253
|
+
};
|
|
254
|
+
size: {
|
|
255
|
+
xs: {
|
|
256
|
+
base: string;
|
|
257
|
+
container: string;
|
|
258
|
+
wrapper: string;
|
|
259
|
+
label: string;
|
|
260
|
+
};
|
|
261
|
+
sm: {
|
|
262
|
+
base: string;
|
|
263
|
+
container: string;
|
|
264
|
+
wrapper: string;
|
|
265
|
+
label: string;
|
|
266
|
+
};
|
|
267
|
+
md: {
|
|
268
|
+
base: string;
|
|
269
|
+
container: string;
|
|
270
|
+
wrapper: string;
|
|
271
|
+
label: string;
|
|
272
|
+
};
|
|
273
|
+
lg: {
|
|
274
|
+
base: string;
|
|
275
|
+
container: string;
|
|
276
|
+
wrapper: string;
|
|
277
|
+
label: string;
|
|
278
|
+
};
|
|
279
|
+
};
|
|
280
|
+
required: {
|
|
281
|
+
true: {
|
|
282
|
+
label: string;
|
|
283
|
+
};
|
|
284
|
+
};
|
|
285
|
+
disabled: {
|
|
286
|
+
true: {
|
|
287
|
+
base: string;
|
|
288
|
+
label: string;
|
|
289
|
+
description: string;
|
|
290
|
+
};
|
|
291
|
+
};
|
|
292
|
+
checked: {
|
|
293
|
+
true: string;
|
|
294
|
+
};
|
|
295
|
+
}, {
|
|
296
|
+
root: string;
|
|
297
|
+
base: string;
|
|
298
|
+
container: string;
|
|
299
|
+
wrapper: string;
|
|
300
|
+
icon: string;
|
|
301
|
+
label: string;
|
|
302
|
+
description: string;
|
|
303
|
+
}, undefined, unknown, unknown, undefined>>>;
|
|
304
|
+
type CheckboxVariants = VariantProps<typeof checkbox>;
|
|
305
|
+
export interface CheckboxProps extends Pick<CheckboxRootProps, 'disabled' | 'required' | 'name' | 'value' | 'id' | 'defaultValue'> {
|
|
306
|
+
/**
|
|
307
|
+
* The element or component this component should render as.
|
|
308
|
+
* @defaultValue 'div'
|
|
309
|
+
*/
|
|
310
|
+
as?: any;
|
|
311
|
+
label?: string;
|
|
312
|
+
description?: string;
|
|
313
|
+
/**
|
|
314
|
+
* @defaultValue 'primary'
|
|
315
|
+
*/
|
|
316
|
+
color?: CheckboxVariants['color'];
|
|
317
|
+
/**
|
|
318
|
+
* @defaultValue 'md'
|
|
319
|
+
*/
|
|
320
|
+
size?: CheckboxVariants['size'];
|
|
321
|
+
class?: any;
|
|
322
|
+
b24ui?: Partial<typeof checkbox.slots>;
|
|
323
|
+
}
|
|
324
|
+
export type CheckboxEmits = {
|
|
325
|
+
change: [payload: Event];
|
|
326
|
+
};
|
|
327
|
+
export interface CheckboxSlots {
|
|
328
|
+
label(props: {
|
|
329
|
+
label?: string;
|
|
330
|
+
}): any;
|
|
331
|
+
description(props: {
|
|
332
|
+
description?: string;
|
|
333
|
+
}): any;
|
|
334
|
+
}
|
|
335
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
336
|
+
modelValue?: boolean | "indeterminate";
|
|
337
|
+
} & CheckboxProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
338
|
+
modelValue?: boolean | "indeterminate";
|
|
339
|
+
} & CheckboxProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, Readonly<CheckboxSlots> & CheckboxSlots>;
|
|
340
|
+
export default _default;
|
|
341
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
342
|
+
type __VLS_TypePropsToOption<T> = {
|
|
343
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
344
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
345
|
+
} : {
|
|
346
|
+
type: import('vue').PropType<T[K]>;
|
|
347
|
+
required: true;
|
|
348
|
+
};
|
|
349
|
+
};
|
|
350
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
351
|
+
new (): {
|
|
352
|
+
$slots: S;
|
|
353
|
+
};
|
|
354
|
+
};
|
|
@@ -1,85 +1,37 @@
|
|
|
1
|
-
<script
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
const appConfigChip = _appConfig as AppConfig & { b24ui: { chip: Partial<typeof theme> } }
|
|
9
|
-
|
|
10
|
-
const chip = tv({ extend: tv(theme), ...(appConfigChip.b24ui?.chip || {}) })
|
|
11
|
-
|
|
12
|
-
type ChipVariants = VariantProps<typeof chip>
|
|
13
|
-
|
|
14
|
-
export interface ChipProps {
|
|
15
|
-
/**
|
|
16
|
-
* The element or component this component should render as.
|
|
17
|
-
* @defaultValue 'div'
|
|
18
|
-
*/
|
|
19
|
-
as?: any
|
|
20
|
-
/** Display some text inside the chip. */
|
|
21
|
-
text?: string | number
|
|
22
|
-
/**
|
|
23
|
-
* @defaultValue 'danger'
|
|
24
|
-
*/
|
|
25
|
-
color?: ChipVariants['color']
|
|
26
|
-
/**
|
|
27
|
-
* @defaultValue 'sm'
|
|
28
|
-
*/
|
|
29
|
-
size?: ChipVariants['size']
|
|
30
|
-
/**
|
|
31
|
-
* The position of the chip.
|
|
32
|
-
* @defaultValue 'top-right'
|
|
33
|
-
*/
|
|
34
|
-
position?: ChipVariants['position']
|
|
35
|
-
/**
|
|
36
|
-
* When `true`, keep the chip inside the component for rounded elements
|
|
37
|
-
* @defaultValue false
|
|
38
|
-
*/
|
|
39
|
-
inset?: boolean
|
|
40
|
-
/**
|
|
41
|
-
* When `true`, render the chip relatively to the parent.
|
|
42
|
-
* @defaultValue false
|
|
43
|
-
*/
|
|
44
|
-
standalone?: boolean
|
|
45
|
-
class?: any
|
|
46
|
-
b24ui?: Partial<typeof chip.slots>
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export interface ChipEmits {
|
|
50
|
-
(e: 'update:show', payload: boolean): void
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export interface ChipSlots {
|
|
54
|
-
default(props?: {}): any
|
|
55
|
-
content(props?: {}): any
|
|
56
|
-
}
|
|
1
|
+
<script>
|
|
2
|
+
import _appConfig from "#build/app.config";
|
|
3
|
+
import theme from "#build/b24ui/chip";
|
|
4
|
+
import { tv } from "../utils/tv";
|
|
5
|
+
const appConfigChip = _appConfig;
|
|
6
|
+
const chip = tv({ extend: tv(theme), ...appConfigChip.b24ui?.chip || {} });
|
|
57
7
|
</script>
|
|
58
8
|
|
|
59
|
-
<script setup
|
|
60
|
-
import { computed } from
|
|
61
|
-
import { Primitive, Slot } from
|
|
62
|
-
import { useAvatarGroup } from
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
9
|
+
<script setup>
|
|
10
|
+
import { computed } from "vue";
|
|
11
|
+
import { Primitive, Slot } from "reka-ui";
|
|
12
|
+
import { useAvatarGroup } from "../composables/useAvatarGroup";
|
|
13
|
+
defineOptions({ inheritAttrs: false });
|
|
14
|
+
const props = defineProps({
|
|
15
|
+
as: { type: null, required: false },
|
|
16
|
+
text: { type: [String, Number], required: false },
|
|
17
|
+
color: { type: null, required: false },
|
|
18
|
+
size: { type: null, required: false },
|
|
19
|
+
position: { type: null, required: false },
|
|
20
|
+
inset: { type: Boolean, required: false, default: false },
|
|
21
|
+
standalone: { type: Boolean, required: false, default: false },
|
|
22
|
+
class: { type: null, required: false },
|
|
23
|
+
b24ui: { type: Object, required: false }
|
|
24
|
+
});
|
|
25
|
+
defineSlots();
|
|
26
|
+
const show = defineModel("show", { type: Boolean, ...{ default: true } });
|
|
27
|
+
const { size } = useAvatarGroup(props);
|
|
76
28
|
const b24ui = computed(() => chip({
|
|
77
29
|
color: props.color,
|
|
78
30
|
size: size.value,
|
|
79
31
|
position: props.position,
|
|
80
32
|
inset: Boolean(props.inset),
|
|
81
33
|
standalone: Boolean(props.standalone)
|
|
82
|
-
}))
|
|
34
|
+
}));
|
|
83
35
|
</script>
|
|
84
36
|
|
|
85
37
|
<template>
|