@zener/nepali-datepicker-react
Version:
Nepali Datepicker React is a lightweight, highly customizable, and feature-rich datepicker component, specifically designed for handling Nepali dates in React.js applications. It offers seamless integration, intuitive user experience, and extensive config
52 lines (51 loc) • 1.42 kB
TypeScript
import { IDatePickerType } from 'src/datepicker/types';
type IDate = {
year: number;
month: number;
date: number;
};
export declare const padTwo: (v: number) => string;
export declare const padFour: (v: number) => string;
export declare const padFourNumber: (v: number) => string;
export declare const stringDateFormatter: ({ year, month, date }: IDate) => string;
export declare const getDateFromNumber: (n: number) => {
toString: () => string;
year: number;
month: number;
date: number;
};
export declare const getStartYearAD: () => {
toString: () => string;
year: number;
month: number;
date: number;
};
export declare const getEndYearAD: () => {
toString: () => string;
year: number;
month: number;
date: number;
};
export declare const getMonthInfo: ({ type, year, month, }: {
type?: IDatePickerType | undefined;
year: number;
month: number;
}) => {
currentMonthDays: number;
firstWeekDay: number;
prevMonthDays: number;
nextMonthDays: number;
};
export declare const groupDates: (monthInfo: ReturnType<typeof getMonthInfo> & {
currentMonth: number;
}) => {
day: number;
month: 'current' | 'prev' | 'next';
currentMonth: number;
}[][];
export declare const getYearsArray: (startYear: number) => number[];
export declare const getDecadeRange: (year: number) => {
start: number;
end: number;
};
export {};