import * as React from "react"; import { ValueAndOnValueChangeProps } from "@stenajs-webui/forms"; import { TravelCalendarSizeVariant } from "../../../features/travel-calendar/components/TravelCalendar"; import { SupportedLocaleCode } from "../../../features/localize-date-format/LocaleMapper"; import { RenderTravelDateContent } from "../../../features/travel-calendar/types"; import { VisibleMonthState } from "../../../features/travel-calendar/hooks/UseVisibleMonthState"; export interface TravelDateCalendarPanelProps extends ValueAndOnValueChangeProps, VisibleMonthState { localeCode?: SupportedLocaleCode; languageLocaleCode?: SupportedLocaleCode; previousMonthButtonAriaLabel?: string; nextMonthButtonAriaLabel?: string; firstMonthInMonthPicker?: Date; numMonthsInMonthPicker?: number; isDateDisabled?: (date: Date) => boolean; /** * Renders the content of each date in the calendar, in place of the day * number. The cell around it, with the selection, focus and keyboard * navigation, stays the calendar's. See RenderTravelDateContent. */ renderDateContent?: RenderTravelDateContent; prevMonthDisabled?: (visibleMonth: Date) => boolean; nextMonthDisabled?: (visibleMonth: Date) => boolean; size?: TravelCalendarSizeVariant; dateTestId?: (date: Date) => string | undefined; previousMonthButtonTestId?: string; nextMonthButtonTestId?: string; /** * Accessible name of the calendar grid. * * The panel has no label of its own, so set this to whatever the date is * for, unless there is a visible label next to it that already says so. */ calendarAriaLabel?: string; } /** * A calendar for picking a single travel date, without a text input. * * This is TravelDateCalendar without the label, text input and heading, for * cases where the date is entered somewhere else. The visible month follows * the value, so a date set from the outside is scrolled into view. */ export declare const TravelDateCalendarPanel: React.FC;