@particle-network/ui-native 0.4.0-beta.15 → 0.4.0-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.
@@ -1,9 +1,10 @@
1
1
  import React from 'react';
2
2
  import type { View } from 'react-native';
3
3
  import type { IconProps } from '../../icons/types';
4
- import { type VStackProps } from '../layout/VStack';
4
+ import { type VStackProps } from '../layout';
5
5
  export interface UXEmptyProps extends VStackProps {
6
6
  iconProps?: IconProps;
7
7
  text?: React.ReactNode;
8
+ action?: React.ReactNode;
8
9
  }
9
10
  export declare const UXEmpty: React.ForwardRefExoticComponent<UXEmptyProps & React.RefAttributes<View>>;
@@ -3,12 +3,12 @@ import { forwardRef } from "react";
3
3
  import { useI18n } from "../../hooks/useI18n.js";
4
4
  import { useMs } from "../../hooks/useMs.js";
5
5
  import { Icon } from "../../icons/index.js";
6
- import { VStack } from "../layout/VStack.js";
6
+ import { Box, VStack } from "../layout/index.js";
7
7
  import { Text } from "../Text/index.js";
8
8
  const UXEmpty = /*#__PURE__*/ forwardRef((props, ref)=>{
9
9
  const i18n = useI18n();
10
10
  const { ms } = useMs();
11
- const { text = i18n.table.emptyContent, iconProps, ...restProps } = props;
11
+ const { text = i18n.table.emptyContent, iconProps, action, ...restProps } = props;
12
12
  return /*#__PURE__*/ jsxs(VStack, {
13
13
  ref: ref,
14
14
  center: true,
@@ -28,6 +28,10 @@ const UXEmpty = /*#__PURE__*/ forwardRef((props, ref)=>{
28
28
  color: "secondary",
29
29
  fontWeight: "normal",
30
30
  children: text
31
+ }),
32
+ action && /*#__PURE__*/ jsx(Box, {
33
+ mt: "lg",
34
+ children: action
31
35
  })
32
36
  ]
33
37
  });
@@ -1,12 +1,6 @@
1
1
  export * from './date-picker';
2
2
  export * from './input';
3
- export * from './layout/Box';
4
- export * from './layout/Center';
5
- export * from './layout/Circle';
6
- export * from './layout/Flex';
7
- export * from './layout/HStack';
8
- export * from './layout/Square';
9
- export * from './layout/VStack';
3
+ export * from './layout';
10
4
  export * from './ProgressWrapper';
11
5
  export * from './Text';
12
6
  export * from './UXButton';
@@ -1,12 +1,6 @@
1
1
  export * from "./date-picker/index.js";
2
2
  export * from "./input/index.js";
3
- export * from "./layout/Box/index.js";
4
- export * from "./layout/Center.js";
5
- export * from "./layout/Circle.js";
6
- export * from "./layout/Flex/index.js";
7
- export * from "./layout/HStack.js";
8
- export * from "./layout/Square.js";
9
- export * from "./layout/VStack.js";
3
+ export * from "./layout/index.js";
10
4
  export * from "./ProgressWrapper/index.js";
11
5
  export * from "./Text/index.js";
12
6
  export * from "./UXButton/index.js";
@@ -0,0 +1,7 @@
1
+ export * from './Box';
2
+ export * from './Center';
3
+ export * from './Circle';
4
+ export * from './Flex';
5
+ export * from './HStack';
6
+ export * from './Square';
7
+ export * from './VStack';
@@ -0,0 +1,7 @@
1
+ export * from "./Box/index.js";
2
+ export * from "./Center.js";
3
+ export * from "./Circle.js";
4
+ export * from "./Flex/index.js";
5
+ export * from "./HStack.js";
6
+ export * from "./Square.js";
7
+ export * from "./VStack.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@particle-network/ui-native",
3
- "version": "0.4.0-beta.15",
3
+ "version": "0.4.0-beta.17",
4
4
  "main": "./entry.js",
5
5
  "react-native": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -44,7 +44,7 @@
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.4.0-beta.13",
47
+ "@particle-network/icons": "0.4.0-beta.14",
48
48
  "@particle-network/ui-shared": "0.3.0-beta.6"
49
49
  },
50
50
  "devDependencies": {
@@ -89,8 +89,8 @@
89
89
  "vite": "^6.3.5",
90
90
  "zustand": "^5.0.8",
91
91
  "@particle-network/eslint-config": "0.3.0",
92
- "@particle-network/icons": "0.4.0-beta.13",
93
- "@particle-network/lintstaged-config": "0.1.0"
92
+ "@particle-network/lintstaged-config": "0.1.0",
93
+ "@particle-network/icons": "0.4.0-beta.14"
94
94
  },
95
95
  "overrides": {
96
96
  "react-docgen-typescript": "2.2.2",