react-datetime-picker
Advanced tools
Comparing version 5.4.0 to 5.5.0
@@ -62,2 +62,3 @@ "use strict"; | ||
var propTypes_js_1 = require("./shared/propTypes.js"); | ||
var isBrowser = typeof document !== 'undefined'; | ||
var baseClassName = 'react-datetime-picker'; | ||
@@ -374,3 +375,3 @@ var outsideActionEvents = ['mousedown', 'focusin', 'touchstart']; | ||
openWidgetsOnFocus: prop_types_1.default.bool, | ||
portalContainer: prop_types_1.default.instanceOf(HTMLElement), | ||
portalContainer: isBrowser ? prop_types_1.default.instanceOf(HTMLElement) : undefined, | ||
required: prop_types_1.default.bool, | ||
@@ -377,0 +378,0 @@ secondAriaLabel: prop_types_1.default.string, |
@@ -34,2 +34,3 @@ 'use client'; | ||
import { isMaxDate, isMinDate, rangeOf } from './shared/propTypes.js'; | ||
var isBrowser = typeof document !== 'undefined'; | ||
var baseClassName = 'react-datetime-picker'; | ||
@@ -346,3 +347,3 @@ var outsideActionEvents = ['mousedown', 'focusin', 'touchstart']; | ||
openWidgetsOnFocus: PropTypes.bool, | ||
portalContainer: PropTypes.instanceOf(HTMLElement), | ||
portalContainer: isBrowser ? PropTypes.instanceOf(HTMLElement) : undefined, | ||
required: PropTypes.bool, | ||
@@ -349,0 +350,0 @@ secondAriaLabel: PropTypes.string, |
{ | ||
"name": "react-datetime-picker", | ||
"version": "5.4.0", | ||
"version": "5.5.0", | ||
"description": "A date range picker for your React app.", | ||
@@ -18,2 +18,10 @@ "type": "module", | ||
}, | ||
"./dist/DateTimeInput": { | ||
"import": "./dist/esm/DateTimeInput.js", | ||
"require": "./dist/cjs/DateTimeInput.js" | ||
}, | ||
"./dist/DateTimeInput.js": { | ||
"import": "./dist/esm/DateTimeInput.js", | ||
"require": "./dist/cjs/DateTimeInput.js" | ||
}, | ||
"./dist/cjs/DateTimeInput": "./dist/cjs/DateTimeInput.js", | ||
@@ -64,5 +72,5 @@ "./dist/cjs/DateTimeInput.js": "./dist/cjs/DateTimeInput.js", | ||
"react-clock": "^4.5.0", | ||
"react-date-picker": "^10.4.1", | ||
"react-date-picker": "^10.5.0", | ||
"react-fit": "^1.7.0", | ||
"react-time-picker": "^6.4.1" | ||
"react-time-picker": "^6.5.0" | ||
}, | ||
@@ -69,0 +77,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
292128
5900
Updatedreact-date-picker@^10.5.0
Updatedreact-time-picker@^6.5.0