@rescui/ui-contexts
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -0,4 +1,15 @@ | ||
import "core-js/modules/web.dom-collections.for-each.js"; | ||
import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys"; | ||
import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols"; | ||
import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter"; | ||
import _Object$getOwnPropertyDescriptor from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor"; | ||
import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors"; | ||
import _classCallCheck from "@babel/runtime-corejs3/helpers/esm/classCallCheck"; | ||
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty"; | ||
import "core-js/modules/es.function.name.js"; | ||
import _Object$assign from "@babel/runtime-corejs3/core-js-stable/object/assign"; | ||
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); if (enumerableOnly) { symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; } | ||
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) { _defineProperty(target, key, source[key]); }); } else if (_Object$getOwnPropertyDescriptors) { Object.defineProperties(target, _Object$getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } } return target; } | ||
import React, { createContext, useContext } from 'react'; | ||
@@ -12,2 +23,12 @@ var LAYER_STEP = 500; | ||
_defineProperty(this, "baseZIndex", void 0); | ||
_defineProperty(this, "isInPortal", void 0); | ||
_defineProperty(this, "popupZIndex", void 0); | ||
_defineProperty(this, "dropdownZIndex", void 0); | ||
_defineProperty(this, "tooltipZIndex", void 0); | ||
Object.defineProperty(this, 'baseZIndex', { | ||
@@ -57,3 +78,3 @@ writable: false, | ||
return /*#__PURE__*/React.createElement(LayeringContext.Consumer, null, function (layering) { | ||
return /*#__PURE__*/React.createElement(WrappedComponent, _Object$assign({}, layering, props)); | ||
return /*#__PURE__*/React.createElement(WrappedComponent, _objectSpread(_objectSpread({}, layering), props)); | ||
}); | ||
@@ -60,0 +81,0 @@ }; |
@@ -0,5 +1,16 @@ | ||
import "core-js/modules/web.dom-collections.for-each.js"; | ||
import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys"; | ||
import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols"; | ||
import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter"; | ||
import _Object$getOwnPropertyDescriptor from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor"; | ||
import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors"; | ||
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty"; | ||
import _objectWithoutProperties from "@babel/runtime-corejs3/helpers/esm/objectWithoutProperties"; | ||
var _excluded = ["theme"]; | ||
import "core-js/modules/es.function.name.js"; | ||
import _Object$assign from "@babel/runtime-corejs3/core-js-stable/object/assign"; | ||
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); if (enumerableOnly) { symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; } | ||
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) { _defineProperty(target, key, source[key]); }); } else if (_Object$getOwnPropertyDescriptors) { Object.defineProperties(target, _Object$getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } } return target; } | ||
import React, { createContext, useContext } from 'react'; | ||
@@ -29,3 +40,3 @@ var ThemeContext = /*#__PURE__*/createContext('light'); | ||
return /*#__PURE__*/React.createElement(ThemeConsumer, null, function (themeFromContext) { | ||
return /*#__PURE__*/React.createElement(WrappedComponent, _Object$assign({ | ||
return /*#__PURE__*/React.createElement(WrappedComponent, _objectSpread({ | ||
ref: ref, | ||
@@ -32,0 +43,0 @@ theme: theme || themeFromContext |
{ | ||
"name": "@rescui/ui-contexts", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "", | ||
@@ -27,3 +27,3 @@ "license": "Apache-2.0", | ||
"devDependencies": { | ||
"@rescui/scripts": "^0.1.1" | ||
"@rescui/scripts": "^0.1.2" | ||
}, | ||
@@ -33,3 +33,3 @@ "scripts": { | ||
}, | ||
"gitHead": "42f60242929cb7b0e9c371ecf99d658b32217c5f" | ||
"gitHead": "66df4ba6f30f960f8d9a77db3ef079f8b0ad40ca" | ||
} |
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
23683
223