tek-wallet 0.0.805 → 0.0.807

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.
Files changed (196) hide show
  1. package/dist/components/TekWallet/components/index.d.ts +2 -1
  2. package/dist/components/TekWallet/components/index.js +2 -1
  3. package/dist/components/TekWallet/components/layouts/ChildPageLayout/index.js +3 -3
  4. package/dist/components/TekWallet/components/layouts/DefaultPageLayout/index.js +3 -3
  5. package/dist/components/TekWallet/components/ui/ActivitiesTypeSlice/index.js +12 -8
  6. package/dist/components/TekWallet/components/ui/ActivityDetail/index.js +17 -19
  7. package/dist/components/TekWallet/components/ui/ActivityItem/index.js +13 -13
  8. package/dist/components/TekWallet/components/ui/AmountGroupAndChart/index.js +3 -3
  9. package/dist/components/TekWallet/components/ui/AnalyticGroup/index.js +20 -20
  10. package/dist/components/TekWallet/components/ui/AnalyticGroupCenter/index.js +9 -8
  11. package/dist/components/TekWallet/components/ui/AppBackDrop/index.js +3 -3
  12. package/dist/components/TekWallet/components/ui/AppDialog/index.js +3 -3
  13. package/dist/components/TekWallet/components/ui/AssetViewHeader/index.js +9 -8
  14. package/dist/components/TekWallet/components/ui/BackHeader/index.js +6 -6
  15. package/dist/components/TekWallet/components/ui/BottomActionLayout/index.js +3 -3
  16. package/dist/components/TekWallet/components/ui/Button/index.js +4 -4
  17. package/dist/components/TekWallet/components/ui/CardToken/index.js +8 -8
  18. package/dist/components/TekWallet/components/ui/Column/index.js +3 -3
  19. package/dist/components/TekWallet/components/ui/ConfirmByPasscode/index.js +6 -4
  20. package/dist/components/TekWallet/components/ui/ConfirmLayout/index.js +3 -3
  21. package/dist/components/TekWallet/components/ui/ConfirmSwapToken/Result.js +17 -17
  22. package/dist/components/TekWallet/components/ui/ConfirmTransfer/index.js +3 -3
  23. package/dist/components/TekWallet/components/ui/CopyTextComponent/index.js +6 -6
  24. package/dist/components/TekWallet/components/ui/CustomTooltip/index.js +4 -2
  25. package/dist/components/TekWallet/components/ui/DetailSwap/index.js +9 -9
  26. package/dist/components/TekWallet/components/ui/DialogContentLayout/index.js +6 -6
  27. package/dist/components/TekWallet/components/ui/DrawerDrag/index.js +3 -3
  28. package/dist/components/TekWallet/components/ui/EmptyData/index.js +3 -3
  29. package/dist/components/TekWallet/components/ui/Fees/index.js +25 -25
  30. package/dist/components/TekWallet/components/ui/FeesAutoDebounce/index.js +24 -25
  31. package/dist/components/TekWallet/components/ui/FiatDeposit/components/shareAction.js +4 -6
  32. package/dist/components/TekWallet/components/ui/FiatDeposit/components/shareDrawer.js +2 -5
  33. package/dist/components/TekWallet/components/ui/FiatDeposit/components/shareImage.js +1 -2
  34. package/dist/components/TekWallet/components/ui/FiatDeposit/index.js +28 -26
  35. package/dist/components/TekWallet/components/ui/Formatter/index.js +3 -0
  36. package/dist/components/TekWallet/components/ui/FunctionItem/index.js +4 -5
  37. package/dist/components/TekWallet/components/ui/Icon/index.js +1 -1
  38. package/dist/components/TekWallet/components/ui/IconText/index.js +3 -3
  39. package/dist/components/TekWallet/components/ui/IncomeWallet/components/AnalyticGroup.js +19 -20
  40. package/dist/components/TekWallet/components/ui/IncomeWallet/components/BalanceChart.js +5 -5
  41. package/dist/components/TekWallet/components/ui/IncomeWallet/components/FunctionItem.js +3 -3
  42. package/dist/components/TekWallet/components/ui/IncomeWallet/components/HistoryItem.js +3 -3
  43. package/dist/components/TekWallet/components/ui/IncomeWallet/components/WealthDeposit.js +3 -1
  44. package/dist/components/TekWallet/components/ui/IncomeWallet/components/WealthWithdraw.js +3 -1
  45. package/dist/components/TekWallet/components/ui/IncomeWallet/components/history/index.js +3 -3
  46. package/dist/components/TekWallet/components/ui/IncomeWallet/index.js +10 -10
  47. package/dist/components/TekWallet/components/ui/InlineTitleValue/index.js +3 -3
  48. package/dist/components/TekWallet/components/ui/Input/index.js +5 -5
  49. package/dist/components/TekWallet/components/ui/LineValue/index.js +3 -3
  50. package/dist/components/TekWallet/components/ui/ListItemCustom/index.js +8 -6
  51. package/dist/components/TekWallet/components/ui/LoadingLayout/index.js +3 -3
  52. package/dist/components/TekWallet/components/ui/LockToken/index.js +4 -4
  53. package/dist/components/TekWallet/components/ui/ModalCheckboxToken/index.js +22 -22
  54. package/dist/components/TekWallet/components/ui/ModalDateFilter/index.js +11 -11
  55. package/dist/components/TekWallet/components/ui/ModalLayout/index.js +3 -3
  56. package/dist/components/TekWallet/components/ui/ModalSelectToken/index.js +12 -12
  57. package/dist/components/TekWallet/components/ui/ModalStatusFilter/index.js +16 -16
  58. package/dist/components/TekWallet/components/ui/ModalTitle/index.js +3 -3
  59. package/dist/components/TekWallet/components/ui/NeonLineChart/index.js +4 -4
  60. package/dist/components/TekWallet/components/ui/NetworkSelection/index.js +5 -5
  61. package/dist/components/TekWallet/components/ui/OTP/index.js +24 -18
  62. package/dist/components/TekWallet/components/ui/PageHeader/index.js +3 -3
  63. package/dist/components/TekWallet/components/ui/QRCode/index.js +3 -1
  64. package/dist/components/TekWallet/components/ui/QrCodeReader/index.js +2 -3
  65. package/dist/components/TekWallet/components/ui/ReceiveDirectly/index.d.ts +26 -0
  66. package/dist/components/TekWallet/components/ui/ReceiveDirectly/index.js +365 -0
  67. package/dist/components/TekWallet/components/ui/ReceiveFunction/components/HelpView.js +4 -4
  68. package/dist/components/TekWallet/components/ui/ReceiveFunction/components/SortGroup.js +4 -4
  69. package/dist/components/TekWallet/components/ui/ReceiveFunction/components/SortTool.js +7 -12
  70. package/dist/components/TekWallet/components/ui/ReceiveFunction/index.js +39 -56
  71. package/dist/components/TekWallet/components/ui/ReceiveHistory/ReceiveCardHistory.js +13 -13
  72. package/dist/components/TekWallet/components/ui/ReceiveHistory/ReceiveHistoryDetails.js +22 -29
  73. package/dist/components/TekWallet/components/ui/ReceiveHistory/index.js +19 -19
  74. package/dist/components/TekWallet/components/ui/Row/index.js +3 -3
  75. package/dist/components/TekWallet/components/ui/ScanQRToSend/index.js +7 -7
  76. package/dist/components/TekWallet/components/ui/SearchBar.d.ts +10 -0
  77. package/dist/components/TekWallet/components/ui/SearchBar.js +42 -0
  78. package/dist/components/TekWallet/components/ui/SendExternalToken/index.js +7 -7
  79. package/dist/components/TekWallet/components/ui/SendInternalToken/index.js +5 -5
  80. package/dist/components/TekWallet/components/ui/SmartList/index.js +3 -3
  81. package/dist/components/TekWallet/components/ui/StatusDisplay/index.js +7 -7
  82. package/dist/components/TekWallet/components/ui/SvgPath/index.js +27 -27
  83. package/dist/components/TekWallet/components/ui/SwiperControlled/index.js +1 -3
  84. package/dist/components/TekWallet/components/ui/TimeFilter/index.js +9 -8
  85. package/dist/components/TekWallet/components/ui/TimeText/index.js +1 -1
  86. package/dist/components/TekWallet/components/ui/TokenItem/index.js +7 -15
  87. package/dist/components/TekWallet/components/ui/TokenSelection/index.js +5 -5
  88. package/dist/components/TekWallet/components/ui/TokensBoard/index.js +12 -12
  89. package/dist/components/TekWallet/components/ui/TransferConfirmation/index.js +3 -3
  90. package/dist/components/TekWallet/components/ui/TransferInternal/index.js +3 -3
  91. package/dist/components/TekWallet/components/ui/UpdateLockToken/index.js +4 -4
  92. package/dist/components/TekWallet/components/ui/UserInfo/index.js +4 -4
  93. package/dist/components/TekWallet/components/ui/WaitingData/index.js +13 -12
  94. package/dist/components/TekWallet/components/ui/WithdrawFunction/components/selectToken.js +11 -11
  95. package/dist/components/TekWallet/components/ui/WithdrawFunction/components/sendForm.js +30 -30
  96. package/dist/components/TekWallet/components/ui/WithdrawFunction/components/sortByBalance.js +3 -3
  97. package/dist/components/TekWallet/components/ui/WithdrawFunction/components/sortByToken.js +3 -3
  98. package/dist/components/TekWallet/components/ui/WithdrawFunction/components/summary/infoSummary.js +8 -8
  99. package/dist/components/TekWallet/components/ui/WithdrawFunction/index.js +9 -9
  100. package/dist/components/TekWallet/components/views/ActivityView/index.js +4 -4
  101. package/dist/components/TekWallet/components/views/AssetView/Menu.js +3 -3
  102. package/dist/components/TekWallet/components/views/AssetView/index.js +12 -12
  103. package/dist/components/TekWallet/components/views/AuthView/index.js +4 -4
  104. package/dist/components/TekWallet/components/views/AuthViewSignIn/index.js +4 -4
  105. package/dist/components/TekWallet/components/views/ChangePasscodeView/index.js +8 -6
  106. package/dist/components/TekWallet/components/views/CreateWalletView/index.js +4 -4
  107. package/dist/components/TekWallet/components/views/DetailActivityView/LoadingView.js +4 -4
  108. package/dist/components/TekWallet/components/views/GetSeedPhraseWalletView/index.js +7 -7
  109. package/dist/components/TekWallet/components/views/ImportWalletView/index.js +4 -7
  110. package/dist/components/TekWallet/components/views/SendExternalView/components/Form.js +32 -37
  111. package/dist/components/TekWallet/components/views/SendExternalView/components/Result.js +16 -16
  112. package/dist/components/TekWallet/components/views/SendExternalView/components/SelectNetwork.js +3 -3
  113. package/dist/components/TekWallet/components/views/SendExternalView/components/SelectToken.js +7 -32
  114. package/dist/components/TekWallet/components/views/SendExternalView/components/Summary.js +12 -12
  115. package/dist/components/TekWallet/components/views/SendExternalView/index.js +3 -3
  116. package/dist/components/TekWallet/components/views/SendInternalView/components/AmountForm.js +26 -24
  117. package/dist/components/TekWallet/components/views/SendInternalView/components/Form.js +27 -33
  118. package/dist/components/TekWallet/components/views/SendInternalView/components/Result.js +14 -14
  119. package/dist/components/TekWallet/components/views/SendInternalView/components/SelectToken.js +7 -32
  120. package/dist/components/TekWallet/components/views/SendInternalView/components/Summary.js +10 -10
  121. package/dist/components/TekWallet/components/views/SendInternalView/index.js +3 -3
  122. package/dist/components/TekWallet/components/views/SettingView/index.js +4 -13
  123. package/dist/components/TekWallet/components/views/SwapView/components/FromCard/FromCardSkeleton.js +7 -8
  124. package/dist/components/TekWallet/components/views/SwapView/components/FromCard/index.js +20 -25
  125. package/dist/components/TekWallet/components/views/SwapView/components/SelectToken.js +7 -32
  126. package/dist/components/TekWallet/components/views/SwapView/components/Summary.js +36 -39
  127. package/dist/components/TekWallet/components/views/SwapView/components/ToCard/index.js +7 -7
  128. package/dist/components/TekWallet/components/views/SwapView/index.js +12 -10
  129. package/dist/components/TekWallet/hooks/useEventHandler.d.ts +1 -0
  130. package/dist/components/TekWallet/hooks/useEventHandler.js +9 -7
  131. package/dist/components/TekWallet/hooks/useRefetchOnWindowFocused.d.ts +7 -0
  132. package/dist/components/TekWallet/hooks/useRefetchOnWindowFocused.js +144 -0
  133. package/dist/components/TekWallet/hooks/useValidateAmount.js +3 -3
  134. package/dist/components/TekWallet/hooks/useWarningWrongPasscode.js +5 -5
  135. package/dist/components/TekWallet/index.d.ts +2 -0
  136. package/dist/components/TekWallet/index.js +2 -12
  137. package/dist/components/TekWallet/layouts/ChildPageLayout/index.js +3 -3
  138. package/dist/components/TekWallet/providers/ActivitiesProvider/index.js +28 -0
  139. package/dist/components/TekWallet/providers/ActivitiesProvider/type.d.ts +1 -0
  140. package/dist/components/TekWallet/providers/EventHandlerProvider/index.js +11 -1
  141. package/dist/components/TekWallet/providers/RealtimeProvider/index.js +15 -13
  142. package/dist/components/TekWallet/providers/TekWalletProvider/index.d.ts +9 -1
  143. package/dist/components/TekWallet/providers/TekWalletProvider/index.js +11 -4
  144. package/dist/components/TekWallet/providers/index.d.ts +0 -1
  145. package/dist/components/TekWallet/providers/index.js +0 -1
  146. package/dist/components/TekWallet/theme/mui/components/index.d.ts +133 -0
  147. package/dist/components/TekWallet/theme/mui/components/index.js +14 -0
  148. package/dist/components/TekWallet/theme/mui/components/overrides/Button.d.ts +142 -0
  149. package/dist/components/TekWallet/theme/mui/components/overrides/Button.js +84 -0
  150. package/dist/components/TekWallet/theme/mui/components/overrides/Drawer.d.ts +4 -0
  151. package/dist/components/TekWallet/theme/mui/components/overrides/Drawer.js +9 -0
  152. package/dist/components/TekWallet/theme/mui/components/overrides/Paper.d.ts +3 -0
  153. package/dist/components/TekWallet/theme/mui/components/overrides/Paper.js +15 -0
  154. package/dist/components/TekWallet/theme/mui/components/overrides/SnackBar.d.ts +3 -0
  155. package/dist/components/TekWallet/theme/mui/components/overrides/SnackBar.js +32 -0
  156. package/dist/components/TekWallet/theme/mui/fixed-mixins.d.ts +2 -0
  157. package/dist/components/TekWallet/theme/mui/fixed-mixins.js +218 -0
  158. package/dist/components/TekWallet/theme/mui/index.d.ts +3 -3
  159. package/dist/components/TekWallet/theme/mui/index.js +16 -32
  160. package/dist/components/TekWallet/theme/mui/palette.d.ts +34 -0
  161. package/dist/components/TekWallet/theme/mui/palette.js +133 -0
  162. package/dist/components/TekWallet/theme/mui/shadows/index.d.ts +3 -0
  163. package/dist/components/TekWallet/theme/mui/shadows/index.js +64 -0
  164. package/dist/components/TekWallet/theme/mui/spacing.d.ts +1 -0
  165. package/dist/components/TekWallet/theme/mui/spacing.js +5 -0
  166. package/dist/components/TekWallet/theme/mui/theme.d.ts +9 -442
  167. package/dist/components/TekWallet/theme/mui/theme.js +38 -415
  168. package/dist/components/TekWallet/theme/mui/type.d.ts +5 -0
  169. package/dist/components/TekWallet/theme/mui/type.js +9 -0
  170. package/dist/components/TekWallet/theme/mui/typography.d.ts +27 -0
  171. package/dist/components/TekWallet/theme/mui/typography.js +30 -0
  172. package/dist/components/TekWallet/theme/mui/utils/deepMergeTheme.d.ts +2 -0
  173. package/dist/components/TekWallet/theme/mui/utils/deepMergeTheme.js +7 -0
  174. package/dist/components/TekWallet/utils/getContractColor.d.ts +1 -0
  175. package/dist/components/TekWallet/utils/getContractColor.js +30 -0
  176. package/package.json +1 -1
  177. package/dist/components/TekWallet/components/ui/CardHistorySwap/index.d.ts +0 -12
  178. package/dist/components/TekWallet/components/ui/CardHistorySwap/index.js +0 -75
  179. package/dist/components/TekWallet/components/ui/DetailSwapResult/index.d.ts +0 -8
  180. package/dist/components/TekWallet/components/ui/DetailSwapResult/index.js +0 -122
  181. package/dist/components/TekWallet/components/ui/HistorySwap/index.d.ts +0 -16
  182. package/dist/components/TekWallet/components/ui/HistorySwap/index.js +0 -434
  183. package/dist/components/TekWallet/components/ui/SwapFunction/index.d.ts +0 -16
  184. package/dist/components/TekWallet/components/ui/SwapFunction/index.js +0 -271
  185. package/dist/components/TekWallet/components/ui/SwapToken/index.d.ts +0 -31
  186. package/dist/components/TekWallet/components/ui/SwapToken/index.js +0 -293
  187. package/dist/components/TekWallet/providers/ThemeProvider/index.d.ts +0 -8
  188. package/dist/components/TekWallet/providers/ThemeProvider/index.js +0 -43
  189. package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/components.d.ts +0 -3
  190. package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/components.js +0 -158
  191. package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/palette.d.ts +0 -55
  192. package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/palette.js +0 -45
  193. package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/theme.d.ts +0 -2
  194. package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/theme.js +0 -13
  195. package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/typography.d.ts +0 -39
  196. package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/typography.js +0 -65
@@ -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, providers_1.useTheme)();
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.accent2,
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.mixins.row), { justifyContent: "space-between" }), children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g6, position: "relative", bottom: "30px" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
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.mixins.gaps.g6,
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.mixins.row), theme.mixins.value), { fontSize: theme.typography.fontSize20, gap: theme.mixins.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.mixins.row), { gap: theme.mixins.gaps.g4 }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
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.black,
55
- }, children: "*****" })) }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g4 }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
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.accent,
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.mixins.value), { color: theme.palette.text.alertStatus, 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: {
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.accent2,
65
- display: theme.mixins.row,
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.border.accent),
67
+ borderColor: "".concat(theme.palette.divider),
69
68
  opacity: 0.2,
70
- marginTop: theme.mixins.customMargin.m4,
71
- } }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g4 }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
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.accent,
77
- }, children: "Profit" }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign({}, theme.mixins.row), children: !isHidden ? ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
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.accent2,
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.accent2,
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, providers_1.useTheme)();
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.mixins.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.mixins.row), { position: "relative", marginTop: theme.mixins.customMargin.m12 }), children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
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.mixins.customMargin.m3,
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.mixins.customMargin.m4,
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, providers_1.useTheme)();
23
- return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign(__assign({}, theme.mixins.column), { alignItems: "center", gap: theme.mixins.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: {
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, providers_1.useTheme)();
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.border.accent3),
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
- 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, { ref: keyboardRef, id: keyboardId, value: props.amount, onChange: function (value) {
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
- 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, { ref: keyboardRef, id: keyboardId, value: props.amount, onChange: function (value) {
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 providers_1 = require("../../../../../providers");
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, providers_1.useTheme)();
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.accent2,
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 ThemeProvider_1 = require("../../../providers/ThemeProvider");
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, ThemeProvider_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.mixins.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.mixins.customPadding.p16,
32
- paddingRight: theme.mixins.customPadding.p16,
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.mixins.gaps.g12,
36
+ gap: theme.styleMixins.gaps.g12,
37
37
  position: "relative",
38
38
  zIndex: 50,
39
- my: theme.mixins.customMargin.m20,
40
- paddingTop: theme.mixins.customPadding.p16,
41
- paddingBottom: theme.mixins.customPadding.p8,
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.mixins.customRadius.r16,
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 providers_1 = require("../../../providers");
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, providers_1.useTheme)();
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.mixins.gaps.g8,
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 ThemeProvider_1 = require("../../../providers/ThemeProvider");
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, ThemeProvider_1.useTheme)();
32
- return ((0, jsx_runtime_1.jsxs)(material_1.Box, __assign({ ref: inputRef, sx: __assign(__assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g12, borderRadius: theme.mixins.customRadius.r8, paddingX: theme.mixins.customPadding.p16, border: "1px solid ".concat(theme.palette.border.primary), backgroundColor: theme.palette.background.white, color: theme.palette.text.black, 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": {
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.black,
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.mixins.customPadding.p12, " ").concat(0, "px"),
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 ThemeProvider_1 = require("../../../providers/ThemeProvider");
21
+ var mui_1 = require("../../../theme/mui");
22
22
  var LineValue = function (props) {
23
- var theme = (0, ThemeProvider_1.useTheme)();
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.mixins.row), { alignItems: "center", gap: theme.mixins.gaps.g32 }), props.sx), children: [!!field && ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign(__assign({}, theme.mixins.valueDescription), props.sxField), { whiteSpace: "nowrap" }), children: field })), (!!value || !!valueDescription) && ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { flex: 1, alignItems: "end", gap: theme.mixins.gaps.g2 }), children: [!!value && ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign(__assign({}, theme.mixins.value), { textAlign: "right" }), props.sxValue), children: value })), !!valueDescription && ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign(__assign({}, theme.mixins.valueDescription), { textAlign: "right" }), props.sxValueDescription), children: valueDescription }))] }))] }));
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;
@@ -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 ThemeProvider_1 = require("../../../providers/ThemeProvider");
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, ThemeProvider_1.useTheme)();
36
- return ((0, jsx_runtime_1.jsxs)(material_1.ListItemButton, __assign({}, rest, { sx: __assign(__assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g12, padding: "calc(".concat(theme.mixins.customPadding.p16, " + 6px) ").concat(theme.mixins.customPadding.p16), border: "1px solid ".concat(theme.palette.border.accent3), borderRadius: theme.mixins.customRadius.r16, backgroundColor: theme.palette.background.white, backdropFilter: "blur(12px)", position: "relative", overflow: "hidden" }), sx), children: [!hideTag && ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
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: "-9px",
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
- }, 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.mixins.center), { whiteSpace: "nowrap", color: recommended ? theme.palette.text.blackContrast : theme.palette.text.white, 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.mixins.column), { gap: theme.mixins.gaps.g4, alignItems: "start", flex: 1 }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.listTitle), children: title }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.listDescription), children: description })] }), rightIcon !== null && rightIcon !== void 0 ? rightIcon : (!hideDefaultRightIcon && (
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: "12px", height: "12px" }, children: SvgPath_1.IC_CHEVRON_RIGHT })))] })));
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 ThemeProvider_1 = require("../../../providers/ThemeProvider");
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, ThemeProvider_1.useTheme)();
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(__assign({}, theme.mixins.whiteLoadingOverlay), theme.mixins.row), { gap: theme.mixins.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: {
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 ThemeProvider_1 = require("../../../providers/ThemeProvider");
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, ThemeProvider_1.useTheme)();
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.mixins.column), { gap: theme.mixins.gaps.g12 }), children: [(0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign({}, theme.mixins.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.mixins.value), children: ["Your balance is", " ", (0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
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.mixins.validationError), { mt: theme.mixins.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" }) })] }) }) }));
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 providers_1 = require("../../../providers");
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, providers_1.useTheme)();
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.border.accent3,
29
+ backgroundColor: theme.palette.divider,
30
30
  width: "100%",
31
- mt: theme.mixins.customMargin.m12,
32
- mb: theme.mixins.customMargin.m12,
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.black,
36
+ color: theme.palette.text.primary,
37
37
  fontWeight: theme.typography.fontWeight500,
38
- pl: theme.mixins.customPadding.p4,
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.border.accent3, " bg-white text-black") }), (0, jsx_runtime_1.jsx)(material_1.Divider, { sx: {
41
- backgroundColor: theme.palette.border.accent3,
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.mixins.customMargin.m12,
44
- mb: theme.mixins.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.mixins.row), { justifyContent: "space-between", alignItems: "center", px: theme.mixins.customPadding.p8, py: theme.mixins.customPadding.p4, borderRadius: theme.mixins.customRadius.r12, cursor: "pointer", border: "1px solid", borderColor: selectedTokens.includes(token === null || token === void 0 ? void 0 : token.name)
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.white, mt: theme.mixins.customMargin.m12 }), children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.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.mixins.column), { mt: theme.mixins.customMargin.m4, mb: theme.mixins.customMargin.m4 }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
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.blackContrast,
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.accent,
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.accent,
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.mixins.row), { gap: theme.mixins.gaps.g10, justifyContent: "center", mt: theme.mixins.customMargin.m16, width: "100%" }), children: [(0, jsx_runtime_1.jsx)(Button_1.default, { onClick: onReset, sx: {
62
- backgroundColor: theme.palette.background.white,
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.mixins.customRadius.r12,
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.mixins.customPadding.p12,
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.mixins.customRadius.r12,
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.mixins.customPadding.p12,
78
+ padding: theme.styleMixins.customPadding.p12,
79
79
  }, fullWidth: true, children: "Apply" })] })] }));
80
80
  };
81
81
  exports.default = ModalCheckboxToken;