tek-wallet 0.0.195 → 0.0.196
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.
|
@@ -126,11 +126,11 @@ var DepositFunction = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
126
126
|
display: "flex",
|
|
127
127
|
alignItems: "center",
|
|
128
128
|
minHeight: "2rem",
|
|
129
|
-
|
|
129
|
+
mb: theme.mixins.customMargin.p20,
|
|
130
|
+
}, overrideBack: handleBack, hideBack: currentStep === DepositStep.SELECT_TOKEN, center: DEPOSIT_STEP_NAME[currentStep], children: (0, jsx_runtime_1.jsx)(CloseModal_1.default, { sx: { marginLeft: "auto" }, onClick: close }) }), children: (0, jsx_runtime_1.jsxs)(SwiperControlled_1.default, { ref: swiperRef, swiperProps: {
|
|
130
131
|
autoHeight: true,
|
|
131
132
|
spaceBetween: 32,
|
|
132
|
-
|
|
133
|
-
}, children: [(0, jsx_runtime_1.jsx)(react_2.SwiperSlide, { children: (0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { gap: theme.mixins.gaps.g12, height: "fit-content" }), children: depositTokens === null || depositTokens === void 0 ? void 0 : depositTokens.map(function (item) {
|
|
133
|
+
}, disableSwipe: true, children: [(0, jsx_runtime_1.jsx)(react_2.SwiperSlide, { children: (0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { gap: theme.mixins.gaps.g12, height: "fit-content" }), children: depositTokens === null || depositTokens === void 0 ? void 0 : depositTokens.map(function (item) {
|
|
134
134
|
var stringifiedTokenData = JSON.stringify(item);
|
|
135
135
|
if (!item)
|
|
136
136
|
return null;
|
|
@@ -149,7 +149,7 @@ var DepositFunction = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
149
149
|
alignSelf: "center",
|
|
150
150
|
borderRadius: theme.mixins.theBorderRadius.r12,
|
|
151
151
|
overflow: "hidden",
|
|
152
|
-
backgroundColor: theme.palette.background.
|
|
152
|
+
backgroundColor: theme.palette.background.white64,
|
|
153
153
|
backdropFilter: "blur(10px)",
|
|
154
154
|
}, children: (0, jsx_runtime_1.jsx)(QRCode_1.default, { value: qrCodeValue, title: "Deposit ".concat(selectedToken === null || selectedToken === void 0 ? void 0 : selectedToken.name), logo: (0, getIcon_1.default)("ton"), bgColor: "transparent" }) }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { gap: theme.mixins.gaps.g4, color: "text.white" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.valueDescription), children: "Network" }), (0, jsx_runtime_1.jsxs)(material_1.Box, { component: "button", sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g2, cursor: "pointer", transition: "transform 0.3s ease-in-out", "&:active": {
|
|
155
155
|
transform: "translateX(0.5rem)",
|
|
@@ -74,7 +74,7 @@ function RequireConnect(_a) {
|
|
|
74
74
|
(_a = authViewRef.current) === null || _a === void 0 ? void 0 : _a.close();
|
|
75
75
|
};
|
|
76
76
|
if (!isAuthenticated) {
|
|
77
|
-
return ((0, jsx_runtime_1.jsx)(DrawerComponent_1.default, { ref: authViewRef, direction: DrawerComponent_1.DRAWER_DIRECTION.RIGHT, trigger: (0, jsx_runtime_1.jsxs)(material_1.Box, __assign({}, rest, { sx: { position: "relative" }, children: [children, (0, jsx_runtime_1.jsx)(material_1.Box, { sx: { position: "absolute", inset: 0, zIndex: 10 } })] })), children: (0, jsx_runtime_1.jsx)(AuthView_1.default, { onBack: backAuthView }) }));
|
|
77
|
+
return ((0, jsx_runtime_1.jsx)(DrawerComponent_1.default, { ref: authViewRef, direction: DrawerComponent_1.DRAWER_DIRECTION.RIGHT, trigger: (0, jsx_runtime_1.jsxs)(material_1.Box, __assign({}, rest, { sx: { position: "relative" }, children: [(0, jsx_runtime_1.jsx)(material_1.Box, { sx: { pointerEvents: "none" }, children: children }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: { position: "absolute", inset: 0, zIndex: 10 } })] })), children: (0, jsx_runtime_1.jsx)(AuthView_1.default, { onBack: backAuthView }) }));
|
|
78
78
|
}
|
|
79
79
|
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: children });
|
|
80
80
|
}
|
|
@@ -47,6 +47,8 @@ var TokenSelection = function (props) {
|
|
|
47
47
|
}, [balance, tokenData]);
|
|
48
48
|
return ((0, jsx_runtime_1.jsxs)(material_1.Box, __assign({ onClick: function () { return onClick === null || onClick === void 0 ? void 0 : onClick(tokenData); }, sx: __assign({ backgroundColor: props.active
|
|
49
49
|
? "background.secondary16"
|
|
50
|
-
: "background.white16", border: "1px solid", borderColor: props.active ? "border.secondary" : "transparent", borderRadius: theme.mixins.theBorderRadius.r16, padding: theme.mixins.customPadding.p12, display: "flex", alignItems: "center", cursor: "pointer" }, sx) }, rest, { children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g12 }), children: [(0, jsx_runtime_1.jsx)(Icon_1.default, { width: 20, src: tokenData === null || tokenData === void 0 ? void 0 : tokenData.icon
|
|
50
|
+
: "background.white16", border: "1px solid", borderColor: props.active ? "border.secondary" : "transparent", borderRadius: theme.mixins.theBorderRadius.r16, padding: theme.mixins.customPadding.p12, display: "flex", alignItems: "center", cursor: "pointer" }, sx) }, rest, { children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g12 }), children: [(0, jsx_runtime_1.jsx)(Icon_1.default, { width: 20, src: tokenData === null || tokenData === void 0 ? void 0 : tokenData.icon, sx: {
|
|
51
|
+
borderRadius: theme.mixins.theBorderRadius.full,
|
|
52
|
+
} }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign({}, theme.mixins.column), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: theme.mixins.value, children: tokenData === null || tokenData === void 0 ? void 0 : tokenData.name }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: theme.mixins.valueDescription, children: tokenData === null || tokenData === void 0 ? void 0 : tokenData.full_name })] })] }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { marginLeft: "auto", alignItems: "end" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: theme.mixins.value, children: (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: balance }) }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: theme.mixins.valueDescription, children: (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: balanceInUSD, start: "~ $" }) })] })] })));
|
|
51
53
|
};
|
|
52
54
|
exports.default = TokenSelection;
|
package/dist/theme/mui/theme.js
CHANGED
|
@@ -93,6 +93,19 @@ var customPadding = {
|
|
|
93
93
|
p40: "2.5rem",
|
|
94
94
|
p48: "3rem",
|
|
95
95
|
};
|
|
96
|
+
var customMargin = {
|
|
97
|
+
p4: "0.25rem",
|
|
98
|
+
p6: "0.375rem",
|
|
99
|
+
p8: "0.5rem",
|
|
100
|
+
p10: "0.625rem",
|
|
101
|
+
p12: "0.75rem",
|
|
102
|
+
p16: "1rem",
|
|
103
|
+
p20: "1.25rem",
|
|
104
|
+
p24: "1.5rem",
|
|
105
|
+
p32: "2rem",
|
|
106
|
+
p40: "2.5rem",
|
|
107
|
+
p48: "3rem",
|
|
108
|
+
};
|
|
96
109
|
var theBorderRadius = {
|
|
97
110
|
full: "999px",
|
|
98
111
|
r12: "0.75rem",
|
|
@@ -117,6 +130,7 @@ var theme = (0, styles_1.createTheme)({
|
|
|
117
130
|
mixins: {
|
|
118
131
|
pagePadding: pagePadding,
|
|
119
132
|
customPadding: customPadding,
|
|
133
|
+
customMargin: customMargin,
|
|
120
134
|
theBorderRadius: theBorderRadius,
|
|
121
135
|
gaps: gaps,
|
|
122
136
|
row: {
|