@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.
Files changed (217) hide show
  1. package/.nuxt/b24ui/advice.ts +10 -2
  2. package/.nuxt/b24ui/alert.ts +10 -2
  3. package/.nuxt/b24ui/avatar-group.ts +10 -2
  4. package/.nuxt/b24ui/avatar.ts +10 -2
  5. package/.nuxt/b24ui/badge.ts +10 -2
  6. package/.nuxt/b24ui/button-group.ts +10 -2
  7. package/.nuxt/b24ui/button.ts +16 -6
  8. package/.nuxt/b24ui/calendar.ts +10 -2
  9. package/.nuxt/b24ui/checkbox.ts +10 -2
  10. package/.nuxt/b24ui/chip.ts +10 -2
  11. package/.nuxt/b24ui/collapsible.ts +10 -2
  12. package/.nuxt/b24ui/container.ts +10 -2
  13. package/.nuxt/b24ui/countdown.ts +10 -2
  14. package/.nuxt/b24ui/description-list.ts +10 -2
  15. package/.nuxt/b24ui/dropdown-menu.ts +10 -2
  16. package/.nuxt/b24ui/form-field.ts +10 -2
  17. package/.nuxt/b24ui/form.ts +10 -2
  18. package/.nuxt/b24ui/input-menu.ts +10 -2
  19. package/.nuxt/b24ui/input-number.ts +10 -2
  20. package/.nuxt/b24ui/input.ts +10 -2
  21. package/.nuxt/b24ui/kbd.ts +10 -2
  22. package/.nuxt/b24ui/link.ts +10 -2
  23. package/.nuxt/b24ui/modal.ts +10 -2
  24. package/.nuxt/b24ui/navbar-divider.ts +10 -2
  25. package/.nuxt/b24ui/navbar-section.ts +10 -2
  26. package/.nuxt/b24ui/navbar-spacer.ts +10 -2
  27. package/.nuxt/b24ui/navbar.ts +10 -2
  28. package/.nuxt/b24ui/navigation-menu.ts +10 -2
  29. package/.nuxt/b24ui/popover.ts +10 -2
  30. package/.nuxt/b24ui/progress.ts +10 -2
  31. package/.nuxt/b24ui/radio-group.ts +10 -2
  32. package/.nuxt/b24ui/range.ts +10 -2
  33. package/.nuxt/b24ui/select-menu.ts +10 -2
  34. package/.nuxt/b24ui/select.ts +10 -2
  35. package/.nuxt/b24ui/separator.ts +10 -2
  36. package/.nuxt/b24ui/sidebar-body.ts +10 -2
  37. package/.nuxt/b24ui/sidebar-footer.ts +10 -2
  38. package/.nuxt/b24ui/sidebar-header.ts +10 -2
  39. package/.nuxt/b24ui/sidebar-heading.ts +10 -2
  40. package/.nuxt/b24ui/sidebar-layout.ts +10 -2
  41. package/.nuxt/b24ui/sidebar-section.ts +10 -2
  42. package/.nuxt/b24ui/sidebar-spacer.ts +10 -2
  43. package/.nuxt/b24ui/sidebar.ts +10 -2
  44. package/.nuxt/b24ui/skeleton.ts +10 -2
  45. package/.nuxt/b24ui/slideover.ts +10 -2
  46. package/.nuxt/b24ui/stacked-layout.ts +10 -2
  47. package/.nuxt/b24ui/switch.ts +10 -2
  48. package/.nuxt/b24ui/tabs.ts +10 -2
  49. package/.nuxt/b24ui/textarea.ts +10 -2
  50. package/.nuxt/b24ui/toast.ts +10 -2
  51. package/.nuxt/b24ui/toaster.ts +10 -2
  52. package/.nuxt/b24ui/tooltip.ts +10 -2
  53. package/cli/templates.mjs +19 -15
  54. package/dist/meta.d.mts +1388 -3373
  55. package/dist/meta.mjs +1388 -3373
  56. package/dist/module.json +1 -1
  57. package/dist/module.mjs +2 -2
  58. package/dist/runtime/components/Advice.vue +5 -6
  59. package/dist/runtime/components/Advice.vue.d.ts +7 -121
  60. package/dist/runtime/components/Alert.vue +5 -6
  61. package/dist/runtime/components/Alert.vue.d.ts +12 -379
  62. package/dist/runtime/components/Avatar.vue +5 -6
  63. package/dist/runtime/components/Avatar.vue.d.ts +6 -225
  64. package/dist/runtime/components/AvatarGroup.vue +5 -6
  65. package/dist/runtime/components/AvatarGroup.vue.d.ts +6 -170
  66. package/dist/runtime/components/Badge.vue +5 -6
  67. package/dist/runtime/components/Badge.vue.d.ts +8 -447
  68. package/dist/runtime/components/Button.vue +16 -14
  69. package/dist/runtime/components/Button.vue.d.ts +10 -535
  70. package/dist/runtime/components/ButtonGroup.vue +11 -6
  71. package/dist/runtime/components/ButtonGroup.vue.d.ts +8 -61
  72. package/dist/runtime/components/Calendar.vue +4 -5
  73. package/dist/runtime/components/Calendar.vue.d.ts +7 -337
  74. package/dist/runtime/components/Checkbox.vue +5 -6
  75. package/dist/runtime/components/Checkbox.vue.d.ts +7 -306
  76. package/dist/runtime/components/Chip.vue +5 -6
  77. package/dist/runtime/components/Chip.vue.d.ts +8 -202
  78. package/dist/runtime/components/Collapsible.vue +6 -6
  79. package/dist/runtime/components/Collapsible.vue.d.ts +5 -73
  80. package/dist/runtime/components/Container.vue +6 -5
  81. package/dist/runtime/components/Countdown.vue +6 -7
  82. package/dist/runtime/components/Countdown.vue.d.ts +7 -241
  83. package/dist/runtime/components/DescriptionList.vue +5 -6
  84. package/dist/runtime/components/DescriptionList.vue.d.ts +8 -278
  85. package/dist/runtime/components/DropdownMenu.vue +4 -5
  86. package/dist/runtime/components/DropdownMenu.vue.d.ts +9 -409
  87. package/dist/runtime/components/DropdownMenuContent.vue +1 -3
  88. package/dist/runtime/components/DropdownMenuContent.vue.d.ts +9 -186
  89. package/dist/runtime/components/Form.vue +6 -5
  90. package/dist/runtime/components/FormField.vue +5 -6
  91. package/dist/runtime/components/FormField.vue.d.ts +6 -215
  92. package/dist/runtime/components/Input.vue +4 -5
  93. package/dist/runtime/components/Input.vue.d.ts +8 -628
  94. package/dist/runtime/components/InputMenu.vue +4 -5
  95. package/dist/runtime/components/InputMenu.vue.d.ts +19 -1185
  96. package/dist/runtime/components/InputNumber.vue +4 -5
  97. package/dist/runtime/components/InputNumber.vue.d.ts +10 -430
  98. package/dist/runtime/components/Kbd.vue +6 -5
  99. package/dist/runtime/components/Kbd.vue.d.ts +6 -60
  100. package/dist/runtime/components/Link.vue +12 -11
  101. package/dist/runtime/components/Modal.vue +5 -6
  102. package/dist/runtime/components/Modal.vue.d.ts +13 -216
  103. package/dist/runtime/components/Navbar.vue +6 -6
  104. package/dist/runtime/components/Navbar.vue.d.ts +5 -60
  105. package/dist/runtime/components/NavbarDivider.vue +6 -6
  106. package/dist/runtime/components/NavbarDivider.vue.d.ts +5 -60
  107. package/dist/runtime/components/NavbarSection.vue +6 -6
  108. package/dist/runtime/components/NavbarSection.vue.d.ts +5 -60
  109. package/dist/runtime/components/NavbarSpacer.vue +6 -6
  110. package/dist/runtime/components/NavbarSpacer.vue.d.ts +5 -60
  111. package/dist/runtime/components/NavigationMenu.vue +4 -5
  112. package/dist/runtime/components/NavigationMenu.vue.d.ts +11 -676
  113. package/dist/runtime/components/Popover.vue +5 -6
  114. package/dist/runtime/components/Popover.vue.d.ts +7 -75
  115. package/dist/runtime/components/Progress.vue +5 -6
  116. package/dist/runtime/components/Progress.vue.d.ts +11 -500
  117. package/dist/runtime/components/RadioGroup.vue +5 -6
  118. package/dist/runtime/components/RadioGroup.vue.d.ts +9 -644
  119. package/dist/runtime/components/Range.vue +5 -6
  120. package/dist/runtime/components/Range.vue.d.ts +7 -351
  121. package/dist/runtime/components/Select.vue +4 -5
  122. package/dist/runtime/components/Select.vue.d.ts +15 -1046
  123. package/dist/runtime/components/SelectMenu.vue +4 -5
  124. package/dist/runtime/components/SelectMenu.vue.d.ts +17 -1098
  125. package/dist/runtime/components/Separator.vue +5 -6
  126. package/dist/runtime/components/Separator.vue.d.ts +9 -332
  127. package/dist/runtime/components/Sidebar.vue +6 -6
  128. package/dist/runtime/components/Sidebar.vue.d.ts +5 -60
  129. package/dist/runtime/components/SidebarBody.vue +5 -6
  130. package/dist/runtime/components/SidebarBody.vue.d.ts +5 -42
  131. package/dist/runtime/components/SidebarFooter.vue +6 -6
  132. package/dist/runtime/components/SidebarFooter.vue.d.ts +5 -60
  133. package/dist/runtime/components/SidebarHeader.vue +6 -6
  134. package/dist/runtime/components/SidebarHeader.vue.d.ts +5 -60
  135. package/dist/runtime/components/SidebarHeading.vue +6 -6
  136. package/dist/runtime/components/SidebarHeading.vue.d.ts +5 -60
  137. package/dist/runtime/components/SidebarLayout.vue +6 -7
  138. package/dist/runtime/components/SidebarLayout.vue.d.ts +5 -162
  139. package/dist/runtime/components/SidebarSection.vue +6 -6
  140. package/dist/runtime/components/SidebarSection.vue.d.ts +5 -60
  141. package/dist/runtime/components/SidebarSpacer.vue +6 -6
  142. package/dist/runtime/components/SidebarSpacer.vue.d.ts +5 -60
  143. package/dist/runtime/components/Skeleton.vue +6 -5
  144. package/dist/runtime/components/Slideover.vue +5 -6
  145. package/dist/runtime/components/Slideover.vue.d.ts +15 -248
  146. package/dist/runtime/components/StackedLayout.vue +6 -7
  147. package/dist/runtime/components/StackedLayout.vue.d.ts +5 -132
  148. package/dist/runtime/components/Switch.vue +4 -5
  149. package/dist/runtime/components/Switch.vue.d.ts +7 -517
  150. package/dist/runtime/components/Tabs.vue +8 -5
  151. package/dist/runtime/components/Tabs.vue.d.ts +18 -367
  152. package/dist/runtime/components/Textarea.vue +4 -5
  153. package/dist/runtime/components/Textarea.vue.d.ts +7 -467
  154. package/dist/runtime/components/Toast.vue +5 -6
  155. package/dist/runtime/components/Toast.vue.d.ts +11 -354
  156. package/dist/runtime/components/Toaster.vue +6 -7
  157. package/dist/runtime/components/Toaster.vue.d.ts +7 -156
  158. package/dist/runtime/components/Tooltip.vue +5 -6
  159. package/dist/runtime/components/Tooltip.vue.d.ts +5 -126
  160. package/dist/runtime/components/content/TableWrapper.vue +5 -6
  161. package/dist/runtime/components/content/TableWrapper.vue.d.ts +6 -160
  162. package/dist/runtime/prose/A.vue +10 -9
  163. package/dist/runtime/prose/A.vue.d.ts +8 -65
  164. package/dist/runtime/prose/Blockquote.vue +8 -9
  165. package/dist/runtime/prose/Blockquote.vue.d.ts +8 -65
  166. package/dist/runtime/prose/Code.vue +6 -6
  167. package/dist/runtime/prose/Code.vue.d.ts +9 -75
  168. package/dist/runtime/prose/Em.vue +10 -9
  169. package/dist/runtime/prose/Em.vue.d.ts +8 -65
  170. package/dist/runtime/prose/H1.vue +8 -9
  171. package/dist/runtime/prose/H1.vue.d.ts +8 -78
  172. package/dist/runtime/prose/H2.vue +8 -9
  173. package/dist/runtime/prose/H2.vue.d.ts +8 -104
  174. package/dist/runtime/prose/H3.vue +8 -9
  175. package/dist/runtime/prose/H3.vue.d.ts +8 -104
  176. package/dist/runtime/prose/H4.vue +8 -9
  177. package/dist/runtime/prose/H4.vue.d.ts +8 -104
  178. package/dist/runtime/prose/H5.vue +8 -9
  179. package/dist/runtime/prose/H5.vue.d.ts +8 -104
  180. package/dist/runtime/prose/H6.vue +8 -9
  181. package/dist/runtime/prose/H6.vue.d.ts +8 -104
  182. package/dist/runtime/prose/Hr.vue +7 -9
  183. package/dist/runtime/prose/Hr.vue.d.ts +7 -62
  184. package/dist/runtime/prose/Img.vue +7 -9
  185. package/dist/runtime/prose/Img.vue.d.ts +7 -65
  186. package/dist/runtime/prose/Li.vue +8 -9
  187. package/dist/runtime/prose/Li.vue.d.ts +8 -65
  188. package/dist/runtime/prose/Ol.vue +8 -9
  189. package/dist/runtime/prose/Ol.vue.d.ts +8 -65
  190. package/dist/runtime/prose/P.vue +8 -9
  191. package/dist/runtime/prose/P.vue.d.ts +8 -65
  192. package/dist/runtime/prose/Pre.vue +7 -6
  193. package/dist/runtime/prose/Pre.vue.d.ts +10 -80
  194. package/dist/runtime/prose/Strong.vue +8 -9
  195. package/dist/runtime/prose/Strong.vue.d.ts +8 -65
  196. package/dist/runtime/prose/Table.vue +8 -9
  197. package/dist/runtime/prose/Table.vue.d.ts +10 -80
  198. package/dist/runtime/prose/Tbody.vue +8 -9
  199. package/dist/runtime/prose/Tbody.vue.d.ts +8 -65
  200. package/dist/runtime/prose/Td.vue +8 -9
  201. package/dist/runtime/prose/Td.vue.d.ts +8 -65
  202. package/dist/runtime/prose/Th.vue +8 -9
  203. package/dist/runtime/prose/Th.vue.d.ts +8 -65
  204. package/dist/runtime/prose/Thead.vue +8 -9
  205. package/dist/runtime/prose/Thead.vue.d.ts +8 -65
  206. package/dist/runtime/prose/Tr.vue +8 -9
  207. package/dist/runtime/prose/Tr.vue.d.ts +8 -65
  208. package/dist/runtime/prose/Ul.vue +8 -9
  209. package/dist/runtime/prose/Ul.vue.d.ts +8 -65
  210. package/dist/runtime/types/form.d.ts +1 -0
  211. package/dist/runtime/types/utils.d.ts +42 -3
  212. package/dist/runtime/utils/tv.js +2 -2
  213. package/dist/runtime/vue/components/Link.vue +12 -11
  214. package/dist/shared/{b24ui-nuxt.BA6Y2FnC.mjs → b24ui-nuxt.wBs9vEU5.mjs} +27 -2
  215. package/dist/unplugin.mjs +1 -1
  216. package/dist/vite.mjs +1 -1
  217. package/package.json +6 -6
@@ -1,447 +1,8 @@
1
- import type { VariantProps } from 'tailwind-variants';
1
+ import type { AppConfig } from '@nuxt/schema';
2
+ import theme from '#build/b24ui/badge';
2
3
  import type { UseComponentIconsProps } from '../composables/useComponentIcons';
3
- declare const badge: import("tailwind-variants").TVReturnType<{
4
- buttonGroup: {
5
- horizontal: string;
6
- vertical: string;
7
- };
8
- noSplit: {
9
- false: string;
10
- };
11
- useLink: {
12
- true: {
13
- base: string;
14
- wrapper: string;
15
- label: string;
16
- };
17
- };
18
- useClose: {
19
- true: string;
20
- };
21
- useFill: {
22
- true: string;
23
- false: string;
24
- };
25
- leading: {
26
- true: string;
27
- };
28
- color: {
29
- default: string;
30
- danger: string;
31
- success: string;
32
- warning: string;
33
- primary: string;
34
- secondary: string;
35
- collab: string;
36
- ai: string;
37
- };
38
- depth: {
39
- light: string;
40
- normal: string;
41
- dark: string;
42
- };
43
- size: {
44
- xs: {
45
- base: string;
46
- wrapper: string;
47
- label: string;
48
- leadingIcon: string;
49
- leadingAvatarSize: string;
50
- trailingIcon: string;
51
- };
52
- sm: {
53
- base: string;
54
- wrapper: string;
55
- label: string;
56
- leadingIcon: string;
57
- leadingAvatarSize: string;
58
- trailingIcon: string;
59
- };
60
- md: {
61
- base: string;
62
- wrapper: string;
63
- label: string;
64
- leadingIcon: string;
65
- leadingAvatarSize: string;
66
- trailingIcon: string;
67
- };
68
- lg: {
69
- base: string;
70
- wrapper: string;
71
- leadingIcon: string;
72
- leadingAvatarSize: string;
73
- trailingIcon: string;
74
- };
75
- xl: {
76
- base: string;
77
- wrapper: string;
78
- leadingIcon: string;
79
- leadingAvatarSize: string;
80
- trailingIcon: string;
81
- };
82
- };
83
- }, {
84
- base: string;
85
- wrapper: string;
86
- label: string;
87
- leadingIcon: string;
88
- leadingAvatar: string;
89
- leadingAvatarSize: string;
90
- trailingIcon: string;
91
- }, undefined, {
92
- buttonGroup: {
93
- horizontal: string;
94
- vertical: string;
95
- };
96
- noSplit: {
97
- false: string;
98
- };
99
- useLink: {
100
- true: {
101
- base: string;
102
- wrapper: string;
103
- label: string;
104
- };
105
- };
106
- useClose: {
107
- true: string;
108
- };
109
- useFill: {
110
- true: string;
111
- false: string;
112
- };
113
- leading: {
114
- true: string;
115
- };
116
- color: {
117
- default: string;
118
- danger: string;
119
- success: string;
120
- warning: string;
121
- primary: string;
122
- secondary: string;
123
- collab: string;
124
- ai: string;
125
- };
126
- depth: {
127
- light: string;
128
- normal: string;
129
- dark: string;
130
- };
131
- size: {
132
- xs: {
133
- base: string;
134
- wrapper: string;
135
- label: string;
136
- leadingIcon: string;
137
- leadingAvatarSize: string;
138
- trailingIcon: string;
139
- };
140
- sm: {
141
- base: string;
142
- wrapper: string;
143
- label: string;
144
- leadingIcon: string;
145
- leadingAvatarSize: string;
146
- trailingIcon: string;
147
- };
148
- md: {
149
- base: string;
150
- wrapper: string;
151
- label: string;
152
- leadingIcon: string;
153
- leadingAvatarSize: string;
154
- trailingIcon: string;
155
- };
156
- lg: {
157
- base: string;
158
- wrapper: string;
159
- leadingIcon: string;
160
- leadingAvatarSize: string;
161
- trailingIcon: string;
162
- };
163
- xl: {
164
- base: string;
165
- wrapper: string;
166
- leadingIcon: string;
167
- leadingAvatarSize: string;
168
- trailingIcon: string;
169
- };
170
- };
171
- }, {
172
- base: string;
173
- wrapper: string;
174
- label: string;
175
- leadingIcon: string;
176
- leadingAvatar: string;
177
- leadingAvatarSize: string;
178
- trailingIcon: string;
179
- }, import("tailwind-variants").TVReturnType<{
180
- buttonGroup: {
181
- horizontal: string;
182
- vertical: string;
183
- };
184
- noSplit: {
185
- false: string;
186
- };
187
- useLink: {
188
- true: {
189
- base: string;
190
- wrapper: string;
191
- label: string;
192
- };
193
- };
194
- useClose: {
195
- true: string;
196
- };
197
- useFill: {
198
- true: string;
199
- false: string;
200
- };
201
- leading: {
202
- true: string;
203
- };
204
- color: {
205
- default: string;
206
- danger: string;
207
- success: string;
208
- warning: string;
209
- primary: string;
210
- secondary: string;
211
- collab: string;
212
- ai: string;
213
- };
214
- depth: {
215
- light: string;
216
- normal: string;
217
- dark: string;
218
- };
219
- size: {
220
- xs: {
221
- base: string;
222
- wrapper: string;
223
- label: string;
224
- leadingIcon: string;
225
- leadingAvatarSize: string;
226
- trailingIcon: string;
227
- };
228
- sm: {
229
- base: string;
230
- wrapper: string;
231
- label: string;
232
- leadingIcon: string;
233
- leadingAvatarSize: string;
234
- trailingIcon: string;
235
- };
236
- md: {
237
- base: string;
238
- wrapper: string;
239
- label: string;
240
- leadingIcon: string;
241
- leadingAvatarSize: string;
242
- trailingIcon: string;
243
- };
244
- lg: {
245
- base: string;
246
- wrapper: string;
247
- leadingIcon: string;
248
- leadingAvatarSize: string;
249
- trailingIcon: string;
250
- };
251
- xl: {
252
- base: string;
253
- wrapper: string;
254
- leadingIcon: string;
255
- leadingAvatarSize: string;
256
- trailingIcon: string;
257
- };
258
- };
259
- }, {
260
- base: string;
261
- wrapper: string;
262
- label: string;
263
- leadingIcon: string;
264
- leadingAvatar: string;
265
- leadingAvatarSize: string;
266
- trailingIcon: string;
267
- }, undefined, {
268
- buttonGroup: {
269
- horizontal: string;
270
- vertical: string;
271
- };
272
- noSplit: {
273
- false: string;
274
- };
275
- useLink: {
276
- true: {
277
- base: string;
278
- wrapper: string;
279
- label: string;
280
- };
281
- };
282
- useClose: {
283
- true: string;
284
- };
285
- useFill: {
286
- true: string;
287
- false: string;
288
- };
289
- leading: {
290
- true: string;
291
- };
292
- color: {
293
- default: string;
294
- danger: string;
295
- success: string;
296
- warning: string;
297
- primary: string;
298
- secondary: string;
299
- collab: string;
300
- ai: string;
301
- };
302
- depth: {
303
- light: string;
304
- normal: string;
305
- dark: string;
306
- };
307
- size: {
308
- xs: {
309
- base: string;
310
- wrapper: string;
311
- label: string;
312
- leadingIcon: string;
313
- leadingAvatarSize: string;
314
- trailingIcon: string;
315
- };
316
- sm: {
317
- base: string;
318
- wrapper: string;
319
- label: string;
320
- leadingIcon: string;
321
- leadingAvatarSize: string;
322
- trailingIcon: string;
323
- };
324
- md: {
325
- base: string;
326
- wrapper: string;
327
- label: string;
328
- leadingIcon: string;
329
- leadingAvatarSize: string;
330
- trailingIcon: string;
331
- };
332
- lg: {
333
- base: string;
334
- wrapper: string;
335
- leadingIcon: string;
336
- leadingAvatarSize: string;
337
- trailingIcon: string;
338
- };
339
- xl: {
340
- base: string;
341
- wrapper: string;
342
- leadingIcon: string;
343
- leadingAvatarSize: string;
344
- trailingIcon: string;
345
- };
346
- };
347
- }, {
348
- base: string;
349
- wrapper: string;
350
- label: string;
351
- leadingIcon: string;
352
- leadingAvatar: string;
353
- leadingAvatarSize: string;
354
- trailingIcon: string;
355
- }, import("tailwind-variants").TVReturnType<{
356
- buttonGroup: {
357
- horizontal: string;
358
- vertical: string;
359
- };
360
- noSplit: {
361
- false: string;
362
- };
363
- useLink: {
364
- true: {
365
- base: string;
366
- wrapper: string;
367
- label: string;
368
- };
369
- };
370
- useClose: {
371
- true: string;
372
- };
373
- useFill: {
374
- true: string;
375
- false: string;
376
- };
377
- leading: {
378
- true: string;
379
- };
380
- color: {
381
- default: string;
382
- danger: string;
383
- success: string;
384
- warning: string;
385
- primary: string;
386
- secondary: string;
387
- collab: string;
388
- ai: string;
389
- };
390
- depth: {
391
- light: string;
392
- normal: string;
393
- dark: string;
394
- };
395
- size: {
396
- xs: {
397
- base: string;
398
- wrapper: string;
399
- label: string;
400
- leadingIcon: string;
401
- leadingAvatarSize: string;
402
- trailingIcon: string;
403
- };
404
- sm: {
405
- base: string;
406
- wrapper: string;
407
- label: string;
408
- leadingIcon: string;
409
- leadingAvatarSize: string;
410
- trailingIcon: string;
411
- };
412
- md: {
413
- base: string;
414
- wrapper: string;
415
- label: string;
416
- leadingIcon: string;
417
- leadingAvatarSize: string;
418
- trailingIcon: string;
419
- };
420
- lg: {
421
- base: string;
422
- wrapper: string;
423
- leadingIcon: string;
424
- leadingAvatarSize: string;
425
- trailingIcon: string;
426
- };
427
- xl: {
428
- base: string;
429
- wrapper: string;
430
- leadingIcon: string;
431
- leadingAvatarSize: string;
432
- trailingIcon: string;
433
- };
434
- };
435
- }, {
436
- base: string;
437
- wrapper: string;
438
- label: string;
439
- leadingIcon: string;
440
- leadingAvatar: string;
441
- leadingAvatarSize: string;
442
- trailingIcon: string;
443
- }, undefined, unknown, unknown, undefined>>>;
444
- type BadgeVariants = VariantProps<typeof badge>;
4
+ import type { ComponentConfig } from '../types/utils';
5
+ type Badge = ComponentConfig<typeof theme, AppConfig, 'badge'>;
445
6
  export interface BadgeProps extends Omit<UseComponentIconsProps, 'loading' | 'loadingIcon'> {
446
7
  /**
447
8
  * The element or component this component should render as.
@@ -452,15 +13,15 @@ export interface BadgeProps extends Omit<UseComponentIconsProps, 'loading' | 'lo
452
13
  /**
453
14
  * @defaultValue 'default'
454
15
  */
455
- color?: BadgeVariants['color'];
16
+ color?: Badge['variants']['color'];
456
17
  /**
457
18
  * @defaultValue 'normal'
458
19
  */
459
- depth?: BadgeVariants['depth'];
20
+ depth?: Badge['variants']['depth'];
460
21
  /**
461
22
  * @defaultValue 'md'
462
23
  */
463
- size?: BadgeVariants['size'];
24
+ size?: Badge['variants']['size'];
464
25
  /**
465
26
  * Shows 'underline' on hover
466
27
  * @defaultValue false
@@ -478,7 +39,7 @@ export interface BadgeProps extends Omit<UseComponentIconsProps, 'loading' | 'lo
478
39
  */
479
40
  useFill?: boolean;
480
41
  class?: any;
481
- b24ui?: Partial<typeof badge.slots>;
42
+ b24ui?: Badge['slots'];
482
43
  }
483
44
  export interface BadgeSlots {
484
45
  leading(props?: {}): any;
@@ -1,18 +1,17 @@
1
1
  <script>
2
- import _appConfig from "#build/app.config";
3
2
  import theme from "#build/b24ui/button";
4
- import { tv } from "../utils/tv";
5
- const appConfigButton = _appConfig;
6
- const button = tv({ extend: tv(theme), ...appConfigButton.b24ui?.button || {} });
7
3
  </script>
8
4
 
9
5
  <script setup>
10
6
  import { computed, ref, inject } from "vue";
7
+ import { defu } from "defu";
11
8
  import { useForwardProps } from "reka-ui";
9
+ import { useAppConfig } from "#imports";
12
10
  import { useComponentIcons } from "../composables/useComponentIcons";
13
11
  import { useButtonGroup } from "../composables/useButtonGroup";
14
12
  import { formLoadingInjectionKey } from "../composables/useFormField";
15
13
  import { omit } from "../utils";
14
+ import { tv } from "../utils/tv";
16
15
  import { pickLinkProps } from "../utils/link";
17
16
  import B24Avatar from "./Avatar.vue";
18
17
  import B24Link from "./Link.vue";
@@ -67,11 +66,12 @@ const props = defineProps({
67
66
  replace: { type: Boolean, required: false }
68
67
  });
69
68
  const slots = defineSlots();
69
+ const appConfig = useAppConfig();
70
+ const { orientation, size: buttonSize, noSplit } = useButtonGroup(props);
70
71
  const linkProps = useForwardProps(pickLinkProps(props));
71
72
  const proxyLinkProps = computed(() => {
72
73
  return omit(linkProps.value, ["type", "disabled", "onClick"]);
73
74
  });
74
- const { orientation, size: buttonSize, noSplit } = useButtonGroup(props);
75
75
  const loadingAutoState = ref(false);
76
76
  const formLoading = inject(formLoadingInjectionKey, void 0);
77
77
  async function onClickWrapper(event) {
@@ -97,17 +97,19 @@ const isLabel = computed(() => {
97
97
  return (props?.label || "").length > 0 || isUseSlot;
98
98
  });
99
99
  const b24ui = computed(() => tv({
100
- extend: button,
101
- variants: {
102
- active: {
103
- true: {
104
- base: props.activeClass
105
- },
106
- false: {
107
- base: props.inactiveClass
100
+ extend: tv(theme),
101
+ ...defu({
102
+ variants: {
103
+ active: {
104
+ true: {
105
+ base: props.activeClass
106
+ },
107
+ false: {
108
+ base: props.inactiveClass
109
+ }
108
110
  }
109
111
  }
110
- }
112
+ }, appConfig.b24ui?.button || {})
111
113
  })({
112
114
  color: props.color,
113
115
  depth: props.depth,