@uiw/react-overlay
Advanced tools
Comparing version 4.1.0 to 4.1.1
@@ -46,3 +46,3 @@ "use strict"; | ||
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | ||
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | ||
@@ -209,3 +209,3 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } | ||
onClosing = _this$props5.onClosing; | ||
var decoratedChild = (0, _typeof2.default)(children) === 'object' ? (0, _react.cloneElement)(children, _objectSpread(_objectSpread({}, dialogProps), {}, { | ||
var decoratedChild = (0, _typeof2.default)(children) === 'object' ? /*#__PURE__*/(0, _react.cloneElement)(children, _objectSpread(_objectSpread({}, dialogProps), {}, { | ||
style: _objectSpread(_objectSpread({}, children.props.style), dialogProps.style), | ||
@@ -234,3 +234,3 @@ className: (0, _classnames2.default)(children.props.className, "".concat(prefixCls, "-content")), | ||
className: (0, _classnames2.default)(prefixCls, className, (_classnames = {}, (0, _defineProperty2.default)(_classnames, "".concat(prefixCls, "-inline"), !usePortal), (0, _defineProperty2.default)(_classnames, "".concat(prefixCls, "-enter-done"), _this2.state.isOpen), _classnames)) | ||
}, hasBackdrop && (0, _react.cloneElement)( /*#__PURE__*/_react.default.createElement("div", null), _objectSpread(_objectSpread({}, backdropProps), {}, { | ||
}, hasBackdrop && /*#__PURE__*/(0, _react.cloneElement)( /*#__PURE__*/_react.default.createElement("div", null), _objectSpread(_objectSpread({}, backdropProps), {}, { | ||
onMouseDown: _this2.handleBackdropMouseDown.bind(_this2), | ||
@@ -245,5 +245,5 @@ className: (0, _classnames2.default)("".concat(prefixCls, "-backdrop"), backdropProps.className), | ||
className: (0, _classnames2.default)("".concat(prefixCls, "-container")) | ||
}, (0, _react.cloneElement)(decoratedChild, { | ||
}, /*#__PURE__*/(0, _react.cloneElement)(decoratedChild, { | ||
'data-status': status | ||
})) : (0, _react.cloneElement)(decoratedChild, { | ||
})) : /*#__PURE__*/(0, _react.cloneElement)(decoratedChild, { | ||
'data-status': status | ||
@@ -250,0 +250,0 @@ })); |
@@ -16,3 +16,3 @@ import _extends from "@babel/runtime/helpers/esm/extends"; | ||
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } | ||
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } | ||
@@ -198,3 +198,3 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } | ||
onClosing = _this$props5.onClosing; | ||
var decoratedChild = _typeof(children) === 'object' ? cloneElement(children, _objectSpread(_objectSpread({}, dialogProps), {}, { | ||
var decoratedChild = _typeof(children) === 'object' ? /*#__PURE__*/cloneElement(children, _objectSpread(_objectSpread({}, dialogProps), {}, { | ||
style: _objectSpread(_objectSpread({}, children.props.style), dialogProps.style), | ||
@@ -222,3 +222,3 @@ className: classnames(children.props.className, "".concat(prefixCls, "-content")), | ||
className: classnames(prefixCls, className, (_classnames = {}, _defineProperty(_classnames, "".concat(prefixCls, "-inline"), !usePortal), _defineProperty(_classnames, "".concat(prefixCls, "-enter-done"), _this2.state.isOpen), _classnames)) | ||
}, hasBackdrop && cloneElement( /*#__PURE__*/React.createElement("div", null), _objectSpread(_objectSpread({}, backdropProps), {}, { | ||
}, hasBackdrop && /*#__PURE__*/cloneElement( /*#__PURE__*/React.createElement("div", null), _objectSpread(_objectSpread({}, backdropProps), {}, { | ||
onMouseDown: _this2.handleBackdropMouseDown.bind(_this2), | ||
@@ -233,5 +233,5 @@ className: classnames("".concat(prefixCls, "-backdrop"), backdropProps.className), | ||
className: classnames("".concat(prefixCls, "-container")) | ||
}, cloneElement(decoratedChild, { | ||
}, /*#__PURE__*/cloneElement(decoratedChild, { | ||
'data-status': status | ||
})) : cloneElement(decoratedChild, { | ||
})) : /*#__PURE__*/cloneElement(decoratedChild, { | ||
'data-status': status | ||
@@ -238,0 +238,0 @@ })); |
{ | ||
"name": "@uiw/react-overlay", | ||
"version": "4.1.0", | ||
"version": "4.1.1", | ||
"description": "Overlay component", | ||
@@ -46,4 +46,4 @@ "author": "Kenny Wong <wowohoo@qq.com>", | ||
"dependencies": { | ||
"@uiw/react-portal": "^4.1.0", | ||
"@uiw/utils": "^4.1.0", | ||
"@uiw/react-portal": "^4.1.1", | ||
"@uiw/utils": "^4.1.1", | ||
"classnames": "^2.2.6", | ||
@@ -62,3 +62,3 @@ "react-transition-group": "^4.3.0" | ||
}, | ||
"gitHead": "5a2547993b7f4538e7075f6dce7e550620e31eca" | ||
"gitHead": "1f6848374148d3e573244cf52dc88ecd001a6423" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
84160
Updated@uiw/react-portal@^4.1.1
Updated@uiw/utils@^4.1.1