tek-wallet 0.0.359 → 0.0.360

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.
@@ -0,0 +1,5 @@
1
+ import { AccordionProps } from "@mui/material";
2
+ export interface FeesProps extends Omit<AccordionProps, "children"> {
3
+ }
4
+ declare function Fees(props: FeesProps): import("react/jsx-runtime").JSX.Element;
5
+ export default Fees;
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __rest = (this && this.__rest) || function (s, e) {
14
+ var t = {};
15
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
16
+ t[p] = s[p];
17
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
18
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
19
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
20
+ t[p[i]] = s[p[i]];
21
+ }
22
+ return t;
23
+ };
24
+ var __importDefault = (this && this.__importDefault) || function (mod) {
25
+ return (mod && mod.__esModule) ? mod : { "default": mod };
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ var jsx_runtime_1 = require("react/jsx-runtime");
29
+ var material_1 = require("@mui/material");
30
+ var Icon_1 = __importDefault(require("../Icon"));
31
+ var getIcon_1 = __importDefault(require("../../../utils/getIcon"));
32
+ var Text_1 = __importDefault(require("../Text"));
33
+ var lab_1 = require("@mui/lab");
34
+ function Fees(props) {
35
+ var sx = props.sx, rest = __rest(props, ["sx"]);
36
+ var theme = (0, material_1.useTheme)();
37
+ return ((0, jsx_runtime_1.jsxs)(material_1.Accordion, __assign({ defaultExpanded: true }, rest, { sx: __assign({}, sx), children: [(0, jsx_runtime_1.jsx)(material_1.AccordionSummary, { expandIcon: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign({}, theme.mixins.row), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { children: "Total fees" }), (0, jsx_runtime_1.jsx)(Icon_1.default, { sx: { ml: "auto" }, src: (0, getIcon_1.default)("arrow_down") })] }) }), (0, jsx_runtime_1.jsx)(material_1.AccordionDetails, { children: (0, jsx_runtime_1.jsxs)(lab_1.Timeline, { children: [(0, jsx_runtime_1.jsxs)(lab_1.TimelineItem, { children: [(0, jsx_runtime_1.jsxs)(lab_1.TimelineSeparator, { children: [(0, jsx_runtime_1.jsx)(lab_1.TimelineDot, {}), (0, jsx_runtime_1.jsx)(lab_1.TimelineConnector, {})] }), (0, jsx_runtime_1.jsx)(lab_1.TimelineContent, { children: "Eat" })] }), (0, jsx_runtime_1.jsxs)(lab_1.TimelineItem, { children: [(0, jsx_runtime_1.jsxs)(lab_1.TimelineSeparator, { children: [(0, jsx_runtime_1.jsx)(lab_1.TimelineDot, {}), (0, jsx_runtime_1.jsx)(lab_1.TimelineConnector, {})] }), (0, jsx_runtime_1.jsx)(lab_1.TimelineContent, { children: "Code" })] }), (0, jsx_runtime_1.jsxs)(lab_1.TimelineItem, { children: [(0, jsx_runtime_1.jsx)(lab_1.TimelineSeparator, { children: (0, jsx_runtime_1.jsx)(lab_1.TimelineDot, {}) }), (0, jsx_runtime_1.jsx)(lab_1.TimelineContent, { children: "Sleep" })] })] }) })] })));
38
+ }
39
+ exports.default = Fees;
@@ -115,6 +115,7 @@ var AppDialog_1 = __importDefault(require("../AppDialog"));
115
115
  var Formatter_1 = __importDefault(require("../Formatter"));
116
116
  var send_internal_service_1 = __importDefault(require("../../../services/axios/send-internal-service"));
117
117
  var get_est_fee_service_1 = __importDefault(require("../../../services/axios/get-est-fee-service"));
118
+ var Fees_1 = __importDefault(require("../Fees"));
118
119
  var SendMethods;
119
120
  (function (SendMethods) {
120
121
  SendMethods["SCAN_QR_CODE"] = "scan qr code";
@@ -582,7 +583,7 @@ var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
582
583
  placeholder: "Enter memo",
583
584
  value: memo,
584
585
  onChange: handleChangeMemo,
585
- } })] })), (0, jsx_runtime_1.jsx)(Button_1.default.Primary, { sx: { width: "100%" }, onClick: handleSend, status: !!amountError ||
586
+ } })] })), (0, jsx_runtime_1.jsx)(Fees_1.default, {}), (0, jsx_runtime_1.jsx)(Button_1.default.Primary, { sx: { width: "100%" }, onClick: handleSend, status: !!amountError ||
586
587
  !recipientAddress ||
587
588
  !amount ||
588
589
  !selectedToken ||
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tek-wallet",
3
- "version": "0.0.359",
3
+ "version": "0.0.360",
4
4
  "description": "A custom React provider with TypeScript support",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -29,6 +29,7 @@
29
29
  "dependencies": {
30
30
  "@emotion/react": "^11.14.0",
31
31
  "@emotion/styled": "^11.14.0",
32
+ "@mui/lab": "^7.0.0-beta.11",
32
33
  "@mui/material": "^6.4.7",
33
34
  "@mui/system": "^7.0.2",
34
35
  "@yudiel/react-qr-scanner": "^2.2.1",