import { AutofocusProp } from '../../types/components.js'; import { OnyxCalendarProps, OnyxCalendarSelectionMode } from '../OnyxCalendar/types.js'; import { SharedFormElementProps } from '../OnyxFormElement/types.js'; import { OnyxFormElementV2Props } from '../OnyxFormElementV2/types.js'; import { OnyxInputProps } from '../OnyxInput/types.js'; export type OnyxDatePickerV2Props = OnyxFormElementV2Props & Pick & AutofocusProp & Omit, "size" | "disabled"> & Pick & { /** * Whether to show two calendars in range mode. */ multiView?: boolean & (TSelection extends "range" ? boolean : never); /** * Disable specific dates to select individually. * * @example * `(date: Date) => date.getDay() === 0`; */ disabledDays?: (date: Date) => boolean; };