UNPKG

@fk6/react-datepicker

Version:

React date picker with Hijri & Gregorian support, theming, localization, and more.

29 lines 1.25 kB
import { Moment } from 'moment-hijri'; import { FC, ReactNode } from 'react'; import { CalendarsEnum, CalendarViewsEnum } from '../../../utils/enums.js'; interface AllDaysCalendarProps { value?: Date | Moment | null; currentDate: Moment; calendar?: `${CalendarsEnum}`; firstDayOfWeek?: number; focusedDate?: Moment; minDate?: Date | Moment | undefined; maxDate?: Date | Moment | undefined; locale?: string | undefined; disabledDates?: (Date | Moment)[] | undefined; hideOutsideDays?: boolean; showWeeksNumber?: boolean; highlightDates?: (Date | Moment)[]; disabledMonths?: (Date | Moment)[]; disabledYears?: (Date | Moment)[]; weekends?: number[]; disableWeekends?: boolean; renderDay?: (date: Date) => ReactNode; renderWeekNumber?: ((weekNumber: number | undefined) => ReactNode) | undefined; disabledDatesFn?: ((date: Date, view: `${CalendarViewsEnum}`) => boolean) | undefined; onSelect: (date: Date) => void; } export type DaysCalendarProps = Omit<AllDaysCalendarProps, "minDate" | "maxDate" | "value" | "calendar" | "focusedDate" | "locale" | "currentDate">; export declare const DaysCalendar: FC<AllDaysCalendarProps>; export {}; //# sourceMappingURL=index.d.ts.map