UNPKG

puppy-lib-components

Version:

A modern TypeScript React component library with generic UI components and football pickem domain components

12 lines (11 loc) 917 B
import { DateRange, RangePosition } from './types'; export declare const MONTHS: string[]; export declare const WEEKDAYS: string[]; export declare const formatDate: (date: Date | null, format?: string) => string; export declare const parseDate: (dateString: string) => Date | null; export declare const getDaysInMonth: (date: Date) => number; export declare const getFirstDayOfMonth: (date: Date) => number; export declare const isSameDay: (date1: Date | null, date2: Date | null) => boolean; export declare const isDateInRange: (date: Date, start: Date | null, end: Date | null) => boolean; export declare const isDateDisabled: (date: Date, minDate?: Date, maxDate?: Date, disableFuture?: boolean, disablePast?: boolean, shouldDisableDate?: (date: Date, position: RangePosition) => boolean, position?: RangePosition) => boolean; export declare const formatDisplayValue: (value: DateRange, format: string) => string;