UNPKG

headless-react-datepicker

Version:

A headless, highly customizable, multi-calendar date picker component for React. It supports various calendars and locales.

24 lines (23 loc) 657 B
import { TCalendar, TDay } from "../types"; export declare function getMonthInfo(date: Date, calendar: TCalendar): { monthLength: number; startOfMonth: Date; endOfMonth: Date; day: number; month: number; year: number; }; export declare function getMonthSlots({ currentDate, calendar, weekStartsOn, }: { currentDate: Date; weekStartsOn: TDay; calendar: TCalendar; }): { daysOfMonth: Date[]; startDateIncludeOtherDays: Date; endDateIncludeOtherDays: Date; firstDayOfMonth: Date; lastDayOfMonth: Date; monthInTheCalendar: number; totalDaysInTheCalendar: number; yearInTheCalendar: number; };