Socket
Socket
Sign inDemoInstall

@mantine/form

Package Overview
Dependencies
Maintainers
1
Versions
217
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mantine/form - npm Package Compare versions

Comparing version 7.6.0-alpha.1 to 7.6.0

4

lib/index.d.ts
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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc