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 = Omit & Pick & Pick & Pick, "min" | "max" | "weekStartDay" | "showCalendarWeeks" | "selectionMode" | "modelValue" | "viewMonth"> & AutofocusProp & { /** * Whether to show two calendars in range mode. */ multiView?: TSelection extends "range" ? boolean : never; /** * Disable specific dates to select individually. * * @example * ```ts * // Disables only weekends (Saturday and Sunday) * { disabled: (date: Date) => date.getDay() === 0 || date.getDay() === 6 } * ``` */ disabledDays?: (date: Date) => boolean; };