@zag-js/pin-input 0.8.0 → 0.9.1
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.
|
@@ -171,7 +171,8 @@ function machine(userContext) {
|
|
|
171
171
|
ctx2.onChange?.({ value: Array.from(ctx2.value) });
|
|
172
172
|
},
|
|
173
173
|
dispatchInputEvent: (ctx2) => {
|
|
174
|
-
|
|
174
|
+
const inputEl = dom.getHiddenInputEl(ctx2);
|
|
175
|
+
dispatchInputValueEvent(inputEl, { value: ctx2.valueAsString });
|
|
175
176
|
},
|
|
176
177
|
invokeOnInvalid: (ctx2, evt) => {
|
|
177
178
|
ctx2.onInvalid?.({ value: evt.value, index: ctx2.focusedIndex });
|
package/dist/index.js
CHANGED
|
@@ -384,7 +384,8 @@ function machine(userContext) {
|
|
|
384
384
|
ctx2.onChange?.({ value: Array.from(ctx2.value) });
|
|
385
385
|
},
|
|
386
386
|
dispatchInputEvent: (ctx2) => {
|
|
387
|
-
|
|
387
|
+
const inputEl = dom.getHiddenInputEl(ctx2);
|
|
388
|
+
(0, import_form_utils.dispatchInputValueEvent)(inputEl, { value: ctx2.valueAsString });
|
|
388
389
|
},
|
|
389
390
|
invokeOnInvalid: (ctx2, evt) => {
|
|
390
391
|
ctx2.onInvalid?.({ value: evt.value, index: ctx2.focusedIndex });
|
package/dist/index.mjs
CHANGED
|
@@ -213,7 +213,8 @@ function machine(userContext) {
|
|
|
213
213
|
ctx2.onChange?.({ value: Array.from(ctx2.value) });
|
|
214
214
|
},
|
|
215
215
|
dispatchInputEvent: (ctx2) => {
|
|
216
|
-
|
|
216
|
+
const inputEl = dom.getHiddenInputEl(ctx2);
|
|
217
|
+
(0, import_form_utils.dispatchInputValueEvent)(inputEl, { value: ctx2.valueAsString });
|
|
217
218
|
},
|
|
218
219
|
invokeOnInvalid: (ctx2, evt) => {
|
|
219
220
|
ctx2.onInvalid?.({ value: evt.value, index: ctx2.focusedIndex });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zag-js/pin-input",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.1",
|
|
4
4
|
"description": "Core logic for the pin-input widget implemented as a state machine",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"js",
|
|
@@ -26,14 +26,14 @@
|
|
|
26
26
|
"url": "https://github.com/chakra-ui/zag/issues"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@zag-js/anatomy": "0.1
|
|
30
|
-
"@zag-js/dom-query": "0.1
|
|
31
|
-
"@zag-js/dom-event": "0.
|
|
32
|
-
"@zag-js/form-utils": "0.
|
|
33
|
-
"@zag-js/visually-hidden": "0.
|
|
34
|
-
"@zag-js/utils": "0.
|
|
35
|
-
"@zag-js/core": "0.
|
|
36
|
-
"@zag-js/types": "0.
|
|
29
|
+
"@zag-js/anatomy": "0.9.1",
|
|
30
|
+
"@zag-js/dom-query": "0.9.1",
|
|
31
|
+
"@zag-js/dom-event": "0.9.1",
|
|
32
|
+
"@zag-js/form-utils": "0.9.1",
|
|
33
|
+
"@zag-js/visually-hidden": "0.9.1",
|
|
34
|
+
"@zag-js/utils": "0.9.1",
|
|
35
|
+
"@zag-js/core": "0.9.1",
|
|
36
|
+
"@zag-js/types": "0.9.1"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"clean-package": "2.2.0"
|