@mantine/form
Advanced tools
Comparing version 7.6.0-alpha.1 to 7.6.0
export { useForm } from './use-form'; | ||
export { createFormContext } from './FormProvider/FormProvider'; | ||
export { createFormActions } from './actions'; | ||
export { createFormActions } from './actions/index.js'; | ||
export { Form } from './Form/Form'; | ||
export { FORM_INDEX } from './form-index'; | ||
export * from './validators'; | ||
export * from './validators/index.js'; | ||
export { zodResolver } from './resolvers/zod-resolver/zod-resolver'; | ||
@@ -8,0 +8,0 @@ export { superstructResolver } from './resolvers/superstruct-resolver/superstruct-resolver'; |
@@ -47,3 +47,4 @@ export type GetInputPropsType = 'input' | 'checkbox'; | ||
export type GetInputProps<Values> = <Field extends LooseKeys<Values>>(path: Field, options?: GetInputPropsOptions) => GetInputPropsReturnType; | ||
export type SetFieldValue<Values> = <Field extends LooseKeys<Values>>(path: Field, value: Field extends keyof Values ? Values[Field] : unknown) => void; | ||
export type PathValue<T, P extends LooseKeys<T>> = P extends `${infer K}.${infer Rest}` ? K extends keyof T ? PathValue<T[K], Rest> : unknown : P extends keyof T ? T[P] : unknown; | ||
export type SetFieldValue<Values> = <Field extends LooseKeys<Values>>(path: Field, value: PathValue<Values, Field> | ((prevValue: PathValue<Values, Field>) => PathValue<Values, Field>)) => void; | ||
export type ClearFieldError = (path: unknown) => void; | ||
@@ -50,0 +51,0 @@ export type ClearFieldDirty = (path: unknown) => void; |
{ | ||
"name": "@mantine/form", | ||
"version": "7.6.0-alpha.1", | ||
"version": "7.6.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
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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
377705
2173
0