import * as React from 'react'; import { IconButtonProps } from '@material-ui/core/IconButton'; import { InputAdornmentProps } from '@material-ui/core/InputAdornment'; import { BaseTextFieldProps, TextFieldProps } from '@material-ui/core/TextField'; import { ExtendMui } from '../typings/extendMui'; export interface KeyboardDateInputProps extends ExtendMui { format: string; onChange: (value: string | null) => void; openPicker: () => void; validationError?: React.ReactNode; inputValue: string; inputProps?: TextFieldProps['inputProps']; InputProps?: TextFieldProps['InputProps']; onBlur?: TextFieldProps['onBlur']; onFocus?: TextFieldProps['onFocus']; /** 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; } export declare const KeyboardDateInput: React.FunctionComponent; export default KeyboardDateInput;