@mantine/core 7.13.5-alpha.2 → 7.13.5
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/lib/components/Input/use-input-props.d.ts +4 -4
- 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/lib/core/MantineProvider/use-mantine-color-scheme/use-computed-color-scheme.d.ts +1 -1
- package/package.json +2 -2
|
@@ -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]>; }, "
|
|
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;
|
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 {};
|
|
@@ -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": "7.13.5
|
|
3
|
+
"version": "7.13.5",
|
|
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": "7.13.5
|
|
46
|
+
"@mantine/hooks": "7.13.5",
|
|
47
47
|
"react": "^18.x || ^19.x",
|
|
48
48
|
"react-dom": "^18.x || ^19.x"
|
|
49
49
|
},
|