UNPKG

jwf-year-calendar

Version:

A full react version of Paul-DS' js-year-calendar, https://github.com/year-calendar/js-year-calendar. Built with support from JWF Process Solutions Ltd.

11 lines (10 loc) 658 B
import { CalendarDate } from './types'; export declare const isHexColor: (color: string) => boolean; export declare const isTailwindColor: (color: string) => boolean; export declare const determineGridCols: (windowWidth: number, containerWidth: number) => "grid-cols-6" | "grid-cols-4" | "grid-cols-3" | "grid-cols-2" | "grid-cols-1"; export declare const showYearEnd: (windowWidth: number, containerWidth: number) => boolean; export declare const showYearMiddle: (windowWidth: number, containerWidth: number) => boolean; export declare const orderDates: (one: CalendarDate, two: CalendarDate) => { startDate: CalendarDate; endDate: CalendarDate; };