@bitrix24/b24ui-nuxt 0.5.10 → 0.5.11

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 (190) hide show
  1. package/dist/meta.cjs +72112 -0
  2. package/dist/meta.d.cts +72110 -0
  3. package/dist/meta.d.mts +5060 -5060
  4. package/dist/meta.d.ts +72110 -0
  5. package/dist/meta.mjs +5060 -5060
  6. package/dist/module.cjs +63 -0
  7. package/dist/module.d.cts +15 -0
  8. package/dist/module.d.ts +15 -0
  9. package/dist/module.json +3 -3
  10. package/dist/module.mjs +1 -1
  11. package/dist/runtime/components/Advice.vue +54 -47
  12. package/dist/runtime/components/Alert.vue +96 -71
  13. package/dist/runtime/components/App.vue +34 -37
  14. package/dist/runtime/components/Avatar.vue +81 -69
  15. package/dist/runtime/components/AvatarGroup.vue +76 -53
  16. package/dist/runtime/components/Badge.vue +83 -83
  17. package/dist/runtime/components/Button.vue +157 -220
  18. package/dist/runtime/components/ButtonGroup.vue +51 -35
  19. package/dist/runtime/components/Calendar.vue +152 -186
  20. package/dist/runtime/components/Checkbox.vue +73 -84
  21. package/dist/runtime/components/Chip.vue +74 -59
  22. package/dist/runtime/components/Collapsible.vue +41 -44
  23. package/dist/runtime/components/Container.vue +27 -18
  24. package/dist/runtime/components/Countdown.vue +378 -198
  25. package/dist/runtime/components/DescriptionList.vue +149 -102
  26. package/dist/runtime/components/DropdownMenu.vue +139 -83
  27. package/dist/runtime/components/DropdownMenuContent.vue +84 -137
  28. package/dist/runtime/components/Form.vue +216 -162
  29. package/dist/runtime/components/FormField.vue +80 -76
  30. package/dist/runtime/components/Input.vue +179 -160
  31. package/dist/runtime/components/InputMenu.vue +380 -300
  32. package/dist/runtime/components/InputNumber.vue +175 -178
  33. package/dist/runtime/components/Kbd.vue +45 -33
  34. package/dist/runtime/components/Link.vue +173 -179
  35. package/dist/runtime/components/LinkBase.vue +42 -64
  36. package/dist/runtime/components/Modal.vue +127 -105
  37. package/dist/runtime/components/ModalDialogClose.vue +8 -4
  38. package/dist/runtime/components/Navbar.vue +33 -24
  39. package/dist/runtime/components/NavbarDivider.vue +33 -24
  40. package/dist/runtime/components/NavbarSection.vue +33 -24
  41. package/dist/runtime/components/NavbarSpacer.vue +33 -24
  42. package/dist/runtime/components/NavigationMenu.vue +210 -144
  43. package/dist/runtime/components/OverlayProvider.vue +17 -13
  44. package/dist/runtime/components/Popover.vue +81 -81
  45. package/dist/runtime/components/Progress.vue +136 -109
  46. package/dist/runtime/components/RadioGroup.vue +134 -120
  47. package/dist/runtime/components/Range.vue +85 -94
  48. package/dist/runtime/components/Select.vue +260 -212
  49. package/dist/runtime/components/SelectMenu.vue +365 -272
  50. package/dist/runtime/components/Separator.vue +71 -61
  51. package/dist/runtime/components/Sidebar.vue +33 -24
  52. package/dist/runtime/components/SidebarBody.vue +38 -30
  53. package/dist/runtime/components/SidebarFooter.vue +33 -24
  54. package/dist/runtime/components/SidebarHeader.vue +33 -24
  55. package/dist/runtime/components/SidebarHeading.vue +33 -24
  56. package/dist/runtime/components/SidebarLayout.vue +70 -40
  57. package/dist/runtime/components/SidebarSection.vue +33 -24
  58. package/dist/runtime/components/SidebarSpacer.vue +33 -24
  59. package/dist/runtime/components/Skeleton.vue +22 -17
  60. package/dist/runtime/components/Slideover.vue +131 -108
  61. package/dist/runtime/components/StackedLayout.vue +73 -40
  62. package/dist/runtime/components/Switch.vue +95 -100
  63. package/dist/runtime/components/Tabs.vue +107 -81
  64. package/dist/runtime/components/Textarea.vue +201 -177
  65. package/dist/runtime/components/Toast.vue +105 -94
  66. package/dist/runtime/components/Toaster.vue +116 -94
  67. package/dist/runtime/components/Tooltip.vue +64 -78
  68. package/dist/runtime/components/content/TableWrapper.vue +70 -58
  69. package/dist/runtime/composables/useAvatarGroup.d.ts +1 -1
  70. package/dist/runtime/composables/useButtonGroup.d.ts +2 -2
  71. package/dist/runtime/composables/useComponentIcons.d.ts +3 -3
  72. package/dist/runtime/composables/useFormField.d.ts +1 -1
  73. package/dist/runtime/prose/A.vue +23 -18
  74. package/dist/runtime/prose/Blockquote.vue +23 -18
  75. package/dist/runtime/prose/Code.vue +31 -23
  76. package/dist/runtime/prose/Em.vue +23 -18
  77. package/dist/runtime/prose/H1.vue +23 -18
  78. package/dist/runtime/prose/H2.vue +23 -18
  79. package/dist/runtime/prose/H3.vue +23 -18
  80. package/dist/runtime/prose/H4.vue +23 -18
  81. package/dist/runtime/prose/H5.vue +23 -18
  82. package/dist/runtime/prose/H6.vue +23 -18
  83. package/dist/runtime/prose/Hr.vue +19 -18
  84. package/dist/runtime/prose/Img.vue +23 -18
  85. package/dist/runtime/prose/Li.vue +23 -18
  86. package/dist/runtime/prose/Ol.vue +23 -18
  87. package/dist/runtime/prose/P.vue +23 -18
  88. package/dist/runtime/prose/Pre.vue +33 -28
  89. package/dist/runtime/prose/Strong.vue +23 -18
  90. package/dist/runtime/prose/Table.vue +54 -44
  91. package/dist/runtime/prose/Tbody.vue +23 -18
  92. package/dist/runtime/prose/Td.vue +23 -18
  93. package/dist/runtime/prose/Th.vue +23 -18
  94. package/dist/runtime/prose/Thead.vue +23 -18
  95. package/dist/runtime/prose/Tr.vue +23 -18
  96. package/dist/runtime/prose/Ul.vue +23 -18
  97. package/dist/runtime/vue/components/Link.vue +202 -201
  98. package/dist/shared/b24ui-nuxt.DrKwIWoc.cjs +7721 -0
  99. package/dist/types.d.mts +5 -3
  100. package/dist/types.d.ts +7 -0
  101. package/dist/unplugin.cjs +236 -0
  102. package/dist/unplugin.d.cts +33 -0
  103. package/dist/unplugin.d.ts +33 -0
  104. package/dist/vite.cjs +21 -0
  105. package/dist/vite.d.cts +14 -0
  106. package/dist/vite.d.ts +14 -0
  107. package/package.json +25 -13
  108. package/dist/runtime/components/Advice.vue.d.ts +0 -170
  109. package/dist/runtime/components/Alert.vue.d.ts +0 -464
  110. package/dist/runtime/components/App.vue.d.ts +0 -23
  111. package/dist/runtime/components/Avatar.vue.d.ts +0 -281
  112. package/dist/runtime/components/AvatarGroup.vue.d.ts +0 -204
  113. package/dist/runtime/components/Badge.vue.d.ts +0 -517
  114. package/dist/runtime/components/Button.vue.d.ts +0 -640
  115. package/dist/runtime/components/ButtonGroup.vue.d.ts +0 -116
  116. package/dist/runtime/components/Calendar.vue.d.ts +0 -437
  117. package/dist/runtime/components/Checkbox.vue.d.ts +0 -354
  118. package/dist/runtime/components/Chip.vue.d.ts +0 -271
  119. package/dist/runtime/components/Collapsible.vue.d.ts +0 -118
  120. package/dist/runtime/components/Container.vue.d.ts +0 -27
  121. package/dist/runtime/components/Countdown.vue.d.ts +0 -356
  122. package/dist/runtime/components/DescriptionList.vue.d.ts +0 -379
  123. package/dist/runtime/components/DropdownMenu.vue.d.ts +0 -533
  124. package/dist/runtime/components/DropdownMenuContent.vue.d.ts +0 -228
  125. package/dist/runtime/components/Form.vue.d.ts +0 -55
  126. package/dist/runtime/components/FormField.vue.d.ts +0 -282
  127. package/dist/runtime/components/Input.vue.d.ts +0 -755
  128. package/dist/runtime/components/InputMenu.vue.d.ts +0 -1504
  129. package/dist/runtime/components/InputNumber.vue.d.ts +0 -658
  130. package/dist/runtime/components/Kbd.vue.d.ts +0 -109
  131. package/dist/runtime/components/Link.vue.d.ts +0 -129
  132. package/dist/runtime/components/LinkBase.vue.d.ts +0 -48
  133. package/dist/runtime/components/Modal.vue.d.ts +0 -327
  134. package/dist/runtime/components/ModalDialogClose.vue.d.ts +0 -10
  135. package/dist/runtime/components/Navbar.vue.d.ts +0 -101
  136. package/dist/runtime/components/NavbarDivider.vue.d.ts +0 -101
  137. package/dist/runtime/components/NavbarSection.vue.d.ts +0 -101
  138. package/dist/runtime/components/NavbarSpacer.vue.d.ts +0 -101
  139. package/dist/runtime/components/NavigationMenu.vue.d.ts +0 -824
  140. package/dist/runtime/components/OverlayProvider.vue.d.ts +0 -2
  141. package/dist/runtime/components/Popover.vue.d.ts +0 -147
  142. package/dist/runtime/components/Progress.vue.d.ts +0 -592
  143. package/dist/runtime/components/RadioGroup.vue.d.ts +0 -723
  144. package/dist/runtime/components/Range.vue.d.ts +0 -417
  145. package/dist/runtime/components/Select.vue.d.ts +0 -1200
  146. package/dist/runtime/components/SelectMenu.vue.d.ts +0 -1298
  147. package/dist/runtime/components/Separator.vue.d.ts +0 -400
  148. package/dist/runtime/components/Sidebar.vue.d.ts +0 -101
  149. package/dist/runtime/components/SidebarBody.vue.d.ts +0 -90
  150. package/dist/runtime/components/SidebarFooter.vue.d.ts +0 -101
  151. package/dist/runtime/components/SidebarHeader.vue.d.ts +0 -101
  152. package/dist/runtime/components/SidebarHeading.vue.d.ts +0 -101
  153. package/dist/runtime/components/SidebarLayout.vue.d.ts +0 -222
  154. package/dist/runtime/components/SidebarSection.vue.d.ts +0 -101
  155. package/dist/runtime/components/SidebarSpacer.vue.d.ts +0 -101
  156. package/dist/runtime/components/Skeleton.vue.d.ts +0 -26
  157. package/dist/runtime/components/Slideover.vue.d.ts +0 -360
  158. package/dist/runtime/components/StackedLayout.vue.d.ts +0 -192
  159. package/dist/runtime/components/Switch.vue.d.ts +0 -587
  160. package/dist/runtime/components/Tabs.vue.d.ts +0 -453
  161. package/dist/runtime/components/Textarea.vue.d.ts +0 -601
  162. package/dist/runtime/components/Toast.vue.d.ts +0 -438
  163. package/dist/runtime/components/Toaster.vue.d.ts +0 -219
  164. package/dist/runtime/components/Tooltip.vue.d.ts +0 -186
  165. package/dist/runtime/components/content/TableWrapper.vue.d.ts +0 -237
  166. package/dist/runtime/prose/A.vue.d.ts +0 -84
  167. package/dist/runtime/prose/Blockquote.vue.d.ts +0 -84
  168. package/dist/runtime/prose/Code.vue.d.ts +0 -97
  169. package/dist/runtime/prose/Em.vue.d.ts +0 -84
  170. package/dist/runtime/prose/H1.vue.d.ts +0 -97
  171. package/dist/runtime/prose/H2.vue.d.ts +0 -123
  172. package/dist/runtime/prose/H3.vue.d.ts +0 -123
  173. package/dist/runtime/prose/H4.vue.d.ts +0 -123
  174. package/dist/runtime/prose/H5.vue.d.ts +0 -123
  175. package/dist/runtime/prose/H6.vue.d.ts +0 -123
  176. package/dist/runtime/prose/Hr.vue.d.ts +0 -74
  177. package/dist/runtime/prose/Img.vue.d.ts +0 -77
  178. package/dist/runtime/prose/Li.vue.d.ts +0 -84
  179. package/dist/runtime/prose/Ol.vue.d.ts +0 -84
  180. package/dist/runtime/prose/P.vue.d.ts +0 -84
  181. package/dist/runtime/prose/Pre.vue.d.ts +0 -117
  182. package/dist/runtime/prose/Strong.vue.d.ts +0 -84
  183. package/dist/runtime/prose/Table.vue.d.ts +0 -144
  184. package/dist/runtime/prose/Tbody.vue.d.ts +0 -84
  185. package/dist/runtime/prose/Td.vue.d.ts +0 -84
  186. package/dist/runtime/prose/Th.vue.d.ts +0 -84
  187. package/dist/runtime/prose/Thead.vue.d.ts +0 -84
  188. package/dist/runtime/prose/Tr.vue.d.ts +0 -84
  189. package/dist/runtime/prose/Ul.vue.d.ts +0 -84
  190. package/dist/runtime/vue/components/Link.vue.d.ts +0 -129
@@ -1,533 +0,0 @@
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
- } & {};