@duetds/date-picker
Version:
Duet Date Picker is an open source version of Duet Design System’s accessible date picker.
23 lines (22 loc) • 859 B
TypeScript
import { FunctionalComponent } from "../../stencil-public-runtime";
import { DuetDateFormatter } from "./date-adapter";
import { DuetLocalizedText } from "./date-localization";
import { DatePickerDayProps } from "./date-picker-day";
import { DaysOfWeek } from "./date-utils";
declare type DatePickerMonthProps = {
selectedDate: Date;
focusedDate: Date;
labelledById: string;
localization: DuetLocalizedText;
firstDayOfWeek: DaysOfWeek;
min?: Date;
max?: Date;
dateFormatter: DuetDateFormatter;
onDateSelect: DatePickerDayProps["onDaySelect"];
onKeyboardNavigation: DatePickerDayProps["onKeyboardNavigation"];
focusedDayRef: (element: HTMLButtonElement) => void;
onFocusIn?: (e: FocusEvent) => void;
onMouseDown?: (e: MouseEvent) => void;
};
export declare const DatePickerMonth: FunctionalComponent<DatePickerMonthProps>;
export {};