@types/react-datepicker
Advanced tools
Comparing version 0.46.2 to 0.52.0
@@ -1,8 +0,9 @@ | ||
// Type definitions for react-datepicker 0.46 | ||
// Type definitions for react-datepicker 0.52 | ||
// Project: https://github.com/Hacker0x01/react-datepicker | ||
// Definitions by: Rajab Shakirov <https://github.com/radziksh>, | ||
// Andrey Balokha <https://github.com/andrewBalekha>, | ||
// Greg Smith <https://github.com/smrq> | ||
// Andrey Balokha <https://github.com/andrewBalekha>, | ||
// Greg Smith <https://github.com/smrq>, | ||
// Platon Pronko <https://github.com/Rogach> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.3 | ||
// TypeScript Version: 2.4 | ||
@@ -13,5 +14,7 @@ import * as React from "react"; | ||
export interface ReactDatePickerProps { | ||
allowSameDay?: boolean; | ||
autoComplete?: string; | ||
autoFocus?: boolean; | ||
calendarClassName?: string; | ||
children?: any; | ||
className?: string; | ||
@@ -21,2 +24,3 @@ customInput?: React.ReactNode; | ||
dateFormatCalendar?: string; | ||
dayClassName?(date: moment.Moment): string | null; | ||
disabled?: boolean; | ||
@@ -27,5 +31,6 @@ disabledKeyboardNavigation?: boolean; | ||
excludeDates?: any[]; | ||
filterDate?(): any; | ||
filterDate?(date: moment.Moment): boolean; | ||
fixedHeight?: boolean; | ||
forceShowMonthNavigation?: boolean; | ||
formatWeekNumber?(date: moment.Moment): string | number; | ||
highlightDates?: any[]; | ||
@@ -46,11 +51,13 @@ id?: string; | ||
onFocus?(event: React.FocusEvent<HTMLInputElement>): void; | ||
onKeyDown?(event: React.KeyboardEvent<HTMLDivElement>): void; | ||
onMonthChange?(date: moment.Moment): void; | ||
onSelect?(date: moment.Moment, event: React.SyntheticEvent<any> | undefined): void; | ||
onWeekSelect?(firstDayOfWeek: moment.Moment, weekNumber: string | number, event: React.SyntheticEvent<any> | undefined): void; | ||
openToDate?: moment.Moment; | ||
peekNextMonth?: boolean; | ||
placeholderText?: string; | ||
popoverAttachment?: string; | ||
popoverTargetAttachment?: string; | ||
popoverTargetOffset?: string; | ||
popperClassName?: string; | ||
popperModifiers?: any; | ||
popperPlacement?: string; | ||
readOnly?: boolean; | ||
renderCalendarTo?: any; | ||
required?: boolean; | ||
@@ -66,10 +73,12 @@ scrollableYearDropdown?: boolean; | ||
tabIndex?: number; | ||
tetherConstraints?: any[]; | ||
title?: string; | ||
todayButton?: string; | ||
useWeekdaysShort?: boolean; | ||
utcOffset?: number; | ||
value?: string; | ||
weekLabel?: string; | ||
withPortal?: boolean; | ||
yearDropdownItemNumber?: number; | ||
} | ||
declare const ReactDatePicker: React.ClassicComponentClass<ReactDatePickerProps>; | ||
export default ReactDatePicker; |
{ | ||
"name": "@types/react-datepicker", | ||
"version": "0.46.2", | ||
"version": "0.52.0", | ||
"description": "TypeScript definitions for react-datepicker", | ||
@@ -18,2 +18,6 @@ "license": "MIT", | ||
"url": "https://github.com/smrq" | ||
}, | ||
{ | ||
"name": "Platon Pronko", | ||
"url": "https://github.com/Rogach" | ||
} | ||
@@ -32,4 +36,4 @@ ], | ||
"peerDependencies": {}, | ||
"typesPublisherContentHash": "c1414925e324647827da1a9e086924ebf2db7b7b863213214761ca93bc39b8bc", | ||
"typeScriptVersion": "2.3" | ||
"typesPublisherContentHash": "c541f5b0b911f304b1cd25ab1f1c2754445d1beabd4ce5bb9bb3b0e40e3ba1e9", | ||
"typeScriptVersion": "2.4" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Wed, 28 Jun 2017 15:40:48 GMT | ||
* Last updated: Tue, 01 Aug 2017 14:04:54 GMT | ||
* Dependencies: react, moment | ||
@@ -17,2 +17,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by Rajab Shakirov <https://github.com/radziksh>, Andrey Balokha <https://github.com/andrewBalekha>, Greg Smith <https://github.com/smrq>. | ||
These definitions were written by Rajab Shakirov <https://github.com/radziksh>, Andrey Balokha <https://github.com/andrewBalekha>, Greg Smith <https://github.com/smrq>, Platon Pronko <https://github.com/Rogach>. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5716
77