@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
|
-
|
|
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
|
-
|
|
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
|
@@ -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
|
-
|
|
540
|
+
const inputEl = dom.getInputEl(ctx2);
|
|
541
|
+
(0, import_form_utils.dispatchInputValueEvent)(inputEl, { value: ctx2.formattedValue });
|
|
541
542
|
}
|
|
542
543
|
}
|
|
543
544
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zag-js/number-input",
|
|
3
|
-
"version": "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.
|
|
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",
|