import { Moment } from 'moment'; import React from 'react'; import 'react-dates/initialize'; import { InputGroupPosition } from '../InputGroup'; interface ISingleDateInputProps { /** Name and ID of the HTML input */ name: string; /** Moment format to display the date in */ dateFormat?: string; /** Called when the input is changed */ onChange?: (date: Moment | null) => void; /** If true, adds invalid styles to the input */ isInvalid?: boolean; /** If true, adds disabled attribute to the input */ isDisabled?: boolean; /** Updates border style depending on input group position */ groupPosition?: InputGroupPosition; /** Applies recommended settings for mobile and tablet viewports */ isMobile?: boolean; /** Placeholder text for the input; defaults to the date format */ placeholder?: string; /** Value for the input (Note: in redux, this must be a moment object - strings are invalid) */ value: Moment | null; /** Value for the input (Note: in redux, this must be a moment object - strings are invalid) */ initialVisibleMonth?: Moment; /** Disable for the calender (Return true for disabled date) */ isDisabledForDate?: (day: Moment) => boolean; /** Whether to render the dropdown that lets you pick month and year */ showMonthPicker?: boolean; } /** * @deprecated Use instead */ declare const SingleDateInput: React.FC>; export { SingleDateInput };