@bitrix24/b24ui-nuxt 0.5.11 → 0.6.0
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.
- package/.nuxt/b24ui/input-menu.ts +2 -2
- package/.nuxt/b24ui/select-menu.ts +4 -4
- package/.nuxt/b24ui/select.ts +2 -2
- package/dist/meta.d.mts +5208 -5061
- package/dist/meta.mjs +5208 -5061
- package/dist/module.json +3 -3
- package/dist/module.mjs +2 -2
- package/dist/runtime/components/Advice.vue +27 -54
- package/dist/runtime/components/Advice.vue.d.ts +170 -0
- package/dist/runtime/components/Alert.vue +35 -96
- package/dist/runtime/components/Alert.vue.d.ts +464 -0
- package/dist/runtime/components/App.vue +24 -34
- package/dist/runtime/components/App.vue.d.ts +23 -0
- package/dist/runtime/components/Avatar.vue +43 -81
- package/dist/runtime/components/Avatar.vue.d.ts +281 -0
- package/dist/runtime/components/AvatarGroup.vue +40 -76
- package/dist/runtime/components/AvatarGroup.vue.d.ts +204 -0
- package/dist/runtime/components/Badge.vue +40 -83
- package/dist/runtime/components/Badge.vue.d.ts +517 -0
- package/dist/runtime/components/Button.vue +96 -155
- package/dist/runtime/components/Button.vue.d.ts +640 -0
- package/dist/runtime/components/ButtonGroup.vue +19 -51
- package/dist/runtime/components/ButtonGroup.vue.d.ts +116 -0
- package/dist/runtime/components/Calendar.vue +73 -152
- package/dist/runtime/components/Calendar.vue.d.ts +437 -0
- package/dist/runtime/components/Checkbox.vue +42 -73
- package/dist/runtime/components/Checkbox.vue.d.ts +354 -0
- package/dist/runtime/components/Chip.vue +26 -74
- package/dist/runtime/components/Chip.vue.d.ts +271 -0
- package/dist/runtime/components/Collapsible.vue +22 -41
- package/dist/runtime/components/Collapsible.vue.d.ts +118 -0
- package/dist/runtime/components/Container.vue +13 -27
- package/dist/runtime/components/Container.vue.d.ts +27 -0
- package/dist/runtime/components/Countdown.vue +153 -378
- package/dist/runtime/components/Countdown.vue.d.ts +356 -0
- package/dist/runtime/components/DescriptionList.vue +78 -149
- package/dist/runtime/components/DescriptionList.vue.d.ts +379 -0
- package/dist/runtime/components/DropdownMenu.vue +38 -139
- package/dist/runtime/components/DropdownMenu.vue.d.ts +533 -0
- package/dist/runtime/components/DropdownMenuContent.vue +68 -80
- package/dist/runtime/components/DropdownMenuContent.vue.d.ts +228 -0
- package/dist/runtime/components/Form.vue +130 -217
- package/dist/runtime/components/Form.vue.d.ts +55 -0
- package/dist/runtime/components/FormField.vue +36 -80
- package/dist/runtime/components/FormField.vue.d.ts +282 -0
- package/dist/runtime/components/Input.vue +79 -179
- package/dist/runtime/components/Input.vue.d.ts +755 -0
- package/dist/runtime/components/InputMenu.vue +185 -381
- package/dist/runtime/components/InputMenu.vue.d.ts +1523 -0
- package/dist/runtime/components/InputNumber.vue +77 -175
- package/dist/runtime/components/InputNumber.vue.d.ts +658 -0
- package/dist/runtime/components/Kbd.vue +18 -45
- package/dist/runtime/components/Kbd.vue.d.ts +109 -0
- package/dist/runtime/components/Link.vue +92 -173
- package/dist/runtime/components/Link.vue.d.ts +129 -0
- package/dist/runtime/components/LinkBase.vue +33 -42
- package/dist/runtime/components/LinkBase.vue.d.ts +48 -0
- package/dist/runtime/components/Modal.vue +48 -127
- package/dist/runtime/components/Modal.vue.d.ts +327 -0
- package/dist/runtime/components/ModalDialogClose.vue +5 -8
- package/dist/runtime/components/ModalDialogClose.vue.d.ts +10 -0
- package/dist/runtime/components/Navbar.vue +15 -33
- package/dist/runtime/components/Navbar.vue.d.ts +101 -0
- package/dist/runtime/components/NavbarDivider.vue +15 -33
- package/dist/runtime/components/NavbarDivider.vue.d.ts +101 -0
- package/dist/runtime/components/NavbarSection.vue +15 -33
- package/dist/runtime/components/NavbarSection.vue.d.ts +101 -0
- package/dist/runtime/components/NavbarSpacer.vue +15 -33
- package/dist/runtime/components/NavbarSpacer.vue.d.ts +101 -0
- package/dist/runtime/components/NavigationMenu.vue +74 -208
- package/dist/runtime/components/NavigationMenu.vue.d.ts +824 -0
- package/dist/runtime/components/OverlayProvider.vue +14 -18
- package/dist/runtime/components/OverlayProvider.vue.d.ts +2 -0
- package/dist/runtime/components/Popover.vue +40 -81
- package/dist/runtime/components/Popover.vue.d.ts +147 -0
- package/dist/runtime/components/Progress.vue +70 -136
- package/dist/runtime/components/Progress.vue.d.ts +592 -0
- package/dist/runtime/components/RadioGroup.vue +59 -134
- package/dist/runtime/components/RadioGroup.vue.d.ts +723 -0
- package/dist/runtime/components/Range.vue +46 -85
- package/dist/runtime/components/Range.vue.d.ts +417 -0
- package/dist/runtime/components/Select.vue +110 -260
- package/dist/runtime/components/Select.vue.d.ts +1201 -0
- package/dist/runtime/components/SelectMenu.vue +161 -347
- package/dist/runtime/components/SelectMenu.vue.d.ts +1298 -0
- package/dist/runtime/components/Separator.vue +28 -71
- package/dist/runtime/components/Separator.vue.d.ts +400 -0
- package/dist/runtime/components/Sidebar.vue +15 -33
- package/dist/runtime/components/Sidebar.vue.d.ts +101 -0
- package/dist/runtime/components/SidebarBody.vue +17 -38
- package/dist/runtime/components/SidebarBody.vue.d.ts +90 -0
- package/dist/runtime/components/SidebarFooter.vue +15 -33
- package/dist/runtime/components/SidebarFooter.vue.d.ts +101 -0
- package/dist/runtime/components/SidebarHeader.vue +15 -33
- package/dist/runtime/components/SidebarHeader.vue.d.ts +101 -0
- package/dist/runtime/components/SidebarHeading.vue +15 -33
- package/dist/runtime/components/SidebarHeading.vue.d.ts +101 -0
- package/dist/runtime/components/SidebarLayout.vue +34 -70
- package/dist/runtime/components/SidebarLayout.vue.d.ts +222 -0
- package/dist/runtime/components/SidebarSection.vue +15 -33
- package/dist/runtime/components/SidebarSection.vue.d.ts +101 -0
- package/dist/runtime/components/SidebarSpacer.vue +15 -33
- package/dist/runtime/components/SidebarSpacer.vue.d.ts +101 -0
- package/dist/runtime/components/Skeleton.vue +12 -22
- package/dist/runtime/components/Skeleton.vue.d.ts +26 -0
- package/dist/runtime/components/Slideover.vue +50 -131
- package/dist/runtime/components/Slideover.vue.d.ts +360 -0
- package/dist/runtime/components/StackedLayout.vue +34 -73
- package/dist/runtime/components/StackedLayout.vue.d.ts +192 -0
- package/dist/runtime/components/Switch.vue +46 -95
- package/dist/runtime/components/Switch.vue.d.ts +587 -0
- package/dist/runtime/components/Tabs.vue +37 -105
- package/dist/runtime/components/Tabs.vue.d.ts +453 -0
- package/dist/runtime/components/Textarea.vue +92 -201
- package/dist/runtime/components/Textarea.vue.d.ts +601 -0
- package/dist/runtime/components/Toast.vue +47 -105
- package/dist/runtime/components/Toast.vue.d.ts +438 -0
- package/dist/runtime/components/Toaster.vue +70 -115
- package/dist/runtime/components/Toaster.vue.d.ts +219 -0
- package/dist/runtime/components/Tooltip.vue +36 -64
- package/dist/runtime/components/Tooltip.vue.d.ts +186 -0
- package/dist/runtime/components/content/TableWrapper.vue +24 -70
- package/dist/runtime/components/content/TableWrapper.vue.d.ts +237 -0
- package/dist/runtime/composables/useAvatarGroup.d.ts +1 -1
- package/dist/runtime/composables/useButtonGroup.d.ts +2 -2
- package/dist/runtime/composables/useComponentIcons.d.ts +3 -3
- package/dist/runtime/composables/useFormField.d.ts +2 -2
- package/dist/runtime/composables/useOverlay.d.ts +14 -7
- package/dist/runtime/composables/useOverlay.js +14 -6
- package/dist/runtime/prose/A.vue +12 -23
- package/dist/runtime/prose/A.vue.d.ts +84 -0
- package/dist/runtime/prose/Blockquote.vue +12 -23
- package/dist/runtime/prose/Blockquote.vue.d.ts +84 -0
- package/dist/runtime/prose/Code.vue +14 -31
- package/dist/runtime/prose/Code.vue.d.ts +97 -0
- package/dist/runtime/prose/Em.vue +12 -23
- package/dist/runtime/prose/Em.vue.d.ts +84 -0
- package/dist/runtime/prose/H1.vue +12 -23
- package/dist/runtime/prose/H1.vue.d.ts +97 -0
- package/dist/runtime/prose/H2.vue +12 -23
- package/dist/runtime/prose/H2.vue.d.ts +123 -0
- package/dist/runtime/prose/H3.vue +12 -23
- package/dist/runtime/prose/H3.vue.d.ts +123 -0
- package/dist/runtime/prose/H4.vue +12 -23
- package/dist/runtime/prose/H4.vue.d.ts +123 -0
- package/dist/runtime/prose/H5.vue +12 -23
- package/dist/runtime/prose/H5.vue.d.ts +123 -0
- package/dist/runtime/prose/H6.vue +12 -23
- package/dist/runtime/prose/H6.vue.d.ts +123 -0
- package/dist/runtime/prose/Hr.vue +12 -19
- package/dist/runtime/prose/Hr.vue.d.ts +74 -0
- package/dist/runtime/prose/Img.vue +12 -23
- package/dist/runtime/prose/Img.vue.d.ts +77 -0
- package/dist/runtime/prose/Li.vue +12 -23
- package/dist/runtime/prose/Li.vue.d.ts +84 -0
- package/dist/runtime/prose/Ol.vue +12 -23
- package/dist/runtime/prose/Ol.vue.d.ts +84 -0
- package/dist/runtime/prose/P.vue +12 -23
- package/dist/runtime/prose/P.vue.d.ts +84 -0
- package/dist/runtime/prose/Pre.vue +16 -33
- package/dist/runtime/prose/Pre.vue.d.ts +117 -0
- package/dist/runtime/prose/Strong.vue +12 -23
- package/dist/runtime/prose/Strong.vue.d.ts +84 -0
- package/dist/runtime/prose/Table.vue +19 -54
- package/dist/runtime/prose/Table.vue.d.ts +144 -0
- package/dist/runtime/prose/Tbody.vue +12 -23
- package/dist/runtime/prose/Tbody.vue.d.ts +84 -0
- package/dist/runtime/prose/Td.vue +12 -23
- package/dist/runtime/prose/Td.vue.d.ts +84 -0
- package/dist/runtime/prose/Th.vue +12 -23
- package/dist/runtime/prose/Th.vue.d.ts +84 -0
- package/dist/runtime/prose/Thead.vue +12 -23
- package/dist/runtime/prose/Thead.vue.d.ts +84 -0
- package/dist/runtime/prose/Tr.vue +12 -23
- package/dist/runtime/prose/Tr.vue.d.ts +84 -0
- package/dist/runtime/prose/Ul.vue +12 -23
- package/dist/runtime/prose/Ul.vue.d.ts +84 -0
- package/dist/runtime/utils/link.d.ts +3 -3
- package/dist/runtime/vue/components/Link.vue +115 -202
- package/dist/runtime/vue/components/Link.vue.d.ts +129 -0
- package/dist/shared/{b24ui-nuxt.CS9Lf0os.mjs → b24ui-nuxt.BA6Y2FnC.mjs} +6 -6
- package/dist/types.d.mts +3 -5
- package/dist/unplugin.mjs +1 -1
- package/dist/vite.mjs +1 -1
- package/package.json +14 -22
- package/dist/meta.cjs +0 -72112
- package/dist/meta.d.cts +0 -72110
- package/dist/meta.d.ts +0 -72110
- package/dist/module.cjs +0 -63
- package/dist/module.d.cts +0 -15
- package/dist/module.d.ts +0 -15
- package/dist/shared/b24ui-nuxt.DrKwIWoc.cjs +0 -7721
- package/dist/types.d.ts +0 -7
- package/dist/unplugin.cjs +0 -236
- package/dist/unplugin.d.cts +0 -33
- package/dist/unplugin.d.ts +0 -33
- package/dist/vite.cjs +0 -21
- package/dist/vite.d.cts +0 -14
- 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
|
+
} & {};
|