@zag-js/pin-input 0.0.0-dev-20220703123907 → 0.0.0-dev-20220704094417

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
@@ -49,25 +49,6 @@ var dataAttr = (guard) => {
49
49
  var ariaAttr = (guard) => {
50
50
  return guard ? "true" : void 0;
51
51
  };
52
- function nextTick(fn) {
53
- const set = /* @__PURE__ */ new Set();
54
- function raf2(fn2) {
55
- const id = globalThis.requestAnimationFrame(fn2);
56
- set.add(() => globalThis.cancelAnimationFrame(id));
57
- }
58
- raf2(() => raf2(fn));
59
- return function cleanup() {
60
- set.forEach(function(fn2) {
61
- fn2();
62
- });
63
- };
64
- }
65
- function raf(fn) {
66
- const id = globalThis.requestAnimationFrame(fn);
67
- return function cleanup() {
68
- globalThis.cancelAnimationFrame(id);
69
- };
70
- }
71
52
  function getNativeEvent(e) {
72
53
  var _a;
73
54
  return (_a = e.nativeEvent) != null ? _a : e;
@@ -98,6 +79,25 @@ function getEventKey(event, options = {}) {
98
79
  }
99
80
  return key;
100
81
  }
82
+ function nextTick(fn) {
83
+ const set = /* @__PURE__ */ new Set();
84
+ function raf2(fn2) {
85
+ const id = globalThis.requestAnimationFrame(fn2);
86
+ set.add(() => globalThis.cancelAnimationFrame(id));
87
+ }
88
+ raf2(() => raf2(fn));
89
+ return function cleanup() {
90
+ set.forEach(function(fn2) {
91
+ fn2();
92
+ });
93
+ };
94
+ }
95
+ function raf(fn) {
96
+ const id = globalThis.requestAnimationFrame(fn);
97
+ return function cleanup() {
98
+ globalThis.cancelAnimationFrame(id);
99
+ };
100
+ }
101
101
  function queryAll(root, selector) {
102
102
  var _a;
103
103
  return Array.from((_a = root == null ? void 0 : root.querySelectorAll(selector)) != null ? _a : []);
package/dist/index.mjs CHANGED
@@ -26,25 +26,6 @@ var dataAttr = (guard) => {
26
26
  var ariaAttr = (guard) => {
27
27
  return guard ? "true" : void 0;
28
28
  };
29
- function nextTick(fn) {
30
- const set = /* @__PURE__ */ new Set();
31
- function raf2(fn2) {
32
- const id = globalThis.requestAnimationFrame(fn2);
33
- set.add(() => globalThis.cancelAnimationFrame(id));
34
- }
35
- raf2(() => raf2(fn));
36
- return function cleanup() {
37
- set.forEach(function(fn2) {
38
- fn2();
39
- });
40
- };
41
- }
42
- function raf(fn) {
43
- const id = globalThis.requestAnimationFrame(fn);
44
- return function cleanup() {
45
- globalThis.cancelAnimationFrame(id);
46
- };
47
- }
48
29
  function getNativeEvent(e) {
49
30
  var _a;
50
31
  return (_a = e.nativeEvent) != null ? _a : e;
@@ -75,6 +56,25 @@ function getEventKey(event, options = {}) {
75
56
  }
76
57
  return key;
77
58
  }
59
+ function nextTick(fn) {
60
+ const set = /* @__PURE__ */ new Set();
61
+ function raf2(fn2) {
62
+ const id = globalThis.requestAnimationFrame(fn2);
63
+ set.add(() => globalThis.cancelAnimationFrame(id));
64
+ }
65
+ raf2(() => raf2(fn));
66
+ return function cleanup() {
67
+ set.forEach(function(fn2) {
68
+ fn2();
69
+ });
70
+ };
71
+ }
72
+ function raf(fn) {
73
+ const id = globalThis.requestAnimationFrame(fn);
74
+ return function cleanup() {
75
+ globalThis.cancelAnimationFrame(id);
76
+ };
77
+ }
78
78
  function queryAll(root, selector) {
79
79
  var _a;
80
80
  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/pin-input",
3
- "version": "0.0.0-dev-20220703123907",
3
+ "version": "0.0.0-dev-20220704094417",
4
4
  "description": "Core logic for the pin-input 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-20220703123907",
33
- "@zag-js/dom-utils": "0.0.0-dev-20220703123907",
34
- "@zag-js/types": "0.0.0-dev-20220703123907",
32
+ "@zag-js/core": "0.0.0-dev-20220704094417",
33
+ "@zag-js/dom-utils": "0.0.0-dev-20220704094417",
34
+ "@zag-js/types": "0.0.0-dev-20220704094417",
35
35
  "@zag-js/utils": "0.1.2"
36
36
  },
37
37
  "scripts": {