react-layer-context
Advanced tools
Comparing version 0.0.0 to 0.0.1
@@ -21,3 +21,5 @@ "use strict"; | ||
return _temp = super(...args), this.setPortalRef = portalRef => { | ||
return _temp = super(...args), this.state = { | ||
portalRef: null | ||
}, this.setPortalRef = portalRef => { | ||
this.setState({ portalRef }); | ||
@@ -34,3 +36,3 @@ }, _temp; | ||
"div", | ||
{ style: { zIndex: zIndex } }, | ||
{ style: { zIndex } }, | ||
_react2.default.createElement("div", { ref: this.setPortalRef }), | ||
@@ -37,0 +39,0 @@ _react2.default.createElement( |
@@ -27,3 +27,5 @@ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = _class.__proto__ || Object.getPrototypeOf(_class)).call.apply(_ref, [this].concat(args))), _this), _this.setPortalRef = function (portalRef) { | ||
return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = _class.__proto__ || Object.getPrototypeOf(_class)).call.apply(_ref, [this].concat(args))), _this), _this.state = { | ||
portalRef: null | ||
}, _this.setPortalRef = function (portalRef) { | ||
_this.setState({ portalRef: portalRef }); | ||
@@ -30,0 +32,0 @@ }, _temp), _possibleConstructorReturn(_this, _ret); |
{ | ||
"name": "react-layer-context", | ||
"version": "0.0.0", | ||
"version": "0.0.1", | ||
"description": "Manage layers via portals and context.", | ||
"main": "dist/cjs/index.js", | ||
"module": "dist/esm/index.js", | ||
"files": ["dist"], | ||
"browser": "dist/umd/index.js", | ||
"files": [ | ||
"dist" | ||
], | ||
"scripts": { | ||
@@ -28,4 +31,4 @@ "prepublish": "zeropack", | ||
"react-dom": "^16.4.0", | ||
"zeropack": "^0.4.1" | ||
"zeropack": "^0.4.2" | ||
} | ||
} |
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
37500
40
425