@mantine/core 7.14.2-alpha.0 → 7.14.2
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/components/FileInput/FileInput.cjs +19 -1
- package/cjs/components/FileInput/FileInput.cjs.map +1 -1
- package/cjs/components/Floating/FloatingArrow/get-arrow-position-styles.cjs +8 -4
- package/cjs/components/Floating/FloatingArrow/get-arrow-position-styles.cjs.map +1 -1
- package/cjs/components/ModalBase/ModalBase.cjs +4 -0
- package/cjs/components/ModalBase/ModalBase.cjs.map +1 -1
- package/cjs/components/ModalBase/ModalBase.context.cjs.map +1 -1
- package/cjs/components/ModalBase/ModalBaseContent.cjs +8 -0
- package/cjs/components/ModalBase/ModalBaseContent.cjs.map +1 -1
- package/cjs/components/PasswordInput/PasswordInput.cjs +1 -1
- package/cjs/components/PasswordInput/PasswordInput.cjs.map +1 -1
- package/cjs/components/Popover/Popover.cjs +11 -1
- package/cjs/components/Popover/Popover.cjs.map +1 -1
- package/cjs/core/MantineProvider/use-mantine-color-scheme/use-provider-color-scheme.cjs +5 -2
- package/cjs/core/MantineProvider/use-mantine-color-scheme/use-provider-color-scheme.cjs.map +1 -1
- package/esm/components/FileInput/FileInput.mjs +19 -1
- package/esm/components/FileInput/FileInput.mjs.map +1 -1
- package/esm/components/Floating/FloatingArrow/get-arrow-position-styles.mjs +8 -4
- package/esm/components/Floating/FloatingArrow/get-arrow-position-styles.mjs.map +1 -1
- package/esm/components/ModalBase/ModalBase.context.mjs.map +1 -1
- package/esm/components/ModalBase/ModalBase.mjs +4 -0
- package/esm/components/ModalBase/ModalBase.mjs.map +1 -1
- package/esm/components/ModalBase/ModalBaseContent.mjs +8 -0
- package/esm/components/ModalBase/ModalBaseContent.mjs.map +1 -1
- package/esm/components/PasswordInput/PasswordInput.mjs +1 -1
- package/esm/components/PasswordInput/PasswordInput.mjs.map +1 -1
- package/esm/components/Popover/Popover.mjs +11 -1
- package/esm/components/Popover/Popover.mjs.map +1 -1
- package/esm/core/MantineProvider/use-mantine-color-scheme/use-provider-color-scheme.mjs +5 -2
- package/esm/core/MantineProvider/use-mantine-color-scheme/use-provider-color-scheme.mjs.map +1 -1
- package/lib/components/FileInput/FileInput.d.ts +2 -2
- package/lib/components/Input/use-input-props.d.ts +4 -4
- package/lib/components/ModalBase/ModalBase.context.d.ts +2 -0
- package/lib/components/ModalBase/ModalBase.d.ts +4 -0
- package/lib/components/Popover/Popover.d.ts +4 -0
- package/lib/core/Box/Box.d.ts +1 -1
- package/lib/core/MantineProvider/color-functions/get-contrast-color/get-contrast-color.d.ts +2 -2
- package/package.json +5 -5
- package/styles/TypographyStylesProvider.css +2 -4
- package/styles/TypographyStylesProvider.layer.css +2 -4
- package/styles.css +2 -4
- package/styles.layer.css +2 -4
- package/lib/core/types.d.ts +0 -3
- package/styles/baseline.css +0 -36
- package/styles/baseline.layer.css +0 -37
- package/styles/default-css-variables.css +0 -499
- package/styles/default-css-variables.layer.css +0 -500
|
@@ -8,7 +8,7 @@ interface BaseProps extends __BaseInputProps, BoxProps, StylesApiProps<{
|
|
|
8
8
|
__stylesApiProps?: Record<string, any>;
|
|
9
9
|
id?: string;
|
|
10
10
|
}
|
|
11
|
-
export declare function useInputProps<T extends BaseProps, U extends Partial<T>>(component: string, defaultProps: U, _props: T): Omit<T & { [Key in Extract<keyof T, never>]-?: {}[Key] | NonNullable<T[Key]>; }, "style" | "
|
|
11
|
+
export declare function useInputProps<T extends BaseProps, U extends Partial<T>>(component: string, defaultProps: U, _props: T): Omit<T & { [Key in Extract<keyof T, never>]-?: {}[Key] | NonNullable<T[Key]>; }, "label" | "style" | "size" | "styles" | "className" | "id" | "vars" | "variant" | "unstyled" | "classNames" | "required" | "mod" | "error" | "description" | "__staticSelector" | "__stylesApiProps" | "withAsterisk" | "labelProps" | "descriptionProps" | "errorProps" | "inputContainer" | "inputWrapperOrder" | "wrapperProps"> & {
|
|
12
12
|
classNames: Partial<Record<string, string>> | ((theme: import("../../core").MantineTheme, props: any, ctx: unknown) => Partial<Record<string, string>>) | undefined;
|
|
13
13
|
styles: Partial<Record<string, import("../../core").CSSProperties>> | ((theme: import("../../core").MantineTheme, props: any, ctx: unknown) => Partial<Record<string, import("../../core").CSSProperties>>) | undefined;
|
|
14
14
|
unstyled: boolean | undefined;
|
|
@@ -26,10 +26,10 @@ export declare function useInputProps<T extends BaseProps, U extends Partial<T>>
|
|
|
26
26
|
descriptionProps: Record<string, any> | undefined;
|
|
27
27
|
unstyled: boolean | undefined;
|
|
28
28
|
styles: Partial<Record<string, import("../../core").CSSProperties>> | ((theme: import("../../core").MantineTheme, props: any, ctx: unknown) => Partial<Record<string, import("../../core").CSSProperties>>) | undefined;
|
|
29
|
-
size: import("../../core").MantineSize |
|
|
29
|
+
size: (string & {}) | import("../../core").MantineSize | undefined;
|
|
30
30
|
style: import("../../core").MantineStyleProp;
|
|
31
31
|
inputContainer: ((children: React.ReactNode) => React.ReactNode) | undefined;
|
|
32
|
-
inputWrapperOrder: ("input" | "label" | "
|
|
32
|
+
inputWrapperOrder: ("input" | "label" | "error" | "description")[] | undefined;
|
|
33
33
|
withAsterisk: boolean | undefined;
|
|
34
34
|
variant: string | undefined;
|
|
35
35
|
id: string | undefined;
|
|
@@ -40,7 +40,7 @@ export declare function useInputProps<T extends BaseProps, U extends Partial<T>>
|
|
|
40
40
|
classNames: Partial<Record<string, string>> | ((theme: import("../../core").MantineTheme, props: any, ctx: unknown) => Partial<Record<string, string>>) | undefined;
|
|
41
41
|
styles: Partial<Record<string, import("../../core").CSSProperties>> | ((theme: import("../../core").MantineTheme, props: any, ctx: unknown) => Partial<Record<string, import("../../core").CSSProperties>>) | undefined;
|
|
42
42
|
unstyled: boolean | undefined;
|
|
43
|
-
size: import("../../core").MantineSize |
|
|
43
|
+
size: (string & {}) | import("../../core").MantineSize | undefined;
|
|
44
44
|
__staticSelector: string | undefined;
|
|
45
45
|
__stylesApiProps: Record<string, any>;
|
|
46
46
|
error: import("react").ReactNode;
|
|
@@ -8,6 +8,8 @@ interface ModalBaseContextValue {
|
|
|
8
8
|
getTitleId: () => string;
|
|
9
9
|
getBodyId: () => string;
|
|
10
10
|
transitionProps: Partial<TransitionOverride> | undefined;
|
|
11
|
+
onExitTransitionEnd: (() => void) | undefined;
|
|
12
|
+
onEnterTransitionEnd: (() => void) | undefined;
|
|
11
13
|
zIndex: string | number | undefined;
|
|
12
14
|
opened: boolean;
|
|
13
15
|
onClose: () => void;
|
|
@@ -27,6 +27,10 @@ export interface ModalBaseProps extends BoxProps, ElementProps<'div', 'title'> {
|
|
|
27
27
|
closeOnClickOutside?: boolean;
|
|
28
28
|
/** Props added to the `Transition` component that used to animate overlay and body, use to configure duration and animation type, `{ duration: 200, transition: 'pop' }` by default */
|
|
29
29
|
transitionProps?: TransitionOverride;
|
|
30
|
+
/** Called when exit transition ends */
|
|
31
|
+
onExitTransitionEnd?: () => void;
|
|
32
|
+
/** Called when enter transition ends */
|
|
33
|
+
onEnterTransitionEnd?: () => void;
|
|
30
34
|
/** Determines whether `onClose` should be called when user presses the escape key, `true` by default */
|
|
31
35
|
closeOnEscape?: boolean;
|
|
32
36
|
/** Determines whether focus should be returned to the last active element when `onClose` is called, `true` by default */
|
|
@@ -24,6 +24,10 @@ export interface __PopoverProps {
|
|
|
24
24
|
keepMounted?: boolean;
|
|
25
25
|
/** Props passed down to the `Transition` component that used to animate dropdown presence, use to configure duration and animation type, `{ duration: 150, transition: 'fade' }` by default */
|
|
26
26
|
transitionProps?: TransitionOverride;
|
|
27
|
+
/** Called when exit transition ends */
|
|
28
|
+
onExitTransitionEnd?: () => void;
|
|
29
|
+
/** Called when enter transition ends */
|
|
30
|
+
onEnterTransitionEnd?: () => void;
|
|
27
31
|
/** Dropdown width, or `'target'` to make dropdown width the same as target element, `'max-content'` by default */
|
|
28
32
|
width?: PopoverWidth;
|
|
29
33
|
/** Floating ui middlewares to configure position handling, `{ flip: true, shift: true, inline: false }` by default */
|
package/lib/core/Box/Box.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ export interface BoxComponentProps extends BoxProps {
|
|
|
32
32
|
}
|
|
33
33
|
export declare const Box: (<C = "div">(props: import("../factory").PolymorphicComponentProps<C, BoxComponentProps>) => React.ReactElement) & Omit<import("react").FunctionComponent<(BoxComponentProps & {
|
|
34
34
|
component?: any;
|
|
35
|
-
} & Omit<Omit<any, "ref">, keyof BoxComponentProps
|
|
35
|
+
} & Omit<Omit<any, "ref">, "component" | keyof BoxComponentProps> & {
|
|
36
36
|
ref?: any;
|
|
37
37
|
renderRoot?: (props: any) => any;
|
|
38
38
|
}) | (BoxComponentProps & {
|
|
@@ -4,6 +4,6 @@ interface GetContrastColorInput {
|
|
|
4
4
|
theme: MantineTheme;
|
|
5
5
|
autoContrast?: boolean | undefined | null;
|
|
6
6
|
}
|
|
7
|
-
export declare function getContrastColor({ color, theme, autoContrast }: GetContrastColorInput): "var(--mantine-color-
|
|
8
|
-
export declare function getPrimaryContrastColor(theme: MantineTheme, colorScheme: 'light' | 'dark'): "var(--mantine-color-
|
|
7
|
+
export declare function getContrastColor({ color, theme, autoContrast }: GetContrastColorInput): "var(--mantine-color-black)" | "var(--mantine-color-white)";
|
|
8
|
+
export declare function getPrimaryContrastColor(theme: MantineTheme, colorScheme: 'light' | 'dark'): "var(--mantine-color-black)" | "var(--mantine-color-white)";
|
|
9
9
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mantine/core",
|
|
3
|
-
"version": "7.14.2
|
|
3
|
+
"version": "7.14.2",
|
|
4
4
|
"description": "React components library focused on usability, accessibility and developer experience",
|
|
5
5
|
"homepage": "https://mantine.dev/",
|
|
6
6
|
"license": "MIT",
|
|
@@ -43,17 +43,17 @@
|
|
|
43
43
|
"directory": "packages/@mantine/core"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"@mantine/hooks": "7.14.2
|
|
46
|
+
"@mantine/hooks": "7.14.2",
|
|
47
47
|
"react": "^18.x || ^19.x",
|
|
48
48
|
"react-dom": "^18.x || ^19.x"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@floating-ui/react": "^0.26.
|
|
51
|
+
"@floating-ui/react": "^0.26.28",
|
|
52
52
|
"clsx": "^2.1.1",
|
|
53
53
|
"react-number-format": "^5.4.2",
|
|
54
54
|
"react-remove-scroll": "^2.6.0",
|
|
55
|
-
"react-textarea-autosize": "8.5.
|
|
56
|
-
"type-fest": "^4.
|
|
55
|
+
"react-textarea-autosize": "8.5.5",
|
|
56
|
+
"type-fest": "^4.27.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@mantine-tests/core": "workspace:*",
|
|
@@ -150,11 +150,9 @@
|
|
|
150
150
|
}
|
|
151
151
|
.m_d6493fad :where(ul, ol):not([data-type='taskList']) {
|
|
152
152
|
margin-bottom: var(--mantine-spacing-md);
|
|
153
|
-
padding-inline-start:
|
|
153
|
+
padding-inline-start: var(--mantine-spacing-lg);
|
|
154
|
+
list-style-position: inside;
|
|
154
155
|
}
|
|
155
|
-
.m_d6493fad :where(ul, ol):not([data-type='taskList']) :where(li) {
|
|
156
|
-
margin-bottom: var(--mantine-spacing-xs);
|
|
157
|
-
}
|
|
158
156
|
.m_d6493fad :where(table) {
|
|
159
157
|
width: 100%;
|
|
160
158
|
border-collapse: collapse;
|
|
@@ -150,11 +150,9 @@
|
|
|
150
150
|
}
|
|
151
151
|
.m_d6493fad :where(ul, ol):not([data-type='taskList']) {
|
|
152
152
|
margin-bottom: var(--mantine-spacing-md);
|
|
153
|
-
padding-inline-start:
|
|
153
|
+
padding-inline-start: var(--mantine-spacing-lg);
|
|
154
|
+
list-style-position: inside;
|
|
154
155
|
}
|
|
155
|
-
.m_d6493fad :where(ul, ol):not([data-type='taskList']) :where(li) {
|
|
156
|
-
margin-bottom: var(--mantine-spacing-xs);
|
|
157
|
-
}
|
|
158
156
|
.m_d6493fad :where(table) {
|
|
159
157
|
width: 100%;
|
|
160
158
|
border-collapse: collapse;
|
package/styles.css
CHANGED
|
@@ -7464,11 +7464,9 @@ fieldset:disabled .m_c9ade57f:where([data-inverted]),
|
|
|
7464
7464
|
}
|
|
7465
7465
|
.m_d6493fad :where(ul, ol):not([data-type='taskList']) {
|
|
7466
7466
|
margin-bottom: var(--mantine-spacing-md);
|
|
7467
|
-
padding-inline-start:
|
|
7467
|
+
padding-inline-start: var(--mantine-spacing-lg);
|
|
7468
|
+
list-style-position: inside;
|
|
7468
7469
|
}
|
|
7469
|
-
.m_d6493fad :where(ul, ol):not([data-type='taskList']) :where(li) {
|
|
7470
|
-
margin-bottom: var(--mantine-spacing-xs);
|
|
7471
|
-
}
|
|
7472
7470
|
.m_d6493fad :where(table) {
|
|
7473
7471
|
width: 100%;
|
|
7474
7472
|
border-collapse: collapse;
|
package/styles.layer.css
CHANGED
|
@@ -7464,11 +7464,9 @@ fieldset:disabled .m_c9ade57f:where([data-inverted]),
|
|
|
7464
7464
|
}
|
|
7465
7465
|
.m_d6493fad :where(ul, ol):not([data-type='taskList']) {
|
|
7466
7466
|
margin-bottom: var(--mantine-spacing-md);
|
|
7467
|
-
padding-inline-start:
|
|
7467
|
+
padding-inline-start: var(--mantine-spacing-lg);
|
|
7468
|
+
list-style-position: inside;
|
|
7468
7469
|
}
|
|
7469
|
-
.m_d6493fad :where(ul, ol):not([data-type='taskList']) :where(li) {
|
|
7470
|
-
margin-bottom: var(--mantine-spacing-xs);
|
|
7471
|
-
}
|
|
7472
7470
|
.m_d6493fad :where(table) {
|
|
7473
7471
|
width: 100%;
|
|
7474
7472
|
border-collapse: collapse;
|
package/lib/core/types.d.ts
DELETED
package/styles/baseline.css
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
*,
|
|
2
|
-
*::before,
|
|
3
|
-
*::after {
|
|
4
|
-
box-sizing: border-box;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
input,
|
|
8
|
-
button,
|
|
9
|
-
textarea,
|
|
10
|
-
select {
|
|
11
|
-
font: inherit;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
button,
|
|
15
|
-
select {
|
|
16
|
-
text-transform: none;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
body {
|
|
20
|
-
margin: 0;
|
|
21
|
-
font-family: var(--mantine-font-family);
|
|
22
|
-
font-size: var(--mantine-font-size-md);
|
|
23
|
-
line-height: var(--mantine-line-height);
|
|
24
|
-
background-color: var(--mantine-color-body);
|
|
25
|
-
color: var(--mantine-color-text);
|
|
26
|
-
|
|
27
|
-
-webkit-font-smoothing: var(--mantine-webkit-font-smoothing);
|
|
28
|
-
-moz-osx-font-smoothing: var(--mantine-moz-font-smoothing);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
@media screen and (max-device-width: 31.25em) {
|
|
32
|
-
|
|
33
|
-
body {
|
|
34
|
-
-webkit-text-size-adjust: 100%
|
|
35
|
-
}
|
|
36
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
@layer mantine {*,
|
|
2
|
-
*::before,
|
|
3
|
-
*::after {
|
|
4
|
-
box-sizing: border-box;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
input,
|
|
8
|
-
button,
|
|
9
|
-
textarea,
|
|
10
|
-
select {
|
|
11
|
-
font: inherit;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
button,
|
|
15
|
-
select {
|
|
16
|
-
text-transform: none;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
body {
|
|
20
|
-
margin: 0;
|
|
21
|
-
font-family: var(--mantine-font-family);
|
|
22
|
-
font-size: var(--mantine-font-size-md);
|
|
23
|
-
line-height: var(--mantine-line-height);
|
|
24
|
-
background-color: var(--mantine-color-body);
|
|
25
|
-
color: var(--mantine-color-text);
|
|
26
|
-
|
|
27
|
-
-webkit-font-smoothing: var(--mantine-webkit-font-smoothing);
|
|
28
|
-
-moz-osx-font-smoothing: var(--mantine-moz-font-smoothing);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
@media screen and (max-device-width: 31.25em) {
|
|
32
|
-
|
|
33
|
-
body {
|
|
34
|
-
-webkit-text-size-adjust: 100%
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|