tek-wallet 0.0.122 → 0.0.123

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.
@@ -9,7 +9,6 @@ export type ChildPageLayoutRef = {
9
9
  showLoading: () => void;
10
10
  showSuccess: () => void;
11
11
  showError: () => void;
12
- showWarning: () => void;
13
12
  };
14
13
  declare const ChildPageLayout: import("react").ForwardRefExoticComponent<ChildPageLayoutProps & import("react").RefAttributes<ChildPageLayoutRef>>;
15
14
  export default ChildPageLayout;
@@ -37,9 +37,6 @@ var ChildPageLayout = (0, react_1.forwardRef)(function (props, ref) {
37
37
  showError: function () {
38
38
  setStatus(StatusDisplay_1.StatusDisplayType.Error);
39
39
  },
40
- showWarning: function () {
41
- setStatus(StatusDisplay_1.StatusDisplayType.Warning);
42
- },
43
40
  };
44
41
  });
45
42
  return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign({ position: "relative", backgroundImage: "url(".concat((0, getImage_1.default)("main_bg", "jpg"), ")"), backgroundSize: "cover", backgroundPosition: "center", backgroundRepeat: "no-repeat", height: "100dvh", width: "100vw" }, sx), children: [header && ((0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
@@ -46,7 +46,7 @@ Button.Primary.displayName = "Button.Primary";
46
46
  Button.Secondary = function (props) {
47
47
  var sx = props.sx, rest = __rest(props, ["sx"]);
48
48
  var theme = (0, material_1.useTheme)();
49
- return ((0, jsx_runtime_1.jsx)(Button, __assign({}, rest, { variant: "contained", color: "secondary", sx: __assign({ borderRadius: theme.mixins.theBorderRadius.full }, sx) })));
49
+ return ((0, jsx_runtime_1.jsx)(Button, __assign({}, rest, { variant: "outlined", color: "secondary", sx: __assign({ borderRadius: theme.mixins.theBorderRadius.full }, sx) })));
50
50
  };
51
51
  Button.Secondary.displayName = "Button.Secondary";
52
52
  exports.default = Button;
@@ -5,8 +5,6 @@ interface StatusDisplayProps {
5
5
  export declare enum StatusDisplayType {
6
6
  Success = "success",
7
7
  Error = "error",
8
- Warning = "warning",
9
- Info = "info",
10
8
  Loading = "loading",
11
9
  Normal = "normal"
12
10
  }
@@ -9,22 +9,25 @@ var cn_1 = __importDefault(require("../../../utils/cn"));
9
9
  var getIcon_1 = __importDefault(require("../../../utils/getIcon"));
10
10
  var Image_1 = __importDefault(require("../Image"));
11
11
  var Text_1 = __importDefault(require("../Text"));
12
- var clsx_1 = __importDefault(require("clsx"));
12
+ var material_1 = require("@mui/material");
13
13
  var StatusDisplayType;
14
14
  (function (StatusDisplayType) {
15
15
  StatusDisplayType["Success"] = "success";
16
16
  StatusDisplayType["Error"] = "error";
17
- StatusDisplayType["Warning"] = "warning";
18
- StatusDisplayType["Info"] = "info";
19
17
  StatusDisplayType["Loading"] = "loading";
20
18
  StatusDisplayType["Normal"] = "normal";
21
19
  })(StatusDisplayType || (exports.StatusDisplayType = StatusDisplayType = {}));
22
20
  var StatusDisplay = function (props) {
23
- return ((0, jsx_runtime_1.jsxs)("div", { className: (0, cn_1.default)("flex items-center gap-1", props.className), children: [(0, jsx_runtime_1.jsx)(Image_1.default, { src: (0, getIcon_1.default)("status_".concat(props.status), "gif"), sx: { width: "1.5rem", height: "1.5rem" } }), (0, jsx_runtime_1.jsx)(Text_1.default, { className: (0, clsx_1.default)("text-13", {
24
- "text-ui-text-error": props.status === StatusDisplayType.Error,
25
- "text-ui-text-warning": props.status === StatusDisplayType.Warning,
26
- "text-ui-text-success": props.status === StatusDisplayType.Success,
27
- "text-ui-text-loading": props.status === StatusDisplayType.Loading,
28
- }), children: props.status })] }));
21
+ var _a;
22
+ var theme = (0, material_1.useTheme)();
23
+ var statusColor = (_a = {},
24
+ _a[StatusDisplayType.Success] = theme.palette.text.successStatus,
25
+ _a[StatusDisplayType.Error] = theme.palette.text.errorStatus,
26
+ _a[StatusDisplayType.Loading] = theme.palette.text.loadingStatus,
27
+ _a[StatusDisplayType.Normal] = theme.palette.text.white,
28
+ _a);
29
+ return ((0, jsx_runtime_1.jsxs)("div", { className: (0, cn_1.default)("flex items-center gap-1", props.className), children: [(0, jsx_runtime_1.jsx)(Image_1.default, { src: (0, getIcon_1.default)("status_".concat(props.status), "gif"), sx: { width: "1.5rem", height: "1.5rem" } }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
30
+ color: statusColor[props.status],
31
+ }, children: props.status })] }));
29
32
  };
30
33
  exports.default = StatusDisplay;
@@ -5,13 +5,11 @@ var theme = (0, styles_1.createTheme)({
5
5
  palette: {
6
6
  primary: {
7
7
  main: "#ffffff",
8
- light: "rgba(255, 255, 255, 0.64)",
9
- dark: "rgba(255, 255, 255, 0.24)",
10
- contrastText: "#ff0000",
8
+ contrastText: "#000000",
11
9
  },
12
10
  secondary: {
13
- main: "#01FF00",
14
- contrastText: "#0000ff",
11
+ main: "#01FFFF29",
12
+ contrastText: "#01FFFF",
15
13
  },
16
14
  background: {
17
15
  white: "#ffffff",
@@ -27,6 +25,9 @@ var theme = (0, styles_1.createTheme)({
27
25
  white: "#ffffff",
28
26
  white64: "rgba(255, 255, 255, 0.64)",
29
27
  white24: "rgba(255, 255, 255, 0.24)",
28
+ successStatus: "#01FF00",
29
+ errorStatus: "#FE6565",
30
+ loadingStatus: "#01FFFF",
30
31
  },
31
32
  divider: "rgba(255, 255, 255, 0.16)",
32
33
  },
@@ -83,7 +84,7 @@ var theme = (0, styles_1.createTheme)({
83
84
  fontSize: "0.75rem",
84
85
  },
85
86
  theBorderRadius: {
86
- full: "50%",
87
+ full: "999px",
87
88
  },
88
89
  center: {
89
90
  position: "absolute",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tek-wallet",
3
- "version": "0.0.122",
3
+ "version": "0.0.123",
4
4
  "description": "A custom React provider with TypeScript support",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",