tek-wallet 0.0.124 → 0.0.127
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.
- package/dist/components/ui/BackHeader/index.js +6 -2
- package/dist/components/ui/Button/index.d.ts +0 -1
- package/dist/components/ui/Button/index.js +2 -2
- package/dist/components/ui/DrawerComponent/index.d.ts +0 -1
- package/dist/components/ui/GetWalletSeedPhrase/index.js +1 -1
- package/dist/components/ui/Icon/index.js +5 -8
- package/dist/components/ui/Image/index.d.ts +0 -1
- package/dist/components/ui/Image/index.js +2 -3
- package/dist/components/ui/RequireConnect/index.js +1 -1
- package/dist/components/ui/StatusDisplay/index.d.ts +0 -1
- package/dist/components/ui/StatusDisplay/index.js +5 -2
- package/dist/components/ui/SwiperControlled/index.d.ts +0 -1
- package/dist/components/ui/SwiperControlled/index.js +1 -5
- package/dist/components/ui/TheBackground/index.d.ts +0 -1
- package/dist/components/views/GetSeedPhraseWalletView/index.js +2 -3
- package/dist/theme/mui/theme.js +1 -0
- package/package.json +1 -1
|
@@ -31,11 +31,15 @@ var BackHeader = function (props) {
|
|
|
31
31
|
}
|
|
32
32
|
router.back();
|
|
33
33
|
};
|
|
34
|
-
return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign({ display: "flex", alignItems: "center", gap: "1rem", height: "100%" }, props.sx), children: [!hideBack && ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
|
|
34
|
+
return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign({ display: "flex", alignItems: "center", gap: "1rem", height: "100%" }, props.sx), children: [!hideBack && ((0, jsx_runtime_1.jsxs)(material_1.Box, { component: "button", sx: {
|
|
35
35
|
display: "flex",
|
|
36
36
|
alignItems: "center",
|
|
37
|
-
gap: "0.
|
|
37
|
+
gap: "0.25rem",
|
|
38
38
|
cursor: "pointer",
|
|
39
|
+
"&:active": {
|
|
40
|
+
transform: "translateX(-0.25rem)",
|
|
41
|
+
transition: "transform 0.2s ease-in-out",
|
|
42
|
+
},
|
|
39
43
|
}, onClick: back, children: [(0, jsx_runtime_1.jsx)(BackArrow_1.default, {}), " ", (0, jsx_runtime_1.jsx)(Text_1.default, { sx: { color: theme.palette.text.white }, children: "Back" })] })), !!center && ((0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign({}, theme.mixins.center), children: center })), children] }));
|
|
40
44
|
};
|
|
41
45
|
exports.default = BackHeader;
|
|
@@ -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) {
|
|
@@ -72,6 +72,6 @@ function GetWalletSeedPhrase(_a) {
|
|
|
72
72
|
var _a;
|
|
73
73
|
(_a = getSeedPhraseViewRef.current) === null || _a === void 0 ? void 0 : _a.close();
|
|
74
74
|
};
|
|
75
|
-
return ((0, jsx_runtime_1.jsx)(RequireConnect_1.default, { children: (0, jsx_runtime_1.jsx)(DrawerComponent_1.default, { ref: getSeedPhraseViewRef, direction: DrawerComponent_1.DRAWER_DIRECTION.RIGHT, trigger: (0, jsx_runtime_1.jsxs)(material_1.Box, __assign({}, rest, { children: [children, (0, jsx_runtime_1.jsx)(material_1.Box, { sx: { position: "absolute", inset: 0, zIndex: 10 } })] })), children: (0, jsx_runtime_1.jsx)(GetSeedPhraseWalletView_1.default, { onBack: backAuthView }) }) }));
|
|
75
|
+
return ((0, jsx_runtime_1.jsx)(RequireConnect_1.default, { children: (0, jsx_runtime_1.jsx)(DrawerComponent_1.default, { ref: getSeedPhraseViewRef, direction: DrawerComponent_1.DRAWER_DIRECTION.RIGHT, trigger: (0, jsx_runtime_1.jsxs)(material_1.Box, __assign({}, rest, { sx: { position: "relative" }, children: [children, (0, jsx_runtime_1.jsx)(material_1.Box, { sx: { position: "absolute", inset: 0, zIndex: 10 } })] })), children: (0, jsx_runtime_1.jsx)(GetSeedPhraseWalletView_1.default, { onBack: backAuthView }) }) }));
|
|
76
76
|
}
|
|
77
77
|
exports.default = GetWalletSeedPhrase;
|
|
@@ -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
|
|
26
|
+
var material_1 = require("@mui/material");
|
|
30
27
|
var Icon = function (props) {
|
|
31
|
-
var src = props.src, alt = props.alt,
|
|
32
|
-
return (
|
|
33
|
-
|
|
34
|
-
|
|
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;
|
|
@@ -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
|
|
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)(
|
|
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;
|
|
@@ -74,7 +74,7 @@ function RequireConnect(_a) {
|
|
|
74
74
|
(_a = authViewRef.current) === null || _a === void 0 ? void 0 : _a.close();
|
|
75
75
|
};
|
|
76
76
|
if (!isAuthenticated) {
|
|
77
|
-
return ((0, jsx_runtime_1.jsx)(DrawerComponent_1.default, { ref: authViewRef, direction: DrawerComponent_1.DRAWER_DIRECTION.RIGHT, trigger: (0, jsx_runtime_1.jsxs)(material_1.Box, __assign({}, rest, { children: [children, (0, jsx_runtime_1.jsx)(material_1.Box, { sx: { position: "absolute", inset: 0, zIndex: 10 } })] })), children: (0, jsx_runtime_1.jsx)(AuthView_1.default, { onBack: backAuthView }) }));
|
|
77
|
+
return ((0, jsx_runtime_1.jsx)(DrawerComponent_1.default, { ref: authViewRef, direction: DrawerComponent_1.DRAWER_DIRECTION.RIGHT, trigger: (0, jsx_runtime_1.jsxs)(material_1.Box, __assign({}, rest, { sx: { position: "relative" }, children: [children, (0, jsx_runtime_1.jsx)(material_1.Box, { sx: { position: "absolute", inset: 0, zIndex: 10 } })] })), children: (0, jsx_runtime_1.jsx)(AuthView_1.default, { onBack: backAuthView }) }));
|
|
78
78
|
}
|
|
79
79
|
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: children });
|
|
80
80
|
}
|
|
@@ -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)(
|
|
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
|
};
|
|
@@ -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, {
|
|
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 }))] }));
|
|
@@ -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.
|
|
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,
|
package/dist/theme/mui/theme.js
CHANGED