@zag-js/number-input 1.0.1 → 1.0.2
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 +2 -2
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -427,7 +427,7 @@ var machine = createMachine({
|
|
|
427
427
|
min: Number.MIN_SAFE_INTEGER,
|
|
428
428
|
max: Number.MAX_SAFE_INTEGER,
|
|
429
429
|
spinOnPress: true,
|
|
430
|
-
...
|
|
430
|
+
...props2,
|
|
431
431
|
translations: {
|
|
432
432
|
incrementLabel: "increment value",
|
|
433
433
|
decrementLabel: "decrease value",
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createAnatomy } from '@zag-js/anatomy';
|
|
2
2
|
import { trackFormControl, observeAttributes, addDomEvent, isSafari, requestPointerLock, raf, setElementValue, MAX_Z_INDEX, dataAttr, ariaAttr, isComposingEvent, getEventStep, isLeftClick, getEventPoint, getWindow, isModifierKey } from '@zag-js/dom-query';
|
|
3
|
-
import {
|
|
3
|
+
import { isValueAtMin, isValueAtMax, isValueWithinRange, callAll, incrementValue, clampValue, decrementValue, createSplitProps, roundToDpr, wrap } from '@zag-js/utils';
|
|
4
4
|
import { setup, memo } from '@zag-js/core';
|
|
5
5
|
import { NumberParser } from '@internationalized/number';
|
|
6
6
|
import { createProps } from '@zag-js/types';
|
|
@@ -425,7 +425,7 @@ var machine = createMachine({
|
|
|
425
425
|
min: Number.MIN_SAFE_INTEGER,
|
|
426
426
|
max: Number.MAX_SAFE_INTEGER,
|
|
427
427
|
spinOnPress: true,
|
|
428
|
-
...
|
|
428
|
+
...props2,
|
|
429
429
|
translations: {
|
|
430
430
|
incrementLabel: "increment value",
|
|
431
431
|
decrementLabel: "decrease value",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zag-js/number-input",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
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.0.
|
|
31
|
-
"@zag-js/core": "1.0.
|
|
32
|
-
"@zag-js/dom-query": "1.0.
|
|
33
|
-
"@zag-js/types": "1.0.
|
|
34
|
-
"@zag-js/utils": "1.0.
|
|
30
|
+
"@zag-js/anatomy": "1.0.2",
|
|
31
|
+
"@zag-js/core": "1.0.2",
|
|
32
|
+
"@zag-js/dom-query": "1.0.2",
|
|
33
|
+
"@zag-js/types": "1.0.2",
|
|
34
|
+
"@zag-js/utils": "1.0.2"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"clean-package": "2.2.0"
|