@particle-network/ui-native 0.0.29 → 0.0.30

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.
@@ -175,6 +175,39 @@ const UXModal = /*#__PURE__*/ forwardRef((props, scrollViewRef)=>{
175
175
  const Wrapper = useMemo(()=>wrapPortal ? Portal : react.Fragment, [
176
176
  wrapPortal
177
177
  ]);
178
+ const Footer = ()=>{
179
+ if (!footer && !tip) return null;
180
+ return /*#__PURE__*/ jsxs(VStack, {
181
+ fullWidth: true,
182
+ gap: "lg",
183
+ onLayout: (event)=>{
184
+ setFooterHeight(event.nativeEvent.layout.height);
185
+ },
186
+ children: [
187
+ !!footer && /*#__PURE__*/ jsx(VStack, {
188
+ fullWidth: true,
189
+ gap: "lg",
190
+ children: footer
191
+ }),
192
+ !!tip && /*#__PURE__*/ jsxs(Flex, {
193
+ gap: 8,
194
+ children: [
195
+ /*#__PURE__*/ jsx(Circle, {
196
+ bg: "secondary",
197
+ mt: 5,
198
+ size: 5
199
+ }),
200
+ /*#__PURE__*/ jsx(Text, {
201
+ body2: true,
202
+ color: "secondary",
203
+ style: styles.tip,
204
+ children: tip
205
+ })
206
+ ]
207
+ })
208
+ ]
209
+ });
210
+ };
178
211
  return /*#__PURE__*/ jsx(Wrapper, {
179
212
  children: /*#__PURE__*/ jsx(Modal, {
180
213
  dismissable: true,
@@ -244,36 +277,7 @@ const UXModal = /*#__PURE__*/ forwardRef((props, scrollViewRef)=>{
244
277
  ...restScrollViewProps,
245
278
  children: children
246
279
  }),
247
- !!footer || !!tip && /*#__PURE__*/ jsxs(VStack, {
248
- fullWidth: true,
249
- gap: "lg",
250
- onLayout: (event)=>{
251
- setFooterHeight(event.nativeEvent.layout.height);
252
- },
253
- children: [
254
- !!footer && /*#__PURE__*/ jsx(VStack, {
255
- fullWidth: true,
256
- gap: "lg",
257
- children: footer
258
- }),
259
- !!tip && /*#__PURE__*/ jsxs(Flex, {
260
- gap: 8,
261
- children: [
262
- /*#__PURE__*/ jsx(Circle, {
263
- bg: "secondary",
264
- mt: 5,
265
- size: 5
266
- }),
267
- /*#__PURE__*/ jsx(Text, {
268
- body2: true,
269
- color: "secondary",
270
- style: styles.tip,
271
- children: tip
272
- })
273
- ]
274
- })
275
- ]
276
- })
280
+ /*#__PURE__*/ jsx(Footer, {})
277
281
  ]
278
282
  })
279
283
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@particle-network/ui-native",
3
- "version": "0.0.29",
3
+ "version": "0.0.30",
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/icons": "0.0.16",
48
- "@particle-network/ui-shared": "0.0.7"
47
+ "@particle-network/ui-shared": "0.0.7",
48
+ "@particle-network/icons": "0.0.16"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@babel/core": "^7.24.0",