DefinitelyTyped/types/react-bootstrap-date-picker/index.d.ts
Ferdy Budhidharma 6d2fc7181a feat(react-dependents): update to TS 2.8 (part 1 of 2) (#27743)
* feat(react-dependents): update to TS 2.8

* exclude react-dom

* fix version mismatches
2018-08-03 21:01:14 +01:00

48 lines
1.6 KiB
TypeScript

// Type definitions for react-bootstrap-date-picker 4.0
// Project: https://github.com/pushtell/react-bootstrap-date-picker#readme
// Definitions by: Karol Janyst <https://github.com/LKay>, Antal Bodnar <https://github.com/ssi-hu-antal-bodnar>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
import { ComponentClass, StatelessComponent, ReactNode, FocusEventHandler, HTMLAttributes } from "react";
export as namespace DatePicker;
export = DatePicker;
declare const DatePicker: DatePicker;
type DatePicker = ComponentClass<DatePicker.DatePickerProps>;
declare namespace DatePicker {
type ChangeCallback = (value: string, formattedValue: string) => void;
interface DatePickerProps {
value?: string;
defaultValue?: string;
minDate?: string;
maxDate?: string;
style?: any;
className?: string;
autoFocus?: boolean;
disabled?: boolean;
onChange?: ChangeCallback;
onFocus?: FocusEventHandler<any>;
onBlur?: FocusEventHandler<any>;
dateFormat?: string;
clearButtonElement?: ReactNode;
showClearButton?: boolean;
onClear?(): void;
previousButtonElement?: ReactNode;
nextButtonElement?: ReactNode;
cellPadding?: string;
dayLabels?: string[];
monthLabels?: string[];
calendarPlacement?: string;
calendarContainer?: any;
weekStartsOnMonday?: boolean;
showTodayButton?: boolean;
todayButtonLabel?: string;
customControl?: StatelessComponent<any> | ComponentClass<any>;
}
}