@mantine-vue/core 2.4.0 → 3.0.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 +732 -165
- package/cjs/index.cjs.map +1 -1
- package/esm/index.mjs +732 -165
- package/esm/index.mjs.map +1 -1
- package/lib/components/AngleSlider/AngleSlider.d.ts +15 -2
- package/lib/components/Autocomplete/Autocomplete.d.ts +3 -1
- package/lib/components/Cascader/Cascader.d.ts +2 -1
- package/lib/components/Checkbox/Checkbox.d.ts +91 -9
- package/lib/components/Checkbox/CheckboxCard/CheckboxCard.d.ts +15 -2
- package/lib/components/Checkbox/CheckboxGroup/CheckboxGroup.d.ts +14 -2
- package/lib/components/Chip/Chip.d.ts +46 -7
- package/lib/components/Chip/ChipGroup/ChipGroup.d.ts +14 -2
- package/lib/components/ColorInput/ColorInput.d.ts +2 -1
- package/lib/components/ColorPicker/AlphaSlider/AlphaSlider.d.ts +26 -4
- package/lib/components/ColorPicker/ColorPicker.d.ts +14 -2
- package/lib/components/ColorPicker/ColorSlider/ColorSlider.d.ts +26 -4
- package/lib/components/ColorPicker/HueSlider/HueSlider.d.ts +26 -4
- package/lib/components/Combobox/Combobox.d.ts +64 -4
- package/lib/components/ComboboxPopover/ComboboxPopover.d.ts +45 -7
- package/lib/components/FileButton/FileButton.d.ts +17 -4
- package/lib/components/FileInput/FileInput.d.ts +14 -2
- package/lib/components/Input/Input.d.ts +74 -5
- package/lib/components/InputBase/InputBase.d.ts +41 -2
- package/lib/components/JsonInput/JsonInput.d.ts +14 -2
- package/lib/components/MaskInput/MaskInput.d.ts +45 -2
- package/lib/components/Menu/Menu.d.ts +82 -4
- package/lib/components/MultiSelect/MultiSelect.d.ts +2 -1
- package/lib/components/NativeSelect/NativeSelect.d.ts +19 -6
- package/lib/components/NumberInput/NumberInput.d.ts +14 -2
- package/lib/components/PasswordInput/PasswordInput.d.ts +41 -2
- package/lib/components/PillsInput/PillsInput.d.ts +41 -2
- package/lib/components/PillsInput/PillsInputField/PillsInputField.d.ts +41 -2
- package/lib/components/PinInput/PinInput.d.ts +15 -2
- package/lib/components/Radio/Radio.d.ts +124 -9
- package/lib/components/Radio/RadioCard/RadioCard.d.ts +33 -2
- package/lib/components/Radio/RadioGroup/RadioGroup.d.ts +14 -2
- package/lib/components/Rating/Rating.d.ts +14 -2
- package/lib/components/SegmentedControl/SegmentedControl.d.ts +14 -2
- package/lib/components/Select/Select.d.ts +3 -2
- package/lib/components/Slider/RangeSlider/RangeSlider.d.ts +14 -2
- package/lib/components/Slider/Slider/Slider.d.ts +14 -2
- package/lib/components/Switch/Switch.d.ts +67 -13
- package/lib/components/Switch/SwitchGroup/SwitchGroup.d.ts +15 -3
- package/lib/components/TagsInput/TagsInput.d.ts +2 -1
- package/lib/components/TextInput/TextInput.d.ts +36 -2
- package/lib/components/Textarea/Textarea.d.ts +32 -2
- package/lib/components/TreeSelect/TreeSelect.d.ts +3 -2
- package/package.json +3 -3
|
@@ -15,6 +15,10 @@ export interface RadioGroupSlots {
|
|
|
15
15
|
}
|
|
16
16
|
export declare function useRadioGroupContext(): RadioGroupContextValue | null;
|
|
17
17
|
export declare const RadioGroup: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
18
|
+
modelValue: {
|
|
19
|
+
type: PropType<string | null | undefined>;
|
|
20
|
+
default: undefined;
|
|
21
|
+
};
|
|
18
22
|
value: {
|
|
19
23
|
type: PropType<string | null | undefined>;
|
|
20
24
|
default: undefined;
|
|
@@ -77,7 +81,11 @@ export declare const RadioGroup: import("vue").DefineComponent<import("vue").Ext
|
|
|
77
81
|
};
|
|
78
82
|
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
79
83
|
[key: string]: any;
|
|
80
|
-
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
84
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
85
|
+
modelValue: {
|
|
86
|
+
type: PropType<string | null | undefined>;
|
|
87
|
+
default: undefined;
|
|
88
|
+
};
|
|
81
89
|
value: {
|
|
82
90
|
type: PropType<string | null | undefined>;
|
|
83
91
|
default: undefined;
|
|
@@ -138,7 +146,10 @@ export declare const RadioGroup: import("vue").DefineComponent<import("vue").Ext
|
|
|
138
146
|
type: BooleanConstructor;
|
|
139
147
|
default: boolean;
|
|
140
148
|
};
|
|
141
|
-
}>> & Readonly<{
|
|
149
|
+
}>> & Readonly<{
|
|
150
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
151
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
152
|
+
}>, {
|
|
142
153
|
size: MantineSize;
|
|
143
154
|
label: MantineNode;
|
|
144
155
|
name: string;
|
|
@@ -152,6 +163,7 @@ export declare const RadioGroup: import("vue").DefineComponent<import("vue").Ext
|
|
|
152
163
|
defaultValue: string | null | undefined;
|
|
153
164
|
vars: Function | Record<string, any>;
|
|
154
165
|
unstyled: boolean;
|
|
166
|
+
modelValue: string | null | undefined;
|
|
155
167
|
wrapperProps: Record<string, any>;
|
|
156
168
|
readOnly: boolean;
|
|
157
169
|
}, SlotsType<RadioGroupSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -10,6 +10,10 @@ export interface RatingSlots {
|
|
|
10
10
|
}) => VNodeChild;
|
|
11
11
|
}
|
|
12
12
|
export declare const Rating: import("../..").WithBoxProps<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
13
|
+
modelValue: {
|
|
14
|
+
type: NumberConstructor;
|
|
15
|
+
default: undefined;
|
|
16
|
+
};
|
|
13
17
|
defaultValue: {
|
|
14
18
|
type: NumberConstructor;
|
|
15
19
|
default: undefined;
|
|
@@ -92,7 +96,11 @@ export declare const Rating: import("../..").WithBoxProps<import("vue").DefineCo
|
|
|
92
96
|
};
|
|
93
97
|
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
94
98
|
[key: string]: any;
|
|
95
|
-
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
99
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
100
|
+
modelValue: {
|
|
101
|
+
type: NumberConstructor;
|
|
102
|
+
default: undefined;
|
|
103
|
+
};
|
|
96
104
|
defaultValue: {
|
|
97
105
|
type: NumberConstructor;
|
|
98
106
|
default: undefined;
|
|
@@ -173,7 +181,10 @@ export declare const Rating: import("../..").WithBoxProps<import("vue").DefineCo
|
|
|
173
181
|
type: BooleanConstructor;
|
|
174
182
|
default: boolean;
|
|
175
183
|
};
|
|
176
|
-
}>> & Readonly<{
|
|
184
|
+
}>> & Readonly<{
|
|
185
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
186
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
187
|
+
}>, {
|
|
177
188
|
size: number | MantineSize | (string & {});
|
|
178
189
|
name: string;
|
|
179
190
|
color: MantineColor;
|
|
@@ -185,6 +196,7 @@ export declare const Rating: import("../..").WithBoxProps<import("vue").DefineCo
|
|
|
185
196
|
id: string;
|
|
186
197
|
vars: Function | Record<string, any>;
|
|
187
198
|
unstyled: boolean;
|
|
199
|
+
modelValue: number;
|
|
188
200
|
readOnly: boolean;
|
|
189
201
|
getSymbolLabel: (value: number) => string;
|
|
190
202
|
emptySymbol: MantineNode | ((value: number) => VNodeChild);
|
|
@@ -11,6 +11,10 @@ export declare const SegmentedControl: import("vue").DefineComponent<import("vue
|
|
|
11
11
|
type: PropType<Array<string | number | SegmentedControlItem<string | number>>>;
|
|
12
12
|
required: true;
|
|
13
13
|
};
|
|
14
|
+
modelValue: {
|
|
15
|
+
type: PropType<any>;
|
|
16
|
+
default: undefined;
|
|
17
|
+
};
|
|
14
18
|
value: {
|
|
15
19
|
type: PropType<any>;
|
|
16
20
|
default: undefined;
|
|
@@ -97,11 +101,15 @@ export declare const SegmentedControl: import("vue").DefineComponent<import("vue
|
|
|
97
101
|
};
|
|
98
102
|
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
99
103
|
[key: string]: any;
|
|
100
|
-
}> | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
104
|
+
}> | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
101
105
|
data: {
|
|
102
106
|
type: PropType<Array<string | number | SegmentedControlItem<string | number>>>;
|
|
103
107
|
required: true;
|
|
104
108
|
};
|
|
109
|
+
modelValue: {
|
|
110
|
+
type: PropType<any>;
|
|
111
|
+
default: undefined;
|
|
112
|
+
};
|
|
105
113
|
value: {
|
|
106
114
|
type: PropType<any>;
|
|
107
115
|
default: undefined;
|
|
@@ -186,7 +194,10 @@ export declare const SegmentedControl: import("vue").DefineComponent<import("vue
|
|
|
186
194
|
type: BooleanConstructor;
|
|
187
195
|
default: boolean;
|
|
188
196
|
};
|
|
189
|
-
}>> & Readonly<{
|
|
197
|
+
}>> & Readonly<{
|
|
198
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
199
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
200
|
+
}>, {
|
|
190
201
|
size: MantineSize | (string & {});
|
|
191
202
|
orientation: "vertical" | "horizontal";
|
|
192
203
|
radius: MantineRadius;
|
|
@@ -205,6 +216,7 @@ export declare const SegmentedControl: import("vue").DefineComponent<import("vue
|
|
|
205
216
|
transitionTimingFunction: string;
|
|
206
217
|
vars: Function | Record<string, any>;
|
|
207
218
|
unstyled: boolean;
|
|
219
|
+
modelValue: any;
|
|
208
220
|
fullWidth: boolean;
|
|
209
221
|
readOnly: boolean;
|
|
210
222
|
withItemsBorders: boolean;
|
|
@@ -133,7 +133,7 @@ export declare const Select: import("vue").DefineComponent<import("vue").Extract
|
|
|
133
133
|
};
|
|
134
134
|
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
135
135
|
[key: string]: any;
|
|
136
|
-
}>[], {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:searchValue")[], "update:modelValue" | "update:searchValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
136
|
+
}>[], {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue" | "update:searchValue")[], "change" | "update:modelValue" | "update:searchValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
137
137
|
modelValue: {
|
|
138
138
|
type: any;
|
|
139
139
|
default: undefined;
|
|
@@ -212,15 +212,16 @@ export declare const Select: import("vue").DefineComponent<import("vue").Extract
|
|
|
212
212
|
default: undefined;
|
|
213
213
|
};
|
|
214
214
|
}>> & Readonly<{
|
|
215
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
215
216
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
216
217
|
"onUpdate:searchValue"?: ((...args: any[]) => any) | undefined;
|
|
217
218
|
}>, {
|
|
218
219
|
data: ComboboxData<any>;
|
|
219
220
|
value: any;
|
|
220
221
|
defaultValue: any;
|
|
222
|
+
modelValue: any;
|
|
221
223
|
clearable: boolean;
|
|
222
224
|
clearSectionMode: "clear" | "both" | "rightSection";
|
|
223
|
-
modelValue: any;
|
|
224
225
|
withCheckIcon: boolean;
|
|
225
226
|
withAlignedLabels: boolean;
|
|
226
227
|
withScrollArea: boolean;
|
|
@@ -12,6 +12,10 @@ export interface RangeSliderSlots {
|
|
|
12
12
|
}) => VNodeChild;
|
|
13
13
|
}
|
|
14
14
|
export declare const RangeSlider: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
15
|
+
modelValue: {
|
|
16
|
+
type: PropType<RangeSliderValue>;
|
|
17
|
+
default: undefined;
|
|
18
|
+
};
|
|
15
19
|
value: {
|
|
16
20
|
type: PropType<RangeSliderValue>;
|
|
17
21
|
default: undefined;
|
|
@@ -154,7 +158,11 @@ export declare const RangeSlider: import("vue").DefineComponent<import("vue").Ex
|
|
|
154
158
|
};
|
|
155
159
|
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
156
160
|
[key: string]: any;
|
|
157
|
-
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
161
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
162
|
+
modelValue: {
|
|
163
|
+
type: PropType<RangeSliderValue>;
|
|
164
|
+
default: undefined;
|
|
165
|
+
};
|
|
158
166
|
value: {
|
|
159
167
|
type: PropType<RangeSliderValue>;
|
|
160
168
|
default: undefined;
|
|
@@ -295,7 +303,10 @@ export declare const RangeSlider: import("vue").DefineComponent<import("vue").Ex
|
|
|
295
303
|
type: BooleanConstructor;
|
|
296
304
|
default: boolean;
|
|
297
305
|
};
|
|
298
|
-
}>> & Readonly<{
|
|
306
|
+
}>> & Readonly<{
|
|
307
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
308
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
309
|
+
}>, {
|
|
299
310
|
size: number | MantineSize | (string & {});
|
|
300
311
|
max: number;
|
|
301
312
|
label: any;
|
|
@@ -316,6 +327,7 @@ export declare const RangeSlider: import("vue").DefineComponent<import("vue").Ex
|
|
|
316
327
|
unstyled: boolean;
|
|
317
328
|
marks: SliderMark[];
|
|
318
329
|
thumbSize: string | number;
|
|
330
|
+
modelValue: RangeSliderValue;
|
|
319
331
|
restrictToMarks: boolean;
|
|
320
332
|
hiddenInputProps: Record<string, any>;
|
|
321
333
|
min: number;
|
|
@@ -42,6 +42,10 @@ export declare const Slider: import("../../..").WithBoxProps<import("vue").Defin
|
|
|
42
42
|
type: NumberConstructor;
|
|
43
43
|
default: undefined;
|
|
44
44
|
};
|
|
45
|
+
modelValue: {
|
|
46
|
+
type: NumberConstructor;
|
|
47
|
+
default: undefined;
|
|
48
|
+
};
|
|
45
49
|
value: {
|
|
46
50
|
type: NumberConstructor;
|
|
47
51
|
default: undefined;
|
|
@@ -148,7 +152,7 @@ export declare const Slider: import("../../..").WithBoxProps<import("vue").Defin
|
|
|
148
152
|
};
|
|
149
153
|
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
150
154
|
[key: string]: any;
|
|
151
|
-
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
155
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
152
156
|
color: {
|
|
153
157
|
type: PropType<MantineColor>;
|
|
154
158
|
default: undefined;
|
|
@@ -181,6 +185,10 @@ export declare const Slider: import("../../..").WithBoxProps<import("vue").Defin
|
|
|
181
185
|
type: NumberConstructor;
|
|
182
186
|
default: undefined;
|
|
183
187
|
};
|
|
188
|
+
modelValue: {
|
|
189
|
+
type: NumberConstructor;
|
|
190
|
+
default: undefined;
|
|
191
|
+
};
|
|
184
192
|
value: {
|
|
185
193
|
type: NumberConstructor;
|
|
186
194
|
default: undefined;
|
|
@@ -285,7 +293,10 @@ export declare const Slider: import("../../..").WithBoxProps<import("vue").Defin
|
|
|
285
293
|
type: BooleanConstructor;
|
|
286
294
|
default: boolean;
|
|
287
295
|
};
|
|
288
|
-
}>> & Readonly<{
|
|
296
|
+
}>> & Readonly<{
|
|
297
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
298
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
299
|
+
}>, {
|
|
289
300
|
size: number | MantineSize | (string & {});
|
|
290
301
|
max: number;
|
|
291
302
|
label: any;
|
|
@@ -306,6 +317,7 @@ export declare const Slider: import("../../..").WithBoxProps<import("vue").Defin
|
|
|
306
317
|
unstyled: boolean;
|
|
307
318
|
marks: SliderMark[];
|
|
308
319
|
thumbSize: string | number;
|
|
320
|
+
modelValue: number;
|
|
309
321
|
restrictToMarks: boolean;
|
|
310
322
|
hiddenInputProps: Record<string, any>;
|
|
311
323
|
min: number;
|
|
@@ -67,6 +67,10 @@ export declare const Switch: import("../..").WithBoxProps<{
|
|
|
67
67
|
type: BooleanConstructor;
|
|
68
68
|
default: boolean;
|
|
69
69
|
};
|
|
70
|
+
modelValue: {
|
|
71
|
+
type: BooleanConstructor;
|
|
72
|
+
default: undefined;
|
|
73
|
+
};
|
|
70
74
|
checked: {
|
|
71
75
|
type: BooleanConstructor;
|
|
72
76
|
default: undefined;
|
|
@@ -76,13 +80,17 @@ export declare const Switch: import("../..").WithBoxProps<{
|
|
|
76
80
|
default: undefined;
|
|
77
81
|
};
|
|
78
82
|
onChange: {
|
|
79
|
-
type: PropType<(
|
|
83
|
+
type: PropType<(checked: boolean) => void>;
|
|
80
84
|
default: undefined;
|
|
81
85
|
};
|
|
82
86
|
disabled: {
|
|
83
87
|
type: BooleanConstructor;
|
|
84
88
|
default: boolean;
|
|
85
89
|
};
|
|
90
|
+
readOnly: {
|
|
91
|
+
type: BooleanConstructor;
|
|
92
|
+
default: boolean;
|
|
93
|
+
};
|
|
86
94
|
variant: {
|
|
87
95
|
type: StringConstructor;
|
|
88
96
|
default: undefined;
|
|
@@ -107,16 +115,20 @@ export declare const Switch: import("../..").WithBoxProps<{
|
|
|
107
115
|
type: BooleanConstructor;
|
|
108
116
|
default: boolean;
|
|
109
117
|
};
|
|
110
|
-
}>> & Readonly<{
|
|
118
|
+
}>> & Readonly<{
|
|
119
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
120
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
121
|
+
"onUpdate:checked"?: ((...args: any[]) => any) | undefined;
|
|
122
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
111
123
|
[key: string]: any;
|
|
112
|
-
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
124
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue" | "update:checked")[], import("vue").PublicProps, {
|
|
113
125
|
size: MantineSize | (string & {});
|
|
114
126
|
label: MantineNode;
|
|
115
127
|
radius: MantineRadius;
|
|
116
128
|
color: MantineColor;
|
|
117
129
|
variant: string;
|
|
118
130
|
error: MantineNode;
|
|
119
|
-
onChange: (
|
|
131
|
+
onChange: (checked: boolean) => void;
|
|
120
132
|
classNames: Function | Record<string, any>;
|
|
121
133
|
styles: Function | Record<string, any>;
|
|
122
134
|
description: MantineNode;
|
|
@@ -126,8 +138,10 @@ export declare const Switch: import("../..").WithBoxProps<{
|
|
|
126
138
|
vars: Function | Record<string, any>;
|
|
127
139
|
unstyled: boolean;
|
|
128
140
|
labelPosition: "left" | "right";
|
|
141
|
+
modelValue: boolean;
|
|
129
142
|
wrapperProps: Record<string, any>;
|
|
130
143
|
rootRef: any;
|
|
144
|
+
readOnly: boolean;
|
|
131
145
|
checked: boolean;
|
|
132
146
|
defaultChecked: boolean;
|
|
133
147
|
offLabel: MantineNode;
|
|
@@ -198,6 +212,10 @@ export declare const Switch: import("../..").WithBoxProps<{
|
|
|
198
212
|
type: BooleanConstructor;
|
|
199
213
|
default: boolean;
|
|
200
214
|
};
|
|
215
|
+
modelValue: {
|
|
216
|
+
type: BooleanConstructor;
|
|
217
|
+
default: undefined;
|
|
218
|
+
};
|
|
201
219
|
checked: {
|
|
202
220
|
type: BooleanConstructor;
|
|
203
221
|
default: undefined;
|
|
@@ -207,13 +225,17 @@ export declare const Switch: import("../..").WithBoxProps<{
|
|
|
207
225
|
default: undefined;
|
|
208
226
|
};
|
|
209
227
|
onChange: {
|
|
210
|
-
type: PropType<(
|
|
228
|
+
type: PropType<(checked: boolean) => void>;
|
|
211
229
|
default: undefined;
|
|
212
230
|
};
|
|
213
231
|
disabled: {
|
|
214
232
|
type: BooleanConstructor;
|
|
215
233
|
default: boolean;
|
|
216
234
|
};
|
|
235
|
+
readOnly: {
|
|
236
|
+
type: BooleanConstructor;
|
|
237
|
+
default: boolean;
|
|
238
|
+
};
|
|
217
239
|
variant: {
|
|
218
240
|
type: StringConstructor;
|
|
219
241
|
default: undefined;
|
|
@@ -238,7 +260,11 @@ export declare const Switch: import("../..").WithBoxProps<{
|
|
|
238
260
|
type: BooleanConstructor;
|
|
239
261
|
default: boolean;
|
|
240
262
|
};
|
|
241
|
-
}>> & Readonly<{
|
|
263
|
+
}>> & Readonly<{
|
|
264
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
265
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
266
|
+
"onUpdate:checked"?: ((...args: any[]) => any) | undefined;
|
|
267
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
242
268
|
[key: string]: any;
|
|
243
269
|
}>, {}, {}, {}, {
|
|
244
270
|
size: MantineSize | (string & {});
|
|
@@ -247,7 +273,7 @@ export declare const Switch: import("../..").WithBoxProps<{
|
|
|
247
273
|
color: MantineColor;
|
|
248
274
|
variant: string;
|
|
249
275
|
error: MantineNode;
|
|
250
|
-
onChange: (
|
|
276
|
+
onChange: (checked: boolean) => void;
|
|
251
277
|
classNames: Function | Record<string, any>;
|
|
252
278
|
styles: Function | Record<string, any>;
|
|
253
279
|
description: MantineNode;
|
|
@@ -257,8 +283,10 @@ export declare const Switch: import("../..").WithBoxProps<{
|
|
|
257
283
|
vars: Function | Record<string, any>;
|
|
258
284
|
unstyled: boolean;
|
|
259
285
|
labelPosition: "left" | "right";
|
|
286
|
+
modelValue: boolean;
|
|
260
287
|
wrapperProps: Record<string, any>;
|
|
261
288
|
rootRef: any;
|
|
289
|
+
readOnly: boolean;
|
|
262
290
|
checked: boolean;
|
|
263
291
|
defaultChecked: boolean;
|
|
264
292
|
offLabel: MantineNode;
|
|
@@ -326,6 +354,10 @@ export declare const Switch: import("../..").WithBoxProps<{
|
|
|
326
354
|
type: BooleanConstructor;
|
|
327
355
|
default: boolean;
|
|
328
356
|
};
|
|
357
|
+
modelValue: {
|
|
358
|
+
type: BooleanConstructor;
|
|
359
|
+
default: undefined;
|
|
360
|
+
};
|
|
329
361
|
checked: {
|
|
330
362
|
type: BooleanConstructor;
|
|
331
363
|
default: undefined;
|
|
@@ -335,13 +367,17 @@ export declare const Switch: import("../..").WithBoxProps<{
|
|
|
335
367
|
default: undefined;
|
|
336
368
|
};
|
|
337
369
|
onChange: {
|
|
338
|
-
type: PropType<(
|
|
370
|
+
type: PropType<(checked: boolean) => void>;
|
|
339
371
|
default: undefined;
|
|
340
372
|
};
|
|
341
373
|
disabled: {
|
|
342
374
|
type: BooleanConstructor;
|
|
343
375
|
default: boolean;
|
|
344
376
|
};
|
|
377
|
+
readOnly: {
|
|
378
|
+
type: BooleanConstructor;
|
|
379
|
+
default: boolean;
|
|
380
|
+
};
|
|
345
381
|
variant: {
|
|
346
382
|
type: StringConstructor;
|
|
347
383
|
default: undefined;
|
|
@@ -366,16 +402,20 @@ export declare const Switch: import("../..").WithBoxProps<{
|
|
|
366
402
|
type: BooleanConstructor;
|
|
367
403
|
default: boolean;
|
|
368
404
|
};
|
|
369
|
-
}>> & Readonly<{
|
|
405
|
+
}>> & Readonly<{
|
|
406
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
407
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
408
|
+
"onUpdate:checked"?: ((...args: any[]) => any) | undefined;
|
|
409
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
370
410
|
[key: string]: any;
|
|
371
|
-
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
411
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue" | "update:checked")[], "change" | "update:modelValue" | "update:checked", {
|
|
372
412
|
size: MantineSize | (string & {});
|
|
373
413
|
label: MantineNode;
|
|
374
414
|
radius: MantineRadius;
|
|
375
415
|
color: MantineColor;
|
|
376
416
|
variant: string;
|
|
377
417
|
error: MantineNode;
|
|
378
|
-
onChange: (
|
|
418
|
+
onChange: (checked: boolean) => void;
|
|
379
419
|
classNames: Function | Record<string, any>;
|
|
380
420
|
styles: Function | Record<string, any>;
|
|
381
421
|
description: MantineNode;
|
|
@@ -385,8 +425,10 @@ export declare const Switch: import("../..").WithBoxProps<{
|
|
|
385
425
|
vars: Function | Record<string, any>;
|
|
386
426
|
unstyled: boolean;
|
|
387
427
|
labelPosition: "left" | "right";
|
|
428
|
+
modelValue: boolean;
|
|
388
429
|
wrapperProps: Record<string, any>;
|
|
389
430
|
rootRef: any;
|
|
431
|
+
readOnly: boolean;
|
|
390
432
|
checked: boolean;
|
|
391
433
|
defaultChecked: boolean;
|
|
392
434
|
offLabel: MantineNode;
|
|
@@ -399,6 +441,10 @@ export declare const Switch: import("../..").WithBoxProps<{
|
|
|
399
441
|
};
|
|
400
442
|
varsResolver: (theme: import("../..").MantineTheme, props: any, ctx: Record<string, any>) => Record<string, Record<string, string | undefined>>;
|
|
401
443
|
Group: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
444
|
+
modelValue: {
|
|
445
|
+
type: PropType<string[] | undefined>;
|
|
446
|
+
default: undefined;
|
|
447
|
+
};
|
|
402
448
|
value: {
|
|
403
449
|
type: PropType<string[] | undefined>;
|
|
404
450
|
default: undefined;
|
|
@@ -473,7 +519,11 @@ export declare const Switch: import("../..").WithBoxProps<{
|
|
|
473
519
|
};
|
|
474
520
|
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
475
521
|
[key: string]: any;
|
|
476
|
-
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
522
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
523
|
+
modelValue: {
|
|
524
|
+
type: PropType<string[] | undefined>;
|
|
525
|
+
default: undefined;
|
|
526
|
+
};
|
|
477
527
|
value: {
|
|
478
528
|
type: PropType<string[] | undefined>;
|
|
479
529
|
default: undefined;
|
|
@@ -546,7 +596,10 @@ export declare const Switch: import("../..").WithBoxProps<{
|
|
|
546
596
|
type: BooleanConstructor;
|
|
547
597
|
default: boolean;
|
|
548
598
|
};
|
|
549
|
-
}>> & Readonly<{
|
|
599
|
+
}>> & Readonly<{
|
|
600
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
601
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
602
|
+
}>, {
|
|
550
603
|
size: MantineSize | (string & {});
|
|
551
604
|
label: MantineNode;
|
|
552
605
|
name: string;
|
|
@@ -560,6 +613,7 @@ export declare const Switch: import("../..").WithBoxProps<{
|
|
|
560
613
|
defaultValue: string[] | undefined;
|
|
561
614
|
vars: Function | Record<string, any>;
|
|
562
615
|
unstyled: boolean;
|
|
616
|
+
modelValue: string[] | undefined;
|
|
563
617
|
hiddenInputProps: Record<string, any>;
|
|
564
618
|
wrapperProps: Record<string, any>;
|
|
565
619
|
readOnly: boolean;
|
|
@@ -2,7 +2,7 @@ import { type PropType, type SlotsType, type VNodeChild } from 'vue';
|
|
|
2
2
|
import { type MantineNode, type MantineSize } from '../../../core';
|
|
3
3
|
export interface SwitchGroupContextValue {
|
|
4
4
|
value: string[];
|
|
5
|
-
onChange: (
|
|
5
|
+
onChange: (eventOrValue: Event | string) => void;
|
|
6
6
|
size?: string | number;
|
|
7
7
|
isDisabled?: (value: string) => boolean;
|
|
8
8
|
}
|
|
@@ -14,6 +14,10 @@ export interface SwitchGroupSlots {
|
|
|
14
14
|
}
|
|
15
15
|
export declare function useSwitchGroupContext(): SwitchGroupContextValue | null;
|
|
16
16
|
export declare const SwitchGroup: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
17
|
+
modelValue: {
|
|
18
|
+
type: PropType<string[] | undefined>;
|
|
19
|
+
default: undefined;
|
|
20
|
+
};
|
|
17
21
|
value: {
|
|
18
22
|
type: PropType<string[] | undefined>;
|
|
19
23
|
default: undefined;
|
|
@@ -88,7 +92,11 @@ export declare const SwitchGroup: import("vue").DefineComponent<import("vue").Ex
|
|
|
88
92
|
};
|
|
89
93
|
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
90
94
|
[key: string]: any;
|
|
91
|
-
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
95
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
96
|
+
modelValue: {
|
|
97
|
+
type: PropType<string[] | undefined>;
|
|
98
|
+
default: undefined;
|
|
99
|
+
};
|
|
92
100
|
value: {
|
|
93
101
|
type: PropType<string[] | undefined>;
|
|
94
102
|
default: undefined;
|
|
@@ -161,7 +169,10 @@ export declare const SwitchGroup: import("vue").DefineComponent<import("vue").Ex
|
|
|
161
169
|
type: BooleanConstructor;
|
|
162
170
|
default: boolean;
|
|
163
171
|
};
|
|
164
|
-
}>> & Readonly<{
|
|
172
|
+
}>> & Readonly<{
|
|
173
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
174
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
175
|
+
}>, {
|
|
165
176
|
size: MantineSize | (string & {});
|
|
166
177
|
label: MantineNode;
|
|
167
178
|
name: string;
|
|
@@ -175,6 +186,7 @@ export declare const SwitchGroup: import("vue").DefineComponent<import("vue").Ex
|
|
|
175
186
|
defaultValue: string[] | undefined;
|
|
176
187
|
vars: Function | Record<string, any>;
|
|
177
188
|
unstyled: boolean;
|
|
189
|
+
modelValue: string[] | undefined;
|
|
178
190
|
hiddenInputProps: Record<string, any>;
|
|
179
191
|
wrapperProps: Record<string, any>;
|
|
180
192
|
readOnly: boolean;
|
|
@@ -106,7 +106,7 @@ export declare const TagsInput: import("vue").DefineComponent<import("vue").Extr
|
|
|
106
106
|
selectFirstOptionOnDropdownOpen: BooleanConstructor;
|
|
107
107
|
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
108
108
|
[key: string]: any;
|
|
109
|
-
}>[], {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:searchValue")[], "update:modelValue" | "update:searchValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
109
|
+
}>[], {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue" | "update:searchValue")[], "change" | "update:modelValue" | "update:searchValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
110
110
|
modelValue: PropType<string[]>;
|
|
111
111
|
value: PropType<string[]>;
|
|
112
112
|
defaultValue: {
|
|
@@ -174,6 +174,7 @@ export declare const TagsInput: import("vue").DefineComponent<import("vue").Extr
|
|
|
174
174
|
};
|
|
175
175
|
selectFirstOptionOnDropdownOpen: BooleanConstructor;
|
|
176
176
|
}>> & Readonly<{
|
|
177
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
177
178
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
178
179
|
"onUpdate:searchValue"?: ((...args: any[]) => any) | undefined;
|
|
179
180
|
}>, {
|
|
@@ -1,3 +1,37 @@
|
|
|
1
|
-
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
export declare const TextInput: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
|
+
modelValue: {
|
|
4
|
+
type: PropType<string | number | undefined>;
|
|
5
|
+
default: undefined;
|
|
6
|
+
};
|
|
7
|
+
value: {
|
|
8
|
+
type: PropType<string | number | undefined>;
|
|
9
|
+
default: undefined;
|
|
10
|
+
};
|
|
11
|
+
defaultValue: {
|
|
12
|
+
type: PropType<string | number | undefined>;
|
|
13
|
+
default: undefined;
|
|
14
|
+
};
|
|
15
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
2
16
|
[key: string]: any;
|
|
3
|
-
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
17
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
18
|
+
modelValue: {
|
|
19
|
+
type: PropType<string | number | undefined>;
|
|
20
|
+
default: undefined;
|
|
21
|
+
};
|
|
22
|
+
value: {
|
|
23
|
+
type: PropType<string | number | undefined>;
|
|
24
|
+
default: undefined;
|
|
25
|
+
};
|
|
26
|
+
defaultValue: {
|
|
27
|
+
type: PropType<string | number | undefined>;
|
|
28
|
+
default: undefined;
|
|
29
|
+
};
|
|
30
|
+
}>> & Readonly<{
|
|
31
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
32
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
33
|
+
}>, {
|
|
34
|
+
value: string | number | undefined;
|
|
35
|
+
defaultValue: string | number | undefined;
|
|
36
|
+
modelValue: string | number | undefined;
|
|
37
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -5,6 +5,18 @@ export interface TextareaSlots extends InputBaseSlots {
|
|
|
5
5
|
bottomSection?: () => VNodeChild;
|
|
6
6
|
}
|
|
7
7
|
export declare const Textarea: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
8
|
+
modelValue: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
default: undefined;
|
|
11
|
+
};
|
|
12
|
+
value: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
default: undefined;
|
|
15
|
+
};
|
|
16
|
+
defaultValue: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
default: undefined;
|
|
19
|
+
};
|
|
8
20
|
autosize: {
|
|
9
21
|
type: BooleanConstructor;
|
|
10
22
|
default: boolean;
|
|
@@ -35,7 +47,19 @@ export declare const Textarea: import("vue").DefineComponent<import("vue").Extra
|
|
|
35
47
|
};
|
|
36
48
|
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
37
49
|
[key: string]: any;
|
|
38
|
-
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
50
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
51
|
+
modelValue: {
|
|
52
|
+
type: StringConstructor;
|
|
53
|
+
default: undefined;
|
|
54
|
+
};
|
|
55
|
+
value: {
|
|
56
|
+
type: StringConstructor;
|
|
57
|
+
default: undefined;
|
|
58
|
+
};
|
|
59
|
+
defaultValue: {
|
|
60
|
+
type: StringConstructor;
|
|
61
|
+
default: undefined;
|
|
62
|
+
};
|
|
39
63
|
autosize: {
|
|
40
64
|
type: BooleanConstructor;
|
|
41
65
|
default: boolean;
|
|
@@ -64,9 +88,15 @@ export declare const Textarea: import("vue").DefineComponent<import("vue").Extra
|
|
|
64
88
|
type: StringConstructor;
|
|
65
89
|
default: undefined;
|
|
66
90
|
};
|
|
67
|
-
}>> & Readonly<{
|
|
91
|
+
}>> & Readonly<{
|
|
92
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
93
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
94
|
+
}>, {
|
|
68
95
|
resize: "vertical" | "horizontal" | "none" | "both";
|
|
96
|
+
value: string;
|
|
97
|
+
defaultValue: string;
|
|
69
98
|
__staticSelector: string;
|
|
99
|
+
modelValue: string;
|
|
70
100
|
autosize: boolean;
|
|
71
101
|
bottomSection: any;
|
|
72
102
|
maxRows: number;
|