@mantine-vue/core 2.0.0 → 2.1.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/cjs/index.cjs +3615 -2207
- package/cjs/index.cjs.map +1 -1
- package/esm/index.mjs +3594 -2208
- package/esm/index.mjs.map +1 -1
- package/lib/components/Accordion/Accordion.d.ts +11 -11
- package/lib/components/Accordion/AccordionControl/AccordionControl.d.ts +15 -9
- package/lib/components/ActionIcon/ActionIcon.d.ts +1 -1
- package/lib/components/ActionIcon/ActionIconGroup/ActionIconGroup.d.ts +1 -1
- package/lib/components/Alert/Alert.d.ts +14 -8
- package/lib/components/AppShell/AppShell.d.ts +3 -3
- package/lib/components/Autocomplete/Autocomplete.d.ts +15 -3
- package/lib/components/Badge/Badge.d.ts +13 -10
- package/lib/components/Blockquote/Blockquote.d.ts +14 -8
- package/lib/components/Breadcrumbs/Breadcrumbs.d.ts +10 -5
- package/lib/components/Button/Button.d.ts +1 -1
- package/lib/components/Button/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/lib/components/Card/Card.d.ts +3 -3
- package/lib/components/Checkbox/Checkbox.d.ts +44 -32
- package/lib/components/Checkbox/CheckboxGroup/CheckboxGroup.d.ts +18 -11
- package/lib/components/Checkbox/CheckboxIndicator/CheckboxIndicator.d.ts +9 -2
- package/lib/components/CloseButton/CloseButton.d.ts +10 -5
- package/lib/components/Collapse/Collapse.d.ts +1 -1
- package/lib/components/Combobox/Combobox.d.ts +4 -4
- package/lib/components/Combobox/OptionsDropdown/OptionsDropdown.d.ts +6 -2
- package/lib/components/ComboboxPopover/ComboboxPopover.d.ts +970 -0
- package/lib/components/ComboboxPopover/ComboboxPopover.types.d.ts +2 -0
- package/lib/components/ComboboxPopover/ComboboxPopoverTarget.d.ts +24 -0
- package/lib/components/ComboboxPopover/index.d.ts +5 -0
- package/lib/components/DataList/DataList.context.d.ts +4 -0
- package/lib/components/DataList/DataList.d.ts +304 -0
- package/lib/components/DataList/DataListItem/DataListItem.d.ts +44 -0
- package/lib/components/DataList/DataListItemLabel/DataListItemLabel.d.ts +44 -0
- package/lib/components/DataList/DataListItemValue/DataListItemValue.d.ts +44 -0
- package/lib/components/DataList/index.d.ts +10 -0
- package/lib/components/Dialog/Dialog.d.ts +1 -1
- package/lib/components/Divider/Divider.d.ts +11 -6
- package/lib/components/Drawer/Drawer.d.ts +14 -9
- package/lib/components/EmptyState/EmptyState.context.d.ts +5 -0
- package/lib/components/EmptyState/EmptyState.d.ts +401 -0
- package/lib/components/EmptyState/EmptyStateActions/EmptyStateActions.d.ts +44 -0
- package/lib/components/EmptyState/EmptyStateDescription/EmptyStateDescription.d.ts +44 -0
- package/lib/components/EmptyState/EmptyStateIndicator/EmptyStateIndicator.d.ts +44 -0
- package/lib/components/EmptyState/EmptyStateTitle/EmptyStateTitle.d.ts +55 -0
- package/lib/components/EmptyState/index.d.ts +12 -0
- package/lib/components/Fieldset/Fieldset.d.ts +10 -5
- package/lib/components/FileButton/FileButton.d.ts +1 -1
- package/lib/components/FileInput/FileInput.d.ts +27 -18
- package/lib/components/Highlight/Highlight.d.ts +1 -1
- package/lib/components/HoverCard/HoverCard.context.d.ts +1 -0
- package/lib/components/HoverCard/use-hover-card.d.ts +1 -0
- package/lib/components/Indicator/Indicator.d.ts +10 -5
- package/lib/components/Input/Input.d.ts +29 -25
- package/lib/components/Input/InputWrapper/InputWrapper.d.ts +18 -11
- package/lib/components/InputBase/InputBase.d.ts +22 -15
- package/lib/components/List/List.d.ts +21 -16
- package/lib/components/List/ListItem/ListItem.d.ts +10 -5
- package/lib/components/Marquee/Marquee.d.ts +1 -1
- package/lib/components/Menu/Menu.d.ts +69 -30
- package/lib/components/Menubar/Menubar.context.d.ts +51 -0
- package/lib/components/Menubar/Menubar.d.ts +282 -0
- package/lib/components/Menubar/MenubarDropdown/MenubarDropdown.d.ts +10 -0
- package/lib/components/Menubar/MenubarMenu/MenubarMenu.d.ts +49 -0
- package/lib/components/Menubar/MenubarTarget/MenubarTarget.d.ts +35 -0
- package/lib/components/Menubar/index.d.ts +10 -0
- package/lib/components/Modal/Modal.d.ts +14 -9
- package/lib/components/MultiSelect/MultiSelect.d.ts +16 -4
- package/lib/components/NativeSelect/NativeSelect.d.ts +25 -16
- package/lib/components/NavLink/NavLink.d.ts +15 -9
- package/lib/components/Notification/Notification.d.ts +14 -8
- package/lib/components/NumberInput/NumberInput.d.ts +22 -14
- package/lib/components/Overlay/Overlay.d.ts +1 -1
- package/lib/components/Pagination/Pagination.d.ts +5 -5
- package/lib/components/Pagination/PaginationDots/PaginationDots.d.ts +5 -2
- package/lib/components/Pagination/PaginationEdges/PaginationEdges.d.ts +8 -5
- package/lib/components/PasswordInput/PasswordInput.d.ts +26 -18
- package/lib/components/PillsInput/PillsInput.d.ts +30 -21
- package/lib/components/PinInput/PinInput.d.ts +2 -2
- package/lib/components/Progress/Progress.d.ts +4 -4
- package/lib/components/Progress/ProgressRoot/ProgressRoot.d.ts +1 -1
- package/lib/components/Radio/Radio.d.ts +42 -32
- package/lib/components/Radio/RadioGroup/RadioGroup.d.ts +18 -11
- package/lib/components/Radio/RadioIndicator/RadioIndicator.d.ts +8 -2
- package/lib/components/Rating/Rating.d.ts +17 -8
- package/lib/components/ScrollArea/ScrollAreaScrollbar/ScrollAreaScrollbarVisible.d.ts +1 -1
- package/lib/components/SegmentedControl/SegmentedControl.d.ts +1 -1
- package/lib/components/Select/Select.d.ts +17 -5
- package/lib/components/SemiCircleProgress/SemiCircleProgress.d.ts +10 -6
- package/lib/components/Skeleton/Skeleton.d.ts +2 -2
- package/lib/components/Slider/RangeSlider/RangeSlider.d.ts +13 -4
- package/lib/components/Slider/Slider/Slider.d.ts +10 -4
- package/lib/components/Slider/SliderRoot/SliderRoot.d.ts +1 -1
- package/lib/components/Slider/Thumb/Thumb.d.ts +1 -1
- package/lib/components/Splitter/Splitter.d.ts +3 -3
- package/lib/components/Spoiler/Spoiler.d.ts +18 -10
- package/lib/components/Stepper/Stepper.d.ts +22 -10
- package/lib/components/Stepper/StepperStep/StepperStep.d.ts +15 -5
- package/lib/components/Switch/Switch.d.ts +58 -49
- package/lib/components/Switch/SwitchGroup/SwitchGroup.d.ts +18 -11
- package/lib/components/Table/Table.d.ts +3 -3
- package/lib/components/Tabs/Tabs.d.ts +14 -14
- package/lib/components/Tabs/TabsTab/TabsTab.d.ts +13 -9
- package/lib/components/TagsInput/TagsInput.d.ts +15 -3
- package/lib/components/Text/Text.d.ts +1 -1
- package/lib/components/Textarea/Textarea.d.ts +1 -1
- package/lib/components/Timeline/Timeline.d.ts +8 -8
- package/lib/components/Timeline/TimelineItem/TimelineItem.d.ts +15 -9
- package/lib/components/TreeSelect/TreeSelect.d.ts +14 -5
- package/lib/components/index.d.ts +4 -0
- package/lib/core/Box/Box.d.ts +2 -2
- package/lib/core/index.d.ts +1 -0
- package/lib/core/renderable-node.d.ts +10 -0
- package/lib/core/utils/create-scoped-keydown-handler.d.ts +10 -0
- package/lib/core/utils/index.d.ts +1 -0
- package/lib/utils/InlineInput/InlineInput.d.ts +1 -1
- package/package.json +3 -3
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
import { type PropType } from 'vue';
|
|
1
|
+
import { type PropType, type SlotsType, type VNodeChild } from 'vue';
|
|
2
|
+
import { type MantineNode } from '../../core';
|
|
3
|
+
export interface ListSlots {
|
|
4
|
+
default?: () => VNodeChild;
|
|
5
|
+
icon?: () => VNodeChild;
|
|
6
|
+
}
|
|
2
7
|
export declare const List: import("../..").WithBoxProps<{
|
|
3
8
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
4
9
|
type: {
|
|
@@ -14,7 +19,7 @@ export declare const List: import("../..").WithBoxProps<{
|
|
|
14
19
|
default: undefined;
|
|
15
20
|
};
|
|
16
21
|
icon: {
|
|
17
|
-
type:
|
|
22
|
+
type: PropType<MantineNode>;
|
|
18
23
|
default: undefined;
|
|
19
24
|
};
|
|
20
25
|
spacing: PropType<string | number>;
|
|
@@ -58,19 +63,19 @@ export declare const List: import("../..").WithBoxProps<{
|
|
|
58
63
|
[key: string]: any;
|
|
59
64
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
60
65
|
size: string;
|
|
66
|
+
center: boolean;
|
|
61
67
|
type: "ordered" | "unordered";
|
|
62
68
|
classNames: Function | Record<string, any>;
|
|
63
69
|
styles: Function | Record<string, any>;
|
|
64
|
-
center: boolean;
|
|
65
70
|
start: number;
|
|
66
71
|
mod: any;
|
|
67
|
-
icon:
|
|
72
|
+
icon: MantineNode;
|
|
68
73
|
listStyleType: string;
|
|
69
74
|
vars: Function | Record<string, any>;
|
|
70
75
|
unstyled: boolean;
|
|
71
76
|
withPadding: boolean;
|
|
72
77
|
reversed: boolean;
|
|
73
|
-
}, true, {},
|
|
78
|
+
}, true, {}, SlotsType<ListSlots>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
74
79
|
P: {};
|
|
75
80
|
B: {};
|
|
76
81
|
D: {};
|
|
@@ -91,7 +96,7 @@ export declare const List: import("../..").WithBoxProps<{
|
|
|
91
96
|
default: undefined;
|
|
92
97
|
};
|
|
93
98
|
icon: {
|
|
94
|
-
type:
|
|
99
|
+
type: PropType<MantineNode>;
|
|
95
100
|
default: undefined;
|
|
96
101
|
};
|
|
97
102
|
spacing: PropType<string | number>;
|
|
@@ -135,13 +140,13 @@ export declare const List: import("../..").WithBoxProps<{
|
|
|
135
140
|
[key: string]: any;
|
|
136
141
|
}>, {}, {}, {}, {
|
|
137
142
|
size: string;
|
|
143
|
+
center: boolean;
|
|
138
144
|
type: "ordered" | "unordered";
|
|
139
145
|
classNames: Function | Record<string, any>;
|
|
140
146
|
styles: Function | Record<string, any>;
|
|
141
|
-
center: boolean;
|
|
142
147
|
start: number;
|
|
143
148
|
mod: any;
|
|
144
|
-
icon:
|
|
149
|
+
icon: MantineNode;
|
|
145
150
|
listStyleType: string;
|
|
146
151
|
vars: Function | Record<string, any>;
|
|
147
152
|
unstyled: boolean;
|
|
@@ -165,7 +170,7 @@ export declare const List: import("../..").WithBoxProps<{
|
|
|
165
170
|
default: undefined;
|
|
166
171
|
};
|
|
167
172
|
icon: {
|
|
168
|
-
type:
|
|
173
|
+
type: PropType<MantineNode>;
|
|
169
174
|
default: undefined;
|
|
170
175
|
};
|
|
171
176
|
spacing: PropType<string | number>;
|
|
@@ -209,22 +214,22 @@ export declare const List: import("../..").WithBoxProps<{
|
|
|
209
214
|
[key: string]: any;
|
|
210
215
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
211
216
|
size: string;
|
|
217
|
+
center: boolean;
|
|
212
218
|
type: "ordered" | "unordered";
|
|
213
219
|
classNames: Function | Record<string, any>;
|
|
214
220
|
styles: Function | Record<string, any>;
|
|
215
|
-
center: boolean;
|
|
216
221
|
start: number;
|
|
217
222
|
mod: any;
|
|
218
|
-
icon:
|
|
223
|
+
icon: MantineNode;
|
|
219
224
|
listStyleType: string;
|
|
220
225
|
vars: Function | Record<string, any>;
|
|
221
226
|
unstyled: boolean;
|
|
222
227
|
withPadding: boolean;
|
|
223
228
|
reversed: boolean;
|
|
224
|
-
}, {}, string,
|
|
229
|
+
}, {}, string, SlotsType<ListSlots>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
225
230
|
Item: import("../..").WithBoxProps<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
226
231
|
icon: {
|
|
227
|
-
type:
|
|
232
|
+
type: PropType<MantineNode>;
|
|
228
233
|
default: undefined;
|
|
229
234
|
};
|
|
230
235
|
mod: {
|
|
@@ -247,7 +252,7 @@ export declare const List: import("../..").WithBoxProps<{
|
|
|
247
252
|
[key: string]: any;
|
|
248
253
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
249
254
|
icon: {
|
|
250
|
-
type:
|
|
255
|
+
type: PropType<MantineNode>;
|
|
251
256
|
default: undefined;
|
|
252
257
|
};
|
|
253
258
|
mod: {
|
|
@@ -270,7 +275,7 @@ export declare const List: import("../..").WithBoxProps<{
|
|
|
270
275
|
classNames: Function | Record<string, any>;
|
|
271
276
|
styles: Function | Record<string, any>;
|
|
272
277
|
mod: any;
|
|
273
|
-
icon:
|
|
278
|
+
icon: MantineNode;
|
|
274
279
|
vars: Function | Record<string, any>;
|
|
275
|
-
},
|
|
280
|
+
}, SlotsType<import(".").ListItemSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
276
281
|
}>;
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
import { type PropType } from 'vue';
|
|
1
|
+
import { type PropType, type SlotsType, type VNodeChild } from 'vue';
|
|
2
|
+
import { type MantineNode } from '../../../core';
|
|
3
|
+
export interface ListItemSlots {
|
|
4
|
+
default?: () => VNodeChild;
|
|
5
|
+
icon?: () => VNodeChild;
|
|
6
|
+
}
|
|
2
7
|
export declare const ListItem: import("../../..").WithBoxProps<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
8
|
icon: {
|
|
4
|
-
type:
|
|
9
|
+
type: PropType<MantineNode>;
|
|
5
10
|
default: undefined;
|
|
6
11
|
};
|
|
7
12
|
mod: {
|
|
@@ -24,7 +29,7 @@ export declare const ListItem: import("../../..").WithBoxProps<import("vue").Def
|
|
|
24
29
|
[key: string]: any;
|
|
25
30
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
26
31
|
icon: {
|
|
27
|
-
type:
|
|
32
|
+
type: PropType<MantineNode>;
|
|
28
33
|
default: undefined;
|
|
29
34
|
};
|
|
30
35
|
mod: {
|
|
@@ -47,6 +52,6 @@ export declare const ListItem: import("../../..").WithBoxProps<import("vue").Def
|
|
|
47
52
|
classNames: Function | Record<string, any>;
|
|
48
53
|
styles: Function | Record<string, any>;
|
|
49
54
|
mod: any;
|
|
50
|
-
icon:
|
|
55
|
+
icon: MantineNode;
|
|
51
56
|
vars: Function | Record<string, any>;
|
|
52
|
-
},
|
|
57
|
+
}, SlotsType<ListItemSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
@@ -118,13 +118,13 @@ export declare const Marquee: import("../..").WithBoxProps<import("vue").DefineC
|
|
|
118
118
|
};
|
|
119
119
|
}>> & Readonly<{}>, {
|
|
120
120
|
repeat: number;
|
|
121
|
+
orientation: "vertical" | "horizontal";
|
|
121
122
|
reverse: boolean;
|
|
122
123
|
classNames: Function | Record<string, any>;
|
|
123
124
|
styles: Function | Record<string, any>;
|
|
124
125
|
duration: number;
|
|
125
126
|
mod: any;
|
|
126
127
|
gap: string | number;
|
|
127
|
-
orientation: "horizontal" | "vertical";
|
|
128
128
|
vars: Function | Record<string, any>;
|
|
129
129
|
unstyled: boolean;
|
|
130
130
|
fadeEdgeColor: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { type PropType } from 'vue';
|
|
1
|
+
import { type PropType, type SlotsType, type VNodeChild } from 'vue';
|
|
2
|
+
import { type MantineNode, type SectionSlots } from '../../core';
|
|
2
3
|
import { type PopoverProps } from '../Popover';
|
|
3
4
|
export interface MenuProps extends PopoverProps {
|
|
4
5
|
closeOnItemClick?: boolean;
|
|
@@ -40,11 +41,11 @@ export declare const MenuItem: import("vue").DefineComponent<import("vue").Extra
|
|
|
40
41
|
default: undefined;
|
|
41
42
|
};
|
|
42
43
|
leftSection: {
|
|
43
|
-
type:
|
|
44
|
+
type: PropType<MantineNode>;
|
|
44
45
|
default: undefined;
|
|
45
46
|
};
|
|
46
47
|
rightSection: {
|
|
47
|
-
type:
|
|
48
|
+
type: PropType<MantineNode>;
|
|
48
49
|
default: undefined;
|
|
49
50
|
};
|
|
50
51
|
indicator: {
|
|
@@ -66,11 +67,11 @@ export declare const MenuItem: import("vue").DefineComponent<import("vue").Extra
|
|
|
66
67
|
default: undefined;
|
|
67
68
|
};
|
|
68
69
|
leftSection: {
|
|
69
|
-
type:
|
|
70
|
+
type: PropType<MantineNode>;
|
|
70
71
|
default: undefined;
|
|
71
72
|
};
|
|
72
73
|
rightSection: {
|
|
73
|
-
type:
|
|
74
|
+
type: PropType<MantineNode>;
|
|
74
75
|
default: undefined;
|
|
75
76
|
};
|
|
76
77
|
indicator: {
|
|
@@ -82,12 +83,14 @@ export declare const MenuItem: import("vue").DefineComponent<import("vue").Extra
|
|
|
82
83
|
}>> & Readonly<{}>, {
|
|
83
84
|
disabled: boolean;
|
|
84
85
|
component: string | Function | Record<string, any>;
|
|
85
|
-
leftSection:
|
|
86
|
-
rightSection:
|
|
86
|
+
leftSection: MantineNode;
|
|
87
|
+
rightSection: MantineNode;
|
|
87
88
|
indicator: any;
|
|
88
89
|
reserveIndicator: boolean;
|
|
89
90
|
closeMenuOnClick: boolean;
|
|
90
|
-
},
|
|
91
|
+
}, SlotsType<SectionSlots & {
|
|
92
|
+
default?: () => VNodeChild;
|
|
93
|
+
}>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
91
94
|
export declare const MenuLabel: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
92
95
|
[key: string]: any;
|
|
93
96
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -179,6 +182,14 @@ export declare const MenuRadioGroup: import("vue").DefineComponent<import("vue")
|
|
|
179
182
|
defaultValue: any;
|
|
180
183
|
modelValue: any;
|
|
181
184
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
185
|
+
export interface MenuCheckboxItemSlots {
|
|
186
|
+
default?: () => VNodeChild;
|
|
187
|
+
leftSection?: () => VNodeChild;
|
|
188
|
+
rightSection?: () => VNodeChild;
|
|
189
|
+
checkIcon?: (payload: {
|
|
190
|
+
checked: boolean;
|
|
191
|
+
}) => VNodeChild;
|
|
192
|
+
}
|
|
182
193
|
export declare const MenuCheckboxItem: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
183
194
|
value: StringConstructor;
|
|
184
195
|
checked: {
|
|
@@ -188,7 +199,7 @@ export declare const MenuCheckboxItem: import("vue").DefineComponent<import("vue
|
|
|
188
199
|
defaultChecked: BooleanConstructor;
|
|
189
200
|
onChange: FunctionConstructor;
|
|
190
201
|
checkIcon: {
|
|
191
|
-
type: PropType<
|
|
202
|
+
type: PropType<MantineNode>;
|
|
192
203
|
default: undefined;
|
|
193
204
|
};
|
|
194
205
|
closeMenuOnClick: {
|
|
@@ -206,7 +217,7 @@ export declare const MenuCheckboxItem: import("vue").DefineComponent<import("vue
|
|
|
206
217
|
defaultChecked: BooleanConstructor;
|
|
207
218
|
onChange: FunctionConstructor;
|
|
208
219
|
checkIcon: {
|
|
209
|
-
type: PropType<
|
|
220
|
+
type: PropType<MantineNode>;
|
|
210
221
|
default: undefined;
|
|
211
222
|
};
|
|
212
223
|
closeMenuOnClick: {
|
|
@@ -216,9 +227,17 @@ export declare const MenuCheckboxItem: import("vue").DefineComponent<import("vue
|
|
|
216
227
|
}>> & Readonly<{}>, {
|
|
217
228
|
checked: boolean;
|
|
218
229
|
defaultChecked: boolean;
|
|
219
|
-
checkIcon:
|
|
230
|
+
checkIcon: MantineNode;
|
|
220
231
|
closeMenuOnClick: boolean;
|
|
221
|
-
},
|
|
232
|
+
}, SlotsType<MenuCheckboxItemSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
233
|
+
export interface MenuRadioItemSlots {
|
|
234
|
+
default?: () => VNodeChild;
|
|
235
|
+
leftSection?: () => VNodeChild;
|
|
236
|
+
rightSection?: () => VNodeChild;
|
|
237
|
+
checkIcon?: (payload: {
|
|
238
|
+
checked: boolean;
|
|
239
|
+
}) => VNodeChild;
|
|
240
|
+
}
|
|
222
241
|
export declare const MenuRadioItem: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
223
242
|
value: {
|
|
224
243
|
type: StringConstructor;
|
|
@@ -229,6 +248,10 @@ export declare const MenuRadioItem: import("vue").DefineComponent<import("vue").
|
|
|
229
248
|
default: undefined;
|
|
230
249
|
};
|
|
231
250
|
onChange: FunctionConstructor;
|
|
251
|
+
checkIcon: {
|
|
252
|
+
type: PropType<MantineNode>;
|
|
253
|
+
default: undefined;
|
|
254
|
+
};
|
|
232
255
|
closeMenuOnClick: {
|
|
233
256
|
type: BooleanConstructor;
|
|
234
257
|
default: boolean;
|
|
@@ -245,14 +268,19 @@ export declare const MenuRadioItem: import("vue").DefineComponent<import("vue").
|
|
|
245
268
|
default: undefined;
|
|
246
269
|
};
|
|
247
270
|
onChange: FunctionConstructor;
|
|
271
|
+
checkIcon: {
|
|
272
|
+
type: PropType<MantineNode>;
|
|
273
|
+
default: undefined;
|
|
274
|
+
};
|
|
248
275
|
closeMenuOnClick: {
|
|
249
276
|
type: BooleanConstructor;
|
|
250
277
|
default: boolean;
|
|
251
278
|
};
|
|
252
279
|
}>> & Readonly<{}>, {
|
|
253
280
|
checked: boolean;
|
|
281
|
+
checkIcon: MantineNode;
|
|
254
282
|
closeMenuOnClick: boolean;
|
|
255
|
-
},
|
|
283
|
+
}, SlotsType<MenuRadioItemSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
256
284
|
export declare const MenuContextMenu: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
257
285
|
disabled: BooleanConstructor;
|
|
258
286
|
longPressDelay: NumberConstructor;
|
|
@@ -517,8 +545,8 @@ export declare const Menu: {
|
|
|
517
545
|
}>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
518
546
|
[key: string]: any;
|
|
519
547
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
520
|
-
opened: boolean;
|
|
521
548
|
loop: boolean;
|
|
549
|
+
opened: boolean;
|
|
522
550
|
unstyled: boolean;
|
|
523
551
|
defaultOpened: boolean;
|
|
524
552
|
checkIcon: any;
|
|
@@ -588,8 +616,8 @@ export declare const Menu: {
|
|
|
588
616
|
}>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
589
617
|
[key: string]: any;
|
|
590
618
|
}>, {}, {}, {}, {
|
|
591
|
-
opened: boolean;
|
|
592
619
|
loop: boolean;
|
|
620
|
+
opened: boolean;
|
|
593
621
|
unstyled: boolean;
|
|
594
622
|
defaultOpened: boolean;
|
|
595
623
|
checkIcon: any;
|
|
@@ -656,8 +684,8 @@ export declare const Menu: {
|
|
|
656
684
|
}>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
657
685
|
[key: string]: any;
|
|
658
686
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
659
|
-
opened: boolean;
|
|
660
687
|
loop: boolean;
|
|
688
|
+
opened: boolean;
|
|
661
689
|
unstyled: boolean;
|
|
662
690
|
defaultOpened: boolean;
|
|
663
691
|
checkIcon: any;
|
|
@@ -681,11 +709,11 @@ export declare const Menu: {
|
|
|
681
709
|
default: undefined;
|
|
682
710
|
};
|
|
683
711
|
leftSection: {
|
|
684
|
-
type:
|
|
712
|
+
type: PropType<MantineNode>;
|
|
685
713
|
default: undefined;
|
|
686
714
|
};
|
|
687
715
|
rightSection: {
|
|
688
|
-
type:
|
|
716
|
+
type: PropType<MantineNode>;
|
|
689
717
|
default: undefined;
|
|
690
718
|
};
|
|
691
719
|
indicator: {
|
|
@@ -707,11 +735,11 @@ export declare const Menu: {
|
|
|
707
735
|
default: undefined;
|
|
708
736
|
};
|
|
709
737
|
leftSection: {
|
|
710
|
-
type:
|
|
738
|
+
type: PropType<MantineNode>;
|
|
711
739
|
default: undefined;
|
|
712
740
|
};
|
|
713
741
|
rightSection: {
|
|
714
|
-
type:
|
|
742
|
+
type: PropType<MantineNode>;
|
|
715
743
|
default: undefined;
|
|
716
744
|
};
|
|
717
745
|
indicator: {
|
|
@@ -723,12 +751,14 @@ export declare const Menu: {
|
|
|
723
751
|
}>> & Readonly<{}>, {
|
|
724
752
|
disabled: boolean;
|
|
725
753
|
component: string | Function | Record<string, any>;
|
|
726
|
-
leftSection:
|
|
727
|
-
rightSection:
|
|
754
|
+
leftSection: MantineNode;
|
|
755
|
+
rightSection: MantineNode;
|
|
728
756
|
indicator: any;
|
|
729
757
|
reserveIndicator: boolean;
|
|
730
758
|
closeMenuOnClick: boolean;
|
|
731
|
-
},
|
|
759
|
+
}, SlotsType<SectionSlots & {
|
|
760
|
+
default?: () => VNodeChild;
|
|
761
|
+
}>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
732
762
|
Label: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
733
763
|
[key: string]: any;
|
|
734
764
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -956,7 +986,7 @@ export declare const Menu: {
|
|
|
956
986
|
defaultChecked: BooleanConstructor;
|
|
957
987
|
onChange: FunctionConstructor;
|
|
958
988
|
checkIcon: {
|
|
959
|
-
type: PropType<
|
|
989
|
+
type: PropType<MantineNode>;
|
|
960
990
|
default: undefined;
|
|
961
991
|
};
|
|
962
992
|
closeMenuOnClick: {
|
|
@@ -974,7 +1004,7 @@ export declare const Menu: {
|
|
|
974
1004
|
defaultChecked: BooleanConstructor;
|
|
975
1005
|
onChange: FunctionConstructor;
|
|
976
1006
|
checkIcon: {
|
|
977
|
-
type: PropType<
|
|
1007
|
+
type: PropType<MantineNode>;
|
|
978
1008
|
default: undefined;
|
|
979
1009
|
};
|
|
980
1010
|
closeMenuOnClick: {
|
|
@@ -984,9 +1014,9 @@ export declare const Menu: {
|
|
|
984
1014
|
}>> & Readonly<{}>, {
|
|
985
1015
|
checked: boolean;
|
|
986
1016
|
defaultChecked: boolean;
|
|
987
|
-
checkIcon:
|
|
1017
|
+
checkIcon: MantineNode;
|
|
988
1018
|
closeMenuOnClick: boolean;
|
|
989
|
-
},
|
|
1019
|
+
}, SlotsType<MenuCheckboxItemSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
990
1020
|
CheckboxGroup: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
991
1021
|
modelValue: {
|
|
992
1022
|
type: PropType<any>;
|
|
@@ -1032,6 +1062,10 @@ export declare const Menu: {
|
|
|
1032
1062
|
default: undefined;
|
|
1033
1063
|
};
|
|
1034
1064
|
onChange: FunctionConstructor;
|
|
1065
|
+
checkIcon: {
|
|
1066
|
+
type: PropType<MantineNode>;
|
|
1067
|
+
default: undefined;
|
|
1068
|
+
};
|
|
1035
1069
|
closeMenuOnClick: {
|
|
1036
1070
|
type: BooleanConstructor;
|
|
1037
1071
|
default: boolean;
|
|
@@ -1048,14 +1082,19 @@ export declare const Menu: {
|
|
|
1048
1082
|
default: undefined;
|
|
1049
1083
|
};
|
|
1050
1084
|
onChange: FunctionConstructor;
|
|
1085
|
+
checkIcon: {
|
|
1086
|
+
type: PropType<MantineNode>;
|
|
1087
|
+
default: undefined;
|
|
1088
|
+
};
|
|
1051
1089
|
closeMenuOnClick: {
|
|
1052
1090
|
type: BooleanConstructor;
|
|
1053
1091
|
default: boolean;
|
|
1054
1092
|
};
|
|
1055
1093
|
}>> & Readonly<{}>, {
|
|
1056
1094
|
checked: boolean;
|
|
1095
|
+
checkIcon: MantineNode;
|
|
1057
1096
|
closeMenuOnClick: boolean;
|
|
1058
|
-
},
|
|
1097
|
+
}, SlotsType<MenuRadioItemSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
1059
1098
|
RadioGroup: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
1060
1099
|
modelValue: {
|
|
1061
1100
|
type: PropType<any>;
|
|
@@ -1107,8 +1146,8 @@ export type MenuStylesNames = 'item' | 'itemLabel' | 'itemSection' | 'itemIndica
|
|
|
1107
1146
|
export interface MenuItemProps {
|
|
1108
1147
|
color?: string;
|
|
1109
1148
|
closeMenuOnClick?: boolean;
|
|
1110
|
-
leftSection?:
|
|
1111
|
-
rightSection?:
|
|
1149
|
+
leftSection?: MantineNode;
|
|
1150
|
+
rightSection?: MantineNode;
|
|
1112
1151
|
disabled?: boolean;
|
|
1113
1152
|
[key: string]: any;
|
|
1114
1153
|
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { Ref } from 'vue';
|
|
2
|
+
export interface MenubarContextValue {
|
|
3
|
+
getStyles: (selector: string, options?: Record<string, any>) => any;
|
|
4
|
+
/** Unique id of the menubar instance, used to scope dropdown lookups across multiple menubars */
|
|
5
|
+
id: string;
|
|
6
|
+
/** Revision counter bumped whenever the set of targets changes, used by menus to recompute their DOM index */
|
|
7
|
+
revision: Ref<number>;
|
|
8
|
+
/** Index of the currently opened menu, `null` when all menus are closed */
|
|
9
|
+
readonly openIndex: number | null;
|
|
10
|
+
/** Opens the menu at the given index, `null` closes all menus */
|
|
11
|
+
setOpenIndex: (index: number | null) => void;
|
|
12
|
+
/** Opens the menu at the given index and records whether it was opened by click or hover */
|
|
13
|
+
openMenu: (index: number, source: 'click' | 'hover') => void;
|
|
14
|
+
/** Closes all menus */
|
|
15
|
+
closeMenu: () => void;
|
|
16
|
+
/** Schedules a delayed close, used by hover trigger when the pointer leaves the bar */
|
|
17
|
+
scheduleClose: () => void;
|
|
18
|
+
/** Cancels a pending delayed close */
|
|
19
|
+
cancelClose: () => void;
|
|
20
|
+
/** Returns how the currently opened menu was opened */
|
|
21
|
+
getOpenSource: () => 'click' | 'hover' | null;
|
|
22
|
+
/** Returns the previously opened menu index, used to skip transitions when switching menus */
|
|
23
|
+
getPreviousOpenIndex: () => number | null;
|
|
24
|
+
/** Index of the menu that currently holds the single menubar tab stop */
|
|
25
|
+
readonly activeIndex: number;
|
|
26
|
+
/** Sets the roving tabindex to the given menu index */
|
|
27
|
+
setActiveIndex: (index: number) => void;
|
|
28
|
+
readonly trigger: 'click' | 'hover';
|
|
29
|
+
readonly loop: boolean;
|
|
30
|
+
readonly position: string;
|
|
31
|
+
readonly unstyled: boolean | undefined;
|
|
32
|
+
/** Returns the DOM-order index of a `Menubar.Menu` by its id */
|
|
33
|
+
getMenuIndex: (id: string) => number;
|
|
34
|
+
/** Returns all top-level target buttons in DOM order */
|
|
35
|
+
getTargets: () => HTMLButtonElement[];
|
|
36
|
+
/** Returns the indexes of the enabled top-level targets in DOM order */
|
|
37
|
+
getEnabledIndexes: () => number[];
|
|
38
|
+
/** Returns the index of the next/previous enabled target relative to `current` */
|
|
39
|
+
getAdjacentIndex: (current: number, direction: 1 | -1) => number;
|
|
40
|
+
/** Focuses the top-level target at the given index */
|
|
41
|
+
focusTarget: (index: number) => void;
|
|
42
|
+
/** Focuses the first or last item of the (opened) menu at the given index */
|
|
43
|
+
focusMenuItem: (index: number, position: 'first' | 'last') => void;
|
|
44
|
+
}
|
|
45
|
+
export declare const provideMenubarContext: (value: MenubarContextValue) => void, useMenubarContext: () => MenubarContextValue;
|
|
46
|
+
export interface MenubarMenuContextValue {
|
|
47
|
+
readonly id: string;
|
|
48
|
+
readonly index: number;
|
|
49
|
+
readonly opened: boolean;
|
|
50
|
+
}
|
|
51
|
+
export declare const provideMenubarMenuContext: (value: MenubarMenuContextValue) => void, useMenubarMenuContext: () => MenubarMenuContextValue;
|