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
|
@@ -64,16 +64,16 @@ var formatter_1 = __importDefault(require("../Formatter/functions/formatter"));
|
|
|
64
64
|
var shareDrawer_1 = __importDefault(require("./components/shareDrawer"));
|
|
65
65
|
var link_1 = __importDefault(require("next/link"));
|
|
66
66
|
var DrawerComponent_1 = __importStar(require("../DrawerComponent"));
|
|
67
|
-
var theme_1 = __importDefault(require("../../../theme/mui/deposit-fiat-theme/theme"));
|
|
68
67
|
var Icon_1 = __importDefault(require("../Icon"));
|
|
69
68
|
var Button_1 = __importStar(require("../Button"));
|
|
70
69
|
var Text_1 = __importDefault(require("../Text"));
|
|
71
70
|
var style_1 = require("./style");
|
|
72
|
-
var palette_1 = require("../../../theme/mui/deposit-fiat-theme/palette");
|
|
73
71
|
var type_1 = require("../../../services/axios/get-activities-service/type");
|
|
74
72
|
var CopyTextComponent_1 = __importDefault(require("../CopyTextComponent"));
|
|
75
73
|
var Formatter_1 = __importDefault(require("../Formatter"));
|
|
76
74
|
var PageHeader_1 = __importDefault(require("../PageHeader"));
|
|
75
|
+
var providers_1 = require("../../../providers");
|
|
76
|
+
var mui_1 = require("../../../theme/mui");
|
|
77
77
|
// Because PageHeader component don't work
|
|
78
78
|
var BackArrow = function (props) {
|
|
79
79
|
return ((0, jsx_runtime_1.jsxs)("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none" }, props, { children: [(0, jsx_runtime_1.jsx)("mask", { id: "mask0_6061_2295", style: { maskType: "alpha" }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "24", height: "24", children: (0, jsx_runtime_1.jsx)("rect", { width: "24", height: "24", fill: "#D9D9D9" }) }), (0, jsx_runtime_1.jsx)("g", { mask: "url(#mask0_6061_2295)", children: (0, jsx_runtime_1.jsx)("path", { d: "M14 17.6538L8.34619 12L14 6.34619L15.0538 7.40002L10.4538 12L15.0538 16.6L14 17.6538Z", fill: "#121212" }) })] })));
|
|
@@ -92,22 +92,22 @@ var CopyIcon = function () {
|
|
|
92
92
|
};
|
|
93
93
|
exports.CopyIcon = CopyIcon;
|
|
94
94
|
function FiatDeposit(_a) {
|
|
95
|
-
var _b, _c, _d, _e
|
|
95
|
+
var _b, _c, _d, _e;
|
|
96
96
|
var children = _a.children;
|
|
97
97
|
var amountInputRef = (0, react_1.useRef)(null);
|
|
98
|
-
var
|
|
99
|
-
var
|
|
100
|
-
var
|
|
101
|
-
var
|
|
98
|
+
var _f = (0, useWallet_1.default)(), masterWallet = _f.masterWallet, transaction = _f.transaction, receiveExternalTokens = _f.receiveExternalTokens, tokens = _f.tokens;
|
|
99
|
+
var _g = (0, react_1.useState)(false), open = _g[0], setOpen = _g[1];
|
|
100
|
+
var _h = (0, react_1.useState)(false), openQR = _h[0], setOpenQR = _h[1];
|
|
101
|
+
var _j = (0, react_1.useState)(false), openShare = _j[0], setOpenShare = _j[1];
|
|
102
102
|
var keyboardId = (0, useUniqueId_1.useUniqueId)("receive-function-keyboard");
|
|
103
|
-
var
|
|
104
|
-
var
|
|
105
|
-
var
|
|
106
|
-
var
|
|
107
|
-
var
|
|
108
|
-
var
|
|
103
|
+
var _k = (0, react_1.useState)(""), inputAmount = _k[0], setInputAmount = _k[1];
|
|
104
|
+
var _l = (0, react_1.useState)(null), depositData = _l[0], setDepositData = _l[1];
|
|
105
|
+
var _m = (0, react_1.useState)(false), loading = _m[0], setLoading = _m[1];
|
|
106
|
+
var _o = (0, react_1.useState)(null), error = _o[0], setError = _o[1];
|
|
107
|
+
var _p = (0, react_1.useState)(false), copySuccess = _p[0], setCopySuccess = _p[1];
|
|
108
|
+
var _q = (0, usehooks_ts_1.useCountdown)({
|
|
109
109
|
countStart: 600,
|
|
110
|
-
}), count =
|
|
110
|
+
}), count = _q[0], _r = _q[1], startCountdown = _r.startCountdown, resetCountdown = _r.resetCountdown;
|
|
111
111
|
var handleChangeAmount = function (value) {
|
|
112
112
|
var amountNumber = Number(value);
|
|
113
113
|
if (isNaN(amountNumber)) {
|
|
@@ -185,6 +185,8 @@ function FiatDeposit(_a) {
|
|
|
185
185
|
}
|
|
186
186
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
187
187
|
}, [inputAmount]);
|
|
188
|
+
var keyboardThemeMode = (0, providers_1.useKeyboardThemeMode)();
|
|
189
|
+
var theme = (0, mui_1.useTheme)();
|
|
188
190
|
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("span", { onClick: function (e) {
|
|
189
191
|
e.stopPropagation();
|
|
190
192
|
setOpen(true);
|
|
@@ -196,27 +198,27 @@ function FiatDeposit(_a) {
|
|
|
196
198
|
}, title: "Top up", overrideBack: function () {
|
|
197
199
|
setOpen(false);
|
|
198
200
|
setInputAmount("");
|
|
199
|
-
} }), (0, jsx_runtime_1.jsx)(xhub_keyboard_1.Keyboard, { id: keyboardId, onChange: handleChangeAmount, keyboardType: xhub_keyboard_1.KeyboardType.Double, value: inputAmount === null || inputAmount === void 0 ? void 0 : inputAmount.toString(), keyboardId: "amount-keyboard-id", classNames: {
|
|
201
|
+
} }), (0, jsx_runtime_1.jsx)(xhub_keyboard_1.Keyboard, { theme: keyboardThemeMode, id: keyboardId, onChange: handleChangeAmount, keyboardType: xhub_keyboard_1.KeyboardType.Double, value: inputAmount === null || inputAmount === void 0 ? void 0 : inputAmount.toString(), keyboardId: "amount-keyboard-id", classNames: {
|
|
200
202
|
children: "fc",
|
|
201
203
|
}, styles: {
|
|
202
204
|
container: {
|
|
203
205
|
height: "100%",
|
|
204
206
|
},
|
|
205
207
|
}, children: (0, jsx_runtime_1.jsxs)(material_1.Stack, { height: "100%", flexDirection: "column", children: [(0, jsx_runtime_1.jsx)(material_1.Stack, { height: 0, flex: 1, p: "1rem", children: (0, jsx_runtime_1.jsxs)(material_1.Stack, { flexDirection: "column", p: "1rem", sx: {
|
|
206
|
-
backgroundColor:
|
|
208
|
+
backgroundColor: "background.tertiary",
|
|
207
209
|
border: "1px solid",
|
|
208
|
-
borderColor:
|
|
210
|
+
borderColor: "palette.divider",
|
|
209
211
|
borderRadius: "1rem",
|
|
210
212
|
gap: "0.5rem",
|
|
211
213
|
opacity: loading ? 0.5 : 1,
|
|
212
214
|
pointerEvents: loading ? "none" : "auto",
|
|
213
|
-
}, children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, style_1.title02), color:
|
|
215
|
+
}, children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, style_1.title02), color: "text.primary", children: "You Pay" }), (0, jsx_runtime_1.jsx)(xhub_keyboard_1.Label, { htmlFor: keyboardId, children: (0, jsx_runtime_1.jsx)(xhub_keyboard_1.Input, { autoFocus: true, alwaysFocus: true, ref: amountInputRef, elementsAcceptIds: ["amount-keyboard-id"], value: inputAmount === null || inputAmount === void 0 ? void 0 : inputAmount.toString(), displayType: xhub_keyboard_1.DisplayType.Double, styles: {
|
|
214
216
|
container: {
|
|
215
|
-
border: "1px solid ".concat(error ?
|
|
217
|
+
border: "1px solid ".concat(error ? theme.palette.error.main : theme.palette.primary.main),
|
|
216
218
|
},
|
|
217
219
|
}, rightElement: (0, jsx_runtime_1.jsxs)(material_1.Stack, { flexDirection: "row", alignItems: "center", gap: "4px", flexShrink: 0, pl: "1rem", children: [(0, jsx_runtime_1.jsx)(Icon_1.default, { alt: "", width: 16, height: 16, sx: {
|
|
218
220
|
borderRadius: "999px",
|
|
219
|
-
}, src: (
|
|
221
|
+
}, src: (_c = (_b = tokens === null || tokens === void 0 ? void 0 : tokens.find(function (item) { return item.currency_slug.toLocaleLowerCase() === "vnd"; })) === null || _b === void 0 ? void 0 : _b.currency.link) !== null && _c !== void 0 ? _c : "/" }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, style_1.title03), color: "text.primary", children: "VND" })] }) }) }), error && ((0, jsx_runtime_1.jsxs)(Text_1.default, { sx: __assign({}, style_1.content02), display: "flex", alignItems: "center", gap: "4px", className: "text-error", children: [(0, jsx_runtime_1.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", children: (0, jsx_runtime_1.jsx)("path", { d: "M7 5.25V7.4375M12.25 7C12.25 7.68944 12.1142 8.37213 11.8504 9.00909C11.5865 9.64605 11.1998 10.2248 10.7123 10.7123C10.2248 11.1998 9.64605 11.5865 9.00909 11.8504C8.37213 12.1142 7.68944 12.25 7 12.25C6.31056 12.25 5.62787 12.1142 4.99091 11.8504C4.35395 11.5865 3.7752 11.1998 3.28769 10.7123C2.80018 10.2248 2.41347 9.64605 2.14963 9.00909C1.8858 8.37213 1.75 7.68944 1.75 7C1.75 5.60761 2.30312 4.27226 3.28769 3.28769C4.27226 2.30312 5.60761 1.75 7 1.75C8.39239 1.75 9.72774 2.30312 10.7123 3.28769C11.6969 4.27226 12.25 5.60761 12.25 7ZM7 9.1875H7.00467V9.19217H7V9.1875Z", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" }) }), error] }))] }) }), (0, jsx_runtime_1.jsx)(material_1.Stack, { pt: "12px", id: "input-amount-action", children: (0, jsx_runtime_1.jsx)(material_1.Box, { px: "1rem", pb: "1.5rem", children: (0, jsx_runtime_1.jsx)(Button_1.default.Primary, { status: !!error || !inputAmount
|
|
220
222
|
? Button_1.BUTTON_STATUS.DISABLED
|
|
221
223
|
: loading
|
|
222
224
|
? Button_1.BUTTON_STATUS.LOADING
|
|
@@ -225,12 +227,12 @@ function FiatDeposit(_a) {
|
|
|
225
227
|
setOpenQR(false);
|
|
226
228
|
setInputAmount("");
|
|
227
229
|
} }), (0, jsx_runtime_1.jsxs)(material_1.Stack, { height: "100%", p: "1rem", pt: "26%", children: [(0, jsx_runtime_1.jsx)(material_1.Stack, { height: 0, flex: 1, width: "100%", children: (0, jsx_runtime_1.jsxs)(material_1.Stack, { alignItems: "center", p: "1rem", sx: {
|
|
228
|
-
backgroundColor:
|
|
230
|
+
backgroundColor: "background.tertiary",
|
|
229
231
|
border: "1px solid",
|
|
230
|
-
borderColor:
|
|
232
|
+
borderColor: "palette.divider",
|
|
231
233
|
borderRadius: "1rem",
|
|
232
234
|
gap: "0.75rem",
|
|
233
|
-
}, children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { position: "relative", width: "45%", mt: "-25%", sx: { aspectRatio: "1 / 1" }, children: [(0, jsx_runtime_1.jsx)(Icon_1.default, { src: (
|
|
235
|
+
}, children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { position: "relative", width: "45%", mt: "-25%", sx: { aspectRatio: "1 / 1" }, children: [(0, jsx_runtime_1.jsx)(Icon_1.default, { src: (_d = depositData === null || depositData === void 0 ? void 0 : depositData.qr_code) !== null && _d !== void 0 ? _d : "/", sx: {
|
|
234
236
|
position: "absolute",
|
|
235
237
|
inset: 0,
|
|
236
238
|
}, style: { filter: count === 0 ? "blur(6px)" : "none" } }), count === 0 && ((0, jsx_runtime_1.jsx)(material_1.Stack, { direction: "row", position: "absolute", alignItems: "center", justifyContent: "center", sx: {
|
|
@@ -243,16 +245,16 @@ function FiatDeposit(_a) {
|
|
|
243
245
|
display: "flex",
|
|
244
246
|
alignItems: "center",
|
|
245
247
|
flexDirection: "column",
|
|
246
|
-
color:
|
|
248
|
+
color: "text.primary",
|
|
247
249
|
}, children: [(0, jsx_runtime_1.jsx)(Formatter_1.default, { value: depositData === null || depositData === void 0 ? void 0 : depositData.amount, unit: "VND", hideUnitOutSide: true }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
|
|
248
250
|
fontSize: "0.938rem",
|
|
249
251
|
fontWeight: 500,
|
|
250
252
|
lineHeight: "140%",
|
|
251
|
-
}, children: "VND" })] }), (0, jsx_runtime_1.jsxs)(Text_1.default, { display: "flex", alignItems: "center", gap: "0.375rem", sx: __assign({}, style_1.title03), color:
|
|
253
|
+
}, children: "VND" })] }), (0, jsx_runtime_1.jsxs)(Text_1.default, { display: "flex", alignItems: "center", gap: "0.375rem", sx: __assign({}, style_1.title03), color: "text.primary", children: ["Top up time left", (0, jsx_runtime_1.jsx)(TimeText_1.default, { seconds: count }), (0, jsx_runtime_1.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", children: (0, jsx_runtime_1.jsx)("path", { d: "M7 5V7.5M13 7C13 7.78793 12.8448 8.56815 12.5433 9.2961C12.2417 10.0241 11.7998 10.6855 11.2426 11.2426C10.6855 11.7998 10.0241 12.2417 9.2961 12.5433C8.56815 12.8448 7.78793 13 7 13C6.21207 13 5.43185 12.8448 4.7039 12.5433C3.97595 12.2417 3.31451 11.7998 2.75736 11.2426C2.20021 10.6855 1.75825 10.0241 1.45672 9.2961C1.15519 8.56815 1 7.78793 1 7C1 5.4087 1.63214 3.88258 2.75736 2.75736C3.88258 1.63214 5.4087 1 7 1C8.5913 1 10.1174 1.63214 11.2426 2.75736C12.3679 3.88258 13 5.4087 13 7ZM7 9.5H7.00533V9.50533H7V9.5Z", stroke: "#044C2F", strokeLinecap: "round", strokeLinejoin: "round" }) })] }), (0, jsx_runtime_1.jsx)(material_1.Divider, { flexItem: true }), (0, jsx_runtime_1.jsxs)(Text_1.default, { display: "flex", flexDirection: "column", alignItems: "center", gap: "0.375rem", sx: __assign({}, style_1.title01), children: [depositData === null || depositData === void 0 ? void 0 : depositData.metadata.bank_account.account_name, (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, style_1.content02), color: "text.primary", children: depositData === null || depositData === void 0 ? void 0 : depositData.metadata.bank_account.bank_name }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, style_1.title02), display: "flex", alignItems: "center", gap: "0.25rem", children: (0, jsx_runtime_1.jsxs)(CopyTextComponent_1.default, { sx: {
|
|
252
254
|
display: "flex",
|
|
253
255
|
alignItems: "center",
|
|
254
256
|
gap: 1,
|
|
255
|
-
}, value: (depositData === null || depositData === void 0 ? void 0 : depositData.metadata.bank_account.account_number) || "", children: [depositData === null || depositData === void 0 ? void 0 : depositData.metadata.bank_account.account_number, " ", (0, jsx_runtime_1.jsx)(exports.CopyIcon, {})] }) }), (0, jsx_runtime_1.jsx)(link_1.default, { href: (
|
|
257
|
+
}, value: (depositData === null || depositData === void 0 ? void 0 : depositData.metadata.bank_account.account_number) || "", children: [depositData === null || depositData === void 0 ? void 0 : depositData.metadata.bank_account.account_number, " ", (0, jsx_runtime_1.jsx)(exports.CopyIcon, {})] }) }), (0, jsx_runtime_1.jsx)(link_1.default, { href: (_e = depositData === null || depositData === void 0 ? void 0 : depositData._link.payment_link.href) !== null && _e !== void 0 ? _e : "#", target: "_blank", rel: "noopener noreferrer", style: {
|
|
256
258
|
marginTop: "-0.5rem",
|
|
257
259
|
}, children: (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign({}, style_1.content02), { textDecoration: "underline", fontStyle: "italic" }), children: "Transfer" }) })] })] }) }), (0, jsx_runtime_1.jsx)(material_1.Box, { pt: "0.75rem", pb: "1rem", width: "100%", children: (0, jsx_runtime_1.jsx)(Button_1.default.Primary, { disabled: loading, loading: loading, onClick: function () {
|
|
258
260
|
if (count === 0) {
|
|
@@ -68,6 +68,7 @@ var Formatter = function (_a) {
|
|
|
68
68
|
]);
|
|
69
69
|
var trigger = valueDisplay();
|
|
70
70
|
return ((0, jsx_runtime_1.jsx)(CustomTooltip_1.default, { disabled: disableTooltip, trigger: value ? addUnit(trigger) : trigger, sx: {
|
|
71
|
+
display: "inline-block",
|
|
71
72
|
"& .MuiPaper-root": {
|
|
72
73
|
whiteSpace: "nowrap",
|
|
73
74
|
backdropFilter: "blur(10px)",
|
|
@@ -76,6 +77,8 @@ var Formatter = function (_a) {
|
|
|
76
77
|
fontSize: "1.05em",
|
|
77
78
|
fontWeight: 500,
|
|
78
79
|
lineHeight: "100%",
|
|
80
|
+
backgroundColor: "background.popover",
|
|
81
|
+
display: "inline-block",
|
|
79
82
|
},
|
|
80
83
|
}, children: (0, jsx_runtime_1.jsx)(exports.Formatter, { disableTooltip: true, start: start, value: value, lengthValueAllowed: 12, useCompact: false, unit: unit, allowShowZero: true, isNotCurrency: isNotCurrency }) }));
|
|
81
84
|
};
|
|
@@ -16,15 +16,14 @@ 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 Icon_1 = __importDefault(require("../Icon"));
|
|
21
21
|
var Text_1 = __importDefault(require("../Text"));
|
|
22
22
|
var FunctionItem = function (props) {
|
|
23
|
-
var theme = (0,
|
|
24
|
-
return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign(__assign({}, theme.
|
|
25
|
-
borderRadius: theme.
|
|
23
|
+
var theme = (0, mui_1.useTheme)();
|
|
24
|
+
return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign(__assign({}, theme.styleMixins.column), { alignItems: "center", gap: theme.styleMixins.gaps.g4, color: theme.palette.primary.main }), props.sx), children: [(0, jsx_runtime_1.jsx)(Icon_1.default, { iconKey: props.icon, alt: "", sx: {
|
|
25
|
+
borderRadius: theme.styleMixins.customRadius.full,
|
|
26
26
|
}, width: 24 }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
|
|
27
|
-
color: theme.palette.text.primary,
|
|
28
27
|
fontSize: theme.typography.fontSize11,
|
|
29
28
|
lineHeight: theme.typography.leading140,
|
|
30
29
|
fontWeight: theme.typography.fontWeight600,
|
|
@@ -68,6 +68,6 @@ var Icon = function (props) {
|
|
|
68
68
|
if (src) {
|
|
69
69
|
return ((0, jsx_runtime_1.jsx)(material_1.Box, __assign({ component: "img", src: src, alt: alt, onClick: onClick }, rest, { sx: __assign({ display: "block", width: ((_a = width !== null && width !== void 0 ? width : height) !== null && _a !== void 0 ? _a : false) ? "".concat((width || height || 0) / 16, "rem") : "auto", height: ((_b = height !== null && height !== void 0 ? height : width) !== null && _b !== void 0 ? _b : false) ? "".concat((height || width || 0) / 16, "rem") : "auto" }, sx) })));
|
|
70
70
|
}
|
|
71
|
-
return ((0, jsx_runtime_1.jsx)(material_1.SvgIcon, __assign({}, rest, { sx: __assign({ width: ((_c = width !== null && width !== void 0 ? width : height) !== null && _c !== void 0 ? _c : false) ? "".concat((width || height || 0) / 16, "rem") : "auto", height: ((_d = height !== null && height !== void 0 ? height : width) !== null && _d !== void 0 ? _d : false) ? "".concat((height || width || 0) / 16, "rem") : "auto" }, sx), children: icon })));
|
|
71
|
+
return ((0, jsx_runtime_1.jsx)(material_1.SvgIcon, __assign({}, rest, { onClick: onClick, sx: __assign({ width: ((_c = width !== null && width !== void 0 ? width : height) !== null && _c !== void 0 ? _c : false) ? "".concat((width || height || 0) / 16, "rem") : "auto", height: ((_d = height !== null && height !== void 0 ? height : width) !== null && _d !== void 0 ? _d : false) ? "".concat((height || width || 0) / 16, "rem") : "auto", display: "block" }, sx), children: icon })));
|
|
72
72
|
};
|
|
73
73
|
exports.default = Icon;
|
|
@@ -18,9 +18,9 @@ exports.default = IconText;
|
|
|
18
18
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
19
|
var Text_1 = __importDefault(require("../Text"));
|
|
20
20
|
var material_1 = require("@mui/material");
|
|
21
|
-
var
|
|
21
|
+
var mui_1 = require("../../../theme/mui");
|
|
22
22
|
function IconText(props) {
|
|
23
23
|
var title = props.title, beforeIcon = props.beforeIcon, afterIcon = props.afterIcon, sx = props.sx;
|
|
24
|
-
var theme = (0,
|
|
25
|
-
return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.
|
|
24
|
+
var theme = (0, mui_1.useTheme)();
|
|
25
|
+
return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.row), { gap: theme.styleMixins.gaps.g8 }), children: [beforeIcon && beforeIcon, (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, sx), children: title }), afterIcon && afterIcon] }));
|
|
26
26
|
}
|
|
@@ -18,14 +18,14 @@ 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
20
|
var Formatter_1 = __importDefault(require("../../Formatter"));
|
|
21
|
-
var providers_1 = require("../../../../providers");
|
|
22
21
|
var ContentHiddenProvider_1 = require("../../../../providers/ContentHiddenProvider");
|
|
23
22
|
var SvgPath_1 = require("../../SvgPath");
|
|
24
23
|
var Column_1 = __importDefault(require("../../Column"));
|
|
25
24
|
var Spacer_1 = __importDefault(require("../../Spacer"));
|
|
25
|
+
var mui_1 = require("../../../../theme/mui");
|
|
26
26
|
var AnalyticGroup = function (props) {
|
|
27
27
|
var _a;
|
|
28
|
-
var theme = (0,
|
|
28
|
+
var theme = (0, mui_1.useTheme)();
|
|
29
29
|
var _b = (0, ContentHiddenProvider_1.useContentHidden)(), isHidden = _b.isHidden, setIsHidden = _b.setIsHidden;
|
|
30
30
|
var userInfo = props.userInfo;
|
|
31
31
|
var toggleHidden = function () {
|
|
@@ -34,54 +34,53 @@ var AnalyticGroup = function (props) {
|
|
|
34
34
|
return ((0, jsx_runtime_1.jsxs)(Column_1.default, { children: [(0, jsx_runtime_1.jsxs)(Text_1.default, { sx: {
|
|
35
35
|
fontSize: theme.typography.fontSize12,
|
|
36
36
|
fontWeight: theme.typography.fontWeight500,
|
|
37
|
-
color: theme.palette.text.
|
|
38
|
-
}, children: ["Welcome, ", userInfo === null || userInfo === void 0 ? void 0 : userInfo.accountName, "!"] }), (0, jsx_runtime_1.jsx)(Spacer_1.default, { value: "0.25rem" }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.
|
|
37
|
+
color: theme.palette.text.secondary,
|
|
38
|
+
}, children: ["Welcome, ", userInfo === null || userInfo === void 0 ? void 0 : userInfo.accountName, "!"] }), (0, jsx_runtime_1.jsx)(Spacer_1.default, { value: "0.25rem" }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.row), { justifyContent: "space-between" }), children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.row), { gap: theme.styleMixins.gaps.g6, position: "relative", bottom: "30px", color: theme.palette.text.secondary }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
|
|
39
39
|
fontSize: theme.typography.fontSize15,
|
|
40
40
|
fontWeight: theme.typography.fontWeight500,
|
|
41
|
-
color: theme.palette.text.accent2,
|
|
42
41
|
}, children: "Total Amount" }), (0, jsx_runtime_1.jsx)(material_1.SvgIcon, { onClick: toggleHidden, sx: { cursor: "pointer", width: 14, height: 14 }, children: SvgPath_1.IC_NO_SEE })] }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
|
|
43
42
|
display: "flex",
|
|
44
43
|
flexDirection: "column",
|
|
45
44
|
alignItems: "flex-end",
|
|
46
|
-
gap: theme.
|
|
45
|
+
gap: theme.styleMixins.gaps.g6,
|
|
47
46
|
fontSize: theme.typography.fontSize12,
|
|
48
|
-
}, children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign(__assign({}, theme.
|
|
47
|
+
}, children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign(__assign({}, theme.styleMixins.row), theme.styleMixins.value), { fontSize: theme.typography.fontSize20, gap: theme.styleMixins.gaps.g6 }), children: !isHidden ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Formatter_1.default, { sx: { fontWeight: theme.typography.fontWeight700 }, value: (_a = userInfo === null || userInfo === void 0 ? void 0 : userInfo.amount) !== null && _a !== void 0 ? _a : 0 }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.row), { gap: theme.styleMixins.gaps.g4 }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
|
|
49
48
|
fontWeight: theme.typography.fontWeight400,
|
|
50
49
|
fontSize: "0.8em",
|
|
51
50
|
}, children: "WealthS" }), (0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { cursor: "pointer", width: 8, height: 8 }, children: SvgPath_1.ARROW_DROP_DOWN })] })] })) : ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
|
|
52
51
|
fontSize: theme.typography.fontSize24,
|
|
53
52
|
fontWeight: theme.typography.fontWeight700,
|
|
54
|
-
color: theme.palette.text.
|
|
55
|
-
}, children: "*****" })) }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.
|
|
53
|
+
color: theme.palette.text.primary,
|
|
54
|
+
}, children: "*****" })) }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.row), { gap: theme.styleMixins.gaps.g4 }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
|
|
56
55
|
fontWeight: theme.typography.fontWeight600,
|
|
57
56
|
leading: theme.typography.leading140,
|
|
58
57
|
fontSize: theme.typography.fontSize12,
|
|
59
58
|
textTransform: "capitalize",
|
|
60
|
-
color: theme.palette.text.
|
|
61
|
-
}, children: props.timeRange }), !isHidden ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { cursor: "pointer", width: 8, height: 8 }, children: SvgPath_1.ARROW_DROP_UP }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign({}, theme.
|
|
59
|
+
color: theme.palette.text.secondary,
|
|
60
|
+
}, children: props.timeRange }), !isHidden ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { cursor: "pointer", width: 8, height: 8 }, children: SvgPath_1.ARROW_DROP_UP }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign({}, theme.styleMixins.value), { color: theme.palette.text.secondary, fontSize: theme.typography.fontSize12, fontWeight: theme.typography.fontWeight600, borderBottom: "1px dashed currentColor" }), children: "5.63 (+3,22%)" })] })) : ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
|
|
62
61
|
fontSize: theme.typography.fontSize12,
|
|
63
62
|
fontWeight: theme.typography.fontWeight600,
|
|
64
|
-
color: theme.palette.text.
|
|
65
|
-
display: theme.
|
|
63
|
+
color: theme.palette.text.secondary,
|
|
64
|
+
display: theme.styleMixins.row,
|
|
66
65
|
}, children: "****" }))] }), (0, jsx_runtime_1.jsx)(material_1.Divider, { sx: {
|
|
67
66
|
width: "110%",
|
|
68
|
-
borderColor: "".concat(theme.palette.
|
|
67
|
+
borderColor: "".concat(theme.palette.divider),
|
|
69
68
|
opacity: 0.2,
|
|
70
|
-
marginTop: theme.
|
|
71
|
-
} }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.
|
|
69
|
+
marginTop: theme.styleMixins.customMargin.m4,
|
|
70
|
+
} }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.row), { gap: theme.styleMixins.gaps.g4 }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
|
|
72
71
|
fontWeight: theme.typography.fontWeight500,
|
|
73
72
|
leading: theme.typography.leading140,
|
|
74
73
|
fontSize: theme.typography.fontSize12,
|
|
75
74
|
textTransform: "capitalize",
|
|
76
|
-
color: theme.palette.text.
|
|
77
|
-
}, children: "Profit" }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign({}, theme.
|
|
75
|
+
color: theme.palette.text.secondary,
|
|
76
|
+
}, children: "Profit" }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign({}, theme.styleMixins.row), children: !isHidden ? ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
|
|
78
77
|
fontSize: theme.typography.fontSize12,
|
|
79
78
|
fontWeight: theme.typography.fontWeight600,
|
|
80
|
-
color: theme.palette.text.
|
|
79
|
+
color: theme.palette.text.secondary,
|
|
81
80
|
}, children: "\u2248 250 WealthS" }) })) : ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
|
|
82
81
|
fontSize: theme.typography.fontSize12,
|
|
83
82
|
fontWeight: theme.typography.fontWeight600,
|
|
84
|
-
color: theme.palette.text.
|
|
83
|
+
color: theme.palette.text.secondary,
|
|
85
84
|
}, children: "****" })) }), (0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { cursor: "pointer", width: 14, height: 14 }, children: SvgPath_1.IC_INFORMATION })] })] })] })] }));
|
|
86
85
|
};
|
|
87
86
|
exports.default = AnalyticGroup;
|
|
@@ -53,11 +53,11 @@ var framer_motion_1 = require("framer-motion");
|
|
|
53
53
|
var material_1 = require("@mui/material");
|
|
54
54
|
var TimeFilter_1 = __importStar(require("../../TimeFilter"));
|
|
55
55
|
var ContentHiddenProvider_1 = require("../../../../providers/ContentHiddenProvider");
|
|
56
|
-
var providers_1 = require("../../../../providers");
|
|
57
56
|
var DelayMounted_1 = __importDefault(require("../../DelayMounted"));
|
|
58
57
|
var NeonLineChart_1 = __importDefault(require("../../NeonLineChart"));
|
|
59
58
|
var SvgPath_1 = require("../../SvgPath");
|
|
60
59
|
var AnalyticGroup_1 = __importDefault(require("./AnalyticGroup"));
|
|
60
|
+
var mui_1 = require("../../../../theme/mui");
|
|
61
61
|
var fakeSeries = [
|
|
62
62
|
{
|
|
63
63
|
name: "All",
|
|
@@ -110,14 +110,14 @@ var BalanceChart = function (props) {
|
|
|
110
110
|
var _a = (0, react_1.useState)(false), expandAreaChart = _a[0], setExpandAreaChart = _a[1];
|
|
111
111
|
var _b = (0, react_1.useState)(), timeRangeData = _b[0], setTimeRangeData = _b[1];
|
|
112
112
|
var isHidden = (0, ContentHiddenProvider_1.useContentHidden)().isHidden;
|
|
113
|
-
var theme = (0,
|
|
113
|
+
var theme = (0, mui_1.useTheme)();
|
|
114
114
|
var handleChangeTimeRange = function (data) {
|
|
115
115
|
setTimeRangeData(data);
|
|
116
116
|
};
|
|
117
117
|
var toggleExpand = function () {
|
|
118
118
|
setExpandAreaChart(function (prev) { return !prev; });
|
|
119
119
|
};
|
|
120
|
-
return ((0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, props.sx), { width: "100%" }), children: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign({}, theme.
|
|
120
|
+
return ((0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, props.sx), { width: "100%" }), children: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign({}, theme.styleMixins.column), children: [(0, jsx_runtime_1.jsx)(AnalyticGroup_1.default, { timeRange: timeRangeData === null || timeRangeData === void 0 ? void 0 : timeRangeData.type, userInfo: props.userInfo }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.row), { position: "relative", marginTop: theme.styleMixins.customMargin.m12 }), children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
|
|
121
121
|
width: "100%",
|
|
122
122
|
position: "relative",
|
|
123
123
|
transition: "all 500ms ease-in-out",
|
|
@@ -139,7 +139,7 @@ var BalanceChart = function (props) {
|
|
|
139
139
|
height: "fit-content",
|
|
140
140
|
transition: "all 500ms ease-in-out",
|
|
141
141
|
transform: !expandAreaChart ? "translateY(-100%)" : "none",
|
|
142
|
-
my: theme.
|
|
142
|
+
my: theme.styleMixins.customMargin.m3,
|
|
143
143
|
} }) }) }), (0, jsx_runtime_1.jsx)(framer_motion_1.motion.div, { style: {
|
|
144
144
|
position: "relative",
|
|
145
145
|
transform: "translateY(350%)",
|
|
@@ -158,7 +158,7 @@ var BalanceChart = function (props) {
|
|
|
158
158
|
alignSelf: "center",
|
|
159
159
|
transition: "all 500ms ease-in-out",
|
|
160
160
|
cursor: "pointer",
|
|
161
|
-
mt: theme.
|
|
161
|
+
mt: theme.styleMixins.customMargin.m4,
|
|
162
162
|
transform: !expandAreaChart
|
|
163
163
|
? "rotate(180deg) translateX(900%) translateY(120%)"
|
|
164
164
|
: "translateX(-50%) translateY(100%)",
|
|
@@ -16,11 +16,11 @@ 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 providers_1 = require("../../../../providers");
|
|
20
19
|
var Text_1 = __importDefault(require("../../Text"));
|
|
20
|
+
var mui_1 = require("../../../../theme/mui");
|
|
21
21
|
var FunctionItem = function (props) {
|
|
22
|
-
var theme = (0,
|
|
23
|
-
return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign(__assign({}, theme.
|
|
22
|
+
var theme = (0, mui_1.useTheme)();
|
|
23
|
+
return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign(__assign({}, theme.styleMixins.column), { alignItems: "center", gap: theme.styleMixins.gaps.g6 }), props.sx), children: [(0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { width: props.width, height: props.height }, children: props.icon }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
|
|
24
24
|
color: "text.white",
|
|
25
25
|
fontSize: theme.typography.fontSize13,
|
|
26
26
|
lineHeight: theme.typography.leading140,
|
|
@@ -7,8 +7,8 @@ var jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
7
7
|
var Row_1 = __importDefault(require("../../Row"));
|
|
8
8
|
var Column_1 = __importDefault(require("../../Column"));
|
|
9
9
|
var Text_1 = __importDefault(require("../../Text"));
|
|
10
|
-
var providers_1 = require("../../../../providers");
|
|
11
10
|
var Spacer_1 = __importDefault(require("../../Spacer"));
|
|
11
|
+
var mui_1 = require("../../../../theme/mui");
|
|
12
12
|
var convertIntoPrice = function (amount) {
|
|
13
13
|
return amount.toLocaleString("en-US", {
|
|
14
14
|
style: "currency",
|
|
@@ -19,13 +19,13 @@ var convertIntoPrice = function (amount) {
|
|
|
19
19
|
var HistoryItem = function (_a) {
|
|
20
20
|
var _b, _c;
|
|
21
21
|
var tradeHistory = _a.tradeHistory;
|
|
22
|
-
var theme = (0,
|
|
22
|
+
var theme = (0, mui_1.useTheme)();
|
|
23
23
|
var isIncome = ((_b = tradeHistory.inOut) === null || _b === void 0 ? void 0 : _b.toLowerCase()) === "in";
|
|
24
24
|
var sign = isIncome ? "+" : "-";
|
|
25
25
|
var amount = convertIntoPrice((_c = tradeHistory.amount) !== null && _c !== void 0 ? _c : 0);
|
|
26
26
|
var amountColor = isIncome ? "#008000" : "#FF0000";
|
|
27
27
|
return ((0, jsx_runtime_1.jsxs)(Row_1.default, { sx: {
|
|
28
|
-
borderBottom: "1px solid ".concat(theme.palette.
|
|
28
|
+
borderBottom: "1px solid ".concat(theme.palette.divider),
|
|
29
29
|
width: "100%",
|
|
30
30
|
justifyContent: "space-between",
|
|
31
31
|
padding: "0.5rem 0",
|
|
@@ -45,6 +45,7 @@ var deposit_1 = __importDefault(require("./deposit"));
|
|
|
45
45
|
var xhub_keyboard_1 = require("xhub-keyboard");
|
|
46
46
|
var PageHeader_1 = __importDefault(require("../../PageHeader"));
|
|
47
47
|
var useUniqueId_1 = require("../../../../hooks/useUniqueId");
|
|
48
|
+
var providers_1 = require("../../../../providers");
|
|
48
49
|
function WealthDeposit(props) {
|
|
49
50
|
var _a, _b;
|
|
50
51
|
var drawerRef = (0, react_1.useRef)(null);
|
|
@@ -59,7 +60,8 @@ function WealthDeposit(props) {
|
|
|
59
60
|
};
|
|
60
61
|
var keyboardId = (0, useUniqueId_1.useUniqueId)("wealth-deposit-keyboard");
|
|
61
62
|
var keyboardRef = (0, react_1.useRef)(null);
|
|
62
|
-
|
|
63
|
+
var keyboardThemeMode = (0, providers_1.useKeyboardThemeMode)();
|
|
64
|
+
return ((0, jsx_runtime_1.jsx)(DrawerComponent_1.default, { ref: drawerRef, trigger: props.children, onDismiss: props.onClose, direction: DrawerComponent_1.DRAWER_DIRECTION.RIGHT, children: (0, jsx_runtime_1.jsx)(xhub_keyboard_1.Keyboard, { theme: keyboardThemeMode, ref: keyboardRef, id: keyboardId, value: props.amount, onChange: function (value) {
|
|
63
65
|
var _a;
|
|
64
66
|
(_a = props === null || props === void 0 ? void 0 : props.setAmount) === null || _a === void 0 ? void 0 : _a.call(props, value);
|
|
65
67
|
}, keyboardType: xhub_keyboard_1.KeyboardType.Double, layoutType: xhub_keyboard_1.LayoutType.Integer, viewFullHeight: true, children: (0, jsx_runtime_1.jsx)(ModalLayout_1.default, { onClose: close, fullScreen: true, backgroundColor: "#fff", overrideHeader: (0, jsx_runtime_1.jsx)(PageHeader_1.default, { title: "Topup", overrideBack: handleOnClose, sx: {
|
|
@@ -46,6 +46,7 @@ var xhub_keyboard_1 = require("xhub-keyboard");
|
|
|
46
46
|
var PageHeader_1 = __importDefault(require("../../PageHeader"));
|
|
47
47
|
var useUniqueId_1 = require("../../../../hooks/useUniqueId");
|
|
48
48
|
var ref_extension_1 = require("../../../../utils/ref.extension");
|
|
49
|
+
var providers_1 = require("../../../../providers");
|
|
49
50
|
function WealthWithdraw(props) {
|
|
50
51
|
var _a, _b;
|
|
51
52
|
var drawerRef = (0, react_1.useRef)(null);
|
|
@@ -57,7 +58,8 @@ function WealthWithdraw(props) {
|
|
|
57
58
|
};
|
|
58
59
|
var keyboardId = (0, useUniqueId_1.useUniqueId)("wealth-withdraw-keyboard");
|
|
59
60
|
var keyboardRef = (0, react_1.useRef)(null);
|
|
60
|
-
|
|
61
|
+
var keyboardThemeMode = (0, providers_1.useKeyboardThemeMode)();
|
|
62
|
+
return ((0, jsx_runtime_1.jsx)(DrawerComponent_1.default, { ref: drawerRef, trigger: props.children, onDismiss: props.onClose, direction: DrawerComponent_1.DRAWER_DIRECTION.RIGHT, children: (0, jsx_runtime_1.jsx)(xhub_keyboard_1.Keyboard, { theme: keyboardThemeMode, ref: keyboardRef, id: keyboardId, value: props.amount, onChange: function (value) {
|
|
61
63
|
var _a;
|
|
62
64
|
(_a = props === null || props === void 0 ? void 0 : props.setAmount) === null || _a === void 0 ? void 0 : _a.call(props, value);
|
|
63
65
|
}, keyboardType: xhub_keyboard_1.KeyboardType.Double, layoutType: xhub_keyboard_1.LayoutType.Integer, viewFullHeight: true, children: (0, jsx_runtime_1.jsx)(ModalLayout_1.default, { onClose: close, fullScreen: true, backgroundColor: "#fff", overrideHeader: (0, jsx_runtime_1.jsx)(PageHeader_1.default, { title: "Withdraw", overrideBack: handleOnClose, sx: {
|
|
@@ -5,15 +5,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.default = TransactionHistory;
|
|
7
7
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
var
|
|
8
|
+
var mui_1 = require("../../../../../theme/mui");
|
|
9
9
|
var Column_1 = __importDefault(require("../../../Column"));
|
|
10
10
|
var Text_1 = __importDefault(require("../../../Text"));
|
|
11
11
|
var HistoryItem_1 = __importDefault(require("../HistoryItem"));
|
|
12
12
|
function TransactionHistory(props) {
|
|
13
|
-
var theme = (0,
|
|
13
|
+
var theme = (0, mui_1.useTheme)();
|
|
14
14
|
return ((0, jsx_runtime_1.jsx)(Column_1.default, { children: props.listItem.length > 0 ? (props.listItem.map(function (item) { return (0, jsx_runtime_1.jsx)(HistoryItem_1.default, { tradeHistory: item }, item.id); })) : ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
|
|
15
15
|
fontSize: theme.typography.fontSize12,
|
|
16
16
|
fontWeight: theme.typography.fontWeight500,
|
|
17
|
-
color: theme.palette.text.
|
|
17
|
+
color: theme.palette.text.secondary,
|
|
18
18
|
}, children: "No transaction found!" })) }));
|
|
19
19
|
}
|
|
@@ -19,28 +19,28 @@ exports.IncomeWallet = void 0;
|
|
|
19
19
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
20
20
|
var material_1 = require("@mui/material");
|
|
21
21
|
var useWalletData_1 = __importDefault(require("../../../hooks/useWalletData"));
|
|
22
|
-
var
|
|
22
|
+
var mui_1 = require("../../../theme/mui");
|
|
23
23
|
var Text_1 = __importDefault(require("../Text"));
|
|
24
24
|
var ChildPageLayout_1 = __importDefault(require("../../layouts/ChildPageLayout"));
|
|
25
25
|
var Column_1 = __importDefault(require("../Column"));
|
|
26
26
|
var Spacer_1 = __importDefault(require("../Spacer"));
|
|
27
27
|
var IncomeWallet = function (props) {
|
|
28
28
|
var isInitPasscode = (0, useWalletData_1.default)().isInitPasscode;
|
|
29
|
-
var theme = (0,
|
|
30
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [!isInitPasscode && ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.
|
|
31
|
-
paddingLeft: theme.
|
|
32
|
-
paddingRight: theme.
|
|
29
|
+
var theme = (0, mui_1.useTheme)();
|
|
30
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [!isInitPasscode && ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.styleMixins.sessionDescription), children: "Please connect your wallet to get asset information" })), !!isInitPasscode && ((0, jsx_runtime_1.jsx)(ChildPageLayout_1.default, __assign({}, props, { header: props.header, children: (0, jsx_runtime_1.jsxs)(Column_1.default, { sx: {
|
|
31
|
+
paddingLeft: theme.styleMixins.customPadding.p16,
|
|
32
|
+
paddingRight: theme.styleMixins.customPadding.p16,
|
|
33
33
|
}, children: [props.balanceChart, (0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
|
|
34
34
|
display: "grid",
|
|
35
35
|
gridTemplateColumns: "repeat(4, 1fr)",
|
|
36
|
-
gap: theme.
|
|
36
|
+
gap: theme.styleMixins.gaps.g12,
|
|
37
37
|
position: "relative",
|
|
38
38
|
zIndex: 50,
|
|
39
|
-
my: theme.
|
|
40
|
-
paddingTop: theme.
|
|
41
|
-
paddingBottom: theme.
|
|
39
|
+
my: theme.styleMixins.customMargin.m20,
|
|
40
|
+
paddingTop: theme.styleMixins.customPadding.p16,
|
|
41
|
+
paddingBottom: theme.styleMixins.customPadding.p8,
|
|
42
42
|
backgroundColor: theme.palette.background.tertiary,
|
|
43
|
-
borderRadius: theme.
|
|
43
|
+
borderRadius: theme.styleMixins.customRadius.r16,
|
|
44
44
|
"& .MuiListItem-root, & .MuiListItem-root *": {
|
|
45
45
|
color: theme.palette.text.primary,
|
|
46
46
|
fontWeight: theme.typography.fontWeight600,
|
|
@@ -18,14 +18,14 @@ exports.default = InlineTitleValue;
|
|
|
18
18
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
19
|
var material_1 = require("@mui/material");
|
|
20
20
|
var Text_1 = __importDefault(require("../Text"));
|
|
21
|
-
var
|
|
21
|
+
var mui_1 = require("../../../theme/mui");
|
|
22
22
|
function InlineTitleValue(props) {
|
|
23
23
|
var title = props.title, value = props.value, lined = props.lined, isAligned = props.isAligned, alignVertical = props.alignVertical, titleStyle = props.titleStyle, column = props.column;
|
|
24
|
-
var theme = (0,
|
|
24
|
+
var theme = (0, mui_1.useTheme)();
|
|
25
25
|
return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
|
|
26
26
|
display: "flex",
|
|
27
27
|
flexDirection: column ? "column" : "row",
|
|
28
|
-
gap: theme.
|
|
28
|
+
gap: theme.styleMixins.gaps.g8,
|
|
29
29
|
width: "100%",
|
|
30
30
|
justifyContent: isAligned ? "space-between" : "flex-start",
|
|
31
31
|
alignItems: alignVertical !== null && alignVertical !== void 0 ? alignVertical : (column ? "flex-start" : "center"),
|
|
@@ -25,18 +25,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
25
25
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
26
26
|
var material_1 = require("@mui/material");
|
|
27
27
|
var react_1 = require("react");
|
|
28
|
-
var
|
|
28
|
+
var mui_1 = require("../../../theme/mui");
|
|
29
29
|
var Input = (0, react_1.forwardRef)(function (props, inputRef) {
|
|
30
30
|
var inputRest = props.inputRest, leftPart = props.leftPart, rightPart = props.rightPart, sx = props.sx, inputSx = props.inputSx, rest = __rest(props, ["inputRest", "leftPart", "rightPart", "sx", "inputSx"]);
|
|
31
|
-
var theme = (0,
|
|
32
|
-
return ((0, jsx_runtime_1.jsxs)(material_1.Box, __assign({ ref: inputRef, sx: __assign(__assign(__assign({}, theme.
|
|
31
|
+
var theme = (0, mui_1.useTheme)();
|
|
32
|
+
return ((0, jsx_runtime_1.jsxs)(material_1.Box, __assign({ ref: inputRef, sx: __assign(__assign(__assign({}, theme.styleMixins.row), { gap: theme.styleMixins.gaps.g12, borderRadius: 1, paddingX: theme.styleMixins.customPadding.p16, border: "1px solid ".concat(theme.palette.divider), backgroundColor: theme.palette.background.default, color: theme.palette.text.primary, backdropFilter: "blur(10px)" }), sx) }, rest, { children: [leftPart, (0, jsx_runtime_1.jsx)(material_1.TextField, __assign({ autoComplete: "off", hiddenLabel: true, sx: __assign({ backgroundColor: "transparent", border: "none", outline: "none", flex: 1, height: "fit-content", "& .MuiInputBase-input": {
|
|
33
33
|
border: "none",
|
|
34
34
|
outline: "none",
|
|
35
|
-
color: theme.palette.text.
|
|
35
|
+
color: theme.palette.text.primary,
|
|
36
36
|
fontSize: theme.typography.fontSize13,
|
|
37
37
|
lineHeight: theme.typography.leading140,
|
|
38
38
|
fontWeight: theme.typography.fontWeight400,
|
|
39
|
-
padding: "".concat(theme.
|
|
39
|
+
padding: "".concat(theme.styleMixins.customPadding.p12, " ").concat(0, "px"),
|
|
40
40
|
// height: "fit-content",
|
|
41
41
|
}, "& fieldset": { border: "none" }, "& .MuiInputBase-input::placeholder": {
|
|
42
42
|
fontSize: theme.typography.fontSize13,
|
|
@@ -18,10 +18,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
19
|
var Text_1 = __importDefault(require("../Text"));
|
|
20
20
|
var material_1 = require("@mui/material");
|
|
21
|
-
var
|
|
21
|
+
var mui_1 = require("../../../theme/mui");
|
|
22
22
|
var LineValue = function (props) {
|
|
23
|
-
var theme = (0,
|
|
23
|
+
var theme = (0, mui_1.useTheme)();
|
|
24
24
|
var field = props.field, value = props.value, valueDescription = props.valueDescription;
|
|
25
|
-
return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign(__assign({}, theme.
|
|
25
|
+
return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign(__assign({}, theme.styleMixins.row), { alignItems: "center", gap: theme.styleMixins.gaps.g32 }), props.sx), children: [!!field && ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign(__assign({}, theme.styleMixins.valueDescription), props.sxField), { whiteSpace: "nowrap" }), children: field })), (!!value || !!valueDescription) && ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.column), { flex: 1, alignItems: "end", gap: theme.styleMixins.gaps.g2 }), children: [!!value && ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign(__assign({}, theme.styleMixins.value), { textAlign: "right" }), props.sxValue), children: value })), !!valueDescription && ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign(__assign({}, theme.styleMixins.valueDescription), { textAlign: "right" }), props.sxValueDescription), children: valueDescription }))] }))] }));
|
|
26
26
|
};
|
|
27
27
|
exports.default = LineValue;
|