tek-wallet 0.0.124 → 0.0.126

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,6 @@ export declare enum BUTTON_STATUS {
5
5
  ENABLED = "enabled"
6
6
  }
7
7
  export interface ButtonProps extends MuiButtonProps {
8
- className?: string;
9
8
  status?: BUTTON_STATUS;
10
9
  }
11
10
  declare const Button: React.FC<ButtonProps> & {
@@ -33,8 +33,8 @@ var BUTTON_STATUS;
33
33
  BUTTON_STATUS["ENABLED"] = "enabled";
34
34
  })(BUTTON_STATUS || (exports.BUTTON_STATUS = BUTTON_STATUS = {}));
35
35
  var Button = function (props) {
36
- var _a = props.status, status = _a === void 0 ? BUTTON_STATUS.ENABLED : _a, rest = __rest(props, ["status"]);
37
- return ((0, jsx_runtime_1.jsx)(material_1.Button, __assign({ disabled: status !== BUTTON_STATUS.ENABLED }, rest, { children: props.children })));
36
+ var _a = props.status, status = _a === void 0 ? BUTTON_STATUS.ENABLED : _a, sx = props.sx, rest = __rest(props, ["status", "sx"]);
37
+ return ((0, jsx_runtime_1.jsx)(material_1.Button, __assign({ disabled: status !== BUTTON_STATUS.ENABLED }, rest, { sx: __assign({ textTransform: "capitalize" }, sx), children: props.children })));
38
38
  };
39
39
  Button.displayName = "Button";
40
40
  Button.Primary = function (props) {
@@ -4,7 +4,6 @@ export declare enum DRAWER_DIRECTION {
4
4
  RIGHT = "right"
5
5
  }
6
6
  interface DrawerComponentProps extends GeneralProps {
7
- className?: string;
8
7
  onOpen?: () => void;
9
8
  onClose?: () => void;
10
9
  trigger?: React.ReactNode;
@@ -21,16 +21,13 @@ var __rest = (this && this.__rest) || function (s, e) {
21
21
  }
22
22
  return t;
23
23
  };
24
- var __importDefault = (this && this.__importDefault) || function (mod) {
25
- return (mod && mod.__esModule) ? mod : { "default": mod };
26
- };
27
24
  Object.defineProperty(exports, "__esModule", { value: true });
28
25
  var jsx_runtime_1 = require("react/jsx-runtime");
29
- var cn_1 = __importDefault(require("../../../utils/cn"));
26
+ var material_1 = require("@mui/material");
30
27
  var Icon = function (props) {
31
- var src = props.src, alt = props.alt, className = props.className, onClick = props.onClick, rest = __rest(props, ["src", "alt", "className", "onClick"]);
32
- return (
33
- // eslint-disable-next-line @next/next/no-img-element
34
- (0, jsx_runtime_1.jsx)("img", __assign({ className: (0, cn_1.default)("block", className), src: src, alt: alt, onClick: onClick }, rest)));
28
+ var src = props.src, alt = props.alt, onClick = props.onClick, rest = __rest(props, ["src", "alt", "onClick"]);
29
+ return ((0, jsx_runtime_1.jsx)(material_1.Box, __assign({ component: "img", src: src, alt: alt, onClick: onClick }, rest, { sx: {
30
+ display: "block",
31
+ } })));
35
32
  };
36
33
  exports.default = Icon;
@@ -1,6 +1,5 @@
1
1
  import { GeneralProps } from "../../../types/ui";
2
2
  interface ImageProps extends GeneralProps {
3
- className?: string;
4
3
  src?: string;
5
4
  alt?: string;
6
5
  }
@@ -12,9 +12,8 @@ var __assign = (this && this.__assign) || function () {
12
12
  };
13
13
  Object.defineProperty(exports, "__esModule", { value: true });
14
14
  var jsx_runtime_1 = require("react/jsx-runtime");
15
- var system_1 = require("@mui/system");
16
- var StyledImage = (0, system_1.styled)("img")(function (sx) { return (__assign({ display: "block" }, sx)); });
15
+ var material_1 = require("@mui/material");
17
16
  var Image = function (props) {
18
- return ((0, jsx_runtime_1.jsx)(StyledImage, { onClick: props.onClick, src: props.src, alt: props.alt, sx: props.sx }));
17
+ return ((0, jsx_runtime_1.jsx)(material_1.Box, { component: "img", onClick: props.onClick, src: props.src, alt: props.alt, sx: __assign({ display: "block" }, props.sx) }));
19
18
  };
20
19
  exports.default = Image;
@@ -1,5 +1,4 @@
1
1
  interface StatusDisplayProps {
2
- className?: string;
3
2
  status: StatusDisplayType;
4
3
  }
5
4
  export declare enum StatusDisplayType {
@@ -5,7 +5,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.StatusDisplayType = void 0;
7
7
  var jsx_runtime_1 = require("react/jsx-runtime");
8
- var cn_1 = __importDefault(require("../../../utils/cn"));
9
8
  var getIcon_1 = __importDefault(require("../../../utils/getIcon"));
10
9
  var Image_1 = __importDefault(require("../Image"));
11
10
  var Text_1 = __importDefault(require("../Text"));
@@ -26,7 +25,11 @@ var StatusDisplay = function (props) {
26
25
  _a[StatusDisplayType.Loading] = theme.palette.text.loadingStatus,
27
26
  _a[StatusDisplayType.Normal] = theme.palette.text.white,
28
27
  _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: {
28
+ return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
29
+ display: "flex",
30
+ alignItems: "center",
31
+ gap: "1rem",
32
+ }, 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
33
  color: statusColor[props.status],
31
34
  }, children: props.status })] }));
32
35
  };
@@ -1,7 +1,6 @@
1
1
  import { SwiperProps } from "swiper/react";
2
2
  import { GeneralProps } from "../../../types/ui";
3
3
  interface SwiperControlledProps extends GeneralProps {
4
- className?: string;
5
4
  tabs?: React.ReactNode[];
6
5
  initialActiveTab?: number;
7
6
  tabsClassName?: string;
@@ -19,12 +19,8 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
19
19
  }
20
20
  return to.concat(ar || Array.prototype.slice.call(from));
21
21
  };
22
- var __importDefault = (this && this.__importDefault) || function (mod) {
23
- return (mod && mod.__esModule) ? mod : { "default": mod };
24
- };
25
22
  Object.defineProperty(exports, "__esModule", { value: true });
26
23
  var jsx_runtime_1 = require("react/jsx-runtime");
27
- var cn_1 = __importDefault(require("../../../utils/cn"));
28
24
  var react_1 = require("swiper/react");
29
25
  var react_2 = require("react");
30
26
  var material_1 = require("@mui/material");
@@ -57,7 +53,7 @@ var SwiperControlled = (0, react_2.forwardRef)(function (props, ref) {
57
53
  setActiveTab(value);
58
54
  (_b = (_a = swiperRef.current) === null || _a === void 0 ? void 0 : _a.swiper) === null || _b === void 0 ? void 0 : _b.slideTo(value);
59
55
  };
60
- return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign({ width: "100%", display: "flex", flexDirection: "column" }, props.sx), children: [props.tabs && ((0, jsx_runtime_1.jsxs)(material_1.Tabs, { className: (0, cn_1.default)(props.tabsClassName), value: activeTab, onChange: handleTabChange, children: __spreadArray([], props.tabs, true) })), (0, jsx_runtime_1.jsx)(react_1.Swiper, __assign({}, props.swiperProps, { onSlideChange: handleSlideChange, ref: swiperRef, initialSlide: activeTab, style: {
56
+ return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign({ width: "100%", display: "flex", flexDirection: "column" }, props.sx), children: [props.tabs && ((0, jsx_runtime_1.jsxs)(material_1.Tabs, { value: activeTab, onChange: handleTabChange, children: __spreadArray([], props.tabs, true) })), (0, jsx_runtime_1.jsx)(react_1.Swiper, __assign({}, props.swiperProps, { onSlideChange: handleSlideChange, ref: swiperRef, initialSlide: activeTab, style: {
61
57
  width: "100%",
62
58
  flex: 1,
63
59
  }, allowTouchMove: !props.disableSwipe, children: props.children }))] }));
@@ -1,6 +1,5 @@
1
1
  import { GeneralProps } from "../../../types/ui";
2
2
  interface TheBackgroundProps extends GeneralProps {
3
- className?: string;
4
3
  }
5
4
  declare const TheBackground: (props: TheBackgroundProps) => import("react/jsx-runtime").JSX.Element;
6
5
  export default TheBackground;
@@ -162,7 +162,7 @@ var GetSeedPhraseWalletView = function (props) {
162
162
  gap: "1rem",
163
163
  height: "fit-content",
164
164
  }, children: seedPhrase === null || seedPhrase === void 0 ? void 0 : seedPhrase.split(" ").map(function (word, index) { return ((0, jsx_runtime_1.jsxs)(Text_1.default, { sx: {
165
- color: theme.palette.text.white,
165
+ color: theme.palette.text.white80,
166
166
  padding: "0.5rem 0.75rem",
167
167
  backgroundColor: theme.palette.background.black16,
168
168
  borderRadius: "0.75rem",
@@ -171,11 +171,10 @@ var GetSeedPhraseWalletView = function (props) {
171
171
  textAlign: "center",
172
172
  width: "100%",
173
173
  border: "1px solid ".concat(theme.palette.background.white24),
174
- }, children: [index + 1, ". ", isShowSeedPhrase ? word : "********"] }, index)); }) }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({ marginTop: "auto" }, theme.mixins.noteContent), children: "Please do not store your seed phrase digitally (e.g., text files on your computer, email...). Write it down and keep it in a secure, confidential location that is resistant to adverse conditions like moisture, fire, or other hazards for safe storage." }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
174
+ }, children: [index + 1, ". ", (0, jsx_runtime_1.jsx)("span", { children: " " }), " ", isShowSeedPhrase ? word : "********"] }, index)); }) }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({ marginTop: "auto" }, theme.mixins.noteContent), children: "Please do not store your seed phrase digitally (e.g., text files on your computer, email...). Write it down and keep it in a secure, confidential location that is resistant to adverse conditions like moisture, fire, or other hazards for safe storage." }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
175
175
  display: "flex",
176
176
  alignItems: "stretch",
177
177
  gap: "1rem",
178
- height: "fit-content",
179
178
  width: "100%",
180
179
  }, children: [(0, jsx_runtime_1.jsx)(Icon_1.default, { src: (0, getIcon_1.default)(isShowSeedPhrase ? "show_seed_phrase" : "hide_seed_phrase"), onClick: toggleShowSeedPhrase, sx: {
181
180
  aspectRatio: 1,
@@ -23,6 +23,7 @@ var theme = (0, styles_1.createTheme)({
23
23
  },
24
24
  text: {
25
25
  white: "#ffffff",
26
+ white80: "rgba(255, 255, 255, 0.8)",
26
27
  white64: "rgba(255, 255, 255, 0.64)",
27
28
  white24: "rgba(255, 255, 255, 0.24)",
28
29
  successStatus: "#01FF00",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tek-wallet",
3
- "version": "0.0.124",
3
+ "version": "0.0.126",
4
4
  "description": "A custom React provider with TypeScript support",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",