@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
@@ -87,6 +87,7 @@ export declare const Accordion: {
87
87
  }>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
88
88
  [key: string]: any;
89
89
  }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
90
+ loop: boolean;
90
91
  radius: string | number;
91
92
  variant: AccordionVariant;
92
93
  onChange: (value: AccordionValue<any>) => void;
@@ -99,7 +100,6 @@ export declare const Accordion: {
99
100
  keepMounted: boolean;
100
101
  multiple: boolean;
101
102
  order: AccordionHeadingOrder;
102
- loop: boolean;
103
103
  vars: Function | Record<string, any>;
104
104
  unstyled: boolean;
105
105
  chevron: any;
@@ -198,6 +198,7 @@ export declare const Accordion: {
198
198
  }>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
199
199
  [key: string]: any;
200
200
  }>, {}, {}, {}, {
201
+ loop: boolean;
201
202
  radius: string | number;
202
203
  variant: AccordionVariant;
203
204
  onChange: (value: AccordionValue<any>) => void;
@@ -210,7 +211,6 @@ export declare const Accordion: {
210
211
  keepMounted: boolean;
211
212
  multiple: boolean;
212
213
  order: AccordionHeadingOrder;
213
- loop: boolean;
214
214
  vars: Function | Record<string, any>;
215
215
  unstyled: boolean;
216
216
  chevron: any;
@@ -306,6 +306,7 @@ export declare const Accordion: {
306
306
  }>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
307
307
  [key: string]: any;
308
308
  }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
309
+ loop: boolean;
309
310
  radius: string | number;
310
311
  variant: AccordionVariant;
311
312
  onChange: (value: AccordionValue<any>) => void;
@@ -318,7 +319,6 @@ export declare const Accordion: {
318
319
  keepMounted: boolean;
319
320
  multiple: boolean;
320
321
  order: AccordionHeadingOrder;
321
- loop: boolean;
322
322
  vars: Function | Record<string, any>;
323
323
  unstyled: boolean;
324
324
  chevron: any;
@@ -427,11 +427,11 @@ export declare const Accordion: {
427
427
  default: boolean;
428
428
  };
429
429
  chevron: {
430
- type: PropType<any>;
430
+ type: PropType<import("../..").MantineNode>;
431
431
  default: undefined;
432
432
  };
433
433
  icon: {
434
- type: PropType<any>;
434
+ type: PropType<import("../..").MantineNode>;
435
435
  default: undefined;
436
436
  };
437
437
  onClick: {
@@ -466,11 +466,11 @@ export declare const Accordion: {
466
466
  default: boolean;
467
467
  };
468
468
  chevron: {
469
- type: PropType<any>;
469
+ type: PropType<import("../..").MantineNode>;
470
470
  default: undefined;
471
471
  };
472
472
  icon: {
473
- type: PropType<any>;
473
+ type: PropType<import("../..").MantineNode>;
474
474
  default: undefined;
475
475
  };
476
476
  onClick: {
@@ -498,16 +498,16 @@ export declare const Accordion: {
498
498
  default: undefined;
499
499
  };
500
500
  }>> & Readonly<{}>, {
501
- onClick: (event: MouseEvent) => void;
502
501
  onKeydown: (event: KeyboardEvent) => void;
502
+ onClick: (event: MouseEvent) => void;
503
503
  classNames: Function | Record<string, any>;
504
504
  styles: Function | Record<string, any>;
505
505
  disabled: boolean;
506
506
  mod: any;
507
- icon: any;
507
+ icon: import("../..").MantineNode;
508
508
  onKeyDown: (event: KeyboardEvent) => void;
509
- chevron: any;
510
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
509
+ chevron: import("../..").MantineNode;
510
+ }, import("vue").SlotsType<import("./AccordionControl/AccordionControl").AccordionControlSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
511
511
  Chevron: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
512
512
  size: {
513
513
  type: PropType<number | string>;
@@ -1,16 +1,22 @@
1
- import { type PropType } from 'vue';
1
+ import { type PropType, type SlotsType, type VNodeChild } from 'vue';
2
+ import { type MantineNode } from '../../../core';
2
3
  export type AccordionControlStylesNames = 'control' | 'chevron' | 'label' | 'itemTitle' | 'icon';
4
+ export interface AccordionControlSlots {
5
+ default?: () => VNodeChild;
6
+ chevron?: () => VNodeChild;
7
+ icon?: () => VNodeChild;
8
+ }
3
9
  export declare const AccordionControl: import("../../..").WithBoxProps<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
10
  disabled: {
5
11
  type: BooleanConstructor;
6
12
  default: boolean;
7
13
  };
8
14
  chevron: {
9
- type: PropType<any>;
15
+ type: PropType<MantineNode>;
10
16
  default: undefined;
11
17
  };
12
18
  icon: {
13
- type: PropType<any>;
19
+ type: PropType<MantineNode>;
14
20
  default: undefined;
15
21
  };
16
22
  onClick: {
@@ -45,11 +51,11 @@ export declare const AccordionControl: import("../../..").WithBoxProps<import("v
45
51
  default: boolean;
46
52
  };
47
53
  chevron: {
48
- type: PropType<any>;
54
+ type: PropType<MantineNode>;
49
55
  default: undefined;
50
56
  };
51
57
  icon: {
52
- type: PropType<any>;
58
+ type: PropType<MantineNode>;
53
59
  default: undefined;
54
60
  };
55
61
  onClick: {
@@ -77,13 +83,13 @@ export declare const AccordionControl: import("../../..").WithBoxProps<import("v
77
83
  default: undefined;
78
84
  };
79
85
  }>> & Readonly<{}>, {
80
- onClick: (event: MouseEvent) => void;
81
86
  onKeydown: (event: KeyboardEvent) => void;
87
+ onClick: (event: MouseEvent) => void;
82
88
  classNames: Function | Record<string, any>;
83
89
  styles: Function | Record<string, any>;
84
90
  disabled: boolean;
85
91
  mod: any;
86
- icon: any;
92
+ icon: MantineNode;
87
93
  onKeyDown: (event: KeyboardEvent) => void;
88
- chevron: any;
89
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
94
+ chevron: MantineNode;
95
+ }, SlotsType<AccordionControlSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
@@ -297,9 +297,9 @@ export declare const ActionIcon: import("../..").WithBoxProps<{
297
297
  default: boolean;
298
298
  };
299
299
  }>> & Readonly<{}>, {
300
+ orientation: "vertical" | "horizontal";
300
301
  classNames: Function | Record<string, any>;
301
302
  styles: Function | Record<string, any>;
302
- orientation: "horizontal" | "vertical";
303
303
  vars: Function | Record<string, any>;
304
304
  unstyled: boolean;
305
305
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
@@ -46,9 +46,9 @@ export declare const ActionIconGroup: import("../../..").WithBoxProps<import("vu
46
46
  default: boolean;
47
47
  };
48
48
  }>> & Readonly<{}>, {
49
+ orientation: "vertical" | "horizontal";
49
50
  classNames: Function | Record<string, any>;
50
51
  styles: Function | Record<string, any>;
51
- orientation: "horizontal" | "vertical";
52
52
  vars: Function | Record<string, any>;
53
53
  unstyled: boolean;
54
54
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
@@ -1,5 +1,11 @@
1
- import { type PropType } from 'vue';
1
+ import { type PropType, type SlotsType, type VNodeChild } from 'vue';
2
+ import { type MantineNode } from '../../core';
2
3
  export type AlertVariant = 'filled' | 'light' | 'outline' | 'default' | 'transparent' | 'white';
4
+ export interface AlertSlots {
5
+ default?: () => VNodeChild;
6
+ title?: () => VNodeChild;
7
+ icon?: () => VNodeChild;
8
+ }
3
9
  export declare const Alert: import("../..").WithBoxProps<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
10
  id: {
5
11
  type: StringConstructor;
@@ -11,11 +17,11 @@ export declare const Alert: import("../..").WithBoxProps<import("vue").DefineCom
11
17
  default: undefined;
12
18
  };
13
19
  title: {
14
- type: (ObjectConstructor | NumberConstructor | StringConstructor | FunctionConstructor)[];
20
+ type: PropType<MantineNode>;
15
21
  default: undefined;
16
22
  };
17
23
  icon: {
18
- type: (ObjectConstructor | NumberConstructor | StringConstructor | FunctionConstructor)[];
24
+ type: PropType<MantineNode>;
19
25
  default: undefined;
20
26
  };
21
27
  withCloseButton: {
@@ -71,11 +77,11 @@ export declare const Alert: import("../..").WithBoxProps<import("vue").DefineCom
71
77
  default: undefined;
72
78
  };
73
79
  title: {
74
- type: (ObjectConstructor | NumberConstructor | StringConstructor | FunctionConstructor)[];
80
+ type: PropType<MantineNode>;
75
81
  default: undefined;
76
82
  };
77
83
  icon: {
78
- type: (ObjectConstructor | NumberConstructor | StringConstructor | FunctionConstructor)[];
84
+ type: PropType<MantineNode>;
79
85
  default: undefined;
80
86
  };
81
87
  withCloseButton: {
@@ -119,18 +125,18 @@ export declare const Alert: import("../..").WithBoxProps<import("vue").DefineCom
119
125
  default: boolean;
120
126
  };
121
127
  }>> & Readonly<{}>, {
128
+ title: MantineNode;
122
129
  color: string;
123
130
  autoContrast: boolean;
124
131
  variant: AlertVariant;
125
132
  onClose: () => void;
126
- title: string | number | Function | Record<string, any>;
127
133
  classNames: Function | Record<string, any>;
128
134
  styles: Function | Record<string, any>;
129
135
  id: string;
130
- icon: string | number | Function | Record<string, any>;
136
+ icon: MantineNode;
131
137
  vars: Function | Record<string, any>;
132
138
  unstyled: boolean;
133
139
  role: string;
134
140
  withCloseButton: boolean;
135
141
  closeButtonLabel: string;
136
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
142
+ }, SlotsType<AlertSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
@@ -78,10 +78,10 @@ export declare const AppShell: import("../..").WithBoxProps<{
78
78
  }>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
79
79
  [key: string]: any;
80
80
  }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
81
- mode: "fixed" | "static";
82
81
  aside: AppShellAsideConfiguration;
83
82
  footer: AppShellFooterConfiguration;
84
83
  header: AppShellHeaderConfiguration;
84
+ mode: "fixed" | "static";
85
85
  classNames: Function | Record<string, any>;
86
86
  styles: Function | Record<string, any>;
87
87
  disabled: boolean;
@@ -179,10 +179,10 @@ export declare const AppShell: import("../..").WithBoxProps<{
179
179
  }>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
180
180
  [key: string]: any;
181
181
  }>, {}, {}, {}, {
182
- mode: "fixed" | "static";
183
182
  aside: AppShellAsideConfiguration;
184
183
  footer: AppShellFooterConfiguration;
185
184
  header: AppShellHeaderConfiguration;
185
+ mode: "fixed" | "static";
186
186
  classNames: Function | Record<string, any>;
187
187
  styles: Function | Record<string, any>;
188
188
  disabled: boolean;
@@ -277,10 +277,10 @@ export declare const AppShell: import("../..").WithBoxProps<{
277
277
  }>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
278
278
  [key: string]: any;
279
279
  }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
280
- mode: "fixed" | "static";
281
280
  aside: AppShellAsideConfiguration;
282
281
  footer: AppShellFooterConfiguration;
283
282
  header: AppShellHeaderConfiguration;
283
+ mode: "fixed" | "static";
284
284
  classNames: Function | Record<string, any>;
285
285
  styles: Function | Record<string, any>;
286
286
  disabled: boolean;
@@ -1,4 +1,4 @@
1
- import { type PropType } from 'vue';
1
+ import { type PropType, type SlotsType, type VNodeChild } from 'vue';
2
2
  import { type ComboboxGenericData, type OptionsFilter } from '../Combobox';
3
3
  export type RenderAutocompleteOption = (input: {
4
4
  option: any;
@@ -31,6 +31,18 @@ export interface AutocompleteProps {
31
31
  openOnFocus?: boolean;
32
32
  [key: string]: any;
33
33
  }
34
+ export interface AutocompleteSlots {
35
+ label?: () => VNodeChild;
36
+ description?: () => VNodeChild;
37
+ error?: () => VNodeChild;
38
+ leftSection?: () => VNodeChild;
39
+ rightSection?: () => VNodeChild;
40
+ renderOption?: (input: {
41
+ option: any;
42
+ checked?: boolean;
43
+ }) => VNodeChild;
44
+ nothingFound?: () => VNodeChild;
45
+ }
34
46
  export declare const Autocomplete: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
35
47
  modelValue: {
36
48
  type: StringConstructor;
@@ -136,8 +148,8 @@ export declare const Autocomplete: import("vue").DefineComponent<import("vue").E
136
148
  withScrollArea: boolean;
137
149
  dropdownOpened: boolean;
138
150
  defaultDropdownOpened: boolean;
139
- selectFirstOptionOnChange: boolean;
140
151
  selectFirstOptionOnDropdownOpen: boolean;
152
+ selectFirstOptionOnChange: boolean;
141
153
  autoSelectOnBlur: boolean;
142
154
  openOnFocus: boolean;
143
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
155
+ }, SlotsType<AutocompleteSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1,6 +1,9 @@
1
- import { type PropType } from 'vue';
2
- import { type MantineVariant } from '../../core';
1
+ import { type PropType, type SlotsType, type VNodeChild } from 'vue';
2
+ import { type MantineVariant, type MantineNode, type SectionSlots } from '../../core';
3
3
  export type BadgeVariant = 'filled' | 'light' | 'outline' | 'dot' | 'transparent' | 'white' | 'default' | 'gradient';
4
+ export interface BadgeSlots extends SectionSlots {
5
+ default?: () => VNodeChild;
6
+ }
4
7
  export declare const Badge: import("../..").WithBoxProps<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
5
8
  component: {
6
9
  type: StringConstructor;
@@ -25,11 +28,11 @@ export declare const Badge: import("../..").WithBoxProps<import("vue").DefineCom
25
28
  default: undefined;
26
29
  };
27
30
  leftSection: {
28
- type: (ObjectConstructor | NumberConstructor | StringConstructor | FunctionConstructor)[];
31
+ type: PropType<MantineNode>;
29
32
  default: undefined;
30
33
  };
31
34
  rightSection: {
32
- type: (ObjectConstructor | NumberConstructor | StringConstructor | FunctionConstructor)[];
35
+ type: PropType<MantineNode>;
33
36
  default: undefined;
34
37
  };
35
38
  fullWidth: {
@@ -86,11 +89,11 @@ export declare const Badge: import("../..").WithBoxProps<import("vue").DefineCom
86
89
  default: undefined;
87
90
  };
88
91
  leftSection: {
89
- type: (ObjectConstructor | NumberConstructor | StringConstructor | FunctionConstructor)[];
92
+ type: PropType<MantineNode>;
90
93
  default: undefined;
91
94
  };
92
95
  rightSection: {
93
- type: (ObjectConstructor | NumberConstructor | StringConstructor | FunctionConstructor)[];
96
+ type: PropType<MantineNode>;
94
97
  default: undefined;
95
98
  };
96
99
  fullWidth: {
@@ -122,6 +125,7 @@ export declare const Badge: import("../..").WithBoxProps<import("vue").DefineCom
122
125
  default: boolean;
123
126
  };
124
127
  }>> & Readonly<{}>, {
128
+ circle: boolean;
125
129
  color: string;
126
130
  autoContrast: boolean;
127
131
  variant: MantineVariant<BadgeVariant>;
@@ -132,11 +136,10 @@ export declare const Badge: import("../..").WithBoxProps<import("vue").DefineCom
132
136
  };
133
137
  classNames: Function | Record<string, any>;
134
138
  styles: Function | Record<string, any>;
135
- circle: boolean;
136
139
  component: string;
137
140
  vars: Function | Record<string, any>;
138
141
  unstyled: boolean;
139
- leftSection: string | number | Function | Record<string, any>;
140
- rightSection: string | number | Function | Record<string, any>;
142
+ leftSection: MantineNode;
143
+ rightSection: MantineNode;
141
144
  fullWidth: boolean;
142
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
145
+ }, SlotsType<BadgeSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
@@ -1,7 +1,13 @@
1
- import { type PropType } from 'vue';
1
+ import { type PropType, type SlotsType, type VNodeChild } from 'vue';
2
+ import { type MantineNode } from '../../core';
3
+ export interface BlockquoteSlots {
4
+ default?: () => VNodeChild;
5
+ icon?: () => VNodeChild;
6
+ cite?: () => VNodeChild;
7
+ }
2
8
  export declare const Blockquote: import("../..").WithBoxProps<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
9
  icon: {
4
- type: (ObjectConstructor | NumberConstructor | StringConstructor | FunctionConstructor)[];
10
+ type: PropType<MantineNode>;
5
11
  default: undefined;
6
12
  };
7
13
  iconSize: PropType<string | number>;
@@ -11,7 +17,7 @@ export declare const Blockquote: import("../..").WithBoxProps<import("vue").Defi
11
17
  };
12
18
  radius: PropType<string | number>;
13
19
  cite: {
14
- type: (ObjectConstructor | NumberConstructor | StringConstructor | FunctionConstructor)[];
20
+ type: PropType<MantineNode>;
15
21
  default: undefined;
16
22
  };
17
23
  textWrap: {
@@ -38,7 +44,7 @@ export declare const Blockquote: import("../..").WithBoxProps<import("vue").Defi
38
44
  [key: string]: any;
39
45
  }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
40
46
  icon: {
41
- type: (ObjectConstructor | NumberConstructor | StringConstructor | FunctionConstructor)[];
47
+ type: PropType<MantineNode>;
42
48
  default: undefined;
43
49
  };
44
50
  iconSize: PropType<string | number>;
@@ -48,7 +54,7 @@ export declare const Blockquote: import("../..").WithBoxProps<import("vue").Defi
48
54
  };
49
55
  radius: PropType<string | number>;
50
56
  cite: {
51
- type: (ObjectConstructor | NumberConstructor | StringConstructor | FunctionConstructor)[];
57
+ type: PropType<MantineNode>;
52
58
  default: undefined;
53
59
  };
54
60
  textWrap: {
@@ -72,12 +78,12 @@ export declare const Blockquote: import("../..").WithBoxProps<import("vue").Defi
72
78
  default: boolean;
73
79
  };
74
80
  }>> & Readonly<{}>, {
81
+ cite: MantineNode;
75
82
  color: string;
76
83
  textWrap: "wrap" | "nowrap" | "balance" | "pretty" | "stable";
77
- cite: string | number | Function | Record<string, any>;
78
84
  classNames: Function | Record<string, any>;
79
85
  styles: Function | Record<string, any>;
80
- icon: string | number | Function | Record<string, any>;
86
+ icon: MantineNode;
81
87
  vars: Function | Record<string, any>;
82
88
  unstyled: boolean;
83
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
89
+ }, SlotsType<BlockquoteSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
@@ -1,7 +1,12 @@
1
- import { type PropType, type VNode } from 'vue';
1
+ import { type PropType, type SlotsType, type VNode, type VNodeChild } from 'vue';
2
+ import { type MantineNode } from '../../core';
3
+ export interface BreadcrumbsSlots {
4
+ default?: () => VNodeChild;
5
+ separator?: () => VNodeChild;
6
+ }
2
7
  export declare const Breadcrumbs: import("../..").WithBoxProps<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
8
  separator: {
4
- type: (ObjectConstructor | NumberConstructor | StringConstructor | FunctionConstructor)[];
9
+ type: PropType<MantineNode>;
5
10
  default: undefined;
6
11
  };
7
12
  separatorMargin: PropType<string | number>;
@@ -25,7 +30,7 @@ export declare const Breadcrumbs: import("../..").WithBoxProps<import("vue").Def
25
30
  [key: string]: any;
26
31
  }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
27
32
  separator: {
28
- type: (ObjectConstructor | NumberConstructor | StringConstructor | FunctionConstructor)[];
33
+ type: PropType<MantineNode>;
29
34
  default: undefined;
30
35
  };
31
36
  separatorMargin: PropType<string | number>;
@@ -48,7 +53,7 @@ export declare const Breadcrumbs: import("../..").WithBoxProps<import("vue").Def
48
53
  }>> & Readonly<{}>, {
49
54
  classNames: Function | Record<string, any>;
50
55
  styles: Function | Record<string, any>;
51
- separator: string | number | Function | Record<string, any>;
56
+ separator: MantineNode;
52
57
  vars: Function | Record<string, any>;
53
58
  unstyled: boolean;
54
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
59
+ }, SlotsType<BreadcrumbsSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
@@ -433,9 +433,9 @@ export declare const Button: import("../..").WithBoxProps<{
433
433
  default: boolean;
434
434
  };
435
435
  }>> & Readonly<{}>, {
436
+ orientation: "vertical" | "horizontal";
436
437
  classNames: Function | Record<string, any>;
437
438
  styles: Function | Record<string, any>;
438
- orientation: "horizontal" | "vertical";
439
439
  vars: Function | Record<string, any>;
440
440
  unstyled: boolean;
441
441
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
@@ -46,9 +46,9 @@ export declare const ButtonGroup: import("../../..").WithBoxProps<import("vue").
46
46
  default: boolean;
47
47
  };
48
48
  }>> & Readonly<{}>, {
49
+ orientation: "vertical" | "horizontal";
49
50
  classNames: Function | Record<string, any>;
50
51
  styles: Function | Record<string, any>;
51
- orientation: "horizontal" | "vertical";
52
52
  vars: Function | Record<string, any>;
53
53
  unstyled: boolean;
54
54
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
@@ -38,10 +38,10 @@ export declare const Card: import("../..").WithBoxProps<{
38
38
  }>> & Readonly<{}>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
39
39
  [key: string]: any;
40
40
  }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
41
+ orientation: "vertical" | "horizontal";
41
42
  shadow: string;
42
43
  classNames: Function | Record<string, any>;
43
44
  styles: Function | Record<string, any>;
44
- orientation: "horizontal" | "vertical";
45
45
  component: string;
46
46
  vars: Function | Record<string, any>;
47
47
  unstyled: boolean;
@@ -91,10 +91,10 @@ export declare const Card: import("../..").WithBoxProps<{
91
91
  }>> & Readonly<{}>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
92
92
  [key: string]: any;
93
93
  }>, {}, {}, {}, {
94
+ orientation: "vertical" | "horizontal";
94
95
  shadow: string;
95
96
  classNames: Function | Record<string, any>;
96
97
  styles: Function | Record<string, any>;
97
- orientation: "horizontal" | "vertical";
98
98
  component: string;
99
99
  vars: Function | Record<string, any>;
100
100
  unstyled: boolean;
@@ -141,10 +141,10 @@ export declare const Card: import("../..").WithBoxProps<{
141
141
  }>> & Readonly<{}>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
142
142
  [key: string]: any;
143
143
  }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
144
+ orientation: "vertical" | "horizontal";
144
145
  shadow: string;
145
146
  classNames: Function | Record<string, any>;
146
147
  styles: Function | Record<string, any>;
147
- orientation: "horizontal" | "vertical";
148
148
  component: string;
149
149
  vars: Function | Record<string, any>;
150
150
  unstyled: boolean;