@kbss-cvut/s-forms
Version:
Semantic forms generator and processor
42 lines (41 loc) • 1.35 kB
TypeScript
declare class MaskedInput extends React.Component<any, any, any> {
constructor(props: any);
mask: any;
componentDidUpdate(prevProps: any): void;
_updatePattern: (props: any) => void;
_updateMaskSelection: () => void;
_updateInputSelection: () => void;
_onChange: (e: any) => void;
_onKeyDown: (e: any) => void;
_onKeyPress: (e: any) => void;
_onPaste: (e: any) => void;
_getDisplayValue(): any;
focus(): void;
blur(): void;
render(): React.CElement<{
ref: (r: React.Component<{}, any, any> | null) => void;
maxLength: any;
onChange: (e: any) => void;
onKeyDown: (e: any) => void;
onKeyPress: (e: any) => void;
onPaste: (e: any) => void;
placeholder: any;
size: any;
value: any;
type: string;
}, React.Component<{}, any, any>>;
input: Element | React.Component<{}, any, any> | Text | null | undefined;
}
declare namespace MaskedInput {
export { ConfigurationContext as contextType };
export namespace propTypes {
let mask: PropTypes.Validator<string>;
}
export namespace defaultProps {
let value: string;
}
}
export default MaskedInput;
import React from "react";
import { ConfigurationContext } from "../contexts/ConfigurationContext";
import PropTypes from "prop-types";