@mantine/core 7.0.0-alpha.7 → 7.0.0-alpha.8

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.
@@ -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]>; }, "label" | "style" | "variant" | "error" | "className" | "id" | "classNames" | "styles" | "vars" | "description" | "size" | "unstyled" | "__staticSelector" | "required" | "__stylesApiProps" | "withAsterisk" | "labelProps" | "descriptionProps" | "errorProps" | "inputContainer" | "inputWrapperOrder" | "wrapperProps"> & {
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" | "variant" | "error" | "className" | "id" | "classNames" | "styles" | "vars" | "description" | "required" | "unstyled" | "__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("react").CSSProperties>> | ((theme: import("../../core").MantineTheme, props: any, ctx: unknown) => Partial<Record<string, import("react").CSSProperties>>) | undefined;
14
14
  unstyled: boolean | undefined;
@@ -17,6 +17,8 @@ export declare function useInputProps<T extends BaseProps, U extends Partial<T>>
17
17
  slot?: string | undefined;
18
18
  style: import("../../core").MantineStyleProp;
19
19
  title?: string | undefined;
20
+ onKeyDown?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
21
+ dir?: string | undefined;
20
22
  color?: string | undefined;
21
23
  key?: import("react").Key | null | undefined;
22
24
  defaultChecked?: boolean | undefined;
@@ -27,7 +29,6 @@ export declare function useInputProps<T extends BaseProps, U extends Partial<T>>
27
29
  className: string | undefined;
28
30
  contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
29
31
  contextMenu?: string | undefined;
30
- dir?: string | undefined;
31
32
  draggable?: (boolean | "true" | "false") | undefined;
32
33
  hidden?: boolean | undefined;
33
34
  id: string;
@@ -58,7 +59,7 @@ export declare function useInputProps<T extends BaseProps, U extends Partial<T>>
58
59
  results?: number | undefined;
59
60
  security?: string | undefined;
60
61
  unselectable?: "on" | "off" | undefined;
61
- inputMode?: "search" | "text" | "none" | "url" | "tel" | "email" | "numeric" | "decimal" | undefined;
62
+ inputMode?: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
62
63
  is?: string | undefined;
63
64
  'aria-activedescendant'?: string | undefined;
64
65
  'aria-atomic'?: (boolean | "true" | "false") | undefined;
@@ -89,7 +90,7 @@ export declare function useInputProps<T extends BaseProps, U extends Partial<T>>
89
90
  'aria-modal'?: (boolean | "true" | "false") | undefined;
90
91
  'aria-multiline'?: (boolean | "true" | "false") | undefined;
91
92
  'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
92
- 'aria-orientation'?: "horizontal" | "vertical" | undefined;
93
+ 'aria-orientation'?: "vertical" | "horizontal" | undefined;
93
94
  'aria-owns'?: string | undefined;
94
95
  'aria-placeholder'?: string | undefined;
95
96
  'aria-posinset'?: number | undefined;
@@ -103,7 +104,7 @@ export declare function useInputProps<T extends BaseProps, U extends Partial<T>>
103
104
  'aria-rowspan'?: number | undefined;
104
105
  'aria-selected'?: (boolean | "true" | "false") | undefined;
105
106
  'aria-setsize'?: number | undefined;
106
- 'aria-sort'?: "other" | "none" | "ascending" | "descending" | undefined;
107
+ 'aria-sort'?: "none" | "other" | "ascending" | "descending" | undefined;
107
108
  'aria-valuemax'?: number | undefined;
108
109
  'aria-valuemin'?: number | undefined;
109
110
  'aria-valuenow'?: number | undefined;
@@ -143,7 +144,6 @@ export declare function useInputProps<T extends BaseProps, U extends Partial<T>>
143
144
  onLoadCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
144
145
  onError?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
145
146
  onErrorCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
146
- onKeyDown?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
147
147
  onKeyDownCapture?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
148
148
  onKeyPress?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
149
149
  onKeyPressCapture?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
package/package.json CHANGED
@@ -1,13 +1,20 @@
1
1
  {
2
2
  "name": "@mantine/core",
3
3
  "description": "React components library focused on usability, accessibility and developer experience",
4
- "version": "7.0.0-alpha.7",
5
- "main": "cjs/index.js",
6
- "module": "esm/index.js",
7
- "types": "lib/index.d.ts",
4
+ "version": "7.0.0-alpha.8",
5
+ "exports": {
6
+ ".": {
7
+ "import": "./esm/index.js",
8
+ "require": "./cjs/index.js",
9
+ "types": "./lib/index.d.ts"
10
+ },
11
+ "./styles.css": "./esm/index.css"
12
+ },
8
13
  "license": "MIT",
9
14
  "author": "Vitaly Rtishchev <rtivital@gmail.com>",
10
- "sideEffects": false,
15
+ "sideEffects": [
16
+ "*.css"
17
+ ],
11
18
  "homepage": "https://mantine.dev/",
12
19
  "repository": {
13
20
  "url": "https://github.com/mantinedev/mantine.git",
@@ -26,7 +33,7 @@
26
33
  "design"
27
34
  ],
28
35
  "peerDependencies": {
29
- "@mantine/hooks": "7.0.0-alpha.7",
36
+ "@mantine/hooks": "7.0.0-alpha.8",
30
37
  "react": ">=16.8.0",
31
38
  "react-dom": ">=16.8.0"
32
39
  },