@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,5 +1,14 @@
|
|
|
1
|
-
import { type PropType } from 'vue';
|
|
1
|
+
import { type PropType, type SlotsType, type VNodeChild } from 'vue';
|
|
2
|
+
import { type MantineNode } from '../../core';
|
|
2
3
|
import type { ClearSectionMode } from '../Input';
|
|
4
|
+
export interface FileInputSlots {
|
|
5
|
+
label?: () => VNodeChild;
|
|
6
|
+
description?: () => VNodeChild;
|
|
7
|
+
error?: () => VNodeChild;
|
|
8
|
+
placeholder?: () => VNodeChild;
|
|
9
|
+
leftSection?: () => VNodeChild;
|
|
10
|
+
rightSection?: () => VNodeChild;
|
|
11
|
+
}
|
|
3
12
|
declare function defaultValueComponent(value: File | File[] | null): import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
4
13
|
[key: string]: any;
|
|
5
14
|
}>;
|
|
@@ -65,7 +74,7 @@ export declare const FileInput: import("vue").DefineComponent<import("vue").Extr
|
|
|
65
74
|
default: undefined;
|
|
66
75
|
};
|
|
67
76
|
placeholder: {
|
|
68
|
-
type: PropType<
|
|
77
|
+
type: PropType<MantineNode>;
|
|
69
78
|
default: undefined;
|
|
70
79
|
};
|
|
71
80
|
resetRef: {
|
|
@@ -73,7 +82,7 @@ export declare const FileInput: import("vue").DefineComponent<import("vue").Extr
|
|
|
73
82
|
default: undefined;
|
|
74
83
|
};
|
|
75
84
|
rightSection: {
|
|
76
|
-
type: PropType<
|
|
85
|
+
type: PropType<MantineNode>;
|
|
77
86
|
default: undefined;
|
|
78
87
|
};
|
|
79
88
|
size: {
|
|
@@ -81,15 +90,15 @@ export declare const FileInput: import("vue").DefineComponent<import("vue").Extr
|
|
|
81
90
|
default: string;
|
|
82
91
|
};
|
|
83
92
|
label: {
|
|
84
|
-
type: PropType<
|
|
93
|
+
type: PropType<MantineNode>;
|
|
85
94
|
default: undefined;
|
|
86
95
|
};
|
|
87
96
|
description: {
|
|
88
|
-
type: PropType<
|
|
97
|
+
type: PropType<MantineNode>;
|
|
89
98
|
default: undefined;
|
|
90
99
|
};
|
|
91
100
|
error: {
|
|
92
|
-
type: PropType<
|
|
101
|
+
type: PropType<MantineNode | boolean>;
|
|
93
102
|
default: undefined;
|
|
94
103
|
};
|
|
95
104
|
required: {
|
|
@@ -184,7 +193,7 @@ export declare const FileInput: import("vue").DefineComponent<import("vue").Extr
|
|
|
184
193
|
default: undefined;
|
|
185
194
|
};
|
|
186
195
|
placeholder: {
|
|
187
|
-
type: PropType<
|
|
196
|
+
type: PropType<MantineNode>;
|
|
188
197
|
default: undefined;
|
|
189
198
|
};
|
|
190
199
|
resetRef: {
|
|
@@ -192,7 +201,7 @@ export declare const FileInput: import("vue").DefineComponent<import("vue").Extr
|
|
|
192
201
|
default: undefined;
|
|
193
202
|
};
|
|
194
203
|
rightSection: {
|
|
195
|
-
type: PropType<
|
|
204
|
+
type: PropType<MantineNode>;
|
|
196
205
|
default: undefined;
|
|
197
206
|
};
|
|
198
207
|
size: {
|
|
@@ -200,15 +209,15 @@ export declare const FileInput: import("vue").DefineComponent<import("vue").Extr
|
|
|
200
209
|
default: string;
|
|
201
210
|
};
|
|
202
211
|
label: {
|
|
203
|
-
type: PropType<
|
|
212
|
+
type: PropType<MantineNode>;
|
|
204
213
|
default: undefined;
|
|
205
214
|
};
|
|
206
215
|
description: {
|
|
207
|
-
type: PropType<
|
|
216
|
+
type: PropType<MantineNode>;
|
|
208
217
|
default: undefined;
|
|
209
218
|
};
|
|
210
219
|
error: {
|
|
211
|
-
type: PropType<
|
|
220
|
+
type: PropType<MantineNode | boolean>;
|
|
212
221
|
default: undefined;
|
|
213
222
|
};
|
|
214
223
|
required: {
|
|
@@ -241,23 +250,23 @@ export declare const FileInput: import("vue").DefineComponent<import("vue").Extr
|
|
|
241
250
|
};
|
|
242
251
|
}>> & Readonly<{}>, {
|
|
243
252
|
size: string | number;
|
|
253
|
+
form: string;
|
|
254
|
+
label: MantineNode;
|
|
244
255
|
name: string;
|
|
245
|
-
error:
|
|
256
|
+
error: MantineNode;
|
|
246
257
|
onChange: (payload: File | File[] | null) => void;
|
|
247
|
-
form: string;
|
|
248
|
-
label: any;
|
|
249
258
|
value: File | File[] | null | undefined;
|
|
250
259
|
classNames: Function | Record<string, any>;
|
|
251
260
|
styles: Function | Record<string, any>;
|
|
252
261
|
required: boolean;
|
|
253
|
-
description:
|
|
262
|
+
description: MantineNode;
|
|
254
263
|
defaultValue: File | File[] | null | undefined;
|
|
255
264
|
multiple: boolean;
|
|
256
265
|
component: string;
|
|
257
266
|
vars: Function | Record<string, any>;
|
|
258
267
|
unstyled: boolean;
|
|
259
|
-
rightSection:
|
|
260
|
-
placeholder:
|
|
268
|
+
rightSection: MantineNode;
|
|
269
|
+
placeholder: MantineNode;
|
|
261
270
|
accept: string;
|
|
262
271
|
resetRef: any;
|
|
263
272
|
capture: boolean | "user" | "environment" | undefined;
|
|
@@ -269,5 +278,5 @@ export declare const FileInput: import("vue").DefineComponent<import("vue").Extr
|
|
|
269
278
|
clearButtonProps: Record<string, any>;
|
|
270
279
|
readOnly: boolean;
|
|
271
280
|
fileInputProps: Record<string, any>;
|
|
272
|
-
},
|
|
281
|
+
}, SlotsType<FileInputSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
273
282
|
export {};
|
|
@@ -104,8 +104,8 @@ export declare const Highlight: import("vue").DefineComponent<import("vue").Extr
|
|
|
104
104
|
default: undefined;
|
|
105
105
|
};
|
|
106
106
|
}>> & Readonly<{}>, {
|
|
107
|
-
color: string;
|
|
108
107
|
span: boolean;
|
|
108
|
+
color: string;
|
|
109
109
|
classNames: Function | Record<string, any>;
|
|
110
110
|
styles: Function | Record<string, any>;
|
|
111
111
|
component: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export interface HoverCardContextValue {
|
|
2
2
|
openDropdown: () => void;
|
|
3
3
|
closeDropdown: () => void;
|
|
4
|
+
assignTarget: (node: HTMLElement | null) => void;
|
|
4
5
|
}
|
|
5
6
|
export declare const provideHoverCardContext: (value: HoverCardContextValue) => void, useHoverCardContext: () => HoverCardContextValue;
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
import { type PropType } from 'vue';
|
|
1
|
+
import { type PropType, type SlotsType, type VNodeChild } from 'vue';
|
|
2
|
+
import { type MantineNode } from '../../core';
|
|
2
3
|
import type { IndicatorPosition } from './Indicator.types';
|
|
4
|
+
export interface IndicatorSlots {
|
|
5
|
+
default?: () => VNodeChild;
|
|
6
|
+
label?: () => VNodeChild;
|
|
7
|
+
}
|
|
3
8
|
export declare const Indicator: import("../..").WithBoxProps<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
9
|
position: {
|
|
5
10
|
type: PropType<IndicatorPosition>;
|
|
@@ -18,7 +23,7 @@ export declare const Indicator: import("../..").WithBoxProps<import("vue").Defin
|
|
|
18
23
|
};
|
|
19
24
|
size: PropType<string | number>;
|
|
20
25
|
label: {
|
|
21
|
-
type:
|
|
26
|
+
type: PropType<MantineNode>;
|
|
22
27
|
default: undefined;
|
|
23
28
|
};
|
|
24
29
|
radius: PropType<string | number>;
|
|
@@ -91,7 +96,7 @@ export declare const Indicator: import("../..").WithBoxProps<import("vue").Defin
|
|
|
91
96
|
};
|
|
92
97
|
size: PropType<string | number>;
|
|
93
98
|
label: {
|
|
94
|
-
type:
|
|
99
|
+
type: PropType<MantineNode>;
|
|
95
100
|
default: undefined;
|
|
96
101
|
};
|
|
97
102
|
radius: PropType<string | number>;
|
|
@@ -145,9 +150,9 @@ export declare const Indicator: import("../..").WithBoxProps<import("vue").Defin
|
|
|
145
150
|
default: boolean;
|
|
146
151
|
};
|
|
147
152
|
}>> & Readonly<{}>, {
|
|
153
|
+
label: MantineNode;
|
|
148
154
|
color: string;
|
|
149
155
|
autoContrast: boolean;
|
|
150
|
-
label: string | number | Function | Record<string, any>;
|
|
151
156
|
classNames: Function | Record<string, any>;
|
|
152
157
|
styles: Function | Record<string, any>;
|
|
153
158
|
disabled: boolean;
|
|
@@ -164,4 +169,4 @@ export declare const Indicator: import("../..").WithBoxProps<import("vue").Defin
|
|
|
164
169
|
processing: boolean;
|
|
165
170
|
maxValue: number;
|
|
166
171
|
showZero: boolean;
|
|
167
|
-
},
|
|
172
|
+
}, SlotsType<IndicatorSlots>, {}, {}, 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 ClearSectionMode } from './InputClearSection/InputClearSection';
|
|
3
4
|
export type InputStylesNames = 'input' | 'wrapper' | 'section' | 'bottomSection';
|
|
4
5
|
export type InputVariant = 'default' | 'filled' | 'unstyled';
|
|
@@ -9,6 +10,9 @@ export interface InputStylesCtx {
|
|
|
9
10
|
offsetTop?: boolean;
|
|
10
11
|
offsetBottom?: boolean;
|
|
11
12
|
}
|
|
13
|
+
export interface InputSlots extends SectionSlots {
|
|
14
|
+
default?: () => VNodeChild;
|
|
15
|
+
}
|
|
12
16
|
export declare const Input: import("../..").WithBoxProps<{
|
|
13
17
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
14
18
|
component: {
|
|
@@ -24,7 +28,7 @@ export declare const Input: import("../..").WithBoxProps<{
|
|
|
24
28
|
default: undefined;
|
|
25
29
|
};
|
|
26
30
|
leftSection: {
|
|
27
|
-
type: PropType<
|
|
31
|
+
type: PropType<MantineNode>;
|
|
28
32
|
default: undefined;
|
|
29
33
|
};
|
|
30
34
|
leftSectionWidth: {
|
|
@@ -40,7 +44,7 @@ export declare const Input: import("../..").WithBoxProps<{
|
|
|
40
44
|
default: string;
|
|
41
45
|
};
|
|
42
46
|
rightSection: {
|
|
43
|
-
type: PropType<
|
|
47
|
+
type: PropType<MantineNode>;
|
|
44
48
|
default: undefined;
|
|
45
49
|
};
|
|
46
50
|
rightSectionWidth: {
|
|
@@ -182,8 +186,8 @@ export declare const Input: import("../..").WithBoxProps<{
|
|
|
182
186
|
vars: Function | Record<string, any>;
|
|
183
187
|
unstyled: boolean;
|
|
184
188
|
__staticSelector: string;
|
|
185
|
-
leftSection:
|
|
186
|
-
rightSection:
|
|
189
|
+
leftSection: MantineNode;
|
|
190
|
+
rightSection: MantineNode;
|
|
187
191
|
loading: boolean;
|
|
188
192
|
withAria: boolean;
|
|
189
193
|
__clearable: boolean;
|
|
@@ -204,7 +208,7 @@ export declare const Input: import("../..").WithBoxProps<{
|
|
|
204
208
|
__bottomSectionProps: Record<string, any>;
|
|
205
209
|
wrapperProps: Record<string, any>;
|
|
206
210
|
rootRef: any;
|
|
207
|
-
}, true, {},
|
|
211
|
+
}, true, {}, SlotsType<InputSlots>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
208
212
|
P: {};
|
|
209
213
|
B: {};
|
|
210
214
|
D: {};
|
|
@@ -225,7 +229,7 @@ export declare const Input: import("../..").WithBoxProps<{
|
|
|
225
229
|
default: undefined;
|
|
226
230
|
};
|
|
227
231
|
leftSection: {
|
|
228
|
-
type: PropType<
|
|
232
|
+
type: PropType<MantineNode>;
|
|
229
233
|
default: undefined;
|
|
230
234
|
};
|
|
231
235
|
leftSectionWidth: {
|
|
@@ -241,7 +245,7 @@ export declare const Input: import("../..").WithBoxProps<{
|
|
|
241
245
|
default: string;
|
|
242
246
|
};
|
|
243
247
|
rightSection: {
|
|
244
|
-
type: PropType<
|
|
248
|
+
type: PropType<MantineNode>;
|
|
245
249
|
default: undefined;
|
|
246
250
|
};
|
|
247
251
|
rightSectionWidth: {
|
|
@@ -383,8 +387,8 @@ export declare const Input: import("../..").WithBoxProps<{
|
|
|
383
387
|
vars: Function | Record<string, any>;
|
|
384
388
|
unstyled: boolean;
|
|
385
389
|
__staticSelector: string;
|
|
386
|
-
leftSection:
|
|
387
|
-
rightSection:
|
|
390
|
+
leftSection: MantineNode;
|
|
391
|
+
rightSection: MantineNode;
|
|
388
392
|
loading: boolean;
|
|
389
393
|
withAria: boolean;
|
|
390
394
|
__clearable: boolean;
|
|
@@ -423,7 +427,7 @@ export declare const Input: import("../..").WithBoxProps<{
|
|
|
423
427
|
default: undefined;
|
|
424
428
|
};
|
|
425
429
|
leftSection: {
|
|
426
|
-
type: PropType<
|
|
430
|
+
type: PropType<MantineNode>;
|
|
427
431
|
default: undefined;
|
|
428
432
|
};
|
|
429
433
|
leftSectionWidth: {
|
|
@@ -439,7 +443,7 @@ export declare const Input: import("../..").WithBoxProps<{
|
|
|
439
443
|
default: string;
|
|
440
444
|
};
|
|
441
445
|
rightSection: {
|
|
442
|
-
type: PropType<
|
|
446
|
+
type: PropType<MantineNode>;
|
|
443
447
|
default: undefined;
|
|
444
448
|
};
|
|
445
449
|
rightSectionWidth: {
|
|
@@ -581,8 +585,8 @@ export declare const Input: import("../..").WithBoxProps<{
|
|
|
581
585
|
vars: Function | Record<string, any>;
|
|
582
586
|
unstyled: boolean;
|
|
583
587
|
__staticSelector: string;
|
|
584
|
-
leftSection:
|
|
585
|
-
rightSection:
|
|
588
|
+
leftSection: MantineNode;
|
|
589
|
+
rightSection: MantineNode;
|
|
586
590
|
loading: boolean;
|
|
587
591
|
withAria: boolean;
|
|
588
592
|
__clearable: boolean;
|
|
@@ -603,20 +607,20 @@ export declare const Input: import("../..").WithBoxProps<{
|
|
|
603
607
|
__bottomSectionProps: Record<string, any>;
|
|
604
608
|
wrapperProps: Record<string, any>;
|
|
605
609
|
rootRef: any;
|
|
606
|
-
}, {}, string,
|
|
610
|
+
}, {}, string, SlotsType<InputSlots>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
607
611
|
classes: Record<string, string>;
|
|
608
612
|
varsResolver: (theme: import("../..").MantineTheme, props: any, ctx: Record<string, any>) => Record<string, Record<string, string | undefined>>;
|
|
609
613
|
Wrapper: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
610
614
|
label: {
|
|
611
|
-
type: PropType<
|
|
615
|
+
type: PropType<MantineNode>;
|
|
612
616
|
default: undefined;
|
|
613
617
|
};
|
|
614
618
|
description: {
|
|
615
|
-
type: PropType<
|
|
619
|
+
type: PropType<MantineNode>;
|
|
616
620
|
default: undefined;
|
|
617
621
|
};
|
|
618
622
|
error: {
|
|
619
|
-
type: PropType<
|
|
623
|
+
type: PropType<MantineNode | boolean>;
|
|
620
624
|
default: undefined;
|
|
621
625
|
};
|
|
622
626
|
required: {
|
|
@@ -687,15 +691,15 @@ export declare const Input: import("../..").WithBoxProps<{
|
|
|
687
691
|
[key: string]: any;
|
|
688
692
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
689
693
|
label: {
|
|
690
|
-
type: PropType<
|
|
694
|
+
type: PropType<MantineNode>;
|
|
691
695
|
default: undefined;
|
|
692
696
|
};
|
|
693
697
|
description: {
|
|
694
|
-
type: PropType<
|
|
698
|
+
type: PropType<MantineNode>;
|
|
695
699
|
default: undefined;
|
|
696
700
|
};
|
|
697
701
|
error: {
|
|
698
|
-
type: PropType<
|
|
702
|
+
type: PropType<MantineNode | boolean>;
|
|
699
703
|
default: undefined;
|
|
700
704
|
};
|
|
701
705
|
required: {
|
|
@@ -764,13 +768,13 @@ export declare const Input: import("../..").WithBoxProps<{
|
|
|
764
768
|
};
|
|
765
769
|
}>> & Readonly<{}>, {
|
|
766
770
|
size: string | number;
|
|
771
|
+
label: MantineNode;
|
|
767
772
|
variant: string;
|
|
768
|
-
error:
|
|
769
|
-
label: any;
|
|
773
|
+
error: MantineNode;
|
|
770
774
|
classNames: Function | Record<string, any>;
|
|
771
775
|
styles: Function | Record<string, any>;
|
|
772
776
|
required: boolean;
|
|
773
|
-
description:
|
|
777
|
+
description: MantineNode;
|
|
774
778
|
mod: any;
|
|
775
779
|
id: string;
|
|
776
780
|
vars: Function | Record<string, any>;
|
|
@@ -782,7 +786,7 @@ export declare const Input: import("../..").WithBoxProps<{
|
|
|
782
786
|
errorProps: Record<string, any>;
|
|
783
787
|
inputContainer: (children: any) => any;
|
|
784
788
|
inputWrapperOrder: import("./InputWrapper/get-input-offsets/get-input-offsets").InputWrapperOrderPart[];
|
|
785
|
-
},
|
|
789
|
+
}, SlotsType<import("./InputWrapper/InputWrapper").InputWrapperSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
786
790
|
Label: import("../..").WithBoxProps<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
787
791
|
required: {
|
|
788
792
|
type: BooleanConstructor;
|
|
@@ -1,17 +1,24 @@
|
|
|
1
|
-
import { type PropType } from 'vue';
|
|
1
|
+
import { type PropType, type SlotsType, type VNodeChild } from 'vue';
|
|
2
|
+
import { type MantineNode } from '../../../core';
|
|
2
3
|
import { type InputWrapperOrderPart } from './get-input-offsets/get-input-offsets';
|
|
3
4
|
export type InputWrapperStylesNames = 'root' | 'label' | 'required' | 'description' | 'error';
|
|
5
|
+
export interface InputWrapperSlots {
|
|
6
|
+
default?: () => VNodeChild;
|
|
7
|
+
label?: () => VNodeChild;
|
|
8
|
+
description?: () => VNodeChild;
|
|
9
|
+
error?: () => VNodeChild;
|
|
10
|
+
}
|
|
4
11
|
export declare const InputWrapper: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
5
12
|
label: {
|
|
6
|
-
type: PropType<
|
|
13
|
+
type: PropType<MantineNode>;
|
|
7
14
|
default: undefined;
|
|
8
15
|
};
|
|
9
16
|
description: {
|
|
10
|
-
type: PropType<
|
|
17
|
+
type: PropType<MantineNode>;
|
|
11
18
|
default: undefined;
|
|
12
19
|
};
|
|
13
20
|
error: {
|
|
14
|
-
type: PropType<
|
|
21
|
+
type: PropType<MantineNode | boolean>;
|
|
15
22
|
default: undefined;
|
|
16
23
|
};
|
|
17
24
|
required: {
|
|
@@ -82,15 +89,15 @@ export declare const InputWrapper: import("vue").DefineComponent<import("vue").E
|
|
|
82
89
|
[key: string]: any;
|
|
83
90
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
84
91
|
label: {
|
|
85
|
-
type: PropType<
|
|
92
|
+
type: PropType<MantineNode>;
|
|
86
93
|
default: undefined;
|
|
87
94
|
};
|
|
88
95
|
description: {
|
|
89
|
-
type: PropType<
|
|
96
|
+
type: PropType<MantineNode>;
|
|
90
97
|
default: undefined;
|
|
91
98
|
};
|
|
92
99
|
error: {
|
|
93
|
-
type: PropType<
|
|
100
|
+
type: PropType<MantineNode | boolean>;
|
|
94
101
|
default: undefined;
|
|
95
102
|
};
|
|
96
103
|
required: {
|
|
@@ -159,13 +166,13 @@ export declare const InputWrapper: import("vue").DefineComponent<import("vue").E
|
|
|
159
166
|
};
|
|
160
167
|
}>> & Readonly<{}>, {
|
|
161
168
|
size: string | number;
|
|
169
|
+
label: MantineNode;
|
|
162
170
|
variant: string;
|
|
163
|
-
error:
|
|
164
|
-
label: any;
|
|
171
|
+
error: MantineNode;
|
|
165
172
|
classNames: Function | Record<string, any>;
|
|
166
173
|
styles: Function | Record<string, any>;
|
|
167
174
|
required: boolean;
|
|
168
|
-
description:
|
|
175
|
+
description: MantineNode;
|
|
169
176
|
mod: any;
|
|
170
177
|
id: string;
|
|
171
178
|
vars: Function | Record<string, any>;
|
|
@@ -177,4 +184,4 @@ export declare const InputWrapper: import("vue").DefineComponent<import("vue").E
|
|
|
177
184
|
errorProps: Record<string, any>;
|
|
178
185
|
inputContainer: (children: any) => any;
|
|
179
186
|
inputWrapperOrder: InputWrapperOrderPart[];
|
|
180
|
-
},
|
|
187
|
+
}, SlotsType<InputWrapperSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -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: {
|
|
@@ -382,15 +389,15 @@ export declare const InputBase: import("../..").WithBoxProps<import("vue").Defin
|
|
|
382
389
|
};
|
|
383
390
|
}>> & Readonly<{}>, {
|
|
384
391
|
size: string | number;
|
|
392
|
+
label: MantineNode;
|
|
385
393
|
radius: string | number;
|
|
386
394
|
pointer: boolean;
|
|
387
395
|
variant: "default" | "filled" | "unstyled";
|
|
388
|
-
error:
|
|
389
|
-
label: any;
|
|
396
|
+
error: 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;
|
|
@@ -413,7 +420,7 @@ export declare const InputBase: import("../..").WithBoxProps<import("vue").Defin
|
|
|
413
420
|
descriptionProps: Record<string, any>;
|
|
414
421
|
errorProps: Record<string, any>;
|
|
415
422
|
inputContainer: (children: any) => any;
|
|
416
|
-
inputWrapperOrder: ("
|
|
423
|
+
inputWrapperOrder: ("input" | "label" | "error" | "description")[];
|
|
417
424
|
__stylesApiProps: Record<string, any>;
|
|
418
425
|
leftSectionWidth: string | number;
|
|
419
426
|
leftSectionProps: Record<string, any>;
|
|
@@ -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>>;
|