tek-wallet 0.0.242 → 0.0.244
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.
|
@@ -88,7 +88,7 @@ var AmountGroupAndChart = function (props) {
|
|
|
88
88
|
return ((0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, props.sx), { width: "100%" }), children: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { position: "relative" }), children: [(0, jsx_runtime_1.jsx)(AnalyticGroup_1.default, { timeRange: timeRangeData === null || timeRangeData === void 0 ? void 0 : timeRangeData.type }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
|
|
89
89
|
width: "100%",
|
|
90
90
|
position: "relative",
|
|
91
|
-
|
|
91
|
+
transition: "all 500ms ease-in-out",
|
|
92
92
|
aspectRatio: "1.47317073171",
|
|
93
93
|
zIndex: 10,
|
|
94
94
|
maxHeight: expandAreaChart ? "28rem" : "0",
|
|
@@ -97,15 +97,15 @@ var AmountGroupAndChart = function (props) {
|
|
|
97
97
|
right: 0,
|
|
98
98
|
left: 0,
|
|
99
99
|
bottom: 0,
|
|
100
|
-
|
|
100
|
+
transition: "all 500ms ease-in-out",
|
|
101
101
|
transform: !expandAreaChart
|
|
102
102
|
? "translateY(0) translateX(25%) scale(0.5)"
|
|
103
103
|
: "none",
|
|
104
104
|
}, children: (0, jsx_runtime_1.jsx)(DelayMounted_1.default, { delay: 800, children: (0, jsx_runtime_1.jsx)(NeonLineChart_1.default, { showMinMaxValues: expandAreaChart, series: fakeSeries, categories: labels, sx: {
|
|
105
105
|
width: "100%",
|
|
106
106
|
height: "fit-content",
|
|
107
|
-
|
|
108
|
-
transform: !expandAreaChart ? "translateY(100%)" : "none",
|
|
107
|
+
transition: "all 500ms ease-in-out",
|
|
108
|
+
transform: !expandAreaChart ? "translateY(-100%)" : "none",
|
|
109
109
|
my: theme.mixins.customMargin.m3,
|
|
110
110
|
} }) }) }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: { position: "absolute", bottom: 0 }, children: (0, jsx_runtime_1.jsx)(framer_motion_1.motion.div, { initial: "hidden", animate: expandAreaChart ? "visible" : "hidden", variants: variants, transition: {
|
|
111
111
|
opacity: {
|
|
@@ -113,10 +113,10 @@ var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
113
113
|
var clearValues = function () {
|
|
114
114
|
setSelectedToken(undefined);
|
|
115
115
|
setSelectedNetwork(undefined);
|
|
116
|
-
gotoStep(WithdrawStep.SELECT_METHOD);
|
|
117
116
|
setAmount("");
|
|
118
117
|
setMemo("");
|
|
119
118
|
setRecipientAddress("");
|
|
119
|
+
gotoStep(WithdrawStep.SELECT_METHOD);
|
|
120
120
|
};
|
|
121
121
|
var handleOnClose = function (e) {
|
|
122
122
|
var _a;
|
|
@@ -193,7 +193,7 @@ var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
193
193
|
placeholder: "Enter recipient address",
|
|
194
194
|
value: recipientAddress,
|
|
195
195
|
onChange: handleChangeRecipientAddress,
|
|
196
|
-
}, rightPart: (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)(Button_1.default.Secondary, { sx: __assign({}, theme.mixins.smallButton), children: "Paste" }), (0, jsx_runtime_1.jsx)(material_1.Divider, { orientation: "vertical", sx: { height: "90%" } }), (0, jsx_runtime_1.jsx)(Icon_1.default, { src: (0, getIcon_1.default)("qr_can"), width: 20 })] }) })] }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign({}, theme.mixins.row), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.fieldTitle), children: "Network" }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g6, ml: "auto", cursor: "pointer" }), children: [(0, jsx_runtime_1.jsx)(Icon_1.default, { width: 20, src: selectedNetwork === null || selectedNetwork === void 0 ? void 0 : selectedNetwork.icon }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.value),
|
|
196
|
+
}, rightPart: (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)(Button_1.default.Secondary, { sx: __assign({}, theme.mixins.smallButton), children: "Paste" }), (0, jsx_runtime_1.jsx)(material_1.Divider, { orientation: "vertical", sx: { height: "90%" } }), (0, jsx_runtime_1.jsx)(Icon_1.default, { src: (0, getIcon_1.default)("qr_can"), width: 20 })] }) })] }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign({}, theme.mixins.row), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.fieldTitle), children: "Network" }), (0, jsx_runtime_1.jsxs)(material_1.Box, { onClick: handleReSelectNetwork, sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g6, ml: "auto", cursor: "pointer" }), children: [(0, jsx_runtime_1.jsx)(Icon_1.default, { width: 20, src: selectedNetwork === null || selectedNetwork === void 0 ? void 0 : selectedNetwork.icon }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.value), children: selectedNetwork === null || selectedNetwork === void 0 ? void 0 : selectedNetwork.name }), (0, jsx_runtime_1.jsx)(Icon_1.default, { width: 10, src: (0, getIcon_1.default)("right_arrow") })] })] }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { gap: theme.mixins.gaps.g8 }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.fieldTitle), children: "Enter amount" }), (0, jsx_runtime_1.jsx)(Input_1.default, { sx: {
|
|
197
197
|
paddingRight: theme.mixins.customPadding.p12,
|
|
198
198
|
}, inputRest: {
|
|
199
199
|
placeholder: "".concat(selectedToken === null || selectedToken === void 0 ? void 0 : selectedToken.min_value, " - ").concat(selectedToken === null || selectedToken === void 0 ? void 0 : selectedToken.max_value, " ").concat(selectedToken === null || selectedToken === void 0 ? void 0 : selectedToken.name),
|