@zag-js/number-input 1.3.2 → 1.4.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.
- package/dist/index.js +2 -1
- package/dist/index.mjs +2 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -445,7 +445,8 @@ var machine = createMachine({
|
|
|
445
445
|
value: prop("value"),
|
|
446
446
|
onChange(value) {
|
|
447
447
|
const computed = getComputed();
|
|
448
|
-
|
|
448
|
+
const valueAsNumber = parseValue(value, { computed, prop });
|
|
449
|
+
prop("onValueChange")?.({ value, valueAsNumber });
|
|
449
450
|
}
|
|
450
451
|
})),
|
|
451
452
|
hint: bindable(() => ({ defaultValue: null })),
|
package/dist/index.mjs
CHANGED
|
@@ -443,7 +443,8 @@ var machine = createMachine({
|
|
|
443
443
|
value: prop("value"),
|
|
444
444
|
onChange(value) {
|
|
445
445
|
const computed = getComputed();
|
|
446
|
-
|
|
446
|
+
const valueAsNumber = parseValue(value, { computed, prop });
|
|
447
|
+
prop("onValueChange")?.({ value, valueAsNumber });
|
|
447
448
|
}
|
|
448
449
|
})),
|
|
449
450
|
hint: bindable(() => ({ defaultValue: null })),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zag-js/number-input",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "Core logic for the number-input widget implemented as a state machine",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"js",
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@internationalized/number": "3.6.0",
|
|
30
|
-
"@zag-js/anatomy": "1.
|
|
31
|
-
"@zag-js/core": "1.
|
|
32
|
-
"@zag-js/dom-query": "1.
|
|
33
|
-
"@zag-js/types": "1.
|
|
34
|
-
"@zag-js/utils": "1.
|
|
30
|
+
"@zag-js/anatomy": "1.4.0",
|
|
31
|
+
"@zag-js/core": "1.4.0",
|
|
32
|
+
"@zag-js/dom-query": "1.4.0",
|
|
33
|
+
"@zag-js/types": "1.4.0",
|
|
34
|
+
"@zag-js/utils": "1.4.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"clean-package": "2.2.0"
|