@particle-network/ui-native 0.4.2-beta.15 → 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.
@@ -5,7 +5,7 @@ export declare const useStyles: (props: Partial<UXTabsProps> & {
5
5
  tabsWrapper: {
6
6
  backgroundColor: string | undefined;
7
7
  gap: import("@particle-network/ui-shared").SpacingType;
8
- flexGrow: number | undefined;
8
+ flex: number | undefined;
9
9
  justifyContent: "flex-start" | "space-between";
10
10
  borderRadius: number | undefined;
11
11
  height: number;
@@ -14,7 +14,7 @@ export declare const useStyles: (props: Partial<UXTabsProps> & {
14
14
  };
15
15
  tab: {
16
16
  flexDirection: "column";
17
- flexGrow: number | undefined;
17
+ flex: number | undefined;
18
18
  height: "100%";
19
19
  alignItems: "center";
20
20
  justifyContent: "center";
@@ -81,7 +81,7 @@ const useStyles = (props)=>{
81
81
  ]);
82
82
  const wrapperBackgroundColor = useMemo(()=>{
83
83
  if ('switch' === variant) return getColor('bg-200');
84
- if ('solid' === variant) return getColor('bg-400');
84
+ if ('solid' === variant) return getColor('bg-200');
85
85
  return 'transparent';
86
86
  }, [
87
87
  variant,
@@ -153,7 +153,7 @@ const useStyles = (props)=>{
153
153
  tabsWrapper: {
154
154
  backgroundColor: wrapperBackgroundColor,
155
155
  gap: gapValue,
156
- flexGrow: fullWidth || w ? 1 : void 0,
156
+ flex: fullWidth || w ? 1 : void 0,
157
157
  justifyContent: fullWidth || w ? 'space-between' : 'flex-start',
158
158
  borderRadius: wrapperBorderRadius,
159
159
  height,
@@ -162,11 +162,10 @@ const useStyles = (props)=>{
162
162
  },
163
163
  tab: {
164
164
  flexDirection: 'column',
165
- flexGrow: [
166
- 'text',
167
- 'light',
168
- 'underlined'
169
- ].includes(variant) ? void 0 : 1,
165
+ flex: [
166
+ 'solid',
167
+ 'switch'
168
+ ].includes(variant) ? 1 : void 0,
170
169
  height: '100%',
171
170
  alignItems: 'center',
172
171
  justifyContent: 'center',
@@ -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.15",
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",
@@ -45,8 +45,8 @@
45
45
  "react-native-size-matters": "^0.4.2",
46
46
  "react-native-toast-message": "^2.3.3",
47
47
  "react-native-worklets": "0.5.1",
48
- "@particle-network/ui-shared": "0.3.2-beta.3",
49
- "@particle-network/icons": "0.4.2-beta.7"
48
+ "@particle-network/icons": "0.4.2-beta.7",
49
+ "@particle-network/ui-shared": "0.3.2-beta.3"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@babel/core": "^7.24.0",
@@ -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",