@zag-js/tabs 0.0.0-dev-20220703123907 → 0.0.0-dev-20220703125047
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 +19 -19
- package/dist/index.mjs +19 -19
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -43,25 +43,6 @@ module.exports = __toCommonJS(src_exports);
|
|
|
43
43
|
var dataAttr = (guard) => {
|
|
44
44
|
return guard ? "" : void 0;
|
|
45
45
|
};
|
|
46
|
-
function nextTick(fn) {
|
|
47
|
-
const set = /* @__PURE__ */ new Set();
|
|
48
|
-
function raf2(fn2) {
|
|
49
|
-
const id = globalThis.requestAnimationFrame(fn2);
|
|
50
|
-
set.add(() => globalThis.cancelAnimationFrame(id));
|
|
51
|
-
}
|
|
52
|
-
raf2(() => raf2(fn));
|
|
53
|
-
return function cleanup() {
|
|
54
|
-
set.forEach(function(fn2) {
|
|
55
|
-
fn2();
|
|
56
|
-
});
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
function raf(fn) {
|
|
60
|
-
const id = globalThis.requestAnimationFrame(fn);
|
|
61
|
-
return function cleanup() {
|
|
62
|
-
globalThis.cancelAnimationFrame(id);
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
46
|
function isFrame(element) {
|
|
66
47
|
return element.localName === "iframe";
|
|
67
48
|
}
|
|
@@ -122,6 +103,25 @@ function getEventKey(event, options = {}) {
|
|
|
122
103
|
}
|
|
123
104
|
return key;
|
|
124
105
|
}
|
|
106
|
+
function nextTick(fn) {
|
|
107
|
+
const set = /* @__PURE__ */ new Set();
|
|
108
|
+
function raf2(fn2) {
|
|
109
|
+
const id = globalThis.requestAnimationFrame(fn2);
|
|
110
|
+
set.add(() => globalThis.cancelAnimationFrame(id));
|
|
111
|
+
}
|
|
112
|
+
raf2(() => raf2(fn));
|
|
113
|
+
return function cleanup() {
|
|
114
|
+
set.forEach(function(fn2) {
|
|
115
|
+
fn2();
|
|
116
|
+
});
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
function raf(fn) {
|
|
120
|
+
const id = globalThis.requestAnimationFrame(fn);
|
|
121
|
+
return function cleanup() {
|
|
122
|
+
globalThis.cancelAnimationFrame(id);
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
125
|
function queryAll(root, selector) {
|
|
126
126
|
var _a;
|
|
127
127
|
return Array.from((_a = root == null ? void 0 : root.querySelectorAll(selector)) != null ? _a : []);
|
package/dist/index.mjs
CHANGED
|
@@ -20,25 +20,6 @@ var __spreadValues = (a, b) => {
|
|
|
20
20
|
var dataAttr = (guard) => {
|
|
21
21
|
return guard ? "" : void 0;
|
|
22
22
|
};
|
|
23
|
-
function nextTick(fn) {
|
|
24
|
-
const set = /* @__PURE__ */ new Set();
|
|
25
|
-
function raf2(fn2) {
|
|
26
|
-
const id = globalThis.requestAnimationFrame(fn2);
|
|
27
|
-
set.add(() => globalThis.cancelAnimationFrame(id));
|
|
28
|
-
}
|
|
29
|
-
raf2(() => raf2(fn));
|
|
30
|
-
return function cleanup() {
|
|
31
|
-
set.forEach(function(fn2) {
|
|
32
|
-
fn2();
|
|
33
|
-
});
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
function raf(fn) {
|
|
37
|
-
const id = globalThis.requestAnimationFrame(fn);
|
|
38
|
-
return function cleanup() {
|
|
39
|
-
globalThis.cancelAnimationFrame(id);
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
23
|
function isFrame(element) {
|
|
43
24
|
return element.localName === "iframe";
|
|
44
25
|
}
|
|
@@ -99,6 +80,25 @@ function getEventKey(event, options = {}) {
|
|
|
99
80
|
}
|
|
100
81
|
return key;
|
|
101
82
|
}
|
|
83
|
+
function nextTick(fn) {
|
|
84
|
+
const set = /* @__PURE__ */ new Set();
|
|
85
|
+
function raf2(fn2) {
|
|
86
|
+
const id = globalThis.requestAnimationFrame(fn2);
|
|
87
|
+
set.add(() => globalThis.cancelAnimationFrame(id));
|
|
88
|
+
}
|
|
89
|
+
raf2(() => raf2(fn));
|
|
90
|
+
return function cleanup() {
|
|
91
|
+
set.forEach(function(fn2) {
|
|
92
|
+
fn2();
|
|
93
|
+
});
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
function raf(fn) {
|
|
97
|
+
const id = globalThis.requestAnimationFrame(fn);
|
|
98
|
+
return function cleanup() {
|
|
99
|
+
globalThis.cancelAnimationFrame(id);
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
102
|
function queryAll(root, selector) {
|
|
103
103
|
var _a;
|
|
104
104
|
return Array.from((_a = root == null ? void 0 : root.querySelectorAll(selector)) != null ? _a : []);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zag-js/tabs",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20220703125047",
|
|
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-
|
|
33
|
-
"@zag-js/dom-utils": "0.0.0-dev-
|
|
34
|
-
"@zag-js/types": "0.0.0-dev-
|
|
32
|
+
"@zag-js/core": "0.0.0-dev-20220703125047",
|
|
33
|
+
"@zag-js/dom-utils": "0.0.0-dev-20220703125047",
|
|
34
|
+
"@zag-js/types": "0.0.0-dev-20220703125047",
|
|
35
35
|
"@zag-js/utils": "0.1.2"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|