@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.
Files changed (115) hide show
  1. package/cjs/index.cjs +3615 -2207
  2. package/cjs/index.cjs.map +1 -1
  3. package/esm/index.mjs +3594 -2208
  4. package/esm/index.mjs.map +1 -1
  5. package/lib/components/Accordion/Accordion.d.ts +11 -11
  6. package/lib/components/Accordion/AccordionControl/AccordionControl.d.ts +15 -9
  7. package/lib/components/ActionIcon/ActionIcon.d.ts +1 -1
  8. package/lib/components/ActionIcon/ActionIconGroup/ActionIconGroup.d.ts +1 -1
  9. package/lib/components/Alert/Alert.d.ts +14 -8
  10. package/lib/components/AppShell/AppShell.d.ts +3 -3
  11. package/lib/components/Autocomplete/Autocomplete.d.ts +15 -3
  12. package/lib/components/Badge/Badge.d.ts +13 -10
  13. package/lib/components/Blockquote/Blockquote.d.ts +14 -8
  14. package/lib/components/Breadcrumbs/Breadcrumbs.d.ts +10 -5
  15. package/lib/components/Button/Button.d.ts +1 -1
  16. package/lib/components/Button/ButtonGroup/ButtonGroup.d.ts +1 -1
  17. package/lib/components/Card/Card.d.ts +3 -3
  18. package/lib/components/Checkbox/Checkbox.d.ts +44 -32
  19. package/lib/components/Checkbox/CheckboxGroup/CheckboxGroup.d.ts +18 -11
  20. package/lib/components/Checkbox/CheckboxIndicator/CheckboxIndicator.d.ts +9 -2
  21. package/lib/components/CloseButton/CloseButton.d.ts +10 -5
  22. package/lib/components/Collapse/Collapse.d.ts +1 -1
  23. package/lib/components/Combobox/Combobox.d.ts +4 -4
  24. package/lib/components/Combobox/OptionsDropdown/OptionsDropdown.d.ts +6 -2
  25. package/lib/components/ComboboxPopover/ComboboxPopover.d.ts +970 -0
  26. package/lib/components/ComboboxPopover/ComboboxPopover.types.d.ts +2 -0
  27. package/lib/components/ComboboxPopover/ComboboxPopoverTarget.d.ts +24 -0
  28. package/lib/components/ComboboxPopover/index.d.ts +5 -0
  29. package/lib/components/DataList/DataList.context.d.ts +4 -0
  30. package/lib/components/DataList/DataList.d.ts +304 -0
  31. package/lib/components/DataList/DataListItem/DataListItem.d.ts +44 -0
  32. package/lib/components/DataList/DataListItemLabel/DataListItemLabel.d.ts +44 -0
  33. package/lib/components/DataList/DataListItemValue/DataListItemValue.d.ts +44 -0
  34. package/lib/components/DataList/index.d.ts +10 -0
  35. package/lib/components/Dialog/Dialog.d.ts +1 -1
  36. package/lib/components/Divider/Divider.d.ts +11 -6
  37. package/lib/components/Drawer/Drawer.d.ts +14 -9
  38. package/lib/components/EmptyState/EmptyState.context.d.ts +5 -0
  39. package/lib/components/EmptyState/EmptyState.d.ts +401 -0
  40. package/lib/components/EmptyState/EmptyStateActions/EmptyStateActions.d.ts +44 -0
  41. package/lib/components/EmptyState/EmptyStateDescription/EmptyStateDescription.d.ts +44 -0
  42. package/lib/components/EmptyState/EmptyStateIndicator/EmptyStateIndicator.d.ts +44 -0
  43. package/lib/components/EmptyState/EmptyStateTitle/EmptyStateTitle.d.ts +55 -0
  44. package/lib/components/EmptyState/index.d.ts +12 -0
  45. package/lib/components/Fieldset/Fieldset.d.ts +10 -5
  46. package/lib/components/FileButton/FileButton.d.ts +1 -1
  47. package/lib/components/FileInput/FileInput.d.ts +27 -18
  48. package/lib/components/Highlight/Highlight.d.ts +1 -1
  49. package/lib/components/HoverCard/HoverCard.context.d.ts +1 -0
  50. package/lib/components/HoverCard/use-hover-card.d.ts +1 -0
  51. package/lib/components/Indicator/Indicator.d.ts +10 -5
  52. package/lib/components/Input/Input.d.ts +29 -25
  53. package/lib/components/Input/InputWrapper/InputWrapper.d.ts +18 -11
  54. package/lib/components/InputBase/InputBase.d.ts +22 -15
  55. package/lib/components/List/List.d.ts +21 -16
  56. package/lib/components/List/ListItem/ListItem.d.ts +10 -5
  57. package/lib/components/Marquee/Marquee.d.ts +1 -1
  58. package/lib/components/Menu/Menu.d.ts +69 -30
  59. package/lib/components/Menubar/Menubar.context.d.ts +51 -0
  60. package/lib/components/Menubar/Menubar.d.ts +282 -0
  61. package/lib/components/Menubar/MenubarDropdown/MenubarDropdown.d.ts +10 -0
  62. package/lib/components/Menubar/MenubarMenu/MenubarMenu.d.ts +49 -0
  63. package/lib/components/Menubar/MenubarTarget/MenubarTarget.d.ts +35 -0
  64. package/lib/components/Menubar/index.d.ts +10 -0
  65. package/lib/components/Modal/Modal.d.ts +14 -9
  66. package/lib/components/MultiSelect/MultiSelect.d.ts +16 -4
  67. package/lib/components/NativeSelect/NativeSelect.d.ts +25 -16
  68. package/lib/components/NavLink/NavLink.d.ts +15 -9
  69. package/lib/components/Notification/Notification.d.ts +14 -8
  70. package/lib/components/NumberInput/NumberInput.d.ts +22 -14
  71. package/lib/components/Overlay/Overlay.d.ts +1 -1
  72. package/lib/components/Pagination/Pagination.d.ts +5 -5
  73. package/lib/components/Pagination/PaginationDots/PaginationDots.d.ts +5 -2
  74. package/lib/components/Pagination/PaginationEdges/PaginationEdges.d.ts +8 -5
  75. package/lib/components/PasswordInput/PasswordInput.d.ts +26 -18
  76. package/lib/components/PillsInput/PillsInput.d.ts +30 -21
  77. package/lib/components/PinInput/PinInput.d.ts +2 -2
  78. package/lib/components/Progress/Progress.d.ts +4 -4
  79. package/lib/components/Progress/ProgressRoot/ProgressRoot.d.ts +1 -1
  80. package/lib/components/Radio/Radio.d.ts +42 -32
  81. package/lib/components/Radio/RadioGroup/RadioGroup.d.ts +18 -11
  82. package/lib/components/Radio/RadioIndicator/RadioIndicator.d.ts +8 -2
  83. package/lib/components/Rating/Rating.d.ts +17 -8
  84. package/lib/components/ScrollArea/ScrollAreaScrollbar/ScrollAreaScrollbarVisible.d.ts +1 -1
  85. package/lib/components/SegmentedControl/SegmentedControl.d.ts +1 -1
  86. package/lib/components/Select/Select.d.ts +17 -5
  87. package/lib/components/SemiCircleProgress/SemiCircleProgress.d.ts +10 -6
  88. package/lib/components/Skeleton/Skeleton.d.ts +2 -2
  89. package/lib/components/Slider/RangeSlider/RangeSlider.d.ts +13 -4
  90. package/lib/components/Slider/Slider/Slider.d.ts +10 -4
  91. package/lib/components/Slider/SliderRoot/SliderRoot.d.ts +1 -1
  92. package/lib/components/Slider/Thumb/Thumb.d.ts +1 -1
  93. package/lib/components/Splitter/Splitter.d.ts +3 -3
  94. package/lib/components/Spoiler/Spoiler.d.ts +18 -10
  95. package/lib/components/Stepper/Stepper.d.ts +22 -10
  96. package/lib/components/Stepper/StepperStep/StepperStep.d.ts +15 -5
  97. package/lib/components/Switch/Switch.d.ts +58 -49
  98. package/lib/components/Switch/SwitchGroup/SwitchGroup.d.ts +18 -11
  99. package/lib/components/Table/Table.d.ts +3 -3
  100. package/lib/components/Tabs/Tabs.d.ts +14 -14
  101. package/lib/components/Tabs/TabsTab/TabsTab.d.ts +13 -9
  102. package/lib/components/TagsInput/TagsInput.d.ts +15 -3
  103. package/lib/components/Text/Text.d.ts +1 -1
  104. package/lib/components/Textarea/Textarea.d.ts +1 -1
  105. package/lib/components/Timeline/Timeline.d.ts +8 -8
  106. package/lib/components/Timeline/TimelineItem/TimelineItem.d.ts +15 -9
  107. package/lib/components/TreeSelect/TreeSelect.d.ts +14 -5
  108. package/lib/components/index.d.ts +4 -0
  109. package/lib/core/Box/Box.d.ts +2 -2
  110. package/lib/core/index.d.ts +1 -0
  111. package/lib/core/renderable-node.d.ts +10 -0
  112. package/lib/core/utils/create-scoped-keydown-handler.d.ts +10 -0
  113. package/lib/core/utils/index.d.ts +1 -0
  114. package/lib/utils/InlineInput/InlineInput.d.ts +1 -1
  115. package/package.json +3 -3
@@ -0,0 +1,282 @@
1
+ import { type PropType, type SlotsType, type VNode, type VNodeChild } from 'vue';
2
+ export type MenubarStylesNames = 'root' | 'target';
3
+ export interface MenubarProps {
4
+ /** Index of the controlled opened menu, `null` closes all menus */
5
+ openIndex?: number | null;
6
+ /** Index of the opened menu for uncontrolled component @default `null` */
7
+ defaultOpenIndex?: number | null;
8
+ /** Called when the opened menu changes with its index or `null` when all menus are closed */
9
+ onOpenChange?: (index: number | null) => void;
10
+ /** Event that opens a menu when none of the menus is opened. `'click'` opens a menu on target
11
+ * click and then switches menus on hover (desktop application pattern), `'hover'` opens a menu
12
+ * when the target is hovered @default `'click'` */
13
+ trigger?: 'click' | 'hover';
14
+ /** If set, arrow key navigation wraps from last to first menu and vice versa @default `true` */
15
+ loop?: boolean;
16
+ /** Dropdown position relative to the target element @default `'bottom-start'` */
17
+ position?: string;
18
+ classNames?: any;
19
+ styles?: any;
20
+ vars?: any;
21
+ unstyled?: boolean;
22
+ mod?: any;
23
+ [key: string]: any;
24
+ }
25
+ export interface MenubarSlots {
26
+ default?: () => VNodeChild;
27
+ }
28
+ export declare const Menubar: import("../..").WithBoxProps<{
29
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
30
+ openIndex: {
31
+ type: PropType<number | null>;
32
+ default: undefined;
33
+ };
34
+ defaultOpenIndex: {
35
+ type: PropType<number | null>;
36
+ default: undefined;
37
+ };
38
+ onOpenChange: {
39
+ type: PropType<(index: number | null) => void>;
40
+ default: undefined;
41
+ };
42
+ trigger: {
43
+ type: PropType<"click" | "hover">;
44
+ default: undefined;
45
+ };
46
+ loop: {
47
+ type: BooleanConstructor;
48
+ default: undefined;
49
+ };
50
+ position: {
51
+ type: StringConstructor;
52
+ default: undefined;
53
+ };
54
+ mod: {
55
+ type: PropType<any>;
56
+ default: undefined;
57
+ };
58
+ classNames: {
59
+ type: (ObjectConstructor | FunctionConstructor)[];
60
+ default: undefined;
61
+ };
62
+ styles: {
63
+ type: (ObjectConstructor | FunctionConstructor)[];
64
+ default: undefined;
65
+ };
66
+ vars: {
67
+ type: (ObjectConstructor | FunctionConstructor)[];
68
+ default: undefined;
69
+ };
70
+ unstyled: {
71
+ type: BooleanConstructor;
72
+ default: boolean;
73
+ };
74
+ }>> & Readonly<{}>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
75
+ [key: string]: any;
76
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
77
+ loop: boolean;
78
+ classNames: Function | Record<string, any>;
79
+ styles: Function | Record<string, any>;
80
+ mod: any;
81
+ position: string;
82
+ vars: Function | Record<string, any>;
83
+ unstyled: boolean;
84
+ trigger: "click" | "hover";
85
+ openIndex: number | null;
86
+ defaultOpenIndex: number | null;
87
+ onOpenChange: (index: number | null) => void;
88
+ }, true, {}, SlotsType<MenubarSlots>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
89
+ P: {};
90
+ B: {};
91
+ D: {};
92
+ C: {};
93
+ M: {};
94
+ Defaults: {};
95
+ }, Readonly<import("vue").ExtractPropTypes<{
96
+ openIndex: {
97
+ type: PropType<number | null>;
98
+ default: undefined;
99
+ };
100
+ defaultOpenIndex: {
101
+ type: PropType<number | null>;
102
+ default: undefined;
103
+ };
104
+ onOpenChange: {
105
+ type: PropType<(index: number | null) => void>;
106
+ default: undefined;
107
+ };
108
+ trigger: {
109
+ type: PropType<"click" | "hover">;
110
+ default: undefined;
111
+ };
112
+ loop: {
113
+ type: BooleanConstructor;
114
+ default: undefined;
115
+ };
116
+ position: {
117
+ type: StringConstructor;
118
+ default: undefined;
119
+ };
120
+ mod: {
121
+ type: PropType<any>;
122
+ default: undefined;
123
+ };
124
+ classNames: {
125
+ type: (ObjectConstructor | FunctionConstructor)[];
126
+ default: undefined;
127
+ };
128
+ styles: {
129
+ type: (ObjectConstructor | FunctionConstructor)[];
130
+ default: undefined;
131
+ };
132
+ vars: {
133
+ type: (ObjectConstructor | FunctionConstructor)[];
134
+ default: undefined;
135
+ };
136
+ unstyled: {
137
+ type: BooleanConstructor;
138
+ default: boolean;
139
+ };
140
+ }>> & Readonly<{}>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
141
+ [key: string]: any;
142
+ }>, {}, {}, {}, {
143
+ loop: boolean;
144
+ classNames: Function | Record<string, any>;
145
+ styles: Function | Record<string, any>;
146
+ mod: any;
147
+ position: string;
148
+ vars: Function | Record<string, any>;
149
+ unstyled: boolean;
150
+ trigger: "click" | "hover";
151
+ openIndex: number | null;
152
+ defaultOpenIndex: number | null;
153
+ onOpenChange: (index: number | null) => void;
154
+ }>;
155
+ __isFragment?: never;
156
+ __isTeleport?: never;
157
+ __isSuspense?: never;
158
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
159
+ openIndex: {
160
+ type: PropType<number | null>;
161
+ default: undefined;
162
+ };
163
+ defaultOpenIndex: {
164
+ type: PropType<number | null>;
165
+ default: undefined;
166
+ };
167
+ onOpenChange: {
168
+ type: PropType<(index: number | null) => void>;
169
+ default: undefined;
170
+ };
171
+ trigger: {
172
+ type: PropType<"click" | "hover">;
173
+ default: undefined;
174
+ };
175
+ loop: {
176
+ type: BooleanConstructor;
177
+ default: undefined;
178
+ };
179
+ position: {
180
+ type: StringConstructor;
181
+ default: undefined;
182
+ };
183
+ mod: {
184
+ type: PropType<any>;
185
+ default: undefined;
186
+ };
187
+ classNames: {
188
+ type: (ObjectConstructor | FunctionConstructor)[];
189
+ default: undefined;
190
+ };
191
+ styles: {
192
+ type: (ObjectConstructor | FunctionConstructor)[];
193
+ default: undefined;
194
+ };
195
+ vars: {
196
+ type: (ObjectConstructor | FunctionConstructor)[];
197
+ default: undefined;
198
+ };
199
+ unstyled: {
200
+ type: BooleanConstructor;
201
+ default: boolean;
202
+ };
203
+ }>> & Readonly<{}>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
204
+ [key: string]: any;
205
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
206
+ loop: boolean;
207
+ classNames: Function | Record<string, any>;
208
+ styles: Function | Record<string, any>;
209
+ mod: any;
210
+ position: string;
211
+ vars: Function | Record<string, any>;
212
+ unstyled: boolean;
213
+ trigger: "click" | "hover";
214
+ openIndex: number | null;
215
+ defaultOpenIndex: number | null;
216
+ onOpenChange: (index: number | null) => void;
217
+ }, {}, string, SlotsType<MenubarSlots>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
218
+ classes: Record<string, string>;
219
+ Menu: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
220
+ transitionProps: {
221
+ type: PropType<{
222
+ duration?: number;
223
+ exitDuration?: number;
224
+ [key: string]: any;
225
+ }>;
226
+ default: undefined;
227
+ };
228
+ __index: {
229
+ type: NumberConstructor;
230
+ default: number;
231
+ };
232
+ }>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
233
+ [key: string]: any;
234
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
235
+ transitionProps: {
236
+ type: PropType<{
237
+ duration?: number;
238
+ exitDuration?: number;
239
+ [key: string]: any;
240
+ }>;
241
+ default: undefined;
242
+ };
243
+ __index: {
244
+ type: NumberConstructor;
245
+ default: number;
246
+ };
247
+ }>> & Readonly<{}>, {
248
+ transitionProps: {
249
+ [key: string]: any;
250
+ duration?: number;
251
+ exitDuration?: number;
252
+ };
253
+ __index: number;
254
+ }, SlotsType<import(".").MenubarMenuSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
255
+ Target: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
256
+ refProp: {
257
+ type: StringConstructor;
258
+ default: string;
259
+ };
260
+ disabled: {
261
+ type: BooleanConstructor;
262
+ default: boolean;
263
+ };
264
+ }>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
265
+ [key: string]: any;
266
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
267
+ refProp: {
268
+ type: StringConstructor;
269
+ default: string;
270
+ };
271
+ disabled: {
272
+ type: BooleanConstructor;
273
+ default: boolean;
274
+ };
275
+ }>> & Readonly<{}>, {
276
+ disabled: boolean;
277
+ refProp: string;
278
+ }, SlotsType<import(".").MenubarTargetSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
279
+ Dropdown: import("vue").DefineComponent<{}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
280
+ [key: string]: any;
281
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, SlotsType<import(".").MenubarDropdownSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
282
+ }>;
@@ -0,0 +1,10 @@
1
+ import { type SlotsType, type VNodeChild } from 'vue';
2
+ export interface MenubarDropdownProps {
3
+ [key: string]: any;
4
+ }
5
+ export interface MenubarDropdownSlots {
6
+ default?: () => VNodeChild;
7
+ }
8
+ export declare const MenubarDropdown: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
9
+ [key: string]: any;
10
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, SlotsType<MenubarDropdownSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,49 @@
1
+ import { type PropType, type SlotsType, type VNodeChild } from 'vue';
2
+ export interface MenubarMenuProps {
3
+ /** Props passed down to the underlying transition */
4
+ transitionProps?: {
5
+ duration?: number;
6
+ exitDuration?: number;
7
+ [key: string]: any;
8
+ };
9
+ [key: string]: any;
10
+ }
11
+ export interface MenubarMenuSlots {
12
+ default?: () => VNodeChild;
13
+ }
14
+ export declare const MenubarMenu: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
15
+ transitionProps: {
16
+ type: PropType<{
17
+ duration?: number;
18
+ exitDuration?: number;
19
+ [key: string]: any;
20
+ }>;
21
+ default: undefined;
22
+ };
23
+ __index: {
24
+ type: NumberConstructor;
25
+ default: number;
26
+ };
27
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
28
+ [key: string]: any;
29
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
30
+ transitionProps: {
31
+ type: PropType<{
32
+ duration?: number;
33
+ exitDuration?: number;
34
+ [key: string]: any;
35
+ }>;
36
+ default: undefined;
37
+ };
38
+ __index: {
39
+ type: NumberConstructor;
40
+ default: number;
41
+ };
42
+ }>> & Readonly<{}>, {
43
+ transitionProps: {
44
+ [key: string]: any;
45
+ duration?: number;
46
+ exitDuration?: number;
47
+ };
48
+ __index: number;
49
+ }, SlotsType<MenubarMenuSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,35 @@
1
+ import { type SlotsType, type VNodeChild } from 'vue';
2
+ export interface MenubarTargetProps {
3
+ /** Key of the prop used to get element ref, useful for forwarding refs to custom components @default 'ref' */
4
+ refProp?: string;
5
+ /** Disables the target button */
6
+ disabled?: boolean;
7
+ [key: string]: any;
8
+ }
9
+ export interface MenubarTargetSlots {
10
+ default?: () => VNodeChild;
11
+ }
12
+ export declare const MenubarTarget: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
13
+ refProp: {
14
+ type: StringConstructor;
15
+ default: string;
16
+ };
17
+ disabled: {
18
+ type: BooleanConstructor;
19
+ default: boolean;
20
+ };
21
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
22
+ [key: string]: any;
23
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
24
+ refProp: {
25
+ type: StringConstructor;
26
+ default: string;
27
+ };
28
+ disabled: {
29
+ type: BooleanConstructor;
30
+ default: boolean;
31
+ };
32
+ }>> & Readonly<{}>, {
33
+ disabled: boolean;
34
+ refProp: string;
35
+ }, SlotsType<MenubarTargetSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,10 @@
1
+ export { Menubar } from './Menubar';
2
+ export type { MenubarProps, MenubarSlots, MenubarStylesNames } from './Menubar';
3
+ export { MenubarMenu } from './MenubarMenu/MenubarMenu';
4
+ export type { MenubarMenuProps, MenubarMenuSlots } from './MenubarMenu/MenubarMenu';
5
+ export { MenubarTarget } from './MenubarTarget/MenubarTarget';
6
+ export type { MenubarTargetProps, MenubarTargetSlots } from './MenubarTarget/MenubarTarget';
7
+ export { MenubarDropdown } from './MenubarDropdown/MenubarDropdown';
8
+ export type { MenubarDropdownProps, MenubarDropdownSlots } from './MenubarDropdown/MenubarDropdown';
9
+ export { useMenubarContext, useMenubarMenuContext } from './Menubar.context';
10
+ export type { MenubarContextValue, MenubarMenuContextValue } from './Menubar.context';
@@ -1,4 +1,5 @@
1
- import { type PropType, type VNodeChild } from 'vue';
1
+ import { type PropType, type SlotsType, type VNodeChild } from 'vue';
2
+ import { type MantineNode } from '../../core';
2
3
  import { type ModalBaseProps } from '../ModalBase';
3
4
  export interface ModalProps extends ModalBaseProps {
4
5
  title?: VNodeChild | (() => VNodeChild);
@@ -17,6 +18,10 @@ export interface ModalProps extends ModalBaseProps {
17
18
  styles?: any;
18
19
  vars?: any;
19
20
  }
21
+ export interface ModalSlots {
22
+ default?: () => VNodeChild;
23
+ title?: () => VNodeChild;
24
+ }
20
25
  export declare const ModalRoot: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
21
26
  opened: {
22
27
  type: BooleanConstructor;
@@ -244,7 +249,7 @@ export declare const Modal: {
244
249
  required: true;
245
250
  };
246
251
  title: {
247
- type: PropType<any>;
252
+ type: PropType<MantineNode>;
248
253
  default: undefined;
249
254
  };
250
255
  withOverlay: {
@@ -260,10 +265,10 @@ export declare const Modal: {
260
265
  }>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
261
266
  [key: string]: any;
262
267
  }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
263
- title: any;
268
+ title: MantineNode;
264
269
  withCloseButton: boolean;
265
270
  withOverlay: boolean;
266
- }, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
271
+ }, true, {}, SlotsType<ModalSlots>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
267
272
  P: {};
268
273
  B: {};
269
274
  D: {};
@@ -280,7 +285,7 @@ export declare const Modal: {
280
285
  required: true;
281
286
  };
282
287
  title: {
283
- type: PropType<any>;
288
+ type: PropType<MantineNode>;
284
289
  default: undefined;
285
290
  };
286
291
  withOverlay: {
@@ -296,7 +301,7 @@ export declare const Modal: {
296
301
  }>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
297
302
  [key: string]: any;
298
303
  }>, {}, {}, {}, {
299
- title: any;
304
+ title: MantineNode;
300
305
  withCloseButton: boolean;
301
306
  withOverlay: boolean;
302
307
  }>;
@@ -313,7 +318,7 @@ export declare const Modal: {
313
318
  required: true;
314
319
  };
315
320
  title: {
316
- type: PropType<any>;
321
+ type: PropType<MantineNode>;
317
322
  default: undefined;
318
323
  };
319
324
  withOverlay: {
@@ -329,10 +334,10 @@ export declare const Modal: {
329
334
  }>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
330
335
  [key: string]: any;
331
336
  }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
332
- title: any;
337
+ title: MantineNode;
333
338
  withCloseButton: boolean;
334
339
  withOverlay: boolean;
335
- }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
340
+ }, {}, string, SlotsType<ModalSlots>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
336
341
  classes: Record<string, string>;
337
342
  varsResolver: (theme: import("../..").MantineTheme, props: any, ctx: Record<string, any>) => Record<string, Record<string, string | undefined>>;
338
343
  Root: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
@@ -1,6 +1,18 @@
1
- import { type PropType } from 'vue';
1
+ import { type PropType, type SlotsType, type VNodeChild } from 'vue';
2
2
  import type { Primitive } from '../../core';
3
3
  import { type ComboboxData } from '../Combobox';
4
+ export interface MultiSelectSlots {
5
+ label?: () => VNodeChild;
6
+ description?: () => VNodeChild;
7
+ error?: () => VNodeChild;
8
+ leftSection?: () => VNodeChild;
9
+ rightSection?: () => VNodeChild;
10
+ renderOption?: (input: {
11
+ option: any;
12
+ checked?: boolean;
13
+ }) => VNodeChild;
14
+ nothingFound?: () => VNodeChild;
15
+ }
4
16
  export interface MultiSelectProps<Value extends Primitive = string> {
5
17
  modelValue?: Value[];
6
18
  value?: Value[];
@@ -177,13 +189,13 @@ export declare const MultiSelect: import("vue").DefineComponent<import("vue").Ex
177
189
  withScrollArea: boolean;
178
190
  checkIconPosition: "left" | "right";
179
191
  nothingFoundMessage: any;
180
- searchable: boolean;
181
192
  dropdownOpened: boolean;
182
193
  defaultDropdownOpened: boolean;
183
194
  selectFirstOptionOnDropdownOpen: boolean;
195
+ searchable: boolean;
196
+ hiddenInputValuesDivider: string;
184
197
  openOnFocus: boolean;
185
198
  maxValues: number;
186
199
  hidePickedOptions: boolean;
187
200
  clearSearchOnChange: boolean;
188
- hiddenInputValuesDivider: string;
189
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
201
+ }, SlotsType<MultiSelectSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -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 NativeSelectData } from './get-parsed-data/get-parsed-data';
4
+ export interface NativeSelectSlots {
5
+ default?: () => VNodeChild;
6
+ label?: () => VNodeChild;
7
+ description?: () => VNodeChild;
8
+ error?: () => VNodeChild;
9
+ leftSection?: () => VNodeChild;
10
+ rightSection?: () => VNodeChild;
11
+ }
3
12
  export interface NativeSelectProps {
4
13
  data?: NativeSelectData<any>;
5
14
  size?: string | number;
@@ -33,11 +42,11 @@ export declare const NativeSelect: import("vue").DefineComponent<import("vue").E
33
42
  default: undefined;
34
43
  };
35
44
  error: {
36
- type: PropType<any>;
45
+ type: PropType<MantineNode | boolean>;
37
46
  default: undefined;
38
47
  };
39
48
  rightSection: {
40
- type: PropType<any>;
49
+ type: PropType<MantineNode>;
41
50
  default: undefined;
42
51
  };
43
52
  rightSectionPointerEvents: {
@@ -45,11 +54,11 @@ export declare const NativeSelect: import("vue").DefineComponent<import("vue").E
45
54
  default: undefined;
46
55
  };
47
56
  label: {
48
- type: PropType<any>;
57
+ type: PropType<MantineNode>;
49
58
  default: undefined;
50
59
  };
51
60
  description: {
52
- type: PropType<any>;
61
+ type: PropType<MantineNode>;
53
62
  default: undefined;
54
63
  };
55
64
  required: {
@@ -120,11 +129,11 @@ export declare const NativeSelect: import("vue").DefineComponent<import("vue").E
120
129
  default: undefined;
121
130
  };
122
131
  error: {
123
- type: PropType<any>;
132
+ type: PropType<MantineNode | boolean>;
124
133
  default: undefined;
125
134
  };
126
135
  rightSection: {
127
- type: PropType<any>;
136
+ type: PropType<MantineNode>;
128
137
  default: undefined;
129
138
  };
130
139
  rightSectionPointerEvents: {
@@ -132,11 +141,11 @@ export declare const NativeSelect: import("vue").DefineComponent<import("vue").E
132
141
  default: undefined;
133
142
  };
134
143
  label: {
135
- type: PropType<any>;
144
+ type: PropType<MantineNode>;
136
145
  default: undefined;
137
146
  };
138
147
  description: {
139
- type: PropType<any>;
148
+ type: PropType<MantineNode>;
140
149
  default: undefined;
141
150
  };
142
151
  required: {
@@ -197,24 +206,24 @@ export declare const NativeSelect: import("vue").DefineComponent<import("vue").E
197
206
  };
198
207
  }>> & Readonly<{}>, {
199
208
  size: string | number;
209
+ data: NativeSelectData<any>;
210
+ form: string;
211
+ label: MantineNode;
200
212
  radius: string | number;
201
213
  name: string;
202
214
  variant: "default" | "filled" | "unstyled";
203
- error: any;
215
+ error: MantineNode;
204
216
  onChange: (event: Event) => void;
205
- data: NativeSelectData<any>;
206
- form: string;
207
- label: any;
208
217
  value: string;
209
218
  classNames: Function | Record<string, any>;
210
219
  styles: Function | Record<string, any>;
211
220
  required: boolean;
212
- description: any;
221
+ description: MantineNode;
213
222
  disabled: boolean;
214
223
  defaultValue: string;
215
224
  id: string;
216
225
  vars: Function | Record<string, any>;
217
226
  unstyled: boolean;
218
- rightSection: any;
227
+ rightSection: MantineNode;
219
228
  rightSectionPointerEvents: string;
220
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
229
+ }, SlotsType<NativeSelectSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;