@zag-js/number-input 0.8.0 → 0.9.0

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.
@@ -380,7 +380,8 @@ function machine(userContext) {
380
380
  cursor.style.transform = `translate3d(${x}px, ${y}px, 0px)`;
381
381
  },
382
382
  dispatchChangeEvent(ctx2) {
383
- dispatchInputValueEvent(dom.getInputEl(ctx2), ctx2.formattedValue);
383
+ const inputEl = dom.getInputEl(ctx2);
384
+ dispatchInputValueEvent(inputEl, { value: ctx2.formattedValue });
384
385
  }
385
386
  }
386
387
  }
package/dist/index.js CHANGED
@@ -787,7 +787,8 @@ function machine(userContext) {
787
787
  cursor.style.transform = `translate3d(${x}px, ${y}px, 0px)`;
788
788
  },
789
789
  dispatchChangeEvent(ctx2) {
790
- (0, import_form_utils.dispatchInputValueEvent)(dom.getInputEl(ctx2), ctx2.formattedValue);
790
+ const inputEl = dom.getInputEl(ctx2);
791
+ (0, import_form_utils.dispatchInputValueEvent)(inputEl, { value: ctx2.formattedValue });
791
792
  }
792
793
  }
793
794
  }
package/dist/index.mjs CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-XHRILSH3.mjs";
7
7
  import {
8
8
  machine
9
- } from "./chunk-3O7PA63J.mjs";
9
+ } from "./chunk-WAGQOEOU.mjs";
10
10
  import "./chunk-QYY4CWRS.mjs";
11
11
  import "./chunk-AXXDGYUW.mjs";
12
12
  export {
@@ -537,7 +537,8 @@ function machine(userContext) {
537
537
  cursor.style.transform = `translate3d(${x}px, ${y}px, 0px)`;
538
538
  },
539
539
  dispatchChangeEvent(ctx2) {
540
- (0, import_form_utils.dispatchInputValueEvent)(dom.getInputEl(ctx2), ctx2.formattedValue);
540
+ const inputEl = dom.getInputEl(ctx2);
541
+ (0, import_form_utils.dispatchInputValueEvent)(inputEl, { value: ctx2.formattedValue });
541
542
  }
542
543
  }
543
544
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  machine
3
- } from "./chunk-3O7PA63J.mjs";
3
+ } from "./chunk-WAGQOEOU.mjs";
4
4
  import "./chunk-QYY4CWRS.mjs";
5
5
  import "./chunk-AXXDGYUW.mjs";
6
6
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zag-js/number-input",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "description": "Core logic for the number-input widget implemented as a state machine",
5
5
  "keywords": [
6
6
  "js",
@@ -26,7 +26,7 @@
26
26
  "url": "https://github.com/chakra-ui/zag/issues"
27
27
  },
28
28
  "dependencies": {
29
- "@zag-js/anatomy": "0.1.4",
29
+ "@zag-js/anatomy": "0.9.0",
30
30
  "@zag-js/core": "0.7.0",
31
31
  "@zag-js/dom-query": "0.1.4",
32
32
  "@zag-js/dom-event": "0.8.0",