@types/react-dates
Advanced tools
Comparing version 10.0.0 to 12.1.0
@@ -1,2 +0,2 @@ | ||
// Type definitions for react-dates v10.0.1 | ||
// Type definitions for react-dates v12.1.0 | ||
// Project: https://github.com/airbnb/react-dates | ||
@@ -12,3 +12,3 @@ // Definitions by: Artur Ampilogov <https://github.com/Artur-A> | ||
declare namespace momentPropTypes{ | ||
declare namespace momentPropTypes { | ||
type momentObj = moment.Moment; | ||
@@ -19,20 +19,22 @@ type momentString = any; | ||
declare namespace ReactDates{ | ||
declare namespace ReactDates { | ||
type AnchorDirectionShape = 'left' | 'right'; | ||
type FocusedInputShape = 'startDate' | 'endDate'; | ||
type OrientationShape = 'horizontal' | 'vertical'; | ||
type ScrollableOrientationShape = 'horizontal' | 'vertical' | 'verticalScrollable'; | ||
type OrientationShape = 'horizontal' | 'vertical'; | ||
type ScrollableOrientationShape = 'horizontal' | 'vertical' | 'verticalScrollable'; | ||
interface DateRangePickerShape{ | ||
interface DateRangePickerShape { | ||
// REQUIRED props | ||
startDate: momentPropTypes.momentObj | null, | ||
endDate: momentPropTypes.momentObj | null, | ||
onDatesChange: (arg: { startDate: momentPropTypes.momentObj | null, | ||
endDate: momentPropTypes.momentObj | null } | ||
) => void, | ||
onDatesChange: (arg: { | ||
startDate: momentPropTypes.momentObj | null, | ||
endDate: momentPropTypes.momentObj | null | ||
} | ||
) => void, | ||
focusedInput: FocusedInputShape | null, | ||
onFocusChange: (arg: FocusedInputShape | null) => void, | ||
// input related props | ||
@@ -45,2 +47,3 @@ startDateId?: string, | ||
required?: boolean, | ||
readOnly?: boolean, | ||
screenReaderInputMessage?: string, | ||
@@ -63,3 +66,5 @@ showClearDates?: boolean, | ||
reopenPickerOnClearDates?: boolean, | ||
renderCalendarInfo?: () => (string | JSX.Element), | ||
renderCalendarInfo?: () => (string | JSX.Element), | ||
hideKeyboardShortcutsPanel?: boolean, | ||
isRTL?: boolean, | ||
@@ -71,2 +76,3 @@ // navigation related props | ||
onNextMonthClick?: (e: React.EventHandler<React.MouseEvent<HTMLSpanElement>>) => void, | ||
onClose?: (final: { startDate: momentPropTypes.momentObj, endDate: momentPropTypes.momentObj }) => void, | ||
@@ -80,6 +86,6 @@ // day presentation and interaction related props | ||
isDayHighlighted?: (day: any) => boolean, | ||
// internationalization props | ||
displayFormat?: (string | (()=> string)), | ||
displayFormat?: (string | (() => string)), | ||
monthFormat?: string, | ||
@@ -120,3 +126,3 @@ phrases?: { | ||
interface SingleDatePickerShape{ | ||
interface SingleDatePickerShape { | ||
// REQUIRED props | ||
@@ -127,3 +133,3 @@ date: momentPropTypes.momentObj | null, | ||
onFocusChange: (arg: { focused: boolean | null }) => void, | ||
id: string, | ||
@@ -135,5 +141,8 @@ | ||
required?: boolean, | ||
readOnly?: boolean, | ||
screenReaderInputMessage?: string, | ||
showClearDate?: boolean, | ||
customCloseIcon?: string | JSX.Element, | ||
showDefaultInputIcon?: boolean, | ||
customInputIcon?: string | JSX.Element, | ||
@@ -150,3 +159,5 @@ // calendar presentation and interaction related props | ||
reopenPickerOnClearDates?: boolean, | ||
renderCalendarInfo?: () => (string | JSX.Element), | ||
renderCalendarInfo?: () => (string | JSX.Element), | ||
hideKeyboardShortcutsPanel?: boolean, | ||
isRTL?: boolean, | ||
@@ -158,4 +169,5 @@ // navigation related props | ||
onNextMonthClick?: (e: React.EventHandler<React.MouseEvent<HTMLSpanElement>>) => void, | ||
onClose?: (final: { startDate: momentPropTypes.momentObj, endDate: momentPropTypes.momentObj }) => void, | ||
// day presentation and interaction related props | ||
// day presentation and interaction related props | ||
renderDay?: (day: momentPropTypes.momentObj) => (string | JSX.Element), | ||
@@ -167,5 +179,4 @@ enableOutsideDays?: boolean, | ||
// internationalization props | ||
displayFormat?: (string | (()=> string)), | ||
displayFormat?: (string | (() => string)), | ||
monthFormat?: string, | ||
@@ -209,5 +220,7 @@ phrases?: { | ||
endDate: momentPropTypes.momentObj | null, | ||
onDatesChange: (arg: { startDate: momentPropTypes.momentObj | null, | ||
endDate: momentPropTypes.momentObj | null } | ||
) => void, | ||
onDatesChange: (arg: { | ||
startDate: momentPropTypes.momentObj | null, | ||
endDate: momentPropTypes.momentObj | null | ||
} | ||
) => void, | ||
focusedInput: FocusedInputShape | null, | ||
@@ -222,6 +235,6 @@ onFocusChange: (arg: FocusedInputShape | null) => void, | ||
initialVisibleMonth?: () => momentPropTypes.momentObj, | ||
renderCalendarInfo?: () => (string | JSX.Element), | ||
renderCalendarInfo?: () => (string | JSX.Element), | ||
onOutsideClick?: (e: any) => void, | ||
keepOpenOnDateSelect?: boolean, | ||
// navigation related props | ||
@@ -251,6 +264,6 @@ navPrev?: string | JSX.Element, | ||
var DayPickerRangeController: React.ClassicComponentClass<DayPickerRangeControllerShape>; | ||
var isInclusivelyAfterDay: (a: moment.Moment, b: moment.Moment) => boolean; | ||
@@ -263,4 +276,4 @@ var isInclusivelyBeforeDay: (a: moment.Moment, b: moment.Moment) => boolean; | ||
var toLocalizedDateString: (date: moment.MomentInput, currentFormat: moment.MomentFormatSpecification) => string | null; | ||
var toMomentObject: (dateString: moment.MomentInput, customFormat: moment.MomentFormatSpecification) => moment.Moment | null; | ||
var toMomentObject: (dateString: moment.MomentInput, customFormat: moment.MomentFormatSpecification) => moment.Moment | null; | ||
} |
{ | ||
"name": "@types/react-dates", | ||
"version": "10.0.0", | ||
"version": "12.1.0", | ||
"description": "TypeScript definitions for react-dates", | ||
@@ -23,4 +23,4 @@ "license": "MIT", | ||
"peerDependencies": {}, | ||
"typesPublisherContentHash": "c5a20c115868afff3bd268c42ed587b4b59243afb7ae5c35501a9b4e8146eb54", | ||
"typesPublisherContentHash": "75c2cf556038ffe899b62ae72d82323b411804628bd2abf59548a7bf8a677015", | ||
"typeScriptVersion": "2.2" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Tue, 18 Apr 2017 15:11:46 GMT | ||
* Last updated: Fri, 02 Jun 2017 13:25:33 GMT | ||
* Dependencies: react, moment | ||
@@ -14,0 +14,0 @@ * Global values: none |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
12941
226
0