@zag-js/number-input 0.73.0 → 0.74.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 -0
- package/dist/index.mjs +3 -1
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -253,10 +253,12 @@ function connect(state, send, normalize) {
|
|
|
253
253
|
event.preventDefault();
|
|
254
254
|
},
|
|
255
255
|
Home() {
|
|
256
|
+
if (domEvent.isModifierKey(event)) return;
|
|
256
257
|
send("INPUT.HOME");
|
|
257
258
|
event.preventDefault();
|
|
258
259
|
},
|
|
259
260
|
End() {
|
|
261
|
+
if (domEvent.isModifierKey(event)) return;
|
|
260
262
|
send("INPUT.END");
|
|
261
263
|
event.preventDefault();
|
|
262
264
|
},
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createAnatomy } from '@zag-js/anatomy';
|
|
2
|
-
import { getEventStep, isLeftClick, getEventPoint, addDomEvent, requestPointerLock } from '@zag-js/dom-event';
|
|
2
|
+
import { getEventStep, isLeftClick, getEventPoint, addDomEvent, requestPointerLock, isModifierKey } from '@zag-js/dom-event';
|
|
3
3
|
import { createScope, isSafari, MAX_Z_INDEX, dataAttr, ariaAttr, isComposingEvent, observeAttributes, raf } from '@zag-js/dom-query';
|
|
4
4
|
import { roundToDevicePixel, wrap, isAtMin, isAtMax, isWithinRange, increment, clamp, decrement } from '@zag-js/number-utils';
|
|
5
5
|
import { createMachine, choose, ref, guards } from '@zag-js/core';
|
|
@@ -251,10 +251,12 @@ function connect(state, send, normalize) {
|
|
|
251
251
|
event.preventDefault();
|
|
252
252
|
},
|
|
253
253
|
Home() {
|
|
254
|
+
if (isModifierKey(event)) return;
|
|
254
255
|
send("INPUT.HOME");
|
|
255
256
|
event.preventDefault();
|
|
256
257
|
},
|
|
257
258
|
End() {
|
|
259
|
+
if (isModifierKey(event)) return;
|
|
258
260
|
send("INPUT.END");
|
|
259
261
|
event.preventDefault();
|
|
260
262
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zag-js/number-input",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.74.0",
|
|
4
4
|
"description": "Core logic for the number-input widget implemented as a state machine",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"js",
|
|
@@ -27,14 +27,14 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@internationalized/number": "3.5.3",
|
|
30
|
-
"@zag-js/anatomy": "0.
|
|
31
|
-
"@zag-js/core": "0.
|
|
32
|
-
"@zag-js/dom-event": "0.
|
|
33
|
-
"@zag-js/dom-query": "0.
|
|
34
|
-
"@zag-js/form-utils": "0.
|
|
35
|
-
"@zag-js/number-utils": "0.
|
|
36
|
-
"@zag-js/types": "0.
|
|
37
|
-
"@zag-js/utils": "0.
|
|
30
|
+
"@zag-js/anatomy": "0.74.0",
|
|
31
|
+
"@zag-js/core": "0.74.0",
|
|
32
|
+
"@zag-js/dom-event": "0.74.0",
|
|
33
|
+
"@zag-js/dom-query": "0.74.0",
|
|
34
|
+
"@zag-js/form-utils": "0.74.0",
|
|
35
|
+
"@zag-js/number-utils": "0.74.0",
|
|
36
|
+
"@zag-js/types": "0.74.0",
|
|
37
|
+
"@zag-js/utils": "0.74.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"clean-package": "2.2.0"
|