/** * The new input element * * @author Platon Fedorov * @date 2021-01-13 */ import * as React from 'react'; import TextAreaAntd from 'antd/es/input/TextArea'; import { Props } from './Input.types'; import { InputPassword } from './InputPassword'; import { InputMask } from './InputMask'; import { InputTime } from './InputTime'; import { InputNumber } from './InputNumber'; import { InputColorPicker } from './InputColorPicker'; declare type InputState = { isFocused: boolean; }; export declare type InputProps = Props; export { TextAreaAntd }; export interface ITextAreaProps extends Omit, 'size'> { prefixCls?: string; autosize?: boolean; autoSize?: boolean; onPressEnter?: React.KeyboardEventHandler; 'data-qaid'?: string; } export declare class Input extends React.Component { static TextArea: typeof TextAreaAntd; static Password: typeof InputPassword; static Mask: typeof InputMask; static Time: typeof InputTime; static Number: typeof InputNumber; static Color: typeof InputColorPicker; state: { isFocused: boolean; }; element: React.RefObject; wrapperRef: React.RefObject; handleChange: (e: React.ChangeEvent) => void; handleFocus: (e: React.FocusEvent) => void; handleBlur: (e: React.FocusEvent) => void; handleWrapperClick: (e: React.MouseEvent) => void; handleWrapperClickOutside: (e: MouseEvent) => void; handleWrapperFocus: () => void; onKeyUp: (e: React.KeyboardEvent) => void; createRef(): React.RefObject; handleClearButtonMouseDown: React.MouseEventHandler; handleClearButtonClick: React.MouseEventHandler; componentDidMount(): void; componentDidUpdate(prevProps: Readonly): void; render(): JSX.Element; renderInput(): JSX.Element; renderClearButton(): JSX.Element | null; }