@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,9 +1,5 @@
1
1
  <script>
2
- import _appConfig from "#build/app.config";
3
2
  import theme from "#build/b24ui/dropdown-menu";
4
- import { tv } from "../utils/tv";
5
- const appConfigDropdownMenu = _appConfig;
6
- const dropdownMenu = tv({ extend: tv(theme), ...appConfigDropdownMenu.b24ui?.dropdownMenu || {} });
7
3
  </script>
8
4
 
9
5
  <script setup>
@@ -11,7 +7,9 @@ import { computed, toRef } from "vue";
11
7
  import { defu } from "defu";
12
8
  import { DropdownMenuRoot, DropdownMenuTrigger, DropdownMenuArrow, useForwardPropsEmits } from "reka-ui";
13
9
  import { reactivePick } from "@vueuse/core";
10
+ import { useAppConfig } from "#imports";
14
11
  import { omit } from "../utils";
12
+ import { tv } from "../utils/tv";
15
13
  import B24DropdownMenuContent from "./DropdownMenuContent.vue";
16
14
  const props = defineProps({
17
15
  size: { type: null, required: false },
@@ -31,11 +29,12 @@ const props = defineProps({
31
29
  });
32
30
  const emits = defineEmits(["update:open"]);
33
31
  const slots = defineSlots();
32
+ const appConfig = useAppConfig();
34
33
  const rootProps = useForwardPropsEmits(reactivePick(props, "defaultOpen", "open", "modal"), emits);
35
34
  const contentProps = toRef(() => defu(props.content, { side: "bottom", sideOffset: 8, collisionPadding: 8 }));
36
35
  const arrowProps = toRef(() => props.arrow);
37
36
  const proxySlots = omit(slots, ["default"]);
38
- const b24ui = computed(() => dropdownMenu({
37
+ const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.dropdownMenu || {} })({
39
38
  size: props.size
40
39
  }));
41
40
  </script>
@@ -1,409 +1,9 @@
1
- import type { VariantProps } from 'tailwind-variants';
2
1
  import type { DropdownMenuRootProps, DropdownMenuRootEmits, DropdownMenuContentProps, DropdownMenuContentEmits, DropdownMenuArrowProps } from 'reka-ui';
2
+ import type { AppConfig } from '@nuxt/schema';
3
+ import theme from '#build/b24ui/dropdown-menu';
3
4
  import type { AvatarProps, KbdProps, LinkProps, IconComponent } from '../types';
4
- import type { ArrayOrNested, DynamicSlots, MergeTypes, NestedItem, PartialString, EmitsToProps } from '../types/utils';
5
- declare const dropdownMenu: import("tailwind-variants").TVReturnType<{
6
- color: {
7
- default: string;
8
- danger: string;
9
- success: string;
10
- warning: string;
11
- primary: string;
12
- secondary: string;
13
- collab: string;
14
- ai: string;
15
- };
16
- active: {
17
- false: {
18
- item: string;
19
- itemLeadingIcon: string;
20
- };
21
- true: {
22
- item: string;
23
- itemLeadingIcon: string;
24
- };
25
- };
26
- loading: {
27
- true: {
28
- itemLeadingIcon: string;
29
- };
30
- };
31
- size: {
32
- xs: {
33
- label: string;
34
- item: string;
35
- itemLeadingIcon: string;
36
- itemLeadingAvatarSize: string;
37
- itemTrailingIcon: string;
38
- itemTrailingKbds: string;
39
- itemTrailingKbdsSize: string;
40
- };
41
- sm: {
42
- label: string;
43
- item: string;
44
- itemLeadingIcon: string;
45
- itemLeadingAvatarSize: string;
46
- itemTrailingIcon: string;
47
- itemTrailingKbds: string;
48
- itemTrailingKbdsSize: string;
49
- };
50
- md: {
51
- label: string;
52
- item: string;
53
- itemLeadingIcon: string;
54
- itemLeadingAvatarSize: string;
55
- itemTrailingIcon: string;
56
- itemTrailingKbds: string;
57
- itemTrailingKbdsSize: string;
58
- };
59
- lg: {
60
- label: string;
61
- item: string;
62
- itemLeadingIcon: string;
63
- itemLeadingAvatarSize: string;
64
- itemTrailingIcon: string;
65
- itemTrailingKbds: string;
66
- itemTrailingKbdsSize: string;
67
- };
68
- };
69
- }, {
70
- content: string;
71
- arrow: string;
72
- group: string;
73
- label: string;
74
- separator: string;
75
- item: string;
76
- itemLeadingIcon: string;
77
- itemLeadingAvatar: string;
78
- itemLeadingAvatarSize: string;
79
- itemTrailing: string;
80
- itemTrailingIcon: string;
81
- itemTrailingKbds: string;
82
- itemTrailingKbdsSize: string;
83
- itemLabel: string;
84
- itemLabelExternalIcon: string;
85
- }, undefined, {
86
- color: {
87
- default: string;
88
- danger: string;
89
- success: string;
90
- warning: string;
91
- primary: string;
92
- secondary: string;
93
- collab: string;
94
- ai: string;
95
- };
96
- active: {
97
- false: {
98
- item: string;
99
- itemLeadingIcon: string;
100
- };
101
- true: {
102
- item: string;
103
- itemLeadingIcon: string;
104
- };
105
- };
106
- loading: {
107
- true: {
108
- itemLeadingIcon: string;
109
- };
110
- };
111
- size: {
112
- xs: {
113
- label: string;
114
- item: string;
115
- itemLeadingIcon: string;
116
- itemLeadingAvatarSize: string;
117
- itemTrailingIcon: string;
118
- itemTrailingKbds: string;
119
- itemTrailingKbdsSize: string;
120
- };
121
- sm: {
122
- label: string;
123
- item: string;
124
- itemLeadingIcon: string;
125
- itemLeadingAvatarSize: string;
126
- itemTrailingIcon: string;
127
- itemTrailingKbds: string;
128
- itemTrailingKbdsSize: string;
129
- };
130
- md: {
131
- label: string;
132
- item: string;
133
- itemLeadingIcon: string;
134
- itemLeadingAvatarSize: string;
135
- itemTrailingIcon: string;
136
- itemTrailingKbds: string;
137
- itemTrailingKbdsSize: string;
138
- };
139
- lg: {
140
- label: string;
141
- item: string;
142
- itemLeadingIcon: string;
143
- itemLeadingAvatarSize: string;
144
- itemTrailingIcon: string;
145
- itemTrailingKbds: string;
146
- itemTrailingKbdsSize: string;
147
- };
148
- };
149
- }, {
150
- content: string;
151
- arrow: string;
152
- group: string;
153
- label: string;
154
- separator: string;
155
- item: string;
156
- itemLeadingIcon: string;
157
- itemLeadingAvatar: string;
158
- itemLeadingAvatarSize: string;
159
- itemTrailing: string;
160
- itemTrailingIcon: string;
161
- itemTrailingKbds: string;
162
- itemTrailingKbdsSize: string;
163
- itemLabel: string;
164
- itemLabelExternalIcon: string;
165
- }, import("tailwind-variants").TVReturnType<{
166
- color: {
167
- default: string;
168
- danger: string;
169
- success: string;
170
- warning: string;
171
- primary: string;
172
- secondary: string;
173
- collab: string;
174
- ai: string;
175
- };
176
- active: {
177
- false: {
178
- item: string;
179
- itemLeadingIcon: string;
180
- };
181
- true: {
182
- item: string;
183
- itemLeadingIcon: string;
184
- };
185
- };
186
- loading: {
187
- true: {
188
- itemLeadingIcon: string;
189
- };
190
- };
191
- size: {
192
- xs: {
193
- label: string;
194
- item: string;
195
- itemLeadingIcon: string;
196
- itemLeadingAvatarSize: string;
197
- itemTrailingIcon: string;
198
- itemTrailingKbds: string;
199
- itemTrailingKbdsSize: string;
200
- };
201
- sm: {
202
- label: string;
203
- item: string;
204
- itemLeadingIcon: string;
205
- itemLeadingAvatarSize: string;
206
- itemTrailingIcon: string;
207
- itemTrailingKbds: string;
208
- itemTrailingKbdsSize: string;
209
- };
210
- md: {
211
- label: string;
212
- item: string;
213
- itemLeadingIcon: string;
214
- itemLeadingAvatarSize: string;
215
- itemTrailingIcon: string;
216
- itemTrailingKbds: string;
217
- itemTrailingKbdsSize: string;
218
- };
219
- lg: {
220
- label: string;
221
- item: string;
222
- itemLeadingIcon: string;
223
- itemLeadingAvatarSize: string;
224
- itemTrailingIcon: string;
225
- itemTrailingKbds: string;
226
- itemTrailingKbdsSize: string;
227
- };
228
- };
229
- }, {
230
- content: string;
231
- arrow: string;
232
- group: string;
233
- label: string;
234
- separator: string;
235
- item: string;
236
- itemLeadingIcon: string;
237
- itemLeadingAvatar: string;
238
- itemLeadingAvatarSize: string;
239
- itemTrailing: string;
240
- itemTrailingIcon: string;
241
- itemTrailingKbds: string;
242
- itemTrailingKbdsSize: string;
243
- itemLabel: string;
244
- itemLabelExternalIcon: string;
245
- }, undefined, {
246
- color: {
247
- default: string;
248
- danger: string;
249
- success: string;
250
- warning: string;
251
- primary: string;
252
- secondary: string;
253
- collab: string;
254
- ai: string;
255
- };
256
- active: {
257
- false: {
258
- item: string;
259
- itemLeadingIcon: string;
260
- };
261
- true: {
262
- item: string;
263
- itemLeadingIcon: string;
264
- };
265
- };
266
- loading: {
267
- true: {
268
- itemLeadingIcon: string;
269
- };
270
- };
271
- size: {
272
- xs: {
273
- label: string;
274
- item: string;
275
- itemLeadingIcon: string;
276
- itemLeadingAvatarSize: string;
277
- itemTrailingIcon: string;
278
- itemTrailingKbds: string;
279
- itemTrailingKbdsSize: string;
280
- };
281
- sm: {
282
- label: string;
283
- item: string;
284
- itemLeadingIcon: string;
285
- itemLeadingAvatarSize: string;
286
- itemTrailingIcon: string;
287
- itemTrailingKbds: string;
288
- itemTrailingKbdsSize: string;
289
- };
290
- md: {
291
- label: string;
292
- item: string;
293
- itemLeadingIcon: string;
294
- itemLeadingAvatarSize: string;
295
- itemTrailingIcon: string;
296
- itemTrailingKbds: string;
297
- itemTrailingKbdsSize: string;
298
- };
299
- lg: {
300
- label: string;
301
- item: string;
302
- itemLeadingIcon: string;
303
- itemLeadingAvatarSize: string;
304
- itemTrailingIcon: string;
305
- itemTrailingKbds: string;
306
- itemTrailingKbdsSize: string;
307
- };
308
- };
309
- }, {
310
- content: string;
311
- arrow: string;
312
- group: string;
313
- label: string;
314
- separator: string;
315
- item: string;
316
- itemLeadingIcon: string;
317
- itemLeadingAvatar: string;
318
- itemLeadingAvatarSize: string;
319
- itemTrailing: string;
320
- itemTrailingIcon: string;
321
- itemTrailingKbds: string;
322
- itemTrailingKbdsSize: string;
323
- itemLabel: string;
324
- itemLabelExternalIcon: string;
325
- }, import("tailwind-variants").TVReturnType<{
326
- color: {
327
- default: string;
328
- danger: string;
329
- success: string;
330
- warning: string;
331
- primary: string;
332
- secondary: string;
333
- collab: string;
334
- ai: string;
335
- };
336
- active: {
337
- false: {
338
- item: string;
339
- itemLeadingIcon: string;
340
- };
341
- true: {
342
- item: string;
343
- itemLeadingIcon: string;
344
- };
345
- };
346
- loading: {
347
- true: {
348
- itemLeadingIcon: string;
349
- };
350
- };
351
- size: {
352
- xs: {
353
- label: string;
354
- item: string;
355
- itemLeadingIcon: string;
356
- itemLeadingAvatarSize: string;
357
- itemTrailingIcon: string;
358
- itemTrailingKbds: string;
359
- itemTrailingKbdsSize: string;
360
- };
361
- sm: {
362
- label: string;
363
- item: string;
364
- itemLeadingIcon: string;
365
- itemLeadingAvatarSize: string;
366
- itemTrailingIcon: string;
367
- itemTrailingKbds: string;
368
- itemTrailingKbdsSize: string;
369
- };
370
- md: {
371
- label: string;
372
- item: string;
373
- itemLeadingIcon: string;
374
- itemLeadingAvatarSize: string;
375
- itemTrailingIcon: string;
376
- itemTrailingKbds: string;
377
- itemTrailingKbdsSize: string;
378
- };
379
- lg: {
380
- label: string;
381
- item: string;
382
- itemLeadingIcon: string;
383
- itemLeadingAvatarSize: string;
384
- itemTrailingIcon: string;
385
- itemTrailingKbds: string;
386
- itemTrailingKbdsSize: string;
387
- };
388
- };
389
- }, {
390
- content: string;
391
- arrow: string;
392
- group: string;
393
- label: string;
394
- separator: string;
395
- item: string;
396
- itemLeadingIcon: string;
397
- itemLeadingAvatar: string;
398
- itemLeadingAvatarSize: string;
399
- itemTrailing: string;
400
- itemTrailingIcon: string;
401
- itemTrailingKbds: string;
402
- itemTrailingKbdsSize: string;
403
- itemLabel: string;
404
- itemLabelExternalIcon: string;
405
- }, undefined, unknown, unknown, undefined>>>;
406
- type DropdownMenuVariants = VariantProps<typeof dropdownMenu>;
5
+ import type { ArrayOrNested, DynamicSlots, MergeTypes, NestedItem, EmitsToProps, ComponentConfig } from '../types/utils';
6
+ type DropdownMenu = ComponentConfig<typeof theme, AppConfig, 'dropdownMenu'>;
407
7
  export interface DropdownMenuItem extends Omit<LinkProps, 'type' | 'raw' | 'custom'> {
408
8
  label?: string;
409
9
  /**
@@ -411,7 +11,7 @@ export interface DropdownMenuItem extends Omit<LinkProps, 'type' | 'raw' | 'cust
411
11
  * @IconComponent
412
12
  */
413
13
  icon?: IconComponent;
414
- color?: DropdownMenuVariants['color'];
14
+ color?: DropdownMenu['variants']['color'];
415
15
  avatar?: AvatarProps;
416
16
  content?: Omit<DropdownMenuContentProps, 'as' | 'asChild' | 'forceMount'> & Partial<EmitsToProps<DropdownMenuContentEmits>>;
417
17
  kbds?: KbdProps['value'][] | KbdProps[];
@@ -435,7 +35,7 @@ export interface DropdownMenuProps<T extends ArrayOrNested<DropdownMenuItem> = A
435
35
  /**
436
36
  * @defaultValue 'md'
437
37
  */
438
- size?: DropdownMenuVariants['size'];
38
+ size?: DropdownMenu['variants']['size'];
439
39
  items?: T;
440
40
  /**
441
41
  * The icon displayed when an item is checked.
@@ -475,7 +75,7 @@ export interface DropdownMenuProps<T extends ArrayOrNested<DropdownMenuItem> = A
475
75
  */
476
76
  disabled?: boolean;
477
77
  class?: any;
478
- b24ui?: PartialString<typeof dropdownMenu.slots>;
78
+ b24ui?: DropdownMenu['slots'];
479
79
  }
480
80
  export interface DropdownMenuEmits extends DropdownMenuRootEmits {
481
81
  }
@@ -508,7 +108,7 @@ declare const _default: <T extends ArrayOrNested<DropdownMenuItem>>(__VLS_props:
508
108
  'item-leading': SlotProps<NestedItem<T>>;
509
109
  'item-label': SlotProps<NestedItem<T>>;
510
110
  'item-trailing': SlotProps<NestedItem<T>>;
511
- } & DynamicSlots<MergeTypes<NestedItem<T>>, "label" | "trailing" | "leading", {
111
+ } & DynamicSlots<MergeTypes<NestedItem<T>>, "leading" | "trailing" | "label", {
512
112
  active?: boolean;
513
113
  index: number;
514
114
  }>> & {
@@ -519,7 +119,7 @@ declare const _default: <T extends ArrayOrNested<DropdownMenuItem>>(__VLS_props:
519
119
  'item-leading': SlotProps<NestedItem<T>>;
520
120
  'item-label': SlotProps<NestedItem<T>>;
521
121
  'item-trailing': SlotProps<NestedItem<T>>;
522
- } & DynamicSlots<MergeTypes<NestedItem<T>>, "label" | "trailing" | "leading", {
122
+ } & DynamicSlots<MergeTypes<NestedItem<T>>, "leading" | "trailing" | "label", {
523
123
  active?: boolean;
524
124
  index: number;
525
125
  }>;
@@ -1,7 +1,5 @@
1
1
  <script>
2
- import theme from "#build/b24ui/dropdown-menu";
3
- import { tv } from "../utils/tv";
4
- const _dropdownMenu = tv(theme)();
2
+
5
3
  </script>
6
4
 
7
5
  <script setup>