@paprika/helpers
Advanced tools
Comparing version 0.2.12 to 0.2.13
@@ -18,3 +18,3 @@ "use strict"; | ||
var LockBodyScroll = function LockBodyScroll() { | ||
return _reactDom["default"].createPortal(_react["default"].createElement("style", { | ||
return /*#__PURE__*/_reactDom["default"].createPortal( /*#__PURE__*/_react["default"].createElement("style", { | ||
type: "text/css" | ||
@@ -21,0 +21,0 @@ }, "body { overflow: hidden !important; }"), document.head); |
@@ -34,3 +34,3 @@ "use strict"; | ||
container = props.container; | ||
return active ? _reactDom["default"].createPortal(children, container || document.body) : _react["default"].createElement(_react["default"].Fragment, null, children); | ||
return active ? /*#__PURE__*/_reactDom["default"].createPortal(children, container || document.body) : /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, children); | ||
} | ||
@@ -37,0 +37,0 @@ |
@@ -35,3 +35,3 @@ "use strict"; | ||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { (0, _defineProperty3["default"])(target, key, source[key]); }); } else if (_getOwnPropertyDescriptors["default"]) { (0, _defineProperties["default"])(target, (0, _getOwnPropertyDescriptors["default"])(source)); } else { ownKeys(source).forEach(function (key) { (0, _defineProperty2["default"])(target, key, (0, _getOwnPropertyDescriptor["default"])(source, key)); }); } } return target; } | ||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty3["default"])(target, key, source[key]); }); } else if (_getOwnPropertyDescriptors["default"]) { (0, _defineProperties["default"])(target, (0, _getOwnPropertyDescriptors["default"])(source)); } else { ownKeys(Object(source)).forEach(function (key) { (0, _defineProperty2["default"])(target, key, (0, _getOwnPropertyDescriptor["default"])(source, key)); }); } } return target; } | ||
@@ -56,3 +56,3 @@ function extractChildren(children, types) { | ||
return _objectSpread({}, components, { | ||
return _objectSpread(_objectSpread({}, components), {}, { | ||
children: _children | ||
@@ -59,0 +59,0 @@ }); |
@@ -31,3 +31,3 @@ "use strict"; | ||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { (0, _defineProperty3["default"])(target, key, source[key]); }); } else if (_getOwnPropertyDescriptors["default"]) { (0, _defineProperties["default"])(target, (0, _getOwnPropertyDescriptors["default"])(source)); } else { ownKeys(source).forEach(function (key) { (0, _defineProperty2["default"])(target, key, (0, _getOwnPropertyDescriptor["default"])(source, key)); }); } } return target; } | ||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty3["default"])(target, key, source[key]); }); } else if (_getOwnPropertyDescriptors["default"]) { (0, _defineProperties["default"])(target, (0, _getOwnPropertyDescriptors["default"])(source)); } else { ownKeys(Object(source)).forEach(function (key) { (0, _defineProperty2["default"])(target, key, (0, _getOwnPropertyDescriptor["default"])(source, key)); }); } } return target; } | ||
@@ -38,3 +38,3 @@ function extractChildrenProps(children, target) { | ||
_react["default"].Children.forEach(children, function (child) { | ||
if (child.type.displayName === target.displayName) { | ||
if (child.type && child.type.displayName === target.displayName) { | ||
props = _objectSpread({}, child.props); | ||
@@ -41,0 +41,0 @@ } |
{ | ||
"name": "@paprika/helpers", | ||
"version": "0.2.12", | ||
"version": "0.2.13", | ||
"description": "Testing helpers for the components", | ||
@@ -19,3 +19,3 @@ "author": "@paprika", | ||
}, | ||
"gitHead": "2b98c8f0e8bacd6f405f5615e77256c3fd0eda76" | ||
"gitHead": "fca10c03f84f6ba0772c360556835c83d91ebb5b" | ||
} |
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
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
44365