@types/react-dates
Advanced tools
Comparing version 16.7.0 to 17.1.0
@@ -1,2 +0,2 @@ | ||
// Type definitions for react-dates v16.7.0 | ||
// Type definitions for react-dates v17.1.0 | ||
// Project: https://github.com/airbnb/react-dates | ||
@@ -68,3 +68,10 @@ // Definitions by: Artur Ampilogov <https://github.com/ArturAmpilogov> | ||
// calendar presentation and interaction related props | ||
renderMonth?: (day: momentPropTypes.momentObj) => (string | JSX.Element), | ||
renderMonthText?: (day: momentPropTypes.momentObj) => (string | JSX.Element), | ||
renderMonthElement?: ( | ||
props: { | ||
month: momentPropTypes.momentObj; | ||
onMonthSelect: (currentMonth: momentPropTypes.momentObj, newMonthVal: string) => void; | ||
onYearSelect: (currentMonth: momentPropTypes.momentObj, newYearVal: string) => void; | ||
} | ||
) => string | JSX.Element, | ||
orientation?: OrientationShape, | ||
@@ -168,3 +175,10 @@ anchorDirection?: AnchorDirectionShape, | ||
// calendar presentation and interaction related props | ||
renderMonth?: (day: momentPropTypes.momentObj) => (string | JSX.Element), | ||
renderMonthText?: (day: momentPropTypes.momentObj) => (string | JSX.Element), | ||
renderMonthElement?: ( | ||
props: { | ||
month: momentPropTypes.momentObj; | ||
onMonthSelect: (currentMonth: momentPropTypes.momentObj, newMonthVal: string) => void; | ||
onYearSelect: (currentMonth: momentPropTypes.momentObj, newYearVal: string) => void; | ||
} | ||
) => string | JSX.Element, | ||
orientation?: OrientationShape, | ||
@@ -391,3 +405,10 @@ anchorDirection?: AnchorDirectionShape, | ||
interface DayPickerShape { | ||
renderMonth?: (day: momentPropTypes.momentObj) => (string | JSX.Element), | ||
renderMonthText?: (day: momentPropTypes.momentObj) => (string | JSX.Element), | ||
renderMonthElement?: ( | ||
props: { | ||
month: momentPropTypes.momentObj; | ||
onMonthSelect: (currentMonth: momentPropTypes.momentObj, newMonthVal: string) => void; | ||
onYearSelect: (currentMonth: momentPropTypes.momentObj, newYearVal: string) => void; | ||
} | ||
) => string | JSX.Element, | ||
enableOutsideDays?: boolean, | ||
@@ -394,0 +415,0 @@ numberOfMonths?: number, |
{ | ||
"name": "@types/react-dates", | ||
"version": "16.7.0", | ||
"version": "17.1.0", | ||
"description": "TypeScript definitions for react-dates", | ||
@@ -28,4 +28,4 @@ "license": "MIT", | ||
}, | ||
"typesPublisherContentHash": "62555e798f953e22d37131f1ca831d0201b45bed078f3cc86e25c020adb42bb5", | ||
"typesPublisherContentHash": "a9e19df02d4c6ff9d01e9c605670195f3dbed1dc43ecdf5d2718dd3b6b1c59fd", | ||
"typeScriptVersion": "2.6" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Wed, 13 Jun 2018 19:16:57 GMT | ||
* Last updated: Mon, 23 Jul 2018 23:44:12 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
20915
426
0