@zag-js/pin-input 0.71.0 → 0.72.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 +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -160,7 +160,7 @@ function connect(state, send, normalize) {
|
|
|
160
160
|
const { value } = event.currentTarget;
|
|
161
161
|
if (evt.inputType === "insertFromPaste" || value.length > 2) {
|
|
162
162
|
send({ type: "INPUT.PASTE", value });
|
|
163
|
-
event.
|
|
163
|
+
event.currentTarget.value = value[0];
|
|
164
164
|
event.preventDefault();
|
|
165
165
|
return;
|
|
166
166
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -158,7 +158,7 @@ function connect(state, send, normalize) {
|
|
|
158
158
|
const { value } = event.currentTarget;
|
|
159
159
|
if (evt.inputType === "insertFromPaste" || value.length > 2) {
|
|
160
160
|
send({ type: "INPUT.PASTE", value });
|
|
161
|
-
event.
|
|
161
|
+
event.currentTarget.value = value[0];
|
|
162
162
|
event.preventDefault();
|
|
163
163
|
return;
|
|
164
164
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zag-js/pin-input",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.72.0",
|
|
4
4
|
"description": "Core logic for the pin-input widget implemented as a state machine",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"js",
|
|
@@ -26,13 +26,13 @@
|
|
|
26
26
|
"url": "https://github.com/chakra-ui/zag/issues"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@zag-js/anatomy": "0.
|
|
30
|
-
"@zag-js/dom-query": "0.
|
|
31
|
-
"@zag-js/dom-event": "0.
|
|
32
|
-
"@zag-js/form-utils": "0.
|
|
33
|
-
"@zag-js/utils": "0.
|
|
34
|
-
"@zag-js/core": "0.
|
|
35
|
-
"@zag-js/types": "0.
|
|
29
|
+
"@zag-js/anatomy": "0.72.0",
|
|
30
|
+
"@zag-js/dom-query": "0.72.0",
|
|
31
|
+
"@zag-js/dom-event": "0.72.0",
|
|
32
|
+
"@zag-js/form-utils": "0.72.0",
|
|
33
|
+
"@zag-js/utils": "0.72.0",
|
|
34
|
+
"@zag-js/core": "0.72.0",
|
|
35
|
+
"@zag-js/types": "0.72.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"clean-package": "2.2.0"
|