tek-wallet 0.0.759 → 0.0.760

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.
Files changed (24) hide show
  1. package/dist/components/TekWallet/components/layouts/ChildPageLayout/index.js +1 -1
  2. package/dist/components/TekWallet/components/ui/AnalyticGroup/index.js +5 -5
  3. package/dist/components/TekWallet/components/ui/AnalyticGroupCenter/index.d.ts +7 -0
  4. package/dist/components/TekWallet/components/ui/AnalyticGroupCenter/index.js +94 -0
  5. package/dist/components/TekWallet/components/ui/AssetViewHeader/index.d.ts +2 -0
  6. package/dist/components/TekWallet/components/ui/AssetViewHeader/index.js +85 -0
  7. package/dist/components/TekWallet/components/ui/BasicAmountGroup/index.d.ts +5 -0
  8. package/dist/components/TekWallet/components/ui/BasicAmountGroup/index.js +23 -0
  9. package/dist/components/TekWallet/components/ui/SvgPath/index.d.ts +2 -0
  10. package/dist/components/TekWallet/components/ui/SvgPath/index.js +3 -0
  11. package/dist/components/TekWallet/components/ui/TokenItem/index.js +3 -3
  12. package/dist/components/TekWallet/components/ui/TokensBoard/index.js +5 -14
  13. package/dist/components/TekWallet/components/views/AssetView/index.d.ts +4 -1
  14. package/dist/components/TekWallet/components/views/AssetView/index.js +16 -5
  15. package/dist/components/TekWallet/components/views/SettingView/index.d.ts +8 -0
  16. package/dist/components/TekWallet/components/views/SettingView/index.js +47 -0
  17. package/dist/components/TekWallet/components/views/TekWalletView/index.d.ts +8 -1
  18. package/dist/components/TekWallet/components/views/TekWalletView/index.js +3 -2
  19. package/dist/components/TekWallet/components/views/TekWalletView/routes.d.ts +3 -3
  20. package/dist/components/TekWallet/components/views/TekWalletView/routes.js +17 -52
  21. package/dist/components/TekWallet/providers/TekWalletProvider/index.d.ts +3 -1
  22. package/dist/components/TekWallet/providers/TekWalletProvider/index.js +2 -2
  23. package/dist/components/TekWallet/utils/compactWalletAddress.js +2 -2
  24. package/package.json +1 -1
@@ -51,7 +51,7 @@ var ChildPageLayout = (0, react_1.forwardRef)(function (props, ref) {
51
51
  },
52
52
  };
53
53
  });
54
- return ((0, jsx_runtime_1.jsxs)(material_1.Box, __assign({ ref: ref, sx: __assign({ height: "100%", width: "100%", display: "grid", gridTemplateRows: "auto 1fr auto", position: "relative", backgroundColor: theme.palette.background.white }, sx), className: className }, rest, { children: [(0, jsx_runtime_1.jsx)(material_1.Box, { sx: { width: "100%" }, className: classNames === null || classNames === void 0 ? void 0 : classNames.header, children: header }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: { height: "100%", width: "100%", overflowX: "hidden", overflowY: "auto" }, className: classNames === null || classNames === void 0 ? void 0 : classNames.body, children: children }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: { width: "100%" }, className: classNames === null || classNames === void 0 ? void 0 : classNames.footer, children: footer }), status !== StatusDisplay_1.StatusDisplayType.Normal && ((0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
54
+ return ((0, jsx_runtime_1.jsxs)(material_1.Box, __assign({ ref: ref, sx: __assign({ height: "100%", width: "100%", display: "grid", gridTemplateRows: "auto 1fr auto", position: "relative", overflow: "hidden", backgroundColor: theme.palette.background.white }, sx), className: className }, rest, { children: [(0, jsx_runtime_1.jsx)(material_1.Box, { sx: { width: "100%" }, className: classNames === null || classNames === void 0 ? void 0 : classNames.header, children: header }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: { height: "100%", width: "100%", overflowX: "hidden", overflowY: "auto" }, className: classNames === null || classNames === void 0 ? void 0 : classNames.body, children: children }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: { width: "100%" }, className: classNames === null || classNames === void 0 ? void 0 : classNames.footer, children: footer }), status !== StatusDisplay_1.StatusDisplayType.Normal && ((0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
55
55
  position: "absolute",
56
56
  inset: 0,
57
57
  display: "flex",
@@ -24,7 +24,7 @@ var TimeFilter_1 = require("../TimeFilter");
24
24
  var user_1 = __importDefault(require("../../../store/user"));
25
25
  var balance_1 = __importDefault(require("../../../store/balance"));
26
26
  var AnalyticGroup = function (props) {
27
- var sx = props.sx;
27
+ var sx = props.sx, timeRange = props.timeRange;
28
28
  var theme = (0, providers_1.useTheme)();
29
29
  var isShowBalance = (0, user_1.default)(function (state) { return state.settings.balance.isShowBalance; });
30
30
  var toggleShowBalance = (0, user_1.default)(function (state) { return state.toggleShowBalance; });
@@ -52,20 +52,20 @@ var AnalyticGroup = function (props) {
52
52
  alignItems: "flex-end",
53
53
  gap: theme.mixins.gaps.g6,
54
54
  fontSize: theme.typography.fontSize12,
55
- }, children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign(__assign({}, theme.mixins.row), theme.mixins.value), { alignItems: "baseline", fontSize: theme.typography.fontSize20, gap: theme.mixins.gaps.g2 }), children: isShowBalance ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Formatter_1.default, { sx: { fontWeight: theme.typography.fontWeight700 }, value: totalBalanceInUSD, unit: "USD", hideUnitOutSide: true }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g2 }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
55
+ }, children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign(__assign({}, theme.mixins.row), theme.mixins.value), { alignItems: "baseline", fontSize: theme.typography.fontSize20, gap: theme.mixins.gaps.g2 }), children: isShowBalance ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Formatter_1.default, { sx: { fontWeight: theme.typography.fontWeight700 }, value: totalBalanceInUSD, unit: "USD", hideUnitOutSide: true }), !!totalBalanceInUSD && ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g2 }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
56
56
  fontWeight: theme.typography.fontWeight400,
57
57
  fontSize: "0.8em",
58
- }, children: "USD" }), (0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { cursor: "pointer", width: 8, height: 8 }, children: SvgPath_1.ARROW_DROP_DOWN })] })] })) : ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
58
+ }, children: "$" }), false && ((0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { cursor: "pointer", width: 8, height: 8 }, children: SvgPath_1.ARROW_DROP_DOWN }))] }))] })) : ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
59
59
  fontSize: theme.typography.fontSize24,
60
60
  fontWeight: theme.typography.fontWeight700,
61
61
  color: theme.palette.text.black,
62
- }, children: "******" })) }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g4 }), children: [!!props.timeRange && ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
62
+ }, children: "******" })) }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g4 }), children: [!!timeRange && ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
63
63
  fontWeight: theme.typography.fontWeight600,
64
64
  leading: theme.typography.leading140,
65
65
  fontSize: theme.typography.fontSize12,
66
66
  textTransform: "capitalize",
67
67
  color: theme.palette.text.accent,
68
- }, children: TimeFilter_1.TIME_FILTER_LABEL[props.timeRange] })), !!(analytic === null || analytic === void 0 ? void 0 : analytic.pnl) && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [isShowBalance && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { cursor: "pointer", width: 8, height: 8 }, children: SvgPath_1.ARROW_DROP_UP }), (0, jsx_runtime_1.jsxs)(Text_1.default, { sx: __assign(__assign({}, theme.mixins.value), { color: theme.palette.text.alertStatus, fontSize: theme.typography.fontSize12, fontWeight: theme.typography.fontWeight600, borderBottom: "1px dashed currentColor" }), children: [(0, jsx_runtime_1.jsx)("span", { children: (analytic === null || analytic === void 0 ? void 0 : analytic.pnl) > 0 ? "+" : "" }), " ", (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: analytic === null || analytic === void 0 ? void 0 : analytic.pnl }), " ", "(", (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: analytic === null || analytic === void 0 ? void 0 : analytic.pnl_percent, unit: "%" }), ")"] })] })), !isShowBalance && ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
68
+ }, children: TimeFilter_1.TIME_FILTER_LABEL[timeRange] })), !!(analytic === null || analytic === void 0 ? void 0 : analytic.pnl) && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [isShowBalance && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { cursor: "pointer", width: 8, height: 8 }, children: SvgPath_1.ARROW_DROP_UP }), (0, jsx_runtime_1.jsxs)(Text_1.default, { sx: __assign(__assign({}, theme.mixins.value), { color: theme.palette.text.alertStatus, fontSize: theme.typography.fontSize12, fontWeight: theme.typography.fontWeight600, borderBottom: "1px dashed currentColor" }), children: [(0, jsx_runtime_1.jsx)("span", { children: (analytic === null || analytic === void 0 ? void 0 : analytic.pnl) > 0 ? "+" : "" }), " ", (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: analytic === null || analytic === void 0 ? void 0 : analytic.pnl }), " ", "(", (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: analytic === null || analytic === void 0 ? void 0 : analytic.pnl_percent, unit: "%" }), ")"] })] })), !isShowBalance && ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
69
69
  fontSize: theme.typography.fontSize12,
70
70
  fontWeight: theme.typography.fontWeight600,
71
71
  color: theme.palette.text.accent2,
@@ -0,0 +1,7 @@
1
+ import { GeneralProps } from "../../../types/ui";
2
+ import { TimeFilterType } from "../TimeFilter";
3
+ interface AnalyticGroupProps extends GeneralProps {
4
+ timeRange?: TimeFilterType;
5
+ }
6
+ declare const AnalyticGroup: (props: AnalyticGroupProps) => import("react/jsx-runtime").JSX.Element;
7
+ export default AnalyticGroup;
@@ -0,0 +1,94 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __importDefault = (this && this.__importDefault) || function (mod) {
14
+ return (mod && mod.__esModule) ? mod : { "default": mod };
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ var jsx_runtime_1 = require("react/jsx-runtime");
18
+ var Text_1 = __importDefault(require("../Text"));
19
+ var Formatter_1 = __importDefault(require("../Formatter"));
20
+ var material_1 = require("@mui/material");
21
+ var providers_1 = require("../../../providers");
22
+ var SvgPath_1 = require("../SvgPath");
23
+ var TimeFilter_1 = require("../TimeFilter");
24
+ var user_1 = __importDefault(require("../../../store/user"));
25
+ var balance_1 = __importDefault(require("../../../store/balance"));
26
+ var AnalyticGroup = function (props) {
27
+ var sx = props.sx, timeRange = props.timeRange;
28
+ var theme = (0, providers_1.useTheme)();
29
+ var isShowBalance = (0, user_1.default)(function (state) { return state.settings.balance.isShowBalance; });
30
+ var toggleShowBalance = (0, user_1.default)(function (state) { return state.toggleShowBalance; });
31
+ var totalBalanceInUSD = (0, balance_1.default)(function (state) { return state.totalBalanceInUSD; });
32
+ var analytic = (0, balance_1.default)(function (state) { return state.analytic; });
33
+ return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign(__assign({}, theme.mixins.row), { justifyContent: "space-between", alignItems: "flex-start" }), sx), children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g6, position: "relative" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
34
+ fontSize: theme.typography.fontSize15,
35
+ fontWeight: theme.typography.fontWeight500,
36
+ color: theme.palette.text.accent2,
37
+ }, children: "Total Amount" }), (0, jsx_runtime_1.jsxs)(material_1.Box, { onClick: toggleShowBalance, sx: {
38
+ position: "relative",
39
+ }, children: [(0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { cursor: "pointer", width: 20, height: 20 }, children: SvgPath_1.IC_NO_SEE }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
40
+ position: "absolute",
41
+ left: "50%",
42
+ width: "2px",
43
+ top: "50%",
44
+ height: !isShowBalance ? "80%" : "0px",
45
+ transition: "height 0.2s ease-in-out",
46
+ backgroundColor: theme.palette.text.accent2,
47
+ transform: "translate(calc(-50% + 1px), calc(-50% + 1px)) rotate(45deg)",
48
+ transformOrigin: "center center",
49
+ } })] })] }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
50
+ display: "flex",
51
+ flexDirection: "column",
52
+ alignItems: "flex-end",
53
+ gap: theme.mixins.gaps.g6,
54
+ fontSize: theme.typography.fontSize12,
55
+ }, children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign(__assign({}, theme.mixins.row), theme.mixins.value), { alignItems: "baseline", fontSize: theme.typography.fontSize20, gap: theme.mixins.gaps.g2 }), children: isShowBalance ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Formatter_1.default, { sx: { fontWeight: theme.typography.fontWeight700 }, value: totalBalanceInUSD, unit: "USD", hideUnitOutSide: true }), !!totalBalanceInUSD && ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g2 }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
56
+ fontWeight: theme.typography.fontWeight400,
57
+ fontSize: "0.8em",
58
+ }, children: "$" }), false && ((0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { cursor: "pointer", width: 8, height: 8 }, children: SvgPath_1.ARROW_DROP_DOWN }))] }))] })) : ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
59
+ fontSize: theme.typography.fontSize24,
60
+ fontWeight: theme.typography.fontWeight700,
61
+ color: theme.palette.text.black,
62
+ }, children: "******" })) }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g4 }), children: [!!timeRange && ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
63
+ fontWeight: theme.typography.fontWeight600,
64
+ leading: theme.typography.leading140,
65
+ fontSize: theme.typography.fontSize12,
66
+ textTransform: "capitalize",
67
+ color: theme.palette.text.accent,
68
+ }, children: TimeFilter_1.TIME_FILTER_LABEL[timeRange] })), !!(analytic === null || analytic === void 0 ? void 0 : analytic.pnl) && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [isShowBalance && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { cursor: "pointer", width: 8, height: 8 }, children: SvgPath_1.ARROW_DROP_UP }), (0, jsx_runtime_1.jsxs)(Text_1.default, { sx: __assign(__assign({}, theme.mixins.value), { color: theme.palette.text.alertStatus, fontSize: theme.typography.fontSize12, fontWeight: theme.typography.fontWeight600, borderBottom: "1px dashed currentColor" }), children: [(0, jsx_runtime_1.jsx)("span", { children: (analytic === null || analytic === void 0 ? void 0 : analytic.pnl) > 0 ? "+" : "" }), " ", (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: analytic === null || analytic === void 0 ? void 0 : analytic.pnl }), " ", "(", (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: analytic === null || analytic === void 0 ? void 0 : analytic.pnl_percent, unit: "%" }), ")"] })] })), !isShowBalance && ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
69
+ fontSize: theme.typography.fontSize12,
70
+ fontWeight: theme.typography.fontWeight600,
71
+ color: theme.palette.text.accent2,
72
+ display: theme.mixins.row,
73
+ }, children: "******" }))] }))] }), false && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Divider, { sx: {
74
+ width: "110%",
75
+ borderColor: "".concat(theme.palette.border.accent),
76
+ opacity: 0.2,
77
+ marginTop: theme.mixins.customMargin.m4,
78
+ } }), isShowBalance && ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g4 }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
79
+ fontWeight: theme.typography.fontWeight500,
80
+ leading: theme.typography.leading140,
81
+ fontSize: theme.typography.fontSize12,
82
+ textTransform: "capitalize",
83
+ color: theme.palette.text.accent,
84
+ }, children: "Profit" }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign({}, theme.mixins.row), children: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
85
+ fontSize: theme.typography.fontSize12,
86
+ fontWeight: theme.typography.fontWeight600,
87
+ color: theme.palette.text.accent2,
88
+ }, children: "\u2248 250k XP" }) }) }), (0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { cursor: "pointer", width: 14, height: 14 }, children: SvgPath_1.IC_INFORMATION })] })), !isShowBalance && ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
89
+ fontSize: theme.typography.fontSize12,
90
+ fontWeight: theme.typography.fontWeight600,
91
+ color: theme.palette.text.accent2,
92
+ }, children: "******" }))] }))] })] }));
93
+ };
94
+ exports.default = AnalyticGroup;
@@ -0,0 +1,2 @@
1
+ declare const AssetViewHeader: () => import("react/jsx-runtime").JSX.Element;
2
+ export default AssetViewHeader;
@@ -0,0 +1,85 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
+ if (k2 === undefined) k2 = k;
15
+ var desc = Object.getOwnPropertyDescriptor(m, k);
16
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
17
+ desc = { enumerable: true, get: function() { return m[k]; } };
18
+ }
19
+ Object.defineProperty(o, k2, desc);
20
+ }) : (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ o[k2] = m[k];
23
+ }));
24
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
26
+ }) : function(o, v) {
27
+ o["default"] = v;
28
+ });
29
+ var __importStar = (this && this.__importStar) || (function () {
30
+ var ownKeys = function(o) {
31
+ ownKeys = Object.getOwnPropertyNames || function (o) {
32
+ var ar = [];
33
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
34
+ return ar;
35
+ };
36
+ return ownKeys(o);
37
+ };
38
+ return function (mod) {
39
+ if (mod && mod.__esModule) return mod;
40
+ var result = {};
41
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
42
+ __setModuleDefault(result, mod);
43
+ return result;
44
+ };
45
+ })();
46
+ var __importDefault = (this && this.__importDefault) || function (mod) {
47
+ return (mod && mod.__esModule) ? mod : { "default": mod };
48
+ };
49
+ Object.defineProperty(exports, "__esModule", { value: true });
50
+ var jsx_runtime_1 = require("react/jsx-runtime");
51
+ var Text_1 = __importDefault(require("../Text"));
52
+ var material_1 = require("@mui/material");
53
+ var ThemeProvider_1 = require("../../../providers/ThemeProvider");
54
+ var DrawerComponent_1 = __importStar(require("../DrawerComponent"));
55
+ var useWallet_1 = __importDefault(require("../../../hooks/useWallet"));
56
+ var compactWalletAddress_1 = __importDefault(require("../../../utils/compactWalletAddress"));
57
+ var CopyTextComponent_1 = __importDefault(require("../CopyTextComponent"));
58
+ var SvgPath_1 = require("../SvgPath");
59
+ var CloseModal_1 = __importDefault(require("../CloseModal"));
60
+ var react_1 = require("react");
61
+ var link_1 = __importDefault(require("next/link"));
62
+ var routes_1 = require("../../views/TekWalletView/routes");
63
+ var TekWalletProvider_1 = require("../../../providers/TekWalletProvider");
64
+ var AssetViewHeader = function () {
65
+ var _a = (0, useWallet_1.default)(), masterWallet = _a.masterWallet, blockchainWallets = _a.blockchainWallets;
66
+ var options = (0, TekWalletProvider_1.useWalletConfig)().options;
67
+ var theme = (0, ThemeProvider_1.useTheme)();
68
+ var modalRef = (0, react_1.useRef)(null);
69
+ return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { justifyContent: "center", position: "relative" }), children: [(0, jsx_runtime_1.jsx)(link_1.default, { href: "".concat(options === null || options === void 0 ? void 0 : options.basePath, "/tek-wallet/").concat(routes_1.TekWalletViewRoutes.SETTING), children: (0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: {
70
+ width: 24,
71
+ height: 24,
72
+ position: "absolute",
73
+ left: "16px",
74
+ top: "50%",
75
+ transform: "translateY(-50%)",
76
+ }, children: SvgPath_1.IC_SETTING }) }), (0, jsx_runtime_1.jsx)(DrawerComponent_1.default, { ref: modalRef, trigger: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign(__assign({}, theme.mixins.row), { alignItems: "center", justifyContent: "center", textAlign: "center", gap: theme.mixins.gaps.g4, py: theme.mixins.customPadding.p8 }), theme.mixins.value), children: [(0, compactWalletAddress_1.default)(masterWallet), (0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { width: 10, height: 10 }, children: SvgPath_1.ARROW_DROP_DOWN })] }), direction: DrawerComponent_1.DRAWER_DIRECTION.TOP, children: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
77
+ width: "100%",
78
+ height: "fit-content",
79
+ backgroundColor: "white",
80
+ padding: theme.mixins.customPadding.p16,
81
+ }, children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { justifyContent: "space-between" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { component: "div", sx: __assign(__assign({}, theme.mixins.headerTitle), { py: theme.mixins.customPadding.p8, textAlign: "left" }), children: "Wallet address" }), (0, jsx_runtime_1.jsx)(CloseModal_1.default, { onClick: function () { var _a; return (_a = modalRef.current) === null || _a === void 0 ? void 0 : _a.close(); } })] }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign({}, theme.mixins.column), children: [!!masterWallet && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(CopyTextComponent_1.default, { value: masterWallet !== null && masterWallet !== void 0 ? masterWallet : "", children: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({ py: theme.mixins.customPadding.p8 }, theme.mixins.row), { justifyContent: "space-between", alignItems: "center" }), children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign({}, theme.mixins.column), children: [(0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign({}, theme.mixins.listTitle), children: "Internal wallet" }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign({}, theme.mixins.listDescription), children: (0, compactWalletAddress_1.default)(masterWallet) })] }), (0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { width: 16, height: 16 }, children: SvgPath_1.IC_COPY })] }) }), (0, jsx_runtime_1.jsx)(material_1.Divider, { sx: {
82
+ my: theme.mixins.customPadding.p8,
83
+ } })] })), blockchainWallets === null || blockchainWallets === void 0 ? void 0 : blockchainWallets.map(function (wallet, index) { return ((0, jsx_runtime_1.jsx)(CopyTextComponent_1.default, { value: wallet.blockchainAddress, children: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({ py: theme.mixins.customPadding.p8 }, theme.mixins.row), { justifyContent: "space-between", alignItems: "center" }), children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign({}, theme.mixins.column), children: [(0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign({}, theme.mixins.listTitle), children: wallet.networkSlug }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign({}, theme.mixins.listDescription), children: (0, compactWalletAddress_1.default)(wallet.blockchainAddress) })] }), (0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { width: 16, height: 16 }, children: SvgPath_1.IC_COPY })] }) }, wallet.blockchainAddress + index)); })] })] }) })] }));
84
+ };
85
+ exports.default = AssetViewHeader;
@@ -0,0 +1,5 @@
1
+ import { GeneralProps } from "../../../types/ui";
2
+ interface BasicAmountGroupProps extends GeneralProps {
3
+ }
4
+ declare const BasicAmountGroup: (props: BasicAmountGroupProps) => import("react/jsx-runtime").JSX.Element;
5
+ export default BasicAmountGroup;
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __importDefault = (this && this.__importDefault) || function (mod) {
14
+ return (mod && mod.__esModule) ? mod : { "default": mod };
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ var jsx_runtime_1 = require("react/jsx-runtime");
18
+ var material_1 = require("@mui/material");
19
+ var AnalyticGroupCenter_1 = __importDefault(require("../AnalyticGroupCenter"));
20
+ var BasicAmountGroup = function (props) {
21
+ return ((0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign({ width: "100%", height: "fit-content", position: "relative" }, props.sx), children: (0, jsx_runtime_1.jsx)(AnalyticGroupCenter_1.default, { sx: { position: "relative" } }) }));
22
+ };
23
+ exports.default = BasicAmountGroup;
@@ -48,3 +48,5 @@ export declare const IC_WITHDRAW_FC: import("react/jsx-runtime").JSX.Element;
48
48
  export declare const IC_TRANSFER: import("react/jsx-runtime").JSX.Element;
49
49
  export declare const IC_SWAP_FC: import("react/jsx-runtime").JSX.Element;
50
50
  export declare const IC_ARROW_RIGHT: import("react/jsx-runtime").JSX.Element;
51
+ export declare const IC_SETTING: import("react/jsx-runtime").JSX.Element;
52
+ export declare const IC_CHANGE_PASSCODE: import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.IC_ARROW_RIGHT = exports.IC_SWAP_FC = exports.IC_TRANSFER = exports.IC_WITHDRAW_FC = exports.IC_RECEIVE = exports.IC_SWAP_BG = exports.IC_PROCESSING_CIRCLE = exports.IC_NETWORK = exports.IC_ERROR_CIRCLE = exports.IC_CHECK_CIRCLE = exports.IC_SCAN_QR_CODE = exports.IC_DEPOSIT = exports.IC_WITHDRAW = exports.IC_INFORMATION = exports.IC_EXPANDER_ARROW = exports.IC_NO_SEE = exports.IC_SET = exports.IC_EDIT = exports.IC_RECEIVE_TAG_RECOMMENDED = exports.IC_RECEIVE_TAG = exports.IC_TOOLTIP = exports.IC_BACK = exports.IC_UNCHECK = exports.IC_CHECK = exports.IC_ARROW_DROP_DOWN = exports.IC_ARROW_DROP_UP = exports.IC_RECEIVE_EXTERNAL = exports.IC_RECEIVE_INTERNAL = exports.IC_ERROR = exports.IC_SUCCESS = exports.IC_CHEVRON_RIGHT = exports.IC_CHEVRON_LEFT = exports.IC_TRASH = exports.IC_ARROW_BLACK_DROP = exports.IC_SWAP_SECONDARY = exports.IC_SWAP = exports.IC_HELP = exports.IC_PASSCODE = exports.IC_FACE_ID = exports.IC_COPY = exports.IC_TIMELINE_DOT = exports.IC_CLOSE = exports.IC_SEARCH = exports.IC_DOCUMENTS = exports.IC_SCAN = exports.IC_TUTORIAL = exports.IC_HISTORY = exports.ARROW_DOWN = exports.ARROW_DROP_DOWN = exports.ARROW_DROP_UP = void 0;
4
+ exports.IC_CHANGE_PASSCODE = exports.IC_SETTING = void 0;
4
5
  var jsx_runtime_1 = require("react/jsx-runtime");
5
6
  exports.ARROW_DROP_UP = ((0, jsx_runtime_1.jsx)("svg", { width: "8", height: "5", viewBox: "0 0 8 5", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: (0, jsx_runtime_1.jsx)("path", { d: "M0 4.5L4 0.5L8 4.5H0Z", fill: "#000" }) }));
6
7
  exports.ARROW_DROP_DOWN = ((0, jsx_runtime_1.jsx)("svg", { width: "8", height: "5", viewBox: "0 0 8 5", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: (0, jsx_runtime_1.jsx)("path", { d: "M8 0.5L4 4.5L0 0.5L8 0.5Z", fill: "#000" }) }));
@@ -52,3 +53,5 @@ exports.IC_WITHDRAW_FC = ((0, jsx_runtime_1.jsx)("svg", { width: "25", height: "
52
53
  exports.IC_TRANSFER = ((0, jsx_runtime_1.jsxs)("svg", { width: "25", height: "24", viewBox: "0 0 25 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [(0, jsx_runtime_1.jsx)("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M12.625 3.75C8.06865 3.75 4.375 7.44365 4.375 12C4.375 16.5563 8.06865 20.25 12.625 20.25C17.1813 20.25 20.875 16.5563 20.875 12V10.5006C20.875 10.0863 21.2108 9.75 21.625 9.75C22.0392 9.75 22.375 10.0858 22.375 10.5V12C22.375 17.3848 18.0098 21.75 12.625 21.75C7.24022 21.75 2.875 17.3848 2.875 12C2.875 6.61522 7.24022 2.25 12.625 2.25L14.1243 2.25L14.125 3.75L12.625 3.75ZM14.875 3C14.875 3.41422 14.5392 3.75 14.125 3.75L14.1243 2.25C14.5385 2.25 14.875 2.58579 14.875 3Z", fill: "#1C461D" }), (0, jsx_runtime_1.jsx)("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M17.875 3.75C17.4608 3.75 17.125 3.41421 17.125 3C17.125 2.58579 17.4608 2.25 17.875 2.25H21.625C22.0392 2.25 22.375 2.58579 22.375 3V6.75C22.375 7.16421 22.0392 7.5 21.625 7.5C21.2108 7.5 20.875 7.16421 20.875 6.75V4.81066L18.4053 7.28033C18.1124 7.57322 17.6376 7.57322 17.3447 7.28033C17.0518 6.98744 17.0518 6.51256 17.3447 6.21967L19.8143 3.75H17.875Z", fill: "#1C461D" }), (0, jsx_runtime_1.jsx)("path", { d: "M12.625 6C13.0392 6 13.375 6.33579 13.375 6.75V7.5H14.875C15.2892 7.5 15.625 7.83579 15.625 8.25C15.625 8.66421 15.2892 9 14.875 9H11.5C11.2016 9 10.9155 9.11853 10.7045 9.3295C10.4935 9.54048 10.375 9.82663 10.375 10.125C10.375 10.4234 10.4935 10.7095 10.7045 10.9205C10.9155 11.1315 11.2016 11.25 11.5 11.25H13.75C14.4462 11.25 15.1139 11.5266 15.6062 12.0188C16.0984 12.5111 16.375 13.1788 16.375 13.875C16.375 14.5712 16.0984 15.2389 15.6062 15.7312C15.1139 16.2234 14.4462 16.5 13.75 16.5H13.375V17.25C13.375 17.6642 13.0392 18 12.625 18C12.2108 18 11.875 17.6642 11.875 17.25V16.5H10.375C9.96079 16.5 9.625 16.1642 9.625 15.75C9.625 15.3358 9.96079 15 10.375 15H13.75C14.0484 15 14.3345 14.8815 14.5455 14.6705C14.7565 14.4595 14.875 14.1734 14.875 13.875C14.875 13.5766 14.7565 13.2905 14.5455 13.0795C14.3345 12.8685 14.0484 12.75 13.75 12.75H11.5C10.8038 12.75 10.1361 12.4734 9.64384 11.9812C9.15156 11.4889 8.875 10.8212 8.875 10.125C8.875 9.42881 9.15156 8.76113 9.64384 8.26884C10.1361 7.77656 10.8038 7.5 11.5 7.5H11.875V6.75C11.875 6.33579 12.2108 6 12.625 6Z", fill: "#1C461D" })] }));
53
54
  exports.IC_SWAP_FC = ((0, jsx_runtime_1.jsx)("svg", { width: "25", height: "24", viewBox: "0 0 25 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: (0, jsx_runtime_1.jsx)("path", { d: "M7.625 21L3.125 16.5M3.125 16.5L7.625 12M3.125 16.5H16.625M16.625 3L21.125 7.5M21.125 7.5L16.625 12M21.125 7.5H7.625", stroke: "#1C461D", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }) }));
54
55
  exports.IC_ARROW_RIGHT = ((0, jsx_runtime_1.jsx)("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: (0, jsx_runtime_1.jsx)("path", { d: "M9 18L15 12L9 6", stroke: "#121212", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }) }));
56
+ exports.IC_SETTING = ((0, jsx_runtime_1.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 -960 960 960", width: "24px", fill: "#666666", children: (0, jsx_runtime_1.jsx)("path", { d: "m370-80-16-128q-13-5-24.5-12T307-235l-119 50L78-375l103-78q-1-7-1-13.5v-27q0-6.5 1-13.5L78-585l110-190 119 50q11-8 23-15t24-12l16-128h220l16 128q13 5 24.5 12t22.5 15l119-50 110 190-103 78q1 7 1 13.5v27q0 6.5-2 13.5l103 78-110 190-118-50q-11 8-23 15t-24 12L590-80H370Zm70-80h79l14-106q31-8 57.5-23.5T639-327l99 41 39-68-86-65q5-14 7-29.5t2-31.5q0-16-2-31.5t-7-29.5l86-65-39-68-99 42q-22-23-48.5-38.5T533-694l-13-106h-79l-14 106q-31 8-57.5 23.5T321-633l-99-41-39 68 86 64q-5 15-7 30t-2 32q0 16 2 31t7 30l-86 65 39 68 99-42q22 23 48.5 38.5T427-266l13 106Zm42-180q58 0 99-41t41-99q0-58-41-99t-99-41q-59 0-99.5 41T342-480q0 58 40.5 99t99.5 41Zm-2-140Z" }) }));
57
+ exports.IC_CHANGE_PASSCODE = ((0, jsx_runtime_1.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 -960 960 960", width: "24px", fill: "#666666", children: (0, jsx_runtime_1.jsx)("path", { d: "m482-200 114-113-114-113-42 42 43 43q-28 1-54.5-9T381-381q-20-20-30.5-46T340-479q0-17 4.5-34t12.5-33l-44-44q-17 25-25 53t-8 57q0 38 15 75t44 66q29 29 65 43.5t74 15.5l-38 38 42 42Zm165-170q17-25 25-53t8-57q0-38-14.5-75.5T622-622q-29-29-65.5-43T482-679l38-39-42-42-114 113 114 113 42-42-44-44q27 0 55 10.5t48 30.5q20 20 30.5 46t10.5 52q0 17-4.5 34T603-414l44 44ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z" }) }));
@@ -37,12 +37,12 @@ var TokenItem = function (props) {
37
37
  var shouldHideSmallAsset = props.showSmallAssets && currency.name === "USD";
38
38
  return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
39
39
  display: !shouldHideSmallAsset ? "grid" : "none",
40
- gridTemplateColumns: "1.55fr 1fr 1fr",
40
+ gridTemplateColumns: "1fr auto",
41
41
  gap: theme.mixins.gaps.g12,
42
42
  py: theme.mixins.customPadding.p8,
43
43
  }, children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g8 }), children: [(0, jsx_runtime_1.jsx)(Icon_1.default, { width: 20, sx: {
44
44
  borderRadius: theme.mixins.customRadius.full,
45
- }, src: currency.link }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { flex: 1 }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.value), children: currency.name }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.valueDescription), children: currency.full_name })] })] }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { gap: theme.mixins.gaps.g1, justifyContent: "center" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign({}, theme.mixins.value), { fontWeight: theme.typography.fontWeight700 }), children: isShowBalance ? (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: balance }) : "****" }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.valueDescription), children: isShowBalance ? (0, jsx_runtime_1.jsx)(Formatter_1.default, { start: "$", value: balanceInUSD }) : "****" })] }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { gap: theme.mixins.gaps.g1, textAlign: "right" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign({}, theme.mixins.value), { color: theme.palette.text.alertStatus, fontWeight: theme.typography.fontWeight700 }), children: isShowBalance ? ((0, jsx_runtime_1.jsx)(Formatter_1.default, { value: 70000 })) : ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
45
+ }, src: currency.link }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { flex: 1 }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.value), children: currency.name }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.valueDescription), children: currency.full_name })] })] }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { gap: theme.mixins.gaps.g1, justifyContent: "center" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign({}, theme.mixins.value), { fontWeight: theme.typography.fontWeight700 }), children: isShowBalance ? (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: balance }) : "****" }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.valueDescription), children: isShowBalance ? (0, jsx_runtime_1.jsx)(Formatter_1.default, { start: "$", value: balanceInUSD }) : "****" })] }), false && ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { gap: theme.mixins.gaps.g1, textAlign: "right" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign({}, theme.mixins.value), { color: theme.palette.text.alertStatus, fontWeight: theme.typography.fontWeight700 }), children: isShowBalance ? ((0, jsx_runtime_1.jsx)(Formatter_1.default, { value: 70000 })) : ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
46
46
  fontSize: theme.typography.fontSize14,
47
47
  fontWeight: theme.typography.fontWeight600,
48
48
  color: theme.palette.text.black,
@@ -50,7 +50,7 @@ var TokenItem = function (props) {
50
50
  fontSize: theme.typography.fontSize12,
51
51
  fontWeight: theme.typography.fontWeight600,
52
52
  color: theme.palette.text.accent2,
53
- }, children: "****" })) })] })] }));
53
+ }, children: "****" })) })] }))] }));
54
54
  };
55
55
  exports.TokenItem = TokenItem;
56
56
  exports.default = exports.TokenItem;
@@ -34,11 +34,7 @@ var TokensBoard = function () {
34
34
  // ...theme.mixins.paper,
35
35
  // backgroundColor: "background.white",
36
36
  // boxShadow: theme.shadows[1],
37
- }, children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g12, my: theme.mixins.customMargin.m4 }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
38
- fontSize: theme.typography.fontSize12,
39
- fontWeight: theme.typography.fontWeight700,
40
- color: theme.palette.text.accent2,
41
- }, children: "Asset management" }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g2, ml: "auto" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
37
+ }, children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g12, my: theme.mixins.customMargin.m4 }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign({}, theme.mixins.headerTitle), { pb: theme.mixins.customPadding.p8 }), children: "Asset management" }), false && ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g2, ml: "auto" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
42
38
  // ...theme.mixins.valueDescription
43
39
  fontSize: theme.typography.fontSize12,
44
40
  fontWeight: theme.typography.fontWeight600,
@@ -49,11 +45,11 @@ var TokensBoard = function () {
49
45
  "& .MuiSvgIcon-root": {
50
46
  color: theme.palette.text.accent,
51
47
  },
52
- }, onClick: toggleDisplay })] })] }), (0, jsx_runtime_1.jsx)(material_1.Divider, { sx: {
48
+ }, onClick: toggleDisplay })] }))] }), (0, jsx_runtime_1.jsx)(material_1.Divider, { sx: {
53
49
  borderColor: theme.palette.border.accent3,
54
50
  } }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { gap: theme.mixins.gaps.g12, mt: theme.mixins.customMargin.m8, pt: theme.mixins.customPadding.p8, minHeight: !tokens ? "20rem" : "unset" }), children: [!!tokens && ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
55
51
  display: "grid",
56
- gridTemplateColumns: "1.55fr 1fr 1fr",
52
+ gridTemplateColumns: "1fr auto",
57
53
  gap: theme.mixins.gaps.g12,
58
54
  fontSize: theme.typography.fontSize11,
59
55
  color: "text.white",
@@ -63,17 +59,12 @@ var TokensBoard = function () {
63
59
  fontSize: theme.typography.fontSize14,
64
60
  fontWeight: theme.typography.fontWeight600,
65
61
  color: theme.palette.text.accent2,
66
- }, children: "Futures" }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
62
+ }, children: "Token" }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
67
63
  textAlign: "left",
68
64
  fontSize: theme.typography.fontSize14,
69
65
  fontWeight: theme.typography.fontWeight600,
70
66
  color: theme.palette.text.accent2,
71
- }, children: "Nearest Price" }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
72
- textAlign: "right",
73
- fontSize: theme.typography.fontSize14,
74
- fontWeight: theme.typography.fontWeight600,
75
- color: theme.palette.text.accent2,
76
- }, children: "PnL" })] })), tokens === null || tokens === void 0 ? void 0 : tokens.map(function (item) {
67
+ }, children: "Balance" })] })), tokens === null || tokens === void 0 ? void 0 : tokens.map(function (item) {
77
68
  var stringifiedTokenData = JSON.stringify(__assign({}, item));
78
69
  return ((0, jsx_runtime_1.jsx)(TokenItem_1.default, { showSmallAssets: showSmallAssets, tokenData: stringifiedTokenData }, item.id));
79
70
  }), !tokens && (0, jsx_runtime_1.jsx)(WaitingData_1.default, { sx: { margin: "auto" } })] })] }));
@@ -1,3 +1,6 @@
1
1
  import { BoxProps } from "@mui/material";
2
- export declare const AssetView: (props: BoxProps) => import("react/jsx-runtime").JSX.Element;
2
+ import { TekWalletViewProps } from "../TekWalletView";
3
+ export interface AssetViewProps extends BoxProps, TekWalletViewProps {
4
+ }
5
+ export declare const AssetView: (props: AssetViewProps) => import("react/jsx-runtime").JSX.Element;
3
6
  export default AssetView;
@@ -78,15 +78,26 @@ var Menu_1 = __importDefault(require("./Menu"));
78
78
  var ActivitiesTypeSlice_1 = __importDefault(require("../../ui/ActivitiesTypeSlice"));
79
79
  var const_1 = require("../../../providers/ActivitiesProvider/const");
80
80
  var Icon_1 = __importDefault(require("../../ui/Icon"));
81
+ var ChangePasscodeView_1 = __importDefault(require("../ChangePasscodeView"));
82
+ var xhub_keyboard_1 = require("xhub-keyboard");
83
+ var useCustomRouter_1 = __importDefault(require("../../../hooks/useCustomRouter"));
84
+ var BasicAmountGroup_1 = __importDefault(require("../../ui/BasicAmountGroup"));
85
+ var AssetViewHeader_1 = __importDefault(require("../../ui/AssetViewHeader"));
81
86
  var AssetView = function (props) {
82
- var sx = props.sx, rest = __rest(props, ["sx"]);
83
- var isInitPasscode = (0, useWalletData_1.default)().isInitPasscode;
87
+ var sx = props.sx, viewOptions = props.options, rest = __rest(props, ["sx", "options"]);
88
+ var _a = (0, useWalletData_1.default)(), isInitPasscode = _a.isInitPasscode, masterWallet = _a.masterWallet;
84
89
  var theme = (0, ThemeProvider_1.useTheme)();
85
90
  var options = (0, TekWalletProvider_1.useWalletConfig)().options;
91
+ var _b = viewOptions || {}, hideActivitySectionInAssetView = _b.hideActivitySectionInAssetView, useBasicAmountGroupInAssetView = _b.useBasicAmountGroupInAssetView;
86
92
  var basePath = (0, react_1.useMemo)(function () {
87
93
  return (options === null || options === void 0 ? void 0 : options.basePath) || "";
88
94
  }, [options]);
89
- return ((0, jsx_runtime_1.jsxs)(ChildPageLayout_1.default, { children: [!isInitPasscode && ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.sessionDescription), children: "Please connect your wallet to get asset information" })), !!isInitPasscode && ((0, jsx_runtime_1.jsxs)(DefaultPageLayout_1.default, __assign({}, rest, { sx: __assign({ display: "flex", flexDirection: "column", gap: theme.mixins.gaps.g20 }, sx), children: [(0, jsx_runtime_1.jsx)(AmountGroupAndChart_1.default, {}), (0, jsx_runtime_1.jsx)(Menu_1.default, { items: [
95
+ var router = (0, useCustomRouter_1.default)();
96
+ var idPrefix = (0, xhub_keyboard_1.useUniqueId)();
97
+ var handleBackInitPasscodeView = function () {
98
+ router.back();
99
+ };
100
+ return ((0, jsx_runtime_1.jsxs)(ChildPageLayout_1.default, { header: !!isInitPasscode && (0, jsx_runtime_1.jsx)(AssetViewHeader_1.default, {}), children: [!isInitPasscode && !!masterWallet && ((0, jsx_runtime_1.jsx)(ChangePasscodeView_1.default, { isInitPasscode: true, onBack: handleBackInitPasscodeView, idPrefix: idPrefix })), !!isInitPasscode && ((0, jsx_runtime_1.jsxs)(DefaultPageLayout_1.default, __assign({}, rest, { sx: __assign({ display: "flex", flexDirection: "column", gap: theme.mixins.gaps.g16 }, sx), children: [useBasicAmountGroupInAssetView ? (0, jsx_runtime_1.jsx)(BasicAmountGroup_1.default, {}) : (0, jsx_runtime_1.jsx)(AmountGroupAndChart_1.default, {}), (0, jsx_runtime_1.jsx)(Menu_1.default, { items: [
90
101
  (0, jsx_runtime_1.jsx)(ReceiveFunction_1.default, { functionsList: Object.values(ReceiveFunction_1.ReceiveMethods), children: (0, jsx_runtime_1.jsx)(material_1.ListItem, { sx: {
91
102
  borderRight: "1px solid ".concat(theme.palette.border.accent3),
92
103
  placeContent: "center",
@@ -108,7 +119,7 @@ var AssetView = function (props) {
108
119
  placeContent: "center",
109
120
  columnSpan: 1,
110
121
  }, children: (0, jsx_runtime_1.jsx)(FunctionItem_1.default, { icon: "IC_SWAP_FC", label: "Swap", sx: { width: "100%" } }) }) }, "swap"),
111
- ] }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { gap: theme.mixins.gaps.g12 }), children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
122
+ ] }), !hideActivitySectionInAssetView && ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { gap: theme.mixins.gaps.g12 }), children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
112
123
  display: "flex",
113
124
  gap: theme.mixins.gaps.g20,
114
125
  }, children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.sessionTitle), children: "Activity" }), (0, jsx_runtime_1.jsxs)(material_1.Box, { component: link_1.default, href: "".concat(basePath, "/tek-wallet/activity"), sx: {
@@ -125,7 +136,7 @@ var AssetView = function (props) {
125
136
  paddingTop: 0,
126
137
  paddingLeft: 0,
127
138
  paddingRight: 0,
128
- } })] }), (0, jsx_runtime_1.jsx)(TokensBoard_1.default, {})] })))] }));
139
+ } })] })), (0, jsx_runtime_1.jsx)(TokensBoard_1.default, {})] })))] }));
129
140
  };
130
141
  exports.AssetView = AssetView;
131
142
  exports.default = exports.AssetView;
@@ -0,0 +1,8 @@
1
+ import { GeneralProps } from "../../../types/ui";
2
+ interface SettingViewProps extends GeneralProps {
3
+ onBack: () => void;
4
+ isInitPasscode?: boolean;
5
+ idPrefix?: string;
6
+ }
7
+ export declare const SettingView: (props: SettingViewProps) => import("react/jsx-runtime").JSX.Element;
8
+ export default SettingView;
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ "use client";
3
+ var __assign = (this && this.__assign) || function () {
4
+ __assign = Object.assign || function(t) {
5
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
6
+ s = arguments[i];
7
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
8
+ t[p] = s[p];
9
+ }
10
+ return t;
11
+ };
12
+ return __assign.apply(this, arguments);
13
+ };
14
+ var __importDefault = (this && this.__importDefault) || function (mod) {
15
+ return (mod && mod.__esModule) ? mod : { "default": mod };
16
+ };
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.SettingView = void 0;
19
+ var jsx_runtime_1 = require("react/jsx-runtime");
20
+ var DefaultPageLayout_1 = __importDefault(require("../../layouts/DefaultPageLayout"));
21
+ var PageHeader_1 = __importDefault(require("../../ui/PageHeader"));
22
+ var material_1 = require("@mui/material");
23
+ var ChildPageLayout_1 = __importDefault(require("../../layouts/ChildPageLayout"));
24
+ var ListItemCustom_1 = __importDefault(require("../../ui/ListItemCustom"));
25
+ var ChangePasscode_1 = __importDefault(require("../../ui/ChangePasscode"));
26
+ var Button_1 = __importDefault(require("../../ui/Button"));
27
+ var providers_1 = require("../../../providers");
28
+ var TekWalletProvider_1 = require("../../../providers/TekWalletProvider");
29
+ var SvgPath_1 = require("../../ui/SvgPath");
30
+ var SettingView = function (props) {
31
+ var _a = props;
32
+ var theme = (0, providers_1.useTheme)();
33
+ var onLogout = (0, TekWalletProvider_1.useWalletConfig)().onLogout;
34
+ return ((0, jsx_runtime_1.jsx)(ChildPageLayout_1.default, { header: (0, jsx_runtime_1.jsx)(PageHeader_1.default, { title: "Setting" }), children: (0, jsx_runtime_1.jsxs)(DefaultPageLayout_1.default, { sx: __assign(__assign({}, theme.mixins.column), { gap: theme.mixins.gaps.g16 }), children: [(0, jsx_runtime_1.jsx)(ChangePasscode_1.default, { children: (0, jsx_runtime_1.jsx)(ListItemCustom_1.default, { hideTag: true, title: "Change Passcode", description: "Change your passcode", icon: (0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { width: 32, height: 32 }, children: SvgPath_1.IC_CHANGE_PASSCODE }) }) }), (0, jsx_runtime_1.jsx)(Button_1.default, { variant: "contained", color: "error", sx: {
35
+ marginTop: "auto",
36
+ borderRadius: theme.mixins.customRadius.r12,
37
+ textTransform: "capitalize",
38
+ position: "relative",
39
+ px: theme.mixins.customPadding.p16,
40
+ py: theme.mixins.customPadding.p12,
41
+ fontWeight: theme.typography.fontWeight500,
42
+ fontSize: theme.typography.fontSize14,
43
+ lineHeight: theme.typography.leading100,
44
+ }, onClick: onLogout, children: "Logout" })] }) }));
45
+ };
46
+ exports.SettingView = SettingView;
47
+ exports.default = exports.SettingView;
@@ -1,3 +1,10 @@
1
1
  export interface TekWalletViewProps {
2
2
  }
3
- export declare function TekWalletView(): import("react/jsx-runtime").JSX.Element;
3
+ export interface TekWalletViewOptions {
4
+ hideActivitySectionInAssetView?: boolean;
5
+ useBasicAmountGroupInAssetView?: boolean;
6
+ }
7
+ export interface TekWalletViewProps {
8
+ options?: TekWalletViewOptions;
9
+ }
10
+ export declare function TekWalletView(props: TekWalletViewProps): import("react/jsx-runtime").JSX.Element;
@@ -6,11 +6,12 @@ var jsx_runtime_1 = require("react/jsx-runtime");
6
6
  var navigation_1 = require("next/navigation");
7
7
  var react_1 = require("react");
8
8
  var routes_1 = require("./routes");
9
- function TekWalletView() {
9
+ function TekWalletView(props) {
10
+ var options = props.options;
10
11
  var pathname = (0, navigation_1.useParams)().pathname;
11
12
  var pathnameArray = (0, react_1.useMemo)(function () { return (typeof pathname === "string" ? [pathname] : pathname); }, [pathname]);
12
13
  var pathnameFull = (0, react_1.useMemo)(function () { return pathnameArray === null || pathnameArray === void 0 ? void 0 : pathnameArray.join("/"); }, [pathnameArray]);
13
14
  console.warn("🚀 ~ TekWalletView ~ pathnameFull:", pathname, pathnameFull);
14
15
  var View = (0, react_1.useMemo)(function () { return (pathname === undefined ? (0, routes_1.getView)("/") : (0, routes_1.getView)("/".concat(pathnameFull))); }, [pathnameFull, pathname]);
15
- return (0, jsx_runtime_1.jsx)(View, {});
16
+ return (0, jsx_runtime_1.jsx)(View, { options: options });
16
17
  }
@@ -1,10 +1,10 @@
1
- import { ComponentType } from "react";
2
1
  export declare enum TekWalletViewRoutes {
3
2
  SEND_INTERNAL = "/send/internal",
4
3
  SEND_EXTERNAL = "/send/external",
5
4
  SWAP = "/swap",
6
5
  ASSET = "/",
7
6
  NOT_FOUND = "/not-found",
8
- ACTIVITY = "/activity"
7
+ ACTIVITY = "/activity",
8
+ SETTING = "/setting"
9
9
  }
10
- export declare const getView: (path: string) => ComponentType;
10
+ export declare const getView: (path: string) => any;
@@ -1,43 +1,16 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
36
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
37
4
  };
38
5
  Object.defineProperty(exports, "__esModule", { value: true });
39
6
  exports.getView = exports.TekWalletViewRoutes = void 0;
40
- var dynamic_1 = __importDefault(require("next/dynamic"));
7
+ var ActivityView_1 = __importDefault(require("../ActivityView"));
8
+ var AssetView_1 = __importDefault(require("../AssetView"));
9
+ var NotFoundView_1 = __importDefault(require("../NotFoundView"));
10
+ var SendExternalView_1 = __importDefault(require("../SendExternalView"));
11
+ var SendInternalView_1 = require("../SendInternalView");
12
+ var SettingView_1 = require("../SettingView");
13
+ var SwapView_1 = require("../SwapView");
41
14
  var TekWalletViewRoutes;
42
15
  (function (TekWalletViewRoutes) {
43
16
  TekWalletViewRoutes["SEND_INTERNAL"] = "/send/internal";
@@ -46,35 +19,27 @@ var TekWalletViewRoutes;
46
19
  TekWalletViewRoutes["ASSET"] = "/";
47
20
  TekWalletViewRoutes["NOT_FOUND"] = "/not-found";
48
21
  TekWalletViewRoutes["ACTIVITY"] = "/activity";
22
+ TekWalletViewRoutes["SETTING"] = "/setting";
49
23
  })(TekWalletViewRoutes || (exports.TekWalletViewRoutes = TekWalletViewRoutes = {}));
50
24
  var getView = function (path) {
51
25
  if (path.startsWith(TekWalletViewRoutes.SEND_INTERNAL)) {
52
- return (0, dynamic_1.default)(function () { return Promise.resolve().then(function () { return __importStar(require("../SendInternalView")); }); }, {
53
- ssr: false,
54
- });
26
+ return SendInternalView_1.SendInternalView;
55
27
  }
56
28
  if (path.startsWith(TekWalletViewRoutes.SEND_EXTERNAL)) {
57
- return (0, dynamic_1.default)(function () { return Promise.resolve().then(function () { return __importStar(require("../SendExternalView")); }); }, {
58
- ssr: false,
59
- });
29
+ return SendExternalView_1.default;
60
30
  }
61
31
  if (path.startsWith(TekWalletViewRoutes.SWAP)) {
62
- return (0, dynamic_1.default)(function () { return Promise.resolve().then(function () { return __importStar(require("../SwapView")); }); }, {
63
- ssr: false,
64
- });
32
+ return SwapView_1.SwapView;
65
33
  }
66
34
  if (path === TekWalletViewRoutes.ASSET) {
67
- return (0, dynamic_1.default)(function () { return Promise.resolve().then(function () { return __importStar(require("../AssetView")); }); }, {
68
- ssr: false,
69
- });
35
+ return AssetView_1.default;
70
36
  }
71
37
  if (path.startsWith(TekWalletViewRoutes.ACTIVITY)) {
72
- return (0, dynamic_1.default)(function () { return Promise.resolve().then(function () { return __importStar(require("../ActivityView")); }); }, {
73
- ssr: false,
74
- });
38
+ return ActivityView_1.default;
39
+ }
40
+ if (path.startsWith(TekWalletViewRoutes.SETTING)) {
41
+ return SettingView_1.SettingView;
75
42
  }
76
- return (0, dynamic_1.default)(function () { return Promise.resolve().then(function () { return __importStar(require("../NotFoundView")); }); }, {
77
- ssr: false,
78
- });
43
+ return NotFoundView_1.default;
79
44
  };
80
45
  exports.getView = getView;
@@ -9,12 +9,14 @@ export interface TekWalletProviderProps {
9
9
  isSSO?: boolean;
10
10
  accessToken?: string;
11
11
  options?: Options;
12
+ onLogout?: () => void;
12
13
  }
13
14
  export interface TekWalletContextType {
14
15
  isSSO: boolean | undefined;
15
16
  options?: Options;
17
+ onLogout?: () => void;
16
18
  }
17
19
  export declare const TekWalletContext: import("react").Context<TekWalletContextType>;
18
- export declare function TekWalletProvider({ children, isSSO, accessToken, options, }: TekWalletProviderProps): import("react/jsx-runtime").JSX.Element;
20
+ export declare function TekWalletProvider({ children, isSSO, accessToken, options, onLogout, }: TekWalletProviderProps): import("react/jsx-runtime").JSX.Element;
19
21
  export default TekWalletProvider;
20
22
  export declare const useWalletConfig: () => TekWalletContextType;
@@ -24,13 +24,13 @@ var initialTekWalletContext = {
24
24
  };
25
25
  exports.TekWalletContext = (0, react_1.createContext)(initialTekWalletContext);
26
26
  function TekWalletProvider(_a) {
27
- var children = _a.children, isSSO = _a.isSSO, accessToken = _a.accessToken, options = _a.options;
27
+ var children = _a.children, isSSO = _a.isSSO, accessToken = _a.accessToken, options = _a.options, onLogout = _a.onLogout;
28
28
  var WalletProvider = isSSO ? WalletDataProviderNoImport_1.default : WalletDataProvider_1.default;
29
29
  var _b = (0, react_1.useState)("1"), resetTrigger = _b[0], setResetTrigger = _b[1];
30
30
  var onDisconnect = function () {
31
31
  setResetTrigger(function (prev) { return prev + "1"; });
32
32
  };
33
- return ((0, jsx_runtime_1.jsx)(exports.TekWalletContext.Provider, { value: { isSSO: isSSO, options: options }, children: (0, jsx_runtime_1.jsx)(WalletProvider, { accessToken: accessToken !== null && accessToken !== void 0 ? accessToken : "", onDisconnect: onDisconnect, children: (0, jsx_runtime_1.jsx)(ThemeProvider_1.CustomThemeProvider, { children: (0, jsx_runtime_1.jsx)(RealtimeProvider_1.default, { options: options, children: (0, jsx_runtime_1.jsx)(ActivitiesProvider_1.default, { children: (0, jsx_runtime_1.jsx)(ReceiveProvider_1.default, { children: (0, jsx_runtime_1.jsx)(LockTokenProvider_1.default, { children: (0, jsx_runtime_1.jsx)(WithdrawProvider_1.default, { children: (0, jsx_runtime_1.jsx)(SwapProvider_1.default, { children: (0, jsx_runtime_1.jsx)(EventHandlerProvider_1.default, { options: options, children: children }) }) }) }) }) }) }) }) }, resetTrigger) }));
33
+ return ((0, jsx_runtime_1.jsx)(exports.TekWalletContext.Provider, { value: { isSSO: isSSO, options: options, onLogout: onLogout }, children: (0, jsx_runtime_1.jsx)(WalletProvider, { accessToken: accessToken !== null && accessToken !== void 0 ? accessToken : "", onDisconnect: onDisconnect, children: (0, jsx_runtime_1.jsx)(ThemeProvider_1.CustomThemeProvider, { children: (0, jsx_runtime_1.jsx)(RealtimeProvider_1.default, { options: options, children: (0, jsx_runtime_1.jsx)(ActivitiesProvider_1.default, { children: (0, jsx_runtime_1.jsx)(ReceiveProvider_1.default, { children: (0, jsx_runtime_1.jsx)(LockTokenProvider_1.default, { children: (0, jsx_runtime_1.jsx)(WithdrawProvider_1.default, { children: (0, jsx_runtime_1.jsx)(SwapProvider_1.default, { children: (0, jsx_runtime_1.jsx)(EventHandlerProvider_1.default, { options: options, children: children }) }) }) }) }) }) }) }) }, resetTrigger) }));
34
34
  }
35
35
  exports.default = TekWalletProvider;
36
36
  var useWalletConfig = function () {
@@ -8,9 +8,9 @@ function compactWalletAddress(walletAddress, isLinkAff) {
8
8
  if ((walletAddress === null || walletAddress === void 0 ? void 0 : walletAddress.length) <= 8) {
9
9
  return walletAddress;
10
10
  }
11
- return ((walletAddress === null || walletAddress === void 0 ? void 0 : walletAddress.slice(0, !isLinkAff ? 3 : 15)) +
11
+ return ((walletAddress === null || walletAddress === void 0 ? void 0 : walletAddress.slice(0, !isLinkAff ? 4 : 15)) +
12
12
  "..." +
13
- (walletAddress === null || walletAddress === void 0 ? void 0 : walletAddress.slice(!isLinkAff ? -3 : -10)));
13
+ (walletAddress === null || walletAddress === void 0 ? void 0 : walletAddress.slice(!isLinkAff ? -4 : -10)));
14
14
  }
15
15
  catch (err) {
16
16
  console.error("🚀 ~ compactWalletAddress ~ err:", err);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tek-wallet",
3
- "version": "0.0.759",
3
+ "version": "0.0.760",
4
4
  "description": "A custom React provider with TypeScript support",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",