import { ReactNode } from 'react'; import { UseGridFocus } from './hooks'; import { BodyTestId } from '../Calendar/Body/Body'; export type Spin = 'next' | 'prev'; export type DayType = 'today' | 'disabled' | 'weekend' | 'not-active' | 'active' | 'range' | 'event' | '' | 'activeDisabled'; export type HeaderButton = 'back' | 'leftArrowDouble' | 'leftArrow' | 'rightArrow' | 'rightArrowDouble' | 'month' | 'year'; export type FooterButton = 'todayButton'; export type ViewMode = 'month' | 'year_list' | 'month_list'; export type StartingWeekDay = 'sunday' | 'monday'; export type Dates = 'weekends' | Date[] | DateFunction; export interface MonthProps { date?: T; disabledDates?: Dates; weekendDates?: Dates; eventDates?: Date[] | EventDateFunction; onChangeDate: (date: T) => void; displayedDate: Date; minDate?: Date; maxDate?: Date; startingWeekDay: StartingWeekDay; setUpFocusProps: UseGridFocus['setUpFocusProps']; resetSavedNodes: UseGridFocus['resetSavedNodes']; testId?: Omit; } export interface DateItem { label?: number; value: Date; isSelected?: boolean; type: DayType[]; component?: ReactNode; } export interface RangeDate { start?: T; end?: T; } export type DateFunction = (date: Date) => boolean; export type EventDateFunction = (date: Date) => ReactNode | undefined; export interface FocusActions { setFocusHeader: () => void; setFocusGrid: () => void; setFocusFooter: () => void; }