@bitrix24/b24ui-nuxt 0.5.8 → 0.5.10

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.
Files changed (197) hide show
  1. package/.nuxt/b24ui/navigation-menu.ts +0 -2
  2. package/.nuxt/b24ui/popover.ts +1 -1
  3. package/.nuxt/b24ui/textarea.ts +43 -0
  4. package/dist/meta.d.mts +5090 -4900
  5. package/dist/meta.mjs +5090 -4900
  6. package/dist/module.json +5 -5
  7. package/dist/module.mjs +11 -7
  8. package/dist/runtime/components/Advice.vue +47 -54
  9. package/dist/runtime/components/Advice.vue.d.ts +170 -0
  10. package/dist/runtime/components/Alert.vue +71 -96
  11. package/dist/runtime/components/Alert.vue.d.ts +464 -0
  12. package/dist/runtime/components/App.vue +37 -34
  13. package/dist/runtime/components/App.vue.d.ts +23 -0
  14. package/dist/runtime/components/Avatar.vue +69 -81
  15. package/dist/runtime/components/Avatar.vue.d.ts +281 -0
  16. package/dist/runtime/components/AvatarGroup.vue +53 -76
  17. package/dist/runtime/components/AvatarGroup.vue.d.ts +204 -0
  18. package/dist/runtime/components/Badge.vue +83 -83
  19. package/dist/runtime/components/Badge.vue.d.ts +517 -0
  20. package/dist/runtime/components/Button.vue +219 -149
  21. package/dist/runtime/components/Button.vue.d.ts +640 -0
  22. package/dist/runtime/components/ButtonGroup.vue +35 -51
  23. package/dist/runtime/components/ButtonGroup.vue.d.ts +116 -0
  24. package/dist/runtime/components/Calendar.vue +186 -152
  25. package/dist/runtime/components/Calendar.vue.d.ts +437 -0
  26. package/dist/runtime/components/Checkbox.vue +84 -73
  27. package/dist/runtime/components/Checkbox.vue.d.ts +354 -0
  28. package/dist/runtime/components/Chip.vue +59 -74
  29. package/dist/runtime/components/Chip.vue.d.ts +271 -0
  30. package/dist/runtime/components/Collapsible.vue +44 -41
  31. package/dist/runtime/components/Collapsible.vue.d.ts +118 -0
  32. package/dist/runtime/components/Container.vue +18 -27
  33. package/dist/runtime/components/Container.vue.d.ts +27 -0
  34. package/dist/runtime/components/Countdown.vue +198 -378
  35. package/dist/runtime/components/Countdown.vue.d.ts +356 -0
  36. package/dist/runtime/components/DescriptionList.vue +102 -149
  37. package/dist/runtime/components/DescriptionList.vue.d.ts +379 -0
  38. package/dist/runtime/components/DropdownMenu.vue +83 -139
  39. package/dist/runtime/components/DropdownMenu.vue.d.ts +533 -0
  40. package/dist/runtime/components/DropdownMenuContent.vue +137 -81
  41. package/dist/runtime/components/DropdownMenuContent.vue.d.ts +228 -0
  42. package/dist/runtime/components/Form.vue +162 -216
  43. package/dist/runtime/components/Form.vue.d.ts +55 -0
  44. package/dist/runtime/components/FormField.vue +76 -80
  45. package/dist/runtime/components/FormField.vue.d.ts +282 -0
  46. package/dist/runtime/components/Input.vue +166 -185
  47. package/dist/runtime/components/Input.vue.d.ts +755 -0
  48. package/dist/runtime/components/InputMenu.vue +300 -381
  49. package/dist/runtime/components/InputMenu.vue.d.ts +1504 -0
  50. package/dist/runtime/components/InputNumber.vue +180 -177
  51. package/dist/runtime/components/InputNumber.vue.d.ts +658 -0
  52. package/dist/runtime/components/Kbd.vue +33 -45
  53. package/dist/runtime/components/Kbd.vue.d.ts +109 -0
  54. package/dist/runtime/components/Link.vue +179 -173
  55. package/dist/runtime/components/Link.vue.d.ts +129 -0
  56. package/dist/runtime/components/LinkBase.vue +64 -42
  57. package/dist/runtime/components/LinkBase.vue.d.ts +48 -0
  58. package/dist/runtime/components/Modal.vue +105 -127
  59. package/dist/runtime/components/Modal.vue.d.ts +327 -0
  60. package/dist/runtime/components/ModalDialogClose.vue +4 -8
  61. package/dist/runtime/components/ModalDialogClose.vue.d.ts +10 -0
  62. package/dist/runtime/components/Navbar.vue +24 -33
  63. package/dist/runtime/components/Navbar.vue.d.ts +101 -0
  64. package/dist/runtime/components/NavbarDivider.vue +24 -33
  65. package/dist/runtime/components/NavbarDivider.vue.d.ts +101 -0
  66. package/dist/runtime/components/NavbarSection.vue +24 -33
  67. package/dist/runtime/components/NavbarSection.vue.d.ts +101 -0
  68. package/dist/runtime/components/NavbarSpacer.vue +24 -33
  69. package/dist/runtime/components/NavbarSpacer.vue.d.ts +101 -0
  70. package/dist/runtime/components/NavigationMenu.vue +152 -216
  71. package/dist/runtime/components/NavigationMenu.vue.d.ts +824 -0
  72. package/dist/runtime/components/OverlayProvider.vue +13 -17
  73. package/dist/runtime/components/OverlayProvider.vue.d.ts +2 -0
  74. package/dist/runtime/components/Popover.vue +81 -81
  75. package/dist/runtime/components/Popover.vue.d.ts +147 -0
  76. package/dist/runtime/components/Progress.vue +109 -136
  77. package/dist/runtime/components/Progress.vue.d.ts +592 -0
  78. package/dist/runtime/components/RadioGroup.vue +120 -134
  79. package/dist/runtime/components/RadioGroup.vue.d.ts +723 -0
  80. package/dist/runtime/components/Range.vue +94 -85
  81. package/dist/runtime/components/Range.vue.d.ts +417 -0
  82. package/dist/runtime/components/Select.vue +212 -260
  83. package/dist/runtime/components/Select.vue.d.ts +1200 -0
  84. package/dist/runtime/components/SelectMenu.vue +272 -366
  85. package/dist/runtime/components/SelectMenu.vue.d.ts +1298 -0
  86. package/dist/runtime/components/Separator.vue +61 -71
  87. package/dist/runtime/components/Separator.vue.d.ts +400 -0
  88. package/dist/runtime/components/Sidebar.vue +24 -33
  89. package/dist/runtime/components/Sidebar.vue.d.ts +101 -0
  90. package/dist/runtime/components/SidebarBody.vue +30 -38
  91. package/dist/runtime/components/SidebarBody.vue.d.ts +90 -0
  92. package/dist/runtime/components/SidebarFooter.vue +24 -33
  93. package/dist/runtime/components/SidebarFooter.vue.d.ts +101 -0
  94. package/dist/runtime/components/SidebarHeader.vue +24 -33
  95. package/dist/runtime/components/SidebarHeader.vue.d.ts +101 -0
  96. package/dist/runtime/components/SidebarHeading.vue +24 -33
  97. package/dist/runtime/components/SidebarHeading.vue.d.ts +101 -0
  98. package/dist/runtime/components/SidebarLayout.vue +40 -70
  99. package/dist/runtime/components/SidebarLayout.vue.d.ts +222 -0
  100. package/dist/runtime/components/SidebarSection.vue +24 -33
  101. package/dist/runtime/components/SidebarSection.vue.d.ts +101 -0
  102. package/dist/runtime/components/SidebarSpacer.vue +24 -33
  103. package/dist/runtime/components/SidebarSpacer.vue.d.ts +101 -0
  104. package/dist/runtime/components/Skeleton.vue +17 -22
  105. package/dist/runtime/components/Skeleton.vue.d.ts +26 -0
  106. package/dist/runtime/components/Slideover.vue +108 -131
  107. package/dist/runtime/components/Slideover.vue.d.ts +360 -0
  108. package/dist/runtime/components/StackedLayout.vue +40 -73
  109. package/dist/runtime/components/StackedLayout.vue.d.ts +192 -0
  110. package/dist/runtime/components/Switch.vue +100 -95
  111. package/dist/runtime/components/Switch.vue.d.ts +587 -0
  112. package/dist/runtime/components/Tabs.vue +83 -105
  113. package/dist/runtime/components/Tabs.vue.d.ts +453 -0
  114. package/dist/runtime/components/Textarea.vue +215 -203
  115. package/dist/runtime/components/Textarea.vue.d.ts +601 -0
  116. package/dist/runtime/components/Toast.vue +94 -105
  117. package/dist/runtime/components/Toast.vue.d.ts +438 -0
  118. package/dist/runtime/components/Toaster.vue +94 -111
  119. package/dist/runtime/components/Toaster.vue.d.ts +219 -0
  120. package/dist/runtime/components/Tooltip.vue +78 -64
  121. package/dist/runtime/components/Tooltip.vue.d.ts +186 -0
  122. package/dist/runtime/components/content/TableWrapper.vue +58 -70
  123. package/dist/runtime/components/content/TableWrapper.vue.d.ts +237 -0
  124. package/dist/runtime/composables/useAvatarGroup.d.ts +1 -1
  125. package/dist/runtime/composables/useButtonGroup.d.ts +2 -2
  126. package/dist/runtime/composables/useComponentIcons.d.ts +3 -3
  127. package/dist/runtime/composables/useFormField.d.ts +1 -1
  128. package/dist/runtime/prose/A.vue +18 -23
  129. package/dist/runtime/prose/A.vue.d.ts +84 -0
  130. package/dist/runtime/prose/Blockquote.vue +18 -23
  131. package/dist/runtime/prose/Blockquote.vue.d.ts +84 -0
  132. package/dist/runtime/prose/Code.vue +23 -31
  133. package/dist/runtime/prose/Code.vue.d.ts +97 -0
  134. package/dist/runtime/prose/Em.vue +18 -23
  135. package/dist/runtime/prose/Em.vue.d.ts +84 -0
  136. package/dist/runtime/prose/H1.vue +18 -23
  137. package/dist/runtime/prose/H1.vue.d.ts +97 -0
  138. package/dist/runtime/prose/H2.vue +18 -23
  139. package/dist/runtime/prose/H2.vue.d.ts +123 -0
  140. package/dist/runtime/prose/H3.vue +18 -23
  141. package/dist/runtime/prose/H3.vue.d.ts +123 -0
  142. package/dist/runtime/prose/H4.vue +18 -23
  143. package/dist/runtime/prose/H4.vue.d.ts +123 -0
  144. package/dist/runtime/prose/H5.vue +18 -23
  145. package/dist/runtime/prose/H5.vue.d.ts +123 -0
  146. package/dist/runtime/prose/H6.vue +18 -23
  147. package/dist/runtime/prose/H6.vue.d.ts +123 -0
  148. package/dist/runtime/prose/Hr.vue +18 -19
  149. package/dist/runtime/prose/Hr.vue.d.ts +74 -0
  150. package/dist/runtime/prose/Img.vue +18 -23
  151. package/dist/runtime/prose/Img.vue.d.ts +77 -0
  152. package/dist/runtime/prose/Li.vue +18 -23
  153. package/dist/runtime/prose/Li.vue.d.ts +84 -0
  154. package/dist/runtime/prose/Ol.vue +18 -23
  155. package/dist/runtime/prose/Ol.vue.d.ts +84 -0
  156. package/dist/runtime/prose/P.vue +18 -23
  157. package/dist/runtime/prose/P.vue.d.ts +84 -0
  158. package/dist/runtime/prose/Pre.vue +28 -33
  159. package/dist/runtime/prose/Pre.vue.d.ts +117 -0
  160. package/dist/runtime/prose/Strong.vue +18 -23
  161. package/dist/runtime/prose/Strong.vue.d.ts +84 -0
  162. package/dist/runtime/prose/Table.vue +44 -54
  163. package/dist/runtime/prose/Table.vue.d.ts +144 -0
  164. package/dist/runtime/prose/Tbody.vue +18 -23
  165. package/dist/runtime/prose/Tbody.vue.d.ts +84 -0
  166. package/dist/runtime/prose/Td.vue +18 -23
  167. package/dist/runtime/prose/Td.vue.d.ts +84 -0
  168. package/dist/runtime/prose/Th.vue +18 -23
  169. package/dist/runtime/prose/Th.vue.d.ts +84 -0
  170. package/dist/runtime/prose/Thead.vue +18 -23
  171. package/dist/runtime/prose/Thead.vue.d.ts +84 -0
  172. package/dist/runtime/prose/Tr.vue +18 -23
  173. package/dist/runtime/prose/Tr.vue.d.ts +84 -0
  174. package/dist/runtime/prose/Ul.vue +18 -23
  175. package/dist/runtime/prose/Ul.vue.d.ts +84 -0
  176. package/dist/runtime/vue/components/Link.vue +201 -202
  177. package/dist/runtime/vue/components/Link.vue.d.ts +129 -0
  178. package/dist/runtime/vue/stubs.d.ts +2 -2
  179. package/dist/shared/{b24ui-nuxt.DBFS6LH7.mjs → b24ui-nuxt.CS9Lf0os.mjs} +54 -4
  180. package/dist/types.d.mts +3 -5
  181. package/dist/unplugin.mjs +1 -1
  182. package/dist/vite.mjs +1 -1
  183. package/package.json +62 -35
  184. package/dist/meta.cjs +0 -71922
  185. package/dist/meta.d.cts +0 -71920
  186. package/dist/meta.d.ts +0 -71920
  187. package/dist/module.cjs +0 -59
  188. package/dist/module.d.cts +0 -15
  189. package/dist/module.d.ts +0 -15
  190. package/dist/shared/b24ui-nuxt.B9fPD5yO.cjs +0 -7671
  191. package/dist/types.d.ts +0 -7
  192. package/dist/unplugin.cjs +0 -236
  193. package/dist/unplugin.d.cts +0 -33
  194. package/dist/unplugin.d.ts +0 -33
  195. package/dist/vite.cjs +0 -21
  196. package/dist/vite.d.cts +0 -14
  197. package/dist/vite.d.ts +0 -14
@@ -0,0 +1,640 @@
1
+ import type { VariantProps } from 'tailwind-variants';
2
+ import type { LinkProps } from './Link.vue';
3
+ import type { UseComponentIconsProps } from '../composables/useComponentIcons';
4
+ import type { PartialString } from '../types/utils';
5
+ declare const button: import("tailwind-variants").TVReturnType<{
6
+ buttonGroup: {
7
+ horizontal: string;
8
+ vertical: string;
9
+ };
10
+ noSplit: {
11
+ false: string;
12
+ };
13
+ color: {
14
+ default: string;
15
+ danger: string;
16
+ success: string;
17
+ warning: string;
18
+ primary: string;
19
+ secondary: string;
20
+ collab: string;
21
+ ai: string;
22
+ link: string;
23
+ };
24
+ depth: {
25
+ light: string;
26
+ normal: string;
27
+ dark: string;
28
+ };
29
+ size: {
30
+ xs: {
31
+ base: string;
32
+ baseLine: string;
33
+ leadingIcon: string;
34
+ leadingAvatarSize: string;
35
+ trailingIcon: string;
36
+ };
37
+ sm: {
38
+ base: string;
39
+ baseLine: string;
40
+ leadingIcon: string;
41
+ leadingAvatarSize: string;
42
+ trailingIcon: string;
43
+ };
44
+ md: {
45
+ base: string;
46
+ baseLine: string;
47
+ leadingIcon: string;
48
+ leadingAvatarSize: string;
49
+ trailingIcon: string;
50
+ };
51
+ lg: {
52
+ base: string;
53
+ baseLine: string;
54
+ leadingIcon: string;
55
+ leadingAvatarSize: string;
56
+ trailingIcon: string;
57
+ };
58
+ };
59
+ block: {
60
+ true: {
61
+ base: string;
62
+ baseLine: string;
63
+ trailingIcon: string;
64
+ };
65
+ };
66
+ rounded: {
67
+ true: string;
68
+ false: string;
69
+ };
70
+ leading: {
71
+ true: string;
72
+ };
73
+ useLabel: {
74
+ true: string;
75
+ false: string;
76
+ };
77
+ useDropdown: {
78
+ true: string;
79
+ };
80
+ useWait: {
81
+ true: string;
82
+ };
83
+ useClock: {
84
+ true: string;
85
+ };
86
+ loading: {
87
+ true: string;
88
+ };
89
+ normalCase: {
90
+ true: string;
91
+ false: string;
92
+ };
93
+ active: {
94
+ true: {
95
+ base: string;
96
+ };
97
+ false: {
98
+ base: string;
99
+ };
100
+ };
101
+ }, {
102
+ base: string[];
103
+ baseLine: string;
104
+ label: string;
105
+ leadingIcon: string;
106
+ leadingAvatar: string;
107
+ leadingAvatarSize: string;
108
+ trailingIcon: string;
109
+ safeList: string;
110
+ }, undefined, {
111
+ buttonGroup: {
112
+ horizontal: string;
113
+ vertical: string;
114
+ };
115
+ noSplit: {
116
+ false: string;
117
+ };
118
+ color: {
119
+ default: string;
120
+ danger: string;
121
+ success: string;
122
+ warning: string;
123
+ primary: string;
124
+ secondary: string;
125
+ collab: string;
126
+ ai: string;
127
+ link: string;
128
+ };
129
+ depth: {
130
+ light: string;
131
+ normal: string;
132
+ dark: string;
133
+ };
134
+ size: {
135
+ xs: {
136
+ base: string;
137
+ baseLine: string;
138
+ leadingIcon: string;
139
+ leadingAvatarSize: string;
140
+ trailingIcon: string;
141
+ };
142
+ sm: {
143
+ base: string;
144
+ baseLine: string;
145
+ leadingIcon: string;
146
+ leadingAvatarSize: string;
147
+ trailingIcon: string;
148
+ };
149
+ md: {
150
+ base: string;
151
+ baseLine: string;
152
+ leadingIcon: string;
153
+ leadingAvatarSize: string;
154
+ trailingIcon: string;
155
+ };
156
+ lg: {
157
+ base: string;
158
+ baseLine: string;
159
+ leadingIcon: string;
160
+ leadingAvatarSize: string;
161
+ trailingIcon: string;
162
+ };
163
+ };
164
+ block: {
165
+ true: {
166
+ base: string;
167
+ baseLine: string;
168
+ trailingIcon: string;
169
+ };
170
+ };
171
+ rounded: {
172
+ true: string;
173
+ false: string;
174
+ };
175
+ leading: {
176
+ true: string;
177
+ };
178
+ useLabel: {
179
+ true: string;
180
+ false: string;
181
+ };
182
+ useDropdown: {
183
+ true: string;
184
+ };
185
+ useWait: {
186
+ true: string;
187
+ };
188
+ useClock: {
189
+ true: string;
190
+ };
191
+ loading: {
192
+ true: string;
193
+ };
194
+ normalCase: {
195
+ true: string;
196
+ false: string;
197
+ };
198
+ active: {
199
+ true: {
200
+ base: string;
201
+ };
202
+ false: {
203
+ base: string;
204
+ };
205
+ };
206
+ }, {
207
+ base: string[];
208
+ baseLine: string;
209
+ label: string;
210
+ leadingIcon: string;
211
+ leadingAvatar: string;
212
+ leadingAvatarSize: string;
213
+ trailingIcon: string;
214
+ safeList: string;
215
+ }, import("tailwind-variants").TVReturnType<{
216
+ buttonGroup: {
217
+ horizontal: string;
218
+ vertical: string;
219
+ };
220
+ noSplit: {
221
+ false: string;
222
+ };
223
+ color: {
224
+ default: string;
225
+ danger: string;
226
+ success: string;
227
+ warning: string;
228
+ primary: string;
229
+ secondary: string;
230
+ collab: string;
231
+ ai: string;
232
+ link: string;
233
+ };
234
+ depth: {
235
+ light: string;
236
+ normal: string;
237
+ dark: string;
238
+ };
239
+ size: {
240
+ xs: {
241
+ base: string;
242
+ baseLine: string;
243
+ leadingIcon: string;
244
+ leadingAvatarSize: string;
245
+ trailingIcon: string;
246
+ };
247
+ sm: {
248
+ base: string;
249
+ baseLine: string;
250
+ leadingIcon: string;
251
+ leadingAvatarSize: string;
252
+ trailingIcon: string;
253
+ };
254
+ md: {
255
+ base: string;
256
+ baseLine: string;
257
+ leadingIcon: string;
258
+ leadingAvatarSize: string;
259
+ trailingIcon: string;
260
+ };
261
+ lg: {
262
+ base: string;
263
+ baseLine: string;
264
+ leadingIcon: string;
265
+ leadingAvatarSize: string;
266
+ trailingIcon: string;
267
+ };
268
+ };
269
+ block: {
270
+ true: {
271
+ base: string;
272
+ baseLine: string;
273
+ trailingIcon: string;
274
+ };
275
+ };
276
+ rounded: {
277
+ true: string;
278
+ false: string;
279
+ };
280
+ leading: {
281
+ true: string;
282
+ };
283
+ useLabel: {
284
+ true: string;
285
+ false: string;
286
+ };
287
+ useDropdown: {
288
+ true: string;
289
+ };
290
+ useWait: {
291
+ true: string;
292
+ };
293
+ useClock: {
294
+ true: string;
295
+ };
296
+ loading: {
297
+ true: string;
298
+ };
299
+ normalCase: {
300
+ true: string;
301
+ false: string;
302
+ };
303
+ active: {
304
+ true: {
305
+ base: string;
306
+ };
307
+ false: {
308
+ base: string;
309
+ };
310
+ };
311
+ }, {
312
+ base: string[];
313
+ baseLine: string;
314
+ label: string;
315
+ leadingIcon: string;
316
+ leadingAvatar: string;
317
+ leadingAvatarSize: string;
318
+ trailingIcon: string;
319
+ safeList: string;
320
+ }, undefined, {
321
+ buttonGroup: {
322
+ horizontal: string;
323
+ vertical: string;
324
+ };
325
+ noSplit: {
326
+ false: string;
327
+ };
328
+ color: {
329
+ default: string;
330
+ danger: string;
331
+ success: string;
332
+ warning: string;
333
+ primary: string;
334
+ secondary: string;
335
+ collab: string;
336
+ ai: string;
337
+ link: string;
338
+ };
339
+ depth: {
340
+ light: string;
341
+ normal: string;
342
+ dark: string;
343
+ };
344
+ size: {
345
+ xs: {
346
+ base: string;
347
+ baseLine: string;
348
+ leadingIcon: string;
349
+ leadingAvatarSize: string;
350
+ trailingIcon: string;
351
+ };
352
+ sm: {
353
+ base: string;
354
+ baseLine: string;
355
+ leadingIcon: string;
356
+ leadingAvatarSize: string;
357
+ trailingIcon: string;
358
+ };
359
+ md: {
360
+ base: string;
361
+ baseLine: string;
362
+ leadingIcon: string;
363
+ leadingAvatarSize: string;
364
+ trailingIcon: string;
365
+ };
366
+ lg: {
367
+ base: string;
368
+ baseLine: string;
369
+ leadingIcon: string;
370
+ leadingAvatarSize: string;
371
+ trailingIcon: string;
372
+ };
373
+ };
374
+ block: {
375
+ true: {
376
+ base: string;
377
+ baseLine: string;
378
+ trailingIcon: string;
379
+ };
380
+ };
381
+ rounded: {
382
+ true: string;
383
+ false: string;
384
+ };
385
+ leading: {
386
+ true: string;
387
+ };
388
+ useLabel: {
389
+ true: string;
390
+ false: string;
391
+ };
392
+ useDropdown: {
393
+ true: string;
394
+ };
395
+ useWait: {
396
+ true: string;
397
+ };
398
+ useClock: {
399
+ true: string;
400
+ };
401
+ loading: {
402
+ true: string;
403
+ };
404
+ normalCase: {
405
+ true: string;
406
+ false: string;
407
+ };
408
+ active: {
409
+ true: {
410
+ base: string;
411
+ };
412
+ false: {
413
+ base: string;
414
+ };
415
+ };
416
+ }, {
417
+ base: string[];
418
+ baseLine: string;
419
+ label: string;
420
+ leadingIcon: string;
421
+ leadingAvatar: string;
422
+ leadingAvatarSize: string;
423
+ trailingIcon: string;
424
+ safeList: string;
425
+ }, import("tailwind-variants").TVReturnType<{
426
+ buttonGroup: {
427
+ horizontal: string;
428
+ vertical: string;
429
+ };
430
+ noSplit: {
431
+ false: string;
432
+ };
433
+ color: {
434
+ default: string;
435
+ danger: string;
436
+ success: string;
437
+ warning: string;
438
+ primary: string;
439
+ secondary: string;
440
+ collab: string;
441
+ ai: string;
442
+ link: string;
443
+ };
444
+ depth: {
445
+ light: string;
446
+ normal: string;
447
+ dark: string;
448
+ };
449
+ size: {
450
+ xs: {
451
+ base: string;
452
+ baseLine: string;
453
+ leadingIcon: string;
454
+ leadingAvatarSize: string;
455
+ trailingIcon: string;
456
+ };
457
+ sm: {
458
+ base: string;
459
+ baseLine: string;
460
+ leadingIcon: string;
461
+ leadingAvatarSize: string;
462
+ trailingIcon: string;
463
+ };
464
+ md: {
465
+ base: string;
466
+ baseLine: string;
467
+ leadingIcon: string;
468
+ leadingAvatarSize: string;
469
+ trailingIcon: string;
470
+ };
471
+ lg: {
472
+ base: string;
473
+ baseLine: string;
474
+ leadingIcon: string;
475
+ leadingAvatarSize: string;
476
+ trailingIcon: string;
477
+ };
478
+ };
479
+ block: {
480
+ true: {
481
+ base: string;
482
+ baseLine: string;
483
+ trailingIcon: string;
484
+ };
485
+ };
486
+ rounded: {
487
+ true: string;
488
+ false: string;
489
+ };
490
+ leading: {
491
+ true: string;
492
+ };
493
+ useLabel: {
494
+ true: string;
495
+ false: string;
496
+ };
497
+ useDropdown: {
498
+ true: string;
499
+ };
500
+ useWait: {
501
+ true: string;
502
+ };
503
+ useClock: {
504
+ true: string;
505
+ };
506
+ loading: {
507
+ true: string;
508
+ };
509
+ normalCase: {
510
+ true: string;
511
+ false: string;
512
+ };
513
+ active: {
514
+ true: {
515
+ base: string;
516
+ };
517
+ false: {
518
+ base: string;
519
+ };
520
+ };
521
+ }, {
522
+ base: string[];
523
+ baseLine: string;
524
+ label: string;
525
+ leadingIcon: string;
526
+ leadingAvatar: string;
527
+ leadingAvatarSize: string;
528
+ trailingIcon: string;
529
+ safeList: string;
530
+ }, undefined, unknown, unknown, undefined>>>;
531
+ type ButtonVariants = VariantProps<typeof button>;
532
+ export interface ButtonProps extends Omit<UseComponentIconsProps, 'trailing' | 'trailingIcon'>, Omit<LinkProps, 'raw' | 'custom'> {
533
+ label?: string;
534
+ /**
535
+ * @defaultValue 'default'
536
+ */
537
+ color?: ButtonVariants['color'];
538
+ activeColor?: ButtonVariants['color'];
539
+ /**
540
+ * @defaultValue 'normal'
541
+ */
542
+ depth?: ButtonVariants['depth'];
543
+ activeDepth?: ButtonVariants['depth'];
544
+ /**
545
+ * @defaultValue 'md'
546
+ */
547
+ size?: ButtonVariants['size'];
548
+ /**
549
+ * Rounds the corners of the button
550
+ * @defaultValue false
551
+ */
552
+ rounded?: boolean;
553
+ /**
554
+ * Render the button full width
555
+ * @defaultValue false
556
+ */
557
+ block?: boolean;
558
+ /**
559
+ * Set loading state automatically based on the `@click` promise state
560
+ * @defaultValue false
561
+ */
562
+ loadingAuto?: boolean;
563
+ /**
564
+ * Disable uppercase label
565
+ * @defaultValue false
566
+ */
567
+ normalCase?: boolean;
568
+ /**
569
+ * Shows LoaderWaitIcon in loading mode
570
+ * @defaultValue false
571
+ */
572
+ useWait?: boolean;
573
+ /**
574
+ * Shows LoaderClockIcon icon in loading mode
575
+ * @defaultValue false
576
+ */
577
+ useClock?: boolean;
578
+ /**
579
+ * Shows icons.chevronDown on the right side
580
+ * @defaultValue false
581
+ */
582
+ useDropdown?: boolean;
583
+ onClick?: ((event: MouseEvent) => void | Promise<void>) | Array<((event: MouseEvent) => void | Promise<void>)>;
584
+ class?: any;
585
+ /**
586
+ * The class to apply when the link is active
587
+ * @defaultValue ''
588
+ */
589
+ activeClass?: string;
590
+ /**
591
+ * The class to apply when the link is inactive
592
+ * @defaultValue ''
593
+ */
594
+ inactiveClass?: string;
595
+ b24ui?: PartialString<typeof button.slots>;
596
+ }
597
+ export interface ButtonSlots {
598
+ leading(props?: {}): any;
599
+ default(props?: {}): any;
600
+ trailing(props?: {}): any;
601
+ }
602
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ButtonProps>, {
603
+ type: string;
604
+ active: undefined;
605
+ activeClass: string;
606
+ inactiveClass: string;
607
+ }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ButtonProps>, {
608
+ type: string;
609
+ active: undefined;
610
+ activeClass: string;
611
+ inactiveClass: string;
612
+ }>>> & Readonly<{}>, {
613
+ type: "reset" | "submit" | "button";
614
+ activeClass: string;
615
+ active: boolean;
616
+ inactiveClass: string;
617
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, Readonly<ButtonSlots> & ButtonSlots>;
618
+ export default _default;
619
+ type __VLS_WithDefaults<P, D> = {
620
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
621
+ default: D[K];
622
+ }> : P[K];
623
+ };
624
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
625
+ type __VLS_TypePropsToOption<T> = {
626
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
627
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
628
+ } : {
629
+ type: import('vue').PropType<T[K]>;
630
+ required: true;
631
+ };
632
+ };
633
+ type __VLS_WithTemplateSlots<T, S> = T & {
634
+ new (): {
635
+ $slots: S;
636
+ };
637
+ };
638
+ type __VLS_PrettifyLocal<T> = {
639
+ [K in keyof T]: T[K];
640
+ } & {};
@@ -1,60 +1,44 @@
1
- <script lang="ts">
2
- import type { VariantProps } from 'tailwind-variants'
3
- import type { AppConfig } from '@nuxt/schema'
4
- import _appConfig from '#build/app.config'
5
- import theme from '#build/b24ui/button-group'
6
- import { tv } from '../utils/tv'
7
-
8
- const appConfigButtonGroup = _appConfig as AppConfig & { b24ui: { buttonGroup: Partial<typeof theme> } }
9
-
10
- const buttonGroup = tv({ extend: tv(theme), ...(appConfigButtonGroup.b24ui?.buttonGroup) })
11
-
12
- type ButtonGroupVariants = VariantProps<typeof buttonGroup>
13
-
14
- export interface ButtonGroupProps {
15
- /**
16
- * The element or component this component should render as.
17
- * @defaultValue 'div'
18
- */
19
- as?: any
20
- /**
21
- * @defaultValue 'md'
22
- */
23
- size?: ButtonGroupVariants['size']
24
- /**
25
- * The orientation the buttons are laid out.
26
- * @defaultValue 'horizontal'
27
- */
28
- orientation?: ButtonGroupVariants['orientation']
29
- /**
30
- * Disable show split
31
- * @defaultValue false
32
- */
33
- noSplit?: boolean
34
- class?: any
35
- }
36
-
37
- export interface ButtonGroupSlots {
38
- default(props?: {}): any
39
- }
1
+ <script>
2
+ import _appConfig from "#build/app.config";
3
+ import theme from "#build/b24ui/button-group";
4
+ import { tv } from "../utils/tv";
5
+ const appConfigButtonGroup = _appConfig;
6
+ const buttonGroup = tv({ extend: tv(theme), ...appConfigButtonGroup.b24ui?.buttonGroup });
40
7
  </script>
41
8
 
42
- <script setup lang="ts">
43
- import { provide, computed } from 'vue'
44
- import { Primitive } from 'reka-ui'
45
- import { buttonGroupInjectionKey } from '../composables/useButtonGroup'
46
-
47
- const props = withDefaults(defineProps<ButtonGroupProps>(), {
48
- orientation: 'horizontal',
49
- noSplit: false
50
- })
51
- defineSlots<ButtonGroupSlots>()
52
-
9
+ <script setup>
10
+ import { provide, computed } from "vue";
11
+ import { buttonGroupInjectionKey } from "../composables/useButtonGroup";
12
+ const props = defineProps({
13
+ as: {
14
+ type: null,
15
+ required: false
16
+ },
17
+ size: {
18
+ type: null,
19
+ required: false
20
+ },
21
+ orientation: {
22
+ type: null,
23
+ required: false,
24
+ default: "horizontal"
25
+ },
26
+ noSplit: {
27
+ type: Boolean,
28
+ required: false,
29
+ default: false
30
+ },
31
+ class: {
32
+ type: null,
33
+ required: false
34
+ }
35
+ });
36
+ defineSlots();
53
37
  provide(buttonGroupInjectionKey, computed(() => ({
54
38
  orientation: props.orientation,
55
39
  noSplit: Boolean(props.noSplit),
56
40
  size: props.size
57
- })))
41
+ })));
58
42
  </script>
59
43
 
60
44
  <template>