@particle-network/ui-native 0.0.27 → 0.0.29

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.
@@ -218,7 +218,7 @@ const UXModal = /*#__PURE__*/ forwardRef((props, scrollViewRef)=>{
218
218
  w: 40
219
219
  })
220
220
  }),
221
- title ? /*#__PURE__*/ jsx(Flex, {
221
+ !!title && /*#__PURE__*/ jsx(Flex, {
222
222
  fullWidth: true,
223
223
  justify: 'center' === titleAlign ? 'center' : 'start',
224
224
  mt: -4,
@@ -226,7 +226,7 @@ const UXModal = /*#__PURE__*/ forwardRef((props, scrollViewRef)=>{
226
226
  h3: true,
227
227
  children: title
228
228
  }) : title
229
- }) : null,
229
+ }),
230
230
  topContent,
231
231
  /*#__PURE__*/ jsx(ScrollView, {
232
232
  ref: scrollViewRef,
@@ -244,19 +244,19 @@ const UXModal = /*#__PURE__*/ forwardRef((props, scrollViewRef)=>{
244
244
  ...restScrollViewProps,
245
245
  children: children
246
246
  }),
247
- /*#__PURE__*/ jsxs(VStack, {
247
+ !!footer || !!tip && /*#__PURE__*/ jsxs(VStack, {
248
248
  fullWidth: true,
249
249
  gap: "lg",
250
250
  onLayout: (event)=>{
251
251
  setFooterHeight(event.nativeEvent.layout.height);
252
252
  },
253
253
  children: [
254
- footer ? /*#__PURE__*/ jsx(VStack, {
254
+ !!footer && /*#__PURE__*/ jsx(VStack, {
255
255
  fullWidth: true,
256
256
  gap: "lg",
257
257
  children: footer
258
- }) : null,
259
- tip ? /*#__PURE__*/ jsxs(Flex, {
258
+ }),
259
+ !!tip && /*#__PURE__*/ jsxs(Flex, {
260
260
  gap: 8,
261
261
  children: [
262
262
  /*#__PURE__*/ jsx(Circle, {
@@ -271,7 +271,7 @@ const UXModal = /*#__PURE__*/ forwardRef((props, scrollViewRef)=>{
271
271
  children: tip
272
272
  })
273
273
  ]
274
- }) : null
274
+ })
275
275
  ]
276
276
  })
277
277
  ]
@@ -9,7 +9,7 @@ export interface ValidationResult {
9
9
  isValid: boolean;
10
10
  errorMessage?: string;
11
11
  }
12
- export interface UXInputCommonProps extends Omit<TextInputProps, 'value' | 'defaultValue'> {
12
+ export interface UXInputCommonProps extends Omit<TextInputProps, 'style' | 'value' | 'defaultValue'> {
13
13
  /**
14
14
  * 最外层容器,包括 label 和 error
15
15
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@particle-network/ui-native",
3
- "version": "0.0.27",
3
+ "version": "0.0.29",
4
4
  "license": "MIT",
5
5
  "main": "./entry.js",
6
6
  "react-native": "./dist/index.js",
@@ -44,8 +44,8 @@
44
44
  "react-native-paper": "^5.14.5",
45
45
  "react-native-size-matters": "^0.4.2",
46
46
  "react-native-toast-message": "^2.3.3",
47
- "@particle-network/ui-shared": "0.0.7",
48
- "@particle-network/icons": "0.0.16"
47
+ "@particle-network/icons": "0.0.16",
48
+ "@particle-network/ui-shared": "0.0.7"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@babel/core": "^7.24.0",