@zag-js/number-input 0.0.0-dev-20220712093736 → 0.0.0-dev-20220713111527

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
@@ -105,21 +105,21 @@ function getDocument(el) {
105
105
  return el;
106
106
  return (_a = el == null ? void 0 : el.ownerDocument) != null ? _a : document;
107
107
  }
108
- function defineDomHelpers(domUtils) {
109
- const roots = {
108
+ function defineDomHelpers(helpers) {
109
+ const dom2 = {
110
110
  getRootNode: (ctx) => {
111
111
  var _a, _b;
112
112
  return (_b = (_a = ctx.getRootNode) == null ? void 0 : _a.call(ctx)) != null ? _b : document;
113
113
  },
114
- getDoc: (ctx) => getDocument(roots.getRootNode(ctx)),
114
+ getDoc: (ctx) => getDocument(dom2.getRootNode(ctx)),
115
115
  getWin: (ctx) => {
116
116
  var _a;
117
- return (_a = roots.getDoc(ctx).defaultView) != null ? _a : window;
117
+ return (_a = dom2.getDoc(ctx).defaultView) != null ? _a : window;
118
118
  },
119
- getActiveElement: (ctx) => roots.getDoc(ctx).activeElement,
120
- getById: (ctx, id) => roots.getRootNode(ctx).getElementById(id)
119
+ getActiveElement: (ctx) => dom2.getDoc(ctx).activeElement,
120
+ getById: (ctx, id) => dom2.getRootNode(ctx).getElementById(id)
121
121
  };
122
- return __spreadValues2(__spreadValues2({}, roots), domUtils);
122
+ return __spreadValues2(__spreadValues2({}, dom2), helpers);
123
123
  }
124
124
  function getNativeEvent(e) {
125
125
  var _a;
package/dist/index.mjs CHANGED
@@ -81,21 +81,21 @@ function getDocument(el) {
81
81
  return el;
82
82
  return (_a = el == null ? void 0 : el.ownerDocument) != null ? _a : document;
83
83
  }
84
- function defineDomHelpers(domUtils) {
85
- const roots = {
84
+ function defineDomHelpers(helpers) {
85
+ const dom2 = {
86
86
  getRootNode: (ctx) => {
87
87
  var _a, _b;
88
88
  return (_b = (_a = ctx.getRootNode) == null ? void 0 : _a.call(ctx)) != null ? _b : document;
89
89
  },
90
- getDoc: (ctx) => getDocument(roots.getRootNode(ctx)),
90
+ getDoc: (ctx) => getDocument(dom2.getRootNode(ctx)),
91
91
  getWin: (ctx) => {
92
92
  var _a;
93
- return (_a = roots.getDoc(ctx).defaultView) != null ? _a : window;
93
+ return (_a = dom2.getDoc(ctx).defaultView) != null ? _a : window;
94
94
  },
95
- getActiveElement: (ctx) => roots.getDoc(ctx).activeElement,
96
- getById: (ctx, id) => roots.getRootNode(ctx).getElementById(id)
95
+ getActiveElement: (ctx) => dom2.getDoc(ctx).activeElement,
96
+ getById: (ctx, id) => dom2.getRootNode(ctx).getElementById(id)
97
97
  };
98
- return __spreadValues2(__spreadValues2({}, roots), domUtils);
98
+ return __spreadValues2(__spreadValues2({}, dom2), helpers);
99
99
  }
100
100
  function getNativeEvent(e) {
101
101
  var _a;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zag-js/number-input",
3
- "version": "0.0.0-dev-20220712093736",
3
+ "version": "0.0.0-dev-20220713111527",
4
4
  "description": "Core logic for the number-input widget implemented as a state machine",
5
5
  "keywords": [
6
6
  "js",
@@ -29,11 +29,11 @@
29
29
  "url": "https://github.com/chakra-ui/zag/issues"
30
30
  },
31
31
  "dependencies": {
32
- "@zag-js/core": "0.0.0-dev-20220712093736",
33
- "@zag-js/types": "0.0.0-dev-20220712093736"
32
+ "@zag-js/core": "0.0.0-dev-20220713111527",
33
+ "@zag-js/types": "0.0.0-dev-20220713111527"
34
34
  },
35
35
  "devDependencies": {
36
- "@zag-js/dom-utils": "0.0.0-dev-20220712093736",
36
+ "@zag-js/dom-utils": "0.0.0-dev-20220713111527",
37
37
  "@zag-js/number-utils": "0.1.2",
38
38
  "@zag-js/utils": "0.1.2"
39
39
  },