UNPKG

@skbkontur/react-imask

Version:

React input mask

143 lines 12.5 kB
import React from 'react'; import { type IMaskInputProps } from './mixin.js'; declare const IMaskInput: React.ForwardRefExoticComponent<(Omit<import("./mixin.js").ReactElementProps<HTMLInputElement> & Omit<import("./mixin.js").ReactMaskProps<HTMLInputElement, { [x: string]: unknown; }>, "ref"> & Partial<Pick<import("@skbkontur/imask").MaskedRegExp, "mask" | "eager" | "parent" | "format" | "prepare" | "prepareChar" | "validate" | "commit" | "parse" | "overwrite" | "skipInvalid" | "autofix">> & { ref?: React.Ref<React.ComponentType<IMaskInputProps<HTMLInputElement>>> | undefined; }, "ref"> | Omit<import("./mixin.js").ReactElementProps<HTMLInputElement> & Omit<import("./mixin.js").ReactMaskProps<HTMLInputElement, { [x: string]: unknown; }>, "ref"> & Omit<import("@skbkontur/imask").MaskedDateOptions, "mask"> & { mask: DateConstructor; } & { ref?: React.Ref<React.ComponentType<IMaskInputProps<HTMLInputElement>>> | undefined; }, "ref"> | Omit<import("./mixin.js").ReactElementProps<HTMLInputElement> & Omit<import("./mixin.js").ReactMaskProps<HTMLInputElement, { [x: string]: unknown; }>, "ref"> & { mask: typeof import("@skbkontur/imask").MaskedDate; } & Omit<Omit<import("@skbkontur/imask").MaskedDateOptions, "mask"> & { mask: DateConstructor; }, "mask"> & { ref?: React.Ref<React.ComponentType<IMaskInputProps<HTMLInputElement>>> | undefined; }, "ref"> | Omit<import("./mixin.js").ReactElementProps<HTMLInputElement> & Omit<import("./mixin.js").ReactMaskProps<HTMLInputElement, { [x: string]: unknown; }>, "ref"> & Partial<Pick<import("@skbkontur/imask").MaskedNumber, "max" | "min" | "mask" | "scale" | "eager" | "parent" | "format" | "prepare" | "prepareChar" | "validate" | "commit" | "parse" | "overwrite" | "skipInvalid" | "autofix" | "radix" | "thousandsSeparator" | "mapToRadix" | "normalizeZeros" | "padFractionalZeros">> & { ref?: React.Ref<React.ComponentType<IMaskInputProps<HTMLInputElement>>> | undefined; }, "ref"> | Omit<import("./mixin.js").ReactElementProps<HTMLInputElement> & Omit<import("./mixin.js").ReactMaskProps<HTMLInputElement, { [x: string]: unknown; }>, "ref"> & { mask: typeof import("@skbkontur/imask").MaskedNumber; } & Omit<Partial<Pick<import("@skbkontur/imask").MaskedNumber, "max" | "min" | "mask" | "scale" | "eager" | "parent" | "format" | "prepare" | "prepareChar" | "validate" | "commit" | "parse" | "overwrite" | "skipInvalid" | "autofix" | "radix" | "thousandsSeparator" | "mapToRadix" | "normalizeZeros" | "padFractionalZeros">>, "mask"> & { ref?: React.Ref<React.ComponentType<IMaskInputProps<HTMLInputElement>>> | undefined; }, "ref"> | Omit<import("./mixin.js").ReactElementProps<HTMLInputElement> & Omit<import("./mixin.js").ReactMaskProps<HTMLInputElement, { [x: string]: unknown; }>, "ref"> & Partial<Pick<import("@skbkontur/imask").MaskedPattern<string>, "mask" | "eager" | "lazy" | "parent" | "format" | "prepare" | "prepareChar" | "validate" | "commit" | "parse" | "overwrite" | "skipInvalid" | "autofix" | "definitions" | "blocks" | "placeholderChar" | "displayChar">> & { ref?: React.Ref<React.ComponentType<IMaskInputProps<HTMLInputElement>>> | undefined; }, "ref"> | Omit<import("./mixin.js").ReactElementProps<HTMLInputElement> & Omit<import("./mixin.js").ReactMaskProps<HTMLInputElement, { [x: string]: unknown; }>, "ref"> & { mask: typeof import("@skbkontur/imask").MaskedEnum; } & Omit<import("@skbkontur/imask").MaskedEnumOptions, "mask"> & { ref?: React.Ref<React.ComponentType<IMaskInputProps<HTMLInputElement>>> | undefined; }, "ref"> | Omit<import("./mixin.js").ReactElementProps<HTMLInputElement> & Omit<import("./mixin.js").ReactMaskProps<HTMLInputElement, { [x: string]: unknown; }>, "ref"> & { mask: typeof import("@skbkontur/imask").MaskedRange; } & Omit<import("@skbkontur/imask").MaskedRangeOptions, "mask"> & { ref?: React.Ref<React.ComponentType<IMaskInputProps<HTMLInputElement>>> | undefined; }, "ref"> | Omit<import("./mixin.js").ReactElementProps<HTMLInputElement> & Omit<import("./mixin.js").ReactMaskProps<HTMLInputElement, { [x: string]: unknown; }>, "ref"> & { mask: typeof import("@skbkontur/imask").MaskedRegExp; } & Omit<Partial<Pick<import("@skbkontur/imask").MaskedRegExp, "mask" | "eager" | "parent" | "format" | "prepare" | "prepareChar" | "validate" | "commit" | "parse" | "overwrite" | "skipInvalid" | "autofix">>, "mask"> & { ref?: React.Ref<React.ComponentType<IMaskInputProps<HTMLInputElement>>> | undefined; }, "ref"> | Omit<import("./mixin.js").ReactElementProps<HTMLInputElement> & Omit<import("./mixin.js").ReactMaskProps<HTMLInputElement, { [x: string]: unknown; }>, "ref"> & Partial<Pick<import("@skbkontur/imask").MaskedFunction<any>, "mask" | "eager" | "parent" | "format" | "prepare" | "prepareChar" | "validate" | "commit" | "parse" | "overwrite" | "skipInvalid" | "autofix">> & { ref?: React.Ref<React.ComponentType<IMaskInputProps<HTMLInputElement>>> | undefined; }, "ref"> | Omit<import("./mixin.js").ReactElementProps<HTMLInputElement> & Omit<import("./mixin.js").ReactMaskProps<HTMLInputElement, { [x: string]: unknown; }>, "ref"> & { mask: typeof import("@skbkontur/imask").MaskedFunction; } & Omit<Partial<Pick<import("@skbkontur/imask").MaskedFunction<any>, "mask" | "eager" | "parent" | "format" | "prepare" | "prepareChar" | "validate" | "commit" | "parse" | "overwrite" | "skipInvalid" | "autofix">>, "mask"> & { ref?: React.Ref<React.ComponentType<IMaskInputProps<HTMLInputElement>>> | undefined; }, "ref"> | Omit<import("./mixin.js").ReactElementProps<HTMLInputElement> & Omit<import("./mixin.js").ReactMaskProps<HTMLInputElement, { [x: string]: unknown; }>, "ref"> & { mask: typeof import("@skbkontur/imask").MaskedPattern; } & Omit<Partial<Pick<import("@skbkontur/imask").MaskedPattern<string>, "mask" | "eager" | "lazy" | "parent" | "format" | "prepare" | "prepareChar" | "validate" | "commit" | "parse" | "overwrite" | "skipInvalid" | "autofix" | "definitions" | "blocks" | "placeholderChar" | "displayChar">>, "mask"> & { ref?: React.Ref<React.ComponentType<IMaskInputProps<HTMLInputElement>>> | undefined; }, "ref"> | Omit<import("./mixin.js").ReactElementProps<HTMLInputElement> & Omit<import("./mixin.js").ReactMaskProps<HTMLInputElement, { [x: string]: unknown; }>, "ref"> & Partial<Pick<import("@skbkontur/imask").MaskedDynamic<any>, "mask" | "eager" | "parent" | "format" | "prepare" | "prepareChar" | "validate" | "commit" | "parse" | "overwrite" | "skipInvalid" | "autofix" | "dispatch">> & { ref?: React.Ref<React.ComponentType<IMaskInputProps<HTMLInputElement>>> | undefined; }, "ref"> | Omit<import("./mixin.js").ReactElementProps<HTMLInputElement> & Omit<import("./mixin.js").ReactMaskProps<HTMLInputElement, { [x: string]: unknown; }>, "ref"> & { mask: typeof import("@skbkontur/imask").MaskedDynamic; } & Omit<Partial<Pick<import("@skbkontur/imask").MaskedDynamic<any>, "mask" | "eager" | "parent" | "format" | "prepare" | "prepareChar" | "validate" | "commit" | "parse" | "overwrite" | "skipInvalid" | "autofix" | "dispatch">>, "mask"> & { ref?: React.Ref<React.ComponentType<IMaskInputProps<HTMLInputElement>>> | undefined; }, "ref"> | Omit<import("./mixin.js").ReactElementProps<HTMLInputElement> & Omit<import("./mixin.js").ReactMaskProps<HTMLInputElement, { [x: string]: unknown; }>, "ref"> & { mask: typeof import("@skbkontur/imask").Masked; } & Omit<Partial<Pick<import("@skbkontur/imask").Masked<any>, "mask" | "eager" | "parent" | "format" | "prepare" | "prepareChar" | "validate" | "commit" | "parse" | "overwrite" | "skipInvalid" | "autofix">>, "mask"> & { ref?: React.Ref<React.ComponentType<IMaskInputProps<HTMLInputElement>>> | undefined; }, "ref"> | Omit<import("./mixin.js").ReactElementProps<HTMLInputElement> & Omit<import("./mixin.js").ReactMaskProps<HTMLInputElement, { [x: string]: unknown; }>, "ref"> & { mask: import("@skbkontur/imask").MaskedDate; } & Omit<Omit<import("@skbkontur/imask").MaskedDateOptions, "mask"> & { mask: DateConstructor; }, "mask"> & { ref?: React.Ref<React.ComponentType<IMaskInputProps<HTMLInputElement>>> | undefined; }, "ref"> | Omit<import("./mixin.js").ReactElementProps<HTMLInputElement> & Omit<import("./mixin.js").ReactMaskProps<HTMLInputElement, { [x: string]: unknown; }>, "ref"> & { mask: import("@skbkontur/imask").MaskedNumber; } & Omit<Partial<Pick<import("@skbkontur/imask").MaskedNumber, "max" | "min" | "mask" | "scale" | "eager" | "parent" | "format" | "prepare" | "prepareChar" | "validate" | "commit" | "parse" | "overwrite" | "skipInvalid" | "autofix" | "radix" | "thousandsSeparator" | "mapToRadix" | "normalizeZeros" | "padFractionalZeros">>, "mask"> & { ref?: React.Ref<React.ComponentType<IMaskInputProps<HTMLInputElement>>> | undefined; }, "ref"> | Omit<import("./mixin.js").ReactElementProps<HTMLInputElement> & Omit<import("./mixin.js").ReactMaskProps<HTMLInputElement, { [x: string]: unknown; }>, "ref"> & { mask: import("@skbkontur/imask").MaskedEnum; } & Omit<import("@skbkontur/imask").MaskedEnumOptions, "mask"> & { ref?: React.Ref<React.ComponentType<IMaskInputProps<HTMLInputElement>>> | undefined; }, "ref"> | Omit<import("./mixin.js").ReactElementProps<HTMLInputElement> & Omit<import("./mixin.js").ReactMaskProps<HTMLInputElement, { [x: string]: unknown; }>, "ref"> & { mask: import("@skbkontur/imask").MaskedRange; } & Omit<import("@skbkontur/imask").MaskedRangeOptions, "mask"> & { ref?: React.Ref<React.ComponentType<IMaskInputProps<HTMLInputElement>>> | undefined; }, "ref"> | Omit<import("./mixin.js").ReactElementProps<HTMLInputElement> & Omit<import("./mixin.js").ReactMaskProps<HTMLInputElement, { [x: string]: unknown; }>, "ref"> & { mask: import("@skbkontur/imask").MaskedRegExp; } & Omit<Partial<Pick<import("@skbkontur/imask").MaskedRegExp, "mask" | "eager" | "parent" | "format" | "prepare" | "prepareChar" | "validate" | "commit" | "parse" | "overwrite" | "skipInvalid" | "autofix">>, "mask"> & { ref?: React.Ref<React.ComponentType<IMaskInputProps<HTMLInputElement>>> | undefined; }, "ref"> | Omit<import("./mixin.js").ReactElementProps<HTMLInputElement> & Omit<import("./mixin.js").ReactMaskProps<HTMLInputElement, { [x: string]: unknown; }>, "ref"> & { mask: import("@skbkontur/imask").MaskedFunction; } & Omit<Partial<Pick<import("@skbkontur/imask").MaskedFunction<any>, "mask" | "eager" | "parent" | "format" | "prepare" | "prepareChar" | "validate" | "commit" | "parse" | "overwrite" | "skipInvalid" | "autofix">>, "mask"> & { ref?: React.Ref<React.ComponentType<IMaskInputProps<HTMLInputElement>>> | undefined; }, "ref"> | Omit<import("./mixin.js").ReactElementProps<HTMLInputElement> & Omit<import("./mixin.js").ReactMaskProps<HTMLInputElement, { [x: string]: unknown; }>, "ref"> & { mask: import("@skbkontur/imask").MaskedPattern; } & Omit<Partial<Pick<import("@skbkontur/imask").MaskedPattern<string>, "mask" | "eager" | "lazy" | "parent" | "format" | "prepare" | "prepareChar" | "validate" | "commit" | "parse" | "overwrite" | "skipInvalid" | "autofix" | "definitions" | "blocks" | "placeholderChar" | "displayChar">>, "mask"> & { ref?: React.Ref<React.ComponentType<IMaskInputProps<HTMLInputElement>>> | undefined; }, "ref"> | Omit<import("./mixin.js").ReactElementProps<HTMLInputElement> & Omit<import("./mixin.js").ReactMaskProps<HTMLInputElement, { [x: string]: unknown; }>, "ref"> & { mask: import("@skbkontur/imask").MaskedDynamic; } & Omit<Partial<Pick<import("@skbkontur/imask").MaskedDynamic<any>, "mask" | "eager" | "parent" | "format" | "prepare" | "prepareChar" | "validate" | "commit" | "parse" | "overwrite" | "skipInvalid" | "autofix" | "dispatch">>, "mask"> & { ref?: React.Ref<React.ComponentType<IMaskInputProps<HTMLInputElement>>> | undefined; }, "ref"> | Omit<import("./mixin.js").ReactElementProps<HTMLInputElement> & Omit<import("./mixin.js").ReactMaskProps<HTMLInputElement, { [x: string]: unknown; }>, "ref"> & { mask: import("@skbkontur/imask").Masked; } & Omit<Partial<Pick<import("@skbkontur/imask").Masked<any>, "mask" | "eager" | "parent" | "format" | "prepare" | "prepareChar" | "validate" | "commit" | "parse" | "overwrite" | "skipInvalid" | "autofix">>, "mask"> & { ref?: React.Ref<React.ComponentType<IMaskInputProps<HTMLInputElement>>> | undefined; }, "ref">) & React.RefAttributes<unknown>>; export default IMaskInput; //# sourceMappingURL=input.d.ts.map