@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,17 +1,15 @@
1
1
  <script>
2
- import _appConfig from "#build/app.config";
3
2
  import theme from "#build/b24ui/input-number";
4
- import { tv } from "../utils/tv";
5
- const appConfigInputNumber = _appConfig;
6
- const inputNumber = tv({ extend: tv(theme), ...appConfigInputNumber.b24ui?.inputNumber || {} });
7
3
  </script>
8
4
 
9
5
  <script setup>
10
6
  import { onMounted, ref, computed } from "vue";
11
7
  import { NumberFieldRoot, NumberFieldInput, NumberFieldDecrement, NumberFieldIncrement, useForwardPropsEmits } from "reka-ui";
12
8
  import { reactivePick } from "@vueuse/core";
9
+ import { useAppConfig } from "#imports";
13
10
  import { useFormField } from "../composables/useFormField";
14
11
  import { useLocale } from "../composables/useLocale";
12
+ import { tv } from "../utils/tv";
15
13
  import icons from "../dictionary/icons";
16
14
  import B24Button from "./Button.vue";
17
15
  defineOptions({ inheritAttrs: false });
@@ -52,6 +50,7 @@ const props = defineProps({
52
50
  });
53
51
  const emits = defineEmits(["update:modelValue", "blur", "change"]);
54
52
  defineSlots();
53
+ const appConfig = useAppConfig();
55
54
  const rootProps = useForwardPropsEmits(reactivePick(props, "as", "modelValue", "defaultValue", "min", "max", "step", "stepSnapping", "formatOptions", "disableWheelChange"), emits);
56
55
  const { emitFormBlur, emitFormFocus, emitFormChange, emitFormInput, id, color, size, name, highlight, disabled, ariaAttrs } = useFormField(props);
57
56
  const { t, code: codeLocale } = useLocale();
@@ -59,7 +58,7 @@ const locale = computed(() => props.locale || codeLocale.value);
59
58
  const isTag = computed(() => {
60
59
  return props.tag;
61
60
  });
62
- const b24ui = computed(() => inputNumber({
61
+ const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.inputNumber || {} })({
63
62
  color: color.value,
64
63
  size: size.value,
65
64
  tagColor: props.tagColor,
@@ -1,429 +1,9 @@
1
- import type { VariantProps } from 'tailwind-variants';
2
1
  import type { NumberFieldRootProps } from 'reka-ui';
2
+ import type { AppConfig } from '@nuxt/schema';
3
+ import theme from '#build/b24ui/input-number';
3
4
  import type { ButtonProps, IconComponent } from '../types';
4
- import type { PartialString } from '../types/utils';
5
- declare const inputNumber: import("tailwind-variants").TVReturnType<{
6
- size: {
7
- xs: string;
8
- sm: string;
9
- md: string;
10
- lg: string;
11
- };
12
- color: {
13
- default: string;
14
- danger: string;
15
- success: string;
16
- warning: string;
17
- primary: string;
18
- secondary: string;
19
- collab: string;
20
- ai: string;
21
- };
22
- tagColor: {
23
- default: {
24
- tag: string;
25
- };
26
- danger: {
27
- tag: string;
28
- };
29
- success: {
30
- tag: string;
31
- };
32
- warning: {
33
- tag: string;
34
- };
35
- primary: {
36
- tag: string;
37
- };
38
- secondary: {
39
- tag: string;
40
- };
41
- collab: {
42
- tag: string;
43
- };
44
- ai: {
45
- tag: string;
46
- };
47
- };
48
- rounded: {
49
- true: string;
50
- false: string;
51
- };
52
- noPadding: {
53
- true: {
54
- base: string;
55
- };
56
- };
57
- noBorder: {
58
- true: string;
59
- };
60
- underline: {
61
- true: string;
62
- };
63
- disabled: {
64
- true: {
65
- increment: string;
66
- decrement: string;
67
- };
68
- };
69
- orientation: {
70
- horizontal: {
71
- base: string;
72
- increment: string;
73
- decrement: string;
74
- };
75
- vertical: {
76
- increment: string;
77
- decrement: string;
78
- };
79
- };
80
- highlight: {
81
- true: string;
82
- };
83
- }, {
84
- root: string;
85
- base: string;
86
- increment: string;
87
- decrement: string;
88
- tag: string;
89
- }, undefined, {
90
- size: {
91
- xs: string;
92
- sm: string;
93
- md: string;
94
- lg: string;
95
- };
96
- color: {
97
- default: string;
98
- danger: string;
99
- success: string;
100
- warning: string;
101
- primary: string;
102
- secondary: string;
103
- collab: string;
104
- ai: string;
105
- };
106
- tagColor: {
107
- default: {
108
- tag: string;
109
- };
110
- danger: {
111
- tag: string;
112
- };
113
- success: {
114
- tag: string;
115
- };
116
- warning: {
117
- tag: string;
118
- };
119
- primary: {
120
- tag: string;
121
- };
122
- secondary: {
123
- tag: string;
124
- };
125
- collab: {
126
- tag: string;
127
- };
128
- ai: {
129
- tag: string;
130
- };
131
- };
132
- rounded: {
133
- true: string;
134
- false: string;
135
- };
136
- noPadding: {
137
- true: {
138
- base: string;
139
- };
140
- };
141
- noBorder: {
142
- true: string;
143
- };
144
- underline: {
145
- true: string;
146
- };
147
- disabled: {
148
- true: {
149
- increment: string;
150
- decrement: string;
151
- };
152
- };
153
- orientation: {
154
- horizontal: {
155
- base: string;
156
- increment: string;
157
- decrement: string;
158
- };
159
- vertical: {
160
- increment: string;
161
- decrement: string;
162
- };
163
- };
164
- highlight: {
165
- true: string;
166
- };
167
- }, {
168
- root: string;
169
- base: string;
170
- increment: string;
171
- decrement: string;
172
- tag: string;
173
- }, import("tailwind-variants").TVReturnType<{
174
- size: {
175
- xs: string;
176
- sm: string;
177
- md: string;
178
- lg: string;
179
- };
180
- color: {
181
- default: string;
182
- danger: string;
183
- success: string;
184
- warning: string;
185
- primary: string;
186
- secondary: string;
187
- collab: string;
188
- ai: string;
189
- };
190
- tagColor: {
191
- default: {
192
- tag: string;
193
- };
194
- danger: {
195
- tag: string;
196
- };
197
- success: {
198
- tag: string;
199
- };
200
- warning: {
201
- tag: string;
202
- };
203
- primary: {
204
- tag: string;
205
- };
206
- secondary: {
207
- tag: string;
208
- };
209
- collab: {
210
- tag: string;
211
- };
212
- ai: {
213
- tag: string;
214
- };
215
- };
216
- rounded: {
217
- true: string;
218
- false: string;
219
- };
220
- noPadding: {
221
- true: {
222
- base: string;
223
- };
224
- };
225
- noBorder: {
226
- true: string;
227
- };
228
- underline: {
229
- true: string;
230
- };
231
- disabled: {
232
- true: {
233
- increment: string;
234
- decrement: string;
235
- };
236
- };
237
- orientation: {
238
- horizontal: {
239
- base: string;
240
- increment: string;
241
- decrement: string;
242
- };
243
- vertical: {
244
- increment: string;
245
- decrement: string;
246
- };
247
- };
248
- highlight: {
249
- true: string;
250
- };
251
- }, {
252
- root: string;
253
- base: string;
254
- increment: string;
255
- decrement: string;
256
- tag: string;
257
- }, undefined, {
258
- size: {
259
- xs: string;
260
- sm: string;
261
- md: string;
262
- lg: string;
263
- };
264
- color: {
265
- default: string;
266
- danger: string;
267
- success: string;
268
- warning: string;
269
- primary: string;
270
- secondary: string;
271
- collab: string;
272
- ai: string;
273
- };
274
- tagColor: {
275
- default: {
276
- tag: string;
277
- };
278
- danger: {
279
- tag: string;
280
- };
281
- success: {
282
- tag: string;
283
- };
284
- warning: {
285
- tag: string;
286
- };
287
- primary: {
288
- tag: string;
289
- };
290
- secondary: {
291
- tag: string;
292
- };
293
- collab: {
294
- tag: string;
295
- };
296
- ai: {
297
- tag: string;
298
- };
299
- };
300
- rounded: {
301
- true: string;
302
- false: string;
303
- };
304
- noPadding: {
305
- true: {
306
- base: string;
307
- };
308
- };
309
- noBorder: {
310
- true: string;
311
- };
312
- underline: {
313
- true: string;
314
- };
315
- disabled: {
316
- true: {
317
- increment: string;
318
- decrement: string;
319
- };
320
- };
321
- orientation: {
322
- horizontal: {
323
- base: string;
324
- increment: string;
325
- decrement: string;
326
- };
327
- vertical: {
328
- increment: string;
329
- decrement: string;
330
- };
331
- };
332
- highlight: {
333
- true: string;
334
- };
335
- }, {
336
- root: string;
337
- base: string;
338
- increment: string;
339
- decrement: string;
340
- tag: string;
341
- }, import("tailwind-variants").TVReturnType<{
342
- size: {
343
- xs: string;
344
- sm: string;
345
- md: string;
346
- lg: string;
347
- };
348
- color: {
349
- default: string;
350
- danger: string;
351
- success: string;
352
- warning: string;
353
- primary: string;
354
- secondary: string;
355
- collab: string;
356
- ai: string;
357
- };
358
- tagColor: {
359
- default: {
360
- tag: string;
361
- };
362
- danger: {
363
- tag: string;
364
- };
365
- success: {
366
- tag: string;
367
- };
368
- warning: {
369
- tag: string;
370
- };
371
- primary: {
372
- tag: string;
373
- };
374
- secondary: {
375
- tag: string;
376
- };
377
- collab: {
378
- tag: string;
379
- };
380
- ai: {
381
- tag: string;
382
- };
383
- };
384
- rounded: {
385
- true: string;
386
- false: string;
387
- };
388
- noPadding: {
389
- true: {
390
- base: string;
391
- };
392
- };
393
- noBorder: {
394
- true: string;
395
- };
396
- underline: {
397
- true: string;
398
- };
399
- disabled: {
400
- true: {
401
- increment: string;
402
- decrement: string;
403
- };
404
- };
405
- orientation: {
406
- horizontal: {
407
- base: string;
408
- increment: string;
409
- decrement: string;
410
- };
411
- vertical: {
412
- increment: string;
413
- decrement: string;
414
- };
415
- };
416
- highlight: {
417
- true: string;
418
- };
419
- }, {
420
- root: string;
421
- base: string;
422
- increment: string;
423
- decrement: string;
424
- tag: string;
425
- }, undefined, unknown, unknown, undefined>>>;
426
- type InputNumberVariants = VariantProps<typeof inputNumber>;
5
+ import type { ComponentConfig } from '../types/utils';
6
+ type InputNumber = ComponentConfig<typeof theme, AppConfig, 'inputNumber'>;
427
7
  export interface InputNumberProps extends Pick<NumberFieldRootProps, 'modelValue' | 'defaultValue' | 'min' | 'max' | 'stepSnapping' | 'step' | 'disabled' | 'required' | 'id' | 'name' | 'formatOptions' | 'disableWheelChange'> {
428
8
  /**
429
9
  * The element or component this component should render as.
@@ -437,11 +17,11 @@ export interface InputNumberProps extends Pick<NumberFieldRootProps, 'modelValue
437
17
  /**
438
18
  * @defaultValue 'primary'
439
19
  */
440
- color?: InputNumberVariants['color'];
20
+ color?: InputNumber['variants']['color'];
441
21
  /**
442
22
  * @defaultValue 'md'
443
23
  */
444
- size?: InputNumberVariants['size'];
24
+ size?: InputNumber['variants']['size'];
445
25
  /**
446
26
  * Removes padding from input
447
27
  * @defaultValue false
@@ -466,7 +46,7 @@ export interface InputNumberProps extends Pick<NumberFieldRootProps, 'modelValue
466
46
  /**
467
47
  * @defaultValue 'primary'
468
48
  */
469
- tagColor?: InputNumberVariants['tagColor'];
49
+ tagColor?: InputNumber['variants']['tagColor'];
470
50
  /**
471
51
  * Highlight the ring color like a focus state
472
52
  * @defaultValue false
@@ -513,7 +93,7 @@ export interface InputNumberProps extends Pick<NumberFieldRootProps, 'modelValue
513
93
  */
514
94
  locale?: string;
515
95
  class?: any;
516
- b24ui?: PartialString<typeof inputNumber.slots>;
96
+ b24ui?: InputNumber['slots'];
517
97
  }
518
98
  export interface InputNumberEmits {
519
99
  (e: 'update:modelValue', payload: number): void;
@@ -629,9 +209,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
629
209
  };
630
210
  }) | null>;
631
211
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {
632
- size: "md" | "xs" | "sm" | "lg";
212
+ size: InputNumber["variants"]["size"];
633
213
  orientation: "vertical" | "horizontal";
634
- color: "default" | "danger" | "success" | "warning" | "primary" | "secondary" | "collab" | "ai";
214
+ color: InputNumber["variants"]["color"];
635
215
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, Readonly<InputNumberSlots> & InputNumberSlots>;
636
216
  export default _default;
637
217
  type __VLS_WithDefaults<P, D> = {
@@ -1,14 +1,13 @@
1
1
  <script>
2
- import _appConfig from "#build/app.config";
3
2
  import theme from "#build/b24ui/kbd";
4
- import { tv } from "../utils/tv";
5
- const appConfigKbd = _appConfig;
6
- const kbd = tv({ extend: tv(theme), ...appConfigKbd.b24ui?.kbd || {} });
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";
11
9
  import { useKbd } from "../composables/useKbd";
10
+ import { tv } from "../utils/tv";
12
11
  const props = defineProps({
13
12
  as: { type: null, required: false, default: "kbd" },
14
13
  value: { type: null, required: false },
@@ -18,10 +17,12 @@ const props = defineProps({
18
17
  });
19
18
  defineSlots();
20
19
  const { getKbdKey } = useKbd();
20
+ const appConfig = useAppConfig();
21
+ const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.kbd || {} }));
21
22
  </script>
22
23
 
23
24
  <template>
24
- <Primitive :as="as" :class="kbd({ depth, size, class: props.class })">
25
+ <Primitive :as="as" :class="b24ui({ depth, size, class: props.class })">
25
26
  <slot>
26
27
  {{ getKbdKey(value) }}
27
28
  </slot>
@@ -1,62 +1,8 @@
1
- import type { VariantProps } from 'tailwind-variants';
1
+ import type { AppConfig } from '@nuxt/schema';
2
+ import theme from '#build/b24ui/kbd';
2
3
  import type { KbdKey } from '../composables/useKbd';
3
- declare const kbd: import("tailwind-variants").TVReturnType<{
4
- depth: {
5
- light: string;
6
- normal: string;
7
- dark: string;
8
- };
9
- size: {
10
- sm: string;
11
- md: string;
12
- lg: string;
13
- };
14
- }, undefined, string, {
15
- depth: {
16
- light: string;
17
- normal: string;
18
- dark: string;
19
- };
20
- size: {
21
- sm: string;
22
- md: string;
23
- lg: string;
24
- };
25
- }, undefined, import("tailwind-variants").TVReturnType<{
26
- depth: {
27
- light: string;
28
- normal: string;
29
- dark: string;
30
- };
31
- size: {
32
- sm: string;
33
- md: string;
34
- lg: string;
35
- };
36
- }, undefined, string, {
37
- depth: {
38
- light: string;
39
- normal: string;
40
- dark: string;
41
- };
42
- size: {
43
- sm: string;
44
- md: string;
45
- lg: string;
46
- };
47
- }, undefined, import("tailwind-variants").TVReturnType<{
48
- depth: {
49
- light: string;
50
- normal: string;
51
- dark: string;
52
- };
53
- size: {
54
- sm: string;
55
- md: string;
56
- lg: string;
57
- };
58
- }, undefined, string, unknown, unknown, undefined>>>;
59
- type KbdVariants = VariantProps<typeof kbd>;
4
+ import type { ComponentConfig } from '../types/utils';
5
+ type Kbd = ComponentConfig<typeof theme, AppConfig, 'kbd'>;
60
6
  export interface KbdProps {
61
7
  /**
62
8
  * The element or component this component should render as.
@@ -67,11 +13,11 @@ export interface KbdProps {
67
13
  /**
68
14
  * @defaultValue 'light'
69
15
  */
70
- depth?: KbdVariants['depth'];
16
+ depth?: Kbd['variants']['depth'];
71
17
  /**
72
18
  * @defaultValue 'md'
73
19
  */
74
- size?: KbdVariants['size'];
20
+ size?: Kbd['variants']['size'];
75
21
  class?: any;
76
22
  }
77
23
  export interface KbdSlots {
@@ -1,17 +1,15 @@
1
1
  <script>
2
- import _appConfig from "#build/app.config";
3
2
  import theme from "#build/b24ui/link";
4
- import { tv } from "../utils/tv";
5
- const appConfigLink = _appConfig;
6
- const link = tv({ extend: tv(theme), ...appConfigLink.b24ui?.link || {} });
7
3
  </script>
8
4
 
9
5
  <script setup>
10
6
  import { computed } from "vue";
7
+ import { defu } from "defu";
11
8
  import { isEqual, diff } from "ohash/utils";
12
9
  import { useForwardProps } from "reka-ui";
13
10
  import { reactiveOmit } from "@vueuse/core";
14
- import { useRoute } from "#imports";
11
+ import { useRoute, useAppConfig } from "#imports";
12
+ import { tv } from "../utils/tv";
15
13
  import B24LinkBase from "./LinkBase.vue";
16
14
  defineOptions({ inheritAttrs: false });
17
15
  const props = defineProps({
@@ -45,15 +43,18 @@ const props = defineProps({
45
43
  });
46
44
  defineSlots();
47
45
  const route = useRoute();
46
+ const appConfig = useAppConfig();
48
47
  const nuxtLinkProps = useForwardProps(reactiveOmit(props, "as", "type", "disabled", "active", "exact", "exactQuery", "exactHash", "activeClass", "inactiveClass", "raw", "class"));
49
48
  const b24ui = computed(() => tv({
50
- extend: link,
51
- variants: {
52
- active: {
53
- true: props.activeClass,
54
- false: props.inactiveClass
49
+ extend: tv(theme),
50
+ ...defu({
51
+ variants: {
52
+ active: {
53
+ true: props.activeClass,
54
+ false: props.inactiveClass
55
+ }
55
56
  }
56
- }
57
+ }, appConfig.b24ui?.link || {})
57
58
  }));
58
59
  function isPartiallyEqual(item1, item2) {
59
60
  const diffedKeys = diff(item1, item2).reduce((filtered, q) => {
@@ -1,16 +1,14 @@
1
1
  <script>
2
- import _appConfig from "#build/app.config";
3
2
  import theme from "#build/b24ui/modal";
4
- import { tv } from "../utils/tv";
5
- const appConfigModal = _appConfig;
6
- const modal = tv({ extend: tv(theme), ...appConfigModal.b24ui?.modal || {} });
7
3
  </script>
8
4
 
9
5
  <script setup>
10
6
  import { computed, toRef } from "vue";
11
7
  import { DialogRoot, DialogTrigger, DialogPortal, DialogOverlay, DialogContent, DialogTitle, DialogDescription, DialogClose, VisuallyHidden, useForwardPropsEmits } from "reka-ui";
12
8
  import { reactivePick } from "@vueuse/core";
9
+ import { useAppConfig } from "#imports";
13
10
  import { useLocale } from "../composables/useLocale";
11
+ import { tv } from "../utils/tv";
14
12
  import icons from "../dictionary/icons";
15
13
  import B24Button from "./Button.vue";
16
14
  const props = defineProps({
@@ -27,7 +25,7 @@ const props = defineProps({
27
25
  dismissible: { type: Boolean, required: false, default: true },
28
26
  scrollbarThin: { type: Boolean, required: false, default: true },
29
27
  class: { type: null, required: false },
30
- b24ui: { type: Object, required: false },
28
+ b24ui: { type: null, required: false },
31
29
  open: { type: Boolean, required: false },
32
30
  defaultOpen: { type: Boolean, required: false },
33
31
  modal: { type: Boolean, required: false, default: true }
@@ -35,6 +33,7 @@ const props = defineProps({
35
33
  const emits = defineEmits(["after:leave", "update:open"]);
36
34
  const slots = defineSlots();
37
35
  const { t } = useLocale();
36
+ const appConfig = useAppConfig();
38
37
  const rootProps = useForwardPropsEmits(reactivePick(props, "open", "defaultOpen", "modal"), emits);
39
38
  const contentProps = toRef(() => props.content);
40
39
  const contentEvents = computed(() => {
@@ -51,7 +50,7 @@ const contentEvents = computed(() => {
51
50
  }
52
51
  return events;
53
52
  });
54
- const b24ui = computed(() => modal({
53
+ const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.modal || {} })({
55
54
  transition: props.transition,
56
55
  fullscreen: props.fullscreen,
57
56
  overlayBlur: props.overlayBlur