@particle-network/ui-native 0.4.2-beta.16 → 0.4.2-beta.17

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.
@@ -163,10 +163,11 @@ const UXNumberInput = /*#__PURE__*/ forwardRef((props, ref)=>{
163
163
  if (isNaN(internalValue)) return '';
164
164
  if (numberFormatter) {
165
165
  const formattedValue = numberFormatter.format(internalValue);
166
- if (formatOptions?.signDisplay === 'exceptZero' || formatOptions?.signDisplay === 'always') {
166
+ const signDisplay = restProps.formatOptions?.signDisplay;
167
+ if ('exceptZero' === signDisplay || 'always' === signDisplay) {
167
168
  if (internalValue > 0) return `+${formattedValue}`;
168
169
  else if (internalValue < 0) ;
169
- else if ('always' === formatOptions.signDisplay) return `+${formattedValue}`;
170
+ else if ('always' === signDisplay) return `+${formattedValue}`;
170
171
  }
171
172
  return formattedValue;
172
173
  }
@@ -176,7 +177,7 @@ const UXNumberInput = /*#__PURE__*/ forwardRef((props, ref)=>{
176
177
  displayText,
177
178
  numberFormatter,
178
179
  isFocused,
179
- formatOptions
180
+ restProps.formatOptions
180
181
  ]);
181
182
  const renderError = useMemo(()=>{
182
183
  if (isInvalidProp && errorMessage) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@particle-network/ui-native",
3
- "version": "0.4.2-beta.16",
3
+ "version": "0.4.2-beta.17",
4
4
  "main": "./entry.js",
5
5
  "react-native": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -90,8 +90,8 @@
90
90
  "vite": "^6.3.5",
91
91
  "zustand": "^5.0.8",
92
92
  "@particle-network/eslint-config": "0.3.0",
93
- "@particle-network/icons": "0.4.2-beta.7",
94
- "@particle-network/lintstaged-config": "0.1.0"
93
+ "@particle-network/lintstaged-config": "0.1.0",
94
+ "@particle-network/icons": "0.4.2-beta.7"
95
95
  },
96
96
  "overrides": {
97
97
  "react-docgen-typescript": "2.2.2",