@zag-js/number-input 0.0.0-dev-20220627213111 → 0.0.0-dev-20220627213436

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
@@ -871,7 +871,7 @@ function machine(ctx = {}) {
871
871
  setValue(ctx2, evt) {
872
872
  var _a, _b;
873
873
  const value = (_b = (_a = evt.target) == null ? void 0 : _a.value) != null ? _b : evt.value;
874
- ctx2.value = utils.sanitize(ctx2, utils.parse(ctx2, value));
874
+ ctx2.value = utils.sanitize(ctx2, utils.parse(ctx2, value.toString()));
875
875
  },
876
876
  clearValue(ctx2) {
877
877
  ctx2.value = "";
package/dist/index.mjs CHANGED
@@ -848,7 +848,7 @@ function machine(ctx = {}) {
848
848
  setValue(ctx2, evt) {
849
849
  var _a, _b;
850
850
  const value = (_b = (_a = evt.target) == null ? void 0 : _a.value) != null ? _b : evt.value;
851
- ctx2.value = utils.sanitize(ctx2, utils.parse(ctx2, value));
851
+ ctx2.value = utils.sanitize(ctx2, utils.parse(ctx2, value.toString()));
852
852
  },
853
853
  clearValue(ctx2) {
854
854
  ctx2.value = "";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zag-js/number-input",
3
- "version": "0.0.0-dev-20220627213111",
3
+ "version": "0.0.0-dev-20220627213436",
4
4
  "description": "Core logic for the number-input 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-20220627213111",
33
- "@zag-js/dom-utils": "0.0.0-dev-20220627213111",
32
+ "@zag-js/core": "0.0.0-dev-20220627213436",
33
+ "@zag-js/dom-utils": "0.0.0-dev-20220627213436",
34
34
  "@zag-js/number-utils": "0.1.2",
35
35
  "@zag-js/types": "0.2.0",
36
36
  "@zag-js/utils": "0.1.2"