tek-wallet 0.0.137 → 0.0.138
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.
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
"use client";
|
|
2
3
|
var __assign = (this && this.__assign) || function () {
|
|
3
4
|
__assign = Object.assign || function(t) {
|
|
4
5
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -25,7 +26,6 @@ var react_2 = require("swiper/react");
|
|
|
25
26
|
var BackHeader_1 = __importDefault(require("../BackHeader"));
|
|
26
27
|
var ModalTitle_1 = __importDefault(require("../ModalTitle"));
|
|
27
28
|
var QRCode_1 = __importDefault(require("../QRCode"));
|
|
28
|
-
var HorizontalScroll_1 = __importDefault(require("../HorizontalScroll"));
|
|
29
29
|
var Text_1 = __importDefault(require("../Text"));
|
|
30
30
|
var material_1 = require("@mui/material");
|
|
31
31
|
var CopyTextComponent_1 = __importDefault(require("../CopyTextComponent"));
|
|
@@ -64,31 +64,33 @@ var DepositFunction = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
64
64
|
open: open,
|
|
65
65
|
close: close,
|
|
66
66
|
}); });
|
|
67
|
-
return ((0, jsx_runtime_1.jsx)(DrawerComponent_1.default, { ref: drawerRef, trigger: props.children, children: (0, jsx_runtime_1.jsxs)(ModalLayout_1.default, { title: "
|
|
67
|
+
return ((0, jsx_runtime_1.jsx)(DrawerComponent_1.default, { ref: drawerRef, trigger: props.children, onOpen: props.onOpen, onClose: props.onClose, children: (0, jsx_runtime_1.jsxs)(ModalLayout_1.default, { title: "Deposit", onClose: close, hideHeader: true, children: [(0, jsx_runtime_1.jsx)(CloseModal_1.default, { onClick: close, sx: {
|
|
68
68
|
position: "absolute",
|
|
69
69
|
right: "1rem",
|
|
70
70
|
zIndex: 10,
|
|
71
|
-
} }), (0, jsx_runtime_1.jsxs)(SwiperControlled_1.default, { ref: swiperRef,
|
|
71
|
+
} }), (0, jsx_runtime_1.jsxs)(SwiperControlled_1.default, { ref: swiperRef,
|
|
72
|
+
// initialActiveTab={currentStep}
|
|
73
|
+
swiperProps: { autoHeight: true }, children: [(0, jsx_runtime_1.jsxs)(react_2.SwiperSlide, { children: [(0, jsx_runtime_1.jsx)(BackHeader_1.default, { sx: { paddingBottom: "1rem" }, hideBack: true, children: (0, jsx_runtime_1.jsx)(ModalTitle_1.default, { children: "Select token" }) }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
|
|
72
74
|
display: "flex",
|
|
73
75
|
flexDirection: "column",
|
|
74
|
-
gap:
|
|
76
|
+
gap: theme.mixins.gaps.g16,
|
|
75
77
|
}, children: tokens === null || tokens === void 0 ? void 0 : tokens.map(function (item, index) {
|
|
76
78
|
var stringifiedTokenData = JSON.stringify(__assign(__assign({}, item), { name: "Fake", fullname: "Fake fullname" }));
|
|
77
79
|
return ((0, jsx_runtime_1.jsx)(TokenSelection_1.default, { tokenData: stringifiedTokenData, active: index === 1 }, item.id));
|
|
78
|
-
}) })] },
|
|
80
|
+
}) })] }, DepositStep.SELECT_TOKEN), (0, jsx_runtime_1.jsxs)(react_2.SwiperSlide, { children: [(0, jsx_runtime_1.jsx)(BackHeader_1.default, { sx: { paddingBottom: "1rem" }, overrideBack: prevStep, children: (0, jsx_runtime_1.jsx)(ModalTitle_1.default, { children: "Select network" }) }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
|
|
81
|
+
display: "flex",
|
|
82
|
+
alignItems: "center",
|
|
83
|
+
gap: theme.mixins.gaps.g12,
|
|
84
|
+
}, children: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10].map(function (item) {
|
|
85
|
+
return ((0, jsx_runtime_1.jsx)(NetworkSelection_1.default, { networkData: JSON.stringify({
|
|
86
|
+
name: "network ".concat(item),
|
|
87
|
+
icon: "https://via.placeholder.com/150",
|
|
88
|
+
}) }, item));
|
|
89
|
+
}) })] }, DepositStep.SELECT_NETWORK), (0, jsx_runtime_1.jsxs)(react_2.SwiperSlide, { children: [(0, jsx_runtime_1.jsx)(BackHeader_1.default, { sx: { paddingBottom: "1rem" }, overrideBack: prevStep, children: (0, jsx_runtime_1.jsx)(ModalTitle_1.default, { children: "Scan QR code" }) }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
|
|
79
90
|
display: "flex",
|
|
80
91
|
flexDirection: "column",
|
|
81
|
-
gap:
|
|
82
|
-
}, children: [(0, jsx_runtime_1.
|
|
83
|
-
display: "flex",
|
|
84
|
-
alignItems: "center",
|
|
85
|
-
gap: "0.5rem",
|
|
86
|
-
}, children: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10].map(function (item) {
|
|
87
|
-
return ((0, jsx_runtime_1.jsx)(NetworkSelection_1.default, { networkData: JSON.stringify({
|
|
88
|
-
name: "network ".concat(item),
|
|
89
|
-
icon: "https://via.placeholder.com/150",
|
|
90
|
-
}) }, item));
|
|
91
|
-
}) }) }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
|
|
92
|
+
gap: theme.mixins.gaps.g16,
|
|
93
|
+
}, children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
|
|
92
94
|
width: "100%",
|
|
93
95
|
display: "flex",
|
|
94
96
|
flexDirection: "column",
|
|
@@ -166,7 +168,7 @@ var DepositFunction = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
166
168
|
fontWeight: theme.typography.fontWeight400,
|
|
167
169
|
leading: "typography.leading150",
|
|
168
170
|
textTransform: "capitalize",
|
|
169
|
-
}, children: "Share" }), (0, jsx_runtime_1.jsx)(Icon_1.default, { src: (0, getIcon_1.default)("copy"), width: 20 })] }) })] })] })] },
|
|
171
|
+
}, children: "Share" }), (0, jsx_runtime_1.jsx)(Icon_1.default, { src: (0, getIcon_1.default)("copy"), width: 20 })] }) })] })] })] }, DepositStep.SHOW_QR_CODE)] })] }) }));
|
|
170
172
|
});
|
|
171
173
|
DepositFunction.displayName = "DepositFunction";
|
|
172
174
|
exports.default = DepositFunction;
|