🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

react-mui-form-validator

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-mui-form-validator - npm Package Compare versions

Comparing version
1.7.2
to
1.7.3
+21
-8
lib/index.d.cts

@@ -5,2 +5,3 @@ import * as React$1 from 'react';

import { MuiTelInputInfo } from 'mui-tel-input';
import { TextFieldProps } from '@mui/material/TextField';

@@ -110,4 +111,4 @@ interface required {

errors: any[];
instantValidate: boolean;
debounceTime: number;
get instantValidate(): boolean;
get debounceTime(): number;
getFormHelpers: () => FormContextValue;

@@ -125,7 +126,11 @@ attachToForm: (component: any) => void;

declare class ValidatorComponent extends React$1.Component<ValidatorComponentProps, ValidatorComponentState> {
type DebouncedValidate = {
(value: any, includeRequired?: boolean, dryRun?: boolean): void;
cancel?: () => void;
};
declare class ValidatorComponent<P extends ValidatorComponentProps = ValidatorComponentProps> extends React$1.Component<P, ValidatorComponentState> {
static contextType: React$1.Context<FormContextValue>;
context: React$1.ContextType<typeof FormContext>;
validateDebounced: any;
form: FormContextValue["form"];
validateDebounced: DebouncedValidate | null;
form: NonNullable<FormContextValue["form"]> | null;
debounceTime: number;

@@ -137,5 +142,5 @@ instantValidate: boolean;

componentDidMount(): void;
componentDidUpdate(prevProps: ValidatorComponentProps): void;
componentDidUpdate(prevProps: P): void;
componentWillUnmount(): void;
shouldComponentUpdate(nextProps: ValidatorComponentProps, nextState: ValidatorComponentState): boolean;
shouldComponentUpdate(nextProps: P, nextState: ValidatorComponentState): boolean;
configure: () => void;

@@ -155,3 +160,11 @@ getErrorMessage: () => string | boolean;

declare class MuiTextField extends ValidatorComponent {
type MuiTextFieldProps = Omit<TextFieldProps, "value"> & {
value: unknown;
validators?: any[];
errorMessages?: string | string[];
validatorListener?: (isValid: boolean) => void;
withRequiredValidator?: boolean;
containerProps?: React__default.HTMLAttributes<HTMLDivElement>;
};
declare class MuiTextField extends ValidatorComponent<MuiTextFieldProps> {
renderValidatorComponent(): React__default.JSX.Element;

@@ -158,0 +171,0 @@ }

@@ -5,2 +5,3 @@ import * as React$1 from 'react';

import { MuiTelInputInfo } from 'mui-tel-input';
import { TextFieldProps } from '@mui/material/TextField';

@@ -110,4 +111,4 @@ interface required {

errors: any[];
instantValidate: boolean;
debounceTime: number;
get instantValidate(): boolean;
get debounceTime(): number;
getFormHelpers: () => FormContextValue;

@@ -125,7 +126,11 @@ attachToForm: (component: any) => void;

declare class ValidatorComponent extends React$1.Component<ValidatorComponentProps, ValidatorComponentState> {
type DebouncedValidate = {
(value: any, includeRequired?: boolean, dryRun?: boolean): void;
cancel?: () => void;
};
declare class ValidatorComponent<P extends ValidatorComponentProps = ValidatorComponentProps> extends React$1.Component<P, ValidatorComponentState> {
static contextType: React$1.Context<FormContextValue>;
context: React$1.ContextType<typeof FormContext>;
validateDebounced: any;
form: FormContextValue["form"];
validateDebounced: DebouncedValidate | null;
form: NonNullable<FormContextValue["form"]> | null;
debounceTime: number;

@@ -137,5 +142,5 @@ instantValidate: boolean;

componentDidMount(): void;
componentDidUpdate(prevProps: ValidatorComponentProps): void;
componentDidUpdate(prevProps: P): void;
componentWillUnmount(): void;
shouldComponentUpdate(nextProps: ValidatorComponentProps, nextState: ValidatorComponentState): boolean;
shouldComponentUpdate(nextProps: P, nextState: ValidatorComponentState): boolean;
configure: () => void;

@@ -155,3 +160,11 @@ getErrorMessage: () => string | boolean;

declare class MuiTextField extends ValidatorComponent {
type MuiTextFieldProps = Omit<TextFieldProps, "value"> & {
value: unknown;
validators?: any[];
errorMessages?: string | string[];
validatorListener?: (isValid: boolean) => void;
withRequiredValidator?: boolean;
containerProps?: React__default.HTMLAttributes<HTMLDivElement>;
};
declare class MuiTextField extends ValidatorComponent<MuiTextFieldProps> {
renderValidatorComponent(): React__default.JSX.Element;

@@ -158,0 +171,0 @@ }

{
"name": "react-mui-form-validator",
"version": "1.7.2",
"version": "1.7.3",
"description": "Validator for forms designed with material-ui components.",

@@ -5,0 +5,0 @@ "type": "module",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display