@mantine-vue/core 1.1.4 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/index.cjs +755 -979
- package/cjs/index.cjs.map +1 -1
- package/esm/index.mjs +754 -980
- package/esm/index.mjs.map +1 -1
- package/lib/components/Accordion/Accordion.d.ts +7 -7
- package/lib/components/Accordion/AccordionControl/AccordionControl.d.ts +14 -8
- package/lib/components/Alert/Alert.d.ts +14 -8
- package/lib/components/Autocomplete/Autocomplete.d.ts +14 -2
- package/lib/components/Badge/Badge.d.ts +12 -9
- package/lib/components/Blockquote/Blockquote.d.ts +14 -8
- package/lib/components/Breadcrumbs/Breadcrumbs.d.ts +10 -5
- 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/Combobox/OptionsDropdown/OptionsDropdown.d.ts +6 -2
- package/lib/components/Divider/Divider.d.ts +10 -5
- package/lib/components/Drawer/Drawer.d.ts +14 -9
- package/lib/components/Fieldset/Fieldset.d.ts +10 -5
- package/lib/components/FileInput/FileInput.d.ts +26 -17
- 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 +21 -14
- package/lib/components/List/List.d.ts +18 -13
- package/lib/components/List/ListItem/ListItem.d.ts +10 -5
- package/lib/components/Menu/Menu.d.ts +66 -27
- package/lib/components/Modal/Modal.d.ts +14 -9
- package/lib/components/MultiSelect/MultiSelect.d.ts +14 -2
- package/lib/components/NativeSelect/NativeSelect.d.ts +23 -14
- package/lib/components/NavLink/NavLink.d.ts +14 -8
- package/lib/components/Notification/Notification.d.ts +14 -8
- package/lib/components/NumberInput/NumberInput.d.ts +22 -14
- 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 +25 -17
- package/lib/components/PillsInput/PillsInput.d.ts +30 -21
- 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/Select/Select.d.ts +14 -2
- package/lib/components/SemiCircleProgress/SemiCircleProgress.d.ts +9 -5
- package/lib/components/Slider/RangeSlider/RangeSlider.d.ts +11 -2
- package/lib/components/Slider/Slider/Slider.d.ts +8 -2
- package/lib/components/Spoiler/Spoiler.d.ts +18 -10
- package/lib/components/Stepper/Stepper.d.ts +16 -4
- package/lib/components/Stepper/StepperStep/StepperStep.d.ts +12 -2
- package/lib/components/Switch/Switch.d.ts +58 -49
- package/lib/components/Switch/SwitchGroup/SwitchGroup.d.ts +18 -11
- package/lib/components/Tabs/Tabs.d.ts +7 -7
- package/lib/components/Tabs/TabsTab/TabsTab.d.ts +12 -8
- package/lib/components/TagsInput/TagsInput.d.ts +14 -2
- package/lib/components/Timeline/Timeline.d.ts +7 -7
- package/lib/components/Timeline/TimelineItem/TimelineItem.d.ts +14 -8
- package/lib/components/TreeSelect/TreeSelect.d.ts +11 -2
- package/lib/core/index.d.ts +1 -0
- package/lib/core/renderable-node.d.ts +10 -0
- package/package.json +3 -3
|
@@ -1,5 +1,12 @@
|
|
|
1
|
-
import { type PropType } from 'vue';
|
|
1
|
+
import { type PropType, type SlotsType, type VNodeChild } from 'vue';
|
|
2
|
+
import type { InputSlots } from '../Input/Input';
|
|
3
|
+
import type { MantineNode } from '../../core';
|
|
2
4
|
export type InputBaseStylesNames = 'input' | 'wrapper' | 'section' | 'bottomSection' | 'root' | 'label' | 'required' | 'description' | 'error';
|
|
5
|
+
export interface InputBaseSlots extends InputSlots {
|
|
6
|
+
label?: () => VNodeChild;
|
|
7
|
+
description?: () => VNodeChild;
|
|
8
|
+
error?: () => VNodeChild;
|
|
9
|
+
}
|
|
3
10
|
export declare const InputBase: import("../..").WithBoxProps<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
11
|
component: {
|
|
5
12
|
type: PropType<any>;
|
|
@@ -14,15 +21,15 @@ export declare const InputBase: import("../..").WithBoxProps<import("vue").Defin
|
|
|
14
21
|
default: undefined;
|
|
15
22
|
};
|
|
16
23
|
label: {
|
|
17
|
-
type: PropType<
|
|
24
|
+
type: PropType<MantineNode>;
|
|
18
25
|
default: undefined;
|
|
19
26
|
};
|
|
20
27
|
description: {
|
|
21
|
-
type: PropType<
|
|
28
|
+
type: PropType<MantineNode>;
|
|
22
29
|
default: undefined;
|
|
23
30
|
};
|
|
24
31
|
error: {
|
|
25
|
-
type: PropType<
|
|
32
|
+
type: PropType<MantineNode | boolean>;
|
|
26
33
|
default: undefined;
|
|
27
34
|
};
|
|
28
35
|
required: {
|
|
@@ -114,7 +121,7 @@ export declare const InputBase: import("../..").WithBoxProps<import("vue").Defin
|
|
|
114
121
|
default: undefined;
|
|
115
122
|
};
|
|
116
123
|
rightSection: {
|
|
117
|
-
type: PropType<
|
|
124
|
+
type: PropType<MantineNode>;
|
|
118
125
|
default: undefined;
|
|
119
126
|
};
|
|
120
127
|
rightSectionWidth: {
|
|
@@ -205,15 +212,15 @@ export declare const InputBase: import("../..").WithBoxProps<import("vue").Defin
|
|
|
205
212
|
default: undefined;
|
|
206
213
|
};
|
|
207
214
|
label: {
|
|
208
|
-
type: PropType<
|
|
215
|
+
type: PropType<MantineNode>;
|
|
209
216
|
default: undefined;
|
|
210
217
|
};
|
|
211
218
|
description: {
|
|
212
|
-
type: PropType<
|
|
219
|
+
type: PropType<MantineNode>;
|
|
213
220
|
default: undefined;
|
|
214
221
|
};
|
|
215
222
|
error: {
|
|
216
|
-
type: PropType<
|
|
223
|
+
type: PropType<MantineNode | boolean>;
|
|
217
224
|
default: undefined;
|
|
218
225
|
};
|
|
219
226
|
required: {
|
|
@@ -305,7 +312,7 @@ export declare const InputBase: import("../..").WithBoxProps<import("vue").Defin
|
|
|
305
312
|
default: undefined;
|
|
306
313
|
};
|
|
307
314
|
rightSection: {
|
|
308
|
-
type: PropType<
|
|
315
|
+
type: PropType<MantineNode>;
|
|
309
316
|
default: undefined;
|
|
310
317
|
};
|
|
311
318
|
rightSectionWidth: {
|
|
@@ -385,12 +392,12 @@ export declare const InputBase: import("../..").WithBoxProps<import("vue").Defin
|
|
|
385
392
|
radius: string | number;
|
|
386
393
|
pointer: boolean;
|
|
387
394
|
variant: "default" | "filled" | "unstyled";
|
|
388
|
-
error:
|
|
389
|
-
label:
|
|
395
|
+
error: MantineNode;
|
|
396
|
+
label: MantineNode;
|
|
390
397
|
classNames: Function | Record<string, any>;
|
|
391
398
|
styles: Function | Record<string, any>;
|
|
392
399
|
required: boolean;
|
|
393
|
-
description:
|
|
400
|
+
description: MantineNode;
|
|
394
401
|
multiline: boolean;
|
|
395
402
|
disabled: boolean;
|
|
396
403
|
mod: any;
|
|
@@ -400,7 +407,7 @@ export declare const InputBase: import("../..").WithBoxProps<import("vue").Defin
|
|
|
400
407
|
unstyled: boolean;
|
|
401
408
|
__staticSelector: string;
|
|
402
409
|
leftSection: any;
|
|
403
|
-
rightSection:
|
|
410
|
+
rightSection: MantineNode;
|
|
404
411
|
loading: boolean;
|
|
405
412
|
withAria: boolean;
|
|
406
413
|
__clearable: boolean;
|
|
@@ -428,4 +435,4 @@ export declare const InputBase: import("../..").WithBoxProps<import("vue").Defin
|
|
|
428
435
|
__bottomSectionProps: Record<string, any>;
|
|
429
436
|
wrapperProps: Record<string, any>;
|
|
430
437
|
rootRef: any;
|
|
431
|
-
},
|
|
438
|
+
}, SlotsType<InputBaseSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
@@ -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>;
|
|
@@ -64,13 +69,13 @@ export declare const List: import("../..").WithBoxProps<{
|
|
|
64
69
|
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>;
|
|
@@ -141,7 +146,7 @@ export declare const List: import("../..").WithBoxProps<{
|
|
|
141
146
|
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>;
|
|
@@ -215,16 +220,16 @@ export declare const List: import("../..").WithBoxProps<{
|
|
|
215
220
|
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>>;
|
|
@@ -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;
|
|
@@ -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
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { type PropType, type VNodeChild } from 'vue';
|
|
1
|
+
import { type PropType, type SlotsType, type VNodeChild } from 'vue';
|
|
2
|
+
import { type MantineNode } from '../../core';
|
|
2
3
|
import { type ModalBaseProps } from '../ModalBase';
|
|
3
4
|
export interface ModalProps extends ModalBaseProps {
|
|
4
5
|
title?: VNodeChild | (() => VNodeChild);
|
|
@@ -17,6 +18,10 @@ export interface ModalProps extends ModalBaseProps {
|
|
|
17
18
|
styles?: any;
|
|
18
19
|
vars?: any;
|
|
19
20
|
}
|
|
21
|
+
export interface ModalSlots {
|
|
22
|
+
default?: () => VNodeChild;
|
|
23
|
+
title?: () => VNodeChild;
|
|
24
|
+
}
|
|
20
25
|
export declare const ModalRoot: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
21
26
|
opened: {
|
|
22
27
|
type: BooleanConstructor;
|
|
@@ -244,7 +249,7 @@ export declare const Modal: {
|
|
|
244
249
|
required: true;
|
|
245
250
|
};
|
|
246
251
|
title: {
|
|
247
|
-
type: PropType<
|
|
252
|
+
type: PropType<MantineNode>;
|
|
248
253
|
default: undefined;
|
|
249
254
|
};
|
|
250
255
|
withOverlay: {
|
|
@@ -260,10 +265,10 @@ export declare const Modal: {
|
|
|
260
265
|
}>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
261
266
|
[key: string]: any;
|
|
262
267
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
263
|
-
title:
|
|
268
|
+
title: MantineNode;
|
|
264
269
|
withCloseButton: boolean;
|
|
265
270
|
withOverlay: boolean;
|
|
266
|
-
}, true, {},
|
|
271
|
+
}, true, {}, SlotsType<ModalSlots>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
267
272
|
P: {};
|
|
268
273
|
B: {};
|
|
269
274
|
D: {};
|
|
@@ -280,7 +285,7 @@ export declare const Modal: {
|
|
|
280
285
|
required: true;
|
|
281
286
|
};
|
|
282
287
|
title: {
|
|
283
|
-
type: PropType<
|
|
288
|
+
type: PropType<MantineNode>;
|
|
284
289
|
default: undefined;
|
|
285
290
|
};
|
|
286
291
|
withOverlay: {
|
|
@@ -296,7 +301,7 @@ export declare const Modal: {
|
|
|
296
301
|
}>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
297
302
|
[key: string]: any;
|
|
298
303
|
}>, {}, {}, {}, {
|
|
299
|
-
title:
|
|
304
|
+
title: MantineNode;
|
|
300
305
|
withCloseButton: boolean;
|
|
301
306
|
withOverlay: boolean;
|
|
302
307
|
}>;
|
|
@@ -313,7 +318,7 @@ export declare const Modal: {
|
|
|
313
318
|
required: true;
|
|
314
319
|
};
|
|
315
320
|
title: {
|
|
316
|
-
type: PropType<
|
|
321
|
+
type: PropType<MantineNode>;
|
|
317
322
|
default: undefined;
|
|
318
323
|
};
|
|
319
324
|
withOverlay: {
|
|
@@ -329,10 +334,10 @@ export declare const Modal: {
|
|
|
329
334
|
}>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
330
335
|
[key: string]: any;
|
|
331
336
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
332
|
-
title:
|
|
337
|
+
title: MantineNode;
|
|
333
338
|
withCloseButton: boolean;
|
|
334
339
|
withOverlay: boolean;
|
|
335
|
-
}, {}, string,
|
|
340
|
+
}, {}, string, SlotsType<ModalSlots>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
336
341
|
classes: Record<string, string>;
|
|
337
342
|
varsResolver: (theme: import("../..").MantineTheme, props: any, ctx: Record<string, any>) => Record<string, Record<string, string | undefined>>;
|
|
338
343
|
Root: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
@@ -1,6 +1,18 @@
|
|
|
1
|
-
import { type PropType } from 'vue';
|
|
1
|
+
import { type PropType, type SlotsType, type VNodeChild } from 'vue';
|
|
2
2
|
import type { Primitive } from '../../core';
|
|
3
3
|
import { type ComboboxData } from '../Combobox';
|
|
4
|
+
export interface MultiSelectSlots {
|
|
5
|
+
label?: () => VNodeChild;
|
|
6
|
+
description?: () => VNodeChild;
|
|
7
|
+
error?: () => VNodeChild;
|
|
8
|
+
leftSection?: () => VNodeChild;
|
|
9
|
+
rightSection?: () => VNodeChild;
|
|
10
|
+
renderOption?: (input: {
|
|
11
|
+
option: any;
|
|
12
|
+
checked?: boolean;
|
|
13
|
+
}) => VNodeChild;
|
|
14
|
+
nothingFound?: () => VNodeChild;
|
|
15
|
+
}
|
|
4
16
|
export interface MultiSelectProps<Value extends Primitive = string> {
|
|
5
17
|
modelValue?: Value[];
|
|
6
18
|
value?: Value[];
|
|
@@ -186,4 +198,4 @@ export declare const MultiSelect: import("vue").DefineComponent<import("vue").Ex
|
|
|
186
198
|
hidePickedOptions: boolean;
|
|
187
199
|
clearSearchOnChange: boolean;
|
|
188
200
|
hiddenInputValuesDivider: string;
|
|
189
|
-
},
|
|
201
|
+
}, SlotsType<MultiSelectSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|