tek-wallet 0.0.752 → 0.0.753
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/TekWallet/components/index.d.ts +7 -0
- package/dist/components/TekWallet/components/index.js +7 -0
- package/dist/components/TekWallet/components/layouts/ChildPageLayout/index.js +14 -3
- package/dist/components/TekWallet/components/ui/BackHeader/index.js +5 -1
- package/dist/components/TekWallet/components/ui/BottomActionLayout/index.d.ts +3 -3
- package/dist/components/TekWallet/components/ui/BottomActionLayout/index.js +24 -6
- package/dist/components/TekWallet/components/ui/Button/index.js +2 -2
- package/dist/components/TekWallet/components/ui/ConfirmByPasscode/index.js +2 -6
- package/dist/components/TekWallet/components/ui/ConfirmSendExternal/index.d.ts +6 -2
- package/dist/components/TekWallet/components/ui/ConfirmSendExternal/index.js +92 -12
- package/dist/components/TekWallet/components/ui/ConfirmSendInternal/index.d.ts +4 -2
- package/dist/components/TekWallet/components/ui/ConfirmSendInternal/index.js +12 -4
- package/dist/components/TekWallet/components/ui/ConfirmSwapToken/Result.d.ts +8 -0
- package/dist/components/TekWallet/components/ui/ConfirmSwapToken/Result.js +112 -0
- package/dist/components/TekWallet/components/ui/ConfirmSwapToken/index.d.ts +18 -0
- package/dist/components/TekWallet/components/ui/ConfirmSwapToken/index.js +169 -0
- package/dist/components/TekWallet/components/ui/CopyableText/index.js +1 -1
- package/dist/components/TekWallet/components/ui/DetailSwap/index.js +1 -1
- package/dist/components/TekWallet/components/ui/Fees/index.d.ts +1 -1
- package/dist/components/TekWallet/components/ui/Fees/index.js +51 -41
- package/dist/components/TekWallet/components/ui/FeesAutoDebounce/index.d.ts +10 -0
- package/dist/components/TekWallet/components/ui/FeesAutoDebounce/index.js +223 -0
- package/dist/components/TekWallet/components/ui/FiatDeposit/components/shareAction.js +2 -2
- package/dist/components/TekWallet/components/ui/FiatDeposit/components/shareImage.js +13 -13
- package/dist/components/TekWallet/components/ui/FiatDeposit/index.js +6 -4
- package/dist/components/TekWallet/components/ui/Formatter/index.d.ts +1 -0
- package/dist/components/TekWallet/components/ui/Formatter/index.js +4 -2
- package/dist/components/TekWallet/components/ui/FunctionItem/index.js +5 -4
- package/dist/components/TekWallet/components/ui/Icon/index.d.ts +4 -2
- package/dist/components/TekWallet/components/ui/Icon/index.js +44 -3
- package/dist/components/TekWallet/components/ui/Input/index.js +3 -3
- package/dist/components/TekWallet/components/ui/ListItemCustom/index.d.ts +2 -1
- package/dist/components/TekWallet/components/ui/ListItemCustom/index.js +3 -3
- package/dist/components/TekWallet/components/ui/QRCode/index.js +1 -1
- package/dist/components/TekWallet/components/ui/SendExternalToken/index.js +1 -1
- package/dist/components/TekWallet/components/ui/SendExternalTokenWithdrawn/index.d.ts +2 -5
- package/dist/components/TekWallet/components/ui/SvgPath/index.d.ts +12 -0
- package/dist/components/TekWallet/components/ui/SvgPath/index.js +27 -15
- package/dist/components/TekWallet/components/ui/SwapFunction/index.js +4 -4
- package/dist/components/TekWallet/components/ui/SwapToken/index.d.ts +2 -3
- package/dist/components/TekWallet/components/ui/TokensBoard/index.js +1 -3
- package/dist/components/TekWallet/components/ui/ValidateWalletAddress/index.d.ts +5 -0
- package/dist/components/TekWallet/components/ui/ValidateWalletAddress/index.js +67 -0
- package/dist/components/TekWallet/components/ui/WaitingData/index.d.ts +1 -0
- package/dist/components/TekWallet/components/ui/WaitingData/index.js +10 -6
- package/dist/components/TekWallet/components/ui/WithdrawFunction/index.d.ts +1 -1
- package/dist/components/TekWallet/components/ui/WithdrawFunction/index.js +70 -32
- package/dist/components/TekWallet/components/views/AssetView/Menu.d.ts +7 -0
- package/dist/components/TekWallet/components/views/AssetView/Menu.js +25 -0
- package/dist/components/TekWallet/components/views/AssetView/index.js +25 -26
- package/dist/components/TekWallet/components/views/NotFoundView/index.d.ts +2 -0
- package/dist/components/TekWallet/components/views/NotFoundView/index.js +7 -0
- package/dist/components/TekWallet/components/views/SendExternalView/components/Form.d.ts +11 -0
- package/dist/components/TekWallet/components/views/SendExternalView/components/Form.js +450 -0
- package/dist/components/TekWallet/components/views/SendExternalView/components/Result.d.ts +14 -0
- package/dist/components/TekWallet/components/views/SendExternalView/components/Result.js +140 -0
- package/dist/components/TekWallet/components/views/SendExternalView/components/SelectNetwork.d.ts +10 -0
- package/dist/components/TekWallet/components/views/SendExternalView/components/SelectNetwork.js +34 -0
- package/dist/components/TekWallet/components/views/SendExternalView/components/SelectToken.d.ts +8 -0
- package/dist/components/TekWallet/components/views/SendExternalView/components/SelectToken.js +173 -0
- package/dist/components/TekWallet/components/views/SendExternalView/components/Summary.d.ts +12 -0
- package/dist/components/TekWallet/components/views/SendExternalView/components/Summary.js +131 -0
- package/dist/components/TekWallet/components/views/SendExternalView/index.d.ts +23 -0
- package/dist/components/TekWallet/components/views/SendExternalView/index.js +143 -0
- package/dist/components/TekWallet/components/views/SendInternalView/components/AmountForm.d.ts +11 -0
- package/dist/components/TekWallet/components/views/SendInternalView/components/AmountForm.js +380 -0
- package/dist/components/TekWallet/components/views/SendInternalView/components/Form.d.ts +11 -0
- package/dist/components/TekWallet/components/views/SendInternalView/components/Form.js +381 -0
- package/dist/components/TekWallet/components/views/SendInternalView/components/Result.d.ts +13 -0
- package/dist/components/TekWallet/components/views/SendInternalView/components/Result.js +128 -0
- package/dist/components/TekWallet/components/views/SendInternalView/components/SelectToken.d.ts +8 -0
- package/dist/components/TekWallet/components/views/SendInternalView/components/SelectToken.js +173 -0
- package/dist/components/TekWallet/components/views/SendInternalView/components/Summary.d.ts +11 -0
- package/dist/components/TekWallet/components/views/SendInternalView/components/Summary.js +126 -0
- package/dist/components/TekWallet/components/views/SendInternalView/index.d.ts +24 -0
- package/dist/components/TekWallet/components/views/SendInternalView/index.js +155 -0
- package/dist/components/TekWallet/components/views/SwapView/components/CardTo/index.d.ts +11 -0
- package/dist/components/TekWallet/components/views/SwapView/components/CardTo/index.js +111 -0
- package/dist/components/TekWallet/components/views/SwapView/components/FromCard/index.d.ts +14 -0
- package/dist/components/TekWallet/components/views/SwapView/components/FromCard/index.js +180 -0
- package/dist/components/TekWallet/components/views/SwapView/components/SelectToken.d.ts +9 -0
- package/dist/components/TekWallet/components/views/SwapView/components/SelectToken.js +173 -0
- package/dist/components/TekWallet/components/views/SwapView/components/Summary.d.ts +14 -0
- package/dist/components/TekWallet/components/views/SwapView/components/Summary.js +239 -0
- package/dist/components/TekWallet/components/views/SwapView/functions/convertTokensRate.d.ts +3 -0
- package/dist/components/TekWallet/components/views/SwapView/functions/convertTokensRate.js +14 -0
- package/dist/components/TekWallet/components/views/SwapView/index.d.ts +11 -0
- package/dist/components/TekWallet/components/views/SwapView/index.js +218 -0
- package/dist/components/TekWallet/components/views/TekWalletView/expose.d.ts +2 -0
- package/dist/components/TekWallet/components/views/TekWalletView/expose.js +18 -0
- package/dist/components/TekWallet/components/views/TekWalletView/index.d.ts +3 -0
- package/dist/components/TekWallet/components/views/TekWalletView/index.js +16 -0
- package/dist/components/TekWallet/components/views/TekWalletView/routes.d.ts +9 -0
- package/dist/components/TekWallet/components/views/TekWalletView/routes.js +74 -0
- package/dist/components/TekWallet/hooks/useValidateAmount.d.ts +26 -0
- package/dist/components/TekWallet/hooks/useValidateAmount.js +103 -0
- package/dist/components/TekWallet/providers/EventHandlerProvider/index.js +5 -0
- package/dist/components/TekWallet/providers/RealtimeProvider/index.js +2 -2
- package/dist/components/TekWallet/providers/TekWalletProvider/index.d.ts +3 -0
- package/dist/components/TekWallet/providers/TekWalletProvider/index.js +8 -2
- package/dist/components/TekWallet/providers/WithdrawProvider/index.js +36 -0
- package/dist/components/TekWallet/services/axios/get-est-fee-service/type.d.ts +5 -4
- package/dist/components/TekWallet/services/axios/send-external-service/type.d.ts +5 -30
- package/dist/components/TekWallet/services/axios/swap-service/type.d.ts +4 -0
- package/dist/components/TekWallet/services/axios/transfer-internal-service/type.d.ts +4 -32
- package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/components.js +3 -3
- package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/palette.js +3 -3
- package/dist/components/TekWallet/theme/mui/theme.js +9 -9
- package/dist/components/TekWallet/utils/stop.d.ts +3 -0
- package/dist/components/TekWallet/utils/stop.js +6 -0
- package/package.json +2 -2
- package/dist/components/TekWallet/components/ui/CardFrom/index.d.ts +0 -10
- package/dist/components/TekWallet/components/ui/CardFrom/index.js +0 -91
- package/dist/components/TekWallet/components/ui/CardTo/index.d.ts +0 -10
- package/dist/components/TekWallet/components/ui/CardTo/index.js +0 -39
- package/dist/components/TekWallet/components/ui/ConfirmLayout copy/index.d.ts +0 -7
- package/dist/components/TekWallet/components/ui/ConfirmLayout copy/index.js +0 -67
- package/dist/components/TekWallet/components/views/HelpView/index.d.ts +0 -2
- package/dist/components/TekWallet/components/views/HelpView/index.js +0 -7
|
@@ -46,7 +46,7 @@ function ShareImage(_a) {
|
|
|
46
46
|
backgroundColor: "transparent",
|
|
47
47
|
alignItems: "center",
|
|
48
48
|
justifyContent: "center",
|
|
49
|
-
}, children: (0, jsx_runtime_1.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: (0, jsx_runtime_1.jsx)("path", { d: "M16.0234 9.34794H21.0154L17.8344 6.16494C16.8103 5.14081 15.5346 4.40433 14.1356 4.02955C12.7366 3.65476 11.2636 3.65487 9.86464 4.02986C8.4657 4.40486 7.19014 5.14153 6.16617 6.16581C5.14221 7.19009 4.40594 8.46588 4.03138 9.86494M2.98537 19.6439V14.6519M2.98537 14.6519H7.97738M2.98537 14.6519L6.16537 17.8349C7.18949 18.8591 8.46517 19.5955 9.86416 19.9703C11.2632 20.3451 12.7362 20.345 14.1351 19.97C15.534 19.595 16.8096 18.8584 17.8336 17.8341C18.8575 16.8098 19.5938 15.534 19.9684 14.1349M21.0154 4.35594V9.34594", stroke: "#
|
|
49
|
+
}, children: (0, jsx_runtime_1.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: (0, jsx_runtime_1.jsx)("path", { d: "M16.0234 9.34794H21.0154L17.8344 6.16494C16.8103 5.14081 15.5346 4.40433 14.1356 4.02955C12.7366 3.65476 11.2636 3.65487 9.86464 4.02986C8.4657 4.40486 7.19014 5.14153 6.16617 6.16581C5.14221 7.19009 4.40594 8.46588 4.03138 9.86494M2.98537 19.6439V14.6519M2.98537 14.6519H7.97738M2.98537 14.6519L6.16537 17.8349C7.18949 18.8591 8.46517 19.5955 9.86416 19.9703C11.2632 20.3451 12.7362 20.345 14.1351 19.97C15.534 19.595 16.8096 18.8584 17.8336 17.8341C18.8575 16.8098 19.5938 15.534 19.9684 14.1349M21.0154 4.35594V9.34594", stroke: "#1C461D", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) }) }))] }), (0, jsx_runtime_1.jsxs)(Text_1.default, { component: "span", sx: {
|
|
50
50
|
display: "flex",
|
|
51
51
|
flexDirection: "column",
|
|
52
52
|
fontSize: "0.813rem",
|
|
@@ -70,8 +70,8 @@ function ShareImage(_a) {
|
|
|
70
70
|
left: "-1px",
|
|
71
71
|
width: "16px",
|
|
72
72
|
height: "16px",
|
|
73
|
-
borderTop: "1px solid #
|
|
74
|
-
borderLeft: "1px solid #
|
|
73
|
+
borderTop: "1px solid #1C461D",
|
|
74
|
+
borderLeft: "1px solid #1C461D",
|
|
75
75
|
borderTopLeftRadius: "9px",
|
|
76
76
|
} }), (0, jsx_runtime_1.jsx)("div", { style: {
|
|
77
77
|
position: "absolute",
|
|
@@ -79,8 +79,8 @@ function ShareImage(_a) {
|
|
|
79
79
|
right: "-1px",
|
|
80
80
|
width: "16px",
|
|
81
81
|
height: "16px",
|
|
82
|
-
borderTop: "1px solid #
|
|
83
|
-
borderRight: "1px solid #
|
|
82
|
+
borderTop: "1px solid #1C461D",
|
|
83
|
+
borderRight: "1px solid #1C461D",
|
|
84
84
|
borderTopRightRadius: "9px",
|
|
85
85
|
} }), (0, jsx_runtime_1.jsx)("div", { style: {
|
|
86
86
|
position: "absolute",
|
|
@@ -88,8 +88,8 @@ function ShareImage(_a) {
|
|
|
88
88
|
left: "-1px",
|
|
89
89
|
width: "16px",
|
|
90
90
|
height: "16px",
|
|
91
|
-
borderBottom: "1px solid #
|
|
92
|
-
borderLeft: "1px solid #
|
|
91
|
+
borderBottom: "1px solid #1C461D",
|
|
92
|
+
borderLeft: "1px solid #1C461D",
|
|
93
93
|
borderBottomLeftRadius: "9px",
|
|
94
94
|
} }), (0, jsx_runtime_1.jsx)("div", { style: {
|
|
95
95
|
position: "absolute",
|
|
@@ -97,27 +97,27 @@ function ShareImage(_a) {
|
|
|
97
97
|
right: "-1px",
|
|
98
98
|
width: "16px",
|
|
99
99
|
height: "16px",
|
|
100
|
-
borderBottom: "1px solid #
|
|
101
|
-
borderRight: "1px solid #
|
|
100
|
+
borderBottom: "1px solid #1C461D",
|
|
101
|
+
borderRight: "1px solid #1C461D",
|
|
102
102
|
borderBottomRightRadius: "9px",
|
|
103
103
|
} }), (0, jsx_runtime_1.jsx)("div", { style: {
|
|
104
104
|
position: "absolute",
|
|
105
105
|
top: "-1px",
|
|
106
106
|
width: "16px",
|
|
107
107
|
height: "16px",
|
|
108
|
-
borderTop: "1px solid #
|
|
108
|
+
borderTop: "1px solid #1C461D",
|
|
109
109
|
} }), (0, jsx_runtime_1.jsx)("div", { style: {
|
|
110
110
|
position: "absolute",
|
|
111
111
|
bottom: "-1px",
|
|
112
112
|
width: "16px",
|
|
113
113
|
height: "16px",
|
|
114
|
-
borderBottom: "1px solid #
|
|
114
|
+
borderBottom: "1px solid #1C461D",
|
|
115
115
|
} }), (0, jsx_runtime_1.jsx)("div", { style: {
|
|
116
116
|
position: "absolute",
|
|
117
117
|
left: "-1px",
|
|
118
118
|
width: "16px",
|
|
119
119
|
height: "16px",
|
|
120
|
-
borderLeft: "1px solid #
|
|
120
|
+
borderLeft: "1px solid #1C461D",
|
|
121
121
|
top: "50%",
|
|
122
122
|
transform: "translateY(-50%)",
|
|
123
123
|
} }), (0, jsx_runtime_1.jsx)("div", { style: {
|
|
@@ -125,7 +125,7 @@ function ShareImage(_a) {
|
|
|
125
125
|
right: "-1px",
|
|
126
126
|
width: "16px",
|
|
127
127
|
height: "16px",
|
|
128
|
-
borderRight: "1px solid #
|
|
128
|
+
borderRight: "1px solid #1C461D",
|
|
129
129
|
top: "50%",
|
|
130
130
|
transform: "translateY(-50%)",
|
|
131
131
|
} })] })] }) }));
|
|
@@ -70,6 +70,7 @@ var Button_1 = __importDefault(require("../Button"));
|
|
|
70
70
|
var Text_1 = __importDefault(require("../Text"));
|
|
71
71
|
var style_1 = require("./style");
|
|
72
72
|
var palette_1 = require("../../../theme/mui/deposit-fiat-theme/palette");
|
|
73
|
+
var type_1 = require("../../../services/axios/get-activities-service/type");
|
|
73
74
|
// Because PageHeader component don't work
|
|
74
75
|
var BackArrow = function (props) {
|
|
75
76
|
return ((0, jsx_runtime_1.jsxs)("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none" }, props, { children: [(0, jsx_runtime_1.jsx)("mask", { id: "mask0_6061_2295", style: { maskType: "alpha" }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "24", height: "24", children: (0, jsx_runtime_1.jsx)("rect", { width: "24", height: "24", fill: "#D9D9D9" }) }), (0, jsx_runtime_1.jsx)("g", { mask: "url(#mask0_6061_2295)", children: (0, jsx_runtime_1.jsx)("path", { d: "M14 17.6538L8.34619 12L14 6.34619L15.0538 7.40002L10.4538 12L15.0538 16.6L14 17.6538Z", fill: "#121212" }) })] })));
|
|
@@ -84,7 +85,7 @@ var Header = function (_a) {
|
|
|
84
85
|
}, children: [(0, jsx_runtime_1.jsx)(material_1.Grid2, { children: (0, jsx_runtime_1.jsx)(BackArrow, { onClick: handleBack }) }), (0, jsx_runtime_1.jsx)(material_1.Grid2, { display: "flex", children: (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign({}, style_1.title01), { width: "100%", textAlign: "center" }), children: "Top up" }) }), (0, jsx_runtime_1.jsx)(material_1.Grid2, { children: (0, jsx_runtime_1.jsxs)(material_1.Box, { display: "flex", alignItems: "center", justifyContent: "end", gap: ".5rem", children: [(0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { width: 20, height: 20 }, children: SvgPath_1.IC_HELP }), (0, jsx_runtime_1.jsx)(material_1.Divider, { flexItem: true, sx: { width: "1px" } }), (0, jsx_runtime_1.jsx)(DrawerComponent_1.default, { ref: historyRef, trigger: (0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { width: 20, height: 20, display: "block" }, children: SvgPath_1.IC_HISTORY }), direction: DrawerComponent_1.DRAWER_DIRECTION.RIGHT, children: (0, jsx_runtime_1.jsx)(ReceiveHistory_1.default, { onClose: function () { var _a; return (_a = historyRef.current) === null || _a === void 0 ? void 0 : _a.close(); } }) })] }) })] }));
|
|
85
86
|
};
|
|
86
87
|
var CopyIcon = function () {
|
|
87
|
-
return ((0, jsx_runtime_1.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "17", height: "16", viewBox: "0 0 17 16", fill: "none", children: (0, jsx_runtime_1.jsx)("path", { d: "M11 11.5V13.75C11 14.164 10.664 14.5 10.25 14.5H3.75C3.55109 14.5 3.36032 14.421 3.21967 14.2803C3.07902 14.1397 3 13.9489 3 13.75V5.25C3 4.836 3.336 4.5 3.75 4.5H5C5.33505 4.49977 5.66954 4.52742 6 4.58267M11 11.5H13.25C13.664 11.5 14 11.164 14 10.75V7.5C14 4.52667 11.838 2.05933 9 1.58267C8.66954 1.52742 8.33505 1.49977 8 1.5H6.75C6.336 1.5 6 1.836 6 2.25V4.58267M11 11.5H6.75C6.55109 11.5 6.36032 11.421 6.21967 11.2803C6.07902 11.1397 6 10.9489 6 10.75V4.58267M14 9V7.75C14 7.15326 13.7629 6.58097 13.341 6.15901C12.919 5.73705 12.3467 5.5 11.75 5.5H10.75C10.5511 5.5 10.3603 5.42098 10.2197 5.28033C10.079 5.13968 10 4.94891 10 4.75V3.75C10 3.45453 9.9418 3.16195 9.82873 2.88896C9.71566 2.61598 9.54992 2.36794 9.34099 2.15901C9.13206 1.95008 8.88402 1.78435 8.61104 1.67127C8.33806 1.5582 8.04547 1.5 7.75 1.5H7", stroke: "#
|
|
88
|
+
return ((0, jsx_runtime_1.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "17", height: "16", viewBox: "0 0 17 16", fill: "none", children: (0, jsx_runtime_1.jsx)("path", { d: "M11 11.5V13.75C11 14.164 10.664 14.5 10.25 14.5H3.75C3.55109 14.5 3.36032 14.421 3.21967 14.2803C3.07902 14.1397 3 13.9489 3 13.75V5.25C3 4.836 3.336 4.5 3.75 4.5H5C5.33505 4.49977 5.66954 4.52742 6 4.58267M11 11.5H13.25C13.664 11.5 14 11.164 14 10.75V7.5C14 4.52667 11.838 2.05933 9 1.58267C8.66954 1.52742 8.33505 1.49977 8 1.5H6.75C6.336 1.5 6 1.836 6 2.25V4.58267M11 11.5H6.75C6.55109 11.5 6.36032 11.421 6.21967 11.2803C6.07902 11.1397 6 10.9489 6 10.75V4.58267M14 9V7.75C14 7.15326 13.7629 6.58097 13.341 6.15901C12.919 5.73705 12.3467 5.5 11.75 5.5H10.75C10.5511 5.5 10.3603 5.42098 10.2197 5.28033C10.079 5.13968 10 4.94891 10 4.75V3.75C10 3.45453 9.9418 3.16195 9.82873 2.88896C9.71566 2.61598 9.54992 2.36794 9.34099 2.15901C9.13206 1.95008 8.88402 1.78435 8.61104 1.67127C8.33806 1.5582 8.04547 1.5 7.75 1.5H7", stroke: "#1C461D", strokeWidth: "1.25", strokeLinecap: "round", strokeLinejoin: "round" }) }));
|
|
88
89
|
};
|
|
89
90
|
exports.CopyIcon = CopyIcon;
|
|
90
91
|
function FiatDeposit(_a) {
|
|
@@ -174,7 +175,8 @@ function FiatDeposit(_a) {
|
|
|
174
175
|
});
|
|
175
176
|
};
|
|
176
177
|
(0, react_1.useEffect)(function () {
|
|
177
|
-
if ((transaction === null || transaction === void 0 ? void 0 : transaction.transaction_status) === "success"
|
|
178
|
+
if ((transaction === null || transaction === void 0 ? void 0 : transaction.transaction_status) === "success" &&
|
|
179
|
+
(transaction === null || transaction === void 0 ? void 0 : transaction.transaction_type) === type_1.TransactionSlug.DEPOSIT) {
|
|
178
180
|
updateActivities();
|
|
179
181
|
setOpen(false);
|
|
180
182
|
setOpenQR(false);
|
|
@@ -235,7 +237,7 @@ function FiatDeposit(_a) {
|
|
|
235
237
|
}, style: { filter: count === 0 ? "blur(6px)" : "none" } }), count === 0 && ((0, jsx_runtime_1.jsx)(material_1.Stack, { direction: "row", position: "absolute", alignItems: "center", justifyContent: "center", sx: {
|
|
236
238
|
background: "transparent",
|
|
237
239
|
inset: 0,
|
|
238
|
-
}, onClick: handleClick, children: (0, jsx_runtime_1.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: (0, jsx_runtime_1.jsx)("path", { d: "M16.0234 9.34794H21.0154L17.8344 6.16494C16.8103 5.14081 15.5346 4.40433 14.1356 4.02955C12.7366 3.65476 11.2636 3.65487 9.86464 4.02986C8.4657 4.40486 7.19014 5.14153 6.16617 6.16581C5.14221 7.19009 4.40594 8.46588 4.03138 9.86494M2.98537 19.6439V14.6519M2.98537 14.6519H7.97738M2.98537 14.6519L6.16537 17.8349C7.18949 18.8591 8.46517 19.5955 9.86416 19.9703C11.2632 20.3451 12.7362 20.345 14.1351 19.97C15.534 19.595 16.8096 18.8584 17.8336 17.8341C18.8575 16.8098 19.5938 15.534 19.9684 14.1349M21.0154 4.35594V9.34594", stroke: "#
|
|
240
|
+
}, onClick: handleClick, children: (0, jsx_runtime_1.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: (0, jsx_runtime_1.jsx)("path", { d: "M16.0234 9.34794H21.0154L17.8344 6.16494C16.8103 5.14081 15.5346 4.40433 14.1356 4.02955C12.7366 3.65476 11.2636 3.65487 9.86464 4.02986C8.4657 4.40486 7.19014 5.14153 6.16617 6.16581C5.14221 7.19009 4.40594 8.46588 4.03138 9.86494M2.98537 19.6439V14.6519M2.98537 14.6519H7.97738M2.98537 14.6519L6.16537 17.8349C7.18949 18.8591 8.46517 19.5955 9.86416 19.9703C11.2632 20.3451 12.7362 20.345 14.1351 19.97C15.534 19.595 16.8096 18.8584 17.8336 17.8341C18.8575 16.8098 19.5938 15.534 19.9684 14.1349M21.0154 4.35594V9.34594", stroke: "#1C461D", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) }) }))] }), (0, jsx_runtime_1.jsxs)(Text_1.default, { sx: {
|
|
239
241
|
fontSize: "1.5rem",
|
|
240
242
|
fontWeight: 600,
|
|
241
243
|
lineHeight: "140%",
|
|
@@ -246,7 +248,7 @@ function FiatDeposit(_a) {
|
|
|
246
248
|
fontSize: "0.938rem",
|
|
247
249
|
fontWeight: 500,
|
|
248
250
|
lineHeight: "140%",
|
|
249
|
-
}, color: (_h = palette_1.palette.accent2) === null || _h === void 0 ? void 0 : _h.main, children: "VND" })] }), (0, jsx_runtime_1.jsxs)(Text_1.default, { display: "flex", alignItems: "center", gap: "0.375rem", sx: __assign({}, style_1.title03), color: (_j = palette_1.palette.accent2) === null || _j === void 0 ? void 0 : _j.main, children: ["Top up time left", (0, jsx_runtime_1.jsx)(TimeText_1.default, { seconds: count }), (0, jsx_runtime_1.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", children: (0, jsx_runtime_1.jsx)("path", { d: "M7 5V7.5M13 7C13 7.78793 12.8448 8.56815 12.5433 9.2961C12.2417 10.0241 11.7998 10.6855 11.2426 11.2426C10.6855 11.7998 10.0241 12.2417 9.2961 12.5433C8.56815 12.8448 7.78793 13 7 13C6.21207 13 5.43185 12.8448 4.7039 12.5433C3.97595 12.2417 3.31451 11.7998 2.75736 11.2426C2.20021 10.6855 1.75825 10.0241 1.45672 9.2961C1.15519 8.56815 1 7.78793 1 7C1 5.4087 1.63214 3.88258 2.75736 2.75736C3.88258 1.63214 5.4087 1 7 1C8.5913 1 10.1174 1.63214 11.2426 2.75736C12.3679 3.88258 13 5.4087 13 7ZM7 9.5H7.00533V9.50533H7V9.5Z", stroke: "#
|
|
251
|
+
}, color: (_h = palette_1.palette.accent2) === null || _h === void 0 ? void 0 : _h.main, children: "VND" })] }), (0, jsx_runtime_1.jsxs)(Text_1.default, { display: "flex", alignItems: "center", gap: "0.375rem", sx: __assign({}, style_1.title03), color: (_j = palette_1.palette.accent2) === null || _j === void 0 ? void 0 : _j.main, children: ["Top up time left", (0, jsx_runtime_1.jsx)(TimeText_1.default, { seconds: count }), (0, jsx_runtime_1.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", children: (0, jsx_runtime_1.jsx)("path", { d: "M7 5V7.5M13 7C13 7.78793 12.8448 8.56815 12.5433 9.2961C12.2417 10.0241 11.7998 10.6855 11.2426 11.2426C10.6855 11.7998 10.0241 12.2417 9.2961 12.5433C8.56815 12.8448 7.78793 13 7 13C6.21207 13 5.43185 12.8448 4.7039 12.5433C3.97595 12.2417 3.31451 11.7998 2.75736 11.2426C2.20021 10.6855 1.75825 10.0241 1.45672 9.2961C1.15519 8.56815 1 7.78793 1 7C1 5.4087 1.63214 3.88258 2.75736 2.75736C3.88258 1.63214 5.4087 1 7 1C8.5913 1 10.1174 1.63214 11.2426 2.75736C12.3679 3.88258 13 5.4087 13 7ZM7 9.5H7.00533V9.50533H7V9.5Z", stroke: "#1C461D", strokeLinecap: "round", strokeLinejoin: "round" }) })] }), (0, jsx_runtime_1.jsx)(material_1.Divider, { flexItem: true }), (0, jsx_runtime_1.jsxs)(Text_1.default, { display: "flex", flexDirection: "column", alignItems: "center", gap: "0.375rem", sx: __assign({}, style_1.title01), children: [depositData === null || depositData === void 0 ? void 0 : depositData.metadata.bank_account.account_name, (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, style_1.content02), color: (_k = palette_1.palette.accent2) === null || _k === void 0 ? void 0 : _k.main, children: depositData === null || depositData === void 0 ? void 0 : depositData.metadata.bank_account.bank_name }), (0, jsx_runtime_1.jsxs)(Text_1.default, { sx: __assign({}, style_1.title02), display: "flex", alignItems: "center", gap: "0.25rem", children: [copySuccess ? "Copied!" : depositData === null || depositData === void 0 ? void 0 : depositData.metadata.bank_account.account_number, (0, jsx_runtime_1.jsx)("button", { type: "button", onClick: function () { var _a; return handleCopyLink((_a = depositData === null || depositData === void 0 ? void 0 : depositData.metadata.bank_account.account_number) !== null && _a !== void 0 ? _a : ""); }, children: (0, jsx_runtime_1.jsx)(exports.CopyIcon, {}) })] }), (0, jsx_runtime_1.jsx)(link_1.default, { href: (_l = depositData === null || depositData === void 0 ? void 0 : depositData._link.payment_link.href) !== null && _l !== void 0 ? _l : "#", target: "_blank", rel: "noopener noreferrer", style: {
|
|
250
252
|
marginTop: "-0.5rem",
|
|
251
253
|
}, children: (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign({}, style_1.content02), { textDecoration: "underline", fontStyle: "italic" }), children: "Transfer" }) })] })] }) }), (0, jsx_runtime_1.jsx)(material_1.Box, { pt: "0.75rem", pb: "1rem", width: "100%", children: (0, jsx_runtime_1.jsx)(Button_1.default.Primary, { disabled: loading, loading: loading, onClick: function () {
|
|
252
254
|
if (count === 0) {
|
|
@@ -13,7 +13,7 @@ var lengthFromDotToFirstNonZero_1 = __importDefault(require("./functions/lengthF
|
|
|
13
13
|
var formatter_1 = __importDefault(require("./functions/formatter"));
|
|
14
14
|
var clsx_1 = __importDefault(require("clsx"));
|
|
15
15
|
var Formatter = function (_a) {
|
|
16
|
-
var value = _a.value, _b = _a.start, start = _b === void 0 ? "" : _b, _c = _a.unit, unit = _c === void 0 ? "" : _c, _d = _a.lengthValueAllowed, lengthValueAllowed = _d === void 0 ?
|
|
16
|
+
var value = _a.value, _b = _a.start, start = _b === void 0 ? "" : _b, _c = _a.unit, unit = _c === void 0 ? "" : _c, _d = _a.lengthValueAllowed, lengthValueAllowed = _d === void 0 ? 4 : _d, _e = _a.allowShowZero, allowShowZero = _e === void 0 ? false : _e, _f = _a.useCompact, useCompact = _f === void 0 ? true : _f, disableTooltip = _a.disableTooltip, _g = _a.showLessThan, showLessThan = _g === void 0 ? false : _g, _h = _a.useCompactOnThousand, useCompactOnThousand = _h === void 0 ? false : _h, _j = _a.isNotCurrency, isNotCurrency = _j === void 0 ? false : _j, _k = _a.hideUnitOutSide, hideUnitOutSide = _k === void 0 ? false : _k, className = _a.className;
|
|
17
17
|
// TODO: get user setting from backend
|
|
18
18
|
var userSetting = {
|
|
19
19
|
currency: "usd",
|
|
@@ -25,6 +25,8 @@ var Formatter = function (_a) {
|
|
|
25
25
|
};
|
|
26
26
|
var valueInNumber = Number(value);
|
|
27
27
|
var addUnit = function (value) {
|
|
28
|
+
if (hideUnitOutSide)
|
|
29
|
+
return value;
|
|
28
30
|
var isLeft = userSetting.unitDirection === "left";
|
|
29
31
|
if (isLeft) {
|
|
30
32
|
return ((0, jsx_runtime_1.jsxs)("span", { className: (0, clsx_1.default)(className), children: [unit, " ", value] }));
|
|
@@ -65,7 +67,7 @@ var Formatter = function (_a) {
|
|
|
65
67
|
userSetting.decimalDot,
|
|
66
68
|
]);
|
|
67
69
|
var trigger = valueDisplay();
|
|
68
|
-
return ((0, jsx_runtime_1.jsx)(CustomTooltip_1.default, { disabled: disableTooltip, trigger: addUnit(trigger), sx: {
|
|
70
|
+
return ((0, jsx_runtime_1.jsx)(CustomTooltip_1.default, { disabled: disableTooltip, trigger: value ? addUnit(trigger) : trigger, sx: {
|
|
69
71
|
"& .MuiPaper-root": {
|
|
70
72
|
whiteSpace: "nowrap",
|
|
71
73
|
backdropFilter: "blur(10px)",
|
|
@@ -21,12 +21,13 @@ var Icon_1 = __importDefault(require("../Icon"));
|
|
|
21
21
|
var Text_1 = __importDefault(require("../Text"));
|
|
22
22
|
var FunctionItem = function (props) {
|
|
23
23
|
var theme = (0, ThemeProvider_1.useTheme)();
|
|
24
|
-
return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign(__assign({}, theme.mixins.column), { alignItems: "center", gap: theme.mixins.gaps.
|
|
24
|
+
return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign(__assign({}, theme.mixins.column), { alignItems: "center", gap: theme.mixins.gaps.g4 }), props.sx), children: [(0, jsx_runtime_1.jsx)(Icon_1.default, { iconKey: props.icon, alt: "", sx: {
|
|
25
25
|
borderRadius: theme.mixins.customRadius.full,
|
|
26
|
-
}, width:
|
|
27
|
-
color:
|
|
28
|
-
fontSize: theme.typography.
|
|
26
|
+
}, width: 24 }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
|
|
27
|
+
color: theme.palette.text.primary,
|
|
28
|
+
fontSize: theme.typography.fontSize11,
|
|
29
29
|
lineHeight: theme.typography.leading140,
|
|
30
|
+
fontWeight: theme.typography.fontWeight600,
|
|
30
31
|
}, children: props.label })] }));
|
|
31
32
|
};
|
|
32
33
|
exports.default = FunctionItem;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { SxProps } from "@mui/material";
|
|
2
|
-
export interface IconProps extends
|
|
1
|
+
import { BoxProps, SxProps } from "@mui/material";
|
|
2
|
+
export interface IconProps extends BoxProps {
|
|
3
3
|
src?: string;
|
|
4
4
|
alt?: string;
|
|
5
5
|
width?: number;
|
|
6
6
|
height?: number;
|
|
7
7
|
sx?: SxProps;
|
|
8
|
+
iconKey?: string;
|
|
9
|
+
crossOrigin?: string;
|
|
8
10
|
}
|
|
9
11
|
declare const Icon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
12
|
export default Icon;
|
|
@@ -10,6 +10,39 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
};
|
|
11
11
|
return __assign.apply(this, arguments);
|
|
12
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
|
+
})();
|
|
13
46
|
var __rest = (this && this.__rest) || function (s, e) {
|
|
14
47
|
var t = {};
|
|
15
48
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
@@ -24,9 +57,17 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
24
57
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
58
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
26
59
|
var material_1 = require("@mui/material");
|
|
60
|
+
var SvgPath = __importStar(require("../SvgPath"));
|
|
61
|
+
var react_1 = require("react");
|
|
27
62
|
var Icon = function (props) {
|
|
28
|
-
var _a, _b;
|
|
29
|
-
var src = props.src, alt = props.alt, onClick = props.onClick, width = props.width, height = props.height, sx = props.sx, rest = __rest(props, ["src", "alt", "onClick", "width", "height", "sx"]);
|
|
30
|
-
|
|
63
|
+
var _a, _b, _c, _d;
|
|
64
|
+
var _e = props.iconKey, iconKey = _e === void 0 ? "" : _e, src = props.src, alt = props.alt, onClick = props.onClick, width = props.width, height = props.height, sx = props.sx, rest = __rest(props, ["iconKey", "src", "alt", "onClick", "width", "height", "sx"]);
|
|
65
|
+
var icon = (0, react_1.useMemo)(function () {
|
|
66
|
+
return SvgPath[iconKey];
|
|
67
|
+
}, [iconKey]);
|
|
68
|
+
if (src) {
|
|
69
|
+
return ((0, jsx_runtime_1.jsx)(material_1.Box, __assign({ component: "img", src: src, alt: alt, onClick: onClick }, rest, { sx: __assign({ display: "block", width: ((_a = width !== null && width !== void 0 ? width : height) !== null && _a !== void 0 ? _a : false) ? "".concat((width || height || 0) / 16, "rem") : "auto", height: ((_b = height !== null && height !== void 0 ? height : width) !== null && _b !== void 0 ? _b : false) ? "".concat((height || width || 0) / 16, "rem") : "auto" }, sx) })));
|
|
70
|
+
}
|
|
71
|
+
return ((0, jsx_runtime_1.jsx)(material_1.SvgIcon, __assign({}, rest, { sx: __assign({ width: ((_c = width !== null && width !== void 0 ? width : height) !== null && _c !== void 0 ? _c : false) ? "".concat((width || height || 0) / 16, "rem") : "auto", height: ((_d = height !== null && height !== void 0 ? height : width) !== null && _d !== void 0 ? _d : false) ? "".concat((height || width || 0) / 16, "rem") : "auto" }, sx), children: icon })));
|
|
31
72
|
};
|
|
32
73
|
exports.default = Icon;
|
|
@@ -29,18 +29,18 @@ var ThemeProvider_1 = require("../../../providers/ThemeProvider");
|
|
|
29
29
|
var Input = (0, react_1.forwardRef)(function (props, inputRef) {
|
|
30
30
|
var inputRest = props.inputRest, leftPart = props.leftPart, rightPart = props.rightPart, sx = props.sx, inputSx = props.inputSx, rest = __rest(props, ["inputRest", "leftPart", "rightPart", "sx", "inputSx"]);
|
|
31
31
|
var theme = (0, ThemeProvider_1.useTheme)();
|
|
32
|
-
return ((0, jsx_runtime_1.jsxs)(material_1.Box, __assign({ ref: inputRef, sx: __assign(__assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g12, borderRadius: theme.mixins.customRadius.
|
|
32
|
+
return ((0, jsx_runtime_1.jsxs)(material_1.Box, __assign({ ref: inputRef, sx: __assign(__assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g12, borderRadius: theme.mixins.customRadius.r8, paddingX: theme.mixins.customPadding.p16, border: "1px solid ".concat(theme.palette.border.primary), backgroundColor: theme.palette.background.white, color: theme.palette.text.black, backdropFilter: "blur(10px)" }), sx) }, rest, { children: [leftPart, (0, jsx_runtime_1.jsx)(material_1.TextField, __assign({ autoComplete: "off", hiddenLabel: true, sx: __assign({ backgroundColor: "transparent", border: "none", outline: "none", flex: 1, height: "fit-content", "& .MuiInputBase-input": {
|
|
33
33
|
border: "none",
|
|
34
34
|
outline: "none",
|
|
35
35
|
color: theme.palette.text.black,
|
|
36
36
|
fontSize: theme.typography.fontSize13,
|
|
37
37
|
lineHeight: theme.typography.leading140,
|
|
38
38
|
fontWeight: theme.typography.fontWeight400,
|
|
39
|
-
padding: "".concat(theme.mixins.customPadding.p12, " ").concat(
|
|
39
|
+
padding: "".concat(theme.mixins.customPadding.p12, " ").concat(0, "px"),
|
|
40
40
|
// height: "fit-content",
|
|
41
41
|
}, "& fieldset": { border: "none" }, "& .MuiInputBase-input::placeholder": {
|
|
42
42
|
fontSize: theme.typography.fontSize13,
|
|
43
|
-
} }, inputSx) })), rightPart] })));
|
|
43
|
+
} }, inputSx) }, inputRest)), rightPart] })));
|
|
44
44
|
});
|
|
45
45
|
Input.displayName = "Input";
|
|
46
46
|
exports.default = Input;
|
|
@@ -9,6 +9,7 @@ export interface ListItemCustomProps extends Omit<ListItemButtonProps, "title">
|
|
|
9
9
|
rightIcon?: React.ReactNode | boolean;
|
|
10
10
|
hideDefaultRightIcon?: boolean;
|
|
11
11
|
recommended?: boolean;
|
|
12
|
+
hideTag?: boolean;
|
|
12
13
|
}
|
|
13
|
-
declare function ListItemCustom({ title, description, icon, rightIcon, hideDefaultRightIcon, sx, recommended, ...rest }: ListItemCustomProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare function ListItemCustom({ title, description, icon, rightIcon, hideDefaultRightIcon, sx, recommended, hideTag, ...rest }: ListItemCustomProps): import("react/jsx-runtime").JSX.Element;
|
|
14
15
|
export default ListItemCustom;
|
|
@@ -31,16 +31,16 @@ var ThemeProvider_1 = require("../../../providers/ThemeProvider");
|
|
|
31
31
|
var Text_1 = __importDefault(require("../Text"));
|
|
32
32
|
var SvgPath_1 = require("../SvgPath");
|
|
33
33
|
function ListItemCustom(_a) {
|
|
34
|
-
var title = _a.title, description = _a.description, icon = _a.icon, rightIcon = _a.rightIcon, hideDefaultRightIcon = _a.hideDefaultRightIcon, sx = _a.sx, recommended = _a.recommended, rest = __rest(_a, ["title", "description", "icon", "rightIcon", "hideDefaultRightIcon", "sx", "recommended"]);
|
|
34
|
+
var title = _a.title, description = _a.description, icon = _a.icon, rightIcon = _a.rightIcon, hideDefaultRightIcon = _a.hideDefaultRightIcon, sx = _a.sx, recommended = _a.recommended, hideTag = _a.hideTag, rest = __rest(_a, ["title", "description", "icon", "rightIcon", "hideDefaultRightIcon", "sx", "recommended", "hideTag"]);
|
|
35
35
|
var theme = (0, ThemeProvider_1.useTheme)();
|
|
36
|
-
return ((0, jsx_runtime_1.jsxs)(material_1.ListItemButton, __assign({}, rest, { sx: __assign(__assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g12, padding: "calc(".concat(theme.mixins.customPadding.p16, " + 6px) ").concat(theme.mixins.customPadding.p16), border: "1px solid ".concat(theme.palette.border.accent3), borderRadius: theme.mixins.customRadius.r16, backgroundColor: theme.palette.background.white, position: "relative", overflow: "hidden" }), sx), children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
|
|
36
|
+
return ((0, jsx_runtime_1.jsxs)(material_1.ListItemButton, __assign({}, rest, { sx: __assign(__assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g12, padding: "calc(".concat(theme.mixins.customPadding.p16, " + 6px) ").concat(theme.mixins.customPadding.p16), border: "1px solid ".concat(theme.palette.border.accent3), borderRadius: theme.mixins.customRadius.r16, backgroundColor: theme.palette.background.white, position: "relative", overflow: "hidden" }), sx), children: [!hideTag && ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
|
|
37
37
|
position: "absolute",
|
|
38
38
|
top: "-9px",
|
|
39
39
|
left: "-1px",
|
|
40
40
|
}, children: [(0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: {
|
|
41
41
|
width: "6.6rem",
|
|
42
42
|
height: "auto",
|
|
43
|
-
}, children: recommended ? SvgPath_1.IC_RECEIVE_TAG_RECOMMENDED : SvgPath_1.IC_RECEIVE_TAG }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.center), { whiteSpace: "nowrap", color: recommended ? theme.palette.text.blackContrast : theme.palette.text.white, fontSize: theme.typography.fontSize10, fontWeight: theme.typography.fontWeight600, lineHeight: "120%" }), children: recommended ? "Recommended" : "Fee upto 8%" })] }), icon, (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { gap: theme.mixins.gaps.g4, alignItems: "start", flex: 1 }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.listTitle), children: title }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.listDescription), children: description })] }), rightIcon !== null && rightIcon !== void 0 ? rightIcon : (!hideDefaultRightIcon && (
|
|
43
|
+
}, children: recommended ? SvgPath_1.IC_RECEIVE_TAG_RECOMMENDED : SvgPath_1.IC_RECEIVE_TAG }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.center), { whiteSpace: "nowrap", color: recommended ? theme.palette.text.blackContrast : theme.palette.text.white, fontSize: theme.typography.fontSize10, fontWeight: theme.typography.fontWeight600, lineHeight: "120%" }), children: recommended ? "Recommended" : "Fee upto 8%" })] })), icon, (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { gap: theme.mixins.gaps.g4, alignItems: "start", flex: 1 }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.listTitle), children: title }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.listDescription), children: description })] }), rightIcon !== null && rightIcon !== void 0 ? rightIcon : (!hideDefaultRightIcon && (
|
|
44
44
|
// <Icon width={10} src={getIcon("right_arrow")} sx={{ ml: "auto" }} />
|
|
45
45
|
(0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { width: "12px", height: "12px" }, children: SvgPath_1.IC_CHEVRON_RIGHT })))] })));
|
|
46
46
|
}
|
|
@@ -4,7 +4,7 @@ var jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
4
4
|
var qrcode_react_1 = require("qrcode.react");
|
|
5
5
|
function QRCode(props) {
|
|
6
6
|
var value = props.value, _a = props.size, size = _a === void 0 ? 156 : _a, logo = props.logo, title = props.title, _b = props.bgColor, bgColor = _b === void 0 ? "#ffffff" : _b;
|
|
7
|
-
return ((0, jsx_runtime_1.jsx)(qrcode_react_1.QRCodeCanvas, { value: value, title: title, size: size, bgColor: bgColor, fgColor: "#
|
|
7
|
+
return ((0, jsx_runtime_1.jsx)(qrcode_react_1.QRCodeCanvas, { value: value, title: title, size: size, bgColor: bgColor, fgColor: "#1C461D", level: "L", minVersion: 8, marginSize: 4, imageSettings: {
|
|
8
8
|
src: logo || "/",
|
|
9
9
|
x: undefined,
|
|
10
10
|
y: undefined,
|
|
@@ -286,7 +286,7 @@ exports.SendExternalToken = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
286
286
|
left: "50%",
|
|
287
287
|
transform: "translateX(-50%)",
|
|
288
288
|
width: "calc(100dvw - 2rem)",
|
|
289
|
-
backgroundColor: "#
|
|
289
|
+
backgroundColor: "#1C461D",
|
|
290
290
|
fontWeight: theme.typography.fontWeight500,
|
|
291
291
|
fontSize: theme.typography.fontSize14,
|
|
292
292
|
borderRadius: theme.mixins.customRadius.r12,
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { ConfirmLayoutProps } from "../ConfirmLayout";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
export interface SendExternalDataType extends Omit<SendExternalBody, "network" | "passcode"> {
|
|
5
|
-
network: NetworkData;
|
|
6
|
-
}
|
|
2
|
+
import { SendExternalResponse } from "../../../services/axios/send-external-service/type";
|
|
3
|
+
import { SendExternalDataType } from "../ConfirmSendExternal";
|
|
7
4
|
export interface SendExternalTokenWithdrawnProps extends Omit<ConfirmLayoutProps, "action"> {
|
|
8
5
|
sendExternalData: SendExternalDataType;
|
|
9
6
|
onSuccess?: (data: SendExternalResponse) => any;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare const ARROW_DROP_UP: import("react/jsx-runtime").JSX.Element;
|
|
2
2
|
export declare const ARROW_DROP_DOWN: import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const ARROW_DOWN: import("react/jsx-runtime").JSX.Element;
|
|
3
4
|
export declare const IC_HISTORY: import("react/jsx-runtime").JSX.Element;
|
|
4
5
|
export declare const IC_TUTORIAL: import("react/jsx-runtime").JSX.Element;
|
|
5
6
|
export declare const IC_SCAN: import("react/jsx-runtime").JSX.Element;
|
|
@@ -12,6 +13,7 @@ export declare const IC_FACE_ID: import("react/jsx-runtime").JSX.Element;
|
|
|
12
13
|
export declare const IC_PASSCODE: import("react/jsx-runtime").JSX.Element;
|
|
13
14
|
export declare const IC_HELP: import("react/jsx-runtime").JSX.Element;
|
|
14
15
|
export declare const IC_SWAP: import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare const IC_SWAP_SECONDARY: import("react/jsx-runtime").JSX.Element;
|
|
15
17
|
export declare const IC_ARROW_BLACK_DROP: import("react/jsx-runtime").JSX.Element;
|
|
16
18
|
export declare const IC_TRASH: import("react/jsx-runtime").JSX.Element;
|
|
17
19
|
export declare const IC_CHEVRON_LEFT: import("react/jsx-runtime").JSX.Element;
|
|
@@ -35,3 +37,13 @@ export declare const IC_EXPANDER_ARROW: import("react/jsx-runtime").JSX.Element;
|
|
|
35
37
|
export declare const IC_INFORMATION: import("react/jsx-runtime").JSX.Element;
|
|
36
38
|
export declare const IC_WITHDRAW: import("react/jsx-runtime").JSX.Element;
|
|
37
39
|
export declare const IC_DEPOSIT: import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
export declare const IC_SCAN_QR_CODE: import("react/jsx-runtime").JSX.Element;
|
|
41
|
+
export declare const IC_CHECK_CIRCLE: import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
export declare const IC_ERROR_CIRCLE: import("react/jsx-runtime").JSX.Element;
|
|
43
|
+
export declare const IC_NETWORK: import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
export declare const IC_PROCESSING_CIRCLE: import("react/jsx-runtime").JSX.Element;
|
|
45
|
+
export declare const IC_SWAP_BG: import("react/jsx-runtime").JSX.Element;
|
|
46
|
+
export declare const IC_RECEIVE: import("react/jsx-runtime").JSX.Element;
|
|
47
|
+
export declare const IC_WITHDRAW_FC: import("react/jsx-runtime").JSX.Element;
|
|
48
|
+
export declare const IC_TRANSFER: import("react/jsx-runtime").JSX.Element;
|
|
49
|
+
export declare const IC_SWAP_FC: import("react/jsx-runtime").JSX.Element;
|