Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

uniforms-bootstrap4

Package Overview
Dependencies
Maintainers
0
Versions
191
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

uniforms-bootstrap4 - npm Package Compare versions

Comparing version 4.0.0-alpha.6 to 4.0.0-beta.1

3

cjs/AutoField.d.ts

@@ -1,4 +0,3 @@

/// <reference types="react" />
export { AutoFieldProps } from 'uniforms';
declare const AutoField: (({ experimental_absoluteName: absoluteName, ...rawProps }: import("uniforms").AutoFieldProps) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) & {
declare const AutoField: (({ experimental_absoluteName: absoluteName, ...rawProps }: import("uniforms").AutoFieldProps) => import("react").ReactElement) & {
componentDetectorContext: import("react").Context<import("uniforms").ComponentDetector>;

@@ -5,0 +4,0 @@ defaultComponentDetector: import("uniforms").ComponentDetector;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const invariant_1 = (0, tslib_1.__importDefault)(require("invariant"));
const invariant_1 = tslib_1.__importDefault(require("invariant"));
const uniforms_1 = require("uniforms");
const BoolField_1 = (0, tslib_1.__importDefault)(require("./BoolField"));
const DateField_1 = (0, tslib_1.__importDefault)(require("./DateField"));
const ListField_1 = (0, tslib_1.__importDefault)(require("./ListField"));
const NestField_1 = (0, tslib_1.__importDefault)(require("./NestField"));
const NumField_1 = (0, tslib_1.__importDefault)(require("./NumField"));
const RadioField_1 = (0, tslib_1.__importDefault)(require("./RadioField"));
const SelectField_1 = (0, tslib_1.__importDefault)(require("./SelectField"));
const TextField_1 = (0, tslib_1.__importDefault)(require("./TextField"));
const BoolField_1 = tslib_1.__importDefault(require("./BoolField"));
const DateField_1 = tslib_1.__importDefault(require("./DateField"));
const ListField_1 = tslib_1.__importDefault(require("./ListField"));
const NestField_1 = tslib_1.__importDefault(require("./NestField"));
const NumField_1 = tslib_1.__importDefault(require("./NumField"));
const RadioField_1 = tslib_1.__importDefault(require("./RadioField"));
const SelectField_1 = tslib_1.__importDefault(require("./SelectField"));
const TextField_1 = tslib_1.__importDefault(require("./TextField"));
const AutoField = (0, uniforms_1.createAutoField)(props => {

@@ -15,0 +15,0 @@ if (props.component) {

import { ComponentType } from 'react';
export declare type AutoFieldsProps = {
export type AutoFieldsProps = {
element?: ComponentType | string;

@@ -4,0 +4,0 @@ fields?: string[];

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = AutoFields;
const tslib_1 = require("tslib");
const react_1 = require("react");
const uniforms_1 = require("uniforms");
const AutoField_1 = (0, tslib_1.__importDefault)(require("./AutoField"));
const AutoField_1 = tslib_1.__importDefault(require("./AutoField"));
function AutoFields(_a) {
var { element = react_1.Fragment, fields, omitFields = [], showInlineError } = _a, props = (0, tslib_1.__rest)(_a, ["element", "fields", "omitFields", "showInlineError"]);
var { element = react_1.Fragment, fields, omitFields = [], showInlineError } = _a, props = tslib_1.__rest(_a, ["element", "fields", "omitFields", "showInlineError"]);
const { schema } = (0, uniforms_1.useForm)();

@@ -14,2 +15,1 @@ return (0, react_1.createElement)(element, props, (fields !== null && fields !== void 0 ? fields : schema.getSubfields())

}
exports.default = AutoFields;

@@ -1,3 +0,1 @@

/// <reference types="react" />
/// <reference types="node" />
declare const _default: {

@@ -10,6 +8,6 @@ new <Model extends import("uniforms").UnknownObject, Props extends import("uniforms").AutoFormProps<Model> = import("uniforms").AutoFormProps<Model>, State extends import("uniforms").AutoFormState<Model> = import("uniforms").AutoFormState<Model>>(props: Props): {

children?: import("react").ReactNode;
id?: string | undefined;
id?: string;
key: string;
noValidate: boolean;
onSubmit: (event?: import("react").SyntheticEvent<Element, Event> | undefined) => Promise<unknown>;
onSubmit: (event?: import("react").SyntheticEvent) => Promise<unknown>;
};

@@ -19,35 +17,29 @@ getModel(mode: import("uniforms").ModelTransformMode): State["model"];

__reset(state: State): Partial<State>;
validate: (key?: string | undefined, value?: unknown) => Promise<unknown>;
validate: (key?: string, value?: unknown) => Promise<unknown>;
validateModel: (originalModel: any) => Promise<unknown>;
getContextError(): unknown;
getContext(): import("uniforms").Context<Model>;
onSubmit(event?: import("react").SyntheticEvent<Element, Event> | undefined): Promise<unknown>;
onValidate(key?: string | undefined, value?: unknown): Promise<unknown>;
getContextError(): import("uniforms/cjs/types").Context<Model>["error"];
getContext(): import("uniforms/cjs/types").Context<Model>;
onSubmit(event?: import("react").SyntheticEvent): Promise<unknown>;
onValidate(key?: string, value?: unknown): Promise<unknown>;
onValidateModel(originalModel: Props["model"]): Promise<unknown>;
componentDidMount(): void;
componentWillUnmount(): void;
delayId?: NodeJS.Timeout | undefined;
delayId?: ReturnType<typeof setTimeout> | undefined;
mounted: boolean;
reset: () => void;
change: (key: string, value: unknown) => void;
submit: (event?: import("react").SyntheticEvent<Element, Event> | undefined) => Promise<unknown>;
submit: (event?: import("react").SyntheticEvent) => Promise<unknown>;
randomId: () => string;
getContextName(): string[];
getContextName(): import("uniforms/cjs/types").Context<Model>["name"];
getContextModel(): Model;
getContextState(): {
disabled: boolean;
readOnly: boolean;
showInlineError: boolean;
};
getContextSchema(): import("uniforms").Bridge;
getContextOnChange(): (key: string, value: unknown) => void;
getContextOnSubmit(): (event?: import("react").SyntheticEvent<Element, Event> | undefined) => unknown;
getContextState(): import("uniforms/cjs/types").Context<Model>["state"];
getContextSchema(): import("uniforms/cjs/types").Context<Model>["schema"];
getContextOnChange(): import("uniforms/cjs/types").Context<Model>["onChange"];
getContextOnSubmit(): import("uniforms/cjs/types").Context<Model>["onSubmit"];
onReset(): void;
render(): JSX.Element;
context: any;
setState<K extends keyof State>(state: State | Pick<State, K> | ((prevState: Readonly<State>, props: Readonly<Props>) => State | Pick<State, K> | null) | null, callback?: (() => void) | undefined): void;
render(): import("react").JSX.Element;
context: unknown;
setState<K extends keyof State>(state: State | ((prevState: Readonly<State>, props: Readonly<Props>) => State | Pick<State, K> | null) | Pick<State, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly<Props> & Readonly<{
children?: import("react").ReactNode;
}>;
readonly props: Readonly<Props>;
state: Readonly<State>;

@@ -90,61 +82,55 @@ refs: {

} & {
new <Model_1 extends import("uniforms").UnknownObject, Props_1 extends import("uniforms").ValidatedFormProps<Model_1> = import("uniforms").ValidatedFormProps<Model_1>, State_1 extends import("uniforms").ValidatedFormState<Model_1> = import("uniforms").ValidatedFormState<Model_1>>(props: Props_1): {
validate: (key?: string | undefined, value?: unknown) => Promise<unknown>;
new <Model extends import("uniforms").UnknownObject, Props extends import("uniforms").ValidatedFormProps<Model> = import("uniforms").ValidatedFormProps<Model>, State extends import("uniforms").ValidatedFormState<Model> = import("uniforms").ValidatedFormState<Model>>(props: Props): {
validate: (key?: string, value?: unknown) => Promise<unknown>;
validateModel: (originalModel: any) => Promise<unknown>;
getContextError(): unknown;
getContext(): import("uniforms").Context<Model_1>;
getContextError(): import("uniforms/cjs/types").Context<Model>["error"];
getContext(): import("uniforms/cjs/types").Context<Model>;
getNativeFormProps(): {
[key: string]: unknown;
children?: import("react").ReactNode;
id?: string | undefined;
id?: string;
key: string;
noValidate: boolean;
onSubmit: (event?: import("react").SyntheticEvent<Element, Event> | undefined) => Promise<unknown>;
onSubmit: (event?: import("react").SyntheticEvent) => Promise<unknown>;
};
componentDidUpdate(prevProps: Props_1, prevState: State_1, snapshot: never): void;
componentDidUpdate(prevProps: Props, prevState: State, snapshot: never): void;
onChange(key: string, value: unknown): void;
__reset(state: State_1): Partial<State_1>;
onSubmit(event?: import("react").SyntheticEvent<Element, Event> | undefined): Promise<unknown>;
onValidate(key?: string | undefined, value?: unknown): Promise<unknown>;
onValidateModel(originalModel: Props_1["model"]): Promise<unknown>;
__reset(state: State): Partial<State>;
onSubmit(event?: import("react").SyntheticEvent): Promise<unknown>;
onValidate(key?: string, value?: unknown): Promise<unknown>;
onValidateModel(originalModel: Props["model"]): Promise<unknown>;
componentDidMount(): void;
componentWillUnmount(): void;
delayId?: NodeJS.Timeout | undefined;
delayId?: ReturnType<typeof setTimeout> | undefined;
mounted: boolean;
reset: () => void;
change: (key: string, value: unknown) => void;
submit: (event?: import("react").SyntheticEvent<Element, Event> | undefined) => Promise<unknown>;
submit: (event?: import("react").SyntheticEvent) => Promise<unknown>;
randomId: () => string;
getContextName(): string[];
getContextModel(): Model_1;
getContextState(): {
disabled: boolean;
readOnly: boolean;
showInlineError: boolean;
};
getContextSchema(): import("uniforms").Bridge;
getContextOnChange(): (key: string, value: unknown) => void;
getContextOnSubmit(): (event?: import("react").SyntheticEvent<Element, Event> | undefined) => unknown;
getModel(mode?: import("uniforms").ModelTransformMode | undefined, model?: Model_1 | undefined): Model_1;
getContextName(): import("uniforms/cjs/types").Context<Model>["name"];
getContextModel(): Model;
getContextState(): import("uniforms/cjs/types").Context<Model>["state"];
getContextSchema(): import("uniforms/cjs/types").Context<Model>["schema"];
getContextOnChange(): import("uniforms/cjs/types").Context<Model>["onChange"];
getContextOnSubmit(): import("uniforms/cjs/types").Context<Model>["onSubmit"];
getModel(mode?: import("uniforms").ModelTransformMode, model?: Model): Model;
onReset(): void;
render(): JSX.Element;
context: any;
setState<K_1 extends keyof State_1>(state: State_1 | Pick<State_1, K_1> | ((prevState: Readonly<State_1>, props: Readonly<Props_1>) => State_1 | Pick<State_1, K_1> | null) | null, callback?: (() => void) | undefined): void;
render(): import("react").JSX.Element;
context: unknown;
setState<K extends keyof State>(state: State | ((prevState: Readonly<State>, props: Readonly<Props>) => State | Pick<State, K> | null) | Pick<State, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly<Props_1> & Readonly<{
children?: import("react").ReactNode;
}>;
state: Readonly<State_1>;
readonly props: Readonly<Props>;
state: Readonly<State>;
refs: {
[key: string]: import("react").ReactInstance;
};
shouldComponentUpdate?(nextProps: Readonly<Props_1>, nextState: Readonly<State_1>, nextContext: any): boolean;
shouldComponentUpdate?(nextProps: Readonly<Props>, nextState: Readonly<State>, nextContext: any): boolean;
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly<Props_1>, prevState: Readonly<State_1>): any;
getSnapshotBeforeUpdate?(prevProps: Readonly<Props>, prevState: Readonly<State>): any;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly<Props_1>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Props_1>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly<Props_1>, nextState: Readonly<State_1>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly<Props_1>, nextState: Readonly<State_1>, nextContext: any): void;
componentWillReceiveProps?(nextProps: Readonly<Props>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Props>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly<Props>, nextState: Readonly<State>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly<Props>, nextState: Readonly<State>, nextContext: any): void;
};

@@ -165,10 +151,10 @@ Validated: typeof import("uniforms").Validated;

} & {
new <Model_2 extends import("uniforms").UnknownObject, Props_2 extends import("uniforms").QuickFormProps<Model_2> = import("uniforms").QuickFormProps<Model_2>, State_2 extends import("uniforms").QuickFormState<Model_2> = import("uniforms").QuickFormState<Model_2>>(props: Props_2): {
new <Model extends import("uniforms").UnknownObject, Props extends import("uniforms").QuickFormProps<Model> = import("uniforms").QuickFormProps<Model>, State extends import("uniforms").QuickFormState<Model> = import("uniforms").QuickFormState<Model>>(props: Props): {
getNativeFormProps(): {
[key: string]: unknown;
children?: import("react").ReactNode;
id?: string | undefined;
id?: string;
key: string;
noValidate: boolean;
onSubmit: (event?: import("react").SyntheticEvent<Element, Event> | undefined) => Promise<unknown>;
onSubmit: (event?: import("react").SyntheticEvent) => Promise<unknown>;
};

@@ -178,50 +164,44 @@ getAutoField(): import("react").ComponentType<{

}>;
getErrorsField(): import("react").ComponentType<{}>;
getSubmitField(): import("react").ComponentType<{}>;
getErrorsField(): import("react").ComponentType;
getSubmitField(): import("react").ComponentType;
componentDidMount(): void;
componentDidUpdate(prevProps: Props_2, prevState: State_2, snapshot: never): void;
componentDidUpdate(prevProps: Props, prevState: State, snapshot: never): void;
componentWillUnmount(): void;
delayId?: NodeJS.Timeout | undefined;
delayId?: ReturnType<typeof setTimeout> | undefined;
mounted: boolean;
reset: () => void;
change: (key: string, value: unknown) => void;
submit: (event?: import("react").SyntheticEvent<Element, Event> | undefined) => Promise<unknown>;
submit: (event?: import("react").SyntheticEvent) => Promise<unknown>;
randomId: () => string;
getContext(): import("uniforms").Context<Model_2>;
getContextName(): string[];
getContextError(): unknown;
getContextModel(): Model_2;
getContextState(): {
disabled: boolean;
readOnly: boolean;
showInlineError: boolean;
};
getContextSchema(): import("uniforms").Bridge;
getContextOnChange(): (key: string, value: unknown) => void;
getContextOnSubmit(): (event?: import("react").SyntheticEvent<Element, Event> | undefined) => unknown;
getModel(mode?: import("uniforms").ModelTransformMode | undefined, model?: Model_2 | undefined): Model_2;
getContext(): import("uniforms/cjs/types").Context<Model>;
getContextName(): import("uniforms/cjs/types").Context<Model>["name"];
getContextError(): import("uniforms/cjs/types").Context<Model>["error"];
getContextModel(): Model;
getContextState(): import("uniforms/cjs/types").Context<Model>["state"];
getContextSchema(): import("uniforms/cjs/types").Context<Model>["schema"];
getContextOnChange(): import("uniforms/cjs/types").Context<Model>["onChange"];
getContextOnSubmit(): import("uniforms/cjs/types").Context<Model>["onSubmit"];
getModel(mode?: import("uniforms").ModelTransformMode, model?: Model): Model;
onChange(key: string, value: unknown): void;
__reset(state: State_2): Partial<State_2>;
__reset(state: State): Partial<State>;
onReset(): void;
onSubmit(event?: import("react").SyntheticEvent<Element, Event> | undefined): Promise<unknown>;
render(): JSX.Element;
context: any;
setState<K_2 extends keyof State_2>(state: State_2 | Pick<State_2, K_2> | ((prevState: Readonly<State_2>, props: Readonly<Props_2>) => State_2 | Pick<State_2, K_2> | null) | null, callback?: (() => void) | undefined): void;
onSubmit(event?: import("react").SyntheticEvent): Promise<unknown>;
render(): import("react").JSX.Element;
context: unknown;
setState<K extends keyof State>(state: State | ((prevState: Readonly<State>, props: Readonly<Props>) => State | Pick<State, K> | null) | Pick<State, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly<Props_2> & Readonly<{
children?: import("react").ReactNode;
}>;
state: Readonly<State_2>;
readonly props: Readonly<Props>;
state: Readonly<State>;
refs: {
[key: string]: import("react").ReactInstance;
};
shouldComponentUpdate?(nextProps: Readonly<Props_2>, nextState: Readonly<State_2>, nextContext: any): boolean;
shouldComponentUpdate?(nextProps: Readonly<Props>, nextState: Readonly<State>, nextContext: any): boolean;
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly<Props_2>, prevState: Readonly<State_2>): any;
getSnapshotBeforeUpdate?(prevProps: Readonly<Props>, prevState: Readonly<State>): any;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly<Props_2>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Props_2>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly<Props_2>, nextState: Readonly<State_2>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly<Props_2>, nextState: Readonly<State_2>, nextContext: any): void;
componentWillReceiveProps?(nextProps: Readonly<Props>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Props>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly<Props>, nextState: Readonly<State>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly<Props>, nextState: Readonly<State>, nextContext: any): void;
};

@@ -228,0 +208,0 @@ Quick: typeof import("uniforms").Quick;

@@ -5,3 +5,3 @@ "use strict";

const uniforms_1 = require("uniforms");
const ValidatedQuickForm_1 = (0, tslib_1.__importDefault)(require("./ValidatedQuickForm"));
const ValidatedQuickForm_1 = tslib_1.__importDefault(require("./ValidatedQuickForm"));
function Auto(parent) {

@@ -8,0 +8,0 @@ class _ extends uniforms_1.AutoForm.Auto(parent) {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const classnames_1 = (0, tslib_1.__importDefault)(require("classnames"));
const omit_1 = (0, tslib_1.__importDefault)(require("lodash/omit"));
const classnames_1 = tslib_1.__importDefault(require("classnames"));
const omit_1 = tslib_1.__importDefault(require("lodash/omit"));
const uniforms_1 = require("uniforms");

@@ -7,0 +7,0 @@ function Bootstrap4(parent) {

import { Ref } from 'react';
import { HTMLFieldProps } from 'uniforms';
export declare type BoolFieldProps = HTMLFieldProps<boolean, HTMLDivElement, {
export type BoolFieldProps = HTMLFieldProps<boolean, HTMLDivElement, {
inline?: boolean;

@@ -5,0 +5,0 @@ inputClassName?: string;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const classnames_1 = (0, tslib_1.__importDefault)(require("classnames"));
const react_1 = (0, tslib_1.__importDefault)(require("react"));
const classnames_1 = tslib_1.__importDefault(require("classnames"));
const react_1 = tslib_1.__importDefault(require("react"));
const uniforms_1 = require("uniforms");
const wrapField_1 = (0, tslib_1.__importDefault)(require("./wrapField"));
const wrapField_1 = tslib_1.__importDefault(require("./wrapField"));
function Bool(_a) {
var { onChange } = _a, props = (0, tslib_1.__rest)(_a, ["onChange"]);
var { onChange } = _a, props = tslib_1.__rest(_a, ["onChange"]);
const { disabled, error, inline, inputClassName, inputRef, label, labelBefore, name, readOnly, value, } = props;

@@ -11,0 +11,0 @@ return (0, wrapField_1.default)(Object.assign(Object.assign({}, props), { label: labelBefore, value: props.value }), react_1.default.createElement("div", { className: (0, classnames_1.default)(inputClassName, 'form-check', 'checkbox', {

import { Ref } from 'react';
import { HTMLFieldProps } from 'uniforms';
declare type DateFieldType = 'date' | 'datetime-local';
export declare type DateFieldProps = HTMLFieldProps<Date, HTMLDivElement, {
type DateFieldType = 'date' | 'datetime-local';
export type DateFieldProps = HTMLFieldProps<Date, HTMLDivElement, {
inputClassName?: string;

@@ -6,0 +6,0 @@ inputRef?: Ref<HTMLInputElement>;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const classnames_1 = (0, tslib_1.__importDefault)(require("classnames"));
const react_1 = (0, tslib_1.__importDefault)(require("react"));
const classnames_1 = tslib_1.__importDefault(require("classnames"));
const react_1 = tslib_1.__importDefault(require("react"));
const uniforms_1 = require("uniforms");
const wrapField_1 = (0, tslib_1.__importDefault)(require("./wrapField"));
const wrapField_1 = tslib_1.__importDefault(require("./wrapField"));
/* istanbul ignore next */

@@ -13,3 +13,3 @@ const DateConstructor = (typeof global === 'object' ? global : window).Date;

var _b;
var { disabled, error, id, inputClassName, inputRef, max, min, name, onChange, placeholder, readOnly, value, type = 'datetime-local' } = _a, props = (0, tslib_1.__rest)(_a, ["disabled", "error", "id", "inputClassName", "inputRef", "max", "min", "name", "onChange", "placeholder", "readOnly", "value", "type"]);
var { disabled, error, id, inputClassName, inputRef, max, min, name, onChange, placeholder, readOnly, value, type = 'datetime-local' } = _a, props = tslib_1.__rest(_a, ["disabled", "error", "id", "inputClassName", "inputRef", "max", "min", "name", "onChange", "placeholder", "readOnly", "value", "type"]);
return (0, wrapField_1.default)(Object.assign(Object.assign({}, props), { id }), react_1.default.createElement("input", { className: (0, classnames_1.default)(inputClassName, 'form-control', {

@@ -16,0 +16,0 @@ 'is-invalid': error,

import React, { HTMLProps } from 'react';
import { Override } from 'uniforms';
export declare type ErrorFieldProps = Override<Omit<HTMLProps<HTMLDivElement>, 'onChange'>, {
export type ErrorFieldProps = Override<Omit<HTMLProps<HTMLDivElement>, 'onChange'>, {
error?: any;

@@ -9,5 +9,5 @@ errorMessage?: string;

error?: any;
errorMessage?: string | undefined;
errorMessage?: string;
} & Omit<Omit<React.HTMLProps<HTMLDivElement>, "onChange">, "error" | "errorMessage">, string | number | readonly string[] | undefined>;
export default _default;
//# sourceMappingURL=ErrorField.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const classnames_1 = (0, tslib_1.__importDefault)(require("classnames"));
const react_1 = (0, tslib_1.__importDefault)(require("react"));
const classnames_1 = tslib_1.__importDefault(require("classnames"));
const react_1 = tslib_1.__importDefault(require("react"));
const uniforms_1 = require("uniforms");
function Error(_a) {
var { children, className, error, errorMessage } = _a, props = (0, tslib_1.__rest)(_a, ["children", "className", "error", "errorMessage"]);
var { children, className, error, errorMessage } = _a, props = tslib_1.__rest(_a, ["children", "className", "error", "errorMessage"]);
return !error ? null : (react_1.default.createElement("div", Object.assign({ className: (0, classnames_1.default)('card', 'mb-3', className) }, (0, uniforms_1.filterDOMProps)(props)),

@@ -10,0 +10,0 @@ react_1.default.createElement("div", { className: "card-body" }, children || react_1.default.createElement("h4", { className: "card-title" }, errorMessage))));

@@ -1,5 +0,5 @@

import { HTMLProps } from 'react';
export declare type ErrorsFieldProps = HTMLProps<HTMLDivElement>;
declare function ErrorsField({ children, className, ...props }: ErrorsFieldProps): JSX.Element | null;
import React, { HTMLProps } from 'react';
export type ErrorsFieldProps = HTMLProps<HTMLDivElement>;
declare function ErrorsField({ children, className, ...props }: ErrorsFieldProps): React.JSX.Element | null;
export default ErrorsField;
//# sourceMappingURL=ErrorsField.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const classnames_1 = (0, tslib_1.__importDefault)(require("classnames"));
const react_1 = (0, tslib_1.__importDefault)(require("react"));
const classnames_1 = tslib_1.__importDefault(require("classnames"));
const react_1 = tslib_1.__importDefault(require("react"));
const uniforms_1 = require("uniforms");
function ErrorsField(_a) {
var { children, className } = _a, props = (0, tslib_1.__rest)(_a, ["children", "className"]);
var { children, className } = _a, props = tslib_1.__rest(_a, ["children", "className"]);
const { error, schema } = (0, uniforms_1.useForm)();

@@ -10,0 +10,0 @@ return !error && !children ? null : (react_1.default.createElement("div", Object.assign({ className: (0, classnames_1.default)('card border-danger mb-3 text-danger', className) }, (0, uniforms_1.filterDOMProps)(props)),

@@ -1,4 +0,3 @@

declare type GridSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
export type GridSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
export default function gridClassName(grid?: number | string | Partial<Record<GridSize, number>>, side?: 'input' | 'label'): string;
export {};
//# sourceMappingURL=gridClassName.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = gridClassName;
function gridClassNamePart(size, value, side) {

@@ -39,2 +40,1 @@ const sizeInfix = size === 'xs' ? '' : `${size}-`;

}
exports.default = gridClassName;

@@ -1,4 +0,4 @@

import { HTMLProps, Ref } from 'react';
import React, { HTMLProps, Ref } from 'react';
import { Override } from 'uniforms';
export declare type HiddenFieldProps = Override<HTMLProps<HTMLInputElement>, {
export type HiddenFieldProps = Override<HTMLProps<HTMLInputElement>, {
inputRef?: Ref<HTMLInputElement>;

@@ -9,3 +9,3 @@ name: string;

}>;
export default function HiddenField({ value, ...rawProps }: HiddenFieldProps): JSX.Element | null;
export default function HiddenField({ value, ...rawProps }: HiddenFieldProps): React.JSX.Element | null;
//# sourceMappingURL=HiddenField.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = HiddenField;
const tslib_1 = require("tslib");
const react_1 = (0, tslib_1.__importStar)(require("react"));
const react_1 = tslib_1.__importStar(require("react"));
const uniforms_1 = require("uniforms");
function HiddenField(_a) {
var _b;
var { value } = _a, rawProps = (0, tslib_1.__rest)(_a, ["value"]);
var { value } = _a, rawProps = tslib_1.__rest(_a, ["value"]);
const props = (0, uniforms_1.useField)(rawProps.name, rawProps, { initialValue: false })[0];

@@ -19,2 +20,1 @@ (0, react_1.useEffect)(() => {

}
exports.default = HiddenField;
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.wrapField = exports.ValidatedQuickForm = exports.ValidatedForm = exports.TextField = exports.SubmitField = exports.SelectField = exports.RadioField = exports.QuickForm = exports.NumField = exports.NestField = exports.LongTextField = exports.ListItemField = exports.ListField = exports.ListDelField = exports.ListAddField = exports.HiddenField = exports.gridClassName = exports.ErrorsField = exports.ErrorField = exports.DateField = exports.BoolField = exports.BaseForm = exports.AutoForm = exports.AutoFields = exports.AutoField = void 0;
const tslib_1 = require("tslib");
var AutoField_1 = require("./AutoField");
Object.defineProperty(exports, "AutoField", { enumerable: true, get: function () { return __importDefault(AutoField_1).default; } });
Object.defineProperty(exports, "AutoField", { enumerable: true, get: function () { return tslib_1.__importDefault(AutoField_1).default; } });
var AutoFields_1 = require("./AutoFields");
Object.defineProperty(exports, "AutoFields", { enumerable: true, get: function () { return __importDefault(AutoFields_1).default; } });
Object.defineProperty(exports, "AutoFields", { enumerable: true, get: function () { return tslib_1.__importDefault(AutoFields_1).default; } });
var AutoForm_1 = require("./AutoForm");
Object.defineProperty(exports, "AutoForm", { enumerable: true, get: function () { return __importDefault(AutoForm_1).default; } });
Object.defineProperty(exports, "AutoForm", { enumerable: true, get: function () { return tslib_1.__importDefault(AutoForm_1).default; } });
var BaseForm_1 = require("./BaseForm");
Object.defineProperty(exports, "BaseForm", { enumerable: true, get: function () { return __importDefault(BaseForm_1).default; } });
Object.defineProperty(exports, "BaseForm", { enumerable: true, get: function () { return tslib_1.__importDefault(BaseForm_1).default; } });
var BoolField_1 = require("./BoolField");
Object.defineProperty(exports, "BoolField", { enumerable: true, get: function () { return __importDefault(BoolField_1).default; } });
Object.defineProperty(exports, "BoolField", { enumerable: true, get: function () { return tslib_1.__importDefault(BoolField_1).default; } });
var DateField_1 = require("./DateField");
Object.defineProperty(exports, "DateField", { enumerable: true, get: function () { return __importDefault(DateField_1).default; } });
Object.defineProperty(exports, "DateField", { enumerable: true, get: function () { return tslib_1.__importDefault(DateField_1).default; } });
var ErrorField_1 = require("./ErrorField");
Object.defineProperty(exports, "ErrorField", { enumerable: true, get: function () { return __importDefault(ErrorField_1).default; } });
Object.defineProperty(exports, "ErrorField", { enumerable: true, get: function () { return tslib_1.__importDefault(ErrorField_1).default; } });
var ErrorsField_1 = require("./ErrorsField");
Object.defineProperty(exports, "ErrorsField", { enumerable: true, get: function () { return __importDefault(ErrorsField_1).default; } });
Object.defineProperty(exports, "ErrorsField", { enumerable: true, get: function () { return tslib_1.__importDefault(ErrorsField_1).default; } });
var gridClassName_1 = require("./gridClassName");
Object.defineProperty(exports, "gridClassName", { enumerable: true, get: function () { return __importDefault(gridClassName_1).default; } });
Object.defineProperty(exports, "gridClassName", { enumerable: true, get: function () { return tslib_1.__importDefault(gridClassName_1).default; } });
var HiddenField_1 = require("./HiddenField");
Object.defineProperty(exports, "HiddenField", { enumerable: true, get: function () { return __importDefault(HiddenField_1).default; } });
Object.defineProperty(exports, "HiddenField", { enumerable: true, get: function () { return tslib_1.__importDefault(HiddenField_1).default; } });
var ListAddField_1 = require("./ListAddField");
Object.defineProperty(exports, "ListAddField", { enumerable: true, get: function () { return __importDefault(ListAddField_1).default; } });
Object.defineProperty(exports, "ListAddField", { enumerable: true, get: function () { return tslib_1.__importDefault(ListAddField_1).default; } });
var ListDelField_1 = require("./ListDelField");
Object.defineProperty(exports, "ListDelField", { enumerable: true, get: function () { return __importDefault(ListDelField_1).default; } });
Object.defineProperty(exports, "ListDelField", { enumerable: true, get: function () { return tslib_1.__importDefault(ListDelField_1).default; } });
var ListField_1 = require("./ListField");
Object.defineProperty(exports, "ListField", { enumerable: true, get: function () { return __importDefault(ListField_1).default; } });
Object.defineProperty(exports, "ListField", { enumerable: true, get: function () { return tslib_1.__importDefault(ListField_1).default; } });
var ListItemField_1 = require("./ListItemField");
Object.defineProperty(exports, "ListItemField", { enumerable: true, get: function () { return __importDefault(ListItemField_1).default; } });
Object.defineProperty(exports, "ListItemField", { enumerable: true, get: function () { return tslib_1.__importDefault(ListItemField_1).default; } });
var LongTextField_1 = require("./LongTextField");
Object.defineProperty(exports, "LongTextField", { enumerable: true, get: function () { return __importDefault(LongTextField_1).default; } });
Object.defineProperty(exports, "LongTextField", { enumerable: true, get: function () { return tslib_1.__importDefault(LongTextField_1).default; } });
var NestField_1 = require("./NestField");
Object.defineProperty(exports, "NestField", { enumerable: true, get: function () { return __importDefault(NestField_1).default; } });
Object.defineProperty(exports, "NestField", { enumerable: true, get: function () { return tslib_1.__importDefault(NestField_1).default; } });
var NumField_1 = require("./NumField");
Object.defineProperty(exports, "NumField", { enumerable: true, get: function () { return __importDefault(NumField_1).default; } });
Object.defineProperty(exports, "NumField", { enumerable: true, get: function () { return tslib_1.__importDefault(NumField_1).default; } });
var QuickForm_1 = require("./QuickForm");
Object.defineProperty(exports, "QuickForm", { enumerable: true, get: function () { return __importDefault(QuickForm_1).default; } });
Object.defineProperty(exports, "QuickForm", { enumerable: true, get: function () { return tslib_1.__importDefault(QuickForm_1).default; } });
var RadioField_1 = require("./RadioField");
Object.defineProperty(exports, "RadioField", { enumerable: true, get: function () { return __importDefault(RadioField_1).default; } });
Object.defineProperty(exports, "RadioField", { enumerable: true, get: function () { return tslib_1.__importDefault(RadioField_1).default; } });
var SelectField_1 = require("./SelectField");
Object.defineProperty(exports, "SelectField", { enumerable: true, get: function () { return __importDefault(SelectField_1).default; } });
Object.defineProperty(exports, "SelectField", { enumerable: true, get: function () { return tslib_1.__importDefault(SelectField_1).default; } });
var SubmitField_1 = require("./SubmitField");
Object.defineProperty(exports, "SubmitField", { enumerable: true, get: function () { return __importDefault(SubmitField_1).default; } });
Object.defineProperty(exports, "SubmitField", { enumerable: true, get: function () { return tslib_1.__importDefault(SubmitField_1).default; } });
var TextField_1 = require("./TextField");
Object.defineProperty(exports, "TextField", { enumerable: true, get: function () { return __importDefault(TextField_1).default; } });
Object.defineProperty(exports, "TextField", { enumerable: true, get: function () { return tslib_1.__importDefault(TextField_1).default; } });
var ValidatedForm_1 = require("./ValidatedForm");
Object.defineProperty(exports, "ValidatedForm", { enumerable: true, get: function () { return __importDefault(ValidatedForm_1).default; } });
Object.defineProperty(exports, "ValidatedForm", { enumerable: true, get: function () { return tslib_1.__importDefault(ValidatedForm_1).default; } });
var ValidatedQuickForm_1 = require("./ValidatedQuickForm");
Object.defineProperty(exports, "ValidatedQuickForm", { enumerable: true, get: function () { return __importDefault(ValidatedQuickForm_1).default; } });
Object.defineProperty(exports, "ValidatedQuickForm", { enumerable: true, get: function () { return tslib_1.__importDefault(ValidatedQuickForm_1).default; } });
var wrapField_1 = require("./wrapField");
Object.defineProperty(exports, "wrapField", { enumerable: true, get: function () { return __importDefault(wrapField_1).default; } });
Object.defineProperty(exports, "wrapField", { enumerable: true, get: function () { return tslib_1.__importDefault(wrapField_1).default; } });
import { ReactNode } from 'react';
import { HTMLFieldProps } from 'uniforms';
export declare type ListAddFieldProps = HTMLFieldProps<unknown, HTMLDivElement, {
export type ListAddFieldProps = HTMLFieldProps<unknown, HTMLDivElement, {
addIcon?: ReactNode;

@@ -5,0 +5,0 @@ }>;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const classnames_1 = (0, tslib_1.__importDefault)(require("classnames"));
const cloneDeep_1 = (0, tslib_1.__importDefault)(require("lodash/cloneDeep"));
const react_1 = (0, tslib_1.__importDefault)(require("react"));
const classnames_1 = tslib_1.__importDefault(require("classnames"));
const cloneDeep_1 = tslib_1.__importDefault(require("lodash/cloneDeep"));
const react_1 = tslib_1.__importDefault(require("react"));
const uniforms_1 = require("uniforms");
function ListAdd(_a) {
var { addIcon, className, disabled, name, readOnly, value } = _a, props = (0, tslib_1.__rest)(_a, ["addIcon", "className", "disabled", "name", "readOnly", "value"]);
var { addIcon, className, disabled, name, readOnly, value } = _a, props = tslib_1.__rest(_a, ["addIcon", "className", "disabled", "name", "readOnly", "value"]);
const nameParts = (0, uniforms_1.joinName)(null, name);

@@ -11,0 +11,0 @@ const parentName = (0, uniforms_1.joinName)(nameParts.slice(0, -1));

import { ReactNode } from 'react';
import { HTMLFieldProps } from 'uniforms';
export declare type ListDelFieldProps = HTMLFieldProps<unknown, HTMLSpanElement, {
export type ListDelFieldProps = HTMLFieldProps<unknown, HTMLSpanElement, {
removeIcon?: ReactNode;

@@ -5,0 +5,0 @@ }>;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const classnames_1 = (0, tslib_1.__importDefault)(require("classnames"));
const react_1 = (0, tslib_1.__importDefault)(require("react"));
const classnames_1 = tslib_1.__importDefault(require("classnames"));
const react_1 = tslib_1.__importDefault(require("react"));
const uniforms_1 = require("uniforms");
function ListDel(_a) {
var { className, disabled, name, readOnly, removeIcon } = _a, props = (0, tslib_1.__rest)(_a, ["className", "disabled", "name", "readOnly", "removeIcon"]);
var { className, disabled, name, readOnly, removeIcon } = _a, props = tslib_1.__rest(_a, ["className", "disabled", "name", "readOnly", "removeIcon"]);
const nameParts = (0, uniforms_1.joinName)(null, name);

@@ -10,0 +10,0 @@ const nameIndex = +nameParts[nameParts.length - 1];

import { ReactNode } from 'react';
import { HTMLFieldProps } from 'uniforms';
export declare type ListFieldProps = HTMLFieldProps<unknown[], HTMLDivElement, {
export type ListFieldProps = HTMLFieldProps<unknown[], HTMLDivElement, {
addIcon?: ReactNode;

@@ -5,0 +5,0 @@ itemProps?: object;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const classnames_1 = (0, tslib_1.__importDefault)(require("classnames"));
const react_1 = (0, tslib_1.__importStar)(require("react"));
const classnames_1 = tslib_1.__importDefault(require("classnames"));
const react_1 = tslib_1.__importStar(require("react"));
const uniforms_1 = require("uniforms");
const ListAddField_1 = (0, tslib_1.__importDefault)(require("./ListAddField"));
const ListItemField_1 = (0, tslib_1.__importDefault)(require("./ListItemField"));
const ListAddField_1 = tslib_1.__importDefault(require("./ListAddField"));
const ListItemField_1 = tslib_1.__importDefault(require("./ListItemField"));
function List(_a) {
var { addIcon, children = react_1.default.createElement(ListItemField_1.default, { name: "$" }), className, error, errorMessage, itemProps, label, removeIcon, showInlineError, value } = _a, props = (0, tslib_1.__rest)(_a, ["addIcon", "children", "className", "error", "errorMessage", "itemProps", "label", "removeIcon", "showInlineError", "value"]);
var { addIcon, children = react_1.default.createElement(ListItemField_1.default, { name: "$" }), className, error, errorMessage, itemProps, label, removeIcon, showInlineError, value } = _a, props = tslib_1.__rest(_a, ["addIcon", "children", "className", "error", "errorMessage", "itemProps", "label", "removeIcon", "showInlineError", "value"]);
return (react_1.default.createElement("div", Object.assign({ className: (0, classnames_1.default)('card mb-3', className) }, (0, uniforms_1.filterDOMProps)(props)),

@@ -12,0 +12,0 @@ react_1.default.createElement("div", { className: "card-body" },

import { ReactNode } from 'react';
export declare type ListItemFieldProps = {
export type ListItemFieldProps = {
children?: ReactNode;

@@ -4,0 +4,0 @@ name: string;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const react_1 = (0, tslib_1.__importDefault)(require("react"));
const react_1 = tslib_1.__importDefault(require("react"));
const uniforms_1 = require("uniforms");
const AutoField_1 = (0, tslib_1.__importDefault)(require("./AutoField"));
const ListDelField_1 = (0, tslib_1.__importDefault)(require("./ListDelField"));
const AutoField_1 = tslib_1.__importDefault(require("./AutoField"));
const ListDelField_1 = tslib_1.__importDefault(require("./ListDelField"));
function ListItem({ children = react_1.default.createElement(AutoField_1.default, { className: "col-11", label: null, name: "" }), removeIcon, }) {

@@ -9,0 +9,0 @@ return (react_1.default.createElement("div", { className: "row" },

import { Ref } from 'react';
import { HTMLFieldProps } from 'uniforms';
export declare type LongTextFieldProps = HTMLFieldProps<string, HTMLDivElement, {
export type LongTextFieldProps = HTMLFieldProps<string, HTMLDivElement, {
inputClassName?: string;

@@ -5,0 +5,0 @@ inputRef?: Ref<HTMLTextAreaElement>;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const classnames_1 = (0, tslib_1.__importDefault)(require("classnames"));
const react_1 = (0, tslib_1.__importDefault)(require("react"));
const classnames_1 = tslib_1.__importDefault(require("classnames"));
const react_1 = tslib_1.__importDefault(require("react"));
const uniforms_1 = require("uniforms");
const wrapField_1 = (0, tslib_1.__importDefault)(require("./wrapField"));
const wrapField_1 = tslib_1.__importDefault(require("./wrapField"));
function LongText(props) {

@@ -9,0 +9,0 @@ var _a;

import { HTMLFieldProps } from 'uniforms';
export declare type NestFieldProps = HTMLFieldProps<object, HTMLDivElement, {
export type NestFieldProps = HTMLFieldProps<object, HTMLDivElement, {
itemProps?: object;

@@ -4,0 +4,0 @@ }>;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const classnames_1 = (0, tslib_1.__importDefault)(require("classnames"));
const react_1 = (0, tslib_1.__importDefault)(require("react"));
const classnames_1 = tslib_1.__importDefault(require("classnames"));
const react_1 = tslib_1.__importDefault(require("react"));
const uniforms_1 = require("uniforms");
const AutoField_1 = (0, tslib_1.__importDefault)(require("./AutoField"));
const AutoField_1 = tslib_1.__importDefault(require("./AutoField"));
function Nest(_a) {
var { children, className, error, errorMessage, fields, itemProps, label, showInlineError } = _a, props = (0, tslib_1.__rest)(_a, ["children", "className", "error", "errorMessage", "fields", "itemProps", "label", "showInlineError"]);
var { children, className, error, errorMessage, fields, itemProps, label, showInlineError } = _a, props = tslib_1.__rest(_a, ["children", "className", "error", "errorMessage", "fields", "itemProps", "label", "showInlineError"]);
return (react_1.default.createElement("div", Object.assign({ className: (0, classnames_1.default)(className, { 'has-error': error }) }, (0, uniforms_1.filterDOMProps)(props)),

@@ -11,0 +11,0 @@ label && react_1.default.createElement("label", null, label),

import { Ref } from 'react';
import { HTMLFieldProps } from 'uniforms';
export declare type NumFieldProps = HTMLFieldProps<number, HTMLDivElement, {
export type NumFieldProps = HTMLFieldProps<number, HTMLDivElement, {
decimal?: boolean;

@@ -5,0 +5,0 @@ inputClassName?: string;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const classnames_1 = (0, tslib_1.__importDefault)(require("classnames"));
const react_1 = (0, tslib_1.__importDefault)(require("react"));
const classnames_1 = tslib_1.__importDefault(require("classnames"));
const react_1 = tslib_1.__importDefault(require("react"));
const uniforms_1 = require("uniforms");
const wrapField_1 = (0, tslib_1.__importDefault)(require("./wrapField"));
const wrapField_1 = tslib_1.__importDefault(require("./wrapField"));
function Num(props) {

@@ -9,0 +9,0 @@ var _a;

@@ -1,3 +0,1 @@

/// <reference types="react" />
/// <reference types="node" />
declare const _default: {

@@ -8,6 +6,6 @@ new <Model extends import("uniforms").UnknownObject, Props extends import("uniforms").QuickFormProps<Model> = import("uniforms").QuickFormProps<Model>, State extends import("uniforms").QuickFormState<Model> = import("uniforms").QuickFormState<Model>>(props: Props): {

children?: import("react").ReactNode;
id?: string | undefined;
id?: string;
key: string;
noValidate: boolean;
onSubmit: (event?: import("react").SyntheticEvent<Element, Event> | undefined) => Promise<unknown>;
onSubmit: (event?: import("react").SyntheticEvent) => Promise<unknown>;
};

@@ -17,37 +15,31 @@ getAutoField(): import("react").ComponentType<{

}>;
getErrorsField(): import("react").ComponentType<{}>;
getSubmitField(): import("react").ComponentType<{}>;
getErrorsField(): import("react").ComponentType;
getSubmitField(): import("react").ComponentType;
componentDidMount(): void;
componentDidUpdate(prevProps: Props, prevState: State, snapshot: never): void;
componentWillUnmount(): void;
delayId?: NodeJS.Timeout | undefined;
delayId?: ReturnType<typeof setTimeout> | undefined;
mounted: boolean;
reset: () => void;
change: (key: string, value: unknown) => void;
submit: (event?: import("react").SyntheticEvent<Element, Event> | undefined) => Promise<unknown>;
submit: (event?: import("react").SyntheticEvent) => Promise<unknown>;
randomId: () => string;
getContext(): import("uniforms").Context<Model>;
getContextName(): string[];
getContextError(): unknown;
getContext(): import("uniforms/cjs/types").Context<Model>;
getContextName(): import("uniforms/cjs/types").Context<Model>["name"];
getContextError(): import("uniforms/cjs/types").Context<Model>["error"];
getContextModel(): Model;
getContextState(): {
disabled: boolean;
readOnly: boolean;
showInlineError: boolean;
};
getContextSchema(): import("uniforms").Bridge;
getContextOnChange(): (key: string, value: unknown) => void;
getContextOnSubmit(): (event?: import("react").SyntheticEvent<Element, Event> | undefined) => unknown;
getModel(mode?: import("uniforms").ModelTransformMode | undefined, model?: Model | undefined): Model;
getContextState(): import("uniforms/cjs/types").Context<Model>["state"];
getContextSchema(): import("uniforms/cjs/types").Context<Model>["schema"];
getContextOnChange(): import("uniforms/cjs/types").Context<Model>["onChange"];
getContextOnSubmit(): import("uniforms/cjs/types").Context<Model>["onSubmit"];
getModel(mode?: import("uniforms/cjs/types").ModelTransformMode, model?: Model): Model;
onChange(key: string, value: unknown): void;
__reset(state: State): Partial<State>;
onReset(): void;
onSubmit(event?: import("react").SyntheticEvent<Element, Event> | undefined): Promise<unknown>;
render(): JSX.Element;
context: any;
setState<K extends keyof State>(state: State | Pick<State, K> | ((prevState: Readonly<State>, props: Readonly<Props>) => State | Pick<State, K> | null) | null, callback?: (() => void) | undefined): void;
onSubmit(event?: import("react").SyntheticEvent): Promise<unknown>;
render(): import("react").JSX.Element;
context: unknown;
setState<K extends keyof State>(state: State | ((prevState: Readonly<State>, props: Readonly<Props>) => State | Pick<State, K> | null) | Pick<State, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly<Props> & Readonly<{
children?: import("react").ReactNode;
}>;
readonly props: Readonly<Props>;
state: Readonly<State>;

@@ -54,0 +46,0 @@ refs: {

@@ -5,6 +5,6 @@ "use strict";

const uniforms_1 = require("uniforms");
const AutoField_1 = (0, tslib_1.__importDefault)(require("./AutoField"));
const BaseForm_1 = (0, tslib_1.__importDefault)(require("./BaseForm"));
const ErrorsField_1 = (0, tslib_1.__importDefault)(require("./ErrorsField"));
const SubmitField_1 = (0, tslib_1.__importDefault)(require("./SubmitField"));
const AutoField_1 = tslib_1.__importDefault(require("./AutoField"));
const BaseForm_1 = tslib_1.__importDefault(require("./BaseForm"));
const ErrorsField_1 = tslib_1.__importDefault(require("./ErrorsField"));
const SubmitField_1 = tslib_1.__importDefault(require("./SubmitField"));
function Quick(parent) {

@@ -11,0 +11,0 @@ class _ extends uniforms_1.QuickForm.Quick(parent) {

import { HTMLFieldProps } from 'uniforms';
import type { Option } from './types';
export declare type RadioFieldProps = HTMLFieldProps<string, HTMLDivElement, {
export type RadioFieldProps = HTMLFieldProps<string, HTMLDivElement, {
options?: Option<string>[];

@@ -5,0 +5,0 @@ inline?: boolean;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const classnames_1 = (0, tslib_1.__importDefault)(require("classnames"));
const react_1 = (0, tslib_1.__importDefault)(require("react"));
const classnames_1 = tslib_1.__importDefault(require("classnames"));
const react_1 = tslib_1.__importDefault(require("react"));
const uniforms_1 = require("uniforms");
const wrapField_1 = (0, tslib_1.__importDefault)(require("./wrapField"));
const wrapField_1 = tslib_1.__importDefault(require("./wrapField"));
const base64 = typeof btoa === 'undefined'

@@ -9,0 +9,0 @@ ? /* istanbul ignore next */ /* istanbul ignore next */ x => Buffer.from(x).toString('base64')

import { Ref } from 'react';
import { HTMLFieldProps } from 'uniforms';
import type { Option } from './types';
export declare type SelectFieldProps = HTMLFieldProps<string | string[], HTMLDivElement, {
export type SelectFieldProps = HTMLFieldProps<string | string[], HTMLDivElement, {
options?: Option<string>[];

@@ -6,0 +6,0 @@ checkboxes?: boolean;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const classnames_1 = (0, tslib_1.__importDefault)(require("classnames"));
const xor_1 = (0, tslib_1.__importDefault)(require("lodash/xor"));
const react_1 = (0, tslib_1.__importDefault)(require("react"));
const classnames_1 = tslib_1.__importDefault(require("classnames"));
const xor_1 = tslib_1.__importDefault(require("lodash/xor"));
const react_1 = tslib_1.__importDefault(require("react"));
const uniforms_1 = require("uniforms");
const wrapField_1 = (0, tslib_1.__importDefault)(require("./wrapField"));
const wrapField_1 = tslib_1.__importDefault(require("./wrapField"));
const base64 = typeof btoa === 'undefined'

@@ -14,3 +14,3 @@ ? /* istanbul ignore next */ /* istanbul ignore next */ x => Buffer.from(x).toString('base64')

function Select(_a) {
var { options, checkboxes, disabled, error, fieldType, id, inline, inputClassName, inputRef, label, name, onChange, placeholder, readOnly, required, value } = _a, props = (0, tslib_1.__rest)(_a, ["options", "checkboxes", "disabled", "error", "fieldType", "id", "inline", "inputClassName", "inputRef", "label", "name", "onChange", "placeholder", "readOnly", "required", "value"]);
var { options, checkboxes, disabled, error, fieldType, id, inline, inputClassName, inputRef, label, name, onChange, placeholder, readOnly, required, value } = _a, props = tslib_1.__rest(_a, ["options", "checkboxes", "disabled", "error", "fieldType", "id", "inline", "inputClassName", "inputRef", "label", "name", "onChange", "placeholder", "readOnly", "required", "value"]);
const multiple = fieldType === Array;

@@ -17,0 +17,0 @@ return (0, wrapField_1.default)(Object.assign(Object.assign({}, props), { disabled,

@@ -1,4 +0,4 @@

import { HTMLProps, Ref } from 'react';
import React, { HTMLProps, Ref } from 'react';
import { Override } from 'uniforms';
export declare type SubmitFieldProps = Override<HTMLProps<HTMLInputElement>, {
export type SubmitFieldProps = Override<HTMLProps<HTMLInputElement>, {
inputClassName?: string;

@@ -8,3 +8,3 @@ inputRef?: Ref<HTMLInputElement>;

}>;
declare function SubmitField({ className, disabled, inputClassName, inputRef, readOnly, value, wrapClassName, ...props }: SubmitFieldProps): JSX.Element;
declare function SubmitField({ className, disabled, inputClassName, inputRef, readOnly, value, wrapClassName, ...props }: SubmitFieldProps): React.JSX.Element;
declare namespace SubmitField {

@@ -11,0 +11,0 @@ var defaultProps: {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const classnames_1 = (0, tslib_1.__importDefault)(require("classnames"));
const react_1 = (0, tslib_1.__importDefault)(require("react"));
const classnames_1 = tslib_1.__importDefault(require("classnames"));
const react_1 = tslib_1.__importDefault(require("react"));
const uniforms_1 = require("uniforms");
const gridClassName_1 = (0, tslib_1.__importDefault)(require("./gridClassName"));
const gridClassName_1 = tslib_1.__importDefault(require("./gridClassName"));
function SubmitField(_a) {
var { className, disabled, inputClassName, inputRef, readOnly, value, wrapClassName } = _a, props = (0, tslib_1.__rest)(_a, ["className", "disabled", "inputClassName", "inputRef", "readOnly", "value", "wrapClassName"]);
var { className, disabled, inputClassName, inputRef, readOnly, value, wrapClassName } = _a, props = tslib_1.__rest(_a, ["className", "disabled", "inputClassName", "inputRef", "readOnly", "value", "wrapClassName"]);
const { error, state: anyState } = (0, uniforms_1.useForm)();

@@ -11,0 +11,0 @@ const state = anyState;

import { Ref } from 'react';
import { HTMLFieldProps } from 'uniforms';
export declare type TextFieldProps = HTMLFieldProps<string, HTMLInputElement, {
export type TextFieldProps = HTMLFieldProps<string, HTMLInputElement, {
inputClassName?: string;

@@ -5,0 +5,0 @@ inputRef?: Ref<HTMLInputElement>;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const classnames_1 = (0, tslib_1.__importDefault)(require("classnames"));
const omit_1 = (0, tslib_1.__importDefault)(require("lodash/omit"));
const react_1 = (0, tslib_1.__importDefault)(require("react"));
const classnames_1 = tslib_1.__importDefault(require("classnames"));
const omit_1 = tslib_1.__importDefault(require("lodash/omit"));
const react_1 = tslib_1.__importDefault(require("react"));
const uniforms_1 = require("uniforms");
const wrapField_1 = (0, tslib_1.__importDefault)(require("./wrapField"));
const wrapField_1 = tslib_1.__importDefault(require("./wrapField"));
function Text(props) {

@@ -10,0 +10,0 @@ var _a, _b;

/** Option type used in SelectField or RadioField */
export declare type Option<Value> = {
export type Option<Value> = {
disabled?: boolean;

@@ -4,0 +4,0 @@ label?: string;

@@ -1,8 +0,6 @@

/// <reference types="react" />
/// <reference types="node" />
declare const _default: {
new <Model extends import("uniforms").UnknownObject, Props extends import("uniforms").ValidatedFormProps<Model> = import("uniforms").ValidatedFormProps<Model>, State extends import("uniforms").ValidatedFormState<Model> = import("uniforms").ValidatedFormState<Model>>(props: Props): {
validate: (key?: string | undefined, value?: unknown) => Promise<unknown>;
validate: (key?: string, value?: unknown) => Promise<unknown>;
validateModel: (originalModel: any) => Promise<unknown>;
getContextError(): unknown;
getContextError(): import("uniforms").Context<Model>["error"];
getContext(): import("uniforms").Context<Model>;

@@ -12,6 +10,6 @@ getNativeFormProps(): {

children?: import("react").ReactNode;
id?: string | undefined;
id?: string;
key: string;
noValidate: boolean;
onSubmit: (event?: import("react").SyntheticEvent<Element, Event> | undefined) => Promise<unknown>;
onSubmit: (event?: import("react").SyntheticEvent) => Promise<unknown>;
};

@@ -21,32 +19,26 @@ componentDidUpdate(prevProps: Props, prevState: State, snapshot: never): void;

__reset(state: State): Partial<State>;
onSubmit(event?: import("react").SyntheticEvent<Element, Event> | undefined): Promise<unknown>;
onValidate(key?: string | undefined, value?: unknown): Promise<unknown>;
onSubmit(event?: import("react").SyntheticEvent): Promise<unknown>;
onValidate(key?: string, value?: unknown): Promise<unknown>;
onValidateModel(originalModel: Props["model"]): Promise<unknown>;
componentDidMount(): void;
componentWillUnmount(): void;
delayId?: NodeJS.Timeout | undefined;
delayId?: ReturnType<typeof setTimeout> | undefined;
mounted: boolean;
reset: () => void;
change: (key: string, value: unknown) => void;
submit: (event?: import("react").SyntheticEvent<Element, Event> | undefined) => Promise<unknown>;
submit: (event?: import("react").SyntheticEvent) => Promise<unknown>;
randomId: () => string;
getContextName(): string[];
getContextName(): import("uniforms").Context<Model>["name"];
getContextModel(): Model;
getContextState(): {
disabled: boolean;
readOnly: boolean;
showInlineError: boolean;
};
getContextSchema(): import("uniforms").Bridge;
getContextOnChange(): (key: string, value: unknown) => void;
getContextOnSubmit(): (event?: import("react").SyntheticEvent<Element, Event> | undefined) => unknown;
getModel(mode?: import("uniforms").ModelTransformMode | undefined, model?: Model | undefined): Model;
getContextState(): import("uniforms").Context<Model>["state"];
getContextSchema(): import("uniforms").Context<Model>["schema"];
getContextOnChange(): import("uniforms").Context<Model>["onChange"];
getContextOnSubmit(): import("uniforms").Context<Model>["onSubmit"];
getModel(mode?: import("uniforms/cjs/types").ModelTransformMode, model?: Model): Model;
onReset(): void;
render(): JSX.Element;
context: any;
setState<K extends keyof State>(state: State | Pick<State, K> | ((prevState: Readonly<State>, props: Readonly<Props>) => State | Pick<State, K> | null) | null, callback?: (() => void) | undefined): void;
render(): import("react").JSX.Element;
context: unknown;
setState<K extends keyof State>(state: State | ((prevState: Readonly<State>, props: Readonly<Props>) => State | Pick<State, K> | null) | Pick<State, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly<Props> & Readonly<{
children?: import("react").ReactNode;
}>;
readonly props: Readonly<Props>;
state: Readonly<State>;

@@ -53,0 +45,0 @@ refs: {

@@ -5,3 +5,3 @@ "use strict";

const uniforms_1 = require("uniforms");
const BaseForm_1 = (0, tslib_1.__importDefault)(require("./BaseForm"));
const BaseForm_1 = tslib_1.__importDefault(require("./BaseForm"));
function Validated(parent) {

@@ -8,0 +8,0 @@ class _ extends uniforms_1.ValidatedForm.Validated(parent) {

@@ -1,8 +0,6 @@

/// <reference types="react" />
/// <reference types="node" />
declare const _default: {
new <Model extends import("uniforms").UnknownObject, Props extends import("uniforms").ValidatedFormProps<Model> = import("uniforms").ValidatedFormProps<Model>, State extends import("uniforms").ValidatedFormState<Model> = import("uniforms").ValidatedFormState<Model>>(props: Props): {
validate: (key?: string | undefined, value?: unknown) => Promise<unknown>;
validate: (key?: string, value?: unknown) => Promise<unknown>;
validateModel: (originalModel: any) => Promise<unknown>;
getContextError(): unknown;
getContextError(): import("uniforms").Context<Model>["error"];
getContext(): import("uniforms").Context<Model>;

@@ -12,6 +10,6 @@ getNativeFormProps(): {

children?: import("react").ReactNode;
id?: string | undefined;
id?: string;
key: string;
noValidate: boolean;
onSubmit: (event?: import("react").SyntheticEvent<Element, Event> | undefined) => Promise<unknown>;
onSubmit: (event?: import("react").SyntheticEvent) => Promise<unknown>;
};

@@ -21,32 +19,26 @@ componentDidUpdate(prevProps: Props, prevState: State, snapshot: never): void;

__reset(state: State): Partial<State>;
onSubmit(event?: import("react").SyntheticEvent<Element, Event> | undefined): Promise<unknown>;
onValidate(key?: string | undefined, value?: unknown): Promise<unknown>;
onSubmit(event?: import("react").SyntheticEvent): Promise<unknown>;
onValidate(key?: string, value?: unknown): Promise<unknown>;
onValidateModel(originalModel: Props["model"]): Promise<unknown>;
componentDidMount(): void;
componentWillUnmount(): void;
delayId?: NodeJS.Timeout | undefined;
delayId?: ReturnType<typeof setTimeout> | undefined;
mounted: boolean;
reset: () => void;
change: (key: string, value: unknown) => void;
submit: (event?: import("react").SyntheticEvent<Element, Event> | undefined) => Promise<unknown>;
submit: (event?: import("react").SyntheticEvent) => Promise<unknown>;
randomId: () => string;
getContextName(): string[];
getContextName(): import("uniforms").Context<Model>["name"];
getContextModel(): Model;
getContextState(): {
disabled: boolean;
readOnly: boolean;
showInlineError: boolean;
};
getContextSchema(): import("uniforms").Bridge;
getContextOnChange(): (key: string, value: unknown) => void;
getContextOnSubmit(): (event?: import("react").SyntheticEvent<Element, Event> | undefined) => unknown;
getModel(mode?: import("uniforms").ModelTransformMode | undefined, model?: Model | undefined): Model;
getContextState(): import("uniforms").Context<Model>["state"];
getContextSchema(): import("uniforms").Context<Model>["schema"];
getContextOnChange(): import("uniforms").Context<Model>["onChange"];
getContextOnSubmit(): import("uniforms").Context<Model>["onSubmit"];
getModel(mode?: import("uniforms").ModelTransformMode, model?: Model | undefined): Model;
onReset(): void;
render(): JSX.Element;
context: any;
setState<K extends keyof State>(state: State | Pick<State, K> | ((prevState: Readonly<State>, props: Readonly<Props>) => State | Pick<State, K> | null) | null, callback?: (() => void) | undefined): void;
render(): import("react").JSX.Element;
context: unknown;
setState<K extends keyof State>(state: State | ((prevState: Readonly<State>, props: Readonly<Props>) => State | Pick<State, K> | null) | Pick<State, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly<Props> & Readonly<{
children?: import("react").ReactNode;
}>;
readonly props: Readonly<Props>;
state: Readonly<State>;

@@ -80,10 +72,10 @@ refs: {

} & {
new <Model_1 extends import("uniforms").UnknownObject, Props_1 extends import("uniforms").QuickFormProps<Model_1> = import("uniforms").QuickFormProps<Model_1>, State_1 extends import("uniforms").QuickFormState<Model_1> = import("uniforms").QuickFormState<Model_1>>(props: Props_1): {
new <Model extends import("uniforms").UnknownObject, Props extends import("uniforms").QuickFormProps<Model> = import("uniforms").QuickFormProps<Model>, State extends import("uniforms").QuickFormState<Model> = import("uniforms").QuickFormState<Model>>(props: Props): {
getNativeFormProps(): {
[key: string]: unknown;
children?: import("react").ReactNode;
id?: string | undefined;
id?: string;
key: string;
noValidate: boolean;
onSubmit: (event?: import("react").SyntheticEvent<Element, Event> | undefined) => Promise<unknown>;
onSubmit: (event?: import("react").SyntheticEvent) => Promise<unknown>;
};

@@ -93,50 +85,44 @@ getAutoField(): import("react").ComponentType<{

}>;
getErrorsField(): import("react").ComponentType<{}>;
getSubmitField(): import("react").ComponentType<{}>;
getErrorsField(): import("react").ComponentType;
getSubmitField(): import("react").ComponentType;
componentDidMount(): void;
componentDidUpdate(prevProps: Props_1, prevState: State_1, snapshot: never): void;
componentDidUpdate(prevProps: Props, prevState: State, snapshot: never): void;
componentWillUnmount(): void;
delayId?: NodeJS.Timeout | undefined;
delayId?: ReturnType<typeof setTimeout> | undefined;
mounted: boolean;
reset: () => void;
change: (key: string, value: unknown) => void;
submit: (event?: import("react").SyntheticEvent<Element, Event> | undefined) => Promise<unknown>;
submit: (event?: import("react").SyntheticEvent) => Promise<unknown>;
randomId: () => string;
getContext(): import("uniforms").Context<Model_1>;
getContextName(): string[];
getContextError(): unknown;
getContextModel(): Model_1;
getContextState(): {
disabled: boolean;
readOnly: boolean;
showInlineError: boolean;
};
getContextSchema(): import("uniforms").Bridge;
getContextOnChange(): (key: string, value: unknown) => void;
getContextOnSubmit(): (event?: import("react").SyntheticEvent<Element, Event> | undefined) => unknown;
getModel(mode?: import("uniforms").ModelTransformMode | undefined, model?: Model_1 | undefined): Model_1;
getContext(): import("uniforms").Context<Model>;
getContextName(): import("uniforms").Context<Model>["name"];
getContextError(): import("uniforms").Context<Model>["error"];
getContextModel(): Model;
getContextState(): import("uniforms").Context<Model>["state"];
getContextSchema(): import("uniforms").Context<Model>["schema"];
getContextOnChange(): import("uniforms").Context<Model>["onChange"];
getContextOnSubmit(): import("uniforms").Context<Model>["onSubmit"];
getModel(mode?: import("uniforms").ModelTransformMode, model?: Model | undefined): Model;
onChange(key: string, value: unknown): void;
__reset(state: State_1): Partial<State_1>;
__reset(state: State): Partial<State>;
onReset(): void;
onSubmit(event?: import("react").SyntheticEvent<Element, Event> | undefined): Promise<unknown>;
render(): JSX.Element;
context: any;
setState<K_1 extends keyof State_1>(state: State_1 | Pick<State_1, K_1> | ((prevState: Readonly<State_1>, props: Readonly<Props_1>) => State_1 | Pick<State_1, K_1> | null) | null, callback?: (() => void) | undefined): void;
onSubmit(event?: import("react").SyntheticEvent): Promise<unknown>;
render(): import("react").JSX.Element;
context: unknown;
setState<K extends keyof State>(state: State | ((prevState: Readonly<State>, props: Readonly<Props>) => State | Pick<State, K> | null) | Pick<State, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly<Props_1> & Readonly<{
children?: import("react").ReactNode;
}>;
state: Readonly<State_1>;
readonly props: Readonly<Props>;
state: Readonly<State>;
refs: {
[key: string]: import("react").ReactInstance;
};
shouldComponentUpdate?(nextProps: Readonly<Props_1>, nextState: Readonly<State_1>, nextContext: any): boolean;
shouldComponentUpdate?(nextProps: Readonly<Props>, nextState: Readonly<State>, nextContext: any): boolean;
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly<Props_1>, prevState: Readonly<State_1>): any;
getSnapshotBeforeUpdate?(prevProps: Readonly<Props>, prevState: Readonly<State>): any;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly<Props_1>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Props_1>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly<Props_1>, nextState: Readonly<State_1>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly<Props_1>, nextState: Readonly<State_1>, nextContext: any): void;
componentWillReceiveProps?(nextProps: Readonly<Props>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Props>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly<Props>, nextState: Readonly<State>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly<Props>, nextState: Readonly<State>, nextContext: any): void;
};

@@ -143,0 +129,0 @@ Quick: typeof import("uniforms").Quick;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const BaseForm_1 = (0, tslib_1.__importDefault)(require("./BaseForm"));
const QuickForm_1 = (0, tslib_1.__importDefault)(require("./QuickForm"));
const ValidatedForm_1 = (0, tslib_1.__importDefault)(require("./ValidatedForm"));
const BaseForm_1 = tslib_1.__importDefault(require("./BaseForm"));
const QuickForm_1 = tslib_1.__importDefault(require("./QuickForm"));
const ValidatedForm_1 = tslib_1.__importDefault(require("./ValidatedForm"));
exports.default = ValidatedForm_1.default.Validated(QuickForm_1.default.Quick(BaseForm_1.default));

@@ -1,4 +0,4 @@

import { HTMLProps, ReactNode } from 'react';
import React, { HTMLProps, ReactNode } from 'react';
import { Override } from 'uniforms';
declare type WrapperProps = Override<Omit<HTMLProps<HTMLDivElement>, 'onChange'>, {
type WrapperProps = Override<Omit<HTMLProps<HTMLDivElement>, 'onChange'>, {
changed?: boolean;

@@ -22,3 +22,3 @@ error?: unknown;

wrapClassName, // Input wrapper class name.
...props }: WrapperProps, children: ReactNode): JSX.Element;
...props }: WrapperProps, children: ReactNode): React.JSX.Element;
declare module 'uniforms' {

@@ -25,0 +25,0 @@ interface FilterDOMProps {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = wrapField;
const tslib_1 = require("tslib");
const classnames_1 = (0, tslib_1.__importDefault)(require("classnames"));
const omit_1 = (0, tslib_1.__importDefault)(require("lodash/omit"));
const react_1 = (0, tslib_1.__importDefault)(require("react"));
const classnames_1 = tslib_1.__importDefault(require("classnames"));
const omit_1 = tslib_1.__importDefault(require("lodash/omit"));
const react_1 = tslib_1.__importDefault(require("react"));
const uniforms_1 = require("uniforms");
const gridClassName_1 = (0, tslib_1.__importDefault)(require("./gridClassName"));
const gridClassName_1 = tslib_1.__importDefault(require("./gridClassName"));
function wrapField(_a, children) {

@@ -16,3 +17,3 @@ var { changed, className, disabled, error, errorMessage, grid, // Grid is either an number between 1 and 11 or an object with keys like xs and md.

wrapClassName } = _a, // Input wrapper class name.
props = (0, tslib_1.__rest)(_a, ["changed", "className", "disabled", "error", "errorMessage", "grid", "help", "helpClassName", "id", "label", "labelClassName", "required", "showInlineError", "wrapClassName"]);
props = tslib_1.__rest(_a, ["changed", "className", "disabled", "error", "errorMessage", "grid", "help", "helpClassName", "id", "label", "labelClassName", "required", "showInlineError", "wrapClassName"]);
const hasWrap = !!(grid || wrapClassName);

@@ -48,2 +49,1 @@ const blockError = !!(error && showInlineError) && (react_1.default.createElement("span", { className: "form-text text-danger" }, errorMessage));

}
exports.default = wrapField;

@@ -1,4 +0,3 @@

/// <reference types="react" />
export { AutoFieldProps } from 'uniforms';
declare const AutoField: (({ experimental_absoluteName: absoluteName, ...rawProps }: import("uniforms").AutoFieldProps) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) & {
declare const AutoField: (({ experimental_absoluteName: absoluteName, ...rawProps }: import("uniforms").AutoFieldProps) => import("react").ReactElement) & {
componentDetectorContext: import("react").Context<import("uniforms").ComponentDetector>;

@@ -5,0 +4,0 @@ defaultComponentDetector: import("uniforms").ComponentDetector;

import { ComponentType } from 'react';
export declare type AutoFieldsProps = {
export type AutoFieldsProps = {
element?: ComponentType | string;

@@ -4,0 +4,0 @@ fields?: string[];

@@ -1,3 +0,1 @@

/// <reference types="react" />
/// <reference types="node" />
declare const _default: {

@@ -10,6 +8,6 @@ new <Model extends import("uniforms").UnknownObject, Props extends import("uniforms").AutoFormProps<Model> = import("uniforms").AutoFormProps<Model>, State extends import("uniforms").AutoFormState<Model> = import("uniforms").AutoFormState<Model>>(props: Props): {

children?: import("react").ReactNode;
id?: string | undefined;
id?: string;
key: string;
noValidate: boolean;
onSubmit: (event?: import("react").SyntheticEvent<Element, Event> | undefined) => Promise<unknown>;
onSubmit: (event?: import("react").SyntheticEvent) => Promise<unknown>;
};

@@ -19,35 +17,29 @@ getModel(mode: import("uniforms").ModelTransformMode): State["model"];

__reset(state: State): Partial<State>;
validate: (key?: string | undefined, value?: unknown) => Promise<unknown>;
validate: (key?: string, value?: unknown) => Promise<unknown>;
validateModel: (originalModel: any) => Promise<unknown>;
getContextError(): unknown;
getContext(): import("uniforms").Context<Model>;
onSubmit(event?: import("react").SyntheticEvent<Element, Event> | undefined): Promise<unknown>;
onValidate(key?: string | undefined, value?: unknown): Promise<unknown>;
getContextError(): import("uniforms/cjs/types").Context<Model>["error"];
getContext(): import("uniforms/cjs/types").Context<Model>;
onSubmit(event?: import("react").SyntheticEvent): Promise<unknown>;
onValidate(key?: string, value?: unknown): Promise<unknown>;
onValidateModel(originalModel: Props["model"]): Promise<unknown>;
componentDidMount(): void;
componentWillUnmount(): void;
delayId?: NodeJS.Timeout | undefined;
delayId?: ReturnType<typeof setTimeout> | undefined;
mounted: boolean;
reset: () => void;
change: (key: string, value: unknown) => void;
submit: (event?: import("react").SyntheticEvent<Element, Event> | undefined) => Promise<unknown>;
submit: (event?: import("react").SyntheticEvent) => Promise<unknown>;
randomId: () => string;
getContextName(): string[];
getContextName(): import("uniforms/cjs/types").Context<Model>["name"];
getContextModel(): Model;
getContextState(): {
disabled: boolean;
readOnly: boolean;
showInlineError: boolean;
};
getContextSchema(): import("uniforms").Bridge;
getContextOnChange(): (key: string, value: unknown) => void;
getContextOnSubmit(): (event?: import("react").SyntheticEvent<Element, Event> | undefined) => unknown;
getContextState(): import("uniforms/cjs/types").Context<Model>["state"];
getContextSchema(): import("uniforms/cjs/types").Context<Model>["schema"];
getContextOnChange(): import("uniforms/cjs/types").Context<Model>["onChange"];
getContextOnSubmit(): import("uniforms/cjs/types").Context<Model>["onSubmit"];
onReset(): void;
render(): JSX.Element;
context: any;
setState<K extends keyof State>(state: State | Pick<State, K> | ((prevState: Readonly<State>, props: Readonly<Props>) => State | Pick<State, K> | null) | null, callback?: (() => void) | undefined): void;
render(): import("react").JSX.Element;
context: unknown;
setState<K extends keyof State>(state: State | ((prevState: Readonly<State>, props: Readonly<Props>) => State | Pick<State, K> | null) | Pick<State, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly<Props> & Readonly<{
children?: import("react").ReactNode;
}>;
readonly props: Readonly<Props>;
state: Readonly<State>;

@@ -90,61 +82,55 @@ refs: {

} & {
new <Model_1 extends import("uniforms").UnknownObject, Props_1 extends import("uniforms").ValidatedFormProps<Model_1> = import("uniforms").ValidatedFormProps<Model_1>, State_1 extends import("uniforms").ValidatedFormState<Model_1> = import("uniforms").ValidatedFormState<Model_1>>(props: Props_1): {
validate: (key?: string | undefined, value?: unknown) => Promise<unknown>;
new <Model extends import("uniforms").UnknownObject, Props extends import("uniforms").ValidatedFormProps<Model> = import("uniforms").ValidatedFormProps<Model>, State extends import("uniforms").ValidatedFormState<Model> = import("uniforms").ValidatedFormState<Model>>(props: Props): {
validate: (key?: string, value?: unknown) => Promise<unknown>;
validateModel: (originalModel: any) => Promise<unknown>;
getContextError(): unknown;
getContext(): import("uniforms").Context<Model_1>;
getContextError(): import("uniforms/cjs/types").Context<Model>["error"];
getContext(): import("uniforms/cjs/types").Context<Model>;
getNativeFormProps(): {
[key: string]: unknown;
children?: import("react").ReactNode;
id?: string | undefined;
id?: string;
key: string;
noValidate: boolean;
onSubmit: (event?: import("react").SyntheticEvent<Element, Event> | undefined) => Promise<unknown>;
onSubmit: (event?: import("react").SyntheticEvent) => Promise<unknown>;
};
componentDidUpdate(prevProps: Props_1, prevState: State_1, snapshot: never): void;
componentDidUpdate(prevProps: Props, prevState: State, snapshot: never): void;
onChange(key: string, value: unknown): void;
__reset(state: State_1): Partial<State_1>;
onSubmit(event?: import("react").SyntheticEvent<Element, Event> | undefined): Promise<unknown>;
onValidate(key?: string | undefined, value?: unknown): Promise<unknown>;
onValidateModel(originalModel: Props_1["model"]): Promise<unknown>;
__reset(state: State): Partial<State>;
onSubmit(event?: import("react").SyntheticEvent): Promise<unknown>;
onValidate(key?: string, value?: unknown): Promise<unknown>;
onValidateModel(originalModel: Props["model"]): Promise<unknown>;
componentDidMount(): void;
componentWillUnmount(): void;
delayId?: NodeJS.Timeout | undefined;
delayId?: ReturnType<typeof setTimeout> | undefined;
mounted: boolean;
reset: () => void;
change: (key: string, value: unknown) => void;
submit: (event?: import("react").SyntheticEvent<Element, Event> | undefined) => Promise<unknown>;
submit: (event?: import("react").SyntheticEvent) => Promise<unknown>;
randomId: () => string;
getContextName(): string[];
getContextModel(): Model_1;
getContextState(): {
disabled: boolean;
readOnly: boolean;
showInlineError: boolean;
};
getContextSchema(): import("uniforms").Bridge;
getContextOnChange(): (key: string, value: unknown) => void;
getContextOnSubmit(): (event?: import("react").SyntheticEvent<Element, Event> | undefined) => unknown;
getModel(mode?: import("uniforms").ModelTransformMode | undefined, model?: Model_1 | undefined): Model_1;
getContextName(): import("uniforms/cjs/types").Context<Model>["name"];
getContextModel(): Model;
getContextState(): import("uniforms/cjs/types").Context<Model>["state"];
getContextSchema(): import("uniforms/cjs/types").Context<Model>["schema"];
getContextOnChange(): import("uniforms/cjs/types").Context<Model>["onChange"];
getContextOnSubmit(): import("uniforms/cjs/types").Context<Model>["onSubmit"];
getModel(mode?: import("uniforms").ModelTransformMode, model?: Model): Model;
onReset(): void;
render(): JSX.Element;
context: any;
setState<K_1 extends keyof State_1>(state: State_1 | Pick<State_1, K_1> | ((prevState: Readonly<State_1>, props: Readonly<Props_1>) => State_1 | Pick<State_1, K_1> | null) | null, callback?: (() => void) | undefined): void;
render(): import("react").JSX.Element;
context: unknown;
setState<K extends keyof State>(state: State | ((prevState: Readonly<State>, props: Readonly<Props>) => State | Pick<State, K> | null) | Pick<State, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly<Props_1> & Readonly<{
children?: import("react").ReactNode;
}>;
state: Readonly<State_1>;
readonly props: Readonly<Props>;
state: Readonly<State>;
refs: {
[key: string]: import("react").ReactInstance;
};
shouldComponentUpdate?(nextProps: Readonly<Props_1>, nextState: Readonly<State_1>, nextContext: any): boolean;
shouldComponentUpdate?(nextProps: Readonly<Props>, nextState: Readonly<State>, nextContext: any): boolean;
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly<Props_1>, prevState: Readonly<State_1>): any;
getSnapshotBeforeUpdate?(prevProps: Readonly<Props>, prevState: Readonly<State>): any;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly<Props_1>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Props_1>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly<Props_1>, nextState: Readonly<State_1>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly<Props_1>, nextState: Readonly<State_1>, nextContext: any): void;
componentWillReceiveProps?(nextProps: Readonly<Props>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Props>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly<Props>, nextState: Readonly<State>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly<Props>, nextState: Readonly<State>, nextContext: any): void;
};

@@ -165,10 +151,10 @@ Validated: typeof import("uniforms").Validated;

} & {
new <Model_2 extends import("uniforms").UnknownObject, Props_2 extends import("uniforms").QuickFormProps<Model_2> = import("uniforms").QuickFormProps<Model_2>, State_2 extends import("uniforms").QuickFormState<Model_2> = import("uniforms").QuickFormState<Model_2>>(props: Props_2): {
new <Model extends import("uniforms").UnknownObject, Props extends import("uniforms").QuickFormProps<Model> = import("uniforms").QuickFormProps<Model>, State extends import("uniforms").QuickFormState<Model> = import("uniforms").QuickFormState<Model>>(props: Props): {
getNativeFormProps(): {
[key: string]: unknown;
children?: import("react").ReactNode;
id?: string | undefined;
id?: string;
key: string;
noValidate: boolean;
onSubmit: (event?: import("react").SyntheticEvent<Element, Event> | undefined) => Promise<unknown>;
onSubmit: (event?: import("react").SyntheticEvent) => Promise<unknown>;
};

@@ -178,50 +164,44 @@ getAutoField(): import("react").ComponentType<{

}>;
getErrorsField(): import("react").ComponentType<{}>;
getSubmitField(): import("react").ComponentType<{}>;
getErrorsField(): import("react").ComponentType;
getSubmitField(): import("react").ComponentType;
componentDidMount(): void;
componentDidUpdate(prevProps: Props_2, prevState: State_2, snapshot: never): void;
componentDidUpdate(prevProps: Props, prevState: State, snapshot: never): void;
componentWillUnmount(): void;
delayId?: NodeJS.Timeout | undefined;
delayId?: ReturnType<typeof setTimeout> | undefined;
mounted: boolean;
reset: () => void;
change: (key: string, value: unknown) => void;
submit: (event?: import("react").SyntheticEvent<Element, Event> | undefined) => Promise<unknown>;
submit: (event?: import("react").SyntheticEvent) => Promise<unknown>;
randomId: () => string;
getContext(): import("uniforms").Context<Model_2>;
getContextName(): string[];
getContextError(): unknown;
getContextModel(): Model_2;
getContextState(): {
disabled: boolean;
readOnly: boolean;
showInlineError: boolean;
};
getContextSchema(): import("uniforms").Bridge;
getContextOnChange(): (key: string, value: unknown) => void;
getContextOnSubmit(): (event?: import("react").SyntheticEvent<Element, Event> | undefined) => unknown;
getModel(mode?: import("uniforms").ModelTransformMode | undefined, model?: Model_2 | undefined): Model_2;
getContext(): import("uniforms/cjs/types").Context<Model>;
getContextName(): import("uniforms/cjs/types").Context<Model>["name"];
getContextError(): import("uniforms/cjs/types").Context<Model>["error"];
getContextModel(): Model;
getContextState(): import("uniforms/cjs/types").Context<Model>["state"];
getContextSchema(): import("uniforms/cjs/types").Context<Model>["schema"];
getContextOnChange(): import("uniforms/cjs/types").Context<Model>["onChange"];
getContextOnSubmit(): import("uniforms/cjs/types").Context<Model>["onSubmit"];
getModel(mode?: import("uniforms").ModelTransformMode, model?: Model): Model;
onChange(key: string, value: unknown): void;
__reset(state: State_2): Partial<State_2>;
__reset(state: State): Partial<State>;
onReset(): void;
onSubmit(event?: import("react").SyntheticEvent<Element, Event> | undefined): Promise<unknown>;
render(): JSX.Element;
context: any;
setState<K_2 extends keyof State_2>(state: State_2 | Pick<State_2, K_2> | ((prevState: Readonly<State_2>, props: Readonly<Props_2>) => State_2 | Pick<State_2, K_2> | null) | null, callback?: (() => void) | undefined): void;
onSubmit(event?: import("react").SyntheticEvent): Promise<unknown>;
render(): import("react").JSX.Element;
context: unknown;
setState<K extends keyof State>(state: State | ((prevState: Readonly<State>, props: Readonly<Props>) => State | Pick<State, K> | null) | Pick<State, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly<Props_2> & Readonly<{
children?: import("react").ReactNode;
}>;
state: Readonly<State_2>;
readonly props: Readonly<Props>;
state: Readonly<State>;
refs: {
[key: string]: import("react").ReactInstance;
};
shouldComponentUpdate?(nextProps: Readonly<Props_2>, nextState: Readonly<State_2>, nextContext: any): boolean;
shouldComponentUpdate?(nextProps: Readonly<Props>, nextState: Readonly<State>, nextContext: any): boolean;
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly<Props_2>, prevState: Readonly<State_2>): any;
getSnapshotBeforeUpdate?(prevProps: Readonly<Props>, prevState: Readonly<State>): any;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly<Props_2>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Props_2>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly<Props_2>, nextState: Readonly<State_2>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly<Props_2>, nextState: Readonly<State_2>, nextContext: any): void;
componentWillReceiveProps?(nextProps: Readonly<Props>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Props>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly<Props>, nextState: Readonly<State>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly<Props>, nextState: Readonly<State>, nextContext: any): void;
};

@@ -228,0 +208,0 @@ Quick: typeof import("uniforms").Quick;

import { Ref } from 'react';
import { HTMLFieldProps } from 'uniforms';
export declare type BoolFieldProps = HTMLFieldProps<boolean, HTMLDivElement, {
export type BoolFieldProps = HTMLFieldProps<boolean, HTMLDivElement, {
inline?: boolean;

@@ -5,0 +5,0 @@ inputClassName?: string;

import { Ref } from 'react';
import { HTMLFieldProps } from 'uniforms';
declare type DateFieldType = 'date' | 'datetime-local';
export declare type DateFieldProps = HTMLFieldProps<Date, HTMLDivElement, {
type DateFieldType = 'date' | 'datetime-local';
export type DateFieldProps = HTMLFieldProps<Date, HTMLDivElement, {
inputClassName?: string;

@@ -6,0 +6,0 @@ inputRef?: Ref<HTMLInputElement>;

import React, { HTMLProps } from 'react';
import { Override } from 'uniforms';
export declare type ErrorFieldProps = Override<Omit<HTMLProps<HTMLDivElement>, 'onChange'>, {
export type ErrorFieldProps = Override<Omit<HTMLProps<HTMLDivElement>, 'onChange'>, {
error?: any;

@@ -9,5 +9,5 @@ errorMessage?: string;

error?: any;
errorMessage?: string | undefined;
errorMessage?: string;
} & Omit<Omit<React.HTMLProps<HTMLDivElement>, "onChange">, "error" | "errorMessage">, string | number | readonly string[] | undefined>;
export default _default;
//# sourceMappingURL=ErrorField.d.ts.map

@@ -1,5 +0,5 @@

import { HTMLProps } from 'react';
export declare type ErrorsFieldProps = HTMLProps<HTMLDivElement>;
declare function ErrorsField({ children, className, ...props }: ErrorsFieldProps): JSX.Element | null;
import React, { HTMLProps } from 'react';
export type ErrorsFieldProps = HTMLProps<HTMLDivElement>;
declare function ErrorsField({ children, className, ...props }: ErrorsFieldProps): React.JSX.Element | null;
export default ErrorsField;
//# sourceMappingURL=ErrorsField.d.ts.map

@@ -1,4 +0,3 @@

declare type GridSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
export type GridSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
export default function gridClassName(grid?: number | string | Partial<Record<GridSize, number>>, side?: 'input' | 'label'): string;
export {};
//# sourceMappingURL=gridClassName.d.ts.map

@@ -1,4 +0,4 @@

import { HTMLProps, Ref } from 'react';
import React, { HTMLProps, Ref } from 'react';
import { Override } from 'uniforms';
export declare type HiddenFieldProps = Override<HTMLProps<HTMLInputElement>, {
export type HiddenFieldProps = Override<HTMLProps<HTMLInputElement>, {
inputRef?: Ref<HTMLInputElement>;

@@ -9,3 +9,3 @@ name: string;

}>;
export default function HiddenField({ value, ...rawProps }: HiddenFieldProps): JSX.Element | null;
export default function HiddenField({ value, ...rawProps }: HiddenFieldProps): React.JSX.Element | null;
//# sourceMappingURL=HiddenField.d.ts.map
import { ReactNode } from 'react';
import { HTMLFieldProps } from 'uniforms';
export declare type ListAddFieldProps = HTMLFieldProps<unknown, HTMLDivElement, {
export type ListAddFieldProps = HTMLFieldProps<unknown, HTMLDivElement, {
addIcon?: ReactNode;

@@ -5,0 +5,0 @@ }>;

import { ReactNode } from 'react';
import { HTMLFieldProps } from 'uniforms';
export declare type ListDelFieldProps = HTMLFieldProps<unknown, HTMLSpanElement, {
export type ListDelFieldProps = HTMLFieldProps<unknown, HTMLSpanElement, {
removeIcon?: ReactNode;

@@ -5,0 +5,0 @@ }>;

import { ReactNode } from 'react';
import { HTMLFieldProps } from 'uniforms';
export declare type ListFieldProps = HTMLFieldProps<unknown[], HTMLDivElement, {
export type ListFieldProps = HTMLFieldProps<unknown[], HTMLDivElement, {
addIcon?: ReactNode;

@@ -5,0 +5,0 @@ itemProps?: object;

import { ReactNode } from 'react';
export declare type ListItemFieldProps = {
export type ListItemFieldProps = {
children?: ReactNode;

@@ -4,0 +4,0 @@ name: string;

import { Ref } from 'react';
import { HTMLFieldProps } from 'uniforms';
export declare type LongTextFieldProps = HTMLFieldProps<string, HTMLDivElement, {
export type LongTextFieldProps = HTMLFieldProps<string, HTMLDivElement, {
inputClassName?: string;

@@ -5,0 +5,0 @@ inputRef?: Ref<HTMLTextAreaElement>;

import { HTMLFieldProps } from 'uniforms';
export declare type NestFieldProps = HTMLFieldProps<object, HTMLDivElement, {
export type NestFieldProps = HTMLFieldProps<object, HTMLDivElement, {
itemProps?: object;

@@ -4,0 +4,0 @@ }>;

import { Ref } from 'react';
import { HTMLFieldProps } from 'uniforms';
export declare type NumFieldProps = HTMLFieldProps<number, HTMLDivElement, {
export type NumFieldProps = HTMLFieldProps<number, HTMLDivElement, {
decimal?: boolean;

@@ -5,0 +5,0 @@ inputClassName?: string;

@@ -1,3 +0,1 @@

/// <reference types="react" />
/// <reference types="node" />
declare const _default: {

@@ -8,6 +6,6 @@ new <Model extends import("uniforms").UnknownObject, Props extends import("uniforms").QuickFormProps<Model> = import("uniforms").QuickFormProps<Model>, State extends import("uniforms").QuickFormState<Model> = import("uniforms").QuickFormState<Model>>(props: Props): {

children?: import("react").ReactNode;
id?: string | undefined;
id?: string;
key: string;
noValidate: boolean;
onSubmit: (event?: import("react").SyntheticEvent<Element, Event> | undefined) => Promise<unknown>;
onSubmit: (event?: import("react").SyntheticEvent) => Promise<unknown>;
};

@@ -17,37 +15,31 @@ getAutoField(): import("react").ComponentType<{

}>;
getErrorsField(): import("react").ComponentType<{}>;
getSubmitField(): import("react").ComponentType<{}>;
getErrorsField(): import("react").ComponentType;
getSubmitField(): import("react").ComponentType;
componentDidMount(): void;
componentDidUpdate(prevProps: Props, prevState: State, snapshot: never): void;
componentWillUnmount(): void;
delayId?: NodeJS.Timeout | undefined;
delayId?: ReturnType<typeof setTimeout> | undefined;
mounted: boolean;
reset: () => void;
change: (key: string, value: unknown) => void;
submit: (event?: import("react").SyntheticEvent<Element, Event> | undefined) => Promise<unknown>;
submit: (event?: import("react").SyntheticEvent) => Promise<unknown>;
randomId: () => string;
getContext(): import("uniforms").Context<Model>;
getContextName(): string[];
getContextError(): unknown;
getContext(): import("uniforms/cjs/types").Context<Model>;
getContextName(): import("uniforms/cjs/types").Context<Model>["name"];
getContextError(): import("uniforms/cjs/types").Context<Model>["error"];
getContextModel(): Model;
getContextState(): {
disabled: boolean;
readOnly: boolean;
showInlineError: boolean;
};
getContextSchema(): import("uniforms").Bridge;
getContextOnChange(): (key: string, value: unknown) => void;
getContextOnSubmit(): (event?: import("react").SyntheticEvent<Element, Event> | undefined) => unknown;
getModel(mode?: import("uniforms").ModelTransformMode | undefined, model?: Model | undefined): Model;
getContextState(): import("uniforms/cjs/types").Context<Model>["state"];
getContextSchema(): import("uniforms/cjs/types").Context<Model>["schema"];
getContextOnChange(): import("uniforms/cjs/types").Context<Model>["onChange"];
getContextOnSubmit(): import("uniforms/cjs/types").Context<Model>["onSubmit"];
getModel(mode?: import("uniforms/cjs/types").ModelTransformMode, model?: Model): Model;
onChange(key: string, value: unknown): void;
__reset(state: State): Partial<State>;
onReset(): void;
onSubmit(event?: import("react").SyntheticEvent<Element, Event> | undefined): Promise<unknown>;
render(): JSX.Element;
context: any;
setState<K extends keyof State>(state: State | Pick<State, K> | ((prevState: Readonly<State>, props: Readonly<Props>) => State | Pick<State, K> | null) | null, callback?: (() => void) | undefined): void;
onSubmit(event?: import("react").SyntheticEvent): Promise<unknown>;
render(): import("react").JSX.Element;
context: unknown;
setState<K extends keyof State>(state: State | ((prevState: Readonly<State>, props: Readonly<Props>) => State | Pick<State, K> | null) | Pick<State, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly<Props> & Readonly<{
children?: import("react").ReactNode;
}>;
readonly props: Readonly<Props>;
state: Readonly<State>;

@@ -54,0 +46,0 @@ refs: {

import { HTMLFieldProps } from 'uniforms';
import type { Option } from './types';
export declare type RadioFieldProps = HTMLFieldProps<string, HTMLDivElement, {
export type RadioFieldProps = HTMLFieldProps<string, HTMLDivElement, {
options?: Option<string>[];

@@ -5,0 +5,0 @@ inline?: boolean;

import { Ref } from 'react';
import { HTMLFieldProps } from 'uniforms';
import type { Option } from './types';
export declare type SelectFieldProps = HTMLFieldProps<string | string[], HTMLDivElement, {
export type SelectFieldProps = HTMLFieldProps<string | string[], HTMLDivElement, {
options?: Option<string>[];

@@ -6,0 +6,0 @@ checkboxes?: boolean;

@@ -1,4 +0,4 @@

import { HTMLProps, Ref } from 'react';
import React, { HTMLProps, Ref } from 'react';
import { Override } from 'uniforms';
export declare type SubmitFieldProps = Override<HTMLProps<HTMLInputElement>, {
export type SubmitFieldProps = Override<HTMLProps<HTMLInputElement>, {
inputClassName?: string;

@@ -8,3 +8,3 @@ inputRef?: Ref<HTMLInputElement>;

}>;
declare function SubmitField({ className, disabled, inputClassName, inputRef, readOnly, value, wrapClassName, ...props }: SubmitFieldProps): JSX.Element;
declare function SubmitField({ className, disabled, inputClassName, inputRef, readOnly, value, wrapClassName, ...props }: SubmitFieldProps): React.JSX.Element;
declare namespace SubmitField {

@@ -11,0 +11,0 @@ var defaultProps: {

import { Ref } from 'react';
import { HTMLFieldProps } from 'uniforms';
export declare type TextFieldProps = HTMLFieldProps<string, HTMLInputElement, {
export type TextFieldProps = HTMLFieldProps<string, HTMLInputElement, {
inputClassName?: string;

@@ -5,0 +5,0 @@ inputRef?: Ref<HTMLInputElement>;

/** Option type used in SelectField or RadioField */
export declare type Option<Value> = {
export type Option<Value> = {
disabled?: boolean;

@@ -4,0 +4,0 @@ label?: string;

@@ -1,8 +0,6 @@

/// <reference types="react" />
/// <reference types="node" />
declare const _default: {
new <Model extends import("uniforms").UnknownObject, Props extends import("uniforms").ValidatedFormProps<Model> = import("uniforms").ValidatedFormProps<Model>, State extends import("uniforms").ValidatedFormState<Model> = import("uniforms").ValidatedFormState<Model>>(props: Props): {
validate: (key?: string | undefined, value?: unknown) => Promise<unknown>;
validate: (key?: string, value?: unknown) => Promise<unknown>;
validateModel: (originalModel: any) => Promise<unknown>;
getContextError(): unknown;
getContextError(): import("uniforms").Context<Model>["error"];
getContext(): import("uniforms").Context<Model>;

@@ -12,6 +10,6 @@ getNativeFormProps(): {

children?: import("react").ReactNode;
id?: string | undefined;
id?: string;
key: string;
noValidate: boolean;
onSubmit: (event?: import("react").SyntheticEvent<Element, Event> | undefined) => Promise<unknown>;
onSubmit: (event?: import("react").SyntheticEvent) => Promise<unknown>;
};

@@ -21,32 +19,26 @@ componentDidUpdate(prevProps: Props, prevState: State, snapshot: never): void;

__reset(state: State): Partial<State>;
onSubmit(event?: import("react").SyntheticEvent<Element, Event> | undefined): Promise<unknown>;
onValidate(key?: string | undefined, value?: unknown): Promise<unknown>;
onSubmit(event?: import("react").SyntheticEvent): Promise<unknown>;
onValidate(key?: string, value?: unknown): Promise<unknown>;
onValidateModel(originalModel: Props["model"]): Promise<unknown>;
componentDidMount(): void;
componentWillUnmount(): void;
delayId?: NodeJS.Timeout | undefined;
delayId?: ReturnType<typeof setTimeout> | undefined;
mounted: boolean;
reset: () => void;
change: (key: string, value: unknown) => void;
submit: (event?: import("react").SyntheticEvent<Element, Event> | undefined) => Promise<unknown>;
submit: (event?: import("react").SyntheticEvent) => Promise<unknown>;
randomId: () => string;
getContextName(): string[];
getContextName(): import("uniforms").Context<Model>["name"];
getContextModel(): Model;
getContextState(): {
disabled: boolean;
readOnly: boolean;
showInlineError: boolean;
};
getContextSchema(): import("uniforms").Bridge;
getContextOnChange(): (key: string, value: unknown) => void;
getContextOnSubmit(): (event?: import("react").SyntheticEvent<Element, Event> | undefined) => unknown;
getModel(mode?: import("uniforms").ModelTransformMode | undefined, model?: Model | undefined): Model;
getContextState(): import("uniforms").Context<Model>["state"];
getContextSchema(): import("uniforms").Context<Model>["schema"];
getContextOnChange(): import("uniforms").Context<Model>["onChange"];
getContextOnSubmit(): import("uniforms").Context<Model>["onSubmit"];
getModel(mode?: import("uniforms/cjs/types").ModelTransformMode, model?: Model): Model;
onReset(): void;
render(): JSX.Element;
context: any;
setState<K extends keyof State>(state: State | Pick<State, K> | ((prevState: Readonly<State>, props: Readonly<Props>) => State | Pick<State, K> | null) | null, callback?: (() => void) | undefined): void;
render(): import("react").JSX.Element;
context: unknown;
setState<K extends keyof State>(state: State | ((prevState: Readonly<State>, props: Readonly<Props>) => State | Pick<State, K> | null) | Pick<State, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly<Props> & Readonly<{
children?: import("react").ReactNode;
}>;
readonly props: Readonly<Props>;
state: Readonly<State>;

@@ -53,0 +45,0 @@ refs: {

@@ -1,8 +0,6 @@

/// <reference types="react" />
/// <reference types="node" />
declare const _default: {
new <Model extends import("uniforms").UnknownObject, Props extends import("uniforms").ValidatedFormProps<Model> = import("uniforms").ValidatedFormProps<Model>, State extends import("uniforms").ValidatedFormState<Model> = import("uniforms").ValidatedFormState<Model>>(props: Props): {
validate: (key?: string | undefined, value?: unknown) => Promise<unknown>;
validate: (key?: string, value?: unknown) => Promise<unknown>;
validateModel: (originalModel: any) => Promise<unknown>;
getContextError(): unknown;
getContextError(): import("uniforms").Context<Model>["error"];
getContext(): import("uniforms").Context<Model>;

@@ -12,6 +10,6 @@ getNativeFormProps(): {

children?: import("react").ReactNode;
id?: string | undefined;
id?: string;
key: string;
noValidate: boolean;
onSubmit: (event?: import("react").SyntheticEvent<Element, Event> | undefined) => Promise<unknown>;
onSubmit: (event?: import("react").SyntheticEvent) => Promise<unknown>;
};

@@ -21,32 +19,26 @@ componentDidUpdate(prevProps: Props, prevState: State, snapshot: never): void;

__reset(state: State): Partial<State>;
onSubmit(event?: import("react").SyntheticEvent<Element, Event> | undefined): Promise<unknown>;
onValidate(key?: string | undefined, value?: unknown): Promise<unknown>;
onSubmit(event?: import("react").SyntheticEvent): Promise<unknown>;
onValidate(key?: string, value?: unknown): Promise<unknown>;
onValidateModel(originalModel: Props["model"]): Promise<unknown>;
componentDidMount(): void;
componentWillUnmount(): void;
delayId?: NodeJS.Timeout | undefined;
delayId?: ReturnType<typeof setTimeout> | undefined;
mounted: boolean;
reset: () => void;
change: (key: string, value: unknown) => void;
submit: (event?: import("react").SyntheticEvent<Element, Event> | undefined) => Promise<unknown>;
submit: (event?: import("react").SyntheticEvent) => Promise<unknown>;
randomId: () => string;
getContextName(): string[];
getContextName(): import("uniforms").Context<Model>["name"];
getContextModel(): Model;
getContextState(): {
disabled: boolean;
readOnly: boolean;
showInlineError: boolean;
};
getContextSchema(): import("uniforms").Bridge;
getContextOnChange(): (key: string, value: unknown) => void;
getContextOnSubmit(): (event?: import("react").SyntheticEvent<Element, Event> | undefined) => unknown;
getModel(mode?: import("uniforms").ModelTransformMode | undefined, model?: Model | undefined): Model;
getContextState(): import("uniforms").Context<Model>["state"];
getContextSchema(): import("uniforms").Context<Model>["schema"];
getContextOnChange(): import("uniforms").Context<Model>["onChange"];
getContextOnSubmit(): import("uniforms").Context<Model>["onSubmit"];
getModel(mode?: import("uniforms").ModelTransformMode, model?: Model | undefined): Model;
onReset(): void;
render(): JSX.Element;
context: any;
setState<K extends keyof State>(state: State | Pick<State, K> | ((prevState: Readonly<State>, props: Readonly<Props>) => State | Pick<State, K> | null) | null, callback?: (() => void) | undefined): void;
render(): import("react").JSX.Element;
context: unknown;
setState<K extends keyof State>(state: State | ((prevState: Readonly<State>, props: Readonly<Props>) => State | Pick<State, K> | null) | Pick<State, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly<Props> & Readonly<{
children?: import("react").ReactNode;
}>;
readonly props: Readonly<Props>;
state: Readonly<State>;

@@ -80,10 +72,10 @@ refs: {

} & {
new <Model_1 extends import("uniforms").UnknownObject, Props_1 extends import("uniforms").QuickFormProps<Model_1> = import("uniforms").QuickFormProps<Model_1>, State_1 extends import("uniforms").QuickFormState<Model_1> = import("uniforms").QuickFormState<Model_1>>(props: Props_1): {
new <Model extends import("uniforms").UnknownObject, Props extends import("uniforms").QuickFormProps<Model> = import("uniforms").QuickFormProps<Model>, State extends import("uniforms").QuickFormState<Model> = import("uniforms").QuickFormState<Model>>(props: Props): {
getNativeFormProps(): {
[key: string]: unknown;
children?: import("react").ReactNode;
id?: string | undefined;
id?: string;
key: string;
noValidate: boolean;
onSubmit: (event?: import("react").SyntheticEvent<Element, Event> | undefined) => Promise<unknown>;
onSubmit: (event?: import("react").SyntheticEvent) => Promise<unknown>;
};

@@ -93,50 +85,44 @@ getAutoField(): import("react").ComponentType<{

}>;
getErrorsField(): import("react").ComponentType<{}>;
getSubmitField(): import("react").ComponentType<{}>;
getErrorsField(): import("react").ComponentType;
getSubmitField(): import("react").ComponentType;
componentDidMount(): void;
componentDidUpdate(prevProps: Props_1, prevState: State_1, snapshot: never): void;
componentDidUpdate(prevProps: Props, prevState: State, snapshot: never): void;
componentWillUnmount(): void;
delayId?: NodeJS.Timeout | undefined;
delayId?: ReturnType<typeof setTimeout> | undefined;
mounted: boolean;
reset: () => void;
change: (key: string, value: unknown) => void;
submit: (event?: import("react").SyntheticEvent<Element, Event> | undefined) => Promise<unknown>;
submit: (event?: import("react").SyntheticEvent) => Promise<unknown>;
randomId: () => string;
getContext(): import("uniforms").Context<Model_1>;
getContextName(): string[];
getContextError(): unknown;
getContextModel(): Model_1;
getContextState(): {
disabled: boolean;
readOnly: boolean;
showInlineError: boolean;
};
getContextSchema(): import("uniforms").Bridge;
getContextOnChange(): (key: string, value: unknown) => void;
getContextOnSubmit(): (event?: import("react").SyntheticEvent<Element, Event> | undefined) => unknown;
getModel(mode?: import("uniforms").ModelTransformMode | undefined, model?: Model_1 | undefined): Model_1;
getContext(): import("uniforms").Context<Model>;
getContextName(): import("uniforms").Context<Model>["name"];
getContextError(): import("uniforms").Context<Model>["error"];
getContextModel(): Model;
getContextState(): import("uniforms").Context<Model>["state"];
getContextSchema(): import("uniforms").Context<Model>["schema"];
getContextOnChange(): import("uniforms").Context<Model>["onChange"];
getContextOnSubmit(): import("uniforms").Context<Model>["onSubmit"];
getModel(mode?: import("uniforms").ModelTransformMode, model?: Model | undefined): Model;
onChange(key: string, value: unknown): void;
__reset(state: State_1): Partial<State_1>;
__reset(state: State): Partial<State>;
onReset(): void;
onSubmit(event?: import("react").SyntheticEvent<Element, Event> | undefined): Promise<unknown>;
render(): JSX.Element;
context: any;
setState<K_1 extends keyof State_1>(state: State_1 | Pick<State_1, K_1> | ((prevState: Readonly<State_1>, props: Readonly<Props_1>) => State_1 | Pick<State_1, K_1> | null) | null, callback?: (() => void) | undefined): void;
onSubmit(event?: import("react").SyntheticEvent): Promise<unknown>;
render(): import("react").JSX.Element;
context: unknown;
setState<K extends keyof State>(state: State | ((prevState: Readonly<State>, props: Readonly<Props>) => State | Pick<State, K> | null) | Pick<State, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly<Props_1> & Readonly<{
children?: import("react").ReactNode;
}>;
state: Readonly<State_1>;
readonly props: Readonly<Props>;
state: Readonly<State>;
refs: {
[key: string]: import("react").ReactInstance;
};
shouldComponentUpdate?(nextProps: Readonly<Props_1>, nextState: Readonly<State_1>, nextContext: any): boolean;
shouldComponentUpdate?(nextProps: Readonly<Props>, nextState: Readonly<State>, nextContext: any): boolean;
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly<Props_1>, prevState: Readonly<State_1>): any;
getSnapshotBeforeUpdate?(prevProps: Readonly<Props>, prevState: Readonly<State>): any;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly<Props_1>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Props_1>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly<Props_1>, nextState: Readonly<State_1>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly<Props_1>, nextState: Readonly<State_1>, nextContext: any): void;
componentWillReceiveProps?(nextProps: Readonly<Props>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Props>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly<Props>, nextState: Readonly<State>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly<Props>, nextState: Readonly<State>, nextContext: any): void;
};

@@ -143,0 +129,0 @@ Quick: typeof import("uniforms").Quick;

@@ -1,4 +0,4 @@

import { HTMLProps, ReactNode } from 'react';
import React, { HTMLProps, ReactNode } from 'react';
import { Override } from 'uniforms';
declare type WrapperProps = Override<Omit<HTMLProps<HTMLDivElement>, 'onChange'>, {
type WrapperProps = Override<Omit<HTMLProps<HTMLDivElement>, 'onChange'>, {
changed?: boolean;

@@ -22,3 +22,3 @@ error?: unknown;

wrapClassName, // Input wrapper class name.
...props }: WrapperProps, children: ReactNode): JSX.Element;
...props }: WrapperProps, children: ReactNode): React.JSX.Element;
declare module 'uniforms' {

@@ -25,0 +25,0 @@ interface FilterDOMProps {

{
"name": "uniforms-bootstrap4",
"version": "4.0.0-alpha.6",
"version": "4.0.0-beta.1",
"license": "MIT",

@@ -31,3 +31,4 @@ "main": "./cjs/index.js",

"peerDependencies": {
"react": "^18.0.0 || ^17.0.0 || ^16.8.0"
"react": "^18.0.0 || ^17.0.0 || ^16.8.0",
"uniforms": "4.0.0-beta.1"
},

@@ -38,6 +39,17 @@ "dependencies": {

"lodash": "^4.0.0",
"tslib": "^2.2.0",
"uniforms": "^4.0.0-alpha.6",
"warning": "^4.0.0"
},
"devDependencies": {
"@types/invariant": "2.2.37",
"@types/lodash": "4.17.5",
"@types/react": "18.3.12",
"tslib": "2.2.0",
"typescript": "5.5.4",
"uniforms": "workspace:*",
"zod": "^3.0.0"
},
"scripts": {
"build:cjs": "tsc --build tsconfig.cjs.json",
"build:esm": "tsc --build tsconfig.esm.json"
}
}

@@ -12,3 +12,3 @@ function gridClassNamePart(

type GridSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
export type GridSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
const gridOrder = { xs: 1, sm: 2, md: 3, lg: 4, xl: 5 };

@@ -49,3 +49,3 @@

// @ts-expect-error Weird type refinement problem.
.map(size => gridClassNamePart(size, grid[size], side))
.map(size => gridClassNamePart(size, grid[size] as number, side))
.join(' ')

@@ -52,0 +52,0 @@ );

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