@mantine-vue/core 2.0.0 → 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,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: {
|
|
@@ -128,7 +134,7 @@ export declare const TimelineItem: import("../../..").WithBoxProps<import("vue")
|
|
|
128
134
|
radius: string | number;
|
|
129
135
|
color: string;
|
|
130
136
|
style: any;
|
|
131
|
-
title:
|
|
137
|
+
title: MantineNode;
|
|
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[]>;
|
|
@@ -349,4 +358,4 @@ export declare const TreeSelect: import("vue").DefineComponent<import("vue").Ext
|
|
|
349
358
|
checkedStrategy: CheckedStrategy;
|
|
350
359
|
defaultExpandAll: boolean;
|
|
351
360
|
maxDisplayedValuesContent: any;
|
|
352
|
-
},
|
|
361
|
+
}, SlotsType<TreeSelectSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mantine-vue/core",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
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.0.
|
|
48
|
-
"@mantine-vue/utils": "2.0.
|
|
47
|
+
"@mantine-vue/hooks": "2.0.1",
|
|
48
|
+
"@mantine-vue/utils": "2.0.1",
|
|
49
49
|
"vue": "^3.5.0"
|
|
50
50
|
}
|
|
51
51
|
}
|