UNPKG

@atlaskit/calendar

Version:

An interactive calendar for date selection experiences.

29 lines (28 loc) 653 B
import type { WeekDay } from '../types'; export type ArrowKeys = 'left' | 'up' | 'right' | 'down'; export type DateObj = { day: number; month: number; year: number; }; interface WeekDayState { isDisabled: boolean; isFocused: boolean; isToday: boolean; isPreviouslySelected: boolean; isSelected: boolean; isSiblingMonth: boolean; } export interface Week { id: string; values: Array<{ id: string; weekDayName: string; } & DateObj & WeekDayState>; } export interface CalendarDate extends DateObj { weekDay?: WeekDay; siblingMonth?: boolean; } export type ISODate = string; export {};