@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,15 +1,13 @@
1
1
  <script>
2
- import _appConfig from "#build/app.config";
3
2
  import theme from "#build/b24ui/separator";
4
- import { tv } from "../utils/tv";
5
- const appConfigSeparator = _appConfig;
6
- const separator = tv({ extend: tv(theme), ...appConfigSeparator.b24ui?.separator || {} });
7
3
  </script>
8
4
 
9
5
  <script setup>
10
6
  import { computed } from "vue";
11
7
  import { Separator, useForwardProps } from "reka-ui";
12
8
  import { reactivePick } from "@vueuse/core";
9
+ import { useAppConfig } from "#imports";
10
+ import { tv } from "../utils/tv";
13
11
  import B24Avatar from "./Avatar.vue";
14
12
  const props = defineProps({
15
13
  as: { type: null, required: false },
@@ -21,12 +19,13 @@ const props = defineProps({
21
19
  type: { type: null, required: false },
22
20
  orientation: { type: null, required: false, default: "horizontal" },
23
21
  class: { type: null, required: false },
24
- b24ui: { type: Object, required: false },
22
+ b24ui: { type: null, required: false },
25
23
  decorative: { type: Boolean, required: false }
26
24
  });
27
25
  const slots = defineSlots();
26
+ const appConfig = useAppConfig();
28
27
  const rootProps = useForwardProps(reactivePick(props, "as", "decorative", "orientation"));
29
- const b24ui = computed(() => separator({
28
+ const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.separator || {} })({
30
29
  color: props.color,
31
30
  orientation: props.orientation,
32
31
  size: props.size,
@@ -1,333 +1,10 @@
1
- import type { VariantProps } from 'tailwind-variants';
1
+ import { Separator } from 'reka-ui';
2
2
  import type { SeparatorProps as _SeparatorProps } from 'reka-ui';
3
+ import type { AppConfig } from '@nuxt/schema';
4
+ import theme from '#build/b24ui/separator';
3
5
  import type { AvatarProps, IconComponent } from '../types';
4
- declare const separator: import("tailwind-variants").TVReturnType<{
5
- color: {
6
- default: {
7
- border: string;
8
- };
9
- danger: {
10
- border: string;
11
- };
12
- success: {
13
- border: string;
14
- };
15
- warning: {
16
- border: string;
17
- };
18
- primary: {
19
- border: string;
20
- };
21
- secondary: {
22
- border: string;
23
- };
24
- collab: {
25
- border: string;
26
- };
27
- ai: {
28
- border: string;
29
- };
30
- };
31
- orientation: {
32
- horizontal: {
33
- root: string;
34
- border: string;
35
- container: string;
36
- };
37
- vertical: {
38
- root: string;
39
- border: string;
40
- container: string;
41
- };
42
- };
43
- size: {
44
- xs: string;
45
- sm: string;
46
- md: string;
47
- lg: string;
48
- xl: string;
49
- };
50
- type: {
51
- solid: {
52
- border: string;
53
- };
54
- dashed: {
55
- border: string;
56
- };
57
- dotted: {
58
- border: string;
59
- };
60
- };
61
- }, {
62
- root: string;
63
- border: string;
64
- container: string;
65
- icon: string;
66
- avatar: string;
67
- avatarSize: string;
68
- label: string;
69
- }, undefined, {
70
- color: {
71
- default: {
72
- border: string;
73
- };
74
- danger: {
75
- border: string;
76
- };
77
- success: {
78
- border: string;
79
- };
80
- warning: {
81
- border: string;
82
- };
83
- primary: {
84
- border: string;
85
- };
86
- secondary: {
87
- border: string;
88
- };
89
- collab: {
90
- border: string;
91
- };
92
- ai: {
93
- border: string;
94
- };
95
- };
96
- orientation: {
97
- horizontal: {
98
- root: string;
99
- border: string;
100
- container: string;
101
- };
102
- vertical: {
103
- root: string;
104
- border: string;
105
- container: string;
106
- };
107
- };
108
- size: {
109
- xs: string;
110
- sm: string;
111
- md: string;
112
- lg: string;
113
- xl: string;
114
- };
115
- type: {
116
- solid: {
117
- border: string;
118
- };
119
- dashed: {
120
- border: string;
121
- };
122
- dotted: {
123
- border: string;
124
- };
125
- };
126
- }, {
127
- root: string;
128
- border: string;
129
- container: string;
130
- icon: string;
131
- avatar: string;
132
- avatarSize: string;
133
- label: string;
134
- }, import("tailwind-variants").TVReturnType<{
135
- color: {
136
- default: {
137
- border: string;
138
- };
139
- danger: {
140
- border: string;
141
- };
142
- success: {
143
- border: string;
144
- };
145
- warning: {
146
- border: string;
147
- };
148
- primary: {
149
- border: string;
150
- };
151
- secondary: {
152
- border: string;
153
- };
154
- collab: {
155
- border: string;
156
- };
157
- ai: {
158
- border: string;
159
- };
160
- };
161
- orientation: {
162
- horizontal: {
163
- root: string;
164
- border: string;
165
- container: string;
166
- };
167
- vertical: {
168
- root: string;
169
- border: string;
170
- container: string;
171
- };
172
- };
173
- size: {
174
- xs: string;
175
- sm: string;
176
- md: string;
177
- lg: string;
178
- xl: string;
179
- };
180
- type: {
181
- solid: {
182
- border: string;
183
- };
184
- dashed: {
185
- border: string;
186
- };
187
- dotted: {
188
- border: string;
189
- };
190
- };
191
- }, {
192
- root: string;
193
- border: string;
194
- container: string;
195
- icon: string;
196
- avatar: string;
197
- avatarSize: string;
198
- label: string;
199
- }, undefined, {
200
- color: {
201
- default: {
202
- border: string;
203
- };
204
- danger: {
205
- border: string;
206
- };
207
- success: {
208
- border: string;
209
- };
210
- warning: {
211
- border: string;
212
- };
213
- primary: {
214
- border: string;
215
- };
216
- secondary: {
217
- border: string;
218
- };
219
- collab: {
220
- border: string;
221
- };
222
- ai: {
223
- border: string;
224
- };
225
- };
226
- orientation: {
227
- horizontal: {
228
- root: string;
229
- border: string;
230
- container: string;
231
- };
232
- vertical: {
233
- root: string;
234
- border: string;
235
- container: string;
236
- };
237
- };
238
- size: {
239
- xs: string;
240
- sm: string;
241
- md: string;
242
- lg: string;
243
- xl: string;
244
- };
245
- type: {
246
- solid: {
247
- border: string;
248
- };
249
- dashed: {
250
- border: string;
251
- };
252
- dotted: {
253
- border: string;
254
- };
255
- };
256
- }, {
257
- root: string;
258
- border: string;
259
- container: string;
260
- icon: string;
261
- avatar: string;
262
- avatarSize: string;
263
- label: string;
264
- }, import("tailwind-variants").TVReturnType<{
265
- color: {
266
- default: {
267
- border: string;
268
- };
269
- danger: {
270
- border: string;
271
- };
272
- success: {
273
- border: string;
274
- };
275
- warning: {
276
- border: string;
277
- };
278
- primary: {
279
- border: string;
280
- };
281
- secondary: {
282
- border: string;
283
- };
284
- collab: {
285
- border: string;
286
- };
287
- ai: {
288
- border: string;
289
- };
290
- };
291
- orientation: {
292
- horizontal: {
293
- root: string;
294
- border: string;
295
- container: string;
296
- };
297
- vertical: {
298
- root: string;
299
- border: string;
300
- container: string;
301
- };
302
- };
303
- size: {
304
- xs: string;
305
- sm: string;
306
- md: string;
307
- lg: string;
308
- xl: string;
309
- };
310
- type: {
311
- solid: {
312
- border: string;
313
- };
314
- dashed: {
315
- border: string;
316
- };
317
- dotted: {
318
- border: string;
319
- };
320
- };
321
- }, {
322
- root: string;
323
- border: string;
324
- container: string;
325
- icon: string;
326
- avatar: string;
327
- avatarSize: string;
328
- label: string;
329
- }, undefined, unknown, unknown, undefined>>>;
330
- type SeparatorVariants = VariantProps<typeof separator>;
6
+ import type { ComponentConfig } from '../types/utils';
7
+ type Separator = ComponentConfig<typeof theme, AppConfig, 'separator'>;
331
8
  export interface SeparatorProps extends Pick<_SeparatorProps, 'decorative'> {
332
9
  /**
333
10
  * The element or component this component should render as.
@@ -348,22 +25,22 @@ export interface SeparatorProps extends Pick<_SeparatorProps, 'decorative'> {
348
25
  /**
349
26
  * @defaultValue 'default'
350
27
  */
351
- color?: SeparatorVariants['color'];
28
+ color?: Separator['variants']['color'];
352
29
  /**
353
30
  * @defaultValue 'xs'
354
31
  */
355
- size?: SeparatorVariants['size'];
32
+ size?: Separator['variants']['size'];
356
33
  /**
357
34
  * @defaultValue 'solid'
358
35
  */
359
- type?: SeparatorVariants['type'];
36
+ type?: Separator['variants']['type'];
360
37
  /**
361
38
  * The orientation of the separator.
362
39
  * @defaultValue 'horizontal'
363
40
  */
364
41
  orientation?: _SeparatorProps['orientation'];
365
42
  class?: any;
366
- b24ui?: Partial<typeof separator.slots>;
43
+ b24ui?: Separator['slots'];
367
44
  }
368
45
  export interface SeparatorSlots {
369
46
  default(props?: {}): any;
@@ -1,20 +1,20 @@
1
1
  <script>
2
- import _appConfig from "#build/app.config";
3
2
  import theme from "#build/b24ui/sidebar";
4
- import { tv } from "../utils/tv";
5
- const appConfigSidebar = _appConfig;
6
- const sidebar = tv({ extend: tv(theme), ...appConfigSidebar.b24ui?.sidebar || {} });
7
3
  </script>
8
4
 
9
5
  <script setup>
6
+ import { computed } from "vue";
10
7
  import { Primitive } from "reka-ui";
8
+ import { useAppConfig } from "#imports";
9
+ import { tv } from "../utils/tv";
11
10
  const props = defineProps({
12
11
  as: { type: null, required: false, default: "div" },
13
12
  class: { type: null, required: false },
14
- b24ui: { type: Object, required: false }
13
+ b24ui: { type: null, required: false }
15
14
  });
16
15
  defineSlots();
17
- const b24ui = sidebar();
16
+ const appConfig = useAppConfig();
17
+ const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.sidebar || {} })());
18
18
  </script>
19
19
 
20
20
  <template>
@@ -1,62 +1,7 @@
1
- declare const sidebar: import("tailwind-variants").TVReturnType<{
2
- [key: string]: {
3
- [key: string]: import("tailwind-variants").ClassValue | {
4
- root?: import("tailwind-variants").ClassValue;
5
- };
6
- };
7
- } | {
8
- [x: string]: {
9
- [x: string]: import("tailwind-variants").ClassValue | {
10
- root?: import("tailwind-variants").ClassValue;
11
- };
12
- };
13
- } | {
14
- [x: string]: {
15
- [x: string]: import("tailwind-variants").ClassValue | {
16
- root?: import("tailwind-variants").ClassValue;
17
- };
18
- };
19
- } | {}, {
20
- root: string;
21
- }, undefined, {
22
- [key: string]: {
23
- [key: string]: import("tailwind-variants").ClassValue | {
24
- root?: import("tailwind-variants").ClassValue;
25
- };
26
- };
27
- } | {
28
- [x: string]: {
29
- [x: string]: import("tailwind-variants").ClassValue | {
30
- root?: import("tailwind-variants").ClassValue;
31
- };
32
- };
33
- } | {}, {
34
- root: string;
35
- }, import("tailwind-variants").TVReturnType<{
36
- [key: string]: {
37
- [key: string]: import("tailwind-variants").ClassValue | {
38
- root?: import("tailwind-variants").ClassValue;
39
- };
40
- };
41
- } | {
42
- [x: string]: {
43
- [x: string]: import("tailwind-variants").ClassValue | {
44
- root?: import("tailwind-variants").ClassValue;
45
- };
46
- };
47
- } | {}, {
48
- root: string;
49
- }, undefined, {
50
- [key: string]: {
51
- [key: string]: import("tailwind-variants").ClassValue | {
52
- root?: import("tailwind-variants").ClassValue;
53
- };
54
- };
55
- } | {}, {
56
- root: string;
57
- }, import("tailwind-variants").TVReturnType<unknown, {
58
- root: string;
59
- }, undefined, unknown, unknown, undefined>>>;
1
+ import type { AppConfig } from '@nuxt/schema';
2
+ import theme from '#build/b24ui/sidebar';
3
+ import type { ComponentConfig } from '../types/utils';
4
+ type Sidebar = ComponentConfig<typeof theme, AppConfig, 'sidebar'>;
60
5
  export interface SidebarProps {
61
6
  /**
62
7
  * The element or component this component should render as.
@@ -64,7 +9,7 @@ export interface SidebarProps {
64
9
  */
65
10
  as?: any;
66
11
  class?: any;
67
- b24ui?: Partial<typeof sidebar.slots>;
12
+ b24ui?: Sidebar['slots'];
68
13
  }
69
14
  export interface SidebarSlots {
70
15
  default(props?: {}): any;
@@ -1,22 +1,21 @@
1
1
  <script>
2
- import _appConfig from "#build/app.config";
3
2
  import theme from "#build/b24ui/sidebar-body";
4
- import { tv } from "../utils/tv";
5
- const appConfigSidebarBody = _appConfig;
6
- const sidebarBody = tv({ extend: tv(theme), ...appConfigSidebarBody.b24ui?.sidebarBody || {} });
7
3
  </script>
8
4
 
9
5
  <script setup>
10
6
  import { computed } from "vue";
11
7
  import { Primitive } from "reka-ui";
8
+ import { useAppConfig } from "#imports";
9
+ import { tv } from "../utils/tv";
12
10
  const props = defineProps({
13
11
  as: { type: null, required: false, default: "div" },
14
12
  scrollbarThin: { type: Boolean, required: false, default: true },
15
13
  class: { type: null, required: false },
16
- b24ui: { type: Object, required: false }
14
+ b24ui: { type: null, required: false }
17
15
  });
18
16
  defineSlots();
19
- const b24ui = computed(() => sidebarBody({
17
+ const appConfig = useAppConfig();
18
+ const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.sidebarBody || {} })({
20
19
  scrollbarThin: Boolean(props.scrollbarThin)
21
20
  }));
22
21
  </script>
@@ -1,44 +1,7 @@
1
- declare const sidebarBody: import("tailwind-variants").TVReturnType<{
2
- scrollbarThin: {
3
- true: {
4
- root: string;
5
- };
6
- };
7
- }, {
8
- root: string;
9
- }, undefined, {
10
- scrollbarThin: {
11
- true: {
12
- root: string;
13
- };
14
- };
15
- }, {
16
- root: string;
17
- }, import("tailwind-variants").TVReturnType<{
18
- scrollbarThin: {
19
- true: {
20
- root: string;
21
- };
22
- };
23
- }, {
24
- root: string;
25
- }, undefined, {
26
- scrollbarThin: {
27
- true: {
28
- root: string;
29
- };
30
- };
31
- }, {
32
- root: string;
33
- }, import("tailwind-variants").TVReturnType<{
34
- scrollbarThin: {
35
- true: {
36
- root: string;
37
- };
38
- };
39
- }, {
40
- root: string;
41
- }, undefined, unknown, unknown, undefined>>>;
1
+ import type { AppConfig } from '@nuxt/schema';
2
+ import theme from '#build/b24ui/sidebar-body';
3
+ import type { ComponentConfig } from '../types/utils';
4
+ type SidebarBody = ComponentConfig<typeof theme, AppConfig, 'sidebarBody'>;
42
5
  export interface SidebarBodyProps {
43
6
  /**
44
7
  * The element or component this component should render as.
@@ -50,7 +13,7 @@ export interface SidebarBodyProps {
50
13
  */
51
14
  scrollbarThin?: boolean;
52
15
  class?: any;
53
- b24ui?: Partial<typeof sidebarBody.slots>;
16
+ b24ui?: SidebarBody['slots'];
54
17
  }
55
18
  export interface SidebarBodySlots {
56
19
  default(props?: {}): any;
@@ -1,20 +1,20 @@
1
1
  <script>
2
- import _appConfig from "#build/app.config";
3
2
  import theme from "#build/b24ui/sidebar-footer";
4
- import { tv } from "../utils/tv";
5
- const appConfigSidebarFooter = _appConfig;
6
- const sidebarFooter = tv({ extend: tv(theme), ...appConfigSidebarFooter.b24ui?.sidebarFooter || {} });
7
3
  </script>
8
4
 
9
5
  <script setup>
6
+ import { computed } from "vue";
10
7
  import { Primitive } from "reka-ui";
8
+ import { useAppConfig } from "#imports";
9
+ import { tv } from "../utils/tv";
11
10
  const props = defineProps({
12
11
  as: { type: null, required: false, default: "div" },
13
12
  class: { type: null, required: false },
14
- b24ui: { type: Object, required: false }
13
+ b24ui: { type: null, required: false }
15
14
  });
16
15
  defineSlots();
17
- const b24ui = sidebarFooter();
16
+ const appConfig = useAppConfig();
17
+ const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.sidebarFooter || {} })());
18
18
  </script>
19
19
 
20
20
  <template>
@@ -1,62 +1,7 @@
1
- declare const sidebarFooter: import("tailwind-variants").TVReturnType<{
2
- [key: string]: {
3
- [key: string]: import("tailwind-variants").ClassValue | {
4
- root?: import("tailwind-variants").ClassValue;
5
- };
6
- };
7
- } | {
8
- [x: string]: {
9
- [x: string]: import("tailwind-variants").ClassValue | {
10
- root?: import("tailwind-variants").ClassValue;
11
- };
12
- };
13
- } | {
14
- [x: string]: {
15
- [x: string]: import("tailwind-variants").ClassValue | {
16
- root?: import("tailwind-variants").ClassValue;
17
- };
18
- };
19
- } | {}, {
20
- root: string;
21
- }, undefined, {
22
- [key: string]: {
23
- [key: string]: import("tailwind-variants").ClassValue | {
24
- root?: import("tailwind-variants").ClassValue;
25
- };
26
- };
27
- } | {
28
- [x: string]: {
29
- [x: string]: import("tailwind-variants").ClassValue | {
30
- root?: import("tailwind-variants").ClassValue;
31
- };
32
- };
33
- } | {}, {
34
- root: string;
35
- }, import("tailwind-variants").TVReturnType<{
36
- [key: string]: {
37
- [key: string]: import("tailwind-variants").ClassValue | {
38
- root?: import("tailwind-variants").ClassValue;
39
- };
40
- };
41
- } | {
42
- [x: string]: {
43
- [x: string]: import("tailwind-variants").ClassValue | {
44
- root?: import("tailwind-variants").ClassValue;
45
- };
46
- };
47
- } | {}, {
48
- root: string;
49
- }, undefined, {
50
- [key: string]: {
51
- [key: string]: import("tailwind-variants").ClassValue | {
52
- root?: import("tailwind-variants").ClassValue;
53
- };
54
- };
55
- } | {}, {
56
- root: string;
57
- }, import("tailwind-variants").TVReturnType<unknown, {
58
- root: string;
59
- }, undefined, unknown, unknown, undefined>>>;
1
+ import type { AppConfig } from '@nuxt/schema';
2
+ import theme from '#build/b24ui/sidebar-footer';
3
+ import type { ComponentConfig } from '../types/utils';
4
+ type SidebarFooter = ComponentConfig<typeof theme, AppConfig, 'sidebarFooter'>;
60
5
  export interface SidebarFooterProps {
61
6
  /**
62
7
  * The element or component this component should render as.
@@ -64,7 +9,7 @@ export interface SidebarFooterProps {
64
9
  */
65
10
  as?: any;
66
11
  class?: any;
67
- b24ui?: Partial<typeof sidebarFooter.slots>;
12
+ b24ui?: SidebarFooter['slots'];
68
13
  }
69
14
  export interface SidebarFooterSlots {
70
15
  default(props?: {}): any;