@particle-network/ui-native 0.1.3-beta.5 → 0.1.3-beta.6

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.
@@ -42,10 +42,10 @@ const UXNumberInput = /*#__PURE__*/ forwardRef((props, ref)=>{
42
42
  useEffect(()=>{
43
43
  if (void 0 !== controlledValue) {
44
44
  setInternalValue(controlledValue);
45
- setDisplayText(isNaN(controlledValue) ? '' : controlledValue.toString());
45
+ setDisplayText(isNaN(controlledValue) ? '' : controlledValue?.toString());
46
46
  } else if (void 0 !== defaultValue) {
47
47
  setInternalValue(defaultValue);
48
- setDisplayText(isNaN(defaultValue) ? '' : defaultValue.toString());
48
+ setDisplayText(isNaN(defaultValue) ? '' : defaultValue?.toString());
49
49
  }
50
50
  }, [
51
51
  defaultValue,
@@ -126,7 +126,7 @@ const UXNumberInput = /*#__PURE__*/ forwardRef((props, ref)=>{
126
126
  setIsFocused(false);
127
127
  const adjustedValue = adjustValueToFractionDigits(adjustValueToRange(internalValue));
128
128
  if (adjustedValue !== internalValue) {
129
- const adjustedText = adjustedValue.toString();
129
+ const adjustedText = adjustedValue?.toString();
130
130
  setDisplayText(adjustedText);
131
131
  setInternalValue(adjustedValue);
132
132
  onChangeText?.(adjustedText);
@@ -165,7 +165,7 @@ const UXNumberInput = /*#__PURE__*/ forwardRef((props, ref)=>{
165
165
  }
166
166
  return formattedValue;
167
167
  }
168
- return internalValue.toString();
168
+ return internalValue?.toString();
169
169
  }, [
170
170
  internalValue,
171
171
  displayText,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@particle-network/ui-native",
3
- "version": "0.1.3-beta.5",
3
+ "version": "0.1.3-beta.6",
4
4
  "main": "./entry.js",
5
5
  "react-native": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -88,9 +88,9 @@
88
88
  "unfetch": "^4.2.0",
89
89
  "vite": "^6.3.5",
90
90
  "zustand": "^5.0.8",
91
- "@particle-network/lintstaged-config": "0.0.0",
92
- "@particle-network/icons": "0.1.2-beta.6",
93
- "@particle-network/eslint-config": "0.2.0"
91
+ "@particle-network/eslint-config": "0.2.0",
92
+ "@particle-network/icons": "0.1.2-beta.7",
93
+ "@particle-network/lintstaged-config": "0.0.0"
94
94
  },
95
95
  "overrides": {
96
96
  "react-docgen-typescript": "2.2.2",