@mantine/core 8.0.0-alpha.3 → 8.0.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/components/Drawer/DrawerRoot.cjs +2 -0
- package/cjs/components/Drawer/DrawerRoot.cjs.map +1 -1
- package/cjs/components/Modal/ModalRoot.cjs +2 -0
- package/cjs/components/Modal/ModalRoot.cjs.map +1 -1
- package/cjs/components/NavLink/NavLink.cjs +2 -2
- package/cjs/components/NavLink/NavLink.cjs.map +1 -1
- package/cjs/components/NumberInput/NumberInput.cjs +12 -5
- package/cjs/components/NumberInput/NumberInput.cjs.map +1 -1
- package/cjs/components/Select/Select.cjs +5 -0
- package/cjs/components/Select/Select.cjs.map +1 -1
- package/esm/components/Drawer/DrawerRoot.mjs +2 -0
- package/esm/components/Drawer/DrawerRoot.mjs.map +1 -1
- package/esm/components/Modal/ModalRoot.mjs +2 -0
- package/esm/components/Modal/ModalRoot.mjs.map +1 -1
- package/esm/components/NavLink/NavLink.mjs +2 -2
- package/esm/components/NavLink/NavLink.mjs.map +1 -1
- package/esm/components/NumberInput/NumberInput.mjs +12 -5
- package/esm/components/NumberInput/NumberInput.mjs.map +1 -1
- package/esm/components/Select/Select.mjs +5 -0
- package/esm/components/Select/Select.mjs.map +1 -1
- package/lib/components/Input/use-input-props.d.ts +26 -26
- package/lib/components/Table/index.d.ts +1 -0
- package/lib/core/MantineProvider/use-mantine-color-scheme/use-computed-color-scheme.d.ts +1 -1
- package/package.json +3 -3
- package/styles/ModalBase.css +1 -1
- package/styles/ModalBase.layer.css +1 -1
- package/styles/Table.css +1 -1
- package/styles/Table.layer.css +1 -1
- package/styles.css +2 -2
- package/styles.layer.css +2 -2
- package/cjs/core/MantineProvider/suppress-nextjs-warning.cjs +0 -14
- package/cjs/core/MantineProvider/suppress-nextjs-warning.cjs.map +0 -1
- package/esm/core/MantineProvider/suppress-nextjs-warning.mjs +0 -12
- package/esm/core/MantineProvider/suppress-nextjs-warning.mjs.map +0 -1
- package/lib/core/MantineProvider/suppress-nextjs-warning.d.ts +0 -1
|
@@ -8,18 +8,23 @@ 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]>; }, "
|
|
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" | "mod" | "error" | "description" | "__staticSelector" | "required" | "__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;
|
|
15
15
|
wrapperProps: {
|
|
16
|
-
color?: string | undefined;
|
|
17
16
|
children?: import("react").ReactNode | undefined;
|
|
18
|
-
|
|
17
|
+
onKeyDown?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
18
|
+
dir?: string | undefined;
|
|
19
19
|
slot?: string | undefined;
|
|
20
|
+
style: import("react").CSSProperties | ((theme: import("../../core").MantineTheme) => import("../../core").CSSProperties) | import("../../core").MantineStyleProp[] | undefined;
|
|
20
21
|
title?: string | undefined;
|
|
22
|
+
popover?: "" | "auto" | "manual" | undefined;
|
|
23
|
+
hidden?: boolean | undefined;
|
|
24
|
+
color?: string | undefined;
|
|
25
|
+
content?: string | undefined;
|
|
26
|
+
translate?: "yes" | "no" | undefined;
|
|
21
27
|
key?: import("react").Key | null | undefined;
|
|
22
|
-
onChange?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
23
28
|
defaultChecked?: boolean | undefined;
|
|
24
29
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
25
30
|
suppressContentEditableWarning?: boolean | undefined;
|
|
@@ -28,22 +33,18 @@ export declare function useInputProps<T extends BaseProps, U extends Partial<T>>
|
|
|
28
33
|
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {});
|
|
29
34
|
autoFocus?: boolean | undefined;
|
|
30
35
|
className: string | undefined;
|
|
31
|
-
contentEditable?: (boolean | "
|
|
36
|
+
contentEditable?: (boolean | "false" | "true") | "inherit" | "plaintext-only" | undefined;
|
|
32
37
|
contextMenu?: string | undefined;
|
|
33
|
-
|
|
34
|
-
draggable?: (boolean | "true" | "false") | undefined;
|
|
38
|
+
draggable?: (boolean | "false" | "true") | undefined;
|
|
35
39
|
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
|
|
36
|
-
hidden?: boolean | undefined;
|
|
37
40
|
id: string | undefined;
|
|
38
41
|
lang?: string | undefined;
|
|
39
42
|
nonce?: string | undefined;
|
|
40
|
-
spellCheck?: (boolean | "
|
|
43
|
+
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
41
44
|
tabIndex?: number | undefined;
|
|
42
|
-
translate?: "yes" | "no" | undefined;
|
|
43
45
|
radioGroup?: string | undefined;
|
|
44
46
|
role?: import("react").AriaRole | undefined;
|
|
45
47
|
about?: string | undefined;
|
|
46
|
-
content?: string | undefined;
|
|
47
48
|
datatype?: string | undefined;
|
|
48
49
|
inlist?: any;
|
|
49
50
|
prefix?: string | undefined;
|
|
@@ -63,18 +64,17 @@ export declare function useInputProps<T extends BaseProps, U extends Partial<T>>
|
|
|
63
64
|
results?: number | undefined;
|
|
64
65
|
security?: string | undefined;
|
|
65
66
|
unselectable?: "on" | "off" | undefined;
|
|
66
|
-
popover?: "" | "auto" | "manual" | undefined;
|
|
67
67
|
popoverTargetAction?: "toggle" | "show" | "hide" | undefined;
|
|
68
68
|
popoverTarget?: string | undefined;
|
|
69
69
|
inert?: boolean | undefined;
|
|
70
70
|
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
|
|
71
71
|
is?: string | undefined;
|
|
72
72
|
"aria-activedescendant"?: string | undefined;
|
|
73
|
-
"aria-atomic"?: (boolean | "
|
|
73
|
+
"aria-atomic"?: (boolean | "false" | "true") | undefined;
|
|
74
74
|
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
|
|
75
75
|
"aria-braillelabel"?: string | undefined;
|
|
76
76
|
"aria-brailleroledescription"?: string | undefined;
|
|
77
|
-
"aria-busy"?: (boolean | "
|
|
77
|
+
"aria-busy"?: (boolean | "false" | "true") | undefined;
|
|
78
78
|
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
79
79
|
"aria-colcount"?: number | undefined;
|
|
80
80
|
"aria-colindex"?: number | undefined;
|
|
@@ -85,37 +85,37 @@ export declare function useInputProps<T extends BaseProps, U extends Partial<T>>
|
|
|
85
85
|
"aria-describedby"?: string | undefined;
|
|
86
86
|
"aria-description"?: string | undefined;
|
|
87
87
|
"aria-details"?: string | undefined;
|
|
88
|
-
"aria-disabled"?: (boolean | "
|
|
88
|
+
"aria-disabled"?: (boolean | "false" | "true") | undefined;
|
|
89
89
|
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
|
|
90
90
|
"aria-errormessage"?: string | undefined;
|
|
91
|
-
"aria-expanded"?: (boolean | "
|
|
91
|
+
"aria-expanded"?: (boolean | "false" | "true") | undefined;
|
|
92
92
|
"aria-flowto"?: string | undefined;
|
|
93
|
-
"aria-grabbed"?: (boolean | "
|
|
93
|
+
"aria-grabbed"?: (boolean | "false" | "true") | undefined;
|
|
94
94
|
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
|
|
95
|
-
"aria-hidden"?: (boolean | "
|
|
95
|
+
"aria-hidden"?: (boolean | "false" | "true") | undefined;
|
|
96
96
|
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
97
97
|
"aria-keyshortcuts"?: string | undefined;
|
|
98
98
|
"aria-label"?: string | undefined;
|
|
99
99
|
"aria-labelledby"?: string | undefined;
|
|
100
100
|
"aria-level"?: number | undefined;
|
|
101
101
|
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
102
|
-
"aria-modal"?: (boolean | "
|
|
103
|
-
"aria-multiline"?: (boolean | "
|
|
104
|
-
"aria-multiselectable"?: (boolean | "
|
|
102
|
+
"aria-modal"?: (boolean | "false" | "true") | undefined;
|
|
103
|
+
"aria-multiline"?: (boolean | "false" | "true") | undefined;
|
|
104
|
+
"aria-multiselectable"?: (boolean | "false" | "true") | undefined;
|
|
105
105
|
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
106
106
|
"aria-owns"?: string | undefined;
|
|
107
107
|
"aria-placeholder"?: string | undefined;
|
|
108
108
|
"aria-posinset"?: number | undefined;
|
|
109
109
|
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
110
|
-
"aria-readonly"?: (boolean | "
|
|
110
|
+
"aria-readonly"?: (boolean | "false" | "true") | undefined;
|
|
111
111
|
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
|
|
112
|
-
"aria-required"?: (boolean | "
|
|
112
|
+
"aria-required"?: (boolean | "false" | "true") | undefined;
|
|
113
113
|
"aria-roledescription"?: string | undefined;
|
|
114
114
|
"aria-rowcount"?: number | undefined;
|
|
115
115
|
"aria-rowindex"?: number | undefined;
|
|
116
116
|
"aria-rowindextext"?: string | undefined;
|
|
117
117
|
"aria-rowspan"?: number | undefined;
|
|
118
|
-
"aria-selected"?: (boolean | "
|
|
118
|
+
"aria-selected"?: (boolean | "false" | "true") | undefined;
|
|
119
119
|
"aria-setsize"?: number | undefined;
|
|
120
120
|
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
121
121
|
"aria-valuemax"?: number | undefined;
|
|
@@ -141,6 +141,7 @@ export declare function useInputProps<T extends BaseProps, U extends Partial<T>>
|
|
|
141
141
|
onFocusCapture?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
|
|
142
142
|
onBlur?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
|
|
143
143
|
onBlurCapture?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
|
|
144
|
+
onChange?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
144
145
|
onChangeCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
145
146
|
onBeforeInput?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
146
147
|
onBeforeInputCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
@@ -156,7 +157,6 @@ export declare function useInputProps<T extends BaseProps, U extends Partial<T>>
|
|
|
156
157
|
onLoadCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
157
158
|
onError?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
158
159
|
onErrorCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
159
|
-
onKeyDown?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
160
160
|
onKeyDownCapture?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
161
161
|
onKeyPress?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
162
162
|
onKeyPressCapture?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
@@ -306,7 +306,7 @@ export declare function useInputProps<T extends BaseProps, U extends Partial<T>>
|
|
|
306
306
|
styles: Partial<Record<string, import("../../core").CSSProperties>> | ((theme: import("../../core").MantineTheme, props: any, ctx: unknown) => Partial<Record<string, import("../../core").CSSProperties>>) | undefined;
|
|
307
307
|
size: (string & {}) | import("../../core").MantineSize | undefined;
|
|
308
308
|
inputContainer: ((children: React.ReactNode) => React.ReactNode) | undefined;
|
|
309
|
-
inputWrapperOrder: ("input" | "label" | "
|
|
309
|
+
inputWrapperOrder: ("input" | "label" | "error" | "description")[] | undefined;
|
|
310
310
|
withAsterisk: boolean | undefined;
|
|
311
311
|
variant: string | undefined;
|
|
312
312
|
mod: import("../../core").BoxMod | undefined;
|
|
@@ -3,3 +3,4 @@ export { TableCaption, TableTbody, TableTd, TableTfoot, TableTr, TableTh, TableT
|
|
|
3
3
|
export { TableScrollContainer } from './TableScrollContainer';
|
|
4
4
|
export type { TableProps, TableStylesNames, TableCssVariables, TableFactory, TableData, } from './Table';
|
|
5
5
|
export type { TableTbodyProps, TableTdProps, TableThProps, TableTrProps, TableCaptionProps, TableTfootProps, TableTheadProps, } from './Table.components';
|
|
6
|
+
export type { TableScrollContainerProps } from './TableScrollContainer';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { UseMediaQueryOptions } from '@mantine/hooks';
|
|
2
|
-
export declare function useComputedColorScheme(defaultValue?: 'light' | 'dark', options?: UseMediaQueryOptions): "
|
|
2
|
+
export declare function useComputedColorScheme(defaultValue?: 'light' | 'dark', options?: UseMediaQueryOptions): "light" | "dark";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mantine/core",
|
|
3
|
-
"version": "8.0.0
|
|
3
|
+
"version": "8.0.0",
|
|
4
4
|
"description": "React components library focused on usability, accessibility and developer experience",
|
|
5
5
|
"homepage": "https://mantine.dev/",
|
|
6
6
|
"license": "MIT",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"directory": "packages/@mantine/core"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"@mantine/hooks": "8.0.0
|
|
46
|
+
"@mantine/hooks": "8.0.0",
|
|
47
47
|
"react": "^18.x || ^19.x",
|
|
48
48
|
"react-dom": "^18.x || ^19.x"
|
|
49
49
|
},
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"clsx": "^2.1.1",
|
|
53
53
|
"react-number-format": "^5.4.3",
|
|
54
54
|
"react-remove-scroll": "^2.6.2",
|
|
55
|
-
"react-textarea-autosize": "8.5.
|
|
55
|
+
"react-textarea-autosize": "8.5.9",
|
|
56
56
|
"type-fest": "^4.27.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
package/styles/ModalBase.css
CHANGED
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
z-index: 1001;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
.m_fd1ab0aa:has([data-mantine-scrollbar][data-state='visible']) .m_b5489c3c {
|
|
41
|
+
[data-offset-scrollbars] .m_fd1ab0aa:has([data-mantine-scrollbar][data-state='visible']) .m_b5489c3c {
|
|
42
42
|
padding-inline-end: calc(var(--mb-padding, var(--mantine-spacing-md)) + calc(0.3125rem * var(--mantine-scale)));
|
|
43
43
|
}
|
|
44
44
|
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
z-index: 1001;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
.m_fd1ab0aa:has([data-mantine-scrollbar][data-state='visible']) .m_b5489c3c {
|
|
41
|
+
[data-offset-scrollbars] .m_fd1ab0aa:has([data-mantine-scrollbar][data-state='visible']) .m_b5489c3c {
|
|
42
42
|
padding-inline-end: calc(var(--mb-padding, var(--mantine-spacing-md)) + calc(0.3125rem * var(--mantine-scale)));
|
|
43
43
|
}
|
|
44
44
|
|
package/styles/Table.css
CHANGED
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
position: sticky;
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
-
.m_b242d975:where([data-sticky]) .m_4e7aa4f3 {
|
|
107
|
+
.m_b242d975:where([data-sticky]) :where(.m_4e7aa4f3) {
|
|
108
108
|
position: sticky;
|
|
109
109
|
top: var(--table-sticky-header-offset, 0);
|
|
110
110
|
background-color: var(--mantine-color-body);
|
package/styles/Table.layer.css
CHANGED
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
position: sticky;
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
-
.m_b242d975:where([data-sticky]) .m_4e7aa4f3 {
|
|
107
|
+
.m_b242d975:where([data-sticky]) :where(.m_4e7aa4f3) {
|
|
108
108
|
position: sticky;
|
|
109
109
|
top: var(--table-sticky-header-offset, 0);
|
|
110
110
|
background-color: var(--mantine-color-body);
|
package/styles.css
CHANGED
|
@@ -1311,7 +1311,7 @@ fieldset:disabled .mantine-active:active {
|
|
|
1311
1311
|
z-index: 1001;
|
|
1312
1312
|
}
|
|
1313
1313
|
|
|
1314
|
-
.m_fd1ab0aa:has([data-mantine-scrollbar][data-state='visible']) .m_b5489c3c {
|
|
1314
|
+
[data-offset-scrollbars] .m_fd1ab0aa:has([data-mantine-scrollbar][data-state='visible']) .m_b5489c3c {
|
|
1315
1315
|
padding-inline-end: calc(var(--mb-padding, var(--mantine-spacing-md)) + calc(0.3125rem * var(--mantine-scale)));
|
|
1316
1316
|
}
|
|
1317
1317
|
|
|
@@ -6801,7 +6801,7 @@ fieldset:disabled .m_c9ade57f:where([data-inverted]),
|
|
|
6801
6801
|
position: sticky;
|
|
6802
6802
|
}
|
|
6803
6803
|
|
|
6804
|
-
.m_b242d975:where([data-sticky]) .m_4e7aa4f3 {
|
|
6804
|
+
.m_b242d975:where([data-sticky]) :where(.m_4e7aa4f3) {
|
|
6805
6805
|
position: sticky;
|
|
6806
6806
|
top: var(--table-sticky-header-offset, 0);
|
|
6807
6807
|
background-color: var(--mantine-color-body);
|
package/styles.layer.css
CHANGED
|
@@ -1311,7 +1311,7 @@ fieldset:disabled .mantine-active:active {
|
|
|
1311
1311
|
z-index: 1001;
|
|
1312
1312
|
}
|
|
1313
1313
|
|
|
1314
|
-
.m_fd1ab0aa:has([data-mantine-scrollbar][data-state='visible']) .m_b5489c3c {
|
|
1314
|
+
[data-offset-scrollbars] .m_fd1ab0aa:has([data-mantine-scrollbar][data-state='visible']) .m_b5489c3c {
|
|
1315
1315
|
padding-inline-end: calc(var(--mb-padding, var(--mantine-spacing-md)) + calc(0.3125rem * var(--mantine-scale)));
|
|
1316
1316
|
}
|
|
1317
1317
|
|
|
@@ -6801,7 +6801,7 @@ fieldset:disabled .m_c9ade57f:where([data-inverted]),
|
|
|
6801
6801
|
position: sticky;
|
|
6802
6802
|
}
|
|
6803
6803
|
|
|
6804
|
-
.m_b242d975:where([data-sticky]) .m_4e7aa4f3 {
|
|
6804
|
+
.m_b242d975:where([data-sticky]) :where(.m_4e7aa4f3) {
|
|
6805
6805
|
position: sticky;
|
|
6806
6806
|
top: var(--table-sticky-header-offset, 0);
|
|
6807
6807
|
background-color: var(--mantine-color-body);
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
'use strict';
|
|
3
|
-
|
|
4
|
-
function suppressNextjsWarning() {
|
|
5
|
-
const originalError = console.error;
|
|
6
|
-
console.error = (...args) => {
|
|
7
|
-
if (args.length > 1 && typeof args[0] === "string" && args[0].toLowerCase().includes("extra attributes from the server") && typeof args[1] === "string" && args[1].toLowerCase().includes("data-mantine-color-scheme")) ; else {
|
|
8
|
-
originalError(...args);
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
exports.suppressNextjsWarning = suppressNextjsWarning;
|
|
14
|
-
//# sourceMappingURL=suppress-nextjs-warning.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"suppress-nextjs-warning.cjs","sources":["../../../src/core/MantineProvider/suppress-nextjs-warning.ts"],"sourcesContent":["/* eslint-disable no-console */\nexport function suppressNextjsWarning() {\n const originalError = console.error;\n\n console.error = (...args) => {\n if (\n args.length > 1 &&\n typeof args[0] === 'string' &&\n args[0].toLowerCase().includes('extra attributes from the server') &&\n typeof args[1] === 'string' &&\n args[1].toLowerCase().includes('data-mantine-color-scheme')\n ) {\n // Suppress the warning\n } else {\n originalError(...args);\n }\n };\n}\n"],"names":[],"mappings":";;;AACO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,qBAAwB,CAAA,CAAA,CAAA,CAAA;AACtC,CAAA,CAAA,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAgB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAE9B,CAAA,CAAQ,OAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,GAAQ,IAAI,IAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAC3B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CACE,IAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,GAAS,CACd,CAAA,CAAA,CAAA,CAAA,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,CAAA,CAAC,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CACnB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,CAAA,CAAC,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAc,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,kCAAkC,CAAA,CAAA,CAAA,CAAA,CACjE,OAAO,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CACnB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAA,CAAE,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAA,CAA2B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAC1D,CAAA,CAAA,CAEK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACL,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAc,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAA,CAAA;AAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACvB,CACF,CAAA,CAAA,CAAA;AACF,CAAA;;"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
function suppressNextjsWarning() {
|
|
3
|
-
const originalError = console.error;
|
|
4
|
-
console.error = (...args) => {
|
|
5
|
-
if (args.length > 1 && typeof args[0] === "string" && args[0].toLowerCase().includes("extra attributes from the server") && typeof args[1] === "string" && args[1].toLowerCase().includes("data-mantine-color-scheme")) ; else {
|
|
6
|
-
originalError(...args);
|
|
7
|
-
}
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export { suppressNextjsWarning };
|
|
12
|
-
//# sourceMappingURL=suppress-nextjs-warning.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"suppress-nextjs-warning.mjs","sources":["../../../src/core/MantineProvider/suppress-nextjs-warning.ts"],"sourcesContent":["/* eslint-disable no-console */\nexport function suppressNextjsWarning() {\n const originalError = console.error;\n\n console.error = (...args) => {\n if (\n args.length > 1 &&\n typeof args[0] === 'string' &&\n args[0].toLowerCase().includes('extra attributes from the server') &&\n typeof args[1] === 'string' &&\n args[1].toLowerCase().includes('data-mantine-color-scheme')\n ) {\n // Suppress the warning\n } else {\n originalError(...args);\n }\n };\n}\n"],"names":[],"mappings":";AACO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,qBAAwB,CAAA,CAAA,CAAA,CAAA;AACtC,CAAA,CAAA,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAgB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAE9B,CAAA,CAAQ,OAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,GAAQ,IAAI,IAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAC3B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CACE,IAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,GAAS,CACd,CAAA,CAAA,CAAA,CAAA,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,CAAA,CAAC,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CACnB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,CAAA,CAAC,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAc,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,kCAAkC,CAAA,CAAA,CAAA,CAAA,CACjE,OAAO,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CACnB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAA,CAAE,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAA,CAA2B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAC1D,CAAA,CAAA,CAEK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACL,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAc,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAA,CAAA;AAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACvB,CACF,CAAA,CAAA,CAAA;AACF,CAAA;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function suppressNextjsWarning(): void;
|