@mantine-vue/core 2.2.1 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/index.cjs +23 -19
- package/cjs/index.cjs.map +1 -1
- package/esm/index.mjs +23 -19
- package/esm/index.mjs.map +1 -1
- package/lib/components/Accordion/Accordion.d.ts +7 -6
- package/lib/components/ActionIcon/ActionIcon.d.ts +29 -64
- package/lib/components/ActionIcon/ActionIconGroupSection/ActionIconGroupSection.d.ts +11 -22
- package/lib/components/Alert/Alert.d.ts +6 -6
- package/lib/components/Avatar/Avatar.d.ts +27 -50
- package/lib/components/Avatar/AvatarGroup/AvatarGroup.d.ts +3 -2
- package/lib/components/BackgroundImage/BackgroundImage.d.ts +3 -2
- package/lib/components/Badge/Badge.d.ts +18 -23
- package/lib/components/Blockquote/Blockquote.d.ts +6 -6
- package/lib/components/Burger/Burger.d.ts +6 -5
- package/lib/components/Button/Button.d.ts +29 -65
- package/lib/components/Button/ButtonGroupSection/ButtonGroupSection.d.ts +12 -23
- package/lib/components/Card/Card.d.ts +7 -6
- package/lib/components/Checkbox/Checkbox.d.ts +34 -34
- package/lib/components/Checkbox/CheckboxCard/CheckboxCard.d.ts +4 -3
- package/lib/components/Checkbox/CheckboxGroup/CheckboxGroup.d.ts +4 -4
- package/lib/components/Checkbox/CheckboxIndicator/CheckboxIndicator.d.ts +10 -9
- package/lib/components/Chip/Chip.d.ts +19 -18
- package/lib/components/CloseButton/CloseButton.d.ts +5 -5
- package/lib/components/Code/Code.d.ts +5 -3
- package/lib/components/ColorPicker/ColorPicker.d.ts +4 -3
- package/lib/components/ColorSwatch/ColorSwatch.d.ts +3 -2
- package/lib/components/Container/Container.d.ts +3 -2
- package/lib/components/Dialog/Dialog.d.ts +10 -9
- package/lib/components/Divider/Divider.d.ts +6 -6
- package/lib/components/EmptyState/EmptyState.d.ts +6 -6
- package/lib/components/Fieldset/Fieldset.d.ts +4 -4
- package/lib/components/FileInput/FileInput.d.ts +4 -4
- package/lib/components/Flex/Flex.d.ts +15 -15
- package/lib/components/Grid/Grid.d.ts +49 -50
- package/lib/components/Grid/GridCol/GridCol.d.ts +4 -5
- package/lib/components/Grid/GridCol/GridColVariables.d.ts +4 -5
- package/lib/components/Group/Group.d.ts +12 -11
- package/lib/components/Highlight/Highlight.d.ts +5 -4
- package/lib/components/Image/Image.d.ts +6 -5
- package/lib/components/Indicator/Indicator.d.ts +6 -6
- package/lib/components/Input/Input.d.ts +28 -28
- package/lib/components/Input/InputClearButton/InputClearButton.d.ts +4 -3
- package/lib/components/Input/InputDescription/InputDescription.d.ts +4 -3
- package/lib/components/Input/InputError/InputError.d.ts +4 -3
- package/lib/components/Input/InputLabel/InputLabel.d.ts +4 -3
- package/lib/components/Input/InputWrapper/InputWrapper.d.ts +4 -4
- package/lib/components/InputBase/InputBase.d.ts +7 -6
- package/lib/components/Kbd/Kbd.d.ts +3 -2
- package/lib/components/List/List.d.ts +10 -10
- package/lib/components/Loader/Loader.d.ts +6 -5
- package/lib/components/Mark/Mark.d.ts +5 -3
- package/lib/components/Marquee/Marquee.d.ts +4 -3
- package/lib/components/NativeSelect/NativeSelect.d.ts +7 -7
- package/lib/components/NavLink/NavLink.d.ts +7 -7
- package/lib/components/Notification/Notification.d.ts +7 -7
- package/lib/components/NumberInput/NumberInput.d.ts +4 -4
- package/lib/components/OverflowList/OverflowList.d.ts +4 -3
- package/lib/components/Overlay/Overlay.d.ts +3 -2
- package/lib/components/Pagination/Pagination.d.ts +34 -33
- package/lib/components/Pagination/PaginationRoot/PaginationRoot.d.ts +10 -9
- package/lib/components/Paper/Paper.d.ts +3 -2
- package/lib/components/PasswordInput/PasswordInput.d.ts +7 -7
- package/lib/components/Pill/Pill.d.ts +19 -18
- package/lib/components/Pill/PillGroup/PillGroup.d.ts +8 -7
- package/lib/components/PillsInput/PillsInput.d.ts +13 -13
- package/lib/components/PinInput/PinInput.d.ts +10 -9
- package/lib/components/Progress/Progress.d.ts +28 -27
- package/lib/components/Progress/ProgressRoot/ProgressRoot.d.ts +7 -6
- package/lib/components/Progress/ProgressSection/ProgressSection.d.ts +4 -3
- package/lib/components/Radio/Radio.d.ts +34 -34
- package/lib/components/Radio/RadioCard/RadioCard.d.ts +4 -3
- package/lib/components/Radio/RadioGroup/RadioGroup.d.ts +4 -4
- package/lib/components/Radio/RadioIndicator/RadioIndicator.d.ts +10 -9
- package/lib/components/Rating/Rating.d.ts +7 -7
- package/lib/components/RingProgress/Curve/Curve.d.ts +4 -3
- package/lib/components/SegmentedControl/SegmentedControl.d.ts +10 -9
- package/lib/components/Slider/RangeSlider/RangeSlider.d.ts +10 -9
- package/lib/components/Slider/Slider/Slider.d.ts +10 -9
- package/lib/components/Stack/Stack.d.ts +9 -8
- package/lib/components/Stepper/Stepper.d.ts +22 -21
- package/lib/components/Stepper/StepperStep/StepperStep.d.ts +4 -3
- package/lib/components/Switch/Switch.d.ts +22 -22
- package/lib/components/Switch/SwitchGroup/SwitchGroup.d.ts +4 -4
- package/lib/components/TableOfContents/TableOfContents.d.ts +10 -9
- package/lib/components/Tabs/Tabs.d.ts +19 -18
- package/lib/components/Tabs/TabsList/TabsList.d.ts +4 -3
- package/lib/components/Tabs/TabsTab/TabsTab.d.ts +4 -4
- package/lib/components/Text/Text.d.ts +3 -2
- package/lib/components/ThemeIcon/ThemeIcon.d.ts +11 -23
- package/lib/components/Timeline/Timeline.d.ts +19 -18
- package/lib/components/Timeline/TimelineItem/TimelineItem.d.ts +7 -7
- package/lib/components/component-props.d.ts +190 -0
- package/lib/components/index.d.ts +1 -0
- package/lib/core/Box/Box.d.ts +4 -4
- package/lib/core/Box/style-props/style-props.types.d.ts +4 -4
- package/lib/core/MantineProvider/theme.types.d.ts +5 -0
- package/lib/core/types.d.ts +7 -0
- package/package.json +3 -3
|
@@ -1,19 +1,15 @@
|
|
|
1
1
|
import { type PropType } from 'vue';
|
|
2
|
-
import { type MantineVariant } from '../../core';
|
|
2
|
+
import { type MantineColor, type MantineGradient, type MantineRadius, type MantineSize, type MantineVariant } from '../../core';
|
|
3
3
|
export type ThemeIconVariant = 'filled' | 'light' | 'outline' | 'transparent' | 'white' | 'default' | 'gradient';
|
|
4
4
|
export declare const ThemeIcon: import("../..").WithBoxProps<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
5
|
-
size: PropType<string | number>;
|
|
5
|
+
size: PropType<MantineSize | (string & {}) | number>;
|
|
6
6
|
color: {
|
|
7
|
-
type:
|
|
7
|
+
type: PropType<MantineColor>;
|
|
8
8
|
default: undefined;
|
|
9
9
|
};
|
|
10
|
-
radius: PropType<
|
|
10
|
+
radius: PropType<MantineRadius>;
|
|
11
11
|
gradient: {
|
|
12
|
-
type: PropType<
|
|
13
|
-
from: string;
|
|
14
|
-
to: string;
|
|
15
|
-
deg?: number;
|
|
16
|
-
}>;
|
|
12
|
+
type: PropType<MantineGradient>;
|
|
17
13
|
default: undefined;
|
|
18
14
|
};
|
|
19
15
|
autoContrast: {
|
|
@@ -43,18 +39,14 @@ export declare const ThemeIcon: import("../..").WithBoxProps<import("vue").Defin
|
|
|
43
39
|
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
44
40
|
[key: string]: any;
|
|
45
41
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
46
|
-
size: PropType<string | number>;
|
|
42
|
+
size: PropType<MantineSize | (string & {}) | number>;
|
|
47
43
|
color: {
|
|
48
|
-
type:
|
|
44
|
+
type: PropType<MantineColor>;
|
|
49
45
|
default: undefined;
|
|
50
46
|
};
|
|
51
|
-
radius: PropType<
|
|
47
|
+
radius: PropType<MantineRadius>;
|
|
52
48
|
gradient: {
|
|
53
|
-
type: PropType<
|
|
54
|
-
from: string;
|
|
55
|
-
to: string;
|
|
56
|
-
deg?: number;
|
|
57
|
-
}>;
|
|
49
|
+
type: PropType<MantineGradient>;
|
|
58
50
|
default: undefined;
|
|
59
51
|
};
|
|
60
52
|
autoContrast: {
|
|
@@ -82,14 +74,10 @@ export declare const ThemeIcon: import("../..").WithBoxProps<import("vue").Defin
|
|
|
82
74
|
default: boolean;
|
|
83
75
|
};
|
|
84
76
|
}>> & Readonly<{}>, {
|
|
85
|
-
color:
|
|
77
|
+
color: MantineColor;
|
|
86
78
|
autoContrast: boolean;
|
|
87
79
|
variant: MantineVariant<ThemeIconVariant>;
|
|
88
|
-
gradient:
|
|
89
|
-
from: string;
|
|
90
|
-
to: string;
|
|
91
|
-
deg?: number;
|
|
92
|
-
};
|
|
80
|
+
gradient: MantineGradient;
|
|
93
81
|
classNames: Function | Record<string, any>;
|
|
94
82
|
styles: Function | Record<string, any>;
|
|
95
83
|
vars: Function | Record<string, any>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type PropType, type VNode } from 'vue';
|
|
2
|
+
import { type MantineColor, type MantineRadius } from '../../core';
|
|
2
3
|
export type TimelineStylesNames = 'root' | 'itemBody' | 'itemContent' | 'itemBullet' | 'item' | 'itemTitle';
|
|
3
4
|
export declare const Timeline: import("../..").WithBoxProps<{
|
|
4
5
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -7,11 +8,11 @@ export declare const Timeline: import("../..").WithBoxProps<{
|
|
|
7
8
|
default: undefined;
|
|
8
9
|
};
|
|
9
10
|
color: {
|
|
10
|
-
type:
|
|
11
|
+
type: PropType<MantineColor>;
|
|
11
12
|
default: undefined;
|
|
12
13
|
};
|
|
13
14
|
radius: {
|
|
14
|
-
type: PropType<
|
|
15
|
+
type: PropType<MantineRadius>;
|
|
15
16
|
default: undefined;
|
|
16
17
|
};
|
|
17
18
|
bulletSize: {
|
|
@@ -57,8 +58,8 @@ export declare const Timeline: import("../..").WithBoxProps<{
|
|
|
57
58
|
}>> & Readonly<{}>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
58
59
|
[key: string]: any;
|
|
59
60
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
60
|
-
radius:
|
|
61
|
-
color:
|
|
61
|
+
radius: MantineRadius;
|
|
62
|
+
color: MantineColor;
|
|
62
63
|
autoContrast: boolean;
|
|
63
64
|
classNames: Function | Record<string, any>;
|
|
64
65
|
styles: Function | Record<string, any>;
|
|
@@ -83,11 +84,11 @@ export declare const Timeline: import("../..").WithBoxProps<{
|
|
|
83
84
|
default: undefined;
|
|
84
85
|
};
|
|
85
86
|
color: {
|
|
86
|
-
type:
|
|
87
|
+
type: PropType<MantineColor>;
|
|
87
88
|
default: undefined;
|
|
88
89
|
};
|
|
89
90
|
radius: {
|
|
90
|
-
type: PropType<
|
|
91
|
+
type: PropType<MantineRadius>;
|
|
91
92
|
default: undefined;
|
|
92
93
|
};
|
|
93
94
|
bulletSize: {
|
|
@@ -133,8 +134,8 @@ export declare const Timeline: import("../..").WithBoxProps<{
|
|
|
133
134
|
}>> & Readonly<{}>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
134
135
|
[key: string]: any;
|
|
135
136
|
}>, {}, {}, {}, {
|
|
136
|
-
radius:
|
|
137
|
-
color:
|
|
137
|
+
radius: MantineRadius;
|
|
138
|
+
color: MantineColor;
|
|
138
139
|
autoContrast: boolean;
|
|
139
140
|
classNames: Function | Record<string, any>;
|
|
140
141
|
styles: Function | Record<string, any>;
|
|
@@ -156,11 +157,11 @@ export declare const Timeline: import("../..").WithBoxProps<{
|
|
|
156
157
|
default: undefined;
|
|
157
158
|
};
|
|
158
159
|
color: {
|
|
159
|
-
type:
|
|
160
|
+
type: PropType<MantineColor>;
|
|
160
161
|
default: undefined;
|
|
161
162
|
};
|
|
162
163
|
radius: {
|
|
163
|
-
type: PropType<
|
|
164
|
+
type: PropType<MantineRadius>;
|
|
164
165
|
default: undefined;
|
|
165
166
|
};
|
|
166
167
|
bulletSize: {
|
|
@@ -206,8 +207,8 @@ export declare const Timeline: import("../..").WithBoxProps<{
|
|
|
206
207
|
}>> & Readonly<{}>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
207
208
|
[key: string]: any;
|
|
208
209
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
209
|
-
radius:
|
|
210
|
-
color:
|
|
210
|
+
radius: MantineRadius;
|
|
211
|
+
color: MantineColor;
|
|
211
212
|
autoContrast: boolean;
|
|
212
213
|
classNames: Function | Record<string, any>;
|
|
213
214
|
styles: Function | Record<string, any>;
|
|
@@ -252,11 +253,11 @@ export declare const Timeline: import("../..").WithBoxProps<{
|
|
|
252
253
|
default: undefined;
|
|
253
254
|
};
|
|
254
255
|
radius: {
|
|
255
|
-
type: PropType<
|
|
256
|
+
type: PropType<MantineRadius>;
|
|
256
257
|
default: undefined;
|
|
257
258
|
};
|
|
258
259
|
color: {
|
|
259
|
-
type:
|
|
260
|
+
type: PropType<MantineColor>;
|
|
260
261
|
default: undefined;
|
|
261
262
|
};
|
|
262
263
|
lineVariant: {
|
|
@@ -315,11 +316,11 @@ export declare const Timeline: import("../..").WithBoxProps<{
|
|
|
315
316
|
default: undefined;
|
|
316
317
|
};
|
|
317
318
|
radius: {
|
|
318
|
-
type: PropType<
|
|
319
|
+
type: PropType<MantineRadius>;
|
|
319
320
|
default: undefined;
|
|
320
321
|
};
|
|
321
322
|
color: {
|
|
322
|
-
type:
|
|
323
|
+
type: PropType<MantineColor>;
|
|
323
324
|
default: undefined;
|
|
324
325
|
};
|
|
325
326
|
lineVariant: {
|
|
@@ -349,8 +350,8 @@ export declare const Timeline: import("../..").WithBoxProps<{
|
|
|
349
350
|
}>> & Readonly<{}>, {
|
|
350
351
|
style: any;
|
|
351
352
|
title: import("../..").MantineNode;
|
|
352
|
-
radius:
|
|
353
|
-
color:
|
|
353
|
+
radius: MantineRadius;
|
|
354
|
+
color: MantineColor;
|
|
354
355
|
classNames: Function | Record<string, any>;
|
|
355
356
|
styles: Function | Record<string, any>;
|
|
356
357
|
active: boolean;
|
|
@@ -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 TimelineItemStylesNames = 'itemBody' | 'itemContent' | 'itemBullet' | 'item' | 'itemTitle';
|
|
4
4
|
export interface TimelineItemSlots {
|
|
5
5
|
default?: () => VNodeChild;
|
|
@@ -36,11 +36,11 @@ export declare const TimelineItem: import("../../..").WithBoxProps<import("vue")
|
|
|
36
36
|
default: undefined;
|
|
37
37
|
};
|
|
38
38
|
radius: {
|
|
39
|
-
type: PropType<
|
|
39
|
+
type: PropType<MantineRadius>;
|
|
40
40
|
default: undefined;
|
|
41
41
|
};
|
|
42
42
|
color: {
|
|
43
|
-
type:
|
|
43
|
+
type: PropType<MantineColor>;
|
|
44
44
|
default: undefined;
|
|
45
45
|
};
|
|
46
46
|
lineVariant: {
|
|
@@ -99,11 +99,11 @@ export declare const TimelineItem: import("../../..").WithBoxProps<import("vue")
|
|
|
99
99
|
default: undefined;
|
|
100
100
|
};
|
|
101
101
|
radius: {
|
|
102
|
-
type: PropType<
|
|
102
|
+
type: PropType<MantineRadius>;
|
|
103
103
|
default: undefined;
|
|
104
104
|
};
|
|
105
105
|
color: {
|
|
106
|
-
type:
|
|
106
|
+
type: PropType<MantineColor>;
|
|
107
107
|
default: undefined;
|
|
108
108
|
};
|
|
109
109
|
lineVariant: {
|
|
@@ -133,8 +133,8 @@ export declare const TimelineItem: import("../../..").WithBoxProps<import("vue")
|
|
|
133
133
|
}>> & Readonly<{}>, {
|
|
134
134
|
style: any;
|
|
135
135
|
title: MantineNode;
|
|
136
|
-
radius:
|
|
137
|
-
color:
|
|
136
|
+
radius: MantineRadius;
|
|
137
|
+
color: MantineColor;
|
|
138
138
|
classNames: Function | Record<string, any>;
|
|
139
139
|
styles: Function | Record<string, any>;
|
|
140
140
|
active: boolean;
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import type * as Components from './index';
|
|
2
|
+
import type * as Core from '../core';
|
|
3
|
+
type PropsOf<T> = T extends abstract new (...args: any[]) => {
|
|
4
|
+
$props: infer Props;
|
|
5
|
+
} ? Props : never;
|
|
6
|
+
export type VisuallyHiddenProps = PropsOf<typeof Components.VisuallyHidden>;
|
|
7
|
+
export type PortalProps = PropsOf<typeof Components.Portal>;
|
|
8
|
+
export type OptionalPortalProps = PropsOf<typeof Components.OptionalPortal>;
|
|
9
|
+
export type UnstyledButtonProps = PropsOf<typeof Components.UnstyledButton>;
|
|
10
|
+
export type PaperProps = PropsOf<typeof Components.Paper>;
|
|
11
|
+
export type OverlayProps = PropsOf<typeof Components.Overlay>;
|
|
12
|
+
export type LoaderProps = PropsOf<typeof Components.Loader>;
|
|
13
|
+
export type CenterProps = PropsOf<typeof Components.Center>;
|
|
14
|
+
export type ContainerProps = PropsOf<typeof Components.Container>;
|
|
15
|
+
export type AspectRatioProps = PropsOf<typeof Components.AspectRatio>;
|
|
16
|
+
export type DividerProps = PropsOf<typeof Components.Divider>;
|
|
17
|
+
export type TextProps = PropsOf<typeof Components.Text>;
|
|
18
|
+
export type AnchorProps = PropsOf<typeof Components.Anchor>;
|
|
19
|
+
export type TitleProps = PropsOf<typeof Components.Title>;
|
|
20
|
+
export type CodeProps = PropsOf<typeof Components.Code>;
|
|
21
|
+
export type KbdProps = PropsOf<typeof Components.Kbd>;
|
|
22
|
+
export type MarkProps = PropsOf<typeof Components.Mark>;
|
|
23
|
+
export type ImageProps = PropsOf<typeof Components.Image>;
|
|
24
|
+
export type BackgroundImageProps = PropsOf<typeof Components.BackgroundImage>;
|
|
25
|
+
export type SkeletonProps = PropsOf<typeof Components.Skeleton>;
|
|
26
|
+
export type ColorSwatchProps = PropsOf<typeof Components.ColorSwatch>;
|
|
27
|
+
export type BadgeProps = PropsOf<typeof Components.Badge>;
|
|
28
|
+
export type ThemeIconProps = PropsOf<typeof Components.ThemeIcon>;
|
|
29
|
+
export type ActionIconProps = PropsOf<typeof Components.ActionIcon>;
|
|
30
|
+
export type ActionIconGroupProps = PropsOf<typeof Components.ActionIconGroup>;
|
|
31
|
+
export type ActionIconGroupSectionProps = PropsOf<typeof Components.ActionIconGroupSection>;
|
|
32
|
+
export type CloseButtonProps = PropsOf<typeof Components.CloseButton>;
|
|
33
|
+
export type ButtonGroupProps = PropsOf<typeof Components.ButtonGroup>;
|
|
34
|
+
export type ButtonGroupSectionProps = PropsOf<typeof Components.ButtonGroupSection>;
|
|
35
|
+
export type BurgerProps = PropsOf<typeof Components.Burger>;
|
|
36
|
+
export type CollapseProps = PropsOf<typeof Components.Collapse>;
|
|
37
|
+
export type CopyButtonProps = PropsOf<typeof Components.CopyButton>;
|
|
38
|
+
export type LoadingOverlayProps = PropsOf<typeof Components.LoadingOverlay>;
|
|
39
|
+
export type CardProps = PropsOf<typeof Components.Card>;
|
|
40
|
+
export type CardSectionProps = PropsOf<typeof Components.CardSection>;
|
|
41
|
+
export type AlertProps = PropsOf<typeof Components.Alert>;
|
|
42
|
+
export type BlockquoteProps = PropsOf<typeof Components.Blockquote>;
|
|
43
|
+
export type BreadcrumbsProps = PropsOf<typeof Components.Breadcrumbs>;
|
|
44
|
+
export type ListProps = PropsOf<typeof Components.List>;
|
|
45
|
+
export type ListItemProps = PropsOf<typeof Components.ListItem>;
|
|
46
|
+
export type IndicatorProps = PropsOf<typeof Components.Indicator>;
|
|
47
|
+
export type AvatarProps = PropsOf<typeof Components.Avatar>;
|
|
48
|
+
export type AvatarGroupProps = PropsOf<typeof Components.AvatarGroup>;
|
|
49
|
+
export type SimpleGridProps = PropsOf<typeof Components.SimpleGrid>;
|
|
50
|
+
export type GridProps = PropsOf<typeof Components.Grid>;
|
|
51
|
+
export type GridColProps = PropsOf<typeof Components.GridCol>;
|
|
52
|
+
export type TableProps = PropsOf<typeof Components.Table>;
|
|
53
|
+
export type TableCaptionProps = PropsOf<typeof Components.TableCaption>;
|
|
54
|
+
export type TableTbodyProps = PropsOf<typeof Components.TableTbody>;
|
|
55
|
+
export type TableTdProps = PropsOf<typeof Components.TableTd>;
|
|
56
|
+
export type TableTfootProps = PropsOf<typeof Components.TableTfoot>;
|
|
57
|
+
export type TableThProps = PropsOf<typeof Components.TableTh>;
|
|
58
|
+
export type TableTheadProps = PropsOf<typeof Components.TableThead>;
|
|
59
|
+
export type TableTrProps = PropsOf<typeof Components.TableTr>;
|
|
60
|
+
export type ProgressProps = PropsOf<typeof Components.Progress>;
|
|
61
|
+
export type ProgressRootProps = PropsOf<typeof Components.ProgressRoot>;
|
|
62
|
+
export type ProgressSectionProps = PropsOf<typeof Components.ProgressSection>;
|
|
63
|
+
export type ProgressLabelProps = PropsOf<typeof Components.ProgressLabel>;
|
|
64
|
+
export type TimelineProps = PropsOf<typeof Components.Timeline>;
|
|
65
|
+
export type TimelineItemProps = PropsOf<typeof Components.TimelineItem>;
|
|
66
|
+
export type HighlightProps = PropsOf<typeof Components.Highlight>;
|
|
67
|
+
export type TypographyProps = PropsOf<typeof Components.Typography>;
|
|
68
|
+
export type SemiCircleProgressProps = PropsOf<typeof Components.SemiCircleProgress>;
|
|
69
|
+
export type SpoilerProps = PropsOf<typeof Components.Spoiler>;
|
|
70
|
+
export type FieldsetProps = PropsOf<typeof Components.Fieldset>;
|
|
71
|
+
export type FileButtonProps = PropsOf<typeof Components.FileButton>;
|
|
72
|
+
export type FileInputProps = PropsOf<typeof Components.FileInput>;
|
|
73
|
+
export type NotificationProps = PropsOf<typeof Components.Notification>;
|
|
74
|
+
export type NumberFormatterProps = PropsOf<typeof Components.NumberFormatter>;
|
|
75
|
+
export type NumberInputProps = PropsOf<typeof Components.NumberInput>;
|
|
76
|
+
export type NativeSelectOptionProps = PropsOf<typeof Components.NativeSelectOption>;
|
|
77
|
+
export type NavLinkProps = PropsOf<typeof Components.NavLink>;
|
|
78
|
+
export type MarqueeProps = PropsOf<typeof Components.Marquee>;
|
|
79
|
+
export type AffixProps = PropsOf<typeof Components.Affix>;
|
|
80
|
+
export type DialogProps = PropsOf<typeof Components.Dialog>;
|
|
81
|
+
export type RatingProps = PropsOf<typeof Components.Rating>;
|
|
82
|
+
export type FloatingIndicatorProps = PropsOf<typeof Components.FloatingIndicator>;
|
|
83
|
+
export type SegmentedControlProps = PropsOf<typeof Components.SegmentedControl>;
|
|
84
|
+
export type PaginationProps = PropsOf<typeof Components.Pagination>;
|
|
85
|
+
export type PaginationRootProps = PropsOf<typeof Components.PaginationRoot>;
|
|
86
|
+
export type PaginationControlProps = PropsOf<typeof Components.PaginationControl>;
|
|
87
|
+
export type PaginationDotsProps = PropsOf<typeof Components.PaginationDots>;
|
|
88
|
+
export type TabsProps = PropsOf<typeof Components.Tabs>;
|
|
89
|
+
export type TabsListProps = PropsOf<typeof Components.TabsList>;
|
|
90
|
+
export type TabsPanelProps = PropsOf<typeof Components.TabsPanel>;
|
|
91
|
+
export type TabsTabProps = PropsOf<typeof Components.TabsTab>;
|
|
92
|
+
export type AccordionProps = PropsOf<typeof Components.Accordion>;
|
|
93
|
+
export type AccordionControlProps = PropsOf<typeof Components.AccordionControl>;
|
|
94
|
+
export type AccordionItemProps = PropsOf<typeof Components.AccordionItem>;
|
|
95
|
+
export type AccordionPanelProps = PropsOf<typeof Components.AccordionPanel>;
|
|
96
|
+
export type AccordionChevronProps = PropsOf<typeof Components.AccordionChevron>;
|
|
97
|
+
export type InputProps = PropsOf<typeof Components.Input>;
|
|
98
|
+
export type InputWrapperProps = PropsOf<typeof Components.InputWrapper>;
|
|
99
|
+
export type InputLabelProps = PropsOf<typeof Components.InputLabel>;
|
|
100
|
+
export type InputDescriptionProps = PropsOf<typeof Components.InputDescription>;
|
|
101
|
+
export type InputErrorProps = PropsOf<typeof Components.InputError>;
|
|
102
|
+
export type InputPlaceholderProps = PropsOf<typeof Components.InputPlaceholder>;
|
|
103
|
+
export type InputClearButtonProps = PropsOf<typeof Components.InputClearButton>;
|
|
104
|
+
export type InputBaseProps = PropsOf<typeof Components.InputBase>;
|
|
105
|
+
export type JsonInputProps = PropsOf<typeof Components.JsonInput>;
|
|
106
|
+
export type TextInputProps = PropsOf<typeof Components.TextInput>;
|
|
107
|
+
export type TextareaProps = PropsOf<typeof Components.Textarea>;
|
|
108
|
+
export type PasswordInputProps = PropsOf<typeof Components.PasswordInput>;
|
|
109
|
+
export type CheckboxProps = PropsOf<typeof Components.Checkbox>;
|
|
110
|
+
export type CheckboxCardProps = PropsOf<typeof Components.CheckboxCard>;
|
|
111
|
+
export type CheckboxGroupProps = PropsOf<typeof Components.CheckboxGroup>;
|
|
112
|
+
export type CheckboxIndicatorProps = PropsOf<typeof Components.CheckboxIndicator>;
|
|
113
|
+
export type ChipProps = PropsOf<typeof Components.Chip>;
|
|
114
|
+
export type ChipGroupProps = PropsOf<typeof Components.ChipGroup>;
|
|
115
|
+
export type PillProps = PropsOf<typeof Components.Pill>;
|
|
116
|
+
export type PillGroupProps = PropsOf<typeof Components.PillGroup>;
|
|
117
|
+
export type PillsInputProps = PropsOf<typeof Components.PillsInput>;
|
|
118
|
+
export type PillsInputFieldProps = PropsOf<typeof Components.PillsInputField>;
|
|
119
|
+
export type RadioProps = PropsOf<typeof Components.Radio>;
|
|
120
|
+
export type RadioCardProps = PropsOf<typeof Components.RadioCard>;
|
|
121
|
+
export type RadioGroupProps = PropsOf<typeof Components.RadioGroup>;
|
|
122
|
+
export type RadioIndicatorProps = PropsOf<typeof Components.RadioIndicator>;
|
|
123
|
+
export type SwitchProps = PropsOf<typeof Components.Switch>;
|
|
124
|
+
export type SwitchGroupProps = PropsOf<typeof Components.SwitchGroup>;
|
|
125
|
+
export type SpaceProps = PropsOf<typeof Components.Space>;
|
|
126
|
+
export type FlexProps = PropsOf<typeof Components.Flex>;
|
|
127
|
+
export type StackProps = PropsOf<typeof Components.Stack>;
|
|
128
|
+
export type GroupProps = PropsOf<typeof Components.Group>;
|
|
129
|
+
export type StepperProps = PropsOf<typeof Components.Stepper>;
|
|
130
|
+
export type StepperStepProps = PropsOf<typeof Components.StepperStep>;
|
|
131
|
+
export type StepperCompletedProps = PropsOf<typeof Components.StepperCompleted>;
|
|
132
|
+
export type OverflowListProps = PropsOf<typeof Components.OverflowList>;
|
|
133
|
+
export type TableOfContentsProps = PropsOf<typeof Components.TableOfContents>;
|
|
134
|
+
export type FloatingWindowProps = PropsOf<typeof Components.FloatingWindow>;
|
|
135
|
+
export type SliderProps = PropsOf<typeof Components.Slider>;
|
|
136
|
+
export type RangeSliderProps = PropsOf<typeof Components.RangeSlider>;
|
|
137
|
+
export type ColorPickerProps = PropsOf<typeof Components.ColorPicker>;
|
|
138
|
+
export type AlphaSliderProps = PropsOf<typeof Components.AlphaSlider>;
|
|
139
|
+
export type ColorSliderProps = PropsOf<typeof Components.ColorSlider>;
|
|
140
|
+
export type HueSliderProps = PropsOf<typeof Components.HueSlider>;
|
|
141
|
+
export type AppShellProps = PropsOf<typeof Components.AppShell>;
|
|
142
|
+
export type AppShellHeaderProps = PropsOf<typeof Components.AppShellHeader>;
|
|
143
|
+
export type AppShellNavbarProps = PropsOf<typeof Components.AppShellNavbar>;
|
|
144
|
+
export type AppShellAsideProps = PropsOf<typeof Components.AppShellAside>;
|
|
145
|
+
export type AppShellMainProps = PropsOf<typeof Components.AppShellMain>;
|
|
146
|
+
export type AppShellFooterProps = PropsOf<typeof Components.AppShellFooter>;
|
|
147
|
+
export type AppShellSectionProps = PropsOf<typeof Components.AppShellSection>;
|
|
148
|
+
export type DrawerRootProps = PropsOf<typeof Components.DrawerRoot>;
|
|
149
|
+
export type DrawerBodyProps = PropsOf<typeof Components.DrawerBody>;
|
|
150
|
+
export type DrawerCloseButtonProps = PropsOf<typeof Components.DrawerCloseButton>;
|
|
151
|
+
export type DrawerContentProps = PropsOf<typeof Components.DrawerContent>;
|
|
152
|
+
export type DrawerHeaderProps = PropsOf<typeof Components.DrawerHeader>;
|
|
153
|
+
export type DrawerOverlayProps = PropsOf<typeof Components.DrawerOverlay>;
|
|
154
|
+
export type DrawerTitleProps = PropsOf<typeof Components.DrawerTitle>;
|
|
155
|
+
export type DrawerStackProps = PropsOf<typeof Components.DrawerStack>;
|
|
156
|
+
export type ModalRootProps = PropsOf<typeof Components.ModalRoot>;
|
|
157
|
+
export type ModalBodyProps = PropsOf<typeof Components.ModalBody>;
|
|
158
|
+
export type ModalCloseButtonProps = PropsOf<typeof Components.ModalCloseButton>;
|
|
159
|
+
export type ModalContentProps = PropsOf<typeof Components.ModalContent>;
|
|
160
|
+
export type ModalHeaderProps = PropsOf<typeof Components.ModalHeader>;
|
|
161
|
+
export type ModalOverlayProps = PropsOf<typeof Components.ModalOverlay>;
|
|
162
|
+
export type ModalTitleProps = PropsOf<typeof Components.ModalTitle>;
|
|
163
|
+
export type TreeSelectOptionProps = PropsOf<typeof Components.TreeSelectOption>;
|
|
164
|
+
export type BarsProps = PropsOf<typeof Components.Bars>;
|
|
165
|
+
export type DotsProps = PropsOf<typeof Components.Dots>;
|
|
166
|
+
export type OvalProps = PropsOf<typeof Components.Oval>;
|
|
167
|
+
export type CheckIconProps = PropsOf<typeof Components.CheckIcon>;
|
|
168
|
+
export type CheckboxIconProps = PropsOf<typeof Components.CheckboxIcon>;
|
|
169
|
+
export type CloseIconProps = PropsOf<typeof Components.CloseIcon>;
|
|
170
|
+
export type RadioIconProps = PropsOf<typeof Components.RadioIcon>;
|
|
171
|
+
export type PasswordToggleIconProps = PropsOf<typeof Components.PasswordToggleIcon>;
|
|
172
|
+
export type NumberInputChevronProps = PropsOf<typeof Components.NumberInputChevron>;
|
|
173
|
+
export type FocusTrapInitialFocusProps = PropsOf<typeof Components.FocusTrapInitialFocus>;
|
|
174
|
+
export type DirectionProviderProps = PropsOf<typeof Core.DirectionProvider>;
|
|
175
|
+
export type HeadlessMantineProviderProps = PropsOf<typeof Core.HeadlessMantineProvider>;
|
|
176
|
+
export type MantineThemeProviderProps = PropsOf<typeof Core.MantineThemeProvider>;
|
|
177
|
+
export type InlineStylesProps = PropsOf<typeof Core.InlineStyles>;
|
|
178
|
+
export type MantineClassesProps = PropsOf<typeof Core.MantineClasses>;
|
|
179
|
+
export type MantineCssVariablesProps = PropsOf<typeof Core.MantineCssVariables>;
|
|
180
|
+
export type NativeScrollAreaProps = PropsOf<typeof Components.NativeScrollArea>;
|
|
181
|
+
export type ScrollAreaAutosizeProps = PropsOf<typeof Components.ScrollAreaAutosize>;
|
|
182
|
+
export type PaginationFirstProps = PropsOf<typeof Components.PaginationFirst>;
|
|
183
|
+
export type PaginationItemsProps = PropsOf<typeof Components.PaginationItems>;
|
|
184
|
+
export type PaginationItemsGroupProps = PropsOf<typeof Components.PaginationItemsGroup>;
|
|
185
|
+
export type PaginationLabelProps = PropsOf<typeof Components.PaginationLabel>;
|
|
186
|
+
export type PaginationLastProps = PropsOf<typeof Components.PaginationLast>;
|
|
187
|
+
export type PaginationNextProps = PropsOf<typeof Components.PaginationNext>;
|
|
188
|
+
export type PaginationPreviousProps = PropsOf<typeof Components.PaginationPrevious>;
|
|
189
|
+
export type TableDataRendererProps = PropsOf<typeof Components.TableDataRenderer>;
|
|
190
|
+
export {};
|
package/lib/core/Box/Box.d.ts
CHANGED
|
@@ -80,7 +80,7 @@ export declare const Box: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
80
80
|
/** FontFamily */
|
|
81
81
|
ff: PropType<import("./style-props").StyleProp<"text" | (string & {}) | "headings" | "monospace" | "mono" | "heading"> | undefined>;
|
|
82
82
|
/** FontSize, theme key: theme.fontSizes */
|
|
83
|
-
fz: PropType<import("./style-props").StyleProp<
|
|
83
|
+
fz: PropType<import("./style-props").StyleProp<number | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | import("..").MantineFontSize> | undefined>;
|
|
84
84
|
/** FontWeight */
|
|
85
85
|
fw: PropType<import("./style-props").StyleProp<import("csstype").Property.FontWeight | undefined>>;
|
|
86
86
|
/** LetterSpacing */
|
|
@@ -88,7 +88,7 @@ export declare const Box: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
88
88
|
/** TextAlign */
|
|
89
89
|
ta: PropType<import("./style-props").StyleProp<import("csstype").Property.TextAlign | undefined>>;
|
|
90
90
|
/** LineHeight, theme key: theme.lineHeights */
|
|
91
|
-
lh: PropType<import("./style-props").StyleProp<
|
|
91
|
+
lh: PropType<import("./style-props").StyleProp<number | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | import("..").MantineLineHeight> | undefined>;
|
|
92
92
|
/** FontStyle */
|
|
93
93
|
fs: PropType<import("./style-props").StyleProp<import("csstype").Property.FontStyle | undefined>>;
|
|
94
94
|
/** TextTransform */
|
|
@@ -203,7 +203,7 @@ export declare const Box: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
203
203
|
/** FontFamily */
|
|
204
204
|
ff: PropType<import("./style-props").StyleProp<"text" | (string & {}) | "headings" | "monospace" | "mono" | "heading"> | undefined>;
|
|
205
205
|
/** FontSize, theme key: theme.fontSizes */
|
|
206
|
-
fz: PropType<import("./style-props").StyleProp<
|
|
206
|
+
fz: PropType<import("./style-props").StyleProp<number | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | import("..").MantineFontSize> | undefined>;
|
|
207
207
|
/** FontWeight */
|
|
208
208
|
fw: PropType<import("./style-props").StyleProp<import("csstype").Property.FontWeight | undefined>>;
|
|
209
209
|
/** LetterSpacing */
|
|
@@ -211,7 +211,7 @@ export declare const Box: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
211
211
|
/** TextAlign */
|
|
212
212
|
ta: PropType<import("./style-props").StyleProp<import("csstype").Property.TextAlign | undefined>>;
|
|
213
213
|
/** LineHeight, theme key: theme.lineHeights */
|
|
214
|
-
lh: PropType<import("./style-props").StyleProp<
|
|
214
|
+
lh: PropType<import("./style-props").StyleProp<number | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | import("..").MantineLineHeight> | undefined>;
|
|
215
215
|
/** FontStyle */
|
|
216
216
|
fs: PropType<import("./style-props").StyleProp<import("csstype").Property.FontStyle | undefined>>;
|
|
217
217
|
/** TextTransform */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { CSSProperties } from 'vue';
|
|
2
|
-
import type { MantineColor, MantineSpacing } from '../../MantineProvider';
|
|
3
|
-
export type StyleProp<Value> = Value | Partial<Record<string, Value>>;
|
|
2
|
+
import type { MantineBreakpoint, MantineColor, MantineFontSize, MantineLineHeight, MantineSpacing } from '../../MantineProvider';
|
|
3
|
+
export type StyleProp<Value> = Value | Partial<Record<MantineBreakpoint | (string & {}), Value>>;
|
|
4
4
|
type CssValue<Key extends keyof CSSProperties> = CSSProperties[Key];
|
|
5
5
|
export interface MantineStyleProps {
|
|
6
6
|
/** Margin, theme key: theme.spacing */
|
|
@@ -60,7 +60,7 @@ export interface MantineStyleProps {
|
|
|
60
60
|
/** FontFamily */
|
|
61
61
|
ff?: StyleProp<'monospace' | 'mono' | 'text' | 'heading' | 'headings' | (string & {})>;
|
|
62
62
|
/** FontSize, theme key: theme.fontSizes */
|
|
63
|
-
fz?: StyleProp<
|
|
63
|
+
fz?: StyleProp<MantineFontSize | `h${1 | 2 | 3 | 4 | 5 | 6}` | number | (string & {})>;
|
|
64
64
|
/** FontWeight */
|
|
65
65
|
fw?: StyleProp<CssValue<'fontWeight'>>;
|
|
66
66
|
/** LetterSpacing */
|
|
@@ -68,7 +68,7 @@ export interface MantineStyleProps {
|
|
|
68
68
|
/** TextAlign */
|
|
69
69
|
ta?: StyleProp<CssValue<'textAlign'>>;
|
|
70
70
|
/** LineHeight, theme key: theme.lineHeights */
|
|
71
|
-
lh?: StyleProp<
|
|
71
|
+
lh?: StyleProp<MantineLineHeight | `h${1 | 2 | 3 | 4 | 5 | 6}` | number | (string & {})>;
|
|
72
72
|
/** FontStyle */
|
|
73
73
|
fs?: StyleProp<CssValue<'fontStyle'>>;
|
|
74
74
|
/** TextTransform */
|
|
@@ -8,8 +8,13 @@ export type MantineSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
|
8
8
|
export interface MantineThemeSizesOverride {
|
|
9
9
|
}
|
|
10
10
|
type CustomThemeSize<Section extends string> = MantineThemeSizesOverride extends Record<Section, Record<infer CustomSize, string>> ? CustomSize : MantineSize;
|
|
11
|
+
export type MantineBreakpoint = CustomThemeSize<'breakpoints'> | (string & {});
|
|
12
|
+
export type MantineFontSize = CustomThemeSize<'fontSizes'> | (string & {});
|
|
11
13
|
export type MantineRadius = CustomThemeSize<'radius'> | (string & {}) | number;
|
|
12
14
|
export type MantineSpacing = CustomThemeSize<'spacing'> | (string & {}) | number;
|
|
15
|
+
export type MantineShadow = CustomThemeSize<'shadows'> | (string & {});
|
|
16
|
+
export type MantineLineHeight = CustomThemeSize<'lineHeights'> | (string & {});
|
|
17
|
+
export type MantineFontWeight = CustomThemeSize<'fontWeights'> | (string & {});
|
|
13
18
|
export type MantineColorsTuple = readonly [
|
|
14
19
|
string,
|
|
15
20
|
string,
|
package/lib/core/types.d.ts
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import type { CSSProperties, Component, Ref } from 'vue';
|
|
2
2
|
import type { MantineTheme, MantineThemeOverride } from './MantineProvider';
|
|
3
3
|
export type MantineStyle = CSSProperties;
|
|
4
|
+
export type AlignItems = CSSProperties['alignItems'];
|
|
5
|
+
export type JustifyContent = CSSProperties['justifyContent'];
|
|
6
|
+
export type FlexWrap = CSSProperties['flexWrap'];
|
|
7
|
+
export type FlexDirection = CSSProperties['flexDirection'];
|
|
8
|
+
export type Overflow = CSSProperties['overflow'];
|
|
9
|
+
export type ObjectFit = CSSProperties['objectFit'];
|
|
10
|
+
export type PointerEvents = CSSProperties['pointerEvents'];
|
|
4
11
|
export type MantineClassNames = Record<string, string>;
|
|
5
12
|
export type MantineStyles = Record<string, MantineStyle>;
|
|
6
13
|
export type MantineVars = Record<string, Record<string, string | undefined>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mantine-vue/core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"description": "Vue component foundation architecturally equivalent to @mantine/core",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"vue": "^3.5.0"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
|
-
"@mantine-vue/hooks": "2.
|
|
48
|
-
"@mantine-vue/utils": "2.
|
|
47
|
+
"@mantine-vue/hooks": "2.3.0",
|
|
48
|
+
"@mantine-vue/utils": "2.3.0",
|
|
49
49
|
"vue": "^3.5.0"
|
|
50
50
|
}
|
|
51
51
|
}
|