react-flexible-datepicker
Version:
Custom React Datepicker component
41 lines (40 loc) • 1.35 kB
TypeScript
import dayjs, { Dayjs } from 'dayjs';
import { TWeekDays, TMonths } from './types';
export declare const getWeekDay: ({ day, isoWeek }: {
day: number;
isoWeek?: boolean | undefined;
}) => dayjs.Dayjs;
export declare const getWeekDays: ({ weekDaysMap, isoWeek }: {
weekDaysMap?: {
Monday: string;
Tuesday: string;
Wednesday: string;
Thursday: string;
Friday: string;
Saturday: string;
Sunday: string;
} | undefined;
isoWeek?: boolean | undefined;
}) => string[];
export declare const getMonthName: ({ month, monthsMap }: {
month: number;
monthsMap?: {
January: string;
February: string;
March: string;
April: string;
May: string;
June: string;
July: string;
August: string;
September: string;
October: string;
November: string;
December: string;
} | undefined;
}) => string;
export declare const getCalendar: (date?: dayjs.Dayjs, isoWeek?: boolean) => dayjs.Dayjs[];
export declare const getPreviousMonth: (date: Dayjs) => dayjs.Dayjs;
export declare const getNextMonth: (date: Dayjs) => dayjs.Dayjs;
export declare const isSameMonth: (date: Dayjs, basedate?: dayjs.Dayjs) => boolean;
export declare const isSameDay: (date: Dayjs, basedate?: dayjs.Dayjs) => boolean;