@particle-network/ui-native 0.4.2-beta.18 → 0.4.2-beta.19
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.
|
@@ -130,26 +130,17 @@ const UXNumberInput = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
|
130
130
|
]);
|
|
131
131
|
const handleBlur = useCallback((e)=>{
|
|
132
132
|
setIsFocused(false);
|
|
133
|
-
if (
|
|
134
|
-
|
|
135
|
-
onChangeText?.('');
|
|
136
|
-
onValueChange?.(NaN);
|
|
137
|
-
onBlur?.(e);
|
|
138
|
-
return;
|
|
139
|
-
}
|
|
140
|
-
if (!isNaN(internalValue)) {
|
|
133
|
+
if (isNaN(internalValue)) onValueChange?.(NaN);
|
|
134
|
+
else {
|
|
141
135
|
const adjustedValue = adjustValueToFractionDigits(adjustValueToRange(internalValue));
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
onValueChange?.(adjustedValue);
|
|
148
|
-
}
|
|
136
|
+
const adjustedText = adjustedValue?.toString();
|
|
137
|
+
setDisplayText(adjustedText);
|
|
138
|
+
setInternalValue(adjustedValue);
|
|
139
|
+
onChangeText?.(adjustedText);
|
|
140
|
+
onValueChange?.(adjustedValue);
|
|
149
141
|
}
|
|
150
142
|
onBlur?.(e);
|
|
151
143
|
}, [
|
|
152
|
-
displayText,
|
|
153
144
|
internalValue,
|
|
154
145
|
onChangeText,
|
|
155
146
|
onValueChange,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@particle-network/ui-native",
|
|
3
|
-
"version": "0.4.2-beta.
|
|
3
|
+
"version": "0.4.2-beta.19",
|
|
4
4
|
"main": "./entry.js",
|
|
5
5
|
"react-native": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -89,9 +89,9 @@
|
|
|
89
89
|
"unfetch": "^4.2.0",
|
|
90
90
|
"vite": "^6.3.5",
|
|
91
91
|
"zustand": "^5.0.8",
|
|
92
|
-
"@particle-network/
|
|
92
|
+
"@particle-network/eslint-config": "0.3.0",
|
|
93
93
|
"@particle-network/lintstaged-config": "0.1.0",
|
|
94
|
-
"@particle-network/
|
|
94
|
+
"@particle-network/icons": "0.4.2-beta.7"
|
|
95
95
|
},
|
|
96
96
|
"overrides": {
|
|
97
97
|
"react-docgen-typescript": "2.2.2",
|