import type { FunctionComponent } from 'react'; import { type CalendarType } from '../Input/local'; import type { ForwardProps, TestIdProp } from '../../../types'; import type { FormControlProps } from '../../FormControl'; export interface CalendarProps extends TestIdProp { /** * Sets DOM id for the control and associates label element via 'for' attribute. * If an id is not pass, a random id will be generated for any render. */ id?: FormControlProps['id']; /** Defines default date that will be selected initially when the Calendar is visible. */ selected?: Date; /** * Defines currently visible month. * @default new Date() */ current?: Date; /** Defines dates range with start date and end date that can be set by the user. */ selectedRange?: { startDate: Date | undefined; endDate: Date | undefined; }; /** Defines if days should be highlighted for range selection */ showHighlight?: boolean; /** Defines if week numbers should be displayed in calendar */ showWeekNumber?: boolean; /** * The mode of the calendar that will be rendered, ie. whether single date or week are selectable. * @default 'date' */ mode?: 'date' | 'week'; /** Callback fired when new day is selected. */ onSelect?: (date: Date) => void; /** Callback fired when user focuses new day. */ onFocus?: (date: Date) => void; /** Sets the type of calendar to be used. This will be determined by locale if no value is provided. */ calendarType?: CalendarType; /** Defines minimum available value that can be selected by the user. */ min?: string | number | Date; /** Defines maximum available value that can be selected by the user. */ max?: string | number | Date; /** Set the calendar to disabled state, ie. non-interactive. */ disabled?: boolean; /** IANA timezone string. When provided, today highlight uses server timezone instead of browser timezone. */ timeZone?: string; } declare const Calendar: FunctionComponent; export default Calendar; //# sourceMappingURL=Calendar.d.ts.map