import * as React from 'react'; import { InputAdornmentProps } from '@material-ui/core/InputAdornment'; import { BaseTextFieldProps, TextFieldProps } from '@material-ui/core/TextField'; import { ExtendMui } from '../typings/extendMui'; import { IconButtonProps } from '@material-ui/core/IconButton'; export interface KeyboardDateInputProps extends ExtendMui { format: string; onChange: (value: string | null) => void; onBlur?: () => void; onClick?: () => void; validationError?: React.ReactNode; inputValue: string; InputProps?: TextFieldProps['InputProps']; /** Override input component */ TextFieldComponent?: React.ComponentType; /** Icon displaying for open picker button */ keyboardIcon?: React.ReactNode; /** Pass material-ui text field variant down, bypass internal variant prop */ inputVariant?: TextFieldProps['variant']; /** * Custom mask. Can be used to override generate from format. (e.g. __/__/____ __:__) */ mask?: string; /** * Char string that will be replaced with number (for "_" mask will be "__/__/____") * @default '_' */ maskChar?: string; /** * Refuse values regexp * @default /[^\d]+/gi */ refuse?: RegExp; /** * Props to pass to keyboard input adornment * @type {Partial} */ InputAdornmentProps?: Partial; /** * Props to pass to keyboard adornment button * @type {Partial} */ KeyboardButtonProps?: Partial; /** Custom formatter to be passed into Rifm component */ rifmFormatter?: (str: string) => string; /** * Show errors only when input blur */ showErrorOnBlur?: boolean; } declare const KeyboardDateInput: React.FunctionComponent; export default KeyboardDateInput;