@zag-js/number-input 0.0.0-dev-20240428213103 → 0.0.0-dev-20240502170637
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.d.mts +5 -2
- package/dist/index.d.ts +5 -2
- package/package.json +9 -9
- package/src/number-input.types.ts +5 -2
package/dist/index.d.mts
CHANGED
|
@@ -68,8 +68,7 @@ interface PublicContext extends LocaleProperties, CommonProperties {
|
|
|
68
68
|
/**
|
|
69
69
|
* The pattern used to check the <input> element's value against
|
|
70
70
|
*
|
|
71
|
-
* @default
|
|
72
|
-
* "[0-9]*(.[0-9]+)?"
|
|
71
|
+
* @default "[0-9]*(.[0-9]+)?"
|
|
73
72
|
*/
|
|
74
73
|
pattern: string;
|
|
75
74
|
/**
|
|
@@ -78,14 +77,17 @@ interface PublicContext extends LocaleProperties, CommonProperties {
|
|
|
78
77
|
value: string;
|
|
79
78
|
/**
|
|
80
79
|
* The minimum value of the number input
|
|
80
|
+
* @default Number.MIN_SAFE_INTEGER
|
|
81
81
|
*/
|
|
82
82
|
min: number;
|
|
83
83
|
/**
|
|
84
84
|
* The maximum value of the number input
|
|
85
|
+
* @default Number.MAX_SAFE_INTEGER
|
|
85
86
|
*/
|
|
86
87
|
max: number;
|
|
87
88
|
/**
|
|
88
89
|
* The amount to increment or decrement the value by
|
|
90
|
+
* @default 1
|
|
89
91
|
*/
|
|
90
92
|
step: number;
|
|
91
93
|
/**
|
|
@@ -135,6 +137,7 @@ interface PublicContext extends LocaleProperties, CommonProperties {
|
|
|
135
137
|
onFocusChange?: (details: FocusChangeDetails) => void;
|
|
136
138
|
/**
|
|
137
139
|
* Whether to spin the value when the increment/decrement button is pressed
|
|
140
|
+
* @default true
|
|
138
141
|
*/
|
|
139
142
|
spinOnPress?: boolean;
|
|
140
143
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -68,8 +68,7 @@ interface PublicContext extends LocaleProperties, CommonProperties {
|
|
|
68
68
|
/**
|
|
69
69
|
* The pattern used to check the <input> element's value against
|
|
70
70
|
*
|
|
71
|
-
* @default
|
|
72
|
-
* "[0-9]*(.[0-9]+)?"
|
|
71
|
+
* @default "[0-9]*(.[0-9]+)?"
|
|
73
72
|
*/
|
|
74
73
|
pattern: string;
|
|
75
74
|
/**
|
|
@@ -78,14 +77,17 @@ interface PublicContext extends LocaleProperties, CommonProperties {
|
|
|
78
77
|
value: string;
|
|
79
78
|
/**
|
|
80
79
|
* The minimum value of the number input
|
|
80
|
+
* @default Number.MIN_SAFE_INTEGER
|
|
81
81
|
*/
|
|
82
82
|
min: number;
|
|
83
83
|
/**
|
|
84
84
|
* The maximum value of the number input
|
|
85
|
+
* @default Number.MAX_SAFE_INTEGER
|
|
85
86
|
*/
|
|
86
87
|
max: number;
|
|
87
88
|
/**
|
|
88
89
|
* The amount to increment or decrement the value by
|
|
90
|
+
* @default 1
|
|
89
91
|
*/
|
|
90
92
|
step: number;
|
|
91
93
|
/**
|
|
@@ -135,6 +137,7 @@ interface PublicContext extends LocaleProperties, CommonProperties {
|
|
|
135
137
|
onFocusChange?: (details: FocusChangeDetails) => void;
|
|
136
138
|
/**
|
|
137
139
|
* Whether to spin the value when the increment/decrement button is pressed
|
|
140
|
+
* @default true
|
|
138
141
|
*/
|
|
139
142
|
spinOnPress?: boolean;
|
|
140
143
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zag-js/number-input",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20240502170637",
|
|
4
4
|
"description": "Core logic for the number-input widget implemented as a state machine",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"js",
|
|
@@ -28,14 +28,14 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@internationalized/number": "3.5.1",
|
|
31
|
-
"@zag-js/anatomy": "0.0.0-dev-
|
|
32
|
-
"@zag-js/core": "0.0.0-dev-
|
|
33
|
-
"@zag-js/dom-event": "0.0.0-dev-
|
|
34
|
-
"@zag-js/dom-query": "0.0.0-dev-
|
|
35
|
-
"@zag-js/form-utils": "0.0.0-dev-
|
|
36
|
-
"@zag-js/number-utils": "0.0.0-dev-
|
|
37
|
-
"@zag-js/types": "0.0.0-dev-
|
|
38
|
-
"@zag-js/utils": "0.0.0-dev-
|
|
31
|
+
"@zag-js/anatomy": "0.0.0-dev-20240502170637",
|
|
32
|
+
"@zag-js/core": "0.0.0-dev-20240502170637",
|
|
33
|
+
"@zag-js/dom-event": "0.0.0-dev-20240502170637",
|
|
34
|
+
"@zag-js/dom-query": "0.0.0-dev-20240502170637",
|
|
35
|
+
"@zag-js/form-utils": "0.0.0-dev-20240502170637",
|
|
36
|
+
"@zag-js/number-utils": "0.0.0-dev-20240502170637",
|
|
37
|
+
"@zag-js/types": "0.0.0-dev-20240502170637",
|
|
38
|
+
"@zag-js/utils": "0.0.0-dev-20240502170637"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"clean-package": "2.2.0"
|
|
@@ -80,8 +80,7 @@ interface PublicContext extends LocaleProperties, CommonProperties {
|
|
|
80
80
|
/**
|
|
81
81
|
* The pattern used to check the <input> element's value against
|
|
82
82
|
*
|
|
83
|
-
* @default
|
|
84
|
-
* "[0-9]*(.[0-9]+)?"
|
|
83
|
+
* @default "[0-9]*(.[0-9]+)?"
|
|
85
84
|
*/
|
|
86
85
|
pattern: string
|
|
87
86
|
/**
|
|
@@ -90,14 +89,17 @@ interface PublicContext extends LocaleProperties, CommonProperties {
|
|
|
90
89
|
value: string
|
|
91
90
|
/**
|
|
92
91
|
* The minimum value of the number input
|
|
92
|
+
* @default Number.MIN_SAFE_INTEGER
|
|
93
93
|
*/
|
|
94
94
|
min: number
|
|
95
95
|
/**
|
|
96
96
|
* The maximum value of the number input
|
|
97
|
+
* @default Number.MAX_SAFE_INTEGER
|
|
97
98
|
*/
|
|
98
99
|
max: number
|
|
99
100
|
/**
|
|
100
101
|
* The amount to increment or decrement the value by
|
|
102
|
+
* @default 1
|
|
101
103
|
*/
|
|
102
104
|
step: number
|
|
103
105
|
/**
|
|
@@ -147,6 +149,7 @@ interface PublicContext extends LocaleProperties, CommonProperties {
|
|
|
147
149
|
onFocusChange?: (details: FocusChangeDetails) => void
|
|
148
150
|
/**
|
|
149
151
|
* Whether to spin the value when the increment/decrement button is pressed
|
|
152
|
+
* @default true
|
|
150
153
|
*/
|
|
151
154
|
spinOnPress?: boolean
|
|
152
155
|
}
|