tek-wallet 0.0.806 → 0.0.808
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/README.md +118 -8
- package/dist/components/TekWallet/components/index.d.ts +2 -1
- package/dist/components/TekWallet/components/index.js +2 -1
- package/dist/components/TekWallet/components/layouts/ChildPageLayout/index.js +3 -3
- package/dist/components/TekWallet/components/layouts/DefaultPageLayout/index.js +3 -3
- package/dist/components/TekWallet/components/ui/ActivitiesTypeSlice/index.js +12 -8
- package/dist/components/TekWallet/components/ui/ActivityDetail/index.js +17 -19
- package/dist/components/TekWallet/components/ui/ActivityItem/index.js +13 -13
- package/dist/components/TekWallet/components/ui/AmountGroupAndChart/index.js +3 -3
- package/dist/components/TekWallet/components/ui/AnalyticGroup/index.js +20 -20
- package/dist/components/TekWallet/components/ui/AnalyticGroupCenter/index.js +9 -8
- package/dist/components/TekWallet/components/ui/AppBackDrop/index.js +3 -3
- package/dist/components/TekWallet/components/ui/AppDialog/index.js +3 -3
- package/dist/components/TekWallet/components/ui/AssetViewHeader/index.js +9 -8
- package/dist/components/TekWallet/components/ui/BackHeader/index.js +6 -6
- package/dist/components/TekWallet/components/ui/BottomActionLayout/index.js +3 -3
- package/dist/components/TekWallet/components/ui/Button/index.js +4 -4
- package/dist/components/TekWallet/components/ui/CardToken/index.js +8 -8
- package/dist/components/TekWallet/components/ui/Column/index.js +3 -3
- package/dist/components/TekWallet/components/ui/ConfirmByPasscode/index.js +6 -4
- package/dist/components/TekWallet/components/ui/ConfirmLayout/index.js +3 -3
- package/dist/components/TekWallet/components/ui/ConfirmSwapToken/Result.js +17 -17
- package/dist/components/TekWallet/components/ui/ConfirmTransfer/index.js +3 -3
- package/dist/components/TekWallet/components/ui/CopyTextComponent/index.js +6 -6
- package/dist/components/TekWallet/components/ui/CustomTooltip/index.js +4 -2
- package/dist/components/TekWallet/components/ui/DetailSwap/index.js +9 -9
- package/dist/components/TekWallet/components/ui/DialogContentLayout/index.js +6 -6
- package/dist/components/TekWallet/components/ui/DrawerDrag/index.js +3 -3
- package/dist/components/TekWallet/components/ui/EmptyData/index.js +3 -3
- package/dist/components/TekWallet/components/ui/Fees/index.js +25 -25
- package/dist/components/TekWallet/components/ui/FeesAutoDebounce/index.js +24 -25
- package/dist/components/TekWallet/components/ui/FiatDeposit/components/shareAction.js +4 -6
- package/dist/components/TekWallet/components/ui/FiatDeposit/components/shareDrawer.js +2 -5
- package/dist/components/TekWallet/components/ui/FiatDeposit/components/shareImage.js +1 -2
- package/dist/components/TekWallet/components/ui/FiatDeposit/index.js +28 -26
- package/dist/components/TekWallet/components/ui/Formatter/index.js +3 -0
- package/dist/components/TekWallet/components/ui/FunctionItem/index.js +4 -5
- package/dist/components/TekWallet/components/ui/Icon/index.js +1 -1
- package/dist/components/TekWallet/components/ui/IconText/index.js +3 -3
- package/dist/components/TekWallet/components/ui/IncomeWallet/components/AnalyticGroup.js +19 -20
- package/dist/components/TekWallet/components/ui/IncomeWallet/components/BalanceChart.js +5 -5
- package/dist/components/TekWallet/components/ui/IncomeWallet/components/FunctionItem.js +3 -3
- package/dist/components/TekWallet/components/ui/IncomeWallet/components/HistoryItem.js +3 -3
- package/dist/components/TekWallet/components/ui/IncomeWallet/components/WealthDeposit.js +3 -1
- package/dist/components/TekWallet/components/ui/IncomeWallet/components/WealthWithdraw.js +3 -1
- package/dist/components/TekWallet/components/ui/IncomeWallet/components/history/index.js +3 -3
- package/dist/components/TekWallet/components/ui/IncomeWallet/index.js +10 -10
- package/dist/components/TekWallet/components/ui/InlineTitleValue/index.js +3 -3
- package/dist/components/TekWallet/components/ui/Input/index.js +5 -5
- package/dist/components/TekWallet/components/ui/LineValue/index.js +3 -3
- package/dist/components/TekWallet/components/ui/ListItemCustom/index.js +8 -6
- package/dist/components/TekWallet/components/ui/LoadingLayout/index.js +3 -3
- package/dist/components/TekWallet/components/ui/LockToken/index.js +4 -4
- package/dist/components/TekWallet/components/ui/ModalCheckboxToken/index.js +22 -22
- package/dist/components/TekWallet/components/ui/ModalDateFilter/index.js +11 -11
- package/dist/components/TekWallet/components/ui/ModalLayout/index.js +3 -3
- package/dist/components/TekWallet/components/ui/ModalSelectToken/index.js +12 -12
- package/dist/components/TekWallet/components/ui/ModalStatusFilter/index.js +16 -16
- package/dist/components/TekWallet/components/ui/ModalTitle/index.js +3 -3
- package/dist/components/TekWallet/components/ui/NeonLineChart/index.js +4 -4
- package/dist/components/TekWallet/components/ui/NetworkSelection/index.js +5 -5
- package/dist/components/TekWallet/components/ui/OTP/index.js +24 -18
- package/dist/components/TekWallet/components/ui/PageHeader/index.js +3 -3
- package/dist/components/TekWallet/components/ui/QRCode/index.js +3 -1
- package/dist/components/TekWallet/components/ui/QrCodeReader/index.js +2 -3
- package/dist/components/TekWallet/components/ui/ReceiveDirectly/index.d.ts +26 -0
- package/dist/components/TekWallet/components/ui/ReceiveDirectly/index.js +365 -0
- package/dist/components/TekWallet/components/ui/ReceiveFunction/components/HelpView.js +4 -4
- package/dist/components/TekWallet/components/ui/ReceiveFunction/components/SortGroup.js +4 -4
- package/dist/components/TekWallet/components/ui/ReceiveFunction/components/SortTool.js +7 -12
- package/dist/components/TekWallet/components/ui/ReceiveFunction/index.js +39 -56
- package/dist/components/TekWallet/components/ui/ReceiveHistory/ReceiveCardHistory.js +13 -13
- package/dist/components/TekWallet/components/ui/ReceiveHistory/ReceiveHistoryDetails.js +22 -29
- package/dist/components/TekWallet/components/ui/ReceiveHistory/index.js +19 -19
- package/dist/components/TekWallet/components/ui/Row/index.js +3 -3
- package/dist/components/TekWallet/components/ui/ScanQRToSend/index.js +7 -7
- package/dist/components/TekWallet/components/ui/SearchBar.d.ts +10 -0
- package/dist/components/TekWallet/components/ui/SearchBar.js +42 -0
- package/dist/components/TekWallet/components/ui/SendExternalToken/index.js +7 -7
- package/dist/components/TekWallet/components/ui/SendInternalToken/index.js +5 -5
- package/dist/components/TekWallet/components/ui/SmartList/index.js +3 -3
- package/dist/components/TekWallet/components/ui/StatusDisplay/index.js +7 -7
- package/dist/components/TekWallet/components/ui/SvgPath/index.js +27 -27
- package/dist/components/TekWallet/components/ui/SwiperControlled/index.js +1 -3
- package/dist/components/TekWallet/components/ui/TimeFilter/index.js +9 -8
- package/dist/components/TekWallet/components/ui/TimeText/index.js +1 -1
- package/dist/components/TekWallet/components/ui/TokenItem/index.js +7 -15
- package/dist/components/TekWallet/components/ui/TokenSelection/index.js +5 -5
- package/dist/components/TekWallet/components/ui/TokensBoard/index.js +12 -12
- package/dist/components/TekWallet/components/ui/TransferConfirmation/index.js +3 -3
- package/dist/components/TekWallet/components/ui/TransferInternal/index.js +3 -3
- package/dist/components/TekWallet/components/ui/UpdateLockToken/index.js +4 -4
- package/dist/components/TekWallet/components/ui/UserInfo/index.js +4 -4
- package/dist/components/TekWallet/components/ui/WaitingData/index.js +13 -12
- package/dist/components/TekWallet/components/ui/WithdrawFunction/components/selectToken.js +11 -11
- package/dist/components/TekWallet/components/ui/WithdrawFunction/components/sendForm.js +30 -30
- package/dist/components/TekWallet/components/ui/WithdrawFunction/components/sortByBalance.js +3 -3
- package/dist/components/TekWallet/components/ui/WithdrawFunction/components/sortByToken.js +3 -3
- package/dist/components/TekWallet/components/ui/WithdrawFunction/components/summary/infoSummary.js +8 -8
- package/dist/components/TekWallet/components/ui/WithdrawFunction/index.js +9 -9
- package/dist/components/TekWallet/components/views/ActivityView/index.js +4 -4
- package/dist/components/TekWallet/components/views/AssetView/Menu.js +3 -3
- package/dist/components/TekWallet/components/views/AssetView/index.js +12 -12
- package/dist/components/TekWallet/components/views/AuthView/index.js +4 -4
- package/dist/components/TekWallet/components/views/AuthViewSignIn/index.js +4 -4
- package/dist/components/TekWallet/components/views/ChangePasscodeView/index.js +8 -6
- package/dist/components/TekWallet/components/views/CreateWalletView/index.js +4 -4
- package/dist/components/TekWallet/components/views/DetailActivityView/LoadingView.js +4 -4
- package/dist/components/TekWallet/components/views/GetSeedPhraseWalletView/index.js +7 -7
- package/dist/components/TekWallet/components/views/ImportWalletView/index.js +4 -7
- package/dist/components/TekWallet/components/views/SendExternalView/components/Form.js +32 -37
- package/dist/components/TekWallet/components/views/SendExternalView/components/Result.js +16 -16
- package/dist/components/TekWallet/components/views/SendExternalView/components/SelectNetwork.js +3 -3
- package/dist/components/TekWallet/components/views/SendExternalView/components/SelectToken.js +7 -32
- package/dist/components/TekWallet/components/views/SendExternalView/components/Summary.js +12 -12
- package/dist/components/TekWallet/components/views/SendExternalView/index.js +3 -3
- package/dist/components/TekWallet/components/views/SendInternalView/components/AmountForm.js +26 -24
- package/dist/components/TekWallet/components/views/SendInternalView/components/Form.js +27 -33
- package/dist/components/TekWallet/components/views/SendInternalView/components/Result.js +14 -14
- package/dist/components/TekWallet/components/views/SendInternalView/components/SelectToken.js +7 -32
- package/dist/components/TekWallet/components/views/SendInternalView/components/Summary.js +10 -10
- package/dist/components/TekWallet/components/views/SendInternalView/index.js +3 -3
- package/dist/components/TekWallet/components/views/SettingView/index.js +4 -13
- package/dist/components/TekWallet/components/views/SwapView/components/FromCard/FromCardSkeleton.js +7 -8
- package/dist/components/TekWallet/components/views/SwapView/components/FromCard/index.js +20 -25
- package/dist/components/TekWallet/components/views/SwapView/components/SelectToken.js +7 -32
- package/dist/components/TekWallet/components/views/SwapView/components/Summary.js +36 -39
- package/dist/components/TekWallet/components/views/SwapView/components/ToCard/index.js +7 -7
- package/dist/components/TekWallet/components/views/SwapView/index.js +12 -10
- package/dist/components/TekWallet/hooks/useValidateAmount.js +3 -3
- package/dist/components/TekWallet/hooks/useWarningWrongPasscode.js +5 -5
- package/dist/components/TekWallet/index.d.ts +2 -0
- package/dist/components/TekWallet/index.js +2 -12
- package/dist/components/TekWallet/layouts/ChildPageLayout/index.js +3 -3
- package/dist/components/TekWallet/providers/RealtimeProvider/index.js +15 -13
- package/dist/components/TekWallet/providers/TekWalletProvider/index.d.ts +9 -1
- package/dist/components/TekWallet/providers/TekWalletProvider/index.js +11 -4
- package/dist/components/TekWallet/providers/index.d.ts +0 -1
- package/dist/components/TekWallet/providers/index.js +0 -1
- package/dist/components/TekWallet/theme/mui/components/index.d.ts +133 -0
- package/dist/components/TekWallet/theme/mui/components/index.js +14 -0
- package/dist/components/TekWallet/theme/mui/components/overrides/Button.d.ts +142 -0
- package/dist/components/TekWallet/theme/mui/components/overrides/Button.js +84 -0
- package/dist/components/TekWallet/theme/mui/components/overrides/Drawer.d.ts +4 -0
- package/dist/components/TekWallet/theme/mui/components/overrides/Drawer.js +9 -0
- package/dist/components/TekWallet/theme/mui/components/overrides/Paper.d.ts +3 -0
- package/dist/components/TekWallet/theme/mui/components/overrides/Paper.js +15 -0
- package/dist/components/TekWallet/theme/mui/components/overrides/SnackBar.d.ts +3 -0
- package/dist/components/TekWallet/theme/mui/components/overrides/SnackBar.js +32 -0
- package/dist/components/TekWallet/theme/mui/fixed-mixins.d.ts +2 -0
- package/dist/components/TekWallet/theme/mui/fixed-mixins.js +218 -0
- package/dist/components/TekWallet/theme/mui/index.d.ts +3 -3
- package/dist/components/TekWallet/theme/mui/index.js +16 -32
- package/dist/components/TekWallet/theme/mui/palette.d.ts +34 -0
- package/dist/components/TekWallet/theme/mui/palette.js +133 -0
- package/dist/components/TekWallet/theme/mui/shadows/index.d.ts +3 -0
- package/dist/components/TekWallet/theme/mui/shadows/index.js +64 -0
- package/dist/components/TekWallet/theme/mui/spacing.d.ts +1 -0
- package/dist/components/TekWallet/theme/mui/spacing.js +5 -0
- package/dist/components/TekWallet/theme/mui/theme.d.ts +9 -442
- package/dist/components/TekWallet/theme/mui/theme.js +38 -415
- package/dist/components/TekWallet/theme/mui/type.d.ts +5 -0
- package/dist/components/TekWallet/theme/mui/type.js +9 -0
- package/dist/components/TekWallet/theme/mui/typography.d.ts +27 -0
- package/dist/components/TekWallet/theme/mui/typography.js +30 -0
- package/dist/components/TekWallet/theme/mui/utils/deepMergeTheme.d.ts +2 -0
- package/dist/components/TekWallet/theme/mui/utils/deepMergeTheme.js +7 -0
- package/dist/components/TekWallet/utils/getContractColor.d.ts +1 -0
- package/dist/components/TekWallet/utils/getContractColor.js +30 -0
- package/package.json +1 -1
- package/dist/components/TekWallet/components/ui/CardHistorySwap/index.d.ts +0 -12
- package/dist/components/TekWallet/components/ui/CardHistorySwap/index.js +0 -75
- package/dist/components/TekWallet/components/ui/DetailSwapResult/index.d.ts +0 -8
- package/dist/components/TekWallet/components/ui/DetailSwapResult/index.js +0 -122
- package/dist/components/TekWallet/components/ui/HistorySwap/index.d.ts +0 -16
- package/dist/components/TekWallet/components/ui/HistorySwap/index.js +0 -434
- package/dist/components/TekWallet/components/ui/SwapFunction/index.d.ts +0 -16
- package/dist/components/TekWallet/components/ui/SwapFunction/index.js +0 -271
- package/dist/components/TekWallet/components/ui/SwapToken/index.d.ts +0 -31
- package/dist/components/TekWallet/components/ui/SwapToken/index.js +0 -293
- package/dist/components/TekWallet/providers/ThemeProvider/index.d.ts +0 -8
- package/dist/components/TekWallet/providers/ThemeProvider/index.js +0 -43
- package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/components.d.ts +0 -3
- package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/components.js +0 -158
- package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/palette.d.ts +0 -55
- package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/palette.js +0 -45
- package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/theme.d.ts +0 -2
- package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/theme.js +0 -13
- package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/typography.d.ts +0 -39
- package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/typography.js +0 -65
|
@@ -27,21 +27,23 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
27
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
28
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
29
29
|
var material_1 = require("@mui/material");
|
|
30
|
-
var
|
|
30
|
+
var mui_1 = require("../../../theme/mui");
|
|
31
31
|
var Text_1 = __importDefault(require("../Text"));
|
|
32
32
|
var SvgPath_1 = require("../SvgPath");
|
|
33
33
|
function ListItemCustom(_a) {
|
|
34
34
|
var title = _a.title, description = _a.description, icon = _a.icon, rightIcon = _a.rightIcon, hideDefaultRightIcon = _a.hideDefaultRightIcon, sx = _a.sx, recommended = _a.recommended, hideTag = _a.hideTag, rest = __rest(_a, ["title", "description", "icon", "rightIcon", "hideDefaultRightIcon", "sx", "recommended", "hideTag"]);
|
|
35
|
-
var theme = (0,
|
|
36
|
-
return ((0, jsx_runtime_1.jsxs)(material_1.ListItemButton, __assign({}, rest, { sx: __assign(__assign(__assign({}, theme.
|
|
35
|
+
var theme = (0, mui_1.useTheme)();
|
|
36
|
+
return ((0, jsx_runtime_1.jsxs)(material_1.ListItemButton, __assign({}, rest, { sx: __assign(__assign(__assign({}, theme.styleMixins.row), { gap: theme.styleMixins.gaps.g12, padding: "calc(".concat(theme.styleMixins.customPadding.p16, " + 6px) ").concat(theme.styleMixins.customPadding.p16), border: "1px solid ".concat(theme.palette.divider), borderRadius: theme.styleMixins.customRadius.r16, backgroundColor: theme.palette.background.default, backdropFilter: "blur(12px)", position: "relative", overflow: "hidden" }), sx), children: [!hideTag && ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
|
|
37
37
|
position: "absolute",
|
|
38
|
-
top: "-
|
|
38
|
+
top: "-10px",
|
|
39
39
|
left: "-1px",
|
|
40
40
|
}, children: [(0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: {
|
|
41
41
|
width: "6.6rem",
|
|
42
42
|
height: "auto",
|
|
43
|
-
|
|
43
|
+
display: "block",
|
|
44
|
+
color: recommended ? theme.palette.success.main : theme.palette.error.main,
|
|
45
|
+
}, children: recommended ? SvgPath_1.IC_RECEIVE_TAG_RECOMMENDED : SvgPath_1.IC_RECEIVE_TAG }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.center), { whiteSpace: "nowrap", color: theme.palette.text.reverse, fontSize: theme.typography.fontSize10, fontWeight: theme.typography.fontWeight600, lineHeight: "120%" }), children: recommended ? "Recommended" : "Fee upto 8%" })] })), icon, (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.column), { gap: theme.styleMixins.gaps.g6, alignItems: "start", flex: 1 }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.styleMixins.listTitle), children: title }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.styleMixins.listDescription), children: description })] }), rightIcon !== null && rightIcon !== void 0 ? rightIcon : (!hideDefaultRightIcon && (
|
|
44
46
|
// <Icon width={10} src={getIcon("right_arrow")} sx={{ ml: "auto" }} />
|
|
45
|
-
(0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { width: "
|
|
47
|
+
(0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { width: "0.75rem", height: "0.75rem", color: "text.secondary" }, children: SvgPath_1.IC_CHEVRON_RIGHT })))] })));
|
|
46
48
|
}
|
|
47
49
|
exports.default = ListItemCustom;
|
|
@@ -16,13 +16,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
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
|
-
var
|
|
19
|
+
var mui_1 = require("../../../theme/mui");
|
|
20
20
|
var Text_1 = __importDefault(require("../Text"));
|
|
21
21
|
var react_1 = require("react");
|
|
22
22
|
var LoadingLayout = (0, react_1.forwardRef)(function (props, ref) {
|
|
23
23
|
var _a = (0, react_1.useState)(props.initLoading), loading = _a[0], setLoading = _a[1];
|
|
24
24
|
var _b = props.loadingMessage, loadingMessage = _b === void 0 ? "Processing" : _b, children = props.children, sx = props.sx, overlaySx = props.overlaySx;
|
|
25
|
-
var theme = (0,
|
|
25
|
+
var theme = (0, mui_1.useTheme)();
|
|
26
26
|
(0, react_1.useImperativeHandle)(ref, function () { return ({
|
|
27
27
|
startLoading: function () {
|
|
28
28
|
setLoading(true);
|
|
@@ -31,7 +31,7 @@ var LoadingLayout = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
31
31
|
setLoading(false);
|
|
32
32
|
},
|
|
33
33
|
}); });
|
|
34
|
-
return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign({ position: "relative", width: "fit-content", height: "fit-content" }, sx), children: [children, loading && ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign(__assign(
|
|
34
|
+
return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign({ position: "relative", width: "fit-content", height: "fit-content" }, sx), children: [children, loading && ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign(__assign({}, theme.styleMixins.row), { gap: theme.styleMixins.gaps.g8, justifyContent: "center" }), overlaySx), children: [(0, jsx_runtime_1.jsx)(material_1.CircularProgress, { sx: { color: "black" }, size: 20 }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
|
|
35
35
|
fontSize: theme.typography.fontSize12,
|
|
36
36
|
color: "black",
|
|
37
37
|
}, children: loadingMessage })] }))] }));
|
|
@@ -87,7 +87,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
87
87
|
exports.LockToken = exports.LockTokenError = void 0;
|
|
88
88
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
89
89
|
var material_1 = require("@mui/material");
|
|
90
|
-
var
|
|
90
|
+
var mui_1 = require("../../../theme/mui");
|
|
91
91
|
var Button_1 = __importStar(require("../Button"));
|
|
92
92
|
var ConfirmLayout_1 = __importDefault(require("../ConfirmLayout"));
|
|
93
93
|
var LineValue_1 = __importDefault(require("../LineValue"));
|
|
@@ -110,7 +110,7 @@ var LockTokenError;
|
|
|
110
110
|
})(LockTokenError || (exports.LockTokenError = LockTokenError = {}));
|
|
111
111
|
exports.LockToken = (0, react_1.forwardRef)(function (props, ref) {
|
|
112
112
|
var _a, _b;
|
|
113
|
-
var theme = (0,
|
|
113
|
+
var theme = (0, mui_1.useTheme)();
|
|
114
114
|
var lockTokens = (0, useLockTokenData_1.default)().lockTokens;
|
|
115
115
|
var isInitPasscode = (0, useWalletData_1.default)().isInitPasscode;
|
|
116
116
|
var confirmLayoutDrawerRef = (0, react_1.useRef)(null);
|
|
@@ -192,10 +192,10 @@ exports.LockToken = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
192
192
|
(0, react_1.useEffect)(function () {
|
|
193
193
|
validateAmount(props.lockData);
|
|
194
194
|
}, [validateAmount]);
|
|
195
|
-
return ((0, jsx_runtime_1.jsx)(RequireConnect_1.default, { children: (0, jsx_runtime_1.jsx)(ConfirmLayout_1.default, { ref: confirmLayoutDrawerRef, action: type_1.TransactionSlug.LOCKED_BALANCE, trigger: props.children, children: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.
|
|
195
|
+
return ((0, jsx_runtime_1.jsx)(RequireConnect_1.default, { children: (0, jsx_runtime_1.jsx)(ConfirmLayout_1.default, { ref: confirmLayoutDrawerRef, action: type_1.TransactionSlug.LOCKED_BALANCE, trigger: props.children, children: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.column), { gap: theme.styleMixins.gaps.g12 }), children: [(0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign({}, theme.styleMixins.paper), children: (0, jsx_runtime_1.jsx)(LineValue_1.default, { field: "Amount", value: (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: props.lockData.amount, unit: " ".concat(token === null || token === void 0 ? void 0 : token.name) }) }) }), (0, jsx_runtime_1.jsxs)(Text_1.default, { sx: __assign({}, theme.styleMixins.value), children: ["Your balance is", " ", (0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
|
|
196
196
|
fontWeight: theme.typography.fontWeight600,
|
|
197
197
|
color: theme.palette.text.secondary,
|
|
198
|
-
}, children: (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: token === null || token === void 0 ? void 0 : token.balance, unit: " ".concat(token === null || token === void 0 ? void 0 : token.name) }) })] }), !!error && ((0, jsx_runtime_1.jsxs)(Text_1.default, { sx: __assign(__assign({}, theme.
|
|
198
|
+
}, children: (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: token === null || token === void 0 ? void 0 : token.balance, unit: " ".concat(token === null || token === void 0 ? void 0 : token.name) }) })] }), !!error && ((0, jsx_runtime_1.jsxs)(Text_1.default, { sx: __assign(__assign({}, theme.styleMixins.validationError), { mt: theme.styleMixins.gaps.g6 }), children: [error, " ", !!errorAmount && (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: errorAmount, unit: " ".concat(token === null || token === void 0 ? void 0 : token.name) })] })), (0, jsx_runtime_1.jsx)(ConfirmByPasscode_1.default, { action: type_1.TransactionSlug.LOCKED_BALANCE, onConfirmSuccess: handleLockToken, children: (0, jsx_runtime_1.jsx)(Button_1.default.Primary, { status: !!error ? Button_1.BUTTON_STATUS.DISABLED : buttonStatus, sx: { width: "100%" }, children: "Confirm" }) })] }) }) }));
|
|
199
199
|
});
|
|
200
200
|
exports.LockToken.displayName = "LockToken";
|
|
201
201
|
exports.default = exports.LockToken;
|
|
@@ -17,65 +17,65 @@ 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 Text_1 = __importDefault(require("../Text"));
|
|
20
|
-
var
|
|
20
|
+
var mui_1 = require("../../../theme/mui");
|
|
21
21
|
var Icon_1 = __importDefault(require("../Icon"));
|
|
22
22
|
var getIcon_1 = __importDefault(require("../../../utils/getIcon"));
|
|
23
23
|
var CheckBoxComponent_1 = __importDefault(require("../CheckBoxComponent"));
|
|
24
24
|
var Button_1 = __importDefault(require("../Button"));
|
|
25
25
|
var ModalCheckboxToken = function (_a) {
|
|
26
26
|
var tokenLists = _a.tokenLists, handleTokenSelect = _a.handleTokenSelect, _b = _a.selectedTokens, selectedTokens = _b === void 0 ? [] : _b, onApply = _a.onApply, onReset = _a.onReset;
|
|
27
|
-
var theme = (0,
|
|
27
|
+
var theme = (0, mui_1.useTheme)();
|
|
28
28
|
return ((0, jsx_runtime_1.jsxs)(material_1.Box, { children: [(0, jsx_runtime_1.jsx)(material_1.Divider, { sx: {
|
|
29
|
-
backgroundColor: theme.palette.
|
|
29
|
+
backgroundColor: theme.palette.divider,
|
|
30
30
|
width: "100%",
|
|
31
|
-
mt: theme.
|
|
32
|
-
mb: theme.
|
|
31
|
+
mt: theme.styleMixins.customMargin.m12,
|
|
32
|
+
mb: theme.styleMixins.customMargin.m12,
|
|
33
33
|
} }), (0, jsx_runtime_1.jsx)(material_1.InputBase, { startAdornment: (0, jsx_runtime_1.jsx)(material_1.InputAdornment, { className: "size-5 text-black", position: "start", children: (0, jsx_runtime_1.jsx)(Icon_1.default, { className: "size-5", src: (0, getIcon_1.default)("search") }) }), placeholder: "Search", sx: {
|
|
34
34
|
"input::placeholder": {
|
|
35
35
|
fontSize: theme.typography.fontSize12,
|
|
36
|
-
color: theme.palette.text.
|
|
36
|
+
color: theme.palette.text.primary,
|
|
37
37
|
fontWeight: theme.typography.fontWeight500,
|
|
38
|
-
pl: theme.
|
|
38
|
+
pl: theme.styleMixins.customPadding.p4,
|
|
39
39
|
},
|
|
40
|
-
}, className: "w-full flex items-center py-1 px-2 rounded-12 border border-".concat(theme.palette.
|
|
41
|
-
backgroundColor: theme.palette.
|
|
40
|
+
}, className: "w-full flex items-center py-1 px-2 rounded-12 border border-".concat(theme.palette.divider, " bg-white text-black") }), (0, jsx_runtime_1.jsx)(material_1.Divider, { sx: {
|
|
41
|
+
backgroundColor: theme.palette.divider,
|
|
42
42
|
width: "100%",
|
|
43
|
-
mt: theme.
|
|
44
|
-
mb: theme.
|
|
45
|
-
} }), tokenLists === null || tokenLists === void 0 ? void 0 : tokenLists.map(function (token) { return ((0, jsx_runtime_1.jsxs)(material_1.Box, { onClick: function () { return handleTokenSelect(token === null || token === void 0 ? void 0 : token.name); }, sx: __assign(__assign({}, theme.
|
|
43
|
+
mt: theme.styleMixins.customMargin.m12,
|
|
44
|
+
mb: theme.styleMixins.customMargin.m12,
|
|
45
|
+
} }), tokenLists === null || tokenLists === void 0 ? void 0 : tokenLists.map(function (token) { return ((0, jsx_runtime_1.jsxs)(material_1.Box, { onClick: function () { return handleTokenSelect(token === null || token === void 0 ? void 0 : token.name); }, sx: __assign(__assign({}, theme.styleMixins.row), { justifyContent: "space-between", alignItems: "center", px: theme.styleMixins.customPadding.p8, py: theme.styleMixins.customPadding.p4, borderRadius: theme.styleMixins.customRadius.r12, cursor: "pointer", border: "1px solid", borderColor: selectedTokens.includes(token === null || token === void 0 ? void 0 : token.name)
|
|
46
46
|
? theme.palette.primary.main
|
|
47
|
-
: "transparent", backgroundColor: theme.palette.background.
|
|
47
|
+
: "transparent", backgroundColor: theme.palette.background.default, mt: theme.styleMixins.customMargin.m12 }), children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.row), { gap: theme.styleMixins.gaps.g8 }), children: [(token === null || token === void 0 ? void 0 : token.name) !== "All Token" && ((0, jsx_runtime_1.jsx)(Icon_1.default, { src: token === null || token === void 0 ? void 0 : token.link, width: 16, height: 16, alt: "token", className: "rounded-full" })), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.column), { mt: theme.styleMixins.customMargin.m4, mb: theme.styleMixins.customMargin.m4 }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
|
|
48
48
|
fontSize: theme.typography.fontSize14,
|
|
49
49
|
fontWeight: theme.typography.fontWeight500,
|
|
50
|
-
color: theme.palette.text.
|
|
50
|
+
color: theme.palette.text.primary,
|
|
51
51
|
}, children: token === null || token === void 0 ? void 0 : token.name }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
|
|
52
52
|
fontSize: theme.typography.fontSize13,
|
|
53
53
|
fontWeight: theme.typography.fontWeight400,
|
|
54
|
-
color: theme.palette.text.
|
|
54
|
+
color: theme.palette.text.secondary,
|
|
55
55
|
}, children: token === null || token === void 0 ? void 0 : token.full_name })] })] }), (0, jsx_runtime_1.jsx)(CheckBoxComponent_1.default, { checked: selectedTokens.includes(token === null || token === void 0 ? void 0 : token.name), sx: {
|
|
56
56
|
"& .MuiSvgIcon-root": {
|
|
57
57
|
color: selectedTokens.includes(token === null || token === void 0 ? void 0 : token.name)
|
|
58
58
|
? theme.palette.primary.main
|
|
59
|
-
: theme.palette.text.
|
|
59
|
+
: theme.palette.text.secondary,
|
|
60
60
|
},
|
|
61
|
-
} })] }, token === null || token === void 0 ? void 0 : token.id)); }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.
|
|
62
|
-
backgroundColor: theme.palette.background.
|
|
61
|
+
} })] }, token === null || token === void 0 ? void 0 : token.id)); }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.row), { gap: theme.styleMixins.gaps.g10, justifyContent: "center", mt: theme.styleMixins.customMargin.m16, width: "100%" }), children: [(0, jsx_runtime_1.jsx)(Button_1.default, { onClick: onReset, sx: {
|
|
62
|
+
backgroundColor: theme.palette.background.default,
|
|
63
63
|
borderColor: theme.palette.primary.main,
|
|
64
|
-
borderRadius: theme.
|
|
64
|
+
borderRadius: theme.styleMixins.customRadius.r12,
|
|
65
65
|
color: theme.palette.primary.main,
|
|
66
66
|
fontSize: theme.typography.fontSize12,
|
|
67
67
|
fontWeight: theme.typography.fontWeight600,
|
|
68
68
|
textTransform: "none",
|
|
69
|
-
padding: theme.
|
|
69
|
+
padding: theme.styleMixins.customPadding.p12,
|
|
70
70
|
}, fullWidth: true, children: "Reset" }), (0, jsx_runtime_1.jsx)(Button_1.default, { onClick: onApply, sx: {
|
|
71
71
|
backgroundColor: theme.palette.primary.main,
|
|
72
72
|
borderColor: theme.palette.secondary.main,
|
|
73
|
-
borderRadius: theme.
|
|
73
|
+
borderRadius: theme.styleMixins.customRadius.r12,
|
|
74
74
|
color: theme.palette.secondary.main,
|
|
75
75
|
fontSize: theme.typography.fontSize12,
|
|
76
76
|
fontWeight: theme.typography.fontWeight600,
|
|
77
77
|
textTransform: "none",
|
|
78
|
-
padding: theme.
|
|
78
|
+
padding: theme.styleMixins.customPadding.p12,
|
|
79
79
|
}, fullWidth: true, children: "Apply" })] })] }));
|
|
80
80
|
};
|
|
81
81
|
exports.default = ModalCheckboxToken;
|
|
@@ -39,7 +39,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
40
40
|
var material_1 = require("@mui/material");
|
|
41
41
|
var react_1 = require("react");
|
|
42
|
-
var
|
|
42
|
+
var mui_1 = require("../../../theme/mui");
|
|
43
43
|
var Text_1 = __importDefault(require("../Text"));
|
|
44
44
|
var DatePicker_1 = __importDefault(require("../DatePicker"));
|
|
45
45
|
var Row_1 = __importDefault(require("../Row"));
|
|
@@ -51,13 +51,13 @@ var ModalDateFilter = function (props) {
|
|
|
51
51
|
var drawerRefs = props.drawerRefs, handleConfirm = props.handleConfirm;
|
|
52
52
|
var _a = (0, react_1.useState)(null), valueStartDate = _a[0], setValueStartDate = _a[1];
|
|
53
53
|
var _b = (0, react_1.useState)(null), valueEndDate = _b[0], setValueEndDate = _b[1];
|
|
54
|
-
var theme = (0,
|
|
54
|
+
var theme = (0, mui_1.useTheme)();
|
|
55
55
|
var _c = (0, react_1.useState)(null), errorEndDate = _c[0], setErrorEndDate = _c[1];
|
|
56
56
|
return ((0, jsx_runtime_1.jsxs)(Column_1.default, { sx: {
|
|
57
|
-
paddingTop: theme.
|
|
58
|
-
paddingBottom: theme.
|
|
57
|
+
paddingTop: theme.styleMixins.customPadding.p2,
|
|
58
|
+
paddingBottom: theme.styleMixins.customPadding.p2,
|
|
59
59
|
}, children: [(0, jsx_runtime_1.jsxs)(Row_1.default, { sx: {
|
|
60
|
-
gap: theme.
|
|
60
|
+
gap: theme.styleMixins.gaps.g8,
|
|
61
61
|
}, children: [(0, jsx_runtime_1.jsx)(DatePicker_1.default, { onSelect: function (date) {
|
|
62
62
|
setValueStartDate((0, dayjs_1.default)(date).startOf("day"));
|
|
63
63
|
}, value: valueStartDate, disableFuture: true }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
|
|
@@ -69,17 +69,17 @@ var ModalDateFilter = function (props) {
|
|
|
69
69
|
}, value: valueEndDate, disablePastFrom: valueStartDate, onError: function (error) {
|
|
70
70
|
setErrorEndDate(error);
|
|
71
71
|
}, disableFuture: true })] }), (0, jsx_runtime_1.jsx)(material_1.Divider, { sx: {
|
|
72
|
-
backgroundColor: theme.palette.
|
|
72
|
+
backgroundColor: theme.palette.divider,
|
|
73
73
|
width: "100%",
|
|
74
|
-
mt: theme.
|
|
75
|
-
mb: theme.
|
|
74
|
+
mt: theme.styleMixins.customMargin.m12,
|
|
75
|
+
mb: theme.styleMixins.customMargin.m6,
|
|
76
76
|
} }), (0, jsx_runtime_1.jsxs)(Row_1.default, { sx: {
|
|
77
|
-
gap: theme.
|
|
77
|
+
gap: theme.styleMixins.gaps.g8,
|
|
78
78
|
}, children: [(0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
|
|
79
79
|
cursor: "pointer",
|
|
80
80
|
border: "1px solid ".concat(theme.palette.primary.main),
|
|
81
|
-
borderRadius: theme.
|
|
82
|
-
padding: theme.
|
|
81
|
+
borderRadius: theme.styleMixins.customRadius.r10,
|
|
82
|
+
padding: theme.styleMixins.customPadding.p1,
|
|
83
83
|
minWidth: "32px",
|
|
84
84
|
minHeight: "32px",
|
|
85
85
|
display: "flex",
|
|
@@ -18,10 +18,10 @@ var jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
18
18
|
var ModalTitle_1 = __importDefault(require("../ModalTitle"));
|
|
19
19
|
var CloseModal_1 = __importDefault(require("../CloseModal"));
|
|
20
20
|
var material_1 = require("@mui/material");
|
|
21
|
-
var
|
|
21
|
+
var mui_1 = require("../../../theme/mui");
|
|
22
22
|
var ModalLayout = function (props) {
|
|
23
|
-
var theme = (0,
|
|
24
|
-
return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({ borderRadius: props.fullScreen ? "0" : "1.5rem 1.5rem 0 0", maxHeight: "100dvh", backgroundColor: props.backgroundColor ||
|
|
23
|
+
var theme = (0, mui_1.useTheme)();
|
|
24
|
+
return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({ borderRadius: props.fullScreen ? "0" : "1.5rem 1.5rem 0 0", maxHeight: "100dvh", backgroundColor: props.backgroundColor || "background.default", display: "flex", flexDirection: "column", height: props.fullScreen ? "100dvh" : "fit-content" }, theme.styleMixins.pagePadding), props.sx), children: [!props.hideHeader && !props.overrideHeader && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
|
|
25
25
|
width: "100%",
|
|
26
26
|
position: "relative",
|
|
27
27
|
}, children: [(0, jsx_runtime_1.jsx)(ModalTitle_1.default, { children: props.title }), (0, jsx_runtime_1.jsx)(CloseModal_1.default, { sx: {
|
|
@@ -59,7 +59,7 @@ var getIcon_1 = __importDefault(require("../../../utils/getIcon"));
|
|
|
59
59
|
var DrawerDrag_1 = __importStar(require("../DrawerDrag"));
|
|
60
60
|
var Icon_1 = __importDefault(require("../Icon"));
|
|
61
61
|
var Text_1 = __importDefault(require("../Text"));
|
|
62
|
-
var
|
|
62
|
+
var mui_1 = require("../../../theme/mui");
|
|
63
63
|
var ModalSelectToken = function (props) {
|
|
64
64
|
var setSwapToken = props.setSwapToken;
|
|
65
65
|
var selectTokenForm = (0, useBoolean_1.useBoolean)("selectTokenForm");
|
|
@@ -68,7 +68,7 @@ var ModalSelectToken = function (props) {
|
|
|
68
68
|
var onOpen = selectTokenForm.value ? selectTokenForm.setTrue : selectTokenTo.setTrue;
|
|
69
69
|
var onClose = selectTokenForm.value ? selectTokenForm.setFalse : selectTokenTo.setFalse;
|
|
70
70
|
var _a = (0, useWallet_1.default)(), fromTokens = _a.fromTokens, updateSwapTokens = _a.updateSwapTokens;
|
|
71
|
-
var theme = (0,
|
|
71
|
+
var theme = (0, mui_1.useTheme)();
|
|
72
72
|
var router = (0, useCustomRouter_1.default)();
|
|
73
73
|
(0, react_1.useEffect)(function () {
|
|
74
74
|
if (fromTokens && fromTokens.length > 0 && !props.token && setSwapToken) {
|
|
@@ -94,22 +94,22 @@ var ModalSelectToken = function (props) {
|
|
|
94
94
|
}, className: "!bg-white !rounded-none !size-full", anchor: DrawerDrag_1.DRAWER_DIRECTION.RIGHT, open: open, onClose: onClose, onOpen: onOpen, title: (0, jsx_runtime_1.jsx)(material_1.Box, { children: (0, jsx_runtime_1.jsx)(PageHeader_1.default, { overrideBack: onClose, onClick: onClose, title: selectTokenForm.value === true ? "Select from token" : "Select to token", children: (0, jsx_runtime_1.jsxs)(material_1.Box, { className: "flex gap-1 items-center ml-auto", children: [(0, jsx_runtime_1.jsx)(Icon_1.default, { onClick: function () { return router.push("/help"); }, src: (0, getIcon_1.default)("help") }), (0, jsx_runtime_1.jsx)(material_1.Divider, { orientation: "vertical", sx: {
|
|
95
95
|
height: "15px",
|
|
96
96
|
width: "1px",
|
|
97
|
-
backgroundColor: theme.palette.
|
|
98
|
-
marginLeft: theme.
|
|
99
|
-
marginRight: theme.
|
|
100
|
-
} }), (0, jsx_runtime_1.jsx)(Icon_1.default, { onClick: function () { return router.push("/history"); }, src: (0, getIcon_1.default)("history") })] }) }) }), content: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign({}, theme.
|
|
97
|
+
backgroundColor: theme.palette.divider,
|
|
98
|
+
marginLeft: theme.styleMixins.customMargin.m4,
|
|
99
|
+
marginRight: theme.styleMixins.customMargin.m4,
|
|
100
|
+
} }), (0, jsx_runtime_1.jsx)(Icon_1.default, { onClick: function () { return router.push("/history"); }, src: (0, getIcon_1.default)("history") })] }) }) }), content: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign({}, theme.styleMixins.pagePadding), children: [(0, jsx_runtime_1.jsx)(material_1.InputBase, { startAdornment: (0, jsx_runtime_1.jsx)(material_1.InputAdornment, { className: "size-5 text-black", position: "start", children: (0, jsx_runtime_1.jsx)(Icon_1.default, { className: "size-5", src: (0, getIcon_1.default)("search") }) }), placeholder: "Search", sx: {
|
|
101
101
|
"input::placeholder": {
|
|
102
102
|
fontSize: theme.typography.fontSize12,
|
|
103
|
-
color: theme.palette.text.
|
|
103
|
+
color: theme.palette.text.primary,
|
|
104
104
|
fontWeight: theme.typography.fontWeight500,
|
|
105
|
-
pl: theme.
|
|
105
|
+
pl: theme.styleMixins.customPadding.p4,
|
|
106
106
|
},
|
|
107
|
-
}, className: "w-full flex items-center py-1 px-2 rounded-12 border border-".concat(theme.palette.
|
|
108
|
-
color: theme.palette.text.
|
|
107
|
+
}, className: "w-full flex items-center py-1 px-2 rounded-12 border border-".concat(theme.palette.divider, " bg-white text-black") }), (0, jsx_runtime_1.jsxs)(material_1.Box, { className: "py-4 mt-3 h-[50dvh] space-y-3", children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { className: "flex justify-between items-center", children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { className: "flex items-center gap-1", children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
|
|
108
|
+
color: theme.palette.text.secondary,
|
|
109
109
|
fontSize: theme.typography.fontSize12,
|
|
110
110
|
fontWeight: theme.typography.fontWeight600,
|
|
111
|
-
}, children: "Token" }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign({}, theme.
|
|
112
|
-
color: theme.palette.text.
|
|
111
|
+
}, children: "Token" }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign({}, theme.styleMixins.column), className: "items-center gap-0.5", children: [(0, jsx_runtime_1.jsx)(Icon_1.default, { src: (0, getIcon_1.default)("arrow_drop_up") }), (0, jsx_runtime_1.jsx)(Icon_1.default, { src: (0, getIcon_1.default)("arrow_drop_down") })] })] }), (0, jsx_runtime_1.jsxs)(material_1.Box, { className: "flex items-center gap-1", children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
|
|
112
|
+
color: theme.palette.text.secondary,
|
|
113
113
|
fontSize: theme.typography.fontSize12,
|
|
114
114
|
fontWeight: theme.typography.fontWeight600,
|
|
115
115
|
}, children: "Balance" }), (0, jsx_runtime_1.jsxs)(material_1.Box, { className: "flex items-center gap-0.5 flex-col", children: [(0, jsx_runtime_1.jsx)(Icon_1.default, { src: (0, getIcon_1.default)("arrow_drop_up") }), (0, jsx_runtime_1.jsx)(Icon_1.default, { src: (0, getIcon_1.default)("arrow_drop_down") })] })] })] }), (0, jsx_runtime_1.jsx)(material_1.Box, { className: "space-y-3", children: selectTokenForm.value
|
|
@@ -16,48 +16,48 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
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
|
-
var
|
|
19
|
+
var mui_1 = require("../../../theme/mui");
|
|
20
20
|
var Text_1 = __importDefault(require("../Text"));
|
|
21
21
|
var CheckBoxComponent_1 = __importDefault(require("../CheckBoxComponent"));
|
|
22
22
|
var Button_1 = __importDefault(require("../Button"));
|
|
23
23
|
var ModalStatusFilter = function (_a) {
|
|
24
24
|
var statusList = _a.statusList, handleStatusSelect = _a.handleStatusSelect, _b = _a.selectedStatuses, selectedStatuses = _b === void 0 ? [] : _b, onApply = _a.onApply, onReset = _a.onReset;
|
|
25
|
-
var theme = (0,
|
|
25
|
+
var theme = (0, mui_1.useTheme)();
|
|
26
26
|
return ((0, jsx_runtime_1.jsxs)(material_1.Box, { children: [(0, jsx_runtime_1.jsx)(material_1.Divider, { sx: {
|
|
27
|
-
backgroundColor: theme.palette.
|
|
27
|
+
backgroundColor: theme.palette.divider,
|
|
28
28
|
width: "100%",
|
|
29
|
-
mt: theme.
|
|
30
|
-
mb: theme.
|
|
31
|
-
} }), statusList === null || statusList === void 0 ? void 0 : statusList.map(function (item) { return ((0, jsx_runtime_1.jsxs)(material_1.Box, { onClick: function () { return handleStatusSelect(item.name); }, sx: __assign(__assign({}, theme.
|
|
29
|
+
mt: theme.styleMixins.customMargin.m12,
|
|
30
|
+
mb: theme.styleMixins.customMargin.m12,
|
|
31
|
+
} }), statusList === null || statusList === void 0 ? void 0 : statusList.map(function (item) { return ((0, jsx_runtime_1.jsxs)(material_1.Box, { onClick: function () { return handleStatusSelect(item.name); }, sx: __assign(__assign({}, theme.styleMixins.row), { justifyContent: "space-between", alignItems: "center", px: theme.styleMixins.customPadding.p8, py: theme.styleMixins.customPadding.p4, borderRadius: theme.styleMixins.customRadius.r16, padding: theme.styleMixins.customPadding.p12, color: theme.palette.text.primary, border: "1px solid", borderColor: selectedStatuses.includes(item.name)
|
|
32
32
|
? theme.palette.primary.main
|
|
33
|
-
: theme.palette.
|
|
34
|
-
? theme.palette.background.
|
|
35
|
-
: "transparent", mt: theme.
|
|
33
|
+
: theme.palette.divider, backgroundColor: selectedStatuses.includes(item.name)
|
|
34
|
+
? theme.palette.background.default
|
|
35
|
+
: "transparent", mt: theme.styleMixins.customMargin.m12, cursor: "pointer" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
|
|
36
36
|
fontSize: theme.typography.fontSize12,
|
|
37
37
|
fontWeight: theme.typography.fontWeight500,
|
|
38
38
|
}, children: item === null || item === void 0 ? void 0 : item.title }), (0, jsx_runtime_1.jsx)(CheckBoxComponent_1.default, { checked: selectedStatuses.includes(item === null || item === void 0 ? void 0 : item.name), sx: {
|
|
39
39
|
"& .MuiSvgIcon-root": {
|
|
40
40
|
color: selectedStatuses.includes(item === null || item === void 0 ? void 0 : item.name)
|
|
41
41
|
? theme.palette.primary.main
|
|
42
|
-
: theme.palette.text.
|
|
42
|
+
: theme.palette.text.secondary,
|
|
43
43
|
},
|
|
44
|
-
} })] }, item.name)); }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.
|
|
45
|
-
backgroundColor: theme.palette.background.
|
|
44
|
+
} })] }, item.name)); }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.row), { gap: theme.styleMixins.gaps.g10, justifyContent: "center", mt: theme.styleMixins.customMargin.m16, width: "100%" }), children: [(0, jsx_runtime_1.jsx)(Button_1.default, { onClick: onReset, sx: {
|
|
45
|
+
backgroundColor: theme.palette.background.default,
|
|
46
46
|
borderColor: theme.palette.primary.main,
|
|
47
|
-
borderRadius: theme.
|
|
47
|
+
borderRadius: theme.styleMixins.customRadius.r12,
|
|
48
48
|
color: theme.palette.primary.main,
|
|
49
49
|
fontSize: theme.typography.fontSize12,
|
|
50
50
|
fontWeight: theme.typography.fontWeight600,
|
|
51
|
-
padding: theme.
|
|
51
|
+
padding: theme.styleMixins.customPadding.p12,
|
|
52
52
|
textTransform: "none",
|
|
53
53
|
}, fullWidth: true, children: "Reset" }), (0, jsx_runtime_1.jsx)(Button_1.default, { onClick: onApply, sx: {
|
|
54
54
|
backgroundColor: theme.palette.primary.main,
|
|
55
55
|
borderColor: theme.palette.secondary.main,
|
|
56
|
-
borderRadius: theme.
|
|
56
|
+
borderRadius: theme.styleMixins.customRadius.r12,
|
|
57
57
|
color: theme.palette.secondary.main,
|
|
58
58
|
fontSize: theme.typography.fontSize12,
|
|
59
59
|
fontWeight: theme.typography.fontWeight600,
|
|
60
|
-
padding: theme.
|
|
60
|
+
padding: theme.styleMixins.customPadding.p12,
|
|
61
61
|
textTransform: "none",
|
|
62
62
|
}, fullWidth: true, children: "Apply" })] })] }));
|
|
63
63
|
};
|
|
@@ -26,11 +26,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
};
|
|
27
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
28
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
29
|
-
var
|
|
29
|
+
var mui_1 = require("../../../theme/mui");
|
|
30
30
|
var Text_1 = __importDefault(require("../Text"));
|
|
31
31
|
var ModalTitle = function (props) {
|
|
32
32
|
var children = props.children, sx = props.sx, rest = __rest(props, ["children", "sx"]);
|
|
33
|
-
var theme = (0,
|
|
34
|
-
return ((0, jsx_runtime_1.jsx)(Text_1.default, __assign({}, rest, { sx: __assign(__assign({}, theme.
|
|
33
|
+
var theme = (0, mui_1.useTheme)();
|
|
34
|
+
return ((0, jsx_runtime_1.jsx)(Text_1.default, __assign({}, rest, { sx: __assign(__assign({}, theme.styleMixins.sessionTitle), sx), children: children })));
|
|
35
35
|
};
|
|
36
36
|
exports.default = ModalTitle;
|
|
@@ -23,14 +23,14 @@ var Text_1 = __importDefault(require("../Text"));
|
|
|
23
23
|
var framer_motion_1 = require("framer-motion");
|
|
24
24
|
var useFormatter_1 = __importDefault(require("../../../hooks/useFormatter"));
|
|
25
25
|
var material_1 = require("@mui/material");
|
|
26
|
-
var
|
|
26
|
+
var mui_1 = require("../../../theme/mui");
|
|
27
27
|
var formatDate_1 = __importDefault(require("../../../utils/formatDate"));
|
|
28
28
|
function NeonLineChart(_a) {
|
|
29
29
|
var _b, _c, _d;
|
|
30
30
|
var series = _a.series, categories = _a.categories, _e = _a.showMinMaxValues, showMinMaxValues = _e === void 0 ? false : _e, children = _a.children, sx = _a.sx;
|
|
31
31
|
var chartComponentRef = (0, react_1.useRef)(null);
|
|
32
32
|
var formatValue = (0, useFormatter_1.default)().formatValue;
|
|
33
|
-
var theme = (0,
|
|
33
|
+
var theme = (0, mui_1.useTheme)();
|
|
34
34
|
var options = {
|
|
35
35
|
title: {
|
|
36
36
|
text: "",
|
|
@@ -159,7 +159,7 @@ function NeonLineChart(_a) {
|
|
|
159
159
|
duration: 0.4,
|
|
160
160
|
ease: "easeInOut",
|
|
161
161
|
delay: 0.4,
|
|
162
|
-
}, children: (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.
|
|
162
|
+
}, children: (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.styleMixins.value), children: (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: maxValue }) }) }), (0, jsx_runtime_1.jsx)(framer_motion_1.motion.div, { className: "absolute bottom-0 w-fit z-[9999]", style: {
|
|
163
163
|
left: "".concat(Math.min((minIndex / chartLength) * 100, 90), "%"),
|
|
164
164
|
}, initial: {
|
|
165
165
|
scale: 0,
|
|
@@ -175,6 +175,6 @@ function NeonLineChart(_a) {
|
|
|
175
175
|
duration: 0.4,
|
|
176
176
|
ease: "easeInOut",
|
|
177
177
|
delay: 0.4,
|
|
178
|
-
}, children: (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.
|
|
178
|
+
}, children: (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.styleMixins.value), children: (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: minValue }) }) })] })), (0, jsx_runtime_1.jsx)(highcharts_react_official_1.default, { highcharts: highcharts_1.default, options: options, ref: chartComponentRef }), children] }));
|
|
179
179
|
}
|
|
180
180
|
exports.default = (0, react_1.memo)(NeonLineChart);
|
|
@@ -31,17 +31,17 @@ var Icon_1 = __importDefault(require("../Icon"));
|
|
|
31
31
|
var Text_1 = __importDefault(require("../Text"));
|
|
32
32
|
var parsePropsData_1 = __importDefault(require("../../../utils/parsePropsData"));
|
|
33
33
|
var material_1 = require("@mui/material");
|
|
34
|
-
var
|
|
34
|
+
var mui_1 = require("../../../theme/mui");
|
|
35
35
|
var SvgPath_1 = require("../SvgPath");
|
|
36
36
|
var Formatter_1 = __importDefault(require("../Formatter"));
|
|
37
37
|
var NetworkSelection = function (props) {
|
|
38
38
|
var networkDataString = props.networkData, onClick = props.onClick, active = props.active, token = props.token, rest = __rest(props, ["networkData", "onClick", "active", "token"]);
|
|
39
|
-
var theme = (0,
|
|
39
|
+
var theme = (0, mui_1.useTheme)();
|
|
40
40
|
var networkData = (0, react_1.useMemo)(function () { return (0, parsePropsData_1.default)(networkDataString); }, [networkDataString]);
|
|
41
|
-
return ((0, jsx_runtime_1.jsxs)(material_1.Box, __assign({}, rest, { sx: __assign(__assign({}, theme.
|
|
41
|
+
return ((0, jsx_runtime_1.jsxs)(material_1.Box, __assign({}, rest, { sx: __assign(__assign({}, theme.styleMixins.row), { backgroundColor: active
|
|
42
42
|
? "".concat(theme.palette.background.tertiary)
|
|
43
|
-
: "".concat(theme.palette.background.
|
|
43
|
+
: "".concat(theme.palette.background.default), backdropFilter: "blur(12px)", padding: theme.styleMixins.customPadding.p16, borderRadius: theme.styleMixins.customRadius.r16, border: "1px solid", borderColor: active ? "".concat(theme.palette.primary.main) : "".concat(theme.palette.divider), gap: theme.styleMixins.gaps.g8, justifyContent: "space-between" }), onClick: function () {
|
|
44
44
|
onClick === null || onClick === void 0 ? void 0 : onClick(networkData);
|
|
45
|
-
}, children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.
|
|
45
|
+
}, children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.row), { gap: theme.styleMixins.gaps.g8 }), children: [(0, jsx_runtime_1.jsx)(Icon_1.default, { src: networkData === null || networkData === void 0 ? void 0 : networkData.link, sx: { borderRadius: theme.styleMixins.customRadius.full }, width: 24 }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.column), { gap: theme.styleMixins.gaps.g4 }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign({}, theme.styleMixins.value), { color: "text.white", whiteSpace: "nowrap", textTransform: "capitalize" }), children: networkData === null || networkData === void 0 ? void 0 : networkData.name }), (0, jsx_runtime_1.jsxs)(Text_1.default, { sx: __assign(__assign({}, theme.styleMixins.activityDescription), { color: theme.palette.text.secondary, fontSize: theme.typography.fontSize13, fontWeight: theme.typography.fontWeight400 }), children: ["Minimum transaction amount:", " ", (0, jsx_runtime_1.jsx)("strong", { children: (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: networkData === null || networkData === void 0 ? void 0 : networkData.min_value, unit: token === null || token === void 0 ? void 0 : token.name }) })] })] })] }), (0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { width: 20, height: 20, color: theme.palette.text.primary }, children: active ? SvgPath_1.IC_CHECK : SvgPath_1.IC_UNCHECK })] })));
|
|
46
46
|
};
|
|
47
47
|
exports.default = NetworkSelection;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
"use client";
|
|
2
3
|
var __assign = (this && this.__assign) || function () {
|
|
3
4
|
__assign = Object.assign || function(t) {
|
|
4
5
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -41,7 +42,7 @@ var react_otp_input_1 = __importDefault(require("react-otp-input"));
|
|
|
41
42
|
var SvgPath_1 = require("../SvgPath");
|
|
42
43
|
var xhub_keyboard_1 = require("xhub-keyboard");
|
|
43
44
|
var react_1 = require("react");
|
|
44
|
-
var
|
|
45
|
+
var mui_1 = require("../../../theme/mui");
|
|
45
46
|
var OtpInputType;
|
|
46
47
|
(function (OtpInputType) {
|
|
47
48
|
OtpInputType["TEXT"] = "text";
|
|
@@ -51,7 +52,7 @@ var OtpInputType;
|
|
|
51
52
|
})(OtpInputType || (exports.OtpInputType = OtpInputType = {}));
|
|
52
53
|
var CustomOtpInput = function (props) {
|
|
53
54
|
var otpInputType = props.otpInputType, numInputs = props.numInputs, _a = props.onChange, onChange = _a === void 0 ? function () { } : _a, _b = props.readOnly, readOnly = _b === void 0 ? false : _b, _c = props.disabled, disabled = _c === void 0 ? false : _c, rest = __rest(props, ["otpInputType", "numInputs", "onChange", "readOnly", "disabled"]);
|
|
54
|
-
var theme = (0,
|
|
55
|
+
var theme = (0, mui_1.useTheme)();
|
|
55
56
|
var InputElement = (0, react_1.useMemo)(function () {
|
|
56
57
|
var _a, _b, _c;
|
|
57
58
|
switch (otpInputType) {
|
|
@@ -61,37 +62,38 @@ var CustomOtpInput = function (props) {
|
|
|
61
62
|
alignItems: "center",
|
|
62
63
|
justifyContent: "center",
|
|
63
64
|
}, children: (0, jsx_runtime_1.jsx)(react_otp_input_1.default, __assign({}, rest, { onChange: onChange, numInputs: numInputs, inputType: "password", inputStyle: {
|
|
64
|
-
border: "1px solid
|
|
65
|
-
borderRadius:
|
|
65
|
+
border: "1px solid ".concat(theme.palette.text.secondary),
|
|
66
|
+
borderRadius: theme.styleMixins.customRadius.r12,
|
|
66
67
|
width: "2.8rem",
|
|
67
68
|
aspectRatio: "1/1.1",
|
|
68
69
|
margin: "0 0.25rem",
|
|
69
70
|
outline: "none",
|
|
70
|
-
color:
|
|
71
|
-
backgroundColor:
|
|
72
|
-
}, renderInput: function (props) { return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("input", __assign({}, props, { inputMode: "decimal", readOnly: readOnly })), (0, jsx_runtime_1.jsx)("style", { children: "input::selection {\n background-color:
|
|
71
|
+
color: theme.palette.text.primary,
|
|
72
|
+
backgroundColor: theme.palette.background.default,
|
|
73
|
+
}, renderInput: function (props) { return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("input", __assign({}, props, { inputMode: "decimal", readOnly: readOnly })), (0, jsx_runtime_1.jsx)("style", { children: "input::selection {\n background-color: ".concat(theme.palette.background.default, "; \n color: ").concat(theme.palette.text.primary, "; \n }") })] })); } })) }));
|
|
73
74
|
case OtpInputType.OTP:
|
|
74
75
|
return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
|
|
75
76
|
display: "flex",
|
|
76
77
|
alignItems: "center",
|
|
77
|
-
border: "1px solid
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
border: "1px solid",
|
|
79
|
+
borderColor: theme.palette.divider,
|
|
80
|
+
borderRadius: theme.styleMixins.customRadius.r12,
|
|
81
|
+
padding: "".concat(theme.styleMixins.customPadding.p16, " ").concat(theme.styleMixins.customPadding.p24),
|
|
80
82
|
width: "100%",
|
|
81
|
-
backgroundColor:
|
|
83
|
+
backgroundColor: theme.palette.background.default,
|
|
82
84
|
}, children: [(0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: {
|
|
83
85
|
width: 20,
|
|
84
86
|
height: 20,
|
|
85
87
|
}, children: SvgPath_1.IC_PASSCODE }), (0, jsx_runtime_1.jsx)(material_1.Divider, { orientation: "vertical", variant: "fullWidth", flexItem: true, sx: {
|
|
86
88
|
margin: "0 0.75rem",
|
|
87
89
|
} }), (0, jsx_runtime_1.jsx)(react_otp_input_1.default, __assign({}, rest, { onChange: onChange, numInputs: numInputs, inputType: "password", inputStyle: {
|
|
88
|
-
borderBottom: "1px solid
|
|
90
|
+
borderBottom: "1px solid ${theme.palette.text.secondary}",
|
|
89
91
|
width: "0.625rem",
|
|
90
92
|
margin: "0 0.25rem",
|
|
91
93
|
outline: "none",
|
|
92
|
-
color:
|
|
93
|
-
backgroundColor: "
|
|
94
|
-
}, renderInput: function (props) { return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("input", __assign({}, props, { inputMode: "decimal", readOnly: readOnly })), (0, jsx_runtime_1.jsx)("style", { children: "input::selection {\n background-color: transparent;\n color:
|
|
94
|
+
color: theme.palette.text.primary,
|
|
95
|
+
backgroundColor: "currentColor",
|
|
96
|
+
}, renderInput: function (props) { return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("input", __assign({}, props, { inputMode: "decimal", readOnly: readOnly })), (0, jsx_runtime_1.jsx)("style", { children: "input::selection {\n background-color: transparent;\n color: ".concat(theme.palette.text.primary, ";\n }") })] })); } }))] }));
|
|
95
97
|
case OtpInputType.CONFIRM_BY_PASSCODE:
|
|
96
98
|
var length_1 = numInputs || 6;
|
|
97
99
|
var value = ((_a = rest.value) === null || _a === void 0 ? void 0 : _a.split("")) || [];
|
|
@@ -107,16 +109,20 @@ var CustomOtpInput = function (props) {
|
|
|
107
109
|
}, children: (0, jsx_runtime_1.jsx)(xhub_keyboard_1.Input, { styles: {
|
|
108
110
|
container: {
|
|
109
111
|
width: "100%",
|
|
110
|
-
borderColor: theme.palette.
|
|
112
|
+
borderColor: theme.palette.divider,
|
|
111
113
|
},
|
|
112
114
|
input: {
|
|
113
115
|
width: "100%",
|
|
114
116
|
},
|
|
115
|
-
}, leftElement: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: { display: "flex", alignItems: "center", justifyContent: "center" }, children: [(0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { width: 20, height: 20 }, children: SvgPath_1.IC_PASSCODE }), (0, jsx_runtime_1.jsx)(material_1.Divider, { orientation: "vertical", variant: "fullWidth", flexItem: true, sx: { margin: "0 0.75rem" } })] }), displayType: xhub_keyboard_1.DisplayType.Text, isUseFormatNumber: false, value: valueRendered, renderValue: function (value, index) { return ((0, jsx_runtime_1.jsx)("span", { style: {
|
|
117
|
+
}, leftElement: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: { display: "flex", alignItems: "center", justifyContent: "center" }, children: [(0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { width: 20, height: 20 }, children: SvgPath_1.IC_PASSCODE }), (0, jsx_runtime_1.jsx)(material_1.Divider, { orientation: "vertical", variant: "fullWidth", flexItem: true, sx: { margin: "0 0.75rem" } })] }), displayType: xhub_keyboard_1.DisplayType.Text, isUseFormatNumber: false, value: valueRendered, renderValue: function (value, index) { return ((0, jsx_runtime_1.jsx)("span", { style: {
|
|
118
|
+
margin: "0.1rem",
|
|
119
|
+
display: "inline-block",
|
|
120
|
+
color: theme.palette.text.primary,
|
|
121
|
+
}, children: value != "_" ? "●" : "_" }, index)); } }) }));
|
|
116
122
|
default:
|
|
117
123
|
return ((0, jsx_runtime_1.jsx)(react_otp_input_1.default, __assign({}, rest, { onChange: onChange, numInputs: numInputs, renderInput: function (props) { return ((0, jsx_runtime_1.jsx)("input", __assign({}, props, { inputMode: "text", type: "text", readOnly: readOnly }))); } })));
|
|
118
124
|
}
|
|
119
|
-
}, [otpInputType, rest, onChange, numInputs, theme.palette.
|
|
125
|
+
}, [otpInputType, rest, onChange, numInputs, theme.palette.divider, readOnly]);
|
|
120
126
|
return InputElement;
|
|
121
127
|
};
|
|
122
128
|
exports.default = CustomOtpInput;
|