@mantine-vue/core 2.3.1 → 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.
Files changed (84) hide show
  1. package/cjs/index.cjs +1718 -292
  2. package/cjs/index.cjs.map +1 -1
  3. package/esm/index.mjs +1713 -293
  4. package/esm/index.mjs.map +1 -1
  5. package/lib/components/Accordion/Accordion.d.ts +24 -4
  6. package/lib/components/Accordion/index.d.ts +1 -1
  7. package/lib/components/AngleSlider/AngleSlider.d.ts +15 -2
  8. package/lib/components/Autocomplete/Autocomplete.d.ts +3 -1
  9. package/lib/components/Cascader/Cascader.d.ts +315 -0
  10. package/lib/components/Cascader/cascader-utils.d.ts +11 -0
  11. package/lib/components/Cascader/index.d.ts +4 -0
  12. package/lib/components/Checkbox/Checkbox.d.ts +91 -9
  13. package/lib/components/Checkbox/CheckboxCard/CheckboxCard.d.ts +15 -2
  14. package/lib/components/Checkbox/CheckboxGroup/CheckboxGroup.d.ts +14 -2
  15. package/lib/components/Chip/Chip.d.ts +46 -7
  16. package/lib/components/Chip/ChipGroup/ChipGroup.d.ts +14 -2
  17. package/lib/components/ColorInput/ColorInput.d.ts +9 -3
  18. package/lib/components/ColorInput/index.d.ts +1 -1
  19. package/lib/components/ColorPicker/AlphaSlider/AlphaSlider.d.ts +26 -4
  20. package/lib/components/ColorPicker/ColorPicker.d.ts +14 -2
  21. package/lib/components/ColorPicker/ColorSlider/ColorSlider.d.ts +26 -4
  22. package/lib/components/ColorPicker/HueSlider/HueSlider.d.ts +26 -4
  23. package/lib/components/Combobox/Combobox.d.ts +64 -4
  24. package/lib/components/Combobox/OptionsDropdown/OptionsDropdown.d.ts +1 -0
  25. package/lib/components/ComboboxPopover/ComboboxPopover.d.ts +49 -7
  26. package/lib/components/Drawer/Drawer.d.ts +33 -0
  27. package/lib/components/FileButton/FileButton.d.ts +17 -4
  28. package/lib/components/FileInput/FileInput.d.ts +14 -2
  29. package/lib/components/FloatingWindow/FloatingWindow.context.d.ts +23 -0
  30. package/lib/components/FloatingWindow/FloatingWindow.d.ts +37 -0
  31. package/lib/components/FloatingWindow/FloatingWindowResizeHandle.d.ts +27 -0
  32. package/lib/components/FloatingWindow/index.d.ts +2 -0
  33. package/lib/components/Input/Input.d.ts +74 -5
  34. package/lib/components/InputBase/InputBase.d.ts +41 -2
  35. package/lib/components/InputBase/index.d.ts +1 -1
  36. package/lib/components/JsonInput/JsonInput.d.ts +14 -2
  37. package/lib/components/MaskInput/MaskInput.d.ts +45 -2
  38. package/lib/components/Menu/Menu.context.d.ts +1 -0
  39. package/lib/components/Menu/Menu.d.ts +82 -4
  40. package/lib/components/Modal/Modal.d.ts +33 -0
  41. package/lib/components/MultiSelect/MultiSelect.d.ts +9 -1
  42. package/lib/components/MultiSelect/index.d.ts +1 -1
  43. package/lib/components/NativeSelect/NativeSelect.d.ts +19 -6
  44. package/lib/components/NumberInput/NumberInput.d.ts +14 -2
  45. package/lib/components/PasswordInput/PasswordInput.d.ts +45 -2
  46. package/lib/components/PasswordInput/index.d.ts +1 -1
  47. package/lib/components/PillsInput/PillsInput.d.ts +41 -2
  48. package/lib/components/PillsInput/PillsInputField/PillsInputField.d.ts +41 -2
  49. package/lib/components/PinInput/PinInput.d.ts +15 -2
  50. package/lib/components/Radio/Radio.d.ts +124 -9
  51. package/lib/components/Radio/RadioCard/RadioCard.d.ts +33 -2
  52. package/lib/components/Radio/RadioGroup/RadioGroup.d.ts +14 -2
  53. package/lib/components/Rating/Rating.d.ts +14 -2
  54. package/lib/components/ScrollArea/ScrollArea.d.ts +25 -0
  55. package/lib/components/Scroller/Scroller.d.ts +9 -2
  56. package/lib/components/Scroller/index.d.ts +1 -1
  57. package/lib/components/SegmentedControl/SegmentedControl.d.ts +14 -2
  58. package/lib/components/Select/Select.d.ts +4 -2
  59. package/lib/components/Select/index.d.ts +1 -1
  60. package/lib/components/Slider/RangeSlider/RangeSlider.d.ts +14 -2
  61. package/lib/components/Slider/Slider/Slider.d.ts +14 -2
  62. package/lib/components/Slider/index.d.ts +2 -1
  63. package/lib/components/Splitter/Splitter.d.ts +8 -3
  64. package/lib/components/Splitter/index.d.ts +1 -1
  65. package/lib/components/Stepper/Stepper.d.ts +2 -1
  66. package/lib/components/Switch/Switch.d.ts +67 -13
  67. package/lib/components/Switch/SwitchGroup/SwitchGroup.d.ts +15 -3
  68. package/lib/components/Tabs/Tabs.context.d.ts +0 -1
  69. package/lib/components/Tabs/Tabs.d.ts +0 -15
  70. package/lib/components/TagsInput/TagsInput.d.ts +9 -1
  71. package/lib/components/TagsInput/index.d.ts +1 -1
  72. package/lib/components/TextInput/TextInput.d.ts +36 -2
  73. package/lib/components/Textarea/Textarea.d.ts +39 -4
  74. package/lib/components/Textarea/index.d.ts +1 -0
  75. package/lib/components/Timeline/Timeline.d.ts +19 -1
  76. package/lib/components/Timeline/TimelineItem/TimelineItem.d.ts +20 -1
  77. package/lib/components/Tree/Tree.d.ts +7 -2
  78. package/lib/components/Tree/index.d.ts +1 -1
  79. package/lib/components/TreeSelect/TreeSelect.d.ts +5 -2
  80. package/lib/components/TreeSelect/index.d.ts +1 -1
  81. package/lib/components/index.d.ts +1 -0
  82. package/package.json +3 -3
  83. package/styles.css +471 -129
  84. package/styles.layer.css +471 -129
@@ -1,8 +1,13 @@
1
- import { type PropType } from 'vue';
1
+ import { type PropType, type SlotsType, type VNodeChild } from 'vue';
2
2
  import { type MantineRadius } from '../../core';
3
3
  import { type AccordionChevronPosition, type AccordionHeadingOrder, type AccordionValue } from './Accordion.context';
4
4
  export type AccordionStylesNames = 'root' | 'content' | 'item' | 'panel' | 'icon' | 'chevron' | 'label' | 'itemTitle' | 'control';
5
5
  export type AccordionVariant = 'default' | 'contained' | 'filled' | 'separated';
6
+ export interface AccordionSlots {
7
+ default?: () => VNodeChild;
8
+ /** Custom chevron used by all Accordion.Control components, alternative to the `chevron` prop */
9
+ chevron?: () => VNodeChild;
10
+ }
6
11
  export declare const Accordion: {
7
12
  new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
8
13
  multiple: {
@@ -37,6 +42,10 @@ export declare const Accordion: {
37
42
  type: BooleanConstructor;
38
43
  default: undefined;
39
44
  };
45
+ disableCollapse: {
46
+ type: BooleanConstructor;
47
+ default: undefined;
48
+ };
40
49
  chevronPosition: {
41
50
  type: PropType<AccordionChevronPosition>;
42
51
  default: undefined;
@@ -107,8 +116,9 @@ export declare const Accordion: {
107
116
  chevronPosition: AccordionChevronPosition;
108
117
  chevronSize: string | number;
109
118
  disableChevronRotation: boolean;
119
+ disableCollapse: boolean;
110
120
  chevronIconSize: string | number;
111
- }, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
121
+ }, true, {}, SlotsType<AccordionSlots>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
112
122
  P: {};
113
123
  B: {};
114
124
  D: {};
@@ -148,6 +158,10 @@ export declare const Accordion: {
148
158
  type: BooleanConstructor;
149
159
  default: undefined;
150
160
  };
161
+ disableCollapse: {
162
+ type: BooleanConstructor;
163
+ default: undefined;
164
+ };
151
165
  chevronPosition: {
152
166
  type: PropType<AccordionChevronPosition>;
153
167
  default: undefined;
@@ -218,6 +232,7 @@ export declare const Accordion: {
218
232
  chevronPosition: AccordionChevronPosition;
219
233
  chevronSize: string | number;
220
234
  disableChevronRotation: boolean;
235
+ disableCollapse: boolean;
221
236
  chevronIconSize: string | number;
222
237
  }>;
223
238
  __isFragment?: never;
@@ -256,6 +271,10 @@ export declare const Accordion: {
256
271
  type: BooleanConstructor;
257
272
  default: undefined;
258
273
  };
274
+ disableCollapse: {
275
+ type: BooleanConstructor;
276
+ default: undefined;
277
+ };
259
278
  chevronPosition: {
260
279
  type: PropType<AccordionChevronPosition>;
261
280
  default: undefined;
@@ -326,8 +345,9 @@ export declare const Accordion: {
326
345
  chevronPosition: AccordionChevronPosition;
327
346
  chevronSize: string | number;
328
347
  disableChevronRotation: boolean;
348
+ disableCollapse: boolean;
329
349
  chevronIconSize: string | number;
330
- }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
350
+ }, {}, string, SlotsType<AccordionSlots>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
331
351
  classes: Record<string, string>;
332
352
  varsResolver: (theme: import("../..").MantineTheme, props: any, ctx: Record<string, any>) => Record<string, Record<string, string | undefined>>;
333
353
  Item: import("../..").WithBoxProps<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
@@ -508,7 +528,7 @@ export declare const Accordion: {
508
528
  icon: import("../..").MantineNode;
509
529
  onKeyDown: (event: KeyboardEvent) => void;
510
530
  chevron: import("../..").MantineNode;
511
- }, import("vue").SlotsType<import("./AccordionControl/AccordionControl").AccordionControlSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
531
+ }, SlotsType<import("./AccordionControl/AccordionControl").AccordionControlSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
512
532
  Chevron: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
513
533
  size: {
514
534
  type: PropType<number | string>;
@@ -1,5 +1,5 @@
1
1
  export { Accordion } from './Accordion';
2
- export type { AccordionStylesNames, AccordionVariant } from './Accordion';
2
+ export type { AccordionSlots, AccordionStylesNames, AccordionVariant } from './Accordion';
3
3
  export { AccordionChevron } from './AccordionChevron';
4
4
  export { AccordionControl } from './AccordionControl/AccordionControl';
5
5
  export type { AccordionControlStylesNames } from './AccordionControl/AccordionControl';
@@ -9,6 +9,7 @@ export interface AngleSliderMark {
9
9
  }
10
10
  export interface AngleSliderProps {
11
11
  step?: number;
12
+ modelValue?: number;
12
13
  value?: number;
13
14
  defaultValue?: number;
14
15
  onChange?: (value: number) => void;
@@ -34,6 +35,10 @@ export declare const AngleSlider: import("../..").WithBoxProps<import("vue").Def
34
35
  type: NumberConstructor;
35
36
  default: undefined;
36
37
  };
38
+ modelValue: {
39
+ type: NumberConstructor;
40
+ default: undefined;
41
+ };
37
42
  value: {
38
43
  type: NumberConstructor;
39
44
  default: undefined;
@@ -112,11 +117,15 @@ export declare const AngleSlider: import("../..").WithBoxProps<import("vue").Def
112
117
  };
113
118
  }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
114
119
  [key: string]: any;
115
- }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
120
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
116
121
  step: {
117
122
  type: NumberConstructor;
118
123
  default: undefined;
119
124
  };
125
+ modelValue: {
126
+ type: NumberConstructor;
127
+ default: undefined;
128
+ };
120
129
  value: {
121
130
  type: NumberConstructor;
122
131
  default: undefined;
@@ -193,7 +202,10 @@ export declare const AngleSlider: import("../..").WithBoxProps<import("vue").Def
193
202
  type: BooleanConstructor;
194
203
  default: boolean;
195
204
  };
196
- }>> & Readonly<{}>, {
205
+ }>> & Readonly<{
206
+ onChange?: ((...args: any[]) => any) | undefined;
207
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
208
+ }>, {
197
209
  size: number;
198
210
  name: string;
199
211
  onChange: (value: number) => void;
@@ -211,6 +223,7 @@ export declare const AngleSlider: import("../..").WithBoxProps<import("vue").Def
211
223
  withLabel: boolean;
212
224
  marks: AngleSliderMark[];
213
225
  thumbSize: number;
226
+ modelValue: number;
214
227
  formatLabel: (value: number) => any;
215
228
  restrictToMarks: boolean;
216
229
  hiddenInputProps: Record<string, any>;
@@ -92,6 +92,7 @@ export declare const Autocomplete: import("vue").DefineComponent<import("vue").E
92
92
  [key: string]: any;
93
93
  }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
94
94
  'update:modelValue': (value: string) => boolean;
95
+ change: (value: string) => boolean;
95
96
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
96
97
  modelValue: {
97
98
  type: StringConstructor;
@@ -138,13 +139,14 @@ export declare const Autocomplete: import("vue").DefineComponent<import("vue").E
138
139
  default: boolean;
139
140
  };
140
141
  }>> & Readonly<{
142
+ onChange?: ((value: string) => any) | undefined;
141
143
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
142
144
  }>, {
143
145
  data: ComboboxGenericData;
144
146
  value: string;
145
147
  defaultValue: string;
146
- clearable: boolean;
147
148
  modelValue: string;
149
+ clearable: boolean;
148
150
  withScrollArea: boolean;
149
151
  dropdownOpened: boolean;
150
152
  defaultDropdownOpened: boolean;
@@ -0,0 +1,315 @@
1
+ import { type PropType, type SlotsType, type VNodeChild } from 'vue';
2
+ import { type MantineNode } from '../../core';
3
+ export interface CascaderOption {
4
+ value: string;
5
+ label?: VNodeChild;
6
+ children?: CascaderOption[];
7
+ disabled?: boolean;
8
+ }
9
+ export interface CascaderFormatValueInput {
10
+ value: string[];
11
+ options: CascaderOption[];
12
+ }
13
+ export type CascaderFormatValue = (input: CascaderFormatValueInput) => string;
14
+ export interface CascaderSlots {
15
+ label?: () => VNodeChild;
16
+ description?: () => VNodeChild;
17
+ error?: () => VNodeChild;
18
+ leftSection?: () => VNodeChild;
19
+ rightSection?: () => VNodeChild;
20
+ separator?: () => VNodeChild;
21
+ nothingFoundMessage?: () => VNodeChild;
22
+ /** Alias used by other Combobox-based components. */
23
+ nothingFound?: () => VNodeChild;
24
+ renderSearchOption?: (input: {
25
+ query: string;
26
+ options: CascaderOption[];
27
+ }) => VNodeChild;
28
+ renderOption?: (input: {
29
+ option: CascaderOption;
30
+ level: number;
31
+ }) => VNodeChild;
32
+ }
33
+ export interface CascaderProps {
34
+ data: CascaderOption[];
35
+ modelValue?: string[] | null;
36
+ value?: string[] | null;
37
+ defaultValue?: string[] | null;
38
+ onChange?: (value: string[] | null, options: CascaderOption[]) => void;
39
+ changeOnSelect?: boolean;
40
+ closeOnSelect?: boolean;
41
+ allowDeselect?: boolean;
42
+ withCheckIcon?: boolean;
43
+ checkIconPosition?: 'left' | 'right';
44
+ withColumns?: boolean;
45
+ expandTrigger?: 'click' | 'hover';
46
+ searchable?: boolean;
47
+ searchValue?: string;
48
+ defaultSearchValue?: string;
49
+ onSearchChange?: (value: string) => void;
50
+ filter?: (query: string, options: CascaderOption[]) => boolean;
51
+ renderSearchOption?: (query: string, options: CascaderOption[]) => VNodeChild;
52
+ formatValue?: CascaderFormatValue;
53
+ renderOption?: (option: CascaderOption, level: number) => VNodeChild;
54
+ separator?: MantineNode;
55
+ columnWidth?: number | string;
56
+ maxDisplayedLevels?: number;
57
+ previousLevelsControlLabel?: string;
58
+ nextLevelsControlLabel?: string;
59
+ maxDropdownHeight?: number | string;
60
+ nothingFoundMessage?: MantineNode;
61
+ clearable?: boolean;
62
+ clearSectionMode?: 'both' | 'rightSection' | 'clear';
63
+ clearButtonProps?: Record<string, unknown>;
64
+ onClear?: () => void;
65
+ dropdownOpened?: boolean;
66
+ defaultDropdownOpened?: boolean;
67
+ onDropdownOpen?: () => void;
68
+ onDropdownClose?: () => void;
69
+ comboboxProps?: Record<string, unknown>;
70
+ scrollAreaProps?: Record<string, unknown>;
71
+ chevronColor?: string;
72
+ hiddenInputProps?: Record<string, unknown>;
73
+ openOnFocus?: boolean;
74
+ readOnly?: boolean;
75
+ disabled?: boolean;
76
+ size?: string | number;
77
+ classNames?: Record<string, unknown> | ((...args: any[]) => Record<string, unknown>);
78
+ styles?: Record<string, unknown> | ((...args: any[]) => Record<string, unknown>);
79
+ unstyled?: boolean;
80
+ [key: string]: unknown;
81
+ }
82
+ export declare const Cascader: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
83
+ data: {
84
+ type: PropType<CascaderOption[]>;
85
+ required: true;
86
+ };
87
+ modelValue: PropType<string[] | null>;
88
+ value: PropType<string[] | null>;
89
+ defaultValue: PropType<string[] | null>;
90
+ onChange: PropType<CascaderProps["onChange"]>;
91
+ changeOnSelect: BooleanConstructor;
92
+ closeOnSelect: {
93
+ type: PropType<boolean | undefined>;
94
+ default: undefined;
95
+ };
96
+ allowDeselect: {
97
+ type: BooleanConstructor;
98
+ default: boolean;
99
+ };
100
+ withCheckIcon: {
101
+ type: BooleanConstructor;
102
+ default: boolean;
103
+ };
104
+ checkIconPosition: {
105
+ type: PropType<"left" | "right">;
106
+ default: string;
107
+ };
108
+ withColumns: {
109
+ type: BooleanConstructor;
110
+ default: boolean;
111
+ };
112
+ expandTrigger: {
113
+ type: PropType<"click" | "hover">;
114
+ default: string;
115
+ };
116
+ searchable: BooleanConstructor;
117
+ searchValue: StringConstructor;
118
+ defaultSearchValue: StringConstructor;
119
+ onSearchChange: PropType<(value: string) => void>;
120
+ filter: PropType<CascaderProps["filter"]>;
121
+ renderSearchOption: PropType<CascaderProps["renderSearchOption"]>;
122
+ formatValue: PropType<CascaderFormatValue>;
123
+ renderOption: PropType<CascaderProps["renderOption"]>;
124
+ separator: {
125
+ type: PropType<MantineNode>;
126
+ default: undefined;
127
+ };
128
+ columnWidth: {
129
+ type: (NumberConstructor | StringConstructor)[];
130
+ default: number;
131
+ };
132
+ maxDisplayedLevels: {
133
+ type: NumberConstructor;
134
+ default: number;
135
+ };
136
+ previousLevelsControlLabel: {
137
+ type: StringConstructor;
138
+ default: string;
139
+ };
140
+ nextLevelsControlLabel: {
141
+ type: StringConstructor;
142
+ default: string;
143
+ };
144
+ maxDropdownHeight: {
145
+ type: (NumberConstructor | StringConstructor)[];
146
+ default: number;
147
+ };
148
+ nothingFoundMessage: {
149
+ type: PropType<MantineNode>;
150
+ default: undefined;
151
+ };
152
+ clearable: BooleanConstructor;
153
+ clearSectionMode: {
154
+ type: PropType<"both" | "rightSection" | "clear">;
155
+ default: string;
156
+ };
157
+ clearButtonProps: ObjectConstructor;
158
+ onClear: PropType<() => void>;
159
+ dropdownOpened: {
160
+ type: PropType<boolean | undefined>;
161
+ default: undefined;
162
+ };
163
+ defaultDropdownOpened: BooleanConstructor;
164
+ onDropdownOpen: PropType<() => void>;
165
+ onDropdownClose: PropType<() => void>;
166
+ comboboxProps: ObjectConstructor;
167
+ scrollAreaProps: ObjectConstructor;
168
+ chevronColor: StringConstructor;
169
+ hiddenInputProps: ObjectConstructor;
170
+ openOnFocus: {
171
+ type: BooleanConstructor;
172
+ default: boolean;
173
+ };
174
+ readOnly: BooleanConstructor;
175
+ disabled: BooleanConstructor;
176
+ size: {
177
+ type: (NumberConstructor | StringConstructor)[];
178
+ default: string;
179
+ };
180
+ classNames: (ObjectConstructor | FunctionConstructor)[];
181
+ styles: (ObjectConstructor | FunctionConstructor)[];
182
+ unstyled: BooleanConstructor;
183
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
184
+ [key: string]: any;
185
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue" | "update:searchValue")[], "change" | "update:modelValue" | "update:searchValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
186
+ data: {
187
+ type: PropType<CascaderOption[]>;
188
+ required: true;
189
+ };
190
+ modelValue: PropType<string[] | null>;
191
+ value: PropType<string[] | null>;
192
+ defaultValue: PropType<string[] | null>;
193
+ onChange: PropType<CascaderProps["onChange"]>;
194
+ changeOnSelect: BooleanConstructor;
195
+ closeOnSelect: {
196
+ type: PropType<boolean | undefined>;
197
+ default: undefined;
198
+ };
199
+ allowDeselect: {
200
+ type: BooleanConstructor;
201
+ default: boolean;
202
+ };
203
+ withCheckIcon: {
204
+ type: BooleanConstructor;
205
+ default: boolean;
206
+ };
207
+ checkIconPosition: {
208
+ type: PropType<"left" | "right">;
209
+ default: string;
210
+ };
211
+ withColumns: {
212
+ type: BooleanConstructor;
213
+ default: boolean;
214
+ };
215
+ expandTrigger: {
216
+ type: PropType<"click" | "hover">;
217
+ default: string;
218
+ };
219
+ searchable: BooleanConstructor;
220
+ searchValue: StringConstructor;
221
+ defaultSearchValue: StringConstructor;
222
+ onSearchChange: PropType<(value: string) => void>;
223
+ filter: PropType<CascaderProps["filter"]>;
224
+ renderSearchOption: PropType<CascaderProps["renderSearchOption"]>;
225
+ formatValue: PropType<CascaderFormatValue>;
226
+ renderOption: PropType<CascaderProps["renderOption"]>;
227
+ separator: {
228
+ type: PropType<MantineNode>;
229
+ default: undefined;
230
+ };
231
+ columnWidth: {
232
+ type: (NumberConstructor | StringConstructor)[];
233
+ default: number;
234
+ };
235
+ maxDisplayedLevels: {
236
+ type: NumberConstructor;
237
+ default: number;
238
+ };
239
+ previousLevelsControlLabel: {
240
+ type: StringConstructor;
241
+ default: string;
242
+ };
243
+ nextLevelsControlLabel: {
244
+ type: StringConstructor;
245
+ default: string;
246
+ };
247
+ maxDropdownHeight: {
248
+ type: (NumberConstructor | StringConstructor)[];
249
+ default: number;
250
+ };
251
+ nothingFoundMessage: {
252
+ type: PropType<MantineNode>;
253
+ default: undefined;
254
+ };
255
+ clearable: BooleanConstructor;
256
+ clearSectionMode: {
257
+ type: PropType<"both" | "rightSection" | "clear">;
258
+ default: string;
259
+ };
260
+ clearButtonProps: ObjectConstructor;
261
+ onClear: PropType<() => void>;
262
+ dropdownOpened: {
263
+ type: PropType<boolean | undefined>;
264
+ default: undefined;
265
+ };
266
+ defaultDropdownOpened: BooleanConstructor;
267
+ onDropdownOpen: PropType<() => void>;
268
+ onDropdownClose: PropType<() => void>;
269
+ comboboxProps: ObjectConstructor;
270
+ scrollAreaProps: ObjectConstructor;
271
+ chevronColor: StringConstructor;
272
+ hiddenInputProps: ObjectConstructor;
273
+ openOnFocus: {
274
+ type: BooleanConstructor;
275
+ default: boolean;
276
+ };
277
+ readOnly: BooleanConstructor;
278
+ disabled: BooleanConstructor;
279
+ size: {
280
+ type: (NumberConstructor | StringConstructor)[];
281
+ default: string;
282
+ };
283
+ classNames: (ObjectConstructor | FunctionConstructor)[];
284
+ styles: (ObjectConstructor | FunctionConstructor)[];
285
+ unstyled: BooleanConstructor;
286
+ }>> & Readonly<{
287
+ onChange?: ((...args: any[]) => any) | undefined;
288
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
289
+ "onUpdate:searchValue"?: ((...args: any[]) => any) | undefined;
290
+ }>, {
291
+ size: string | number;
292
+ disabled: boolean;
293
+ separator: MantineNode;
294
+ columnWidth: string | number;
295
+ unstyled: boolean;
296
+ clearable: boolean;
297
+ clearSectionMode: "clear" | "both" | "rightSection";
298
+ readOnly: boolean;
299
+ withCheckIcon: boolean;
300
+ maxDropdownHeight: string | number;
301
+ checkIconPosition: "left" | "right";
302
+ nothingFoundMessage: MantineNode;
303
+ dropdownOpened: boolean | undefined;
304
+ defaultDropdownOpened: boolean;
305
+ searchable: boolean;
306
+ allowDeselect: boolean;
307
+ openOnFocus: boolean;
308
+ changeOnSelect: boolean;
309
+ closeOnSelect: boolean | undefined;
310
+ withColumns: boolean;
311
+ expandTrigger: "click" | "hover";
312
+ maxDisplayedLevels: number;
313
+ previousLevelsControlLabel: string;
314
+ nextLevelsControlLabel: string;
315
+ }, SlotsType<CascaderSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,11 @@
1
+ import type { CascaderOption } from './Cascader';
2
+ export interface CascaderFlatPath {
3
+ path: string[];
4
+ options: CascaderOption[];
5
+ leaf: boolean;
6
+ disabled: boolean;
7
+ }
8
+ export declare function cascaderOptionHasChildren(option: CascaderOption): boolean;
9
+ export declare function getCascaderColumns(data: CascaderOption[], activePath: string[]): CascaderOption[][];
10
+ export declare function getCascaderPathOptions(data: CascaderOption[], value: string[] | null | undefined): CascaderOption[];
11
+ export declare function flattenCascaderPaths(data: CascaderOption[]): CascaderFlatPath[];
@@ -0,0 +1,4 @@
1
+ export { Cascader } from './Cascader';
2
+ export type { CascaderProps, CascaderOption, CascaderFormatValue, CascaderFormatValueInput, CascaderSlots, } from './Cascader';
3
+ export type { CascaderFlatPath } from './cascader-utils';
4
+ export { cascaderOptionHasChildren, flattenCascaderPaths, getCascaderColumns, getCascaderPathOptions, } from './cascader-utils';