@bitrix24/b24ui-nuxt 0.6.0 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (224) 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 +1807 -3391
  55. package/dist/meta.mjs +1807 -3391
  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 +8 -6
  90. package/dist/runtime/components/Form.vue.d.ts +6 -0
  91. package/dist/runtime/components/FormField.vue +5 -6
  92. package/dist/runtime/components/FormField.vue.d.ts +6 -215
  93. package/dist/runtime/components/Input.vue +4 -5
  94. package/dist/runtime/components/Input.vue.d.ts +8 -628
  95. package/dist/runtime/components/InputMenu.vue +4 -5
  96. package/dist/runtime/components/InputMenu.vue.d.ts +19 -1185
  97. package/dist/runtime/components/InputNumber.vue +4 -5
  98. package/dist/runtime/components/InputNumber.vue.d.ts +10 -430
  99. package/dist/runtime/components/Kbd.vue +6 -5
  100. package/dist/runtime/components/Kbd.vue.d.ts +6 -60
  101. package/dist/runtime/components/Link.vue +12 -11
  102. package/dist/runtime/components/Modal.vue +5 -6
  103. package/dist/runtime/components/Modal.vue.d.ts +13 -216
  104. package/dist/runtime/components/Navbar.vue +6 -6
  105. package/dist/runtime/components/Navbar.vue.d.ts +5 -60
  106. package/dist/runtime/components/NavbarDivider.vue +6 -6
  107. package/dist/runtime/components/NavbarDivider.vue.d.ts +5 -60
  108. package/dist/runtime/components/NavbarSection.vue +6 -6
  109. package/dist/runtime/components/NavbarSection.vue.d.ts +5 -60
  110. package/dist/runtime/components/NavbarSpacer.vue +6 -6
  111. package/dist/runtime/components/NavbarSpacer.vue.d.ts +5 -60
  112. package/dist/runtime/components/NavigationMenu.vue +4 -5
  113. package/dist/runtime/components/NavigationMenu.vue.d.ts +11 -676
  114. package/dist/runtime/components/Popover.vue +5 -6
  115. package/dist/runtime/components/Popover.vue.d.ts +7 -75
  116. package/dist/runtime/components/Progress.vue +5 -6
  117. package/dist/runtime/components/Progress.vue.d.ts +11 -500
  118. package/dist/runtime/components/RadioGroup.vue +5 -6
  119. package/dist/runtime/components/RadioGroup.vue.d.ts +9 -644
  120. package/dist/runtime/components/Range.vue +5 -6
  121. package/dist/runtime/components/Range.vue.d.ts +7 -351
  122. package/dist/runtime/components/Select.vue +4 -5
  123. package/dist/runtime/components/Select.vue.d.ts +15 -1046
  124. package/dist/runtime/components/SelectMenu.vue +4 -5
  125. package/dist/runtime/components/SelectMenu.vue.d.ts +17 -1098
  126. package/dist/runtime/components/Separator.vue +5 -6
  127. package/dist/runtime/components/Separator.vue.d.ts +9 -332
  128. package/dist/runtime/components/Sidebar.vue +6 -6
  129. package/dist/runtime/components/Sidebar.vue.d.ts +5 -60
  130. package/dist/runtime/components/SidebarBody.vue +5 -6
  131. package/dist/runtime/components/SidebarBody.vue.d.ts +5 -42
  132. package/dist/runtime/components/SidebarFooter.vue +6 -6
  133. package/dist/runtime/components/SidebarFooter.vue.d.ts +5 -60
  134. package/dist/runtime/components/SidebarHeader.vue +6 -6
  135. package/dist/runtime/components/SidebarHeader.vue.d.ts +5 -60
  136. package/dist/runtime/components/SidebarHeading.vue +6 -6
  137. package/dist/runtime/components/SidebarHeading.vue.d.ts +5 -60
  138. package/dist/runtime/components/SidebarLayout.vue +6 -7
  139. package/dist/runtime/components/SidebarLayout.vue.d.ts +5 -162
  140. package/dist/runtime/components/SidebarSection.vue +6 -6
  141. package/dist/runtime/components/SidebarSection.vue.d.ts +5 -60
  142. package/dist/runtime/components/SidebarSpacer.vue +6 -6
  143. package/dist/runtime/components/SidebarSpacer.vue.d.ts +5 -60
  144. package/dist/runtime/components/Skeleton.vue +6 -5
  145. package/dist/runtime/components/Slideover.vue +5 -6
  146. package/dist/runtime/components/Slideover.vue.d.ts +15 -248
  147. package/dist/runtime/components/StackedLayout.vue +6 -7
  148. package/dist/runtime/components/StackedLayout.vue.d.ts +5 -132
  149. package/dist/runtime/components/Switch.vue +4 -5
  150. package/dist/runtime/components/Switch.vue.d.ts +7 -517
  151. package/dist/runtime/components/Tabs.vue +8 -5
  152. package/dist/runtime/components/Tabs.vue.d.ts +18 -367
  153. package/dist/runtime/components/Textarea.vue +4 -5
  154. package/dist/runtime/components/Textarea.vue.d.ts +7 -467
  155. package/dist/runtime/components/Toast.vue +5 -6
  156. package/dist/runtime/components/Toast.vue.d.ts +11 -354
  157. package/dist/runtime/components/Toaster.vue +6 -7
  158. package/dist/runtime/components/Toaster.vue.d.ts +7 -156
  159. package/dist/runtime/components/Tooltip.vue +5 -6
  160. package/dist/runtime/components/Tooltip.vue.d.ts +5 -126
  161. package/dist/runtime/components/content/TableWrapper.vue +5 -6
  162. package/dist/runtime/components/content/TableWrapper.vue.d.ts +6 -160
  163. package/dist/runtime/inertia/components/Link.vue +153 -0
  164. package/dist/runtime/inertia/components/Link.vue.d.ts +97 -0
  165. package/dist/runtime/inertia/stubs.d.ts +45 -0
  166. package/dist/runtime/inertia/stubs.js +84 -0
  167. package/dist/runtime/prose/A.vue +10 -9
  168. package/dist/runtime/prose/A.vue.d.ts +8 -65
  169. package/dist/runtime/prose/Blockquote.vue +8 -9
  170. package/dist/runtime/prose/Blockquote.vue.d.ts +8 -65
  171. package/dist/runtime/prose/Code.vue +6 -6
  172. package/dist/runtime/prose/Code.vue.d.ts +9 -75
  173. package/dist/runtime/prose/Em.vue +10 -9
  174. package/dist/runtime/prose/Em.vue.d.ts +8 -65
  175. package/dist/runtime/prose/H1.vue +8 -9
  176. package/dist/runtime/prose/H1.vue.d.ts +8 -78
  177. package/dist/runtime/prose/H2.vue +8 -9
  178. package/dist/runtime/prose/H2.vue.d.ts +8 -104
  179. package/dist/runtime/prose/H3.vue +8 -9
  180. package/dist/runtime/prose/H3.vue.d.ts +8 -104
  181. package/dist/runtime/prose/H4.vue +8 -9
  182. package/dist/runtime/prose/H4.vue.d.ts +8 -104
  183. package/dist/runtime/prose/H5.vue +8 -9
  184. package/dist/runtime/prose/H5.vue.d.ts +8 -104
  185. package/dist/runtime/prose/H6.vue +8 -9
  186. package/dist/runtime/prose/H6.vue.d.ts +8 -104
  187. package/dist/runtime/prose/Hr.vue +7 -9
  188. package/dist/runtime/prose/Hr.vue.d.ts +7 -62
  189. package/dist/runtime/prose/Img.vue +7 -9
  190. package/dist/runtime/prose/Img.vue.d.ts +7 -65
  191. package/dist/runtime/prose/Li.vue +8 -9
  192. package/dist/runtime/prose/Li.vue.d.ts +8 -65
  193. package/dist/runtime/prose/Ol.vue +8 -9
  194. package/dist/runtime/prose/Ol.vue.d.ts +8 -65
  195. package/dist/runtime/prose/P.vue +8 -9
  196. package/dist/runtime/prose/P.vue.d.ts +8 -65
  197. package/dist/runtime/prose/Pre.vue +7 -6
  198. package/dist/runtime/prose/Pre.vue.d.ts +10 -80
  199. package/dist/runtime/prose/Strong.vue +8 -9
  200. package/dist/runtime/prose/Strong.vue.d.ts +8 -65
  201. package/dist/runtime/prose/Table.vue +8 -9
  202. package/dist/runtime/prose/Table.vue.d.ts +10 -80
  203. package/dist/runtime/prose/Tbody.vue +8 -9
  204. package/dist/runtime/prose/Tbody.vue.d.ts +8 -65
  205. package/dist/runtime/prose/Td.vue +8 -9
  206. package/dist/runtime/prose/Td.vue.d.ts +8 -65
  207. package/dist/runtime/prose/Th.vue +8 -9
  208. package/dist/runtime/prose/Th.vue.d.ts +8 -65
  209. package/dist/runtime/prose/Thead.vue +8 -9
  210. package/dist/runtime/prose/Thead.vue.d.ts +8 -65
  211. package/dist/runtime/prose/Tr.vue +8 -9
  212. package/dist/runtime/prose/Tr.vue.d.ts +8 -65
  213. package/dist/runtime/prose/Ul.vue +8 -9
  214. package/dist/runtime/prose/Ul.vue.d.ts +8 -65
  215. package/dist/runtime/types/form.d.ts +1 -0
  216. package/dist/runtime/types/utils.d.ts +47 -7
  217. package/dist/runtime/utils/tv.js +2 -2
  218. package/dist/runtime/vue/components/Link.vue +13 -12
  219. package/dist/runtime/vue/stubs.d.ts +1 -1
  220. package/dist/shared/{b24ui-nuxt.BA6Y2FnC.mjs → b24ui-nuxt.wBs9vEU5.mjs} +27 -2
  221. package/dist/unplugin.d.mts +4 -0
  222. package/dist/unplugin.mjs +12 -4
  223. package/dist/vite.mjs +1 -1
  224. package/package.json +21 -15
@@ -1,363 +1,9 @@
1
- import type { VariantProps } from 'tailwind-variants';
2
1
  import type { TabsRootProps, TabsRootEmits } from 'reka-ui';
2
+ import type { AppConfig } from '@nuxt/schema';
3
+ import theme from '#build/b24ui/tabs';
3
4
  import type { AvatarProps, IconComponent } from '../types';
4
- import type { DynamicSlots, PartialString } from '../types/utils';
5
- declare const tabs: import("tailwind-variants").TVReturnType<{
6
- color: {
7
- default: string;
8
- danger: string;
9
- success: string;
10
- warning: string;
11
- primary: string;
12
- secondary: string;
13
- collab: string;
14
- ai: string;
15
- };
16
- variant: {
17
- pill: {
18
- list: string;
19
- trigger: string;
20
- indicator: string;
21
- };
22
- link: {
23
- list: string;
24
- indicator: string;
25
- };
26
- };
27
- orientation: {
28
- horizontal: {
29
- root: string;
30
- list: string;
31
- indicator: string;
32
- trigger: string;
33
- };
34
- vertical: {
35
- list: string;
36
- indicator: string;
37
- };
38
- };
39
- size: {
40
- xs: {
41
- trigger: string;
42
- leadingIcon: string;
43
- leadingAvatarSize: string;
44
- };
45
- sm: {
46
- trigger: string;
47
- leadingIcon: string;
48
- leadingAvatarSize: string;
49
- };
50
- md: {
51
- trigger: string;
52
- leadingIcon: string;
53
- leadingAvatarSize: string;
54
- };
55
- lg: {
56
- trigger: string;
57
- leadingIcon: string;
58
- leadingAvatarSize: string;
59
- };
60
- xl: {
61
- trigger: string;
62
- leadingIcon: string;
63
- leadingAvatarSize: string;
64
- };
65
- };
66
- }, {
67
- root: string;
68
- list: string;
69
- indicator: string;
70
- trigger: string;
71
- content: string;
72
- leadingIcon: string;
73
- leadingAvatar: string;
74
- leadingAvatarSize: string;
75
- label: string;
76
- }, undefined, {
77
- color: {
78
- default: string;
79
- danger: string;
80
- success: string;
81
- warning: string;
82
- primary: string;
83
- secondary: string;
84
- collab: string;
85
- ai: string;
86
- };
87
- variant: {
88
- pill: {
89
- list: string;
90
- trigger: string;
91
- indicator: string;
92
- };
93
- link: {
94
- list: string;
95
- indicator: string;
96
- };
97
- };
98
- orientation: {
99
- horizontal: {
100
- root: string;
101
- list: string;
102
- indicator: string;
103
- trigger: string;
104
- };
105
- vertical: {
106
- list: string;
107
- indicator: string;
108
- };
109
- };
110
- size: {
111
- xs: {
112
- trigger: string;
113
- leadingIcon: string;
114
- leadingAvatarSize: string;
115
- };
116
- sm: {
117
- trigger: string;
118
- leadingIcon: string;
119
- leadingAvatarSize: string;
120
- };
121
- md: {
122
- trigger: string;
123
- leadingIcon: string;
124
- leadingAvatarSize: string;
125
- };
126
- lg: {
127
- trigger: string;
128
- leadingIcon: string;
129
- leadingAvatarSize: string;
130
- };
131
- xl: {
132
- trigger: string;
133
- leadingIcon: string;
134
- leadingAvatarSize: string;
135
- };
136
- };
137
- }, {
138
- root: string;
139
- list: string;
140
- indicator: string;
141
- trigger: string;
142
- content: string;
143
- leadingIcon: string;
144
- leadingAvatar: string;
145
- leadingAvatarSize: string;
146
- label: string;
147
- }, import("tailwind-variants").TVReturnType<{
148
- color: {
149
- default: string;
150
- danger: string;
151
- success: string;
152
- warning: string;
153
- primary: string;
154
- secondary: string;
155
- collab: string;
156
- ai: string;
157
- };
158
- variant: {
159
- pill: {
160
- list: string;
161
- trigger: string;
162
- indicator: string;
163
- };
164
- link: {
165
- list: string;
166
- indicator: string;
167
- };
168
- };
169
- orientation: {
170
- horizontal: {
171
- root: string;
172
- list: string;
173
- indicator: string;
174
- trigger: string;
175
- };
176
- vertical: {
177
- list: string;
178
- indicator: string;
179
- };
180
- };
181
- size: {
182
- xs: {
183
- trigger: string;
184
- leadingIcon: string;
185
- leadingAvatarSize: string;
186
- };
187
- sm: {
188
- trigger: string;
189
- leadingIcon: string;
190
- leadingAvatarSize: string;
191
- };
192
- md: {
193
- trigger: string;
194
- leadingIcon: string;
195
- leadingAvatarSize: string;
196
- };
197
- lg: {
198
- trigger: string;
199
- leadingIcon: string;
200
- leadingAvatarSize: string;
201
- };
202
- xl: {
203
- trigger: string;
204
- leadingIcon: string;
205
- leadingAvatarSize: string;
206
- };
207
- };
208
- }, {
209
- root: string;
210
- list: string;
211
- indicator: string;
212
- trigger: string;
213
- content: string;
214
- leadingIcon: string;
215
- leadingAvatar: string;
216
- leadingAvatarSize: string;
217
- label: string;
218
- }, undefined, {
219
- color: {
220
- default: string;
221
- danger: string;
222
- success: string;
223
- warning: string;
224
- primary: string;
225
- secondary: string;
226
- collab: string;
227
- ai: string;
228
- };
229
- variant: {
230
- pill: {
231
- list: string;
232
- trigger: string;
233
- indicator: string;
234
- };
235
- link: {
236
- list: string;
237
- indicator: string;
238
- };
239
- };
240
- orientation: {
241
- horizontal: {
242
- root: string;
243
- list: string;
244
- indicator: string;
245
- trigger: string;
246
- };
247
- vertical: {
248
- list: string;
249
- indicator: string;
250
- };
251
- };
252
- size: {
253
- xs: {
254
- trigger: string;
255
- leadingIcon: string;
256
- leadingAvatarSize: string;
257
- };
258
- sm: {
259
- trigger: string;
260
- leadingIcon: string;
261
- leadingAvatarSize: string;
262
- };
263
- md: {
264
- trigger: string;
265
- leadingIcon: string;
266
- leadingAvatarSize: string;
267
- };
268
- lg: {
269
- trigger: string;
270
- leadingIcon: string;
271
- leadingAvatarSize: string;
272
- };
273
- xl: {
274
- trigger: string;
275
- leadingIcon: string;
276
- leadingAvatarSize: string;
277
- };
278
- };
279
- }, {
280
- root: string;
281
- list: string;
282
- indicator: string;
283
- trigger: string;
284
- content: string;
285
- leadingIcon: string;
286
- leadingAvatar: string;
287
- leadingAvatarSize: string;
288
- label: string;
289
- }, import("tailwind-variants").TVReturnType<{
290
- color: {
291
- default: string;
292
- danger: string;
293
- success: string;
294
- warning: string;
295
- primary: string;
296
- secondary: string;
297
- collab: string;
298
- ai: string;
299
- };
300
- variant: {
301
- pill: {
302
- list: string;
303
- trigger: string;
304
- indicator: string;
305
- };
306
- link: {
307
- list: string;
308
- indicator: string;
309
- };
310
- };
311
- orientation: {
312
- horizontal: {
313
- root: string;
314
- list: string;
315
- indicator: string;
316
- trigger: string;
317
- };
318
- vertical: {
319
- list: string;
320
- indicator: string;
321
- };
322
- };
323
- size: {
324
- xs: {
325
- trigger: string;
326
- leadingIcon: string;
327
- leadingAvatarSize: string;
328
- };
329
- sm: {
330
- trigger: string;
331
- leadingIcon: string;
332
- leadingAvatarSize: string;
333
- };
334
- md: {
335
- trigger: string;
336
- leadingIcon: string;
337
- leadingAvatarSize: string;
338
- };
339
- lg: {
340
- trigger: string;
341
- leadingIcon: string;
342
- leadingAvatarSize: string;
343
- };
344
- xl: {
345
- trigger: string;
346
- leadingIcon: string;
347
- leadingAvatarSize: string;
348
- };
349
- };
350
- }, {
351
- root: string;
352
- list: string;
353
- indicator: string;
354
- trigger: string;
355
- content: string;
356
- leadingIcon: string;
357
- leadingAvatar: string;
358
- leadingAvatarSize: string;
359
- label: string;
360
- }, undefined, unknown, unknown, undefined>>>;
5
+ import type { DynamicSlots, ComponentConfig } from '../types/utils';
6
+ type Tabs = ComponentConfig<typeof theme, AppConfig, 'tabs'>;
361
7
  export interface TabsItem {
362
8
  label?: string;
363
9
  /**
@@ -372,7 +18,6 @@ export interface TabsItem {
372
18
  disabled?: boolean;
373
19
  [key: string]: any;
374
20
  }
375
- type TabsVariants = VariantProps<typeof tabs>;
376
21
  export interface TabsProps<T extends TabsItem = TabsItem> extends Pick<TabsRootProps<string | number>, 'defaultValue' | 'modelValue' | 'activationMode' | 'unmountOnHide'> {
377
22
  /**
378
23
  * The element or component this component should render as.
@@ -383,15 +28,15 @@ export interface TabsProps<T extends TabsItem = TabsItem> extends Pick<TabsRootP
383
28
  /**
384
29
  * @defaultValue 'default'
385
30
  */
386
- color?: TabsVariants['color'];
31
+ color?: Tabs['variants']['color'];
387
32
  /**
388
33
  * @defaultValue 'link'
389
34
  */
390
- variant?: TabsVariants['variant'];
35
+ variant?: Tabs['variants']['variant'];
391
36
  /**
392
37
  * @defaultValue 'md'
393
38
  */
394
- size?: TabsVariants['size'];
39
+ size?: Tabs['variants']['size'];
395
40
  /**
396
41
  * The orientation of the tabs.
397
42
  * @defaultValue 'horizontal'
@@ -408,7 +53,7 @@ export interface TabsProps<T extends TabsItem = TabsItem> extends Pick<TabsRootP
408
53
  */
409
54
  labelKey?: string;
410
55
  class?: any;
411
- b24ui?: PartialString<typeof tabs.slots>;
56
+ b24ui?: Tabs['slots'];
412
57
  }
413
58
  export interface TabsEmits extends TabsRootEmits<string | number> {
414
59
  }
@@ -417,10 +62,12 @@ type SlotProps<T extends TabsItem> = (props: {
417
62
  index: number;
418
63
  }) => any;
419
64
  export type TabsSlots<T extends TabsItem = TabsItem> = {
420
- leading: SlotProps<T>;
421
- default: SlotProps<T>;
422
- trailing: SlotProps<T>;
423
- content: SlotProps<T>;
65
+ 'leading': SlotProps<T>;
66
+ 'default': SlotProps<T>;
67
+ 'trailing': SlotProps<T>;
68
+ 'content': SlotProps<T>;
69
+ 'list-leading': (props?: {}) => any;
70
+ 'list-trailing': (props?: {}) => any;
424
71
  } & DynamicSlots<T, undefined, {
425
72
  index: number;
426
73
  }>;
@@ -433,6 +80,8 @@ declare const _default: <T extends TabsItem>(__VLS_props: NonNullable<Awaited<ty
433
80
  default: SlotProps<T>;
434
81
  trailing: SlotProps<T>;
435
82
  content: SlotProps<T>;
83
+ 'list-leading': (props?: {}) => any;
84
+ 'list-trailing': (props?: {}) => any;
436
85
  } & DynamicSlots<T, undefined, {
437
86
  index: number;
438
87
  }>> & {
@@ -440,6 +89,8 @@ declare const _default: <T extends TabsItem>(__VLS_props: NonNullable<Awaited<ty
440
89
  default: SlotProps<T>;
441
90
  trailing: SlotProps<T>;
442
91
  content: SlotProps<T>;
92
+ 'list-leading': (props?: {}) => any;
93
+ 'list-trailing': (props?: {}) => any;
443
94
  } & DynamicSlots<T, undefined, {
444
95
  index: number;
445
96
  }>;
@@ -1,17 +1,15 @@
1
1
  <script>
2
- import _appConfig from "#build/app.config";
3
2
  import theme from "#build/b24ui/textarea";
4
- import { tv } from "../utils/tv";
5
- const appConfigTextarea = _appConfig;
6
- const textarea = tv({ extend: tv(theme), ...appConfigTextarea.b24ui?.textarea || {} });
7
3
  </script>
8
4
 
9
5
  <script setup>
10
6
  import { ref, computed, onMounted, nextTick, watch } from "vue";
11
7
  import { Primitive } from "reka-ui";
8
+ import { useAppConfig } from "#imports";
12
9
  import { useComponentIcons } from "../composables/useComponentIcons";
13
10
  import { useFormField } from "../composables/useFormField";
14
11
  import { looseToNumber } from "../utils";
12
+ import { tv } from "../utils/tv";
15
13
  import B24Avatar from "./Avatar.vue";
16
14
  defineOptions({ inheritAttrs: false });
17
15
  const props = defineProps({
@@ -46,12 +44,13 @@ const props = defineProps({
46
44
  const slots = defineSlots();
47
45
  const emits = defineEmits(["update:modelValue", "blur", "change"]);
48
46
  const [modelValue, modelModifiers] = defineModel({ type: [String, Number, null] });
47
+ const appConfig = useAppConfig();
49
48
  const { emitFormFocus, emitFormBlur, emitFormInput, emitFormChange, color, id, name, highlight, disabled, ariaAttrs } = useFormField(props, { deferInputValidation: true });
50
49
  const { isLeading, isTrailing, leadingIconName, trailingIconName } = useComponentIcons(props);
51
50
  const isTag = computed(() => {
52
51
  return props.tag;
53
52
  });
54
- const b24ui = computed(() => textarea({
53
+ const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.textarea || {} })({
55
54
  color: color.value,
56
55
  loading: props.loading,
57
56
  highlight: highlight.value,