@zag-js/tabs 0.0.0-dev-20220626175355 → 0.0.0-dev-20220627213111

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.js CHANGED
@@ -62,16 +62,16 @@ function raf(fn) {
62
62
  globalThis.cancelAnimationFrame(id);
63
63
  };
64
64
  }
65
- function getStyleCache() {
66
- ;
67
- globalThis.__styleCache__ = globalThis.__styleCache__ || /* @__PURE__ */ new WeakMap();
68
- return globalThis.__styleCache__;
65
+ function getCache() {
66
+ const g = globalThis;
67
+ g.__styleCache__ = g.__styleCache__ || /* @__PURE__ */ new WeakMap();
68
+ return g.__styleCache__;
69
69
  }
70
70
  function getComputedStyle(el) {
71
71
  var _a;
72
72
  if (!el)
73
73
  return {};
74
- const cache = getStyleCache();
74
+ const cache = getCache();
75
75
  let style = cache.get(el);
76
76
  if (!style) {
77
77
  const win = (_a = el == null ? void 0 : el.ownerDocument.defaultView) != null ? _a : window;
package/dist/index.mjs CHANGED
@@ -39,16 +39,16 @@ function raf(fn) {
39
39
  globalThis.cancelAnimationFrame(id);
40
40
  };
41
41
  }
42
- function getStyleCache() {
43
- ;
44
- globalThis.__styleCache__ = globalThis.__styleCache__ || /* @__PURE__ */ new WeakMap();
45
- return globalThis.__styleCache__;
42
+ function getCache() {
43
+ const g = globalThis;
44
+ g.__styleCache__ = g.__styleCache__ || /* @__PURE__ */ new WeakMap();
45
+ return g.__styleCache__;
46
46
  }
47
47
  function getComputedStyle(el) {
48
48
  var _a;
49
49
  if (!el)
50
50
  return {};
51
- const cache = getStyleCache();
51
+ const cache = getCache();
52
52
  let style = cache.get(el);
53
53
  if (!style) {
54
54
  const win = (_a = el == null ? void 0 : el.ownerDocument.defaultView) != null ? _a : window;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zag-js/tabs",
3
- "version": "0.0.0-dev-20220626175355",
3
+ "version": "0.0.0-dev-20220627213111",
4
4
  "description": "Core logic for the tabs widget implemented as a state machine",
5
5
  "keywords": [
6
6
  "js",
@@ -29,8 +29,8 @@
29
29
  "url": "https://github.com/chakra-ui/zag/issues"
30
30
  },
31
31
  "dependencies": {
32
- "@zag-js/core": "0.0.0-dev-20220626175355",
33
- "@zag-js/dom-utils": "0.0.0-dev-20220626175355",
32
+ "@zag-js/core": "0.0.0-dev-20220627213111",
33
+ "@zag-js/dom-utils": "0.0.0-dev-20220627213111",
34
34
  "@zag-js/types": "0.2.0",
35
35
  "@zag-js/utils": "0.1.2"
36
36
  },