@zag-js/number-input 0.49.0 → 0.51.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.d.mts +5 -2
- package/dist/index.d.ts +5 -2
- package/dist/index.js +2 -862
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -833
- package/dist/index.mjs.map +1 -1
- package/package.json +10 -10
- package/src/number-input.machine.ts +8 -8
- package/src/number-input.types.ts +5 -2
- package/src/number-input.utils.ts +4 -14
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
|
}
|