@next-core/brick-kit 2.122.7 → 2.122.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -438,8 +438,11 @@ function useCurrentMode() {
438
438
  return currentMode;
439
439
  }
440
440
  function getCssPropertyValue(name) {
441
+ var _window$getComputedSt;
442
+
441
443
  var el = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : document.documentElement;
442
- return window.getComputedStyle(el).getPropertyValue(name);
444
+ if (!el) return "";
445
+ return ((_window$getComputedSt = window.getComputedStyle(el)) === null || _window$getComputedSt === void 0 ? void 0 : _window$getComputedSt.getPropertyValue(name)) || "";
443
446
  }
444
447
 
445
448
  function asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, key, arg) {
@@ -1566,7 +1569,8 @@ function getIndividualGlobal(variableName, _ref) {
1566
1569
 
1567
1570
  case "THEME":
1568
1571
  return {
1569
- getTheme: collectCoverage ? () => "light" : getTheme
1572
+ getTheme: collectCoverage ? () => "light" : getTheme,
1573
+ getCssPropertyValue: collectCoverage ? () => "" : getCssPropertyValue
1570
1574
  };
1571
1575
 
1572
1576
  case "console":