@bitrix24/b24ui-nuxt 0.5.8 → 0.5.10

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 (197) hide show
  1. package/.nuxt/b24ui/navigation-menu.ts +0 -2
  2. package/.nuxt/b24ui/popover.ts +1 -1
  3. package/.nuxt/b24ui/textarea.ts +43 -0
  4. package/dist/meta.d.mts +5090 -4900
  5. package/dist/meta.mjs +5090 -4900
  6. package/dist/module.json +5 -5
  7. package/dist/module.mjs +11 -7
  8. package/dist/runtime/components/Advice.vue +47 -54
  9. package/dist/runtime/components/Advice.vue.d.ts +170 -0
  10. package/dist/runtime/components/Alert.vue +71 -96
  11. package/dist/runtime/components/Alert.vue.d.ts +464 -0
  12. package/dist/runtime/components/App.vue +37 -34
  13. package/dist/runtime/components/App.vue.d.ts +23 -0
  14. package/dist/runtime/components/Avatar.vue +69 -81
  15. package/dist/runtime/components/Avatar.vue.d.ts +281 -0
  16. package/dist/runtime/components/AvatarGroup.vue +53 -76
  17. package/dist/runtime/components/AvatarGroup.vue.d.ts +204 -0
  18. package/dist/runtime/components/Badge.vue +83 -83
  19. package/dist/runtime/components/Badge.vue.d.ts +517 -0
  20. package/dist/runtime/components/Button.vue +219 -149
  21. package/dist/runtime/components/Button.vue.d.ts +640 -0
  22. package/dist/runtime/components/ButtonGroup.vue +35 -51
  23. package/dist/runtime/components/ButtonGroup.vue.d.ts +116 -0
  24. package/dist/runtime/components/Calendar.vue +186 -152
  25. package/dist/runtime/components/Calendar.vue.d.ts +437 -0
  26. package/dist/runtime/components/Checkbox.vue +84 -73
  27. package/dist/runtime/components/Checkbox.vue.d.ts +354 -0
  28. package/dist/runtime/components/Chip.vue +59 -74
  29. package/dist/runtime/components/Chip.vue.d.ts +271 -0
  30. package/dist/runtime/components/Collapsible.vue +44 -41
  31. package/dist/runtime/components/Collapsible.vue.d.ts +118 -0
  32. package/dist/runtime/components/Container.vue +18 -27
  33. package/dist/runtime/components/Container.vue.d.ts +27 -0
  34. package/dist/runtime/components/Countdown.vue +198 -378
  35. package/dist/runtime/components/Countdown.vue.d.ts +356 -0
  36. package/dist/runtime/components/DescriptionList.vue +102 -149
  37. package/dist/runtime/components/DescriptionList.vue.d.ts +379 -0
  38. package/dist/runtime/components/DropdownMenu.vue +83 -139
  39. package/dist/runtime/components/DropdownMenu.vue.d.ts +533 -0
  40. package/dist/runtime/components/DropdownMenuContent.vue +137 -81
  41. package/dist/runtime/components/DropdownMenuContent.vue.d.ts +228 -0
  42. package/dist/runtime/components/Form.vue +162 -216
  43. package/dist/runtime/components/Form.vue.d.ts +55 -0
  44. package/dist/runtime/components/FormField.vue +76 -80
  45. package/dist/runtime/components/FormField.vue.d.ts +282 -0
  46. package/dist/runtime/components/Input.vue +166 -185
  47. package/dist/runtime/components/Input.vue.d.ts +755 -0
  48. package/dist/runtime/components/InputMenu.vue +300 -381
  49. package/dist/runtime/components/InputMenu.vue.d.ts +1504 -0
  50. package/dist/runtime/components/InputNumber.vue +180 -177
  51. package/dist/runtime/components/InputNumber.vue.d.ts +658 -0
  52. package/dist/runtime/components/Kbd.vue +33 -45
  53. package/dist/runtime/components/Kbd.vue.d.ts +109 -0
  54. package/dist/runtime/components/Link.vue +179 -173
  55. package/dist/runtime/components/Link.vue.d.ts +129 -0
  56. package/dist/runtime/components/LinkBase.vue +64 -42
  57. package/dist/runtime/components/LinkBase.vue.d.ts +48 -0
  58. package/dist/runtime/components/Modal.vue +105 -127
  59. package/dist/runtime/components/Modal.vue.d.ts +327 -0
  60. package/dist/runtime/components/ModalDialogClose.vue +4 -8
  61. package/dist/runtime/components/ModalDialogClose.vue.d.ts +10 -0
  62. package/dist/runtime/components/Navbar.vue +24 -33
  63. package/dist/runtime/components/Navbar.vue.d.ts +101 -0
  64. package/dist/runtime/components/NavbarDivider.vue +24 -33
  65. package/dist/runtime/components/NavbarDivider.vue.d.ts +101 -0
  66. package/dist/runtime/components/NavbarSection.vue +24 -33
  67. package/dist/runtime/components/NavbarSection.vue.d.ts +101 -0
  68. package/dist/runtime/components/NavbarSpacer.vue +24 -33
  69. package/dist/runtime/components/NavbarSpacer.vue.d.ts +101 -0
  70. package/dist/runtime/components/NavigationMenu.vue +152 -216
  71. package/dist/runtime/components/NavigationMenu.vue.d.ts +824 -0
  72. package/dist/runtime/components/OverlayProvider.vue +13 -17
  73. package/dist/runtime/components/OverlayProvider.vue.d.ts +2 -0
  74. package/dist/runtime/components/Popover.vue +81 -81
  75. package/dist/runtime/components/Popover.vue.d.ts +147 -0
  76. package/dist/runtime/components/Progress.vue +109 -136
  77. package/dist/runtime/components/Progress.vue.d.ts +592 -0
  78. package/dist/runtime/components/RadioGroup.vue +120 -134
  79. package/dist/runtime/components/RadioGroup.vue.d.ts +723 -0
  80. package/dist/runtime/components/Range.vue +94 -85
  81. package/dist/runtime/components/Range.vue.d.ts +417 -0
  82. package/dist/runtime/components/Select.vue +212 -260
  83. package/dist/runtime/components/Select.vue.d.ts +1200 -0
  84. package/dist/runtime/components/SelectMenu.vue +272 -366
  85. package/dist/runtime/components/SelectMenu.vue.d.ts +1298 -0
  86. package/dist/runtime/components/Separator.vue +61 -71
  87. package/dist/runtime/components/Separator.vue.d.ts +400 -0
  88. package/dist/runtime/components/Sidebar.vue +24 -33
  89. package/dist/runtime/components/Sidebar.vue.d.ts +101 -0
  90. package/dist/runtime/components/SidebarBody.vue +30 -38
  91. package/dist/runtime/components/SidebarBody.vue.d.ts +90 -0
  92. package/dist/runtime/components/SidebarFooter.vue +24 -33
  93. package/dist/runtime/components/SidebarFooter.vue.d.ts +101 -0
  94. package/dist/runtime/components/SidebarHeader.vue +24 -33
  95. package/dist/runtime/components/SidebarHeader.vue.d.ts +101 -0
  96. package/dist/runtime/components/SidebarHeading.vue +24 -33
  97. package/dist/runtime/components/SidebarHeading.vue.d.ts +101 -0
  98. package/dist/runtime/components/SidebarLayout.vue +40 -70
  99. package/dist/runtime/components/SidebarLayout.vue.d.ts +222 -0
  100. package/dist/runtime/components/SidebarSection.vue +24 -33
  101. package/dist/runtime/components/SidebarSection.vue.d.ts +101 -0
  102. package/dist/runtime/components/SidebarSpacer.vue +24 -33
  103. package/dist/runtime/components/SidebarSpacer.vue.d.ts +101 -0
  104. package/dist/runtime/components/Skeleton.vue +17 -22
  105. package/dist/runtime/components/Skeleton.vue.d.ts +26 -0
  106. package/dist/runtime/components/Slideover.vue +108 -131
  107. package/dist/runtime/components/Slideover.vue.d.ts +360 -0
  108. package/dist/runtime/components/StackedLayout.vue +40 -73
  109. package/dist/runtime/components/StackedLayout.vue.d.ts +192 -0
  110. package/dist/runtime/components/Switch.vue +100 -95
  111. package/dist/runtime/components/Switch.vue.d.ts +587 -0
  112. package/dist/runtime/components/Tabs.vue +83 -105
  113. package/dist/runtime/components/Tabs.vue.d.ts +453 -0
  114. package/dist/runtime/components/Textarea.vue +215 -203
  115. package/dist/runtime/components/Textarea.vue.d.ts +601 -0
  116. package/dist/runtime/components/Toast.vue +94 -105
  117. package/dist/runtime/components/Toast.vue.d.ts +438 -0
  118. package/dist/runtime/components/Toaster.vue +94 -111
  119. package/dist/runtime/components/Toaster.vue.d.ts +219 -0
  120. package/dist/runtime/components/Tooltip.vue +78 -64
  121. package/dist/runtime/components/Tooltip.vue.d.ts +186 -0
  122. package/dist/runtime/components/content/TableWrapper.vue +58 -70
  123. package/dist/runtime/components/content/TableWrapper.vue.d.ts +237 -0
  124. package/dist/runtime/composables/useAvatarGroup.d.ts +1 -1
  125. package/dist/runtime/composables/useButtonGroup.d.ts +2 -2
  126. package/dist/runtime/composables/useComponentIcons.d.ts +3 -3
  127. package/dist/runtime/composables/useFormField.d.ts +1 -1
  128. package/dist/runtime/prose/A.vue +18 -23
  129. package/dist/runtime/prose/A.vue.d.ts +84 -0
  130. package/dist/runtime/prose/Blockquote.vue +18 -23
  131. package/dist/runtime/prose/Blockquote.vue.d.ts +84 -0
  132. package/dist/runtime/prose/Code.vue +23 -31
  133. package/dist/runtime/prose/Code.vue.d.ts +97 -0
  134. package/dist/runtime/prose/Em.vue +18 -23
  135. package/dist/runtime/prose/Em.vue.d.ts +84 -0
  136. package/dist/runtime/prose/H1.vue +18 -23
  137. package/dist/runtime/prose/H1.vue.d.ts +97 -0
  138. package/dist/runtime/prose/H2.vue +18 -23
  139. package/dist/runtime/prose/H2.vue.d.ts +123 -0
  140. package/dist/runtime/prose/H3.vue +18 -23
  141. package/dist/runtime/prose/H3.vue.d.ts +123 -0
  142. package/dist/runtime/prose/H4.vue +18 -23
  143. package/dist/runtime/prose/H4.vue.d.ts +123 -0
  144. package/dist/runtime/prose/H5.vue +18 -23
  145. package/dist/runtime/prose/H5.vue.d.ts +123 -0
  146. package/dist/runtime/prose/H6.vue +18 -23
  147. package/dist/runtime/prose/H6.vue.d.ts +123 -0
  148. package/dist/runtime/prose/Hr.vue +18 -19
  149. package/dist/runtime/prose/Hr.vue.d.ts +74 -0
  150. package/dist/runtime/prose/Img.vue +18 -23
  151. package/dist/runtime/prose/Img.vue.d.ts +77 -0
  152. package/dist/runtime/prose/Li.vue +18 -23
  153. package/dist/runtime/prose/Li.vue.d.ts +84 -0
  154. package/dist/runtime/prose/Ol.vue +18 -23
  155. package/dist/runtime/prose/Ol.vue.d.ts +84 -0
  156. package/dist/runtime/prose/P.vue +18 -23
  157. package/dist/runtime/prose/P.vue.d.ts +84 -0
  158. package/dist/runtime/prose/Pre.vue +28 -33
  159. package/dist/runtime/prose/Pre.vue.d.ts +117 -0
  160. package/dist/runtime/prose/Strong.vue +18 -23
  161. package/dist/runtime/prose/Strong.vue.d.ts +84 -0
  162. package/dist/runtime/prose/Table.vue +44 -54
  163. package/dist/runtime/prose/Table.vue.d.ts +144 -0
  164. package/dist/runtime/prose/Tbody.vue +18 -23
  165. package/dist/runtime/prose/Tbody.vue.d.ts +84 -0
  166. package/dist/runtime/prose/Td.vue +18 -23
  167. package/dist/runtime/prose/Td.vue.d.ts +84 -0
  168. package/dist/runtime/prose/Th.vue +18 -23
  169. package/dist/runtime/prose/Th.vue.d.ts +84 -0
  170. package/dist/runtime/prose/Thead.vue +18 -23
  171. package/dist/runtime/prose/Thead.vue.d.ts +84 -0
  172. package/dist/runtime/prose/Tr.vue +18 -23
  173. package/dist/runtime/prose/Tr.vue.d.ts +84 -0
  174. package/dist/runtime/prose/Ul.vue +18 -23
  175. package/dist/runtime/prose/Ul.vue.d.ts +84 -0
  176. package/dist/runtime/vue/components/Link.vue +201 -202
  177. package/dist/runtime/vue/components/Link.vue.d.ts +129 -0
  178. package/dist/runtime/vue/stubs.d.ts +2 -2
  179. package/dist/shared/{b24ui-nuxt.DBFS6LH7.mjs → b24ui-nuxt.CS9Lf0os.mjs} +54 -4
  180. package/dist/types.d.mts +3 -5
  181. package/dist/unplugin.mjs +1 -1
  182. package/dist/vite.mjs +1 -1
  183. package/package.json +62 -35
  184. package/dist/meta.cjs +0 -71922
  185. package/dist/meta.d.cts +0 -71920
  186. package/dist/meta.d.ts +0 -71920
  187. package/dist/module.cjs +0 -59
  188. package/dist/module.d.cts +0 -15
  189. package/dist/module.d.ts +0 -15
  190. package/dist/shared/b24ui-nuxt.B9fPD5yO.cjs +0 -7671
  191. package/dist/types.d.ts +0 -7
  192. package/dist/unplugin.cjs +0 -236
  193. package/dist/unplugin.d.cts +0 -33
  194. package/dist/unplugin.d.ts +0 -33
  195. package/dist/vite.cjs +0 -21
  196. package/dist/vite.d.cts +0 -14
  197. package/dist/vite.d.ts +0 -14
@@ -0,0 +1,533 @@
1
+ import type { VariantProps } from 'tailwind-variants';
2
+ import type { DropdownMenuRootProps, DropdownMenuRootEmits, DropdownMenuContentProps, DropdownMenuContentEmits, DropdownMenuArrowProps } from 'reka-ui';
3
+ 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>;
407
+ export interface DropdownMenuItem extends Omit<LinkProps, 'type' | 'raw' | 'custom'> {
408
+ label?: string;
409
+ /**
410
+ * Display an icon on the left side.
411
+ * @IconComponent
412
+ */
413
+ icon?: IconComponent;
414
+ color?: DropdownMenuVariants['color'];
415
+ avatar?: AvatarProps;
416
+ content?: Omit<DropdownMenuContentProps, 'as' | 'asChild' | 'forceMount'> & Partial<EmitsToProps<DropdownMenuContentEmits>>;
417
+ kbds?: KbdProps['value'][] | KbdProps[];
418
+ /**
419
+ * The item type.
420
+ * @defaultValue 'link'
421
+ */
422
+ type?: 'label' | 'separator' | 'link' | 'checkbox';
423
+ slot?: string;
424
+ loading?: boolean;
425
+ disabled?: boolean;
426
+ checked?: boolean;
427
+ open?: boolean;
428
+ defaultOpen?: boolean;
429
+ children?: ArrayOrNested<DropdownMenuItem>;
430
+ onSelect?(e: Event): void;
431
+ onUpdateChecked?(checked: boolean): void;
432
+ [key: string]: any;
433
+ }
434
+ export interface DropdownMenuProps<T extends ArrayOrNested<DropdownMenuItem> = ArrayOrNested<DropdownMenuItem>> extends Omit<DropdownMenuRootProps, 'dir'> {
435
+ /**
436
+ * @defaultValue 'md'
437
+ */
438
+ size?: DropdownMenuVariants['size'];
439
+ items?: T;
440
+ /**
441
+ * The icon displayed when an item is checked.
442
+ * @defaultValue icons.check
443
+ * @IconComponent
444
+ */
445
+ checkedIcon?: IconComponent;
446
+ /**
447
+ * The icon displayed when the item is an external link.
448
+ * Set to `false` to hide the external icon.
449
+ * @defaultValue icons.external
450
+ * @IconComponent
451
+ */
452
+ externalIcon?: boolean | IconComponent;
453
+ /**
454
+ * The content of the menu.
455
+ * @defaultValue { side: 'bottom', sideOffset: 8, collisionPadding: 8 }
456
+ */
457
+ content?: Omit<DropdownMenuContentProps, 'as' | 'asChild' | 'forceMount'> & Partial<EmitsToProps<DropdownMenuContentEmits>>;
458
+ /**
459
+ * Display an arrow alongside the menu.
460
+ * @defaultValue false
461
+ */
462
+ arrow?: boolean | Omit<DropdownMenuArrowProps, 'as' | 'asChild'>;
463
+ /**
464
+ * Render the menu in a portal.
465
+ * @defaultValue true
466
+ */
467
+ portal?: boolean;
468
+ /**
469
+ * The key used to get the label from the item.
470
+ * @defaultValue 'label'
471
+ */
472
+ labelKey?: keyof NestedItem<T>;
473
+ /**
474
+ * @defaultValue false
475
+ */
476
+ disabled?: boolean;
477
+ class?: any;
478
+ b24ui?: PartialString<typeof dropdownMenu.slots>;
479
+ }
480
+ export interface DropdownMenuEmits extends DropdownMenuRootEmits {
481
+ }
482
+ type SlotProps<T extends DropdownMenuItem> = (props: {
483
+ item: T;
484
+ active?: boolean;
485
+ index: number;
486
+ }) => any;
487
+ export type DropdownMenuSlots<A extends ArrayOrNested<DropdownMenuItem> = ArrayOrNested<DropdownMenuItem>, T extends NestedItem<A> = NestedItem<A>> = {
488
+ 'default'(props: {
489
+ open: boolean;
490
+ }): any;
491
+ 'item': SlotProps<T>;
492
+ 'item-leading': SlotProps<T>;
493
+ 'item-label': SlotProps<T>;
494
+ 'item-trailing': SlotProps<T>;
495
+ } & DynamicSlots<MergeTypes<T>, 'leading' | 'label' | 'trailing', {
496
+ active?: boolean;
497
+ index: number;
498
+ }>;
499
+ declare const _default: <T extends ArrayOrNested<DropdownMenuItem>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
500
+ props: __VLS_PrettifyLocal<any & DropdownMenuProps<T> & Partial<{}>> & (import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps);
501
+ expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
502
+ attrs: any;
503
+ slots: Readonly<{
504
+ default(props: {
505
+ open: boolean;
506
+ }): any;
507
+ item: SlotProps<NestedItem<T>>;
508
+ 'item-leading': SlotProps<NestedItem<T>>;
509
+ 'item-label': SlotProps<NestedItem<T>>;
510
+ 'item-trailing': SlotProps<NestedItem<T>>;
511
+ } & DynamicSlots<MergeTypes<NestedItem<T>>, "label" | "trailing" | "leading", {
512
+ active?: boolean;
513
+ index: number;
514
+ }>> & {
515
+ default(props: {
516
+ open: boolean;
517
+ }): any;
518
+ item: SlotProps<NestedItem<T>>;
519
+ 'item-leading': SlotProps<NestedItem<T>>;
520
+ 'item-label': SlotProps<NestedItem<T>>;
521
+ 'item-trailing': SlotProps<NestedItem<T>>;
522
+ } & DynamicSlots<MergeTypes<NestedItem<T>>, "label" | "trailing" | "leading", {
523
+ active?: boolean;
524
+ index: number;
525
+ }>;
526
+ emit: (evt: "update:open", payload: boolean) => void;
527
+ }>) => import("vue").VNode & {
528
+ __ctx?: Awaited<typeof __VLS_setup>;
529
+ };
530
+ export default _default;
531
+ type __VLS_PrettifyLocal<T> = {
532
+ [K in keyof T]: T[K];
533
+ } & {};