UNPKG

1.02 kBTypeScriptView Raw
1/// <reference types="react" />
2import { CaptionElementProps } from "react-day-picker";
3import { AbstractPureComponent2 } from "@blueprintjs/core";
4export interface IDatePickerCaptionProps extends CaptionElementProps {
5 maxDate: Date;
6 minDate: Date;
7 onMonthChange?: (month: number) => void;
8 onYearChange?: (year: number) => void;
9 /** Callback invoked when the month or year `<select>` is changed. */
10 onDateChange?: (date: Date) => void;
11 reverseMonthAndYearMenus?: boolean;
12}
13export interface IDatePickerCaptionState {
14 monthRightOffset: number;
15}
16export declare class DatePickerCaption extends AbstractPureComponent2<IDatePickerCaptionProps, IDatePickerCaptionState> {
17 state: IDatePickerCaptionState;
18 private containerElement;
19 private displayedMonthText;
20 private handleMonthSelectChange;
21 private handleYearSelectChange;
22 render(): JSX.Element;
23 componentDidMount(): void;
24 componentDidUpdate(): void;
25 private positionArrows;
26 private dateChangeHandler;
27}