@mantine/form
Advanced tools
Comparing version 7.9.2 to 7.10.0
@@ -6,1 +6,2 @@ export { getPath } from './get-path'; | ||
export { removePath } from './remove-path'; | ||
export { getDataPath } from './get-data-path'; |
@@ -80,2 +80,3 @@ export type GetInputPropsType = 'input' | 'checkbox'; | ||
export type Key<Values> = <Field extends LooseKeys<Values>>(path: Field) => string; | ||
export type GetInputNode<Values> = <NodeType extends HTMLElement, Field extends LooseKeys<Values>>(path: Field) => NodeType | null; | ||
export interface UseFormInput<Values, TransformValues extends _TransformValues<Values> = (values: Values) => Values> { | ||
@@ -135,2 +136,3 @@ name?: string; | ||
key: Key<Values>; | ||
getInputNode: GetInputNode<Values>; | ||
} | ||
@@ -137,0 +139,0 @@ export type UseForm<Values = Record<string, unknown>, TransformValues extends _TransformValues<Values> = (values: Values) => Values> = (input?: UseFormInput<Values, TransformValues>) => UseFormReturnType<Values, TransformValues>; |
{ | ||
"name": "@mantine/form", | ||
"version": "7.9.2", | ||
"version": "7.10.0", | ||
"description": "Mantine form management library", | ||
@@ -5,0 +5,0 @@ "homepage": "https://mantine.dev", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
560071
201
3142