import * as React from 'react'; import CommonInput, { CommonInputProps } from '../../../containers/common-input/CommonInput'; import { TooltipProps } from '../../../containers/tooltip/Tooltip'; import { DropdownProps } from '../../../containers/dropdown/Dropdown'; import { commonInputLeftDotStyle, leftDot } from './commonInputLeftDot.style'; import LabelWrapper from './inner-comps/label/Label'; import WithLeftDot from '../../with-left-dot/WithLeftDot'; import Input from './inner-comps/input/Input'; type CommonInputLeftDotProps = CommonInputProps & CommonInputDropdown & CommonInputPassword & { tooltip?: React.ReactElement; hideLeftDot?: boolean; translator?: Function; }; type CommonInputDropdown = { dropDownList?: React.ReactElement; showChevron?: boolean; open?: boolean; }; type CommonInputPassword = { show?: boolean; toggleShowHide?: () => void; }; class CommonInputLeftDot extends React.PureComponent { render() { return ( ) => void, onBlur: (value: string, e?: React.FocusEvent) => void, onFocus: (value: string, e?: React.FocusEvent) => void ) => { return (
{this.props.open && this.props.dropDownList}
); }} /> ); } } export default CommonInputLeftDot;