react-date-picker
Advanced tools
Comparing version 8.3.3 to 8.3.4
@@ -26,3 +26,4 @@ "use strict"; | ||
var _excluded = ["calendarClassName", "className", "onChange", "value"]; | ||
var _excluded = ["calendarClassName", "className", "onChange", "value"], | ||
_excluded2 = ["onChange"]; | ||
@@ -332,2 +333,3 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
var eventProps = this.eventProps; | ||
var _this$props5 = this.props, | ||
@@ -337,5 +339,9 @@ className = _this$props5.className, | ||
var isOpen = this.state.isOpen; | ||
var onChange = eventProps.onChange, | ||
eventPropsWithoutOnChange = _objectWithoutProperties(eventProps, _excluded2); | ||
return /*#__PURE__*/_react["default"].createElement("div", _extends({ | ||
className: (0, _mergeClassNames["default"])(baseClassName, "".concat(baseClassName, "--").concat(isOpen ? 'open' : 'closed'), "".concat(baseClassName, "--").concat(disabled ? 'disabled' : 'enabled'), className) | ||
}, this.eventProps, { | ||
}, eventPropsWithoutOnChange, { | ||
onFocus: this.onFocus, | ||
@@ -342,0 +348,0 @@ ref: function ref(_ref) { |
@@ -0,0 +0,0 @@ declare module "react-date-picker/dist/entry.nostyle" { |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ "use strict"; |
{ | ||
"name": "react-date-picker", | ||
"version": "8.3.3", | ||
"version": "8.3.4", | ||
"description": "A date picker for your React app.", | ||
@@ -5,0 +5,0 @@ "main": "dist/entry.js", |
@@ -0,0 +0,0 @@ import React from 'react'; |
@@ -0,0 +0,0 @@ import React from 'react'; |
@@ -0,0 +0,0 @@ import React from 'react'; |
@@ -252,5 +252,8 @@ import React, { PureComponent } from 'react'; | ||
render() { | ||
const { eventProps } = this; | ||
const { className, disabled } = this.props; | ||
const { isOpen } = this.state; | ||
const { onChange, ...eventPropsWithoutOnChange } = eventProps; | ||
return ( | ||
@@ -264,3 +267,3 @@ <div | ||
)} | ||
{...this.eventProps} | ||
{...eventPropsWithoutOnChange} | ||
onFocus={this.onFocus} | ||
@@ -267,0 +270,0 @@ ref={(ref) => { |
@@ -0,0 +0,0 @@ import React from 'react'; |
@@ -0,0 +0,0 @@ import 'react-calendar/dist/Calendar.css'; |
import DatePicker from './DatePicker'; | ||
export default DatePicker; |
@@ -0,0 +0,0 @@ import getUserLocale from 'get-user-locale'; |
@@ -0,0 +0,0 @@ import { |
@@ -0,0 +0,0 @@ import { |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ import { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
217198
5385