import * as React from 'react'; import { IPopoverProps } from '../popover'; import { DatePickerClasses, DatePickerPopoverClasses } from './date-picker-classes'; export interface DateOption { text: string; value: string; } export interface IDatePickerBaseProps { value?: string; onChange?: (value: string) => void; dateFormat?: string; timeFormat?: string; minDate?: string | number | Date; maxDate?: string | number | Date; placeholder?: string; disabled?: boolean; fullWidth?: boolean; size?: 'small' | 'medium'; readOnly?: boolean; required?: boolean; error?: boolean; helperText?: React.ReactNode; options?: DateOption[]; isRangeSelection?: boolean; showTwoMonths?: boolean; showTimeInput?: boolean; allowTimestampPasting?: boolean; timestampUnit?: 'ms' | 's'; openOnIconOnly?: boolean; classes?: Partial; } export interface IDatePickerPopoverProps { id?: string; anchorEl: HTMLElement | null; open: boolean; onClose: () => void; onDateSelect: (date: string, shouldClose?: boolean) => void; options?: DateOption[]; value?: string; dateFormat?: string; timeFormat?: string; minDate?: string | number | Date; maxDate?: string | number | Date; PopoverProps?: Partial; showTwoMonths?: boolean; isRangeSelection?: boolean; showTimeInput?: boolean; widthRef?: React.RefObject; classes?: Partial; }