@mantine-vue/core 2.2.2 → 2.3.1

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 (100) hide show
  1. package/cjs/index.cjs +43 -31
  2. package/cjs/index.cjs.map +1 -1
  3. package/esm/index.mjs +43 -31
  4. package/esm/index.mjs.map +1 -1
  5. package/lib/components/Accordion/Accordion.d.ts +7 -6
  6. package/lib/components/ActionIcon/ActionIcon.d.ts +29 -64
  7. package/lib/components/ActionIcon/ActionIconGroupSection/ActionIconGroupSection.d.ts +11 -22
  8. package/lib/components/Alert/Alert.d.ts +6 -6
  9. package/lib/components/Avatar/Avatar.d.ts +27 -50
  10. package/lib/components/Avatar/AvatarGroup/AvatarGroup.d.ts +3 -2
  11. package/lib/components/BackgroundImage/BackgroundImage.d.ts +3 -2
  12. package/lib/components/Badge/Badge.d.ts +18 -23
  13. package/lib/components/Blockquote/Blockquote.d.ts +6 -6
  14. package/lib/components/Burger/Burger.d.ts +6 -5
  15. package/lib/components/Button/Button.d.ts +29 -65
  16. package/lib/components/Button/ButtonGroupSection/ButtonGroupSection.d.ts +12 -23
  17. package/lib/components/Card/Card.d.ts +7 -6
  18. package/lib/components/Checkbox/Checkbox.d.ts +34 -34
  19. package/lib/components/Checkbox/CheckboxCard/CheckboxCard.d.ts +4 -3
  20. package/lib/components/Checkbox/CheckboxGroup/CheckboxGroup.d.ts +4 -4
  21. package/lib/components/Checkbox/CheckboxIndicator/CheckboxIndicator.d.ts +10 -9
  22. package/lib/components/Chip/Chip.d.ts +19 -18
  23. package/lib/components/CloseButton/CloseButton.d.ts +5 -5
  24. package/lib/components/Code/Code.d.ts +5 -3
  25. package/lib/components/ColorPicker/ColorPicker.d.ts +4 -3
  26. package/lib/components/ColorSwatch/ColorSwatch.d.ts +3 -2
  27. package/lib/components/Container/Container.d.ts +3 -2
  28. package/lib/components/Dialog/Dialog.d.ts +10 -9
  29. package/lib/components/Divider/Divider.d.ts +6 -6
  30. package/lib/components/EmptyState/EmptyState.d.ts +6 -6
  31. package/lib/components/Fieldset/Fieldset.d.ts +4 -4
  32. package/lib/components/FileInput/FileInput.d.ts +4 -4
  33. package/lib/components/Flex/Flex.d.ts +15 -15
  34. package/lib/components/Grid/Grid.d.ts +49 -50
  35. package/lib/components/Grid/GridCol/GridCol.d.ts +4 -5
  36. package/lib/components/Grid/GridCol/GridColVariables.d.ts +4 -5
  37. package/lib/components/Group/Group.d.ts +12 -11
  38. package/lib/components/Highlight/Highlight.d.ts +5 -4
  39. package/lib/components/Image/Image.d.ts +6 -5
  40. package/lib/components/Indicator/Indicator.d.ts +6 -6
  41. package/lib/components/Input/Input.d.ts +28 -28
  42. package/lib/components/Input/InputClearButton/InputClearButton.d.ts +4 -3
  43. package/lib/components/Input/InputDescription/InputDescription.d.ts +4 -3
  44. package/lib/components/Input/InputError/InputError.d.ts +4 -3
  45. package/lib/components/Input/InputLabel/InputLabel.d.ts +4 -3
  46. package/lib/components/Input/InputWrapper/InputWrapper.d.ts +4 -4
  47. package/lib/components/InputBase/InputBase.d.ts +7 -6
  48. package/lib/components/Kbd/Kbd.d.ts +3 -2
  49. package/lib/components/List/List.d.ts +10 -10
  50. package/lib/components/Loader/Loader.d.ts +6 -5
  51. package/lib/components/Mark/Mark.d.ts +5 -3
  52. package/lib/components/Marquee/Marquee.d.ts +4 -3
  53. package/lib/components/NativeSelect/NativeSelect.d.ts +7 -7
  54. package/lib/components/NavLink/NavLink.d.ts +7 -7
  55. package/lib/components/Notification/Notification.d.ts +7 -7
  56. package/lib/components/NumberInput/NumberInput.d.ts +4 -4
  57. package/lib/components/OverflowList/OverflowList.d.ts +4 -3
  58. package/lib/components/Overlay/Overlay.d.ts +3 -2
  59. package/lib/components/Pagination/Pagination.d.ts +34 -33
  60. package/lib/components/Pagination/PaginationRoot/PaginationRoot.d.ts +10 -9
  61. package/lib/components/Paper/Paper.d.ts +3 -2
  62. package/lib/components/PasswordInput/PasswordInput.d.ts +7 -7
  63. package/lib/components/Pill/Pill.d.ts +19 -18
  64. package/lib/components/Pill/PillGroup/PillGroup.d.ts +8 -7
  65. package/lib/components/PillsInput/PillsInput.d.ts +13 -13
  66. package/lib/components/PinInput/PinInput.d.ts +10 -9
  67. package/lib/components/Popover/Popover.d.ts +10 -2
  68. package/lib/components/Popover/index.d.ts +1 -1
  69. package/lib/components/Progress/Progress.d.ts +28 -27
  70. package/lib/components/Progress/ProgressRoot/ProgressRoot.d.ts +7 -6
  71. package/lib/components/Progress/ProgressSection/ProgressSection.d.ts +4 -3
  72. package/lib/components/Radio/Radio.d.ts +34 -34
  73. package/lib/components/Radio/RadioCard/RadioCard.d.ts +4 -3
  74. package/lib/components/Radio/RadioGroup/RadioGroup.d.ts +4 -4
  75. package/lib/components/Radio/RadioIndicator/RadioIndicator.d.ts +10 -9
  76. package/lib/components/Rating/Rating.d.ts +7 -7
  77. package/lib/components/RingProgress/Curve/Curve.d.ts +4 -3
  78. package/lib/components/SegmentedControl/SegmentedControl.d.ts +10 -9
  79. package/lib/components/Slider/RangeSlider/RangeSlider.d.ts +10 -9
  80. package/lib/components/Slider/Slider/Slider.d.ts +10 -9
  81. package/lib/components/Stack/Stack.d.ts +9 -8
  82. package/lib/components/Stepper/Stepper.d.ts +22 -21
  83. package/lib/components/Stepper/StepperStep/StepperStep.d.ts +4 -3
  84. package/lib/components/Switch/Switch.d.ts +22 -22
  85. package/lib/components/Switch/SwitchGroup/SwitchGroup.d.ts +4 -4
  86. package/lib/components/TableOfContents/TableOfContents.d.ts +10 -9
  87. package/lib/components/Tabs/Tabs.d.ts +19 -18
  88. package/lib/components/Tabs/TabsList/TabsList.d.ts +4 -3
  89. package/lib/components/Tabs/TabsTab/TabsTab.d.ts +4 -4
  90. package/lib/components/Text/Text.d.ts +3 -2
  91. package/lib/components/ThemeIcon/ThemeIcon.d.ts +11 -23
  92. package/lib/components/Timeline/Timeline.d.ts +19 -18
  93. package/lib/components/Timeline/TimelineItem/TimelineItem.d.ts +7 -7
  94. package/lib/components/component-props.d.ts +190 -0
  95. package/lib/components/index.d.ts +1 -0
  96. package/lib/core/Box/Box.d.ts +4 -4
  97. package/lib/core/Box/style-props/style-props.types.d.ts +4 -4
  98. package/lib/core/MantineProvider/theme.types.d.ts +5 -0
  99. package/lib/core/types.d.ts +7 -0
  100. package/package.json +3 -3
@@ -1,4 +1,5 @@
1
1
  import { type PropType } from 'vue';
2
+ import { type MantineRadius } from '../../core';
2
3
  import { type AccordionChevronPosition, type AccordionHeadingOrder, type AccordionValue } from './Accordion.context';
3
4
  export type AccordionStylesNames = 'root' | 'content' | 'item' | 'panel' | 'icon' | 'chevron' | 'label' | 'itemTitle' | 'control';
4
5
  export type AccordionVariant = 'default' | 'contained' | 'filled' | 'separated';
@@ -61,7 +62,7 @@ export declare const Accordion: {
61
62
  default: undefined;
62
63
  };
63
64
  radius: {
64
- type: PropType<string | number>;
65
+ type: PropType<MantineRadius>;
65
66
  default: undefined;
66
67
  };
67
68
  keepMounted: {
@@ -88,7 +89,7 @@ export declare const Accordion: {
88
89
  [key: string]: any;
89
90
  }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
90
91
  loop: boolean;
91
- radius: string | number;
92
+ radius: MantineRadius;
92
93
  variant: AccordionVariant;
93
94
  onChange: (value: AccordionValue<any>) => void;
94
95
  value: string | string[] | null;
@@ -172,7 +173,7 @@ export declare const Accordion: {
172
173
  default: undefined;
173
174
  };
174
175
  radius: {
175
- type: PropType<string | number>;
176
+ type: PropType<MantineRadius>;
176
177
  default: undefined;
177
178
  };
178
179
  keepMounted: {
@@ -199,7 +200,7 @@ export declare const Accordion: {
199
200
  [key: string]: any;
200
201
  }>, {}, {}, {}, {
201
202
  loop: boolean;
202
- radius: string | number;
203
+ radius: MantineRadius;
203
204
  variant: AccordionVariant;
204
205
  onChange: (value: AccordionValue<any>) => void;
205
206
  value: string | string[] | null;
@@ -280,7 +281,7 @@ export declare const Accordion: {
280
281
  default: undefined;
281
282
  };
282
283
  radius: {
283
- type: PropType<string | number>;
284
+ type: PropType<MantineRadius>;
284
285
  default: undefined;
285
286
  };
286
287
  keepMounted: {
@@ -307,7 +308,7 @@ export declare const Accordion: {
307
308
  [key: string]: any;
308
309
  }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
309
310
  loop: boolean;
310
- radius: string | number;
311
+ radius: MantineRadius;
311
312
  variant: AccordionVariant;
312
313
  onChange: (value: AccordionValue<any>) => void;
313
314
  value: string | string[] | null;
@@ -1,4 +1,5 @@
1
1
  import { type PropType } from 'vue';
2
+ import { type MantineColor, type MantineGradient, type MantineRadius, type MantineSize } from '../../core';
2
3
  export type ActionIconVariant = 'filled' | 'light' | 'outline' | 'transparent' | 'white' | 'subtle' | 'default' | 'gradient';
3
4
  export declare const ActionIcon: import("../..").WithBoxProps<{
4
5
  new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
@@ -14,18 +15,14 @@ export declare const ActionIcon: import("../..").WithBoxProps<{
14
15
  type: PropType<Record<string, any>>;
15
16
  default: undefined;
16
17
  };
17
- size: PropType<string | number>;
18
+ size: PropType<MantineSize | `input-${MantineSize}` | (string & {}) | number>;
18
19
  color: {
19
- type: StringConstructor;
20
+ type: PropType<MantineColor>;
20
21
  default: undefined;
21
22
  };
22
- radius: PropType<string | number>;
23
+ radius: PropType<MantineRadius>;
23
24
  gradient: {
24
- type: PropType<{
25
- from: string;
26
- to: string;
27
- deg?: number;
28
- }>;
25
+ type: PropType<MantineGradient>;
29
26
  default: undefined;
30
27
  };
31
28
  disabled: {
@@ -63,14 +60,10 @@ export declare const ActionIcon: import("../..").WithBoxProps<{
63
60
  }>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
64
61
  [key: string]: any;
65
62
  }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
66
- color: string;
63
+ color: MantineColor;
67
64
  autoContrast: boolean;
68
65
  variant: ActionIconVariant;
69
- gradient: {
70
- from: string;
71
- to: string;
72
- deg?: number;
73
- };
66
+ gradient: MantineGradient;
74
67
  classNames: Function | Record<string, any>;
75
68
  styles: Function | Record<string, any>;
76
69
  disabled: boolean;
@@ -100,18 +93,14 @@ export declare const ActionIcon: import("../..").WithBoxProps<{
100
93
  type: PropType<Record<string, any>>;
101
94
  default: undefined;
102
95
  };
103
- size: PropType<string | number>;
96
+ size: PropType<MantineSize | `input-${MantineSize}` | (string & {}) | number>;
104
97
  color: {
105
- type: StringConstructor;
98
+ type: PropType<MantineColor>;
106
99
  default: undefined;
107
100
  };
108
- radius: PropType<string | number>;
101
+ radius: PropType<MantineRadius>;
109
102
  gradient: {
110
- type: PropType<{
111
- from: string;
112
- to: string;
113
- deg?: number;
114
- }>;
103
+ type: PropType<MantineGradient>;
115
104
  default: undefined;
116
105
  };
117
106
  disabled: {
@@ -149,14 +138,10 @@ export declare const ActionIcon: import("../..").WithBoxProps<{
149
138
  }>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
150
139
  [key: string]: any;
151
140
  }>, {}, {}, {}, {
152
- color: string;
141
+ color: MantineColor;
153
142
  autoContrast: boolean;
154
143
  variant: ActionIconVariant;
155
- gradient: {
156
- from: string;
157
- to: string;
158
- deg?: number;
159
- };
144
+ gradient: MantineGradient;
160
145
  classNames: Function | Record<string, any>;
161
146
  styles: Function | Record<string, any>;
162
147
  disabled: boolean;
@@ -183,18 +168,14 @@ export declare const ActionIcon: import("../..").WithBoxProps<{
183
168
  type: PropType<Record<string, any>>;
184
169
  default: undefined;
185
170
  };
186
- size: PropType<string | number>;
171
+ size: PropType<MantineSize | `input-${MantineSize}` | (string & {}) | number>;
187
172
  color: {
188
- type: StringConstructor;
173
+ type: PropType<MantineColor>;
189
174
  default: undefined;
190
175
  };
191
- radius: PropType<string | number>;
176
+ radius: PropType<MantineRadius>;
192
177
  gradient: {
193
- type: PropType<{
194
- from: string;
195
- to: string;
196
- deg?: number;
197
- }>;
178
+ type: PropType<MantineGradient>;
198
179
  default: undefined;
199
180
  };
200
181
  disabled: {
@@ -232,14 +213,10 @@ export declare const ActionIcon: import("../..").WithBoxProps<{
232
213
  }>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
233
214
  [key: string]: any;
234
215
  }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
235
- color: string;
216
+ color: MantineColor;
236
217
  autoContrast: boolean;
237
218
  variant: ActionIconVariant;
238
- gradient: {
239
- from: string;
240
- to: string;
241
- deg?: number;
242
- };
219
+ gradient: MantineGradient;
243
220
  classNames: Function | Record<string, any>;
244
221
  styles: Function | Record<string, any>;
245
222
  disabled: boolean;
@@ -304,18 +281,14 @@ export declare const ActionIcon: import("../..").WithBoxProps<{
304
281
  unstyled: boolean;
305
282
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
306
283
  GroupSection: import("../..").WithBoxProps<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
307
- size: PropType<string | number>;
284
+ size: PropType<MantineSize | (string & {}) | number>;
308
285
  color: {
309
- type: StringConstructor;
286
+ type: PropType<MantineColor>;
310
287
  default: undefined;
311
288
  };
312
- radius: PropType<string | number>;
289
+ radius: PropType<MantineRadius>;
313
290
  gradient: {
314
- type: PropType<{
315
- from: string;
316
- to: string;
317
- deg?: number;
318
- }>;
291
+ type: PropType<MantineGradient>;
319
292
  default: undefined;
320
293
  };
321
294
  autoContrast: {
@@ -345,18 +318,14 @@ export declare const ActionIcon: import("../..").WithBoxProps<{
345
318
  }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
346
319
  [key: string]: any;
347
320
  }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
348
- size: PropType<string | number>;
321
+ size: PropType<MantineSize | (string & {}) | number>;
349
322
  color: {
350
- type: StringConstructor;
323
+ type: PropType<MantineColor>;
351
324
  default: undefined;
352
325
  };
353
- radius: PropType<string | number>;
326
+ radius: PropType<MantineRadius>;
354
327
  gradient: {
355
- type: PropType<{
356
- from: string;
357
- to: string;
358
- deg?: number;
359
- }>;
328
+ type: PropType<MantineGradient>;
360
329
  default: undefined;
361
330
  };
362
331
  autoContrast: {
@@ -384,14 +353,10 @@ export declare const ActionIcon: import("../..").WithBoxProps<{
384
353
  default: boolean;
385
354
  };
386
355
  }>> & Readonly<{}>, {
387
- color: string;
356
+ color: MantineColor;
388
357
  autoContrast: boolean;
389
358
  variant: ActionIconVariant;
390
- gradient: {
391
- from: string;
392
- to: string;
393
- deg?: number;
394
- };
359
+ gradient: MantineGradient;
395
360
  classNames: Function | Record<string, any>;
396
361
  styles: Function | Record<string, any>;
397
362
  vars: Function | Record<string, any>;
@@ -1,18 +1,15 @@
1
1
  import { type PropType } from 'vue';
2
+ import { type MantineColor, type MantineGradient, type MantineRadius, type MantineSize } from '../../../core';
2
3
  import type { ActionIconVariant } from '../ActionIcon';
3
4
  export declare const ActionIconGroupSection: import("../../..").WithBoxProps<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
- size: PropType<string | number>;
5
+ size: PropType<MantineSize | (string & {}) | number>;
5
6
  color: {
6
- type: StringConstructor;
7
+ type: PropType<MantineColor>;
7
8
  default: undefined;
8
9
  };
9
- radius: PropType<string | number>;
10
+ radius: PropType<MantineRadius>;
10
11
  gradient: {
11
- type: PropType<{
12
- from: string;
13
- to: string;
14
- deg?: number;
15
- }>;
12
+ type: PropType<MantineGradient>;
16
13
  default: undefined;
17
14
  };
18
15
  autoContrast: {
@@ -42,18 +39,14 @@ export declare const ActionIconGroupSection: import("../../..").WithBoxProps<imp
42
39
  }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
43
40
  [key: string]: any;
44
41
  }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
45
- size: PropType<string | number>;
42
+ size: PropType<MantineSize | (string & {}) | number>;
46
43
  color: {
47
- type: StringConstructor;
44
+ type: PropType<MantineColor>;
48
45
  default: undefined;
49
46
  };
50
- radius: PropType<string | number>;
47
+ radius: PropType<MantineRadius>;
51
48
  gradient: {
52
- type: PropType<{
53
- from: string;
54
- to: string;
55
- deg?: number;
56
- }>;
49
+ type: PropType<MantineGradient>;
57
50
  default: undefined;
58
51
  };
59
52
  autoContrast: {
@@ -81,14 +74,10 @@ export declare const ActionIconGroupSection: import("../../..").WithBoxProps<imp
81
74
  default: boolean;
82
75
  };
83
76
  }>> & Readonly<{}>, {
84
- color: string;
77
+ color: MantineColor;
85
78
  autoContrast: boolean;
86
79
  variant: ActionIconVariant;
87
- gradient: {
88
- from: string;
89
- to: string;
90
- deg?: number;
91
- };
80
+ gradient: MantineGradient;
92
81
  classNames: Function | Record<string, any>;
93
82
  styles: Function | Record<string, any>;
94
83
  vars: Function | Record<string, any>;
@@ -1,5 +1,5 @@
1
1
  import { type PropType, type SlotsType, type VNodeChild } from 'vue';
2
- import { type MantineNode } from '../../core';
2
+ import { type MantineColor, type MantineNode, type MantineRadius } from '../../core';
3
3
  export type AlertVariant = 'filled' | 'light' | 'outline' | 'default' | 'transparent' | 'white';
4
4
  export interface AlertSlots {
5
5
  default?: () => VNodeChild;
@@ -11,9 +11,9 @@ export declare const Alert: import("../..").WithBoxProps<import("vue").DefineCom
11
11
  type: StringConstructor;
12
12
  default: undefined;
13
13
  };
14
- radius: PropType<string | number>;
14
+ radius: PropType<MantineRadius>;
15
15
  color: {
16
- type: StringConstructor;
16
+ type: PropType<MantineColor>;
17
17
  default: undefined;
18
18
  };
19
19
  title: {
@@ -71,9 +71,9 @@ export declare const Alert: import("../..").WithBoxProps<import("vue").DefineCom
71
71
  type: StringConstructor;
72
72
  default: undefined;
73
73
  };
74
- radius: PropType<string | number>;
74
+ radius: PropType<MantineRadius>;
75
75
  color: {
76
- type: StringConstructor;
76
+ type: PropType<MantineColor>;
77
77
  default: undefined;
78
78
  };
79
79
  title: {
@@ -126,7 +126,7 @@ export declare const Alert: import("../..").WithBoxProps<import("vue").DefineCom
126
126
  };
127
127
  }>> & Readonly<{}>, {
128
128
  title: MantineNode;
129
- color: string;
129
+ color: MantineColor;
130
130
  autoContrast: boolean;
131
131
  variant: AlertVariant;
132
132
  onClose: () => void;
@@ -1,4 +1,5 @@
1
1
  import { type PropType } from 'vue';
2
+ import { type MantineColor, type MantineGradient, type MantineRadius, type MantineSize } from '../../core';
2
3
  export type AvatarVariant = 'filled' | 'light' | 'gradient' | 'outline' | 'transparent' | 'default' | 'white';
3
4
  export declare const Avatar: import("../..").WithBoxProps<{
4
5
  new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
@@ -6,18 +7,14 @@ export declare const Avatar: import("../..").WithBoxProps<{
6
7
  type: StringConstructor;
7
8
  default: string;
8
9
  };
9
- size: PropType<string | number>;
10
- radius: PropType<string | number>;
10
+ size: PropType<MantineSize | (string & {}) | number>;
11
+ radius: PropType<MantineRadius>;
11
12
  color: {
12
- type: PropType<string | "initials">;
13
+ type: PropType<MantineColor | "initials">;
13
14
  default: undefined;
14
15
  };
15
16
  gradient: {
16
- type: PropType<{
17
- from: string;
18
- to: string;
19
- deg?: number;
20
- }>;
17
+ type: PropType<MantineGradient>;
21
18
  default: undefined;
22
19
  };
23
20
  src: {
@@ -41,7 +38,7 @@ export declare const Avatar: import("../..").WithBoxProps<{
41
38
  default: undefined;
42
39
  };
43
40
  allowedInitialsColors: {
44
- type: PropType<string[]>;
41
+ type: PropType<MantineColor[]>;
45
42
  default: undefined;
46
43
  };
47
44
  variant: {
@@ -72,14 +69,10 @@ export declare const Avatar: import("../..").WithBoxProps<{
72
69
  [key: string]: any;
73
70
  }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
74
71
  name: string;
75
- color: string;
72
+ color: MantineColor | "initials";
76
73
  autoContrast: boolean;
77
74
  variant: AvatarVariant;
78
- gradient: {
79
- from: string;
80
- to: string;
81
- deg?: number;
82
- };
75
+ gradient: MantineGradient;
83
76
  classNames: Function | Record<string, any>;
84
77
  styles: Function | Record<string, any>;
85
78
  alt: string;
@@ -88,7 +81,7 @@ export declare const Avatar: import("../..").WithBoxProps<{
88
81
  vars: Function | Record<string, any>;
89
82
  unstyled: boolean;
90
83
  src: string | null;
91
- allowedInitialsColors: string[];
84
+ allowedInitialsColors: MantineColor[];
92
85
  imageProps: Record<string, any>;
93
86
  }, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
94
87
  P: {};
@@ -102,18 +95,14 @@ export declare const Avatar: import("../..").WithBoxProps<{
102
95
  type: StringConstructor;
103
96
  default: string;
104
97
  };
105
- size: PropType<string | number>;
106
- radius: PropType<string | number>;
98
+ size: PropType<MantineSize | (string & {}) | number>;
99
+ radius: PropType<MantineRadius>;
107
100
  color: {
108
- type: PropType<string | "initials">;
101
+ type: PropType<MantineColor | "initials">;
109
102
  default: undefined;
110
103
  };
111
104
  gradient: {
112
- type: PropType<{
113
- from: string;
114
- to: string;
115
- deg?: number;
116
- }>;
105
+ type: PropType<MantineGradient>;
117
106
  default: undefined;
118
107
  };
119
108
  src: {
@@ -137,7 +126,7 @@ export declare const Avatar: import("../..").WithBoxProps<{
137
126
  default: undefined;
138
127
  };
139
128
  allowedInitialsColors: {
140
- type: PropType<string[]>;
129
+ type: PropType<MantineColor[]>;
141
130
  default: undefined;
142
131
  };
143
132
  variant: {
@@ -168,14 +157,10 @@ export declare const Avatar: import("../..").WithBoxProps<{
168
157
  [key: string]: any;
169
158
  }>, {}, {}, {}, {
170
159
  name: string;
171
- color: string;
160
+ color: MantineColor | "initials";
172
161
  autoContrast: boolean;
173
162
  variant: AvatarVariant;
174
- gradient: {
175
- from: string;
176
- to: string;
177
- deg?: number;
178
- };
163
+ gradient: MantineGradient;
179
164
  classNames: Function | Record<string, any>;
180
165
  styles: Function | Record<string, any>;
181
166
  alt: string;
@@ -184,7 +169,7 @@ export declare const Avatar: import("../..").WithBoxProps<{
184
169
  vars: Function | Record<string, any>;
185
170
  unstyled: boolean;
186
171
  src: string | null;
187
- allowedInitialsColors: string[];
172
+ allowedInitialsColors: MantineColor[];
188
173
  imageProps: Record<string, any>;
189
174
  }>;
190
175
  __isFragment?: never;
@@ -195,18 +180,14 @@ export declare const Avatar: import("../..").WithBoxProps<{
195
180
  type: StringConstructor;
196
181
  default: string;
197
182
  };
198
- size: PropType<string | number>;
199
- radius: PropType<string | number>;
183
+ size: PropType<MantineSize | (string & {}) | number>;
184
+ radius: PropType<MantineRadius>;
200
185
  color: {
201
- type: PropType<string | "initials">;
186
+ type: PropType<MantineColor | "initials">;
202
187
  default: undefined;
203
188
  };
204
189
  gradient: {
205
- type: PropType<{
206
- from: string;
207
- to: string;
208
- deg?: number;
209
- }>;
190
+ type: PropType<MantineGradient>;
210
191
  default: undefined;
211
192
  };
212
193
  src: {
@@ -230,7 +211,7 @@ export declare const Avatar: import("../..").WithBoxProps<{
230
211
  default: undefined;
231
212
  };
232
213
  allowedInitialsColors: {
233
- type: PropType<string[]>;
214
+ type: PropType<MantineColor[]>;
234
215
  default: undefined;
235
216
  };
236
217
  variant: {
@@ -261,14 +242,10 @@ export declare const Avatar: import("../..").WithBoxProps<{
261
242
  [key: string]: any;
262
243
  }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
263
244
  name: string;
264
- color: string;
245
+ color: MantineColor | "initials";
265
246
  autoContrast: boolean;
266
247
  variant: AvatarVariant;
267
- gradient: {
268
- from: string;
269
- to: string;
270
- deg?: number;
271
- };
248
+ gradient: MantineGradient;
272
249
  classNames: Function | Record<string, any>;
273
250
  styles: Function | Record<string, any>;
274
251
  alt: string;
@@ -277,11 +254,11 @@ export declare const Avatar: import("../..").WithBoxProps<{
277
254
  vars: Function | Record<string, any>;
278
255
  unstyled: boolean;
279
256
  src: string | null;
280
- allowedInitialsColors: string[];
257
+ allowedInitialsColors: MantineColor[];
281
258
  imageProps: Record<string, any>;
282
259
  }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
283
260
  Group: import("../..").WithBoxProps<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
284
- spacing: PropType<string | number>;
261
+ spacing: PropType<import("../..").MantineSpacing>;
285
262
  classNames: {
286
263
  type: (ObjectConstructor | FunctionConstructor)[];
287
264
  default: undefined;
@@ -301,7 +278,7 @@ export declare const Avatar: import("../..").WithBoxProps<{
301
278
  }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
302
279
  [key: string]: any;
303
280
  }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
304
- spacing: PropType<string | number>;
281
+ spacing: PropType<import("../..").MantineSpacing>;
305
282
  classNames: {
306
283
  type: (ObjectConstructor | FunctionConstructor)[];
307
284
  default: undefined;
@@ -1,4 +1,5 @@
1
1
  import { type InjectionKey, type PropType } from 'vue';
2
+ import { type MantineSpacing } from '../../../core';
2
3
  export interface AvatarGroupContextValue {
3
4
  withinGroup: boolean;
4
5
  }
@@ -7,7 +8,7 @@ export declare function useAvatarGroupContext(): {
7
8
  withinGroup: boolean;
8
9
  };
9
10
  export declare const AvatarGroup: import("../../..").WithBoxProps<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
10
- spacing: PropType<string | number>;
11
+ spacing: PropType<MantineSpacing>;
11
12
  classNames: {
12
13
  type: (ObjectConstructor | FunctionConstructor)[];
13
14
  default: undefined;
@@ -27,7 +28,7 @@ export declare const AvatarGroup: import("../../..").WithBoxProps<import("vue").
27
28
  }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
28
29
  [key: string]: any;
29
30
  }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
30
- spacing: PropType<string | number>;
31
+ spacing: PropType<MantineSpacing>;
31
32
  classNames: {
32
33
  type: (ObjectConstructor | FunctionConstructor)[];
33
34
  default: undefined;
@@ -1,10 +1,11 @@
1
1
  import { type PropType } from 'vue';
2
+ import { type MantineRadius } from '../../core';
2
3
  export declare const BackgroundImage: import("../..").WithBoxProps<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
4
  src: {
4
5
  type: StringConstructor;
5
6
  required: true;
6
7
  };
7
- radius: PropType<string | number>;
8
+ radius: PropType<MantineRadius>;
8
9
  classNames: {
9
10
  type: (ObjectConstructor | FunctionConstructor)[];
10
11
  default: undefined;
@@ -28,7 +29,7 @@ export declare const BackgroundImage: import("../..").WithBoxProps<import("vue")
28
29
  type: StringConstructor;
29
30
  required: true;
30
31
  };
31
- radius: PropType<string | number>;
32
+ radius: PropType<MantineRadius>;
32
33
  classNames: {
33
34
  type: (ObjectConstructor | FunctionConstructor)[];
34
35
  default: undefined;
@@ -1,5 +1,5 @@
1
1
  import { type PropType, type SlotsType, type VNodeChild } from 'vue';
2
- import { type MantineVariant, type MantineNode, type SectionSlots } from '../../core';
2
+ import { type MantineVariant, type MantineNode, type MantineColor, type MantineGradient, type MantineRadius, type MantineSize, type SectionSlots } from '../../core';
3
3
  export type BadgeVariant = 'filled' | 'light' | 'outline' | 'dot' | 'transparent' | 'white' | 'default' | 'gradient';
4
4
  export interface BadgeSlots extends SectionSlots {
5
5
  default?: () => VNodeChild;
@@ -9,22 +9,21 @@ export declare const Badge: import("../..").WithBoxProps<import("vue").DefineCom
9
9
  type: StringConstructor;
10
10
  default: string;
11
11
  };
12
- size: PropType<string | number>;
12
+ size: {
13
+ type: PropType<MantineSize | (string & {})>;
14
+ default: undefined;
15
+ };
13
16
  circle: {
14
17
  type: BooleanConstructor;
15
18
  default: boolean;
16
19
  };
17
- radius: PropType<string | number>;
20
+ radius: PropType<MantineRadius>;
18
21
  color: {
19
- type: StringConstructor;
22
+ type: PropType<MantineColor>;
20
23
  default: undefined;
21
24
  };
22
25
  gradient: {
23
- type: PropType<{
24
- from: string;
25
- to: string;
26
- deg?: number;
27
- }>;
26
+ type: PropType<MantineGradient>;
28
27
  default: undefined;
29
28
  };
30
29
  leftSection: {
@@ -70,22 +69,21 @@ export declare const Badge: import("../..").WithBoxProps<import("vue").DefineCom
70
69
  type: StringConstructor;
71
70
  default: string;
72
71
  };
73
- size: PropType<string | number>;
72
+ size: {
73
+ type: PropType<MantineSize | (string & {})>;
74
+ default: undefined;
75
+ };
74
76
  circle: {
75
77
  type: BooleanConstructor;
76
78
  default: boolean;
77
79
  };
78
- radius: PropType<string | number>;
80
+ radius: PropType<MantineRadius>;
79
81
  color: {
80
- type: StringConstructor;
82
+ type: PropType<MantineColor>;
81
83
  default: undefined;
82
84
  };
83
85
  gradient: {
84
- type: PropType<{
85
- from: string;
86
- to: string;
87
- deg?: number;
88
- }>;
86
+ type: PropType<MantineGradient>;
89
87
  default: undefined;
90
88
  };
91
89
  leftSection: {
@@ -125,15 +123,12 @@ export declare const Badge: import("../..").WithBoxProps<import("vue").DefineCom
125
123
  default: boolean;
126
124
  };
127
125
  }>> & Readonly<{}>, {
126
+ size: MantineSize | (string & {});
128
127
  circle: boolean;
129
- color: string;
128
+ color: MantineColor;
130
129
  autoContrast: boolean;
131
130
  variant: MantineVariant<BadgeVariant>;
132
- gradient: {
133
- from: string;
134
- to: string;
135
- deg?: number;
136
- };
131
+ gradient: MantineGradient;
137
132
  classNames: Function | Record<string, any>;
138
133
  styles: Function | Record<string, any>;
139
134
  component: string;