tek-wallet 0.0.650 → 0.0.654
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.
- package/dist/components/TekWallet/components/ui/BackHeader/index.d.ts +1 -0
- package/dist/components/TekWallet/components/ui/BackHeader/index.js +2 -2
- package/dist/components/TekWallet/components/ui/CardFrom/index.js +2 -1
- package/dist/components/TekWallet/components/ui/CardTo/index.js +2 -2
- package/dist/components/TekWallet/components/ui/Column/index.d.ts +7 -0
- package/dist/components/TekWallet/components/ui/Column/index.js +33 -0
- package/dist/components/TekWallet/components/ui/ConfirmByPasscode/index.d.ts +1 -0
- package/dist/components/TekWallet/components/ui/ConfirmByPasscode/index.js +15 -9
- package/dist/components/TekWallet/components/ui/ConfirmLayout/index.d.ts +2 -2
- package/dist/components/TekWallet/components/ui/ConfirmLayout/index.js +2 -1
- package/dist/components/TekWallet/components/ui/DatePicker/components/actionBar.d.ts +5 -0
- package/dist/components/TekWallet/components/ui/DatePicker/components/actionBar.js +37 -0
- package/dist/components/TekWallet/components/ui/DatePicker/components/calendarHeader.d.ts +5 -0
- package/dist/components/TekWallet/components/ui/DatePicker/components/calendarHeader.js +41 -0
- package/dist/components/TekWallet/components/ui/DatePicker/components/closeCalendar.d.ts +7 -0
- package/dist/components/TekWallet/components/ui/DatePicker/components/closeCalendar.js +20 -0
- package/dist/components/TekWallet/components/ui/DatePicker/components/customDay.d.ts +2 -0
- package/dist/components/TekWallet/components/ui/DatePicker/components/customDay.js +36 -0
- package/dist/components/TekWallet/components/ui/DatePicker/index.d.ts +18 -0
- package/dist/components/TekWallet/components/ui/DatePicker/index.js +130 -0
- package/dist/components/TekWallet/components/ui/DetailSwap/index.js +5 -7
- package/dist/components/TekWallet/components/ui/Fees/index.d.ts +7 -0
- package/dist/components/TekWallet/components/ui/Fees/index.js +114 -38
- package/dist/components/TekWallet/components/ui/HistorySwap/index.js +3 -1
- package/dist/components/TekWallet/components/ui/InlineTitleValue/index.d.ts +11 -0
- package/dist/components/TekWallet/components/ui/InlineTitleValue/index.js +36 -0
- package/dist/components/TekWallet/components/ui/Input/index.js +6 -10
- package/dist/components/TekWallet/components/ui/ModalDateFilter/index.d.ts +8 -1
- package/dist/components/TekWallet/components/ui/ModalDateFilter/index.js +173 -37
- package/dist/components/TekWallet/components/ui/ModalLayout/index.d.ts +2 -0
- package/dist/components/TekWallet/components/ui/ModalLayout/index.js +1 -1
- package/dist/components/TekWallet/components/ui/OTP/index.d.ts +2 -1
- package/dist/components/TekWallet/components/ui/OTP/index.js +25 -0
- package/dist/components/TekWallet/components/ui/ReceiveFunction/components/sortByBalance.d.ts +10 -0
- package/dist/components/TekWallet/components/ui/ReceiveFunction/components/sortByBalance.js +50 -0
- package/dist/components/TekWallet/components/ui/ReceiveFunction/index.js +29 -15
- package/dist/components/TekWallet/components/ui/ReceiveHistory/index.d.ts +9 -0
- package/dist/components/TekWallet/components/ui/ReceiveHistory/index.js +415 -0
- package/dist/components/TekWallet/components/ui/Row/index.d.ts +9 -0
- package/dist/components/TekWallet/components/ui/Row/index.js +33 -0
- package/dist/components/TekWallet/components/ui/SendExternalTokenWithdrawn/index.d.ts +2 -1
- package/dist/components/TekWallet/components/ui/SendExternalTokenWithdrawn/index.js +4 -2
- package/dist/components/TekWallet/components/ui/SvgPath/index.d.ts +18 -0
- package/dist/components/TekWallet/components/ui/SvgPath/index.js +22 -0
- package/dist/components/TekWallet/components/ui/SwapFunction/index.js +20 -24
- package/dist/components/TekWallet/components/ui/SwapToken/index.d.ts +4 -2
- package/dist/components/TekWallet/components/ui/SwapToken/index.js +24 -23
- package/dist/components/TekWallet/components/ui/TransferInternal/index.d.ts +1 -0
- package/dist/components/TekWallet/components/ui/TransferInternal/index.js +10 -15
- package/dist/components/TekWallet/components/ui/WithdrawFunction/components/selectToken.d.ts +13 -0
- package/dist/components/TekWallet/components/ui/WithdrawFunction/components/selectToken.js +48 -0
- package/dist/components/TekWallet/components/ui/WithdrawFunction/components/sendForm.d.ts +29 -0
- package/dist/components/TekWallet/components/ui/WithdrawFunction/components/sendForm.js +235 -0
- package/dist/components/TekWallet/components/ui/WithdrawFunction/components/sortByBalance.d.ts +7 -0
- package/dist/components/TekWallet/components/ui/WithdrawFunction/components/sortByBalance.js +45 -0
- package/dist/components/TekWallet/components/ui/WithdrawFunction/components/sortByToken.d.ts +7 -0
- package/dist/components/TekWallet/components/ui/WithdrawFunction/components/sortByToken.js +45 -0
- package/dist/components/TekWallet/components/ui/WithdrawFunction/components/summary/infoSummary.d.ts +14 -0
- package/dist/components/TekWallet/components/ui/WithdrawFunction/components/summary/infoSummary.js +101 -0
- package/dist/components/TekWallet/components/ui/WithdrawFunction/components/transferHistory.d.ts +5 -0
- package/dist/components/TekWallet/components/ui/WithdrawFunction/components/transferHistory.js +35 -0
- package/dist/components/TekWallet/components/ui/WithdrawFunction/components/tutorial.d.ts +5 -0
- package/dist/components/TekWallet/components/ui/WithdrawFunction/components/tutorial.js +35 -0
- package/dist/components/TekWallet/components/ui/WithdrawFunction/index.d.ts +11 -3
- package/dist/components/TekWallet/components/ui/WithdrawFunction/index.js +91 -196
- package/dist/components/TekWallet/services/axios/swap-service/type.d.ts +1 -1
- package/dist/components/TekWallet/services/axios/validate-wallet-address-service/type.d.ts +1 -1
- package/dist/components/TekWallet/theme/mui/theme.d.ts +10 -0
- package/dist/components/TekWallet/theme/mui/theme.js +10 -0
- package/dist/components/TekWallet/utils/formatDate.d.ts +8 -0
- package/dist/components/TekWallet/utils/formatDate.js +24 -1
- package/dist/components/TekWallet/utils/sort.utils.d.ts +2 -0
- package/dist/components/TekWallet/utils/sort.utils.js +14 -0
- package/package.json +5 -2
|
@@ -2,6 +2,7 @@ import { GeneralProps } from "../../../types/ui";
|
|
|
2
2
|
interface BackHeaderProps extends GeneralProps {
|
|
3
3
|
overrideBack?: (e: React.MouseEvent<HTMLDivElement>) => void;
|
|
4
4
|
center?: React.ReactNode;
|
|
5
|
+
right?: React.ReactNode;
|
|
5
6
|
hideBack?: boolean;
|
|
6
7
|
}
|
|
7
8
|
declare const BackHeader: (props: BackHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -24,7 +24,7 @@ var ThemeProvider_1 = require("../../../providers/ThemeProvider");
|
|
|
24
24
|
var BackHeader = function (props) {
|
|
25
25
|
var router = (0, useCustomRouter_1.default)();
|
|
26
26
|
var theme = (0, ThemeProvider_1.useTheme)();
|
|
27
|
-
var center = props.center, children = props.children, hideBack = props.hideBack;
|
|
27
|
+
var center = props.center, children = props.children, hideBack = props.hideBack, right = props.right;
|
|
28
28
|
var back = function (e) {
|
|
29
29
|
if (props.overrideBack) {
|
|
30
30
|
props.overrideBack(e);
|
|
@@ -44,6 +44,6 @@ var BackHeader = function (props) {
|
|
|
44
44
|
}, onClick: back, children: [(0, jsx_runtime_1.jsx)(BackArrow_1.default, {}), " ", (0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
|
|
45
45
|
color: theme.palette.text.white,
|
|
46
46
|
fontSize: theme.typography.fontSize12,
|
|
47
|
-
}, children: "Back" })] })), !!center && ((0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.center), theme.mixins.headerTitle), children: center })), children] }));
|
|
47
|
+
}, children: "Back" })] })), !!center && ((0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.center), theme.mixins.headerTitle), children: center })), children, right && (0, jsx_runtime_1.jsx)(material_1.Box, { sx: { marginLeft: "auto" }, children: right })] }));
|
|
48
48
|
};
|
|
49
49
|
exports.default = BackHeader;
|
|
@@ -14,6 +14,7 @@ var useBoolean_1 = require("../../../hooks/useBoolean");
|
|
|
14
14
|
var Button_1 = __importDefault(require("../Button"));
|
|
15
15
|
var Text_1 = __importDefault(require("../Text"));
|
|
16
16
|
var getStandardNumber_1 = __importDefault(require("../../../utils/getStandardNumber"));
|
|
17
|
+
var SvgPath_1 = require("../SvgPath");
|
|
17
18
|
var CardForm = function (_a) {
|
|
18
19
|
var _b, _c, _d, _e, _f, _g;
|
|
19
20
|
var selectedToken = _a.selectedToken, onChange = _a.onChange, number = _a.number;
|
|
@@ -55,7 +56,7 @@ var CardForm = function (_a) {
|
|
|
55
56
|
}, children: [(0, getStandardNumber_1.default)(Number(displayToken === null || displayToken === void 0 ? void 0 : displayToken.balance)), " ", displayToken === null || displayToken === void 0 ? void 0 : displayToken.full_name] })] })] }), (0, jsx_runtime_1.jsxs)(material_1.Box, { className: "flex justify-between mt-5 mb-4", children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { className: "flex items-center gap-1 cursor-pointer", onClick: function () { return selectTokenForm.setTrue(); }, children: [(0, jsx_runtime_1.jsx)(Icon_1.default, { src: displayToken === null || displayToken === void 0 ? void 0 : displayToken.link, width: 20, height: 20, className: "rounded-full" }), (0, jsx_runtime_1.jsx)(Text_1.default, { component: "p", sx: {
|
|
56
57
|
color: theme.palette.text.blackContrast,
|
|
57
58
|
fontWeight: theme.typography.fontWeight600,
|
|
58
|
-
}, children: (displayToken === null || displayToken === void 0 ? void 0 : displayToken.name) || (displayToken === null || displayToken === void 0 ? void 0 : displayToken.full_name) }), (0, jsx_runtime_1.jsx)(
|
|
59
|
+
}, children: (displayToken === null || displayToken === void 0 ? void 0 : displayToken.name) || (displayToken === null || displayToken === void 0 ? void 0 : displayToken.full_name) }), (0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { width: 10, height: 10 }, children: SvgPath_1.IC_ARROW_BLACK_DROP })] }), (0, jsx_runtime_1.jsx)(material_1.Box, { className: "w-full flex justify-end items-end", children: (0, jsx_runtime_1.jsx)(material_1.InputBase, { type: "number", value: number === undefined || number === null ? "" : (0, getStandardNumber_1.default)(number), onChange: onChange, classes: {
|
|
59
60
|
input: "text-end text-contrast max-w-fit bg-transparent border-none outline-none text-16 leading-140 font-bold placeholder:text-accent-1",
|
|
60
61
|
}, sx: {
|
|
61
62
|
"input::placeholder": {
|
|
@@ -6,11 +6,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
7
|
var material_1 = require("@mui/material");
|
|
8
8
|
var Icon_1 = __importDefault(require("../Icon"));
|
|
9
|
-
var getIcon_1 = __importDefault(require("../../../utils/getIcon"));
|
|
10
9
|
var providers_1 = require("../../../providers");
|
|
11
10
|
var useBoolean_1 = require("../../../hooks/useBoolean");
|
|
12
11
|
var Text_1 = __importDefault(require("../Text"));
|
|
13
12
|
var roundToTwoSignificantDecimals_1 = __importDefault(require("../../../utils/roundToTwoSignificantDecimals"));
|
|
13
|
+
var SvgPath_1 = require("../SvgPath");
|
|
14
14
|
var CardTo = function (_a) {
|
|
15
15
|
var selectedOutputToken = _a.selectedOutputToken, token = _a.token, value = _a.value;
|
|
16
16
|
var selectTokenTo = (0, useBoolean_1.useBoolean)("selectTokenTo");
|
|
@@ -28,7 +28,7 @@ var CardTo = function (_a) {
|
|
|
28
28
|
}, children: "To" }) }), (0, jsx_runtime_1.jsxs)(material_1.Box, { className: "flex justify-between mt-5 mb-4", children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { className: "flex items-center gap-1 cursor-pointer", onClick: function () { return selectTokenTo.setTrue(); }, children: [(0, jsx_runtime_1.jsx)(Icon_1.default, { src: selectedOutputToken === null || selectedOutputToken === void 0 ? void 0 : selectedOutputToken.link, width: 20, height: 20, className: "rounded-full" }), (0, jsx_runtime_1.jsx)(Text_1.default, { component: "p", sx: {
|
|
29
29
|
color: theme.palette.text.blackContrast,
|
|
30
30
|
fontWeight: theme.typography.fontWeight600,
|
|
31
|
-
}, children: (selectedOutputToken === null || selectedOutputToken === void 0 ? void 0 : selectedOutputToken.name) || (selectedOutputToken === null || selectedOutputToken === void 0 ? void 0 : selectedOutputToken.full_name) }), (0, jsx_runtime_1.jsx)(
|
|
31
|
+
}, children: (selectedOutputToken === null || selectedOutputToken === void 0 ? void 0 : selectedOutputToken.name) || (selectedOutputToken === null || selectedOutputToken === void 0 ? void 0 : selectedOutputToken.full_name) }), (0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { width: 10, height: 10 }, children: SvgPath_1.IC_ARROW_BLACK_DROP })] }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
|
|
32
32
|
color: theme.palette.text.blackContrast,
|
|
33
33
|
fontWeight: theme.typography.fontWeight600,
|
|
34
34
|
fontSize: theme.typography.fontSize16,
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.default = Column;
|
|
26
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
27
|
+
var material_1 = require("@mui/material");
|
|
28
|
+
var ThemeProvider_1 = require("../../../providers/ThemeProvider");
|
|
29
|
+
function Column(props) {
|
|
30
|
+
var children = props.children, onClick = props.onClick, sx = props.sx, rest = __rest(props, ["children", "onClick", "sx"]);
|
|
31
|
+
var theme = (0, ThemeProvider_1.useTheme)();
|
|
32
|
+
return ((0, jsx_runtime_1.jsx)(material_1.Box, __assign({ sx: __assign(__assign({}, theme.mixins.column), sx), onClick: onClick }, rest, { children: children })));
|
|
33
|
+
}
|
|
@@ -5,6 +5,7 @@ interface ConfirmByPasscodeProps extends Omit<GeneralProps, "onclick" | "sx" | "
|
|
|
5
5
|
onConfirmSuccess?: (passcode: string) => any;
|
|
6
6
|
action?: TransactionSlug;
|
|
7
7
|
customAction?: string;
|
|
8
|
+
backgroundColor?: string;
|
|
8
9
|
}
|
|
9
10
|
export interface ConfirmByPasscodeRef extends Omit<DrawerComponentRef, "trigger"> {
|
|
10
11
|
clearData: () => void;
|
|
@@ -94,6 +94,7 @@ var ThemeProvider_1 = require("../../../providers/ThemeProvider");
|
|
|
94
94
|
var LoadingLayout_1 = __importDefault(require("../LoadingLayout"));
|
|
95
95
|
var DrawerComponent_1 = __importDefault(require("../DrawerComponent"));
|
|
96
96
|
var authentication_by_passcode_service_1 = __importDefault(require("../../../services/axios/authentication-by-passcode-service"));
|
|
97
|
+
var xhub_keyboard_1 = require("xhub-keyboard");
|
|
97
98
|
var handleVerifyPasscode = function (data) { return __awaiter(void 0, void 0, void 0, function () {
|
|
98
99
|
var response, err_1;
|
|
99
100
|
return __generator(this, function (_a) {
|
|
@@ -114,7 +115,7 @@ var handleVerifyPasscode = function (data) { return __awaiter(void 0, void 0, vo
|
|
|
114
115
|
}); };
|
|
115
116
|
var passcodeLength = 6;
|
|
116
117
|
var ConfirmByPasscode = (0, react_1.forwardRef)(function (props, ref) {
|
|
117
|
-
var
|
|
118
|
+
var onConfirmSuccess = props.onConfirmSuccess, backgroundColor = props.backgroundColor;
|
|
118
119
|
var theme = (0, ThemeProvider_1.useTheme)();
|
|
119
120
|
var _a = (0, react_1.useState)(""), otp = _a[0], setOtp = _a[1];
|
|
120
121
|
var loadingRef = (0, react_1.useRef)(null);
|
|
@@ -194,14 +195,19 @@ var ConfirmByPasscode = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
194
195
|
width: "100%",
|
|
195
196
|
maxWidth: "calc(100dvw - 2rem)",
|
|
196
197
|
display: "flex",
|
|
197
|
-
}, children: (0, jsx_runtime_1.jsx)(
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
198
|
+
}, children: (0, jsx_runtime_1.jsx)(xhub_keyboard_1.Keyboard, { id: "input-keyboard", keyboardType: xhub_keyboard_1.KeyboardType.Double, value: otp, onChange: function (value) { return handleOtpChange(value); }, classNames: {
|
|
199
|
+
container: "text-black",
|
|
200
|
+
}, openInit: true, children: (0, jsx_runtime_1.jsx)(LoadingLayout_1.default, { initLoading: false, ref: loadingRef, sx: {
|
|
201
|
+
backgroundColor: "transparent",
|
|
202
|
+
width: "100%",
|
|
203
|
+
}, children: (0, jsx_runtime_1.jsx)(ModalLayout_1.default, { title: "Enter Passcode", onClose: handleClose, backgroundColor: backgroundColor, children: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { justifyContent: "center", alignItems: "center", gap: "0.75rem", width: "100%" }), children: [(0, jsx_runtime_1.jsx)(xhub_keyboard_1.Label, { className: "w-full", useBrowserInput: false, htmlFor: "input-keyboard", inputProps: {
|
|
204
|
+
onChange: function (e) { return handleOtpChange(e.target.value); },
|
|
205
|
+
value: otp,
|
|
206
|
+
}, children: (0, jsx_runtime_1.jsx)(OTP_1.default, { value: otp, onChange: handleOtpChange, numInputs: passcodeLength, otpInputType: OTP_1.OtpInputType.OTP }) }), (0, jsx_runtime_1.jsx)(material_1.Box, { children: (0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
|
|
207
|
+
fontSize: theme.typography.fontSize12,
|
|
208
|
+
fontWeight: theme.typography.fontWeight500,
|
|
209
|
+
color: theme.palette.text.accent2,
|
|
210
|
+
}, children: "Forgot password?" }) }), !!authError && ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign({}, theme.mixins.validationError), { alignSelf: "flex-start" }), children: authError }))] }) }) }) }) }));
|
|
205
211
|
});
|
|
206
212
|
ConfirmByPasscode.displayName = "ConfirmByPasscode";
|
|
207
213
|
exports.default = ConfirmByPasscode;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { DrawerComponentProps, DrawerComponentRef } from "../DrawerComponent";
|
|
2
|
-
import { TransactionSlug } from "../../../services/axios/get-activities-service/type";
|
|
3
2
|
export interface ConfirmLayoutProps extends DrawerComponentProps {
|
|
4
|
-
action:
|
|
3
|
+
action: string;
|
|
5
4
|
header?: {
|
|
6
5
|
rightAdornment?: React.ReactNode;
|
|
6
|
+
overrideHeader?: React.ReactNode;
|
|
7
7
|
};
|
|
8
8
|
confirmAction?: React.ReactNode;
|
|
9
9
|
}
|
|
@@ -67,6 +67,7 @@ var react_1 = require("react");
|
|
|
67
67
|
var ChildPageLayout_1 = __importDefault(require("../../../layouts/ChildPageLayout"));
|
|
68
68
|
var PageHeader_1 = __importDefault(require("../PageHeader"));
|
|
69
69
|
var ConfirmLayout = (0, react_1.forwardRef)(function (props, ref) {
|
|
70
|
+
var _a;
|
|
70
71
|
var children = props.children, action = props.action, header = props.header, confirmAction = props.confirmAction, rest = __rest(props, ["children", "action", "header", "confirmAction"]);
|
|
71
72
|
var theme = (0, ThemeProvider_1.useTheme)();
|
|
72
73
|
var confirmByPasscodeDrawerRef = (0, react_1.useRef)(null);
|
|
@@ -92,7 +93,7 @@ var ConfirmLayout = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
92
93
|
(_a = confirmByPasscodeDrawerRef.current) === null || _a === void 0 ? void 0 : _a.unlockStatus();
|
|
93
94
|
},
|
|
94
95
|
}); });
|
|
95
|
-
return ((0, jsx_runtime_1.jsx)(DrawerComponent_1.default, __assign({ direction: DrawerComponent_1.DRAWER_DIRECTION.RIGHT, ref: confirmByPasscodeDrawerRef }, rest, { children: (0, jsx_runtime_1.jsx)(ChildPageLayout_1.default, { header: (0, jsx_runtime_1.jsx)(PageHeader_1.default, { title: action, overrideBack: handleOnClose, rightAdornment: header === null || header === void 0 ? void 0 : header.rightAdornment }), footer: confirmAction, children: (0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { alignItems: "center", gap: theme.mixins.gaps.g16, padding: theme.mixins.customPadding.p16 }), children: children }) }) })));
|
|
96
|
+
return ((0, jsx_runtime_1.jsx)(DrawerComponent_1.default, __assign({ direction: DrawerComponent_1.DRAWER_DIRECTION.RIGHT, ref: confirmByPasscodeDrawerRef }, rest, { children: (0, jsx_runtime_1.jsx)(ChildPageLayout_1.default, { header: (_a = header === null || header === void 0 ? void 0 : header.overrideHeader) !== null && _a !== void 0 ? _a : ((0, jsx_runtime_1.jsx)(PageHeader_1.default, { title: action, overrideBack: handleOnClose, rightAdornment: header === null || header === void 0 ? void 0 : header.rightAdornment })), footer: confirmAction, children: (0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { alignItems: "center", gap: theme.mixins.gaps.g16, padding: theme.mixins.customPadding.p16 }), children: children }) }) })));
|
|
96
97
|
});
|
|
97
98
|
ConfirmLayout.displayName = "ConfirmLayout";
|
|
98
99
|
exports.default = ConfirmLayout;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { PickersActionBarProps } from "@mui/x-date-pickers/PickersActionBar";
|
|
2
|
+
import dayjs from "dayjs";
|
|
3
|
+
export default function CustomActionBar(props: PickersActionBarProps & {
|
|
4
|
+
currentValue?: dayjs.Dayjs | null;
|
|
5
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = CustomActionBar;
|
|
7
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
var Button_1 = __importDefault(require("@mui/material/Button"));
|
|
9
|
+
var hooks_1 = require("@mui/x-date-pickers/hooks");
|
|
10
|
+
var material_1 = require("@mui/material");
|
|
11
|
+
function CustomActionBar(props) {
|
|
12
|
+
var actions = props.actions, className = props.className, currentValue = props.currentValue;
|
|
13
|
+
var _a = (0, hooks_1.usePickerActionsContext)(), acceptValueChanges = _a.acceptValueChanges, setValueToToday = _a.setValueToToday;
|
|
14
|
+
if (actions == null || actions.length === 0) {
|
|
15
|
+
return null;
|
|
16
|
+
}
|
|
17
|
+
return ((0, jsx_runtime_1.jsx)(material_1.Box, { className: className, sx: {
|
|
18
|
+
width: "100%",
|
|
19
|
+
paddingY: "16px",
|
|
20
|
+
borderTop: "1px solid #E0E0E0",
|
|
21
|
+
}, children: (0, jsx_runtime_1.jsx)(Button_1.default, { sx: {
|
|
22
|
+
width: "100%",
|
|
23
|
+
minHeight: "40px",
|
|
24
|
+
borderRadius: "12px",
|
|
25
|
+
fontSize: "16px",
|
|
26
|
+
fontWeight: 500,
|
|
27
|
+
lineHeight: "140%",
|
|
28
|
+
color: "primary",
|
|
29
|
+
}, onClick: function () {
|
|
30
|
+
if (currentValue) {
|
|
31
|
+
acceptValueChanges();
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
setValueToToday();
|
|
35
|
+
}
|
|
36
|
+
}, children: "Confirm" }) }));
|
|
37
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { PickersCalendarHeaderProps } from "@mui/x-date-pickers/PickersCalendarHeader";
|
|
2
|
+
import dayjs from "dayjs";
|
|
3
|
+
export default function CustomCalendarHeader(props: PickersCalendarHeaderProps & {
|
|
4
|
+
currentValue?: dayjs.Dayjs;
|
|
5
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = CustomCalendarHeader;
|
|
7
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
var styles_1 = require("@mui/material/styles");
|
|
9
|
+
var Typography_1 = __importDefault(require("@mui/material/Typography"));
|
|
10
|
+
var Box_1 = __importDefault(require("@mui/material/Box"));
|
|
11
|
+
var closeCalendar_1 = __importDefault(require("./closeCalendar"));
|
|
12
|
+
var hooks_1 = require("@mui/x-date-pickers/hooks");
|
|
13
|
+
var SvgPath_1 = require("../../SvgPath");
|
|
14
|
+
var material_1 = require("@mui/material");
|
|
15
|
+
var CustomCalendarHeaderRoot = (0, styles_1.styled)("div")({
|
|
16
|
+
display: "flex",
|
|
17
|
+
justifyContent: "space-between",
|
|
18
|
+
padding: "8px 16px",
|
|
19
|
+
alignItems: "center",
|
|
20
|
+
});
|
|
21
|
+
function CustomCalendarHeader(props) {
|
|
22
|
+
var currentMonth = props.currentMonth, onMonthChange = props.onMonthChange;
|
|
23
|
+
var cancelValueChanges = (0, hooks_1.usePickerActionsContext)().cancelValueChanges;
|
|
24
|
+
var selectNextMonth = function () { return onMonthChange(currentMonth.add(1, "month")); };
|
|
25
|
+
var selectPreviousMonth = function () { return onMonthChange(currentMonth.subtract(1, "month")); };
|
|
26
|
+
return ((0, jsx_runtime_1.jsxs)(CustomCalendarHeaderRoot, { sx: {
|
|
27
|
+
position: "relative",
|
|
28
|
+
paddingX: "0px",
|
|
29
|
+
}, children: [(0, jsx_runtime_1.jsx)(Box_1.default, { onClick: selectPreviousMonth, children: (0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { width: "24px", height: "24px" }, children: SvgPath_1.IC_CHEVRON_LEFT }) }), (0, jsx_runtime_1.jsx)(Typography_1.default, { sx: {
|
|
30
|
+
fontSize: "14px",
|
|
31
|
+
fontWeight: "700",
|
|
32
|
+
lineHeight: "140%",
|
|
33
|
+
color: "text.primary",
|
|
34
|
+
}, children: currentMonth.format("MMMM YYYY") }), (0, jsx_runtime_1.jsx)(Box_1.default, { onClick: selectNextMonth, children: (0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { width: "24px", height: "24px" }, children: SvgPath_1.IC_CHEVRON_RIGHT }) }), (0, jsx_runtime_1.jsx)(closeCalendar_1.default, { sx: {
|
|
35
|
+
position: "absolute",
|
|
36
|
+
right: "-24px",
|
|
37
|
+
top: "-12px",
|
|
38
|
+
}, closeCalendar: function () {
|
|
39
|
+
cancelValueChanges();
|
|
40
|
+
} })] }));
|
|
41
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SxProps } from "@mui/material";
|
|
2
|
+
interface CloseCalendarProps {
|
|
3
|
+
sx?: SxProps;
|
|
4
|
+
closeCalendar: () => void;
|
|
5
|
+
}
|
|
6
|
+
export default function CloseCalendar(props: CloseCalendarProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export type { CloseCalendarProps };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = CloseCalendar;
|
|
4
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
var material_1 = require("@mui/material");
|
|
6
|
+
function CloseCalendar(props) {
|
|
7
|
+
var closeCalendar = props.closeCalendar, sx = props.sx;
|
|
8
|
+
return ((0, jsx_runtime_1.jsx)(material_1.Box, { onClick: closeCalendar, sx: sx, children: (0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
|
|
9
|
+
backgroundColor: "primary.main",
|
|
10
|
+
borderRadius: "100%",
|
|
11
|
+
width: "24px",
|
|
12
|
+
height: "24px",
|
|
13
|
+
display: "flex",
|
|
14
|
+
alignItems: "center",
|
|
15
|
+
justifyContent: "center",
|
|
16
|
+
}, children: (0, jsx_runtime_1.jsx)(material_1.IconButton, { children: (0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: {
|
|
17
|
+
width: "10px",
|
|
18
|
+
height: "10px",
|
|
19
|
+
}, viewBox: "0 0 10 10", children: (0, jsx_runtime_1.jsx)("path", { d: "M1 9L9 1M1 1L9 9", stroke: "white", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) }) }) }) }));
|
|
20
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.default = CustomDay;
|
|
26
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
27
|
+
var date_fns_1 = require("date-fns");
|
|
28
|
+
var PickersDay_1 = require("@mui/x-date-pickers/PickersDay");
|
|
29
|
+
function CustomDay(props) {
|
|
30
|
+
var day = props.day, outsideCurrentMonth = props.outsideCurrentMonth, other = __rest(props, ["day", "outsideCurrentMonth"]);
|
|
31
|
+
var isSatSun = (0, date_fns_1.isWeekend)(day.toDate());
|
|
32
|
+
return ((0, jsx_runtime_1.jsx)(PickersDay_1.PickersDay, __assign({}, other, { day: day, outsideCurrentMonth: outsideCurrentMonth, sx: {
|
|
33
|
+
borderRadius: "12px",
|
|
34
|
+
color: isSatSun ? "red" : "inherit",
|
|
35
|
+
} })));
|
|
36
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import dayjs from "dayjs";
|
|
2
|
+
import { SxProps } from "@mui/material";
|
|
3
|
+
export declare enum DatePickerFormat {
|
|
4
|
+
DD_MM_YYYY = "DD/MM/YYYY",
|
|
5
|
+
MM_DD_YYYY = "MM/DD/YYYY",
|
|
6
|
+
YYYY_MM_DD = "YYYY/MM/DD"
|
|
7
|
+
}
|
|
8
|
+
interface DatePickerProps {
|
|
9
|
+
onSelect: (date: dayjs.Dayjs | null) => void;
|
|
10
|
+
format?: DatePickerFormat;
|
|
11
|
+
value?: dayjs.Dayjs | null;
|
|
12
|
+
sx?: SxProps;
|
|
13
|
+
disablePastFrom?: dayjs.Dayjs | null;
|
|
14
|
+
disableFuture?: boolean;
|
|
15
|
+
onError?: (error: string) => void;
|
|
16
|
+
}
|
|
17
|
+
export default function CustomDatePicker(props: DatePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,130 @@
|
|
|
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 __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.DatePickerFormat = void 0;
|
|
18
|
+
exports.default = CustomDatePicker;
|
|
19
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
20
|
+
var AdapterDayjs_1 = require("@mui/x-date-pickers/AdapterDayjs");
|
|
21
|
+
var DatePicker_1 = require("@mui/x-date-pickers/DatePicker");
|
|
22
|
+
var LocalizationProvider_1 = require("@mui/x-date-pickers/LocalizationProvider");
|
|
23
|
+
var calendarHeader_1 = __importDefault(require("./components/calendarHeader"));
|
|
24
|
+
var actionBar_1 = __importDefault(require("./components/actionBar"));
|
|
25
|
+
var customDay_1 = __importDefault(require("./components/customDay"));
|
|
26
|
+
var dayjs_1 = __importDefault(require("dayjs"));
|
|
27
|
+
var updateLocale_1 = __importDefault(require("dayjs/plugin/updateLocale"));
|
|
28
|
+
var material_1 = require("@mui/material");
|
|
29
|
+
var DatePickerFormat;
|
|
30
|
+
(function (DatePickerFormat) {
|
|
31
|
+
DatePickerFormat["DD_MM_YYYY"] = "DD/MM/YYYY";
|
|
32
|
+
DatePickerFormat["MM_DD_YYYY"] = "MM/DD/YYYY";
|
|
33
|
+
DatePickerFormat["YYYY_MM_DD"] = "YYYY/MM/DD";
|
|
34
|
+
})(DatePickerFormat || (exports.DatePickerFormat = DatePickerFormat = {}));
|
|
35
|
+
function CustomDatePicker(props) {
|
|
36
|
+
var onSelect = props.onSelect, format = props.format, sx = props.sx, value = props.value, disablePastFrom = props.disablePastFrom, disableFuture = props.disableFuture, onError = props.onError;
|
|
37
|
+
dayjs_1.default.extend(updateLocale_1.default);
|
|
38
|
+
dayjs_1.default.updateLocale("en", {
|
|
39
|
+
weekStart: 1,
|
|
40
|
+
});
|
|
41
|
+
return ((0, jsx_runtime_1.jsx)(LocalizationProvider_1.LocalizationProvider, { dateAdapter: AdapterDayjs_1.AdapterDayjs, children: (0, jsx_runtime_1.jsx)(DatePicker_1.DatePicker, { closeOnSelect: false, value: value, enableAccessibleFieldDOMStructure: false, shouldDisableDate: function (date) {
|
|
42
|
+
if (disablePastFrom) {
|
|
43
|
+
return date.isBefore(disablePastFrom);
|
|
44
|
+
}
|
|
45
|
+
return false;
|
|
46
|
+
}, disableFuture: disableFuture, onError: function (error) {
|
|
47
|
+
onError === null || onError === void 0 ? void 0 : onError(error !== null && error !== void 0 ? error : "");
|
|
48
|
+
}, onChange: function (value) {
|
|
49
|
+
onSelect(value);
|
|
50
|
+
}, slots: {
|
|
51
|
+
calendarHeader: calendarHeader_1.default,
|
|
52
|
+
actionBar: function (params) { return (0, jsx_runtime_1.jsx)(actionBar_1.default, __assign({}, params, { currentValue: value })); },
|
|
53
|
+
day: customDay_1.default,
|
|
54
|
+
textField: function (params) { return ((0, jsx_runtime_1.jsx)(material_1.TextField, __assign({}, params, { sx: sx !== null && sx !== void 0 ? sx : {
|
|
55
|
+
borderRadius: "12px",
|
|
56
|
+
backgroundColor: "white",
|
|
57
|
+
fontSize: "0.813rem",
|
|
58
|
+
fontWeight: 400,
|
|
59
|
+
lineHeight: "140%",
|
|
60
|
+
width: "100%",
|
|
61
|
+
"& .MuiInputBase-root": {
|
|
62
|
+
maxHeight: "2.5rem",
|
|
63
|
+
width: "100%",
|
|
64
|
+
},
|
|
65
|
+
"& .MuiOutlinedInput-root": {
|
|
66
|
+
borderRadius: "12px",
|
|
67
|
+
width: "100%",
|
|
68
|
+
"& .MuiInputBase-input": {
|
|
69
|
+
fontSize: "0.813rem",
|
|
70
|
+
fontWeight: 500,
|
|
71
|
+
lineHeight: "140%",
|
|
72
|
+
color: "primary",
|
|
73
|
+
width: "100%",
|
|
74
|
+
},
|
|
75
|
+
"& .MuiInputAdornment-root .MuiButtonBase-root .MuiSvgIcon-root": {
|
|
76
|
+
width: "1.25rem",
|
|
77
|
+
height: "1.25rem",
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
}, onClick: function (e) {
|
|
81
|
+
var _a, _b;
|
|
82
|
+
(_b = (_a = params.inputProps) === null || _a === void 0 ? void 0 : _a.onClick) === null || _b === void 0 ? void 0 : _b.call(_a, e);
|
|
83
|
+
} }))); },
|
|
84
|
+
}, dayOfWeekFormatter: function (weekday) { return "".concat(weekday.format("ddd")); }, slotProps: {
|
|
85
|
+
toolbar: { hidden: true },
|
|
86
|
+
mobilePaper: {
|
|
87
|
+
sx: {
|
|
88
|
+
borderRadius: "16px",
|
|
89
|
+
margin: "0",
|
|
90
|
+
overflow: "visible",
|
|
91
|
+
paddingX: "16px",
|
|
92
|
+
"& .MuiDialogContent-root": {
|
|
93
|
+
overflow: "visible",
|
|
94
|
+
width: "100%",
|
|
95
|
+
"& .MuiDayCalendar-root": {
|
|
96
|
+
"& .MuiDayCalendar-header": {
|
|
97
|
+
"& .MuiDayCalendar-weekDayLabel": {
|
|
98
|
+
fontSize: "16px",
|
|
99
|
+
fontWeight: 400,
|
|
100
|
+
lineHeight: "140%",
|
|
101
|
+
color: "primary",
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
"& .MuiPickersDay-root": {
|
|
105
|
+
fontSize: "16px",
|
|
106
|
+
fontWeight: 400,
|
|
107
|
+
lineHeight: "140%",
|
|
108
|
+
color: "primary",
|
|
109
|
+
borderRadius: "100%",
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
"& .MuiPickersLayout-root": {
|
|
114
|
+
overflow: "visible",
|
|
115
|
+
width: "100%",
|
|
116
|
+
"& .MuiDateCalendar-root": {
|
|
117
|
+
width: "100%",
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
"& .MuiPickersLayout-contentWrapper": {
|
|
121
|
+
overflow: "visible",
|
|
122
|
+
},
|
|
123
|
+
"& .MuiDateCalendar-root": {
|
|
124
|
+
overflow: "visible",
|
|
125
|
+
},
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
field: {},
|
|
129
|
+
}, format: format !== null && format !== void 0 ? format : DatePickerFormat.DD_MM_YYYY }) }));
|
|
130
|
+
}
|
|
@@ -17,8 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
18
18
|
var material_1 = require("@mui/material");
|
|
19
19
|
var providers_1 = require("../../../providers");
|
|
20
|
-
var getIcon_1 = __importDefault(require("../../../utils/getIcon"));
|
|
21
|
-
var Icon_1 = __importDefault(require("../Icon"));
|
|
22
20
|
var LineValue_1 = __importDefault(require("../LineValue"));
|
|
23
21
|
var Text_1 = __importDefault(require("../Text"));
|
|
24
22
|
var DetailSwap = function (props) {
|
|
@@ -34,11 +32,11 @@ var DetailSwap = function (props) {
|
|
|
34
32
|
color: theme.palette.text.accent,
|
|
35
33
|
fontSize: theme.typography.fontSize12,
|
|
36
34
|
fontWeight: theme.typography.fontWeight400,
|
|
37
|
-
}, children: "Best Price" }), value: (0, jsx_runtime_1.
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
35
|
+
}, children: "Best Price" }), value: (0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g4 }), children: (0, jsx_runtime_1.jsxs)(Text_1.default, { className: "truncate", sx: {
|
|
36
|
+
color: theme.palette.text.blackContrast,
|
|
37
|
+
fontSize: theme.typography.fontSize12,
|
|
38
|
+
fontWeight: theme.typography.fontWeight500,
|
|
39
|
+
}, children: ["1 ", (_b = props.selectedToken) === null || _b === void 0 ? void 0 : _b.full_name, " ~ ", getOutputID === null || getOutputID === void 0 ? void 0 : getOutputID.swap_amount, " ", getOutputID && getOutputID.full_name] }) }) }), (0, jsx_runtime_1.jsx)(LineValue_1.default, { field: (0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
|
|
42
40
|
color: theme.palette.text.accent,
|
|
43
41
|
fontSize: theme.typography.fontSize12,
|
|
44
42
|
fontWeight: theme.typography.fontWeight400,
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
import { AccordionProps } from "@mui/material";
|
|
2
|
+
export declare enum FeesStyle {
|
|
3
|
+
DEFAULT = "default",
|
|
4
|
+
WITH_BACKGROUND = "withBackground"
|
|
5
|
+
}
|
|
2
6
|
export interface FeesProps extends Omit<AccordionProps, "children"> {
|
|
3
7
|
feesData: string;
|
|
4
8
|
amount: number;
|
|
5
9
|
isFeePaidByAmount?: boolean;
|
|
6
10
|
setIsEnoughBalanceToPayFee?: (isEnough: boolean) => void;
|
|
7
11
|
tokenSlug: string;
|
|
12
|
+
haveBackground?: boolean;
|
|
13
|
+
feesStyle?: FeesStyle;
|
|
14
|
+
estimateReceive?: string | number;
|
|
8
15
|
}
|
|
9
16
|
declare function Fees(props: FeesProps): import("react/jsx-runtime").JSX.Element;
|
|
10
17
|
export default Fees;
|