/// import { FieldMetaState, FieldInputProps } from 'react-final-form'; import { CSSProperties } from 'styled-components'; export type { FieldInputProps }; /** Common input props, apply to all input types */ export interface InputProps { /** use this only if when you are using react-final-form, other props would override this */ input?: Partial>; /** use this only if when you are using react-final-form, other props would override this */ meta?: FieldMetaState; isDisabled?: boolean; /** error message */ error?: string; /** hide error message even with error on, this would indicate color red without error message */ hideErrorMsg?: boolean; renderTitle?: (props: { isActive?: boolean; }) => void; /** add tooltip at the end of title */ tooltip?: { text?: string; image?: string; }; /** Optional title */ title?: string; /** show star at title */ isRequired?: boolean; /** input value, undefined means use internal value instead of external control */ value?: FieldValue; onBlur?: (event?: React.FocusEvent) => void; onFocus?: (event?: React.FocusEvent) => void; onKeyDown?: (e: React.KeyboardEvent) => void; /** value changed event, it could come from click/keydown other events. */ onChange?: (value: FieldValue, event?: React.SyntheticEvent) => void; passedRef?: any; /** id attached to input body */ inputId?: string; style?: CSSProperties; className?: string; }