@zag-js/number-input 1.46.0 → 1.47.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.
@@ -95,8 +95,7 @@ var getMousemoveValue = (ctx, opts) => {
95
95
  const x = (0, import_utils.roundToDpr)(event.movementX, win.devicePixelRatio);
96
96
  const y = (0, import_utils.roundToDpr)(event.movementY, win.devicePixelRatio);
97
97
  let hint = x > 0 ? "increment" : x < 0 ? "decrement" : null;
98
- if (isRtl && hint === "increment") hint = "decrement";
99
- if (isRtl && hint === "decrement") hint = "increment";
98
+ if (isRtl && hint) hint = hint === "increment" ? "decrement" : "increment";
100
99
  const newPoint = { x: point.x + x, y: point.y + y };
101
100
  const width = win.innerWidth;
102
101
  const half = (0, import_utils.roundToDpr)(7.5, win.devicePixelRatio);
@@ -55,8 +55,7 @@ var getMousemoveValue = (ctx, opts) => {
55
55
  const x = roundToDpr(event.movementX, win.devicePixelRatio);
56
56
  const y = roundToDpr(event.movementY, win.devicePixelRatio);
57
57
  let hint = x > 0 ? "increment" : x < 0 ? "decrement" : null;
58
- if (isRtl && hint === "increment") hint = "decrement";
59
- if (isRtl && hint === "decrement") hint = "increment";
58
+ if (isRtl && hint) hint = hint === "increment" ? "decrement" : "increment";
60
59
  const newPoint = { x: point.x + x, y: point.y + y };
61
60
  const width = win.innerWidth;
62
61
  const half = roundToDpr(7.5, win.devicePixelRatio);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zag-js/number-input",
3
- "version": "1.46.0",
3
+ "version": "1.47.0",
4
4
  "description": "Core logic for the number-input widget implemented as a state machine",
5
5
  "keywords": [
6
6
  "js",
@@ -30,11 +30,11 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "@internationalized/number": "3.6.9",
33
- "@zag-js/anatomy": "1.46.0",
34
- "@zag-js/core": "1.46.0",
35
- "@zag-js/dom-query": "1.46.0",
36
- "@zag-js/types": "1.46.0",
37
- "@zag-js/utils": "1.46.0"
33
+ "@zag-js/anatomy": "1.47.0",
34
+ "@zag-js/core": "1.47.0",
35
+ "@zag-js/dom-query": "1.47.0",
36
+ "@zag-js/types": "1.47.0",
37
+ "@zag-js/utils": "1.47.0"
38
38
  },
39
39
  "devDependencies": {
40
40
  "clean-package": "2.2.0"