@types/react-datepicker
Advanced tools
Comparing version 1.8.0 to 2.0.0
@@ -1,2 +0,2 @@ | ||
// Type definitions for react-datepicker 1.8 | ||
// Type definitions for react-datepicker 2.0 | ||
// Project: https://github.com/Hacker0x01/react-datepicker | ||
@@ -11,2 +11,3 @@ // Definitions by: Rajab Shakirov <https://github.com/radziksh>, | ||
// Justin Grant <https://github.com/justingrant> | ||
// Jake Boone <https://github.com/jakeboone02> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -16,3 +17,2 @@ // TypeScript Version: 2.8 | ||
import * as React from "react"; | ||
import * as moment from "moment"; | ||
import * as Popper from "popper.js"; | ||
@@ -26,2 +26,3 @@ | ||
calendarClassName?: string; | ||
calendarContainer?(props: { children: React.ReactNode[] }): React.ReactNode; | ||
children?: React.ReactNode; | ||
@@ -33,28 +34,29 @@ className?: string; | ||
dateFormatCalendar?: string; | ||
dayClassName?(date: moment.Moment): string | null; | ||
dayClassName?(date: Date): string | null; | ||
disabled?: boolean; | ||
disabledKeyboardNavigation?: boolean; | ||
dropdownMode?: 'scroll' | 'select'; | ||
endDate?: moment.Moment; | ||
excludeDates?: moment.Moment[]; | ||
excludeTimes?: moment.Moment[]; | ||
filterDate?(date: moment.Moment): boolean; | ||
endDate?: Date; | ||
excludeDates?: Date[]; | ||
excludeTimes?: Date[]; | ||
filterDate?(date: Date): boolean; | ||
fixedHeight?: boolean; | ||
forceShowMonthNavigation?: boolean; | ||
formatWeekNumber?(date: moment.Moment): string | number; | ||
highlightDates?: moment.Moment[]; | ||
formatWeekNumber?(date: Date): string | number; | ||
highlightDates?: Date[]; | ||
id?: string; | ||
includeDates?: moment.Moment[]; | ||
includeTimes?: moment.Moment[]; | ||
includeDates?: Date[]; | ||
includeTimes?: Date[]; | ||
injectTimes?: Date[]; | ||
inline?: boolean; | ||
isClearable?: boolean; | ||
locale?: string; | ||
maxDate?: moment.Moment; | ||
maxTime?: moment.Moment; | ||
minDate?: moment.Moment; | ||
minTime?: moment.Moment; | ||
maxDate?: Date; | ||
maxTime?: Date; | ||
minDate?: Date; | ||
minTime?: Date; | ||
monthsShown?: number; | ||
name?: string; | ||
onBlur?(event: React.FocusEvent<HTMLInputElement>): void; | ||
onChange(date: moment.Moment | null, event: React.SyntheticEvent<any> | undefined): void; | ||
onChange(date: Date | null, event: React.SyntheticEvent<any> | undefined): void; | ||
onChangeRaw?(event: React.FocusEvent<HTMLInputElement>): void; | ||
@@ -64,7 +66,10 @@ onClickOutside?(event: React.MouseEvent<HTMLDivElement>): 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; | ||
onYearChange?(date: moment.Moment): void; | ||
openToDate?: moment.Moment; | ||
onMonthChange?(date: Date): void; | ||
onSelect?(date: Date, event: React.SyntheticEvent<any> | undefined): void; | ||
onWeekSelect?(firstDayOfWeek: Date, weekNumber: string | number, event: React.SyntheticEvent<any> | undefined): void; | ||
onInputClick?(): void; | ||
onYearChange?(date: Date): void; | ||
onInputError?(err: {code: number; msg: string}): void; | ||
open?: boolean; | ||
openToDate?: Date; | ||
peekNextMonth?: boolean; | ||
@@ -76,2 +81,3 @@ placeholderText?: string; | ||
popperPlacement?: string; | ||
popperProps?: {}; | ||
preventOpenOnFocus?: boolean; | ||
@@ -82,3 +88,3 @@ readOnly?: boolean; | ||
scrollableYearDropdown?: boolean; | ||
selected?: moment.Moment | null; | ||
selected?: Date | null; | ||
selectsEnd?: boolean; | ||
@@ -94,3 +100,3 @@ selectsStart?: boolean; | ||
showYearDropdown?: boolean; | ||
startDate?: moment.Moment; | ||
startDate?: Date; | ||
startOpen?: boolean; | ||
@@ -102,6 +108,5 @@ tabIndex?: number; | ||
title?: string; | ||
todayButton?: string; | ||
todayButton?: React.ReactNode; | ||
useShortMonthInDropdown?: boolean; | ||
useWeekdaysShort?: boolean; | ||
utcOffset?: number; | ||
value?: string; | ||
@@ -111,4 +116,18 @@ weekLabel?: string; | ||
yearDropdownItemNumber?: number; | ||
formatWeekDay?(date: Date): string; | ||
clearButtonTitle?: string; | ||
previousMonthButtonLabel?: string; | ||
nextMonthButtonLabel?: string; | ||
renderCustomHeader?(params: { | ||
date: Date; | ||
changeYear(year: number): void; | ||
changeMonth(month: number): void; | ||
decreaseMonth(): void; | ||
increaseMonth(): void; | ||
prevMonthButtonDisabled: boolean; | ||
nextMonthButtonDisabled: boolean; | ||
}): React.ReactNode; | ||
renderDayContents?(dayOfMonth: number): React.ReactNode; | ||
} | ||
declare const ReactDatePicker: React.ClassicComponentClass<ReactDatePickerProps>; | ||
export default ReactDatePicker; |
{ | ||
"name": "@types/react-datepicker", | ||
"version": "1.8.0", | ||
"version": "2.0.0", | ||
"description": "TypeScript definitions for react-datepicker", | ||
@@ -46,2 +46,7 @@ "license": "MIT", | ||
"githubUsername": "justingrant" | ||
}, | ||
{ | ||
"name": "Jake Boone", | ||
"url": "https://github.com/jakeboone02", | ||
"githubUsername": "jakeboone02" | ||
} | ||
@@ -57,8 +62,7 @@ ], | ||
"dependencies": { | ||
"moment": ">=2.14.0", | ||
"popper.js": "^1.14.1", | ||
"@types/react": "*" | ||
"@types/react": "*", | ||
"popper.js": "^1.14.1" | ||
}, | ||
"typesPublisherContentHash": "3c773ad748737663b0ebe5e50ea2d0eadd3e2c46aa30e12f2bb4985bc6a9c40b", | ||
"typesPublisherContentHash": "96944c918285c062af9b10fb193dee80d5752486537d24d231097de6a00da80f", | ||
"typeScriptVersion": "2.8" | ||
} |
@@ -11,7 +11,7 @@ # Installation | ||
Additional Details | ||
* Last updated: Thu, 29 Nov 2018 23:46:25 GMT | ||
* Dependencies: react, moment, popper.js | ||
* Last updated: Mon, 03 Dec 2018 19:22:23 GMT | ||
* Dependencies: @types/react, @types/popper.js | ||
* 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>, Platon Pronko <https://github.com/Rogach>, Roy Xue <https://github.com/royxue>, Koala Human <https://github.com/KoalaHuman>, Sean Kelley <https://github.com/seansfkelley>, Justin Grant <https://github.com/justingrant>. | ||
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>, Roy Xue <https://github.com/royxue>, Koala Human <https://github.com/KoalaHuman>, Sean Kelley <https://github.com/seansfkelley>, Justin Grant <https://github.com/justingrant>, Jake Boone <https://github.com/jakeboone02>. |
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
8285
2
121
- Removedmoment@>=2.14.0
- Removedmoment@2.30.1(transitive)