@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,629 +1,9 @@
1
1
  import type { InputHTMLAttributes } from 'vue';
2
- import type { VariantProps } from 'tailwind-variants';
2
+ import type { AppConfig } from '@nuxt/schema';
3
+ import theme from '#build/b24ui/input';
3
4
  import type { UseComponentIconsProps } from '../composables/useComponentIcons';
4
- import type { PartialString } from '../types/utils';
5
- declare const input: import("tailwind-variants").TVReturnType<{
6
- buttonGroup: {
7
- horizontal: {
8
- root: string;
9
- base: string;
10
- };
11
- vertical: {
12
- root: string;
13
- base: string;
14
- };
15
- };
16
- noSplit: {
17
- false: string;
18
- };
19
- size: {
20
- xs: {
21
- base: string;
22
- leading: string;
23
- trailing: string;
24
- leadingIcon: string;
25
- leadingAvatarSize: string;
26
- trailingIcon: string;
27
- };
28
- sm: {
29
- base: string;
30
- leading: string;
31
- trailing: string;
32
- leadingIcon: string;
33
- leadingAvatarSize: string;
34
- trailingIcon: string;
35
- };
36
- md: {
37
- base: string;
38
- leading: string;
39
- trailing: string;
40
- leadingIcon: string;
41
- leadingAvatarSize: string;
42
- trailingIcon: string;
43
- };
44
- lg: {
45
- base: string;
46
- leading: string;
47
- trailing: string;
48
- leadingIcon: string;
49
- leadingAvatarSize: string;
50
- trailingIcon: string;
51
- };
52
- };
53
- color: {
54
- default: string;
55
- danger: string;
56
- success: string;
57
- warning: string;
58
- primary: string;
59
- secondary: string;
60
- collab: string;
61
- ai: string;
62
- };
63
- tagColor: {
64
- default: {
65
- tag: string;
66
- };
67
- danger: {
68
- tag: string;
69
- };
70
- success: {
71
- tag: string;
72
- };
73
- warning: {
74
- tag: string;
75
- };
76
- primary: {
77
- tag: string;
78
- };
79
- secondary: {
80
- tag: string;
81
- };
82
- collab: {
83
- tag: string;
84
- };
85
- ai: {
86
- tag: string;
87
- };
88
- };
89
- rounded: {
90
- true: string;
91
- false: string;
92
- };
93
- noPadding: {
94
- true: {
95
- base: string;
96
- };
97
- };
98
- noBorder: {
99
- true: string;
100
- };
101
- underline: {
102
- true: string;
103
- };
104
- leading: {
105
- true: string;
106
- };
107
- trailing: {
108
- true: string;
109
- };
110
- loading: {
111
- true: string;
112
- };
113
- highlight: {
114
- true: string;
115
- };
116
- type: {
117
- file: string;
118
- };
119
- }, {
120
- root: string;
121
- base: string;
122
- leading: string;
123
- leadingIcon: string;
124
- leadingAvatar: string;
125
- leadingAvatarSize: string;
126
- trailing: string;
127
- trailingIcon: string;
128
- tag: string;
129
- }, undefined, {
130
- buttonGroup: {
131
- horizontal: {
132
- root: string;
133
- base: string;
134
- };
135
- vertical: {
136
- root: string;
137
- base: string;
138
- };
139
- };
140
- noSplit: {
141
- false: string;
142
- };
143
- size: {
144
- xs: {
145
- base: string;
146
- leading: string;
147
- trailing: string;
148
- leadingIcon: string;
149
- leadingAvatarSize: string;
150
- trailingIcon: string;
151
- };
152
- sm: {
153
- base: string;
154
- leading: string;
155
- trailing: string;
156
- leadingIcon: string;
157
- leadingAvatarSize: string;
158
- trailingIcon: string;
159
- };
160
- md: {
161
- base: string;
162
- leading: string;
163
- trailing: string;
164
- leadingIcon: string;
165
- leadingAvatarSize: string;
166
- trailingIcon: string;
167
- };
168
- lg: {
169
- base: string;
170
- leading: string;
171
- trailing: string;
172
- leadingIcon: string;
173
- leadingAvatarSize: string;
174
- trailingIcon: string;
175
- };
176
- };
177
- color: {
178
- default: string;
179
- danger: string;
180
- success: string;
181
- warning: string;
182
- primary: string;
183
- secondary: string;
184
- collab: string;
185
- ai: string;
186
- };
187
- tagColor: {
188
- default: {
189
- tag: string;
190
- };
191
- danger: {
192
- tag: string;
193
- };
194
- success: {
195
- tag: string;
196
- };
197
- warning: {
198
- tag: string;
199
- };
200
- primary: {
201
- tag: string;
202
- };
203
- secondary: {
204
- tag: string;
205
- };
206
- collab: {
207
- tag: string;
208
- };
209
- ai: {
210
- tag: string;
211
- };
212
- };
213
- rounded: {
214
- true: string;
215
- false: string;
216
- };
217
- noPadding: {
218
- true: {
219
- base: string;
220
- };
221
- };
222
- noBorder: {
223
- true: string;
224
- };
225
- underline: {
226
- true: string;
227
- };
228
- leading: {
229
- true: string;
230
- };
231
- trailing: {
232
- true: string;
233
- };
234
- loading: {
235
- true: string;
236
- };
237
- highlight: {
238
- true: string;
239
- };
240
- type: {
241
- file: string;
242
- };
243
- }, {
244
- root: string;
245
- base: string;
246
- leading: string;
247
- leadingIcon: string;
248
- leadingAvatar: string;
249
- leadingAvatarSize: string;
250
- trailing: string;
251
- trailingIcon: string;
252
- tag: string;
253
- }, import("tailwind-variants").TVReturnType<{
254
- buttonGroup: {
255
- horizontal: {
256
- root: string;
257
- base: string;
258
- };
259
- vertical: {
260
- root: string;
261
- base: string;
262
- };
263
- };
264
- noSplit: {
265
- false: string;
266
- };
267
- size: {
268
- xs: {
269
- base: string;
270
- leading: string;
271
- trailing: string;
272
- leadingIcon: string;
273
- leadingAvatarSize: string;
274
- trailingIcon: string;
275
- };
276
- sm: {
277
- base: string;
278
- leading: string;
279
- trailing: string;
280
- leadingIcon: string;
281
- leadingAvatarSize: string;
282
- trailingIcon: string;
283
- };
284
- md: {
285
- base: string;
286
- leading: string;
287
- trailing: string;
288
- leadingIcon: string;
289
- leadingAvatarSize: string;
290
- trailingIcon: string;
291
- };
292
- lg: {
293
- base: string;
294
- leading: string;
295
- trailing: string;
296
- leadingIcon: string;
297
- leadingAvatarSize: string;
298
- trailingIcon: string;
299
- };
300
- };
301
- color: {
302
- default: string;
303
- danger: string;
304
- success: string;
305
- warning: string;
306
- primary: string;
307
- secondary: string;
308
- collab: string;
309
- ai: string;
310
- };
311
- tagColor: {
312
- default: {
313
- tag: string;
314
- };
315
- danger: {
316
- tag: string;
317
- };
318
- success: {
319
- tag: string;
320
- };
321
- warning: {
322
- tag: string;
323
- };
324
- primary: {
325
- tag: string;
326
- };
327
- secondary: {
328
- tag: string;
329
- };
330
- collab: {
331
- tag: string;
332
- };
333
- ai: {
334
- tag: string;
335
- };
336
- };
337
- rounded: {
338
- true: string;
339
- false: string;
340
- };
341
- noPadding: {
342
- true: {
343
- base: string;
344
- };
345
- };
346
- noBorder: {
347
- true: string;
348
- };
349
- underline: {
350
- true: string;
351
- };
352
- leading: {
353
- true: string;
354
- };
355
- trailing: {
356
- true: string;
357
- };
358
- loading: {
359
- true: string;
360
- };
361
- highlight: {
362
- true: string;
363
- };
364
- type: {
365
- file: string;
366
- };
367
- }, {
368
- root: string;
369
- base: string;
370
- leading: string;
371
- leadingIcon: string;
372
- leadingAvatar: string;
373
- leadingAvatarSize: string;
374
- trailing: string;
375
- trailingIcon: string;
376
- tag: string;
377
- }, undefined, {
378
- buttonGroup: {
379
- horizontal: {
380
- root: string;
381
- base: string;
382
- };
383
- vertical: {
384
- root: string;
385
- base: string;
386
- };
387
- };
388
- noSplit: {
389
- false: string;
390
- };
391
- size: {
392
- xs: {
393
- base: string;
394
- leading: string;
395
- trailing: string;
396
- leadingIcon: string;
397
- leadingAvatarSize: string;
398
- trailingIcon: string;
399
- };
400
- sm: {
401
- base: string;
402
- leading: string;
403
- trailing: string;
404
- leadingIcon: string;
405
- leadingAvatarSize: string;
406
- trailingIcon: string;
407
- };
408
- md: {
409
- base: string;
410
- leading: string;
411
- trailing: string;
412
- leadingIcon: string;
413
- leadingAvatarSize: string;
414
- trailingIcon: string;
415
- };
416
- lg: {
417
- base: string;
418
- leading: string;
419
- trailing: string;
420
- leadingIcon: string;
421
- leadingAvatarSize: string;
422
- trailingIcon: string;
423
- };
424
- };
425
- color: {
426
- default: string;
427
- danger: string;
428
- success: string;
429
- warning: string;
430
- primary: string;
431
- secondary: string;
432
- collab: string;
433
- ai: string;
434
- };
435
- tagColor: {
436
- default: {
437
- tag: string;
438
- };
439
- danger: {
440
- tag: string;
441
- };
442
- success: {
443
- tag: string;
444
- };
445
- warning: {
446
- tag: string;
447
- };
448
- primary: {
449
- tag: string;
450
- };
451
- secondary: {
452
- tag: string;
453
- };
454
- collab: {
455
- tag: string;
456
- };
457
- ai: {
458
- tag: string;
459
- };
460
- };
461
- rounded: {
462
- true: string;
463
- false: string;
464
- };
465
- noPadding: {
466
- true: {
467
- base: string;
468
- };
469
- };
470
- noBorder: {
471
- true: string;
472
- };
473
- underline: {
474
- true: string;
475
- };
476
- leading: {
477
- true: string;
478
- };
479
- trailing: {
480
- true: string;
481
- };
482
- loading: {
483
- true: string;
484
- };
485
- highlight: {
486
- true: string;
487
- };
488
- type: {
489
- file: string;
490
- };
491
- }, {
492
- root: string;
493
- base: string;
494
- leading: string;
495
- leadingIcon: string;
496
- leadingAvatar: string;
497
- leadingAvatarSize: string;
498
- trailing: string;
499
- trailingIcon: string;
500
- tag: string;
501
- }, import("tailwind-variants").TVReturnType<{
502
- buttonGroup: {
503
- horizontal: {
504
- root: string;
505
- base: string;
506
- };
507
- vertical: {
508
- root: string;
509
- base: string;
510
- };
511
- };
512
- noSplit: {
513
- false: string;
514
- };
515
- size: {
516
- xs: {
517
- base: string;
518
- leading: string;
519
- trailing: string;
520
- leadingIcon: string;
521
- leadingAvatarSize: string;
522
- trailingIcon: string;
523
- };
524
- sm: {
525
- base: string;
526
- leading: string;
527
- trailing: string;
528
- leadingIcon: string;
529
- leadingAvatarSize: string;
530
- trailingIcon: string;
531
- };
532
- md: {
533
- base: string;
534
- leading: string;
535
- trailing: string;
536
- leadingIcon: string;
537
- leadingAvatarSize: string;
538
- trailingIcon: string;
539
- };
540
- lg: {
541
- base: string;
542
- leading: string;
543
- trailing: string;
544
- leadingIcon: string;
545
- leadingAvatarSize: string;
546
- trailingIcon: string;
547
- };
548
- };
549
- color: {
550
- default: string;
551
- danger: string;
552
- success: string;
553
- warning: string;
554
- primary: string;
555
- secondary: string;
556
- collab: string;
557
- ai: string;
558
- };
559
- tagColor: {
560
- default: {
561
- tag: string;
562
- };
563
- danger: {
564
- tag: string;
565
- };
566
- success: {
567
- tag: string;
568
- };
569
- warning: {
570
- tag: string;
571
- };
572
- primary: {
573
- tag: string;
574
- };
575
- secondary: {
576
- tag: string;
577
- };
578
- collab: {
579
- tag: string;
580
- };
581
- ai: {
582
- tag: string;
583
- };
584
- };
585
- rounded: {
586
- true: string;
587
- false: string;
588
- };
589
- noPadding: {
590
- true: {
591
- base: string;
592
- };
593
- };
594
- noBorder: {
595
- true: string;
596
- };
597
- underline: {
598
- true: string;
599
- };
600
- leading: {
601
- true: string;
602
- };
603
- trailing: {
604
- true: string;
605
- };
606
- loading: {
607
- true: string;
608
- };
609
- highlight: {
610
- true: string;
611
- };
612
- type: {
613
- file: string;
614
- };
615
- }, {
616
- root: string;
617
- base: string;
618
- leading: string;
619
- leadingIcon: string;
620
- leadingAvatar: string;
621
- leadingAvatarSize: string;
622
- trailing: string;
623
- trailingIcon: string;
624
- tag: string;
625
- }, undefined, unknown, unknown, undefined>>>;
626
- type InputVariants = VariantProps<typeof input>;
5
+ import type { ComponentConfig } from '../types/utils';
6
+ type Input = ComponentConfig<typeof theme, AppConfig, 'input'>;
627
7
  export interface InputProps extends UseComponentIconsProps {
628
8
  /**
629
9
  * The element or component this component should render as.
@@ -643,11 +23,11 @@ export interface InputProps extends UseComponentIconsProps {
643
23
  /**
644
24
  * @defaultValue 'primary'
645
25
  */
646
- color?: InputVariants['color'];
26
+ color?: Input['variants']['color'];
647
27
  /**
648
28
  * @defaultValue 'md'
649
29
  */
650
- size?: InputVariants['size'];
30
+ size?: Input['variants']['size'];
651
31
  /**
652
32
  * Removes padding from input
653
33
  * @defaultValue false
@@ -692,14 +72,14 @@ export interface InputProps extends UseComponentIconsProps {
692
72
  /**
693
73
  * @defaultValue 'primary'
694
74
  */
695
- tagColor?: InputVariants['tagColor'];
75
+ tagColor?: Input['variants']['tagColor'];
696
76
  /**
697
77
  * Highlight the ring color like a focus state
698
78
  * @defaultValue false
699
79
  */
700
80
  highlight?: boolean;
701
81
  class?: any;
702
- b24ui?: PartialString<typeof input.slots>;
82
+ b24ui?: Input['slots'];
703
83
  }
704
84
  export interface InputEmits {
705
85
  (e: 'update:modelValue', payload: string | number): void;
@@ -1,9 +1,5 @@
1
1
  <script>
2
- import _appConfig from "#build/app.config";
3
2
  import theme from "#build/b24ui/input-menu";
4
- import { tv } from "../utils/tv";
5
- const appConfigInputMenu = _appConfig;
6
- const inputMenu = tv({ extend: tv(theme), ...appConfigInputMenu.b24ui?.inputMenu || {} });
7
3
  </script>
8
4
 
9
5
  <script setup>
@@ -12,11 +8,13 @@ import { ComboboxRoot, ComboboxArrow, ComboboxAnchor, ComboboxInput, ComboboxTri
12
8
  import { defu } from "defu";
13
9
  import { isEqual } from "ohash/utils";
14
10
  import { reactivePick, createReusableTemplate } from "@vueuse/core";
11
+ import { useAppConfig } from "#imports";
15
12
  import { useButtonGroup } from "../composables/useButtonGroup";
16
13
  import { useComponentIcons } from "../composables/useComponentIcons";
17
14
  import { useFormField } from "../composables/useFormField";
18
15
  import { useLocale } from "../composables/useLocale";
19
16
  import { compare, get, isArrayOfArray } from "../utils";
17
+ import { tv } from "../utils/tv";
20
18
  import icons from "../dictionary/icons";
21
19
  import B24Avatar from "./Avatar.vue";
22
20
  import B24Chip from "./Chip.vue";
@@ -71,6 +69,7 @@ const emits = defineEmits(["update:open", "change", "blur", "focus", "create", "
71
69
  const slots = defineSlots();
72
70
  const searchTerm = defineModel("searchTerm", { type: String, ...{ default: "" } });
73
71
  const { t } = useLocale();
72
+ const appConfig = useAppConfig();
74
73
  const { contains } = useFilter({ sensitivity: "base" });
75
74
  const rootProps = useForwardPropsEmits(reactivePick(props, "as", "modelValue", "defaultValue", "open", "defaultOpen", "required", "multiple", "resetSearchTermOnBlur", "resetSearchTermOnSelect", "highlightOnHover", "ignoreFilter"), emits);
76
75
  const contentProps = toRef(() => defu(props.content, { side: "bottom", sideOffset: 8, collisionPadding: 8, position: "popper" }));
@@ -83,7 +82,7 @@ const isTag = computed(() => {
83
82
  return props.tag;
84
83
  });
85
84
  const [DefineCreateItemTemplate, ReuseCreateItemTemplate] = createReusableTemplate();
86
- const b24ui = computed(() => inputMenu({
85
+ const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.inputMenu || {} })({
87
86
  color: color.value,
88
87
  size: inputSize?.value,
89
88
  loading: props.loading,