react-date-picker
Advanced tools
Comparing version 10.5.0 to 10.5.1
@@ -263,3 +263,2 @@ "use strict"; | ||
openCalendarOnFocus: prop_types_1.default.bool, | ||
portalContainer: isBrowser ? prop_types_1.default.instanceOf(HTMLElement) : undefined, | ||
required: prop_types_1.default.bool, | ||
@@ -272,2 +271,5 @@ returnValue: prop_types_1.default.oneOf(['start', 'end', 'range']), | ||
}; | ||
if (isBrowser) { | ||
DatePicker.propTypes.portalContainer = prop_types_1.default.instanceOf(HTMLElement); | ||
} | ||
exports.default = DatePicker; |
@@ -235,3 +235,2 @@ 'use client'; | ||
openCalendarOnFocus: PropTypes.bool, | ||
portalContainer: isBrowser ? PropTypes.instanceOf(HTMLElement) : undefined, | ||
required: PropTypes.bool, | ||
@@ -244,2 +243,5 @@ returnValue: PropTypes.oneOf(['start', 'end', 'range']), | ||
}; | ||
if (isBrowser) { | ||
DatePicker.propTypes.portalContainer = PropTypes.instanceOf(HTMLElement); | ||
} | ||
export default DatePicker; |
{ | ||
"name": "react-date-picker", | ||
"version": "10.5.0", | ||
"version": "10.5.1", | ||
"description": "A date picker for your React app.", | ||
@@ -94,3 +94,3 @@ "type": "module", | ||
"unit": "vitest", | ||
"watch": "yarn build-js-esm --watch & yarn build-js-cjs --watch & yarn build-js-cjs-package & nodemon --watch src --ext css --exec \"yarn copy-styles\"" | ||
"watch": "yarn build-js-esm --watch & yarn build-js-cjs --watch & nodemon --watch src --ext css --exec \"yarn copy-styles\"" | ||
}, | ||
@@ -129,7 +129,5 @@ "keywords": [ | ||
"eslint-config-wojtekmaj": "^0.9.0", | ||
"husky": "^8.0.0", | ||
"jsdom": "^21.1.0", | ||
"nodemon": "^3.0.0", | ||
"prettier": "^2.7.0", | ||
"pretty-quick": "^3.1.0", | ||
"prettier": "^3.0.0", | ||
"react": "^18.2.0", | ||
@@ -139,3 +137,3 @@ "react-dom": "^18.2.0", | ||
"typescript": "^5.0.0", | ||
"vitest": "^0.30.1", | ||
"vitest": "^0.34.0", | ||
"vitest-canvas-mock": "^0.2.2" | ||
@@ -163,6 +161,6 @@ }, | ||
"type": "git", | ||
"url": "https://github.com/wojtekmaj/react-date-picker.git" | ||
"url": "https://github.com/wojtekmaj/react-date-picker.git", | ||
"directory": "packages/react-date-picker" | ||
}, | ||
"funding": "https://github.com/wojtekmaj/react-date-picker?sponsor=1", | ||
"packageManager": "yarn@3.1.0" | ||
"funding": "https://github.com/wojtekmaj/react-date-picker?sponsor=1" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
18
6343
292019