import { HTMLChakraProps, SlotRecipeProps, UnstyledProp } from '@chakra-ui/react/styled-system'; import { DateValue } from 'react-aria'; import { DateRangePickerProps as RaDateRangePickerProps } from 'react-aria-components'; type DateRangePickerRecipeProps = { /** * Size variant of the date range picker * @default "md" */ size?: SlotRecipeProps<"nimbusDateRangePicker">["size"]; /** * Visual style variant of the date range picker * @default "solid" */ variant?: SlotRecipeProps<"nimbusDateRangePicker">["variant"]; } & UnstyledProp; export type DateRangePickerRootSlotProps = HTMLChakraProps<"div", DateRangePickerRecipeProps>; type ExcludedProps = "validationState" | "label" | "description" | "errorMessage" | "css" | "colorScheme" | "unstyled" | "recipe" | "as" | "asChild"; export type DateRangePickerProps = Omit | ExcludedProps> & Omit, ExcludedProps> & { /** * Whether the calendar popover should be open by default (uncontrolled). */ defaultOpen?: boolean; /** * Whether the calendar popover is open (controlled). */ isOpen?: boolean; /** * Handler that is called when the calendar popover's open state changes. */ onOpenChange?: (isOpen: boolean) => void; /** * Whether to hide the time zone information when using ZonedDateTime values. * This prop is forwarded to both the main date inputs and footer time inputs. */ hideTimeZone?: boolean; }; /** * Props for the DateRangePickerTimeInput component. */ export type DateRangePickerTimeInputProps = { hideTimeZone?: boolean; hourCycle?: 12 | 24; }; export {};