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.8.1 to 7.9.0

cjs/use-field.cjs

1

lib/Form/Form.d.ts

@@ -1,2 +0,1 @@

import React from 'react';
import { TransformedValues, UseFormReturnType } from '../types';

@@ -3,0 +2,0 @@ export interface FormProps<Form extends UseFormReturnType<any>> extends React.ComponentPropsWithRef<'form'> {

@@ -1,2 +0,1 @@

import React from 'react';
import { _TransformValues, UseForm, UseFormReturnType } from '../types';

@@ -7,2 +6,2 @@ export interface FormProviderProps<Form> {

}
export declare function createFormContext<Values, TransformValues extends _TransformValues<Values> = (values: Values) => Values>(): [React.FC<FormProviderProps<UseFormReturnType<Values, TransformValues>>>, () => UseFormReturnType<Values, TransformValues>, UseForm<Values, TransformValues>];
export declare function createFormContext<Values, TransformValues extends _TransformValues<Values> = (values: Values) => Values>(): [import("react").FC<FormProviderProps<UseFormReturnType<Values, TransformValues>>>, () => UseFormReturnType<Values, TransformValues>, UseForm<Values, TransformValues>];

@@ -7,2 +7,3 @@ export { useForm } from './use-form';

export * from './validators/index.js';
export { useField } from './use-field';
export { zodResolver } from './resolvers/zod-resolver/zod-resolver';

@@ -13,1 +14,2 @@ export { superstructResolver } from './resolvers/superstruct-resolver/superstruct-resolver';

export type { FormErrors, UseFormReturnType, TransformedValues, UseFormInput } from './types';
export type { UseFieldInput, UseFieldReturnType } from './use-field';

@@ -1,2 +0,1 @@

import React from 'react';
interface HasLengthOptions {

@@ -7,3 +6,3 @@ max?: number;

type HasLengthPayload = HasLengthOptions | number;
export declare function hasLength(payload: HasLengthPayload, error?: React.ReactNode): (value: unknown) => string | number | true | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null;
export declare function hasLength(payload: HasLengthPayload, error?: React.ReactNode): (value: unknown) => string | number | true | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | null;
export {};

@@ -1,2 +0,1 @@

import React from 'react';
export declare function isEmail(error?: React.ReactNode): (value: unknown) => string | number | true | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null;
export declare function isEmail(error?: React.ReactNode): (value: unknown) => string | number | true | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | null;

@@ -1,2 +0,1 @@

import React from 'react';
interface IsInRangePayload {

@@ -6,3 +5,3 @@ min?: number;

}
export declare function isInRange({ min, max }: IsInRangePayload, error?: React.ReactNode): (value: unknown) => string | number | true | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null;
export declare function isInRange({ min, max }: IsInRangePayload, error?: React.ReactNode): (value: unknown) => string | number | true | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | null;
export {};

@@ -1,2 +0,1 @@

import React from 'react';
export declare function isNotEmpty(error?: React.ReactNode): (value: unknown) => string | number | true | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null;
export declare function isNotEmpty(error?: React.ReactNode): (value: unknown) => string | number | true | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | null;

@@ -1,2 +0,1 @@

import React from 'react';
export declare function matchesField(field: string, error?: React.ReactNode): (value: unknown, values: Record<string, unknown>) => string | number | true | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null;
export declare function matchesField(field: string, error?: React.ReactNode): (value: unknown, values: Record<string, unknown>) => string | number | true | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | null;

@@ -1,2 +0,1 @@

import React from 'react';
export declare function matches(regexp: RegExp, error?: React.ReactNode): (value: unknown) => string | number | true | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null;
export declare function matches(regexp: RegExp, error?: React.ReactNode): (value: unknown) => string | number | true | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | null;
{
"name": "@mantine/form",
"version": "7.8.1",
"version": "7.9.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

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

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

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