@zag-js/tabs 0.0.0-dev-20220704151659 → 0.0.0-dev-20220707125149

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
@@ -43,6 +43,16 @@ module.exports = __toCommonJS(src_exports);
43
43
  var dataAttr = (guard) => {
44
44
  return guard ? "" : void 0;
45
45
  };
46
+ var isDom = () => typeof window !== "undefined";
47
+ function getPlatform() {
48
+ var _a;
49
+ const agent = navigator.userAgentData;
50
+ return (_a = agent == null ? void 0 : agent.platform) != null ? _a : navigator.platform;
51
+ }
52
+ var pt = (v) => isDom() && v.test(getPlatform());
53
+ var vn = (v) => isDom() && v.test(navigator.vendor);
54
+ var isSafari = () => isApple() && vn(/apple/i);
55
+ var isApple = () => pt(/mac|iphone|ipad|ipod/i);
46
56
  function isFrame(element) {
47
57
  return element.localName === "iframe";
48
58
  }
@@ -149,16 +159,6 @@ function prevById(v, id, loop = true) {
149
159
  // ../../utilities/core/dist/index.mjs
150
160
  var first = (v) => v[0];
151
161
  var last = (v) => v[v.length - 1];
152
- var isDom = () => typeof window !== "undefined";
153
- function getPlatform() {
154
- var _a;
155
- const agent = navigator.userAgentData;
156
- return (_a = agent == null ? void 0 : agent.platform) != null ? _a : navigator.platform;
157
- }
158
- var pt = (v) => isDom() && v.test(getPlatform());
159
- var vn = (v) => isDom() && v.test(navigator.vendor);
160
- var isSafari = () => isApple() && vn(/apple/i);
161
- var isApple = () => pt(/mac|iphone|ipad|ipod/i);
162
162
 
163
163
  // src/tabs.dom.ts
164
164
  var dom = {
package/dist/index.mjs CHANGED
@@ -19,6 +19,16 @@ var __spreadValues = (a, b) => {
19
19
  var dataAttr = (guard) => {
20
20
  return guard ? "" : void 0;
21
21
  };
22
+ var isDom = () => typeof window !== "undefined";
23
+ function getPlatform() {
24
+ var _a;
25
+ const agent = navigator.userAgentData;
26
+ return (_a = agent == null ? void 0 : agent.platform) != null ? _a : navigator.platform;
27
+ }
28
+ var pt = (v) => isDom() && v.test(getPlatform());
29
+ var vn = (v) => isDom() && v.test(navigator.vendor);
30
+ var isSafari = () => isApple() && vn(/apple/i);
31
+ var isApple = () => pt(/mac|iphone|ipad|ipod/i);
22
32
  function isFrame(element) {
23
33
  return element.localName === "iframe";
24
34
  }
@@ -125,16 +135,6 @@ function prevById(v, id, loop = true) {
125
135
  // ../../utilities/core/dist/index.mjs
126
136
  var first = (v) => v[0];
127
137
  var last = (v) => v[v.length - 1];
128
- var isDom = () => typeof window !== "undefined";
129
- function getPlatform() {
130
- var _a;
131
- const agent = navigator.userAgentData;
132
- return (_a = agent == null ? void 0 : agent.platform) != null ? _a : navigator.platform;
133
- }
134
- var pt = (v) => isDom() && v.test(getPlatform());
135
- var vn = (v) => isDom() && v.test(navigator.vendor);
136
- var isSafari = () => isApple() && vn(/apple/i);
137
- var isApple = () => pt(/mac|iphone|ipad|ipod/i);
138
138
 
139
139
  // src/tabs.dom.ts
140
140
  var dom = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zag-js/tabs",
3
- "version": "0.0.0-dev-20220704151659",
3
+ "version": "0.0.0-dev-20220707125149",
4
4
  "description": "Core logic for the tabs widget implemented as a state machine",
5
5
  "keywords": [
6
6
  "js",
@@ -29,9 +29,9 @@
29
29
  "url": "https://github.com/chakra-ui/zag/issues"
30
30
  },
31
31
  "dependencies": {
32
- "@zag-js/core": "0.0.0-dev-20220704151659",
33
- "@zag-js/dom-utils": "0.0.0-dev-20220704151659",
34
- "@zag-js/types": "0.0.0-dev-20220704151659",
32
+ "@zag-js/core": "0.0.0-dev-20220707125149",
33
+ "@zag-js/dom-utils": "0.0.0-dev-20220707125149",
34
+ "@zag-js/types": "0.0.0-dev-20220707125149",
35
35
  "@zag-js/utils": "0.1.2"
36
36
  },
37
37
  "scripts": {