@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,16 +1,14 @@
1
1
  <script>
2
- import _appConfig from "#build/app.config";
3
2
  import theme from "#build/b24ui/slideover";
4
- import { tv } from "../utils/tv";
5
- const appConfigSlideover = _appConfig;
6
- const slideover = tv({ extend: tv(theme), ...appConfigSlideover.b24ui?.slideover || {} });
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(() => slideover({
53
+ const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.slideover || {} })({
55
54
  transition: props.transition,
56
55
  side: props.side,
57
56
  overlayBlur: props.overlayBlur
@@ -1,244 +1,9 @@
1
- import type { VariantProps } from 'tailwind-variants';
2
1
  import type { DialogRootProps, DialogRootEmits, DialogContentProps, DialogContentEmits } from 'reka-ui';
2
+ import type { AppConfig } from '@nuxt/schema';
3
+ import theme from '#build/b24ui/slideover';
3
4
  import type { ButtonProps, IconComponent } from '../types';
4
- import type { EmitsToProps } from '../types/utils';
5
- declare const slideover: import("tailwind-variants").TVReturnType<{
6
- overlayBlur: {
7
- auto: {
8
- overlay: string;
9
- };
10
- on: {
11
- overlay: string;
12
- };
13
- off: {
14
- overlay: string;
15
- };
16
- };
17
- side: {
18
- top: {
19
- content: string;
20
- };
21
- right: {
22
- content: string;
23
- };
24
- bottom: {
25
- content: string;
26
- };
27
- left: {
28
- content: string;
29
- };
30
- };
31
- transition: {
32
- true: {
33
- overlay: string;
34
- };
35
- };
36
- scrollbarThin: {
37
- true: {
38
- body: string;
39
- };
40
- };
41
- }, {
42
- overlay: string;
43
- content: string;
44
- header: string;
45
- wrapper: string;
46
- body: string;
47
- footer: string;
48
- title: string;
49
- description: string;
50
- close: string;
51
- safeList: string;
52
- }, undefined, {
53
- overlayBlur: {
54
- auto: {
55
- overlay: string;
56
- };
57
- on: {
58
- overlay: string;
59
- };
60
- off: {
61
- overlay: string;
62
- };
63
- };
64
- side: {
65
- top: {
66
- content: string;
67
- };
68
- right: {
69
- content: string;
70
- };
71
- bottom: {
72
- content: string;
73
- };
74
- left: {
75
- content: string;
76
- };
77
- };
78
- transition: {
79
- true: {
80
- overlay: string;
81
- };
82
- };
83
- scrollbarThin: {
84
- true: {
85
- body: string;
86
- };
87
- };
88
- }, {
89
- overlay: string;
90
- content: string;
91
- header: string;
92
- wrapper: string;
93
- body: string;
94
- footer: string;
95
- title: string;
96
- description: string;
97
- close: string;
98
- safeList: string;
99
- }, import("tailwind-variants").TVReturnType<{
100
- overlayBlur: {
101
- auto: {
102
- overlay: string;
103
- };
104
- on: {
105
- overlay: string;
106
- };
107
- off: {
108
- overlay: string;
109
- };
110
- };
111
- side: {
112
- top: {
113
- content: string;
114
- };
115
- right: {
116
- content: string;
117
- };
118
- bottom: {
119
- content: string;
120
- };
121
- left: {
122
- content: string;
123
- };
124
- };
125
- transition: {
126
- true: {
127
- overlay: string;
128
- };
129
- };
130
- scrollbarThin: {
131
- true: {
132
- body: string;
133
- };
134
- };
135
- }, {
136
- overlay: string;
137
- content: string;
138
- header: string;
139
- wrapper: string;
140
- body: string;
141
- footer: string;
142
- title: string;
143
- description: string;
144
- close: string;
145
- safeList: string;
146
- }, undefined, {
147
- overlayBlur: {
148
- auto: {
149
- overlay: string;
150
- };
151
- on: {
152
- overlay: string;
153
- };
154
- off: {
155
- overlay: string;
156
- };
157
- };
158
- side: {
159
- top: {
160
- content: string;
161
- };
162
- right: {
163
- content: string;
164
- };
165
- bottom: {
166
- content: string;
167
- };
168
- left: {
169
- content: string;
170
- };
171
- };
172
- transition: {
173
- true: {
174
- overlay: string;
175
- };
176
- };
177
- scrollbarThin: {
178
- true: {
179
- body: string;
180
- };
181
- };
182
- }, {
183
- overlay: string;
184
- content: string;
185
- header: string;
186
- wrapper: string;
187
- body: string;
188
- footer: string;
189
- title: string;
190
- description: string;
191
- close: string;
192
- safeList: string;
193
- }, import("tailwind-variants").TVReturnType<{
194
- overlayBlur: {
195
- auto: {
196
- overlay: string;
197
- };
198
- on: {
199
- overlay: string;
200
- };
201
- off: {
202
- overlay: string;
203
- };
204
- };
205
- side: {
206
- top: {
207
- content: string;
208
- };
209
- right: {
210
- content: string;
211
- };
212
- bottom: {
213
- content: string;
214
- };
215
- left: {
216
- content: string;
217
- };
218
- };
219
- transition: {
220
- true: {
221
- overlay: string;
222
- };
223
- };
224
- scrollbarThin: {
225
- true: {
226
- body: string;
227
- };
228
- };
229
- }, {
230
- overlay: string;
231
- content: string;
232
- header: string;
233
- wrapper: string;
234
- body: string;
235
- footer: string;
236
- title: string;
237
- description: string;
238
- close: string;
239
- safeList: string;
240
- }, undefined, unknown, unknown, undefined>>>;
241
- type SlideoverVariants = VariantProps<typeof slideover>;
5
+ import type { EmitsToProps, ComponentConfig } from '../types/utils';
6
+ type Slideover = ComponentConfig<typeof theme, AppConfig, 'slideover'>;
242
7
  export interface SlideoverProps extends DialogRootProps {
243
8
  title?: string;
244
9
  description?: string;
@@ -256,7 +21,7 @@ export interface SlideoverProps extends DialogRootProps {
256
21
  * `auto` use `motion-safe`.
257
22
  * @defaultValue 'auto'
258
23
  */
259
- overlayBlur?: SlideoverVariants['overlayBlur'];
24
+ overlayBlur?: Slideover['variants']['overlayBlur'];
260
25
  /**
261
26
  * Animate the slideover when opening or closing.
262
27
  * @defaultValue true
@@ -266,7 +31,7 @@ export interface SlideoverProps extends DialogRootProps {
266
31
  * The side of the slideover.
267
32
  * @defaultValue 'right'
268
33
  */
269
- side?: SlideoverVariants['side'];
34
+ side?: Slideover['variants']['side'];
270
35
  /**
271
36
  * Render the slideover in a portal.
272
37
  * @defaultValue true
@@ -295,7 +60,7 @@ export interface SlideoverProps extends DialogRootProps {
295
60
  */
296
61
  scrollbarThin?: boolean;
297
62
  class?: any;
298
- b24ui?: Partial<typeof slideover.slots>;
63
+ b24ui?: Slideover['slots'];
299
64
  }
300
65
  export interface SlideoverEmits extends DialogRootEmits {
301
66
  'after:leave': [];
@@ -309,7 +74,9 @@ export interface SlideoverSlots {
309
74
  title(props?: {}): any;
310
75
  description(props?: {}): any;
311
76
  close(props: {
312
- b24ui: ReturnType<typeof slideover>;
77
+ b24ui: {
78
+ [K in keyof Required<Slideover['slots']>]: (props?: Record<string, any>) => string;
79
+ };
313
80
  }): any;
314
81
  body(props?: {}): any;
315
82
  footer(props?: {}): any;
@@ -325,15 +92,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
325
92
  scrollbarThin: boolean;
326
93
  overlayBlur: string;
327
94
  }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {
328
- modal: boolean;
329
95
  close: boolean | Partial<ButtonProps>;
96
+ modal: boolean;
97
+ transition: boolean;
330
98
  portal: boolean;
331
99
  overlay: boolean;
332
- side: "right" | "left" | "top" | "bottom";
333
- overlayBlur: "off" | "auto" | "on";
334
- transition: boolean;
335
- scrollbarThin: boolean;
100
+ side: Slideover["variants"]["side"];
101
+ overlayBlur: Slideover["variants"]["overlayBlur"];
336
102
  dismissible: boolean;
103
+ scrollbarThin: boolean;
337
104
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, Readonly<SlideoverSlots> & SlideoverSlots>;
338
105
  export default _default;
339
106
  type __VLS_WithDefaults<P, D> = {
@@ -1,15 +1,13 @@
1
1
  <script>
2
- import _appConfig from "#build/app.config";
3
2
  import theme from "#build/b24ui/stacked-layout";
4
- import { tv } from "../utils/tv";
5
- import { useRoute } from "vue-router";
6
- const appConfigStackedLayout = _appConfig;
7
- const stackedLayout = tv({ extend: tv(theme), ...appConfigStackedLayout.b24ui?.stackedLayout || {} });
8
3
  </script>
9
4
 
10
5
  <script setup>
11
6
  import { ref, computed, watch, onUnmounted } from "vue";
7
+ import { useRoute } from "vue-router";
12
8
  import { Primitive } from "reka-ui";
9
+ import { useAppConfig } from "#imports";
10
+ import { tv } from "../utils/tv";
13
11
  import B24Slideover from "./Slideover.vue";
14
12
  import B24Sidebar from "./Sidebar.vue";
15
13
  import B24ModalDialogClose from "./ModalDialogClose.vue";
@@ -20,13 +18,14 @@ const props = defineProps({
20
18
  as: { type: null, required: false, default: "div" },
21
19
  useLightContent: { type: Boolean, required: false, default: true },
22
20
  class: { type: null, required: false },
23
- b24ui: { type: Object, required: false }
21
+ b24ui: { type: null, required: false }
24
22
  });
25
23
  const slots = defineSlots();
24
+ const appConfig = useAppConfig();
26
25
  const route = useRoute();
27
26
  const isUseSideBar = computed(() => !!slots.sidebar);
28
27
  const openSidebarSlideover = ref(false);
29
- const b24ui = computed(() => stackedLayout({
28
+ const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.stackedLayout || {} })({
30
29
  useSidebar: isUseSideBar.value,
31
30
  useLightContent: Boolean(props.useLightContent)
32
31
  }));
@@ -1,134 +1,7 @@
1
- declare const stackedLayout: import("tailwind-variants").TVReturnType<{
2
- useSidebar: {
3
- true: string;
4
- false: string;
5
- };
6
- useLightContent: {
7
- true: {
8
- root: string;
9
- containerWrapper: string;
10
- };
11
- false: {
12
- container: string;
13
- };
14
- };
15
- }, {
16
- root: string;
17
- sidebarSlideoverContainer: string;
18
- sidebarSlideover: string;
19
- sidebarSlideoverBtnClose: string;
20
- header: string;
21
- headerMenuIcon: string;
22
- headerPaddings: string;
23
- headerWrapper: string;
24
- container: string;
25
- containerWrapper: string;
26
- containerWrapperInner: string;
27
- }, undefined, {
28
- useSidebar: {
29
- true: string;
30
- false: string;
31
- };
32
- useLightContent: {
33
- true: {
34
- root: string;
35
- containerWrapper: string;
36
- };
37
- false: {
38
- container: string;
39
- };
40
- };
41
- }, {
42
- root: string;
43
- sidebarSlideoverContainer: string;
44
- sidebarSlideover: string;
45
- sidebarSlideoverBtnClose: string;
46
- header: string;
47
- headerMenuIcon: string;
48
- headerPaddings: string;
49
- headerWrapper: string;
50
- container: string;
51
- containerWrapper: string;
52
- containerWrapperInner: string;
53
- }, import("tailwind-variants").TVReturnType<{
54
- useSidebar: {
55
- true: string;
56
- false: string;
57
- };
58
- useLightContent: {
59
- true: {
60
- root: string;
61
- containerWrapper: string;
62
- };
63
- false: {
64
- container: string;
65
- };
66
- };
67
- }, {
68
- root: string;
69
- sidebarSlideoverContainer: string;
70
- sidebarSlideover: string;
71
- sidebarSlideoverBtnClose: string;
72
- header: string;
73
- headerMenuIcon: string;
74
- headerPaddings: string;
75
- headerWrapper: string;
76
- container: string;
77
- containerWrapper: string;
78
- containerWrapperInner: string;
79
- }, undefined, {
80
- useSidebar: {
81
- true: string;
82
- false: string;
83
- };
84
- useLightContent: {
85
- true: {
86
- root: string;
87
- containerWrapper: string;
88
- };
89
- false: {
90
- container: string;
91
- };
92
- };
93
- }, {
94
- root: string;
95
- sidebarSlideoverContainer: string;
96
- sidebarSlideover: string;
97
- sidebarSlideoverBtnClose: string;
98
- header: string;
99
- headerMenuIcon: string;
100
- headerPaddings: string;
101
- headerWrapper: string;
102
- container: string;
103
- containerWrapper: string;
104
- containerWrapperInner: string;
105
- }, import("tailwind-variants").TVReturnType<{
106
- useSidebar: {
107
- true: string;
108
- false: string;
109
- };
110
- useLightContent: {
111
- true: {
112
- root: string;
113
- containerWrapper: string;
114
- };
115
- false: {
116
- container: string;
117
- };
118
- };
119
- }, {
120
- root: string;
121
- sidebarSlideoverContainer: string;
122
- sidebarSlideover: string;
123
- sidebarSlideoverBtnClose: string;
124
- header: string;
125
- headerMenuIcon: string;
126
- headerPaddings: string;
127
- headerWrapper: string;
128
- container: string;
129
- containerWrapper: string;
130
- containerWrapperInner: string;
131
- }, undefined, unknown, unknown, undefined>>>;
1
+ import type { AppConfig } from '@nuxt/schema';
2
+ import theme from '#build/b24ui/stacked-layout';
3
+ import type { ComponentConfig } from '../types/utils';
4
+ type StackedLayout = ComponentConfig<typeof theme, AppConfig, 'stackedLayout'>;
132
5
  export interface StackedLayoutProps {
133
6
  /**
134
7
  * The element or component this component should render as.
@@ -137,7 +10,7 @@ export interface StackedLayoutProps {
137
10
  as?: any;
138
11
  useLightContent?: boolean;
139
12
  class?: any;
140
- b24ui?: Partial<typeof stackedLayout.slots>;
13
+ b24ui?: StackedLayout['slots'];
141
14
  }
142
15
  export interface StackedLayoutSlots {
143
16
  /**
@@ -1,16 +1,14 @@
1
1
  <script>
2
- import _appConfig from "#build/app.config";
3
2
  import theme from "#build/b24ui/switch";
4
- import { tv } from "../utils/tv";
5
- const appConfigSwitch = _appConfig;
6
- const switchTv = tv({ extend: tv(theme), ...appConfigSwitch.b24ui?.switch || {} });
7
3
  </script>
8
4
 
9
5
  <script setup>
10
6
  import { computed, useId } from "vue";
11
7
  import { Primitive, SwitchRoot, SwitchThumb, useForwardProps, Label } from "reka-ui";
12
8
  import { reactivePick } from "@vueuse/core";
9
+ import { useAppConfig } from "#imports";
13
10
  import { useFormField } from "../composables/useFormField";
11
+ import { tv } from "../utils/tv";
14
12
  import { omit } from "../utils";
15
13
  import icons from "../dictionary/icons";
16
14
  defineOptions({ inheritAttrs: false });
@@ -36,10 +34,11 @@ const props = defineProps({
36
34
  const slots = defineSlots();
37
35
  const emits = defineEmits(["change"]);
38
36
  const modelValue = defineModel({ type: Boolean, ...{ default: void 0 } });
37
+ const appConfig = useAppConfig();
39
38
  const rootProps = useForwardProps(reactivePick(props, "required", "value", "defaultValue"));
40
39
  const { id: _id, emitFormChange, emitFormInput, size, color, name, disabled, ariaAttrs } = useFormField(props);
41
40
  const id = _id.value ?? useId();
42
- const b24ui = computed(() => switchTv({
41
+ const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.switch || {} })({
43
42
  size: size.value,
44
43
  color: color.value,
45
44
  required: props.required,