1 | import * as React from 'react';
|
2 | import { IconButtonProps } from '@material-ui/core/IconButton';
|
3 | import { InputAdornmentProps } from '@material-ui/core/InputAdornment';
|
4 | import { BaseTextFieldProps, TextFieldProps } from '@material-ui/core/TextField';
|
5 | import { ExtendMui } from '../typings/extendMui';
|
6 | export interface KeyboardDateInputProps extends ExtendMui<BaseTextFieldProps, 'variant' | 'onError' | 'value'> {
|
7 | format: string;
|
8 | onChange: (value: string | null) => void;
|
9 | openPicker: () => void;
|
10 | validationError?: React.ReactNode;
|
11 | inputValue: string;
|
12 | inputProps?: TextFieldProps['inputProps'];
|
13 | InputProps?: TextFieldProps['InputProps'];
|
14 | onBlur?: TextFieldProps['onBlur'];
|
15 | onFocus?: TextFieldProps['onFocus'];
|
16 |
|
17 | TextFieldComponent?: React.ComponentType<TextFieldProps>;
|
18 |
|
19 | keyboardIcon?: React.ReactNode;
|
20 |
|
21 | inputVariant?: TextFieldProps['variant'];
|
22 | |
23 |
|
24 |
|
25 | mask?: string;
|
26 | |
27 |
|
28 |
|
29 |
|
30 | maskChar?: string;
|
31 | |
32 |
|
33 |
|
34 |
|
35 | refuse?: RegExp;
|
36 | |
37 |
|
38 |
|
39 |
|
40 | InputAdornmentProps?: Partial<InputAdornmentProps>;
|
41 | |
42 |
|
43 |
|
44 |
|
45 | KeyboardButtonProps?: Partial<IconButtonProps>;
|
46 |
|
47 | rifmFormatter?: (str: string) => string;
|
48 | }
|
49 | export declare const KeyboardDateInput: React.FunctionComponent<KeyboardDateInputProps>;
|
50 | export default KeyboardDateInput;
|