@zag-js/number-input 1.43.2 → 1.43.3
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/number-input.types.d.mts +14 -14
- package/dist/number-input.types.d.ts +14 -14
- package/package.json +6 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NumberParser } from '@internationalized/number';
|
|
2
2
|
import { Machine, EventObject, Service } from '@zag-js/core';
|
|
3
|
-
import { PropTypes,
|
|
3
|
+
import { PropTypes, RequiredBy, LocaleProperties, CommonProperties } from '@zag-js/types';
|
|
4
4
|
|
|
5
5
|
interface ValueChangeDetails {
|
|
6
6
|
value: string;
|
|
@@ -14,29 +14,29 @@ interface ValueInvalidDetails extends ValueChangeDetails {
|
|
|
14
14
|
reason: ValidityState;
|
|
15
15
|
}
|
|
16
16
|
type InputMode = "text" | "tel" | "numeric" | "decimal";
|
|
17
|
-
|
|
18
|
-
root
|
|
19
|
-
label
|
|
20
|
-
input
|
|
21
|
-
incrementTrigger
|
|
22
|
-
decrementTrigger
|
|
23
|
-
scrubber
|
|
24
|
-
}
|
|
25
|
-
|
|
17
|
+
interface ElementIds {
|
|
18
|
+
root?: string | undefined;
|
|
19
|
+
label?: string | undefined;
|
|
20
|
+
input?: string | undefined;
|
|
21
|
+
incrementTrigger?: string | undefined;
|
|
22
|
+
decrementTrigger?: string | undefined;
|
|
23
|
+
scrubber?: string | undefined;
|
|
24
|
+
}
|
|
25
|
+
interface IntlTranslations {
|
|
26
26
|
/**
|
|
27
27
|
* Function that returns the human-readable value.
|
|
28
28
|
* It is used to set the `aria-valuetext` property of the input
|
|
29
29
|
*/
|
|
30
|
-
valueText
|
|
30
|
+
valueText?: ((value: string) => string) | undefined;
|
|
31
31
|
/**
|
|
32
32
|
* The label foe the increment button
|
|
33
33
|
*/
|
|
34
|
-
incrementLabel
|
|
34
|
+
incrementLabel?: string | undefined;
|
|
35
35
|
/**
|
|
36
36
|
* The label for the decrement button
|
|
37
37
|
*/
|
|
38
|
-
decrementLabel
|
|
39
|
-
}
|
|
38
|
+
decrementLabel?: string | undefined;
|
|
39
|
+
}
|
|
40
40
|
interface NumberInputProps extends LocaleProperties, CommonProperties {
|
|
41
41
|
/**
|
|
42
42
|
* The ids of the elements in the number input. Useful for composition.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NumberParser } from '@internationalized/number';
|
|
2
2
|
import { Machine, EventObject, Service } from '@zag-js/core';
|
|
3
|
-
import { PropTypes,
|
|
3
|
+
import { PropTypes, RequiredBy, LocaleProperties, CommonProperties } from '@zag-js/types';
|
|
4
4
|
|
|
5
5
|
interface ValueChangeDetails {
|
|
6
6
|
value: string;
|
|
@@ -14,29 +14,29 @@ interface ValueInvalidDetails extends ValueChangeDetails {
|
|
|
14
14
|
reason: ValidityState;
|
|
15
15
|
}
|
|
16
16
|
type InputMode = "text" | "tel" | "numeric" | "decimal";
|
|
17
|
-
|
|
18
|
-
root
|
|
19
|
-
label
|
|
20
|
-
input
|
|
21
|
-
incrementTrigger
|
|
22
|
-
decrementTrigger
|
|
23
|
-
scrubber
|
|
24
|
-
}
|
|
25
|
-
|
|
17
|
+
interface ElementIds {
|
|
18
|
+
root?: string | undefined;
|
|
19
|
+
label?: string | undefined;
|
|
20
|
+
input?: string | undefined;
|
|
21
|
+
incrementTrigger?: string | undefined;
|
|
22
|
+
decrementTrigger?: string | undefined;
|
|
23
|
+
scrubber?: string | undefined;
|
|
24
|
+
}
|
|
25
|
+
interface IntlTranslations {
|
|
26
26
|
/**
|
|
27
27
|
* Function that returns the human-readable value.
|
|
28
28
|
* It is used to set the `aria-valuetext` property of the input
|
|
29
29
|
*/
|
|
30
|
-
valueText
|
|
30
|
+
valueText?: ((value: string) => string) | undefined;
|
|
31
31
|
/**
|
|
32
32
|
* The label foe the increment button
|
|
33
33
|
*/
|
|
34
|
-
incrementLabel
|
|
34
|
+
incrementLabel?: string | undefined;
|
|
35
35
|
/**
|
|
36
36
|
* The label for the decrement button
|
|
37
37
|
*/
|
|
38
|
-
decrementLabel
|
|
39
|
-
}
|
|
38
|
+
decrementLabel?: string | undefined;
|
|
39
|
+
}
|
|
40
40
|
interface NumberInputProps extends LocaleProperties, CommonProperties {
|
|
41
41
|
/**
|
|
42
42
|
* The ids of the elements in the number input. Useful for composition.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zag-js/number-input",
|
|
3
|
-
"version": "1.43.
|
|
3
|
+
"version": "1.43.3",
|
|
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.7",
|
|
33
|
-
"@zag-js/anatomy": "1.43.
|
|
34
|
-
"@zag-js/core": "1.43.
|
|
35
|
-
"@zag-js/dom-query": "1.43.
|
|
36
|
-
"@zag-js/types": "1.43.
|
|
37
|
-
"@zag-js/utils": "1.43.
|
|
33
|
+
"@zag-js/anatomy": "1.43.3",
|
|
34
|
+
"@zag-js/core": "1.43.3",
|
|
35
|
+
"@zag-js/dom-query": "1.43.3",
|
|
36
|
+
"@zag-js/types": "1.43.3",
|
|
37
|
+
"@zag-js/utils": "1.43.3"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"clean-package": "2.2.0"
|