@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,10 +1,17 @@
|
|
|
1
|
-
import { type PropType } from 'vue';
|
|
1
|
+
import { type PropType, type SlotsType, type VNodeChild } from 'vue';
|
|
2
|
+
import { type MantineNode } from '../../../core';
|
|
2
3
|
export interface SwitchGroupContextValue {
|
|
3
4
|
value: string[];
|
|
4
5
|
onChange: (event: Event) => void;
|
|
5
6
|
size?: string | number;
|
|
6
7
|
isDisabled?: (value: string) => boolean;
|
|
7
8
|
}
|
|
9
|
+
export interface SwitchGroupSlots {
|
|
10
|
+
default?: () => VNodeChild;
|
|
11
|
+
label?: () => VNodeChild;
|
|
12
|
+
description?: () => VNodeChild;
|
|
13
|
+
error?: () => VNodeChild;
|
|
14
|
+
}
|
|
8
15
|
export declare function useSwitchGroupContext(): SwitchGroupContextValue | null;
|
|
9
16
|
export declare const SwitchGroup: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
10
17
|
value: {
|
|
@@ -52,15 +59,15 @@ export declare const SwitchGroup: import("vue").DefineComponent<import("vue").Ex
|
|
|
52
59
|
default: boolean;
|
|
53
60
|
};
|
|
54
61
|
label: {
|
|
55
|
-
type: PropType<
|
|
62
|
+
type: PropType<MantineNode>;
|
|
56
63
|
default: undefined;
|
|
57
64
|
};
|
|
58
65
|
description: {
|
|
59
|
-
type: PropType<
|
|
66
|
+
type: PropType<MantineNode>;
|
|
60
67
|
default: undefined;
|
|
61
68
|
};
|
|
62
69
|
error: {
|
|
63
|
-
type: PropType<
|
|
70
|
+
type: PropType<MantineNode | boolean>;
|
|
64
71
|
default: undefined;
|
|
65
72
|
};
|
|
66
73
|
classNames: {
|
|
@@ -127,15 +134,15 @@ export declare const SwitchGroup: import("vue").DefineComponent<import("vue").Ex
|
|
|
127
134
|
default: boolean;
|
|
128
135
|
};
|
|
129
136
|
label: {
|
|
130
|
-
type: PropType<
|
|
137
|
+
type: PropType<MantineNode>;
|
|
131
138
|
default: undefined;
|
|
132
139
|
};
|
|
133
140
|
description: {
|
|
134
|
-
type: PropType<
|
|
141
|
+
type: PropType<MantineNode>;
|
|
135
142
|
default: undefined;
|
|
136
143
|
};
|
|
137
144
|
error: {
|
|
138
|
-
type: PropType<
|
|
145
|
+
type: PropType<MantineNode | boolean>;
|
|
139
146
|
default: undefined;
|
|
140
147
|
};
|
|
141
148
|
classNames: {
|
|
@@ -156,14 +163,14 @@ export declare const SwitchGroup: import("vue").DefineComponent<import("vue").Ex
|
|
|
156
163
|
};
|
|
157
164
|
}>> & Readonly<{}>, {
|
|
158
165
|
size: string | number;
|
|
166
|
+
label: MantineNode;
|
|
159
167
|
name: string;
|
|
160
|
-
error:
|
|
168
|
+
error: MantineNode;
|
|
161
169
|
onChange: (value: string[]) => void;
|
|
162
|
-
label: any;
|
|
163
170
|
value: string[] | undefined;
|
|
164
171
|
classNames: Function | Record<string, any>;
|
|
165
172
|
styles: Function | Record<string, any>;
|
|
166
|
-
description:
|
|
173
|
+
description: MantineNode;
|
|
167
174
|
disabled: boolean;
|
|
168
175
|
defaultValue: string[] | undefined;
|
|
169
176
|
vars: Function | Record<string, any>;
|
|
@@ -173,4 +180,4 @@ export declare const SwitchGroup: import("vue").DefineComponent<import("vue").Ex
|
|
|
173
180
|
readOnly: boolean;
|
|
174
181
|
hiddenInputValuesSeparator: string;
|
|
175
182
|
maxSelectedValues: number;
|
|
176
|
-
},
|
|
183
|
+
}, SlotsType<SwitchGroupSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -100,8 +100,8 @@ export declare const Table: import("../..").WithBoxProps<{
|
|
|
100
100
|
}>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
101
101
|
[key: string]: any;
|
|
102
102
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
103
|
-
variant: TableVariant;
|
|
104
103
|
data: TableData;
|
|
104
|
+
variant: TableVariant;
|
|
105
105
|
classNames: Function | Record<string, any>;
|
|
106
106
|
styles: Function | Record<string, any>;
|
|
107
107
|
mod: any;
|
|
@@ -221,8 +221,8 @@ export declare const Table: import("../..").WithBoxProps<{
|
|
|
221
221
|
}>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
222
222
|
[key: string]: any;
|
|
223
223
|
}>, {}, {}, {}, {
|
|
224
|
-
variant: TableVariant;
|
|
225
224
|
data: TableData;
|
|
225
|
+
variant: TableVariant;
|
|
226
226
|
classNames: Function | Record<string, any>;
|
|
227
227
|
styles: Function | Record<string, any>;
|
|
228
228
|
mod: any;
|
|
@@ -339,8 +339,8 @@ export declare const Table: import("../..").WithBoxProps<{
|
|
|
339
339
|
}>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
340
340
|
[key: string]: any;
|
|
341
341
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
342
|
-
variant: TableVariant;
|
|
343
342
|
data: TableData;
|
|
343
|
+
variant: TableVariant;
|
|
344
344
|
classNames: Function | Record<string, any>;
|
|
345
345
|
styles: Function | Record<string, any>;
|
|
346
346
|
mod: any;
|
|
@@ -90,6 +90,8 @@ export declare const Tabs: {
|
|
|
90
90
|
}>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
91
91
|
[key: string]: any;
|
|
92
92
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
93
|
+
loop: boolean;
|
|
94
|
+
orientation: "vertical" | "horizontal";
|
|
93
95
|
radius: string | number;
|
|
94
96
|
color: string;
|
|
95
97
|
autoContrast: boolean;
|
|
@@ -102,8 +104,6 @@ export declare const Tabs: {
|
|
|
102
104
|
mod: any;
|
|
103
105
|
id: string;
|
|
104
106
|
keepMounted: boolean;
|
|
105
|
-
orientation: "horizontal" | "vertical";
|
|
106
|
-
loop: boolean;
|
|
107
107
|
vars: Function | Record<string, any>;
|
|
108
108
|
unstyled: boolean;
|
|
109
109
|
placement: "left" | "right";
|
|
@@ -206,6 +206,8 @@ export declare const Tabs: {
|
|
|
206
206
|
}>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
207
207
|
[key: string]: any;
|
|
208
208
|
}>, {}, {}, {}, {
|
|
209
|
+
loop: boolean;
|
|
210
|
+
orientation: "vertical" | "horizontal";
|
|
209
211
|
radius: string | number;
|
|
210
212
|
color: string;
|
|
211
213
|
autoContrast: boolean;
|
|
@@ -218,8 +220,6 @@ export declare const Tabs: {
|
|
|
218
220
|
mod: any;
|
|
219
221
|
id: string;
|
|
220
222
|
keepMounted: boolean;
|
|
221
|
-
orientation: "horizontal" | "vertical";
|
|
222
|
-
loop: boolean;
|
|
223
223
|
vars: Function | Record<string, any>;
|
|
224
224
|
unstyled: boolean;
|
|
225
225
|
placement: "left" | "right";
|
|
@@ -319,6 +319,8 @@ export declare const Tabs: {
|
|
|
319
319
|
}>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
320
320
|
[key: string]: any;
|
|
321
321
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
322
|
+
loop: boolean;
|
|
323
|
+
orientation: "vertical" | "horizontal";
|
|
322
324
|
radius: string | number;
|
|
323
325
|
color: string;
|
|
324
326
|
autoContrast: boolean;
|
|
@@ -331,8 +333,6 @@ export declare const Tabs: {
|
|
|
331
333
|
mod: any;
|
|
332
334
|
id: string;
|
|
333
335
|
keepMounted: boolean;
|
|
334
|
-
orientation: "horizontal" | "vertical";
|
|
335
|
-
loop: boolean;
|
|
336
336
|
vars: Function | Record<string, any>;
|
|
337
337
|
unstyled: boolean;
|
|
338
338
|
placement: "left" | "right";
|
|
@@ -349,11 +349,11 @@ export declare const Tabs: {
|
|
|
349
349
|
required: true;
|
|
350
350
|
};
|
|
351
351
|
rightSection: {
|
|
352
|
-
type: PropType<
|
|
352
|
+
type: PropType<import("../..").MantineNode>;
|
|
353
353
|
default: undefined;
|
|
354
354
|
};
|
|
355
355
|
leftSection: {
|
|
356
|
-
type: PropType<
|
|
356
|
+
type: PropType<import("../..").MantineNode>;
|
|
357
357
|
default: undefined;
|
|
358
358
|
};
|
|
359
359
|
color: {
|
|
@@ -400,11 +400,11 @@ export declare const Tabs: {
|
|
|
400
400
|
required: true;
|
|
401
401
|
};
|
|
402
402
|
rightSection: {
|
|
403
|
-
type: PropType<
|
|
403
|
+
type: PropType<import("../..").MantineNode>;
|
|
404
404
|
default: undefined;
|
|
405
405
|
};
|
|
406
406
|
leftSection: {
|
|
407
|
-
type: PropType<
|
|
407
|
+
type: PropType<import("../..").MantineNode>;
|
|
408
408
|
default: undefined;
|
|
409
409
|
};
|
|
410
410
|
color: {
|
|
@@ -444,18 +444,18 @@ export declare const Tabs: {
|
|
|
444
444
|
default: undefined;
|
|
445
445
|
};
|
|
446
446
|
}>> & Readonly<{}>, {
|
|
447
|
+
onKeydown: (event: KeyboardEvent) => void;
|
|
447
448
|
color: string;
|
|
448
449
|
onClick: (event: MouseEvent) => void;
|
|
449
|
-
onKeydown: (event: KeyboardEvent) => void;
|
|
450
450
|
classNames: Function | Record<string, any>;
|
|
451
451
|
styles: Function | Record<string, any>;
|
|
452
452
|
disabled: boolean;
|
|
453
453
|
mod: any;
|
|
454
454
|
onKeyDown: (event: KeyboardEvent) => void;
|
|
455
|
-
leftSection:
|
|
456
|
-
rightSection:
|
|
455
|
+
leftSection: import("../..").MantineNode;
|
|
456
|
+
rightSection: import("../..").MantineNode;
|
|
457
457
|
tabIndex: number;
|
|
458
|
-
},
|
|
458
|
+
}, import("vue").SlotsType<import("./TabsTab/TabsTab").TabsTabSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
459
459
|
Panel: import("../..").WithBoxProps<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
460
460
|
value: {
|
|
461
461
|
type: StringConstructor;
|
|
@@ -1,16 +1,20 @@
|
|
|
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
|
export type TabsTabStylesNames = 'tab' | 'tabSection' | 'tabLabel';
|
|
4
|
+
export interface TabsTabSlots extends SectionSlots {
|
|
5
|
+
default?: () => VNodeChild;
|
|
6
|
+
}
|
|
3
7
|
export declare const TabsTab: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
8
|
value: {
|
|
5
9
|
type: StringConstructor;
|
|
6
10
|
required: true;
|
|
7
11
|
};
|
|
8
12
|
rightSection: {
|
|
9
|
-
type: PropType<
|
|
13
|
+
type: PropType<MantineNode>;
|
|
10
14
|
default: undefined;
|
|
11
15
|
};
|
|
12
16
|
leftSection: {
|
|
13
|
-
type: PropType<
|
|
17
|
+
type: PropType<MantineNode>;
|
|
14
18
|
default: undefined;
|
|
15
19
|
};
|
|
16
20
|
color: {
|
|
@@ -57,11 +61,11 @@ export declare const TabsTab: import("vue").DefineComponent<import("vue").Extrac
|
|
|
57
61
|
required: true;
|
|
58
62
|
};
|
|
59
63
|
rightSection: {
|
|
60
|
-
type: PropType<
|
|
64
|
+
type: PropType<MantineNode>;
|
|
61
65
|
default: undefined;
|
|
62
66
|
};
|
|
63
67
|
leftSection: {
|
|
64
|
-
type: PropType<
|
|
68
|
+
type: PropType<MantineNode>;
|
|
65
69
|
default: undefined;
|
|
66
70
|
};
|
|
67
71
|
color: {
|
|
@@ -101,15 +105,15 @@ export declare const TabsTab: import("vue").DefineComponent<import("vue").Extrac
|
|
|
101
105
|
default: undefined;
|
|
102
106
|
};
|
|
103
107
|
}>> & Readonly<{}>, {
|
|
108
|
+
onKeydown: (event: KeyboardEvent) => void;
|
|
104
109
|
color: string;
|
|
105
110
|
onClick: (event: MouseEvent) => void;
|
|
106
|
-
onKeydown: (event: KeyboardEvent) => void;
|
|
107
111
|
classNames: Function | Record<string, any>;
|
|
108
112
|
styles: Function | Record<string, any>;
|
|
109
113
|
disabled: boolean;
|
|
110
114
|
mod: any;
|
|
111
115
|
onKeyDown: (event: KeyboardEvent) => void;
|
|
112
|
-
leftSection:
|
|
113
|
-
rightSection:
|
|
116
|
+
leftSection: MantineNode;
|
|
117
|
+
rightSection: MantineNode;
|
|
114
118
|
tabIndex: number;
|
|
115
|
-
},
|
|
119
|
+
}, SlotsType<TabsTabSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,5 +1,17 @@
|
|
|
1
|
-
import { type PropType } from 'vue';
|
|
1
|
+
import { type PropType, type SlotsType, type VNodeChild } from 'vue';
|
|
2
2
|
import { type ComboboxData } from '../Combobox';
|
|
3
|
+
export interface TagsInputSlots {
|
|
4
|
+
label?: () => VNodeChild;
|
|
5
|
+
description?: () => VNodeChild;
|
|
6
|
+
error?: () => VNodeChild;
|
|
7
|
+
leftSection?: () => VNodeChild;
|
|
8
|
+
rightSection?: () => VNodeChild;
|
|
9
|
+
renderOption?: (input: {
|
|
10
|
+
option: any;
|
|
11
|
+
checked?: boolean;
|
|
12
|
+
}) => VNodeChild;
|
|
13
|
+
nothingFound?: () => VNodeChild;
|
|
14
|
+
}
|
|
3
15
|
export interface TagsInputProps {
|
|
4
16
|
modelValue?: string[];
|
|
5
17
|
value?: string[];
|
|
@@ -166,10 +178,10 @@ export declare const TagsInput: import("vue").DefineComponent<import("vue").Extr
|
|
|
166
178
|
dropdownOpened: boolean;
|
|
167
179
|
defaultDropdownOpened: boolean;
|
|
168
180
|
selectFirstOptionOnDropdownOpen: boolean;
|
|
169
|
-
openOnFocus: boolean;
|
|
170
181
|
hiddenInputValuesDivider: string;
|
|
182
|
+
openOnFocus: boolean;
|
|
171
183
|
maxTags: number;
|
|
172
184
|
allowDuplicates: boolean;
|
|
173
185
|
splitChars: string[];
|
|
174
186
|
acceptValueOnBlur: boolean;
|
|
175
|
-
},
|
|
187
|
+
}, SlotsType<TagsInputSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -136,6 +136,7 @@ export declare const Text: import("../..").WithBoxProps<import("vue").DefineComp
|
|
|
136
136
|
default: boolean;
|
|
137
137
|
};
|
|
138
138
|
}>> & Readonly<{}>, {
|
|
139
|
+
span: boolean;
|
|
139
140
|
variant: TextVariant;
|
|
140
141
|
gradient: {
|
|
141
142
|
from: string;
|
|
@@ -144,7 +145,6 @@ export declare const Text: import("../..").WithBoxProps<import("vue").DefineComp
|
|
|
144
145
|
};
|
|
145
146
|
inherit: boolean;
|
|
146
147
|
textWrap: "wrap" | "nowrap" | "balance" | "pretty" | "stable";
|
|
147
|
-
span: boolean;
|
|
148
148
|
classNames: Function | Record<string, any>;
|
|
149
149
|
styles: Function | Record<string, any>;
|
|
150
150
|
mod: any;
|
|
@@ -60,7 +60,7 @@ export declare const Textarea: import("vue").DefineComponent<import("vue").Extra
|
|
|
60
60
|
default: undefined;
|
|
61
61
|
};
|
|
62
62
|
}>> & Readonly<{}>, {
|
|
63
|
-
resize: "
|
|
63
|
+
resize: "vertical" | "horizontal" | "none" | "both";
|
|
64
64
|
__staticSelector: string;
|
|
65
65
|
autosize: boolean;
|
|
66
66
|
bottomSection: any;
|
|
@@ -244,11 +244,11 @@ export declare const Timeline: import("../..").WithBoxProps<{
|
|
|
244
244
|
default: undefined;
|
|
245
245
|
};
|
|
246
246
|
title: {
|
|
247
|
-
type: PropType<
|
|
247
|
+
type: PropType<import("../..").MantineNode>;
|
|
248
248
|
default: undefined;
|
|
249
249
|
};
|
|
250
250
|
bullet: {
|
|
251
|
-
type: PropType<
|
|
251
|
+
type: PropType<import("../..").MantineNode>;
|
|
252
252
|
default: undefined;
|
|
253
253
|
};
|
|
254
254
|
radius: {
|
|
@@ -307,11 +307,11 @@ export declare const Timeline: import("../..").WithBoxProps<{
|
|
|
307
307
|
default: undefined;
|
|
308
308
|
};
|
|
309
309
|
title: {
|
|
310
|
-
type: PropType<
|
|
310
|
+
type: PropType<import("../..").MantineNode>;
|
|
311
311
|
default: undefined;
|
|
312
312
|
};
|
|
313
313
|
bullet: {
|
|
314
|
-
type: PropType<
|
|
314
|
+
type: PropType<import("../..").MantineNode>;
|
|
315
315
|
default: undefined;
|
|
316
316
|
};
|
|
317
317
|
radius: {
|
|
@@ -347,10 +347,10 @@ export declare const Timeline: import("../..").WithBoxProps<{
|
|
|
347
347
|
default: undefined;
|
|
348
348
|
};
|
|
349
349
|
}>> & Readonly<{}>, {
|
|
350
|
+
style: any;
|
|
351
|
+
title: import("../..").MantineNode;
|
|
350
352
|
radius: string | number;
|
|
351
353
|
color: string;
|
|
352
|
-
style: any;
|
|
353
|
-
title: any;
|
|
354
354
|
classNames: Function | Record<string, any>;
|
|
355
355
|
styles: Function | Record<string, any>;
|
|
356
356
|
active: boolean;
|
|
@@ -360,7 +360,7 @@ export declare const Timeline: import("../..").WithBoxProps<{
|
|
|
360
360
|
__lineActive: boolean;
|
|
361
361
|
__align: "left" | "right";
|
|
362
362
|
lineActive: boolean;
|
|
363
|
-
bullet:
|
|
363
|
+
bullet: import("../..").MantineNode;
|
|
364
364
|
lineVariant: "dashed" | "dotted" | "solid";
|
|
365
|
-
},
|
|
365
|
+
}, import("vue").SlotsType<import("./TimelineItem/TimelineItem").TimelineItemSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
366
366
|
}>;
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
import { type PropType } from 'vue';
|
|
1
|
+
import { type PropType, type SlotsType, type VNodeChild } from 'vue';
|
|
2
|
+
import { type MantineNode } from '../../../core';
|
|
2
3
|
export type TimelineItemStylesNames = 'itemBody' | 'itemContent' | 'itemBullet' | 'item' | 'itemTitle';
|
|
4
|
+
export interface TimelineItemSlots {
|
|
5
|
+
default?: () => VNodeChild;
|
|
6
|
+
title?: () => VNodeChild;
|
|
7
|
+
bullet?: () => VNodeChild;
|
|
8
|
+
}
|
|
3
9
|
export declare const TimelineItem: import("../../..").WithBoxProps<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
10
|
__active: {
|
|
5
11
|
type: BooleanConstructor;
|
|
@@ -22,11 +28,11 @@ export declare const TimelineItem: import("../../..").WithBoxProps<import("vue")
|
|
|
22
28
|
default: undefined;
|
|
23
29
|
};
|
|
24
30
|
title: {
|
|
25
|
-
type: PropType<
|
|
31
|
+
type: PropType<MantineNode>;
|
|
26
32
|
default: undefined;
|
|
27
33
|
};
|
|
28
34
|
bullet: {
|
|
29
|
-
type: PropType<
|
|
35
|
+
type: PropType<MantineNode>;
|
|
30
36
|
default: undefined;
|
|
31
37
|
};
|
|
32
38
|
radius: {
|
|
@@ -85,11 +91,11 @@ export declare const TimelineItem: import("../../..").WithBoxProps<import("vue")
|
|
|
85
91
|
default: undefined;
|
|
86
92
|
};
|
|
87
93
|
title: {
|
|
88
|
-
type: PropType<
|
|
94
|
+
type: PropType<MantineNode>;
|
|
89
95
|
default: undefined;
|
|
90
96
|
};
|
|
91
97
|
bullet: {
|
|
92
|
-
type: PropType<
|
|
98
|
+
type: PropType<MantineNode>;
|
|
93
99
|
default: undefined;
|
|
94
100
|
};
|
|
95
101
|
radius: {
|
|
@@ -125,10 +131,10 @@ export declare const TimelineItem: import("../../..").WithBoxProps<import("vue")
|
|
|
125
131
|
default: undefined;
|
|
126
132
|
};
|
|
127
133
|
}>> & Readonly<{}>, {
|
|
134
|
+
style: any;
|
|
135
|
+
title: MantineNode;
|
|
128
136
|
radius: string | number;
|
|
129
137
|
color: string;
|
|
130
|
-
style: any;
|
|
131
|
-
title: any;
|
|
132
138
|
classNames: Function | Record<string, any>;
|
|
133
139
|
styles: Function | Record<string, any>;
|
|
134
140
|
active: boolean;
|
|
@@ -138,6 +144,6 @@ export declare const TimelineItem: import("../../..").WithBoxProps<import("vue")
|
|
|
138
144
|
__lineActive: boolean;
|
|
139
145
|
__align: "left" | "right";
|
|
140
146
|
lineActive: boolean;
|
|
141
|
-
bullet:
|
|
147
|
+
bullet: MantineNode;
|
|
142
148
|
lineVariant: "dashed" | "dotted" | "solid";
|
|
143
|
-
},
|
|
149
|
+
}, SlotsType<TimelineItemSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type PropType, type VNodeChild } from 'vue';
|
|
1
|
+
import { type PropType, type SlotsType, type VNodeChild } from 'vue';
|
|
2
2
|
import type { TreeNodeData } from '../Tree';
|
|
3
3
|
export type TreeSelectMode = 'single' | 'multiple' | 'checkbox';
|
|
4
4
|
export type TreeSelectValue<Mode extends TreeSelectMode> = Mode extends 'single' ? string | null : string[];
|
|
@@ -144,6 +144,15 @@ export declare const TreeSelectOption: import("vue").DefineComponent<import("vue
|
|
|
144
144
|
isLastChild: boolean;
|
|
145
145
|
lineGuides: boolean[];
|
|
146
146
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
147
|
+
export interface TreeSelectSlots {
|
|
148
|
+
label?: () => VNodeChild;
|
|
149
|
+
description?: () => VNodeChild;
|
|
150
|
+
error?: () => VNodeChild;
|
|
151
|
+
leftSection?: () => VNodeChild;
|
|
152
|
+
rightSection?: () => VNodeChild;
|
|
153
|
+
renderNode?: (payload: TreeSelectRenderNodePayload) => VNodeChild;
|
|
154
|
+
nothingFound?: () => VNodeChild;
|
|
155
|
+
}
|
|
147
156
|
export declare const TreeSelect: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
148
157
|
data: {
|
|
149
158
|
type: PropType<TreeNodeData[]>;
|
|
@@ -338,15 +347,15 @@ export declare const TreeSelect: import("vue").DefineComponent<import("vue").Ext
|
|
|
338
347
|
modelValue: any;
|
|
339
348
|
maxDropdownHeight: string | number;
|
|
340
349
|
nothingFoundMessage: any;
|
|
341
|
-
searchable: boolean;
|
|
342
|
-
allowDeselect: boolean;
|
|
343
350
|
dropdownOpened: boolean;
|
|
344
351
|
defaultDropdownOpened: boolean;
|
|
352
|
+
searchable: boolean;
|
|
353
|
+
allowDeselect: boolean;
|
|
354
|
+
hiddenInputValuesDivider: string;
|
|
345
355
|
openOnFocus: boolean;
|
|
346
356
|
maxValues: number;
|
|
347
357
|
clearSearchOnChange: boolean;
|
|
348
|
-
hiddenInputValuesDivider: string;
|
|
349
358
|
checkedStrategy: CheckedStrategy;
|
|
350
359
|
defaultExpandAll: boolean;
|
|
351
360
|
maxDisplayedValuesContent: any;
|
|
352
|
-
},
|
|
361
|
+
}, SlotsType<TreeSelectSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -101,7 +101,11 @@ export * from './Popover';
|
|
|
101
101
|
export * from './Tooltip';
|
|
102
102
|
export * from './HoverCard';
|
|
103
103
|
export * from './Menu';
|
|
104
|
+
export * from './Menubar';
|
|
104
105
|
export * from './Combobox';
|
|
106
|
+
export * from './ComboboxPopover';
|
|
107
|
+
export * from './DataList';
|
|
108
|
+
export * from './EmptyState';
|
|
105
109
|
export * from './Select';
|
|
106
110
|
export * from './Autocomplete';
|
|
107
111
|
export * from './MultiSelect';
|
package/lib/core/Box/Box.d.ts
CHANGED
|
@@ -78,7 +78,7 @@ export declare const Box: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
78
78
|
/** Opacity */
|
|
79
79
|
opacity: PropType<import("./style-props").StyleProp<import("csstype").Property.Opacity | undefined>>;
|
|
80
80
|
/** FontFamily */
|
|
81
|
-
ff: PropType<import("./style-props").StyleProp<(string & {}) | "headings" | "
|
|
81
|
+
ff: PropType<import("./style-props").StyleProp<"text" | (string & {}) | "headings" | "monospace" | "mono" | "heading"> | undefined>;
|
|
82
82
|
/** FontSize, theme key: theme.fontSizes */
|
|
83
83
|
fz: PropType<import("./style-props").StyleProp<string | number> | undefined>;
|
|
84
84
|
/** FontWeight */
|
|
@@ -201,7 +201,7 @@ export declare const Box: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
201
201
|
/** Opacity */
|
|
202
202
|
opacity: PropType<import("./style-props").StyleProp<import("csstype").Property.Opacity | undefined>>;
|
|
203
203
|
/** FontFamily */
|
|
204
|
-
ff: PropType<import("./style-props").StyleProp<(string & {}) | "headings" | "
|
|
204
|
+
ff: PropType<import("./style-props").StyleProp<"text" | (string & {}) | "headings" | "monospace" | "mono" | "heading"> | undefined>;
|
|
205
205
|
/** FontSize, theme key: theme.fontSizes */
|
|
206
206
|
fz: PropType<import("./style-props").StyleProp<string | number> | undefined>;
|
|
207
207
|
/** FontWeight */
|
package/lib/core/index.d.ts
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { VNodeChild } from 'vue';
|
|
2
|
+
/** Content accepted by Mantine Vue props that correspond to React.ReactNode props. */
|
|
3
|
+
export type MantineNode = VNodeChild | (() => VNodeChild);
|
|
4
|
+
export interface SectionSlots {
|
|
5
|
+
leftSection?: () => VNodeChild;
|
|
6
|
+
rightSection?: () => VNodeChild;
|
|
7
|
+
}
|
|
8
|
+
/** Prop content takes precedence over slot content. Explicit null is preserved. */
|
|
9
|
+
export declare function resolveNode(prop: MantineNode | undefined, slot?: () => VNodeChild): VNodeChild;
|
|
10
|
+
export declare function hasNode(node: VNodeChild): boolean;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface CreateScopedKeydownHandlerInput {
|
|
2
|
+
parentSelector: string;
|
|
3
|
+
siblingSelector: string;
|
|
4
|
+
loop?: boolean;
|
|
5
|
+
orientation: 'vertical' | 'horizontal';
|
|
6
|
+
dir?: 'rtl' | 'ltr';
|
|
7
|
+
activateOnFocus?: boolean;
|
|
8
|
+
onKeydown?: (event: KeyboardEvent) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare function createScopedKeydownHandler({ parentSelector, siblingSelector, onKeydown, loop, activateOnFocus, dir, orientation, }: CreateScopedKeydownHandlerInput): (event: KeyboardEvent) => void;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type InjectionKey } from 'vue';
|
|
2
2
|
export * from '@mantine-vue/utils';
|
|
3
|
+
export * from './create-scoped-keydown-handler';
|
|
3
4
|
export declare function createSafeInjectionContext<T>(errorMessage: string): readonly [(value: T) => void, () => T & ({} | undefined), InjectionKey<T>];
|
|
4
5
|
export declare const createSafeContext: typeof createSafeInjectionContext;
|
|
@@ -135,9 +135,9 @@ export declare const InlineInput: import("vue").DefineComponent<import("vue").Ex
|
|
|
135
135
|
};
|
|
136
136
|
}>> & Readonly<{}>, {
|
|
137
137
|
size: string | number;
|
|
138
|
+
label: any;
|
|
138
139
|
variant: string;
|
|
139
140
|
error: any;
|
|
140
|
-
label: any;
|
|
141
141
|
classNames: Function | Record<string, any>;
|
|
142
142
|
styles: Function | Record<string, any>;
|
|
143
143
|
description: any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mantine-vue/core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Vue component foundation architecturally equivalent to @mantine/core",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"vue": "^3.5.0"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
|
-
"@mantine-vue/hooks": "2.
|
|
48
|
-
"@mantine-vue/utils": "2.
|
|
47
|
+
"@mantine-vue/hooks": "2.1.0",
|
|
48
|
+
"@mantine-vue/utils": "2.1.0",
|
|
49
49
|
"vue": "^3.5.0"
|
|
50
50
|
}
|
|
51
51
|
}
|