tek-wallet 0.0.241 → 0.0.243

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
- duration: "500ms",
91
+ transition: "all 500ms ease-in-out",
92
92
  aspectRatio: "1.47317073171",
93
93
  zIndex: 10,
94
94
  maxHeight: expandAreaChart ? "28rem" : "0",
@@ -97,14 +97,14 @@ var AmountGroupAndChart = function (props) {
97
97
  right: 0,
98
98
  left: 0,
99
99
  bottom: 0,
100
- duration: "500ms",
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
- duration: "500ms",
107
+ transition: "all 500ms ease-in-out",
108
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: {
@@ -14,10 +14,10 @@ export declare enum SendMethods {
14
14
  TRANSFER_EXTERNAL = "transfer external"
15
15
  }
16
16
  export declare enum WithdrawStep {
17
- SELECT_METHOD = 1,
18
- SELECT_TOKEN = 2,
19
- SELECT_NETWORK = 3,
20
- CONFIRM = 4
17
+ SELECT_METHOD = 0,
18
+ SELECT_TOKEN = 1,
19
+ SELECT_NETWORK = 2,
20
+ CONFIRM = 3
21
21
  }
22
22
  declare const WithdrawFunction: import("react").ForwardRefExoticComponent<WithdrawFunctionProps & import("react").RefAttributes<WithdrawFunctionRef>>;
23
23
  export default WithdrawFunction;
@@ -45,10 +45,10 @@ var SendMethods;
45
45
  })(SendMethods || (exports.SendMethods = SendMethods = {}));
46
46
  var WithdrawStep;
47
47
  (function (WithdrawStep) {
48
- WithdrawStep[WithdrawStep["SELECT_METHOD"] = 1] = "SELECT_METHOD";
49
- WithdrawStep[WithdrawStep["SELECT_TOKEN"] = 2] = "SELECT_TOKEN";
50
- WithdrawStep[WithdrawStep["SELECT_NETWORK"] = 3] = "SELECT_NETWORK";
51
- WithdrawStep[WithdrawStep["CONFIRM"] = 4] = "CONFIRM";
48
+ WithdrawStep[WithdrawStep["SELECT_METHOD"] = 0] = "SELECT_METHOD";
49
+ WithdrawStep[WithdrawStep["SELECT_TOKEN"] = 1] = "SELECT_TOKEN";
50
+ WithdrawStep[WithdrawStep["SELECT_NETWORK"] = 2] = "SELECT_NETWORK";
51
+ WithdrawStep[WithdrawStep["CONFIRM"] = 3] = "CONFIRM";
52
52
  })(WithdrawStep || (exports.WithdrawStep = WithdrawStep = {}));
53
53
  var WITHDRAW_STEP_NAME = (_a = {},
54
54
  _a[WithdrawStep.SELECT_METHOD] = "Select method",
@@ -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;
@@ -171,7 +171,9 @@ var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
171
171
  alignItems: "center",
172
172
  minHeight: "2rem",
173
173
  mb: theme.mixins.customMargin.m20,
174
- }, overrideBack: handleBack, hideBack: currentStep === WithdrawStep.SELECT_METHOD, center: WITHDRAW_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: {
174
+ }, overrideBack: handleBack, hideBack: currentStep === WithdrawStep.SELECT_METHOD, center: currentStep == WithdrawStep.CONFIRM
175
+ ? "Confirm withdrawn ".concat(selectedToken === null || selectedToken === void 0 ? void 0 : selectedToken.name)
176
+ : WITHDRAW_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: {
175
177
  autoHeight: true,
176
178
  spaceBetween: 32,
177
179
  }, 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: Object.values(SendMethods).map(function (item) {
@@ -191,7 +193,7 @@ var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
191
193
  placeholder: "Enter recipient address",
192
194
  value: recipientAddress,
193
195
  onChange: handleChangeRecipientAddress,
194
- }, 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.g8, ml: "auto", cursor: "pointer" }), children: [(0, jsx_runtime_1.jsx)(Icon_1.default, { width: 24, src: selectedNetwork === null || selectedNetwork === void 0 ? void 0 : selectedNetwork.icon }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.value), onClick: handleReSelectNetwork, 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: {
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: {
195
197
  paddingRight: theme.mixins.customPadding.p12,
196
198
  }, inputRest: {
197
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),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tek-wallet",
3
- "version": "0.0.241",
3
+ "version": "0.0.243",
4
4
  "description": "A custom React provider with TypeScript support",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",