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.
Files changed (190) hide show
  1. package/README.md +118 -8
  2. package/dist/components/TekWallet/components/index.d.ts +2 -1
  3. package/dist/components/TekWallet/components/index.js +2 -1
  4. package/dist/components/TekWallet/components/layouts/ChildPageLayout/index.js +3 -3
  5. package/dist/components/TekWallet/components/layouts/DefaultPageLayout/index.js +3 -3
  6. package/dist/components/TekWallet/components/ui/ActivitiesTypeSlice/index.js +12 -8
  7. package/dist/components/TekWallet/components/ui/ActivityDetail/index.js +17 -19
  8. package/dist/components/TekWallet/components/ui/ActivityItem/index.js +13 -13
  9. package/dist/components/TekWallet/components/ui/AmountGroupAndChart/index.js +3 -3
  10. package/dist/components/TekWallet/components/ui/AnalyticGroup/index.js +20 -20
  11. package/dist/components/TekWallet/components/ui/AnalyticGroupCenter/index.js +9 -8
  12. package/dist/components/TekWallet/components/ui/AppBackDrop/index.js +3 -3
  13. package/dist/components/TekWallet/components/ui/AppDialog/index.js +3 -3
  14. package/dist/components/TekWallet/components/ui/AssetViewHeader/index.js +9 -8
  15. package/dist/components/TekWallet/components/ui/BackHeader/index.js +6 -6
  16. package/dist/components/TekWallet/components/ui/BottomActionLayout/index.js +3 -3
  17. package/dist/components/TekWallet/components/ui/Button/index.js +4 -4
  18. package/dist/components/TekWallet/components/ui/CardToken/index.js +8 -8
  19. package/dist/components/TekWallet/components/ui/Column/index.js +3 -3
  20. package/dist/components/TekWallet/components/ui/ConfirmByPasscode/index.js +6 -4
  21. package/dist/components/TekWallet/components/ui/ConfirmLayout/index.js +3 -3
  22. package/dist/components/TekWallet/components/ui/ConfirmSwapToken/Result.js +17 -17
  23. package/dist/components/TekWallet/components/ui/ConfirmTransfer/index.js +3 -3
  24. package/dist/components/TekWallet/components/ui/CopyTextComponent/index.js +6 -6
  25. package/dist/components/TekWallet/components/ui/CustomTooltip/index.js +4 -2
  26. package/dist/components/TekWallet/components/ui/DetailSwap/index.js +9 -9
  27. package/dist/components/TekWallet/components/ui/DialogContentLayout/index.js +6 -6
  28. package/dist/components/TekWallet/components/ui/DrawerDrag/index.js +3 -3
  29. package/dist/components/TekWallet/components/ui/EmptyData/index.js +3 -3
  30. package/dist/components/TekWallet/components/ui/Fees/index.js +25 -25
  31. package/dist/components/TekWallet/components/ui/FeesAutoDebounce/index.js +24 -25
  32. package/dist/components/TekWallet/components/ui/FiatDeposit/components/shareAction.js +4 -6
  33. package/dist/components/TekWallet/components/ui/FiatDeposit/components/shareDrawer.js +2 -5
  34. package/dist/components/TekWallet/components/ui/FiatDeposit/components/shareImage.js +1 -2
  35. package/dist/components/TekWallet/components/ui/FiatDeposit/index.js +28 -26
  36. package/dist/components/TekWallet/components/ui/Formatter/index.js +3 -0
  37. package/dist/components/TekWallet/components/ui/FunctionItem/index.js +4 -5
  38. package/dist/components/TekWallet/components/ui/Icon/index.js +1 -1
  39. package/dist/components/TekWallet/components/ui/IconText/index.js +3 -3
  40. package/dist/components/TekWallet/components/ui/IncomeWallet/components/AnalyticGroup.js +19 -20
  41. package/dist/components/TekWallet/components/ui/IncomeWallet/components/BalanceChart.js +5 -5
  42. package/dist/components/TekWallet/components/ui/IncomeWallet/components/FunctionItem.js +3 -3
  43. package/dist/components/TekWallet/components/ui/IncomeWallet/components/HistoryItem.js +3 -3
  44. package/dist/components/TekWallet/components/ui/IncomeWallet/components/WealthDeposit.js +3 -1
  45. package/dist/components/TekWallet/components/ui/IncomeWallet/components/WealthWithdraw.js +3 -1
  46. package/dist/components/TekWallet/components/ui/IncomeWallet/components/history/index.js +3 -3
  47. package/dist/components/TekWallet/components/ui/IncomeWallet/index.js +10 -10
  48. package/dist/components/TekWallet/components/ui/InlineTitleValue/index.js +3 -3
  49. package/dist/components/TekWallet/components/ui/Input/index.js +5 -5
  50. package/dist/components/TekWallet/components/ui/LineValue/index.js +3 -3
  51. package/dist/components/TekWallet/components/ui/ListItemCustom/index.js +8 -6
  52. package/dist/components/TekWallet/components/ui/LoadingLayout/index.js +3 -3
  53. package/dist/components/TekWallet/components/ui/LockToken/index.js +4 -4
  54. package/dist/components/TekWallet/components/ui/ModalCheckboxToken/index.js +22 -22
  55. package/dist/components/TekWallet/components/ui/ModalDateFilter/index.js +11 -11
  56. package/dist/components/TekWallet/components/ui/ModalLayout/index.js +3 -3
  57. package/dist/components/TekWallet/components/ui/ModalSelectToken/index.js +12 -12
  58. package/dist/components/TekWallet/components/ui/ModalStatusFilter/index.js +16 -16
  59. package/dist/components/TekWallet/components/ui/ModalTitle/index.js +3 -3
  60. package/dist/components/TekWallet/components/ui/NeonLineChart/index.js +4 -4
  61. package/dist/components/TekWallet/components/ui/NetworkSelection/index.js +5 -5
  62. package/dist/components/TekWallet/components/ui/OTP/index.js +24 -18
  63. package/dist/components/TekWallet/components/ui/PageHeader/index.js +3 -3
  64. package/dist/components/TekWallet/components/ui/QRCode/index.js +3 -1
  65. package/dist/components/TekWallet/components/ui/QrCodeReader/index.js +2 -3
  66. package/dist/components/TekWallet/components/ui/ReceiveDirectly/index.d.ts +26 -0
  67. package/dist/components/TekWallet/components/ui/ReceiveDirectly/index.js +365 -0
  68. package/dist/components/TekWallet/components/ui/ReceiveFunction/components/HelpView.js +4 -4
  69. package/dist/components/TekWallet/components/ui/ReceiveFunction/components/SortGroup.js +4 -4
  70. package/dist/components/TekWallet/components/ui/ReceiveFunction/components/SortTool.js +7 -12
  71. package/dist/components/TekWallet/components/ui/ReceiveFunction/index.js +39 -56
  72. package/dist/components/TekWallet/components/ui/ReceiveHistory/ReceiveCardHistory.js +13 -13
  73. package/dist/components/TekWallet/components/ui/ReceiveHistory/ReceiveHistoryDetails.js +22 -29
  74. package/dist/components/TekWallet/components/ui/ReceiveHistory/index.js +19 -19
  75. package/dist/components/TekWallet/components/ui/Row/index.js +3 -3
  76. package/dist/components/TekWallet/components/ui/ScanQRToSend/index.js +7 -7
  77. package/dist/components/TekWallet/components/ui/SearchBar.d.ts +10 -0
  78. package/dist/components/TekWallet/components/ui/SearchBar.js +42 -0
  79. package/dist/components/TekWallet/components/ui/SendExternalToken/index.js +7 -7
  80. package/dist/components/TekWallet/components/ui/SendInternalToken/index.js +5 -5
  81. package/dist/components/TekWallet/components/ui/SmartList/index.js +3 -3
  82. package/dist/components/TekWallet/components/ui/StatusDisplay/index.js +7 -7
  83. package/dist/components/TekWallet/components/ui/SvgPath/index.js +27 -27
  84. package/dist/components/TekWallet/components/ui/SwiperControlled/index.js +1 -3
  85. package/dist/components/TekWallet/components/ui/TimeFilter/index.js +9 -8
  86. package/dist/components/TekWallet/components/ui/TimeText/index.js +1 -1
  87. package/dist/components/TekWallet/components/ui/TokenItem/index.js +7 -15
  88. package/dist/components/TekWallet/components/ui/TokenSelection/index.js +5 -5
  89. package/dist/components/TekWallet/components/ui/TokensBoard/index.js +12 -12
  90. package/dist/components/TekWallet/components/ui/TransferConfirmation/index.js +3 -3
  91. package/dist/components/TekWallet/components/ui/TransferInternal/index.js +3 -3
  92. package/dist/components/TekWallet/components/ui/UpdateLockToken/index.js +4 -4
  93. package/dist/components/TekWallet/components/ui/UserInfo/index.js +4 -4
  94. package/dist/components/TekWallet/components/ui/WaitingData/index.js +13 -12
  95. package/dist/components/TekWallet/components/ui/WithdrawFunction/components/selectToken.js +11 -11
  96. package/dist/components/TekWallet/components/ui/WithdrawFunction/components/sendForm.js +30 -30
  97. package/dist/components/TekWallet/components/ui/WithdrawFunction/components/sortByBalance.js +3 -3
  98. package/dist/components/TekWallet/components/ui/WithdrawFunction/components/sortByToken.js +3 -3
  99. package/dist/components/TekWallet/components/ui/WithdrawFunction/components/summary/infoSummary.js +8 -8
  100. package/dist/components/TekWallet/components/ui/WithdrawFunction/index.js +9 -9
  101. package/dist/components/TekWallet/components/views/ActivityView/index.js +4 -4
  102. package/dist/components/TekWallet/components/views/AssetView/Menu.js +3 -3
  103. package/dist/components/TekWallet/components/views/AssetView/index.js +12 -12
  104. package/dist/components/TekWallet/components/views/AuthView/index.js +4 -4
  105. package/dist/components/TekWallet/components/views/AuthViewSignIn/index.js +4 -4
  106. package/dist/components/TekWallet/components/views/ChangePasscodeView/index.js +8 -6
  107. package/dist/components/TekWallet/components/views/CreateWalletView/index.js +4 -4
  108. package/dist/components/TekWallet/components/views/DetailActivityView/LoadingView.js +4 -4
  109. package/dist/components/TekWallet/components/views/GetSeedPhraseWalletView/index.js +7 -7
  110. package/dist/components/TekWallet/components/views/ImportWalletView/index.js +4 -7
  111. package/dist/components/TekWallet/components/views/SendExternalView/components/Form.js +32 -37
  112. package/dist/components/TekWallet/components/views/SendExternalView/components/Result.js +16 -16
  113. package/dist/components/TekWallet/components/views/SendExternalView/components/SelectNetwork.js +3 -3
  114. package/dist/components/TekWallet/components/views/SendExternalView/components/SelectToken.js +7 -32
  115. package/dist/components/TekWallet/components/views/SendExternalView/components/Summary.js +12 -12
  116. package/dist/components/TekWallet/components/views/SendExternalView/index.js +3 -3
  117. package/dist/components/TekWallet/components/views/SendInternalView/components/AmountForm.js +26 -24
  118. package/dist/components/TekWallet/components/views/SendInternalView/components/Form.js +27 -33
  119. package/dist/components/TekWallet/components/views/SendInternalView/components/Result.js +14 -14
  120. package/dist/components/TekWallet/components/views/SendInternalView/components/SelectToken.js +7 -32
  121. package/dist/components/TekWallet/components/views/SendInternalView/components/Summary.js +10 -10
  122. package/dist/components/TekWallet/components/views/SendInternalView/index.js +3 -3
  123. package/dist/components/TekWallet/components/views/SettingView/index.js +4 -13
  124. package/dist/components/TekWallet/components/views/SwapView/components/FromCard/FromCardSkeleton.js +7 -8
  125. package/dist/components/TekWallet/components/views/SwapView/components/FromCard/index.js +20 -25
  126. package/dist/components/TekWallet/components/views/SwapView/components/SelectToken.js +7 -32
  127. package/dist/components/TekWallet/components/views/SwapView/components/Summary.js +36 -39
  128. package/dist/components/TekWallet/components/views/SwapView/components/ToCard/index.js +7 -7
  129. package/dist/components/TekWallet/components/views/SwapView/index.js +12 -10
  130. package/dist/components/TekWallet/hooks/useValidateAmount.js +3 -3
  131. package/dist/components/TekWallet/hooks/useWarningWrongPasscode.js +5 -5
  132. package/dist/components/TekWallet/index.d.ts +2 -0
  133. package/dist/components/TekWallet/index.js +2 -12
  134. package/dist/components/TekWallet/layouts/ChildPageLayout/index.js +3 -3
  135. package/dist/components/TekWallet/providers/RealtimeProvider/index.js +15 -13
  136. package/dist/components/TekWallet/providers/TekWalletProvider/index.d.ts +9 -1
  137. package/dist/components/TekWallet/providers/TekWalletProvider/index.js +11 -4
  138. package/dist/components/TekWallet/providers/index.d.ts +0 -1
  139. package/dist/components/TekWallet/providers/index.js +0 -1
  140. package/dist/components/TekWallet/theme/mui/components/index.d.ts +133 -0
  141. package/dist/components/TekWallet/theme/mui/components/index.js +14 -0
  142. package/dist/components/TekWallet/theme/mui/components/overrides/Button.d.ts +142 -0
  143. package/dist/components/TekWallet/theme/mui/components/overrides/Button.js +84 -0
  144. package/dist/components/TekWallet/theme/mui/components/overrides/Drawer.d.ts +4 -0
  145. package/dist/components/TekWallet/theme/mui/components/overrides/Drawer.js +9 -0
  146. package/dist/components/TekWallet/theme/mui/components/overrides/Paper.d.ts +3 -0
  147. package/dist/components/TekWallet/theme/mui/components/overrides/Paper.js +15 -0
  148. package/dist/components/TekWallet/theme/mui/components/overrides/SnackBar.d.ts +3 -0
  149. package/dist/components/TekWallet/theme/mui/components/overrides/SnackBar.js +32 -0
  150. package/dist/components/TekWallet/theme/mui/fixed-mixins.d.ts +2 -0
  151. package/dist/components/TekWallet/theme/mui/fixed-mixins.js +218 -0
  152. package/dist/components/TekWallet/theme/mui/index.d.ts +3 -3
  153. package/dist/components/TekWallet/theme/mui/index.js +16 -32
  154. package/dist/components/TekWallet/theme/mui/palette.d.ts +34 -0
  155. package/dist/components/TekWallet/theme/mui/palette.js +133 -0
  156. package/dist/components/TekWallet/theme/mui/shadows/index.d.ts +3 -0
  157. package/dist/components/TekWallet/theme/mui/shadows/index.js +64 -0
  158. package/dist/components/TekWallet/theme/mui/spacing.d.ts +1 -0
  159. package/dist/components/TekWallet/theme/mui/spacing.js +5 -0
  160. package/dist/components/TekWallet/theme/mui/theme.d.ts +9 -442
  161. package/dist/components/TekWallet/theme/mui/theme.js +38 -415
  162. package/dist/components/TekWallet/theme/mui/type.d.ts +5 -0
  163. package/dist/components/TekWallet/theme/mui/type.js +9 -0
  164. package/dist/components/TekWallet/theme/mui/typography.d.ts +27 -0
  165. package/dist/components/TekWallet/theme/mui/typography.js +30 -0
  166. package/dist/components/TekWallet/theme/mui/utils/deepMergeTheme.d.ts +2 -0
  167. package/dist/components/TekWallet/theme/mui/utils/deepMergeTheme.js +7 -0
  168. package/dist/components/TekWallet/utils/getContractColor.d.ts +1 -0
  169. package/dist/components/TekWallet/utils/getContractColor.js +30 -0
  170. package/package.json +1 -1
  171. package/dist/components/TekWallet/components/ui/CardHistorySwap/index.d.ts +0 -12
  172. package/dist/components/TekWallet/components/ui/CardHistorySwap/index.js +0 -75
  173. package/dist/components/TekWallet/components/ui/DetailSwapResult/index.d.ts +0 -8
  174. package/dist/components/TekWallet/components/ui/DetailSwapResult/index.js +0 -122
  175. package/dist/components/TekWallet/components/ui/HistorySwap/index.d.ts +0 -16
  176. package/dist/components/TekWallet/components/ui/HistorySwap/index.js +0 -434
  177. package/dist/components/TekWallet/components/ui/SwapFunction/index.d.ts +0 -16
  178. package/dist/components/TekWallet/components/ui/SwapFunction/index.js +0 -271
  179. package/dist/components/TekWallet/components/ui/SwapToken/index.d.ts +0 -31
  180. package/dist/components/TekWallet/components/ui/SwapToken/index.js +0 -293
  181. package/dist/components/TekWallet/providers/ThemeProvider/index.d.ts +0 -8
  182. package/dist/components/TekWallet/providers/ThemeProvider/index.js +0 -43
  183. package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/components.d.ts +0 -3
  184. package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/components.js +0 -158
  185. package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/palette.d.ts +0 -55
  186. package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/palette.js +0 -45
  187. package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/theme.d.ts +0 -2
  188. package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/theme.js +0 -13
  189. package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/typography.d.ts +0 -39
  190. package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/typography.js +0 -65
@@ -18,22 +18,23 @@ var jsx_runtime_1 = require("react/jsx-runtime");
18
18
  var Text_1 = __importDefault(require("../Text"));
19
19
  var Formatter_1 = __importDefault(require("../Formatter"));
20
20
  var material_1 = require("@mui/material");
21
- var providers_1 = require("../../../providers");
21
+ var mui_1 = require("../../../theme/mui");
22
22
  var SvgPath_1 = require("../SvgPath");
23
23
  var user_1 = __importDefault(require("../../../store/user"));
24
24
  var balance_1 = __importDefault(require("../../../store/balance"));
25
25
  var AnalyticGroup = function (props) {
26
26
  var sx = props.sx;
27
- var theme = (0, providers_1.useTheme)();
27
+ var theme = (0, mui_1.useTheme)();
28
28
  var isShowBalance = (0, user_1.default)(function (state) { return state.settings.balance.isShowBalance; });
29
29
  var toggleShowBalance = (0, user_1.default)(function (state) { return state.toggleShowBalance; });
30
30
  var totalBalanceInUSD = (0, balance_1.default)(function (state) { return state.totalBalanceInUSD; });
31
- return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign(__assign({}, theme.mixins.row), { justifyContent: "space-between", alignItems: "flex-start" }), sx), children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g6, position: "relative" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
31
+ return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign(__assign({}, theme.styleMixins.row), { justifyContent: "space-between", alignItems: "flex-start" }), sx), children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.row), { gap: theme.styleMixins.gaps.g6, position: "relative" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
32
32
  fontSize: theme.typography.fontSize15,
33
33
  fontWeight: theme.typography.fontWeight500,
34
- color: theme.palette.text.accent2,
34
+ color: theme.palette.text.secondary,
35
35
  }, children: "Total Amount" }), (0, jsx_runtime_1.jsxs)(material_1.Box, { onClick: toggleShowBalance, sx: {
36
36
  position: "relative",
37
+ color: theme.palette.text.secondary,
37
38
  }, children: [(0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { cursor: "pointer", width: "1.25rem", height: "1.25rem" }, children: SvgPath_1.IC_NO_SEE }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
38
39
  position: "absolute",
39
40
  left: "50%",
@@ -41,22 +42,22 @@ var AnalyticGroup = function (props) {
41
42
  top: "50%",
42
43
  height: !isShowBalance ? "90%" : "0px",
43
44
  transition: "height 0.2s ease-in-out",
44
- backgroundColor: theme.palette.text.accent2,
45
+ backgroundColor: theme.palette.text.secondary,
45
46
  transform: "translate(-50%, -50%) rotate(45deg)",
46
47
  transformOrigin: "center center",
47
48
  } })] })] }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
48
49
  display: "flex",
49
50
  flexDirection: "column",
50
51
  alignItems: "flex-end",
51
- gap: theme.mixins.gaps.g6,
52
+ gap: theme.styleMixins.gaps.g6,
52
53
  fontSize: theme.typography.fontSize12,
53
- }, children: (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign(__assign({}, theme.mixins.row), theme.mixins.value), { alignItems: "baseline", fontSize: theme.typography.fontSize20, gap: theme.mixins.gaps.g2 }), children: isShowBalance ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Formatter_1.default, { sx: { fontWeight: theme.typography.fontWeight700 }, value: totalBalanceInUSD, unit: "USD", hideUnitOutSide: true }), !!totalBalanceInUSD && ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g2 }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
54
+ }, children: (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign(__assign({}, theme.styleMixins.row), theme.styleMixins.value), { alignItems: "baseline", fontSize: theme.typography.fontSize20, gap: theme.styleMixins.gaps.g2 }), children: isShowBalance ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Formatter_1.default, { sx: { fontWeight: theme.typography.fontWeight700 }, value: totalBalanceInUSD, unit: "USD", hideUnitOutSide: true }), !!totalBalanceInUSD && ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.row), { gap: theme.styleMixins.gaps.g2 }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
54
55
  fontWeight: theme.typography.fontWeight400,
55
56
  fontSize: "1em",
56
57
  }, children: "$" }), false && ((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: {
57
58
  fontSize: theme.typography.fontSize24,
58
59
  fontWeight: theme.typography.fontWeight700,
59
- color: theme.palette.text.black,
60
+ color: theme.palette.text.primary,
60
61
  }, children: "******" })) }) })] }));
61
62
  };
62
63
  exports.default = AnalyticGroup;
@@ -27,19 +27,19 @@ 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 material_2 = require("@mui/material");
32
32
  var react_1 = require("react");
33
33
  var Text_1 = __importDefault(require("../Text"));
34
34
  var AppBackDrop = (0, react_1.forwardRef)(function (props, ref) {
35
35
  var sx = props.sx, open = props.open, message = props.message, hideProgress = props.hideProgress, rest = __rest(props, ["sx", "open", "message", "hideProgress"]);
36
36
  var _a = (0, react_1.useState)(!!open), isOpen = _a[0], setIsOpen = _a[1];
37
- var theme = (0, ThemeProvider_1.useTheme)();
37
+ var theme = (0, mui_1.useTheme)();
38
38
  (0, react_1.useImperativeHandle)(ref, function () { return ({
39
39
  open: function () { return setIsOpen(true); },
40
40
  close: function () { return setIsOpen(false); },
41
41
  }); });
42
- return ((0, jsx_runtime_1.jsx)(material_2.Backdrop, __assign({ sx: __assign({ color: theme.palette.text.white, zIndex: theme.zIndex.drawer + 1, backgroundColor: "".concat(theme.palette.background.white16, " !important"), backdropFilter: "blur(6px)" }, sx) }, rest, { open: open !== null && open !== void 0 ? open : isOpen, children: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { width: "fit-content", alignItems: "center", color: theme.palette.text.black64, gap: theme.mixins.gaps.g12 }), children: [!hideProgress && (0, jsx_runtime_1.jsx)(material_1.CircularProgress, { size: 28, color: "inherit", value: 50, thickness: 4 }), message && (0, jsx_runtime_1.jsx)(Text_1.default, { children: message })] }) })));
42
+ return ((0, jsx_runtime_1.jsx)(material_2.Backdrop, __assign({ sx: __assign({ color: theme.palette.text.primary, zIndex: theme.zIndex.drawer + 1, backgroundColor: "".concat((0, material_1.alpha)(theme.palette.background.default, 0.16), " !important"), backdropFilter: "blur(6px)" }, sx) }, rest, { open: open !== null && open !== void 0 ? open : isOpen, children: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.column), { width: "fit-content", alignItems: "center", color: theme.palette.text.primary, gap: theme.styleMixins.gaps.g12 }), children: [!hideProgress && (0, jsx_runtime_1.jsx)(material_1.CircularProgress, { size: 28, color: "inherit", value: 50, thickness: 4 }), message && (0, jsx_runtime_1.jsx)(Text_1.default, { sx: { color: "inherit" }, children: message })] }) })));
43
43
  });
44
44
  AppBackDrop.displayName = "AppBackDrop";
45
45
  exports.default = AppBackDrop;
@@ -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 AppDialog = (0, react_1.forwardRef)(function (props, ref) {
30
30
  var _a = (0, react_1.useState)(false), isOpen = _a[0], setIsOpen = _a[1];
31
31
  var sx = props.sx, children = props.children, overrideOpen = props.overrideOpen, rest = __rest(props, ["sx", "children", "overrideOpen"]);
32
- var theme = (0, ThemeProvider_1.useTheme)();
32
+ var theme = (0, mui_1.useTheme)();
33
33
  (0, react_1.useImperativeHandle)(ref, function () { return ({
34
34
  open: function () { return setIsOpen(true); },
35
35
  close: function () { return setIsOpen(false); },
36
36
  }); });
37
37
  return ((0, jsx_runtime_1.jsx)(material_1.Dialog, __assign({ open: overrideOpen !== null && overrideOpen !== void 0 ? overrideOpen : isOpen, "aria-labelledby": "alert-dialog-title", "aria-describedby": "alert-dialog-description", sx: __assign({ "& .MuiPaper-root": {
38
38
  backgroundColor: "transparent",
39
- borderRadius: theme.mixins.customRadius.r12,
39
+ borderRadius: theme.styleMixins.customRadius.r12,
40
40
  overflow: "hidden",
41
41
  } }, sx) }, rest, { children: children })));
42
42
  });
@@ -50,7 +50,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
50
50
  var jsx_runtime_1 = require("react/jsx-runtime");
51
51
  var Text_1 = __importDefault(require("../Text"));
52
52
  var material_1 = require("@mui/material");
53
- var ThemeProvider_1 = require("../../../providers/ThemeProvider");
53
+ var mui_1 = require("../../../theme/mui");
54
54
  var DrawerComponent_1 = __importStar(require("../DrawerComponent"));
55
55
  var useWallet_1 = __importDefault(require("../../../hooks/useWallet"));
56
56
  var compactWalletAddress_1 = __importDefault(require("../../../utils/compactWalletAddress"));
@@ -65,22 +65,23 @@ var Icon_1 = __importDefault(require("../Icon"));
65
65
  var AssetViewHeader = function () {
66
66
  var _a = (0, useWallet_1.default)(), masterWallet = _a.masterWallet, blockchainWallets = _a.blockchainWallets;
67
67
  var options = (0, TekWalletProvider_1.useWalletSetup)().options;
68
- var theme = (0, ThemeProvider_1.useTheme)();
68
+ var theme = (0, mui_1.useTheme)();
69
69
  var modalRef = (0, react_1.useRef)(null);
70
- return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { justifyContent: "start", position: "relative", boxShadow: "0 0 1px 2px rgba(0, 0, 0, 0.03)", px: theme.mixins.customPadding.p16 }), children: [(0, jsx_runtime_1.jsx)(DrawerComponent_1.default, { ref: modalRef, trigger: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign(__assign({}, theme.mixins.row), { alignItems: "center", justifyContent: "start", textAlign: "center", gap: theme.mixins.gaps.g4, py: theme.mixins.customPadding.p8 }), theme.mixins.value), children: [(0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { width: "1.25rem", height: "1.25rem" }, children: SvgPath_1.WALLET }), (0, compactWalletAddress_1.default)(masterWallet), (0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { width: "0.625rem", height: "0.625rem" }, children: SvgPath_1.ARROW_DROP_DOWN })] }), direction: DrawerComponent_1.DRAWER_DIRECTION.TOP, children: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
70
+ return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.row), { justifyContent: "start", position: "relative", boxShadow: "0 0 1px 2px rgba(0, 0, 0, 0.03)", px: theme.styleMixins.customPadding.p16 }), children: [(0, jsx_runtime_1.jsx)(DrawerComponent_1.default, { ref: modalRef, trigger: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign(__assign({}, theme.styleMixins.row), { alignItems: "center", justifyContent: "start", textAlign: "center", gap: theme.styleMixins.gaps.g4, py: theme.styleMixins.customPadding.p8 }), theme.styleMixins.value), children: [(0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { width: "1.25rem", height: "1.25rem" }, children: SvgPath_1.WALLET }), (0, compactWalletAddress_1.default)(masterWallet), (0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { width: "0.625rem", height: "0.625rem" }, children: SvgPath_1.ARROW_DROP_DOWN })] }), direction: DrawerComponent_1.DRAWER_DIRECTION.TOP, children: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
71
71
  width: "100%",
72
72
  height: "fit-content",
73
- backgroundColor: "white",
74
- padding: theme.mixins.customPadding.p16,
75
- }, children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { justifyContent: "space-between" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { component: "div", sx: __assign(__assign({}, theme.mixins.headerTitle), { py: theme.mixins.customPadding.p8, textAlign: "left" }), children: "Wallet address" }), (0, jsx_runtime_1.jsx)(CloseModal_1.default, { onClick: function () { var _a; return (_a = modalRef.current) === null || _a === void 0 ? void 0 : _a.close(); } })] }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign({}, theme.mixins.column), children: [!!masterWallet && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(CopyTextComponent_1.default, { value: masterWallet !== null && masterWallet !== void 0 ? masterWallet : "", messageSuccess: "Copied Internal address", children: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({ py: theme.mixins.customPadding.p8 }, theme.mixins.row), { justifyContent: "space-between", alignItems: "center", gap: theme.mixins.gaps.g8 }), children: [(0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { width: "1.75rem", height: "1.75rem", opacity: 0.7 }, children: SvgPath_1.WALLET }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign({}, theme.mixins.column), children: [(0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign({}, theme.mixins.listTitle), children: "Internal wallet" }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign({}, theme.mixins.listDescription), children: (0, compactWalletAddress_1.default)(masterWallet) })] }), (0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { width: "1rem", height: "1rem" }, children: SvgPath_1.IC_COPY })] }) }), (0, jsx_runtime_1.jsx)(material_1.Divider, { sx: {
76
- my: theme.mixins.customPadding.p8,
77
- } })] })), blockchainWallets === null || blockchainWallets === void 0 ? void 0 : blockchainWallets.map(function (wallet, index) { return ((0, jsx_runtime_1.jsx)(CopyTextComponent_1.default, { value: wallet.blockchainAddress, messageSuccess: "Copied ".concat(wallet.networkName, " address"), children: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({ py: theme.mixins.customPadding.p8 }, theme.mixins.row), { gap: theme.mixins.gaps.g8, justifyContent: "space-between", alignItems: "center" }), children: [(0, jsx_runtime_1.jsx)(Icon_1.default, { src: wallet.networkIcon, width: 28, sx: { borderRadius: theme.mixins.customRadius.full } }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign({}, theme.mixins.column), children: [(0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign({}, theme.mixins.listTitle), children: wallet.networkName }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign({}, theme.mixins.listDescription), children: (0, compactWalletAddress_1.default)(wallet.blockchainAddress) })] }), (0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { width: "1rem", height: "1rem" }, children: SvgPath_1.IC_COPY })] }) }, wallet.blockchainAddress + index)); })] })] }) }), (0, jsx_runtime_1.jsx)(link_1.default, { href: "".concat((options === null || options === void 0 ? void 0 : options.basePath) || "", "/tek-wallet/").concat(TekWalletView_1.TekWalletViewRoutes.SETTING), children: (0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: {
73
+ backgroundColor: "background.default",
74
+ padding: theme.styleMixins.customPadding.p16,
75
+ }, children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.row), { justifyContent: "space-between" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { component: "div", sx: __assign(__assign({}, theme.styleMixins.headerTitle), { py: theme.styleMixins.customPadding.p8, textAlign: "left" }), children: "Wallet address" }), (0, jsx_runtime_1.jsx)(CloseModal_1.default, { onClick: function () { var _a; return (_a = modalRef.current) === null || _a === void 0 ? void 0 : _a.close(); } })] }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign({}, theme.styleMixins.column), children: [!!masterWallet && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(CopyTextComponent_1.default, { value: masterWallet !== null && masterWallet !== void 0 ? masterWallet : "", messageSuccess: "Copied Internal address", children: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({ py: theme.styleMixins.customPadding.p8 }, theme.styleMixins.row), { justifyContent: "space-between", alignItems: "center", gap: theme.styleMixins.gaps.g8, color: "text.primary" }), children: [(0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { width: "1.75rem", height: "1.75rem", opacity: 0.7 }, children: SvgPath_1.WALLET }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign({}, theme.styleMixins.column), children: [(0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.listTitle), { color: "inherit" }), children: "Internal wallet" }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign({}, theme.styleMixins.listDescription), children: (0, compactWalletAddress_1.default)(masterWallet) })] }), (0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { width: "1rem", height: "1rem" }, children: SvgPath_1.IC_COPY })] }) }), (0, jsx_runtime_1.jsx)(material_1.Divider, { sx: {
76
+ my: theme.styleMixins.customPadding.p8,
77
+ } })] })), blockchainWallets === null || blockchainWallets === void 0 ? void 0 : blockchainWallets.map(function (wallet, index) { return ((0, jsx_runtime_1.jsx)(CopyTextComponent_1.default, { value: wallet.blockchainAddress, messageSuccess: "Copied ".concat(wallet.networkName, " address"), children: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({ py: theme.styleMixins.customPadding.p8 }, theme.styleMixins.row), { gap: theme.styleMixins.gaps.g8, justifyContent: "space-between", alignItems: "center" }), children: [(0, jsx_runtime_1.jsx)(Icon_1.default, { src: wallet.networkIcon, width: 28, sx: { borderRadius: theme.styleMixins.customRadius.full } }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign({}, theme.styleMixins.column), children: [(0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign({}, theme.styleMixins.listTitle), children: wallet.networkName }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign({}, theme.styleMixins.listDescription), children: (0, compactWalletAddress_1.default)(wallet.blockchainAddress) })] }), (0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { width: "1rem", height: "1rem" }, children: SvgPath_1.IC_COPY })] }) }, wallet.blockchainAddress + index)); })] })] }) }), (0, jsx_runtime_1.jsx)(link_1.default, { href: "".concat((options === null || options === void 0 ? void 0 : options.basePath) || "", "/tek-wallet/").concat(TekWalletView_1.TekWalletViewRoutes.SETTING), children: (0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: {
78
78
  width: "1.5rem",
79
79
  height: "1.5rem",
80
80
  position: "absolute",
81
81
  right: "16px",
82
82
  top: "50%",
83
83
  transform: "translateY(-50%)",
84
+ color: "text.secondary",
84
85
  }, children: SvgPath_1.IC_SETTING }) })] }));
85
86
  };
86
87
  exports.default = AssetViewHeader;
@@ -19,11 +19,11 @@ var jsx_runtime_1 = require("react/jsx-runtime");
19
19
  var BackArrow_1 = __importDefault(require("../BackArrow"));
20
20
  var useCustomRouter_1 = __importDefault(require("../../../hooks/useCustomRouter"));
21
21
  var material_1 = require("@mui/material");
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 BackHeader = function (props) {
25
25
  var router = (0, useCustomRouter_1.default)();
26
- var theme = (0, ThemeProvider_1.useTheme)();
26
+ var theme = (0, mui_1.useTheme)();
27
27
  var center = props.center, children = props.children, hideBack = props.hideBack, right = props.right, _a = props.renderBack, renderBack = _a === void 0 ? function (Back) { return Back; } : _a;
28
28
  var back = function (e) {
29
29
  if (props.overrideBack) {
@@ -32,19 +32,19 @@ var BackHeader = function (props) {
32
32
  }
33
33
  router.back();
34
34
  };
35
- return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g16, position: "relative", height: "100%", minHeight: "2rem" }), props.sx), children: [!hideBack &&
35
+ return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign(__assign({}, theme.styleMixins.row), { gap: theme.styleMixins.gaps.g16, position: "relative", height: "100%", minHeight: "2rem" }), props.sx), children: [!hideBack &&
36
36
  renderBack((0, jsx_runtime_1.jsxs)(material_1.Box, { component: "button", sx: {
37
37
  display: "flex",
38
38
  alignItems: "center",
39
- gap: theme.mixins.gaps.g4,
39
+ gap: theme.styleMixins.gaps.g4,
40
40
  cursor: "pointer",
41
41
  "&:active": {
42
42
  transform: "translateX(-0.25rem)",
43
43
  transition: "transform 0.2s ease-in-out",
44
44
  },
45
+ color: "text.primary",
45
46
  }, onClick: back, children: [(0, jsx_runtime_1.jsx)(BackArrow_1.default, {}), " ", (0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
46
- color: theme.palette.text.black,
47
47
  fontSize: theme.typography.fontSize12,
48
- }, children: "Back" })] })), !!center && ((0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.center), theme.mixins.headerTitle), children: center })), children, right && (0, jsx_runtime_1.jsx)(material_1.Box, { sx: { marginLeft: "auto" }, children: right })] }));
48
+ }, children: "Back" })] })), !!center && ((0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.center), theme.styleMixins.headerTitle), children: center })), children, right && (0, jsx_runtime_1.jsx)(material_1.Box, { sx: { marginLeft: "auto" }, children: right })] }));
49
49
  };
50
50
  exports.default = BackHeader;
@@ -24,10 +24,10 @@ var __rest = (this && this.__rest) || function (s, e) {
24
24
  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
- var providers_1 = require("../../../providers");
27
+ var mui_1 = require("../../../theme/mui");
28
28
  function BottomActionLayout(_a) {
29
29
  var children = _a.children, sx = _a.sx, rest = __rest(_a, ["children", "sx"]);
30
- var theme = (0, providers_1.useTheme)();
31
- return ((0, jsx_runtime_1.jsx)(material_1.Box, __assign({ sx: __assign({ width: "100%", paddingLeft: theme.mixins.pagePadding, paddingRight: theme.mixins.pagePadding, paddingBottom: theme.mixins.customPadding.p24 }, sx) }, rest, { children: children })));
30
+ var theme = (0, mui_1.useTheme)();
31
+ return ((0, jsx_runtime_1.jsx)(material_1.Box, __assign({ sx: __assign({ width: "100%", paddingLeft: theme.styleMixins.pagePadding, paddingRight: theme.styleMixins.pagePadding, paddingBottom: theme.styleMixins.customPadding.p24 }, sx) }, rest, { children: children })));
32
32
  }
33
33
  exports.default = BottomActionLayout;
@@ -29,7 +29,7 @@ exports.BUTTON_STATUS = void 0;
29
29
  var jsx_runtime_1 = require("react/jsx-runtime");
30
30
  /* eslint-disable react-hooks/rules-of-hooks */
31
31
  var material_1 = require("@mui/material");
32
- var ThemeProvider_1 = require("../../../providers/ThemeProvider");
32
+ var mui_1 = require("../../../theme/mui");
33
33
  var ClickEffect_1 = __importDefault(require("../ClickEffect"));
34
34
  var BUTTON_STATUS;
35
35
  (function (BUTTON_STATUS) {
@@ -66,7 +66,7 @@ Button.Secondary = function (props) {
66
66
  // const theme = useTheme();
67
67
  return ((0, jsx_runtime_1.jsx)(Button, __assign({}, rest, { variant: "outlined", sx: __assign({
68
68
  // color: theme.palette.text.primary,
69
- // borderRadius: theme.mixins.customRadius.r12,
69
+ // borderRadius: theme.styleMixins.customRadius.r12,
70
70
  // borderColor: "currentcolor",
71
71
  // textTransform: "capitalize",
72
72
  position: "relative" }, sx), disabled: status !== BUTTON_STATUS.ENABLED })));
@@ -74,8 +74,8 @@ Button.Secondary = function (props) {
74
74
  Button.Secondary.displayName = "Button.Secondary";
75
75
  Button.Text = function (props) {
76
76
  var sx = props.sx, _a = props.status, status = _a === void 0 ? BUTTON_STATUS.ENABLED : _a, rest = __rest(props, ["sx", "status"]);
77
- var theme = (0, ThemeProvider_1.useTheme)();
78
- return ((0, jsx_runtime_1.jsx)(Button, __assign({}, rest, { variant: "text", color: "secondary", sx: __assign({ width: "fit-content", height: "fit-content", px: theme.mixins.customPadding.p16, py: theme.mixins.customPadding.p8, textTransform: "capitalize", color: theme.palette.text.primary }, sx), disabled: status !== BUTTON_STATUS.ENABLED })));
77
+ var theme = (0, mui_1.useTheme)();
78
+ return ((0, jsx_runtime_1.jsx)(Button, __assign({}, rest, { variant: "text", color: "secondary", sx: __assign({ width: "fit-content", height: "fit-content", px: theme.styleMixins.customPadding.p16, py: theme.styleMixins.customPadding.p8, textTransform: "capitalize", color: theme.palette.text.primary }, sx), disabled: status !== BUTTON_STATUS.ENABLED })));
79
79
  };
80
80
  Button.Text.displayName = "Button.Text";
81
81
  exports.default = Button;
@@ -7,29 +7,29 @@ var jsx_runtime_1 = require("react/jsx-runtime");
7
7
  var material_1 = require("@mui/material");
8
8
  var Icon_1 = __importDefault(require("../Icon"));
9
9
  var getIcon_1 = __importDefault(require("../../../utils/getIcon"));
10
- var providers_1 = require("../../../providers");
10
+ var mui_1 = require("../../../theme/mui");
11
11
  var Text_1 = __importDefault(require("../Text"));
12
12
  var CardToken = function (_a) {
13
13
  var icon = _a.icon, symbol = _a.symbol, balance = _a.balance, price = _a.price, rate = _a.rate, _b = _a.isActive, isActive = _b === void 0 ? false : _b;
14
- var theme = (0, providers_1.useTheme)();
14
+ var theme = (0, mui_1.useTheme)();
15
15
  return ((0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
16
16
  border: "1px solid",
17
- borderColor: "".concat(isActive ? theme.palette.primary.main : theme.palette.border.accent3),
18
- backgroundColor: "".concat(isActive ? theme.palette.background.tertiary : theme.palette.background.white),
17
+ borderColor: "".concat(isActive ? theme.palette.primary.main : theme.palette.divider),
18
+ backgroundColor: "".concat(isActive ? theme.palette.background.tertiary : theme.palette.background.default),
19
19
  }, className: "p-4 rounded-16", children: (0, jsx_runtime_1.jsxs)(material_1.Box, { className: "flex justify-between items-center", children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { className: "flex items-center gap-3", children: [(0, jsx_runtime_1.jsx)(Icon_1.default, { src: icon || (0, getIcon_1.default)("".concat(icon)), width: 20, height: 20 }), (0, jsx_runtime_1.jsxs)(material_1.Box, { className: "flex flex-col justify-start", children: [(0, jsx_runtime_1.jsx)(Text_1.default, { component: "p", sx: {
20
- color: theme.palette.text.blackContrast,
20
+ color: theme.palette.text.primary,
21
21
  fontWeight: theme.typography.fontWeight400,
22
22
  fontSize: theme.typography.fontSize14,
23
23
  }, children: symbol }), (0, jsx_runtime_1.jsx)(Text_1.default, { component: "p", sx: {
24
- color: theme.palette.text.accent,
24
+ color: theme.palette.text.secondary,
25
25
  fontWeight: theme.typography.fontWeight400,
26
26
  fontSize: theme.typography.fontSize12,
27
27
  }, children: balance })] })] }), (0, jsx_runtime_1.jsxs)(material_1.Box, { className: "flex flex-col justify-end items-end", children: [(0, jsx_runtime_1.jsx)(Text_1.default, { component: "p", sx: {
28
- color: theme.palette.text.blackContrast,
28
+ color: theme.palette.text.primary,
29
29
  fontWeight: theme.typography.fontWeight500,
30
30
  fontSize: theme.typography.fontSize14,
31
31
  }, children: price }), (0, jsx_runtime_1.jsxs)(Text_1.default, { component: "p", sx: {
32
- color: theme.palette.text.accent,
32
+ color: theme.palette.text.secondary,
33
33
  fontWeight: theme.typography.fontWeight400,
34
34
  fontSize: theme.typography.fontSize12,
35
35
  }, children: ["~$", rate] })] })] }) }));
@@ -25,9 +25,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
25
25
  exports.default = Column;
26
26
  var jsx_runtime_1 = require("react/jsx-runtime");
27
27
  var material_1 = require("@mui/material");
28
- var ThemeProvider_1 = require("../../../providers/ThemeProvider");
28
+ var mui_1 = require("../../../theme/mui");
29
29
  function Column(props) {
30
30
  var children = props.children, onClick = props.onClick, sx = props.sx, rest = __rest(props, ["children", "onClick", "sx"]);
31
- var theme = (0, ThemeProvider_1.useTheme)();
32
- return ((0, jsx_runtime_1.jsx)(material_1.Box, __assign({ sx: __assign(__assign({}, theme.mixins.column), sx), onClick: onClick }, rest, { children: children })));
31
+ var theme = (0, mui_1.useTheme)();
32
+ return ((0, jsx_runtime_1.jsx)(material_1.Box, __assign({ sx: __assign(__assign({}, theme.styleMixins.column), sx), onClick: onClick }, rest, { children: children })));
33
33
  }
@@ -89,17 +89,18 @@ var OTP_1 = __importStar(require("../OTP"));
89
89
  var react_1 = require("react");
90
90
  var ModalLayout_1 = __importDefault(require("../ModalLayout"));
91
91
  var material_1 = require("@mui/material");
92
- var ThemeProvider_1 = require("../../../providers/ThemeProvider");
92
+ var mui_1 = require("../../../theme/mui");
93
93
  var LoadingLayout_1 = __importDefault(require("../LoadingLayout"));
94
94
  var DrawerComponent_1 = __importDefault(require("../DrawerComponent"));
95
95
  var xhub_keyboard_1 = require("xhub-keyboard");
96
96
  var useUniqueId_1 = require("../../../hooks/useUniqueId");
97
97
  var xhub_keyboard_2 = require("xhub-keyboard");
98
98
  var useWarningWrongPasscode_1 = require("../../../hooks/useWarningWrongPasscode");
99
+ var TekWalletProvider_1 = require("../../../providers/TekWalletProvider");
99
100
  var passcodeLength = 6;
100
101
  var ConfirmByPasscode = (0, react_1.forwardRef)(function (props, ref) {
101
102
  var onConfirmSuccess = props.onConfirmSuccess, sx = props.sx;
102
- var theme = (0, ThemeProvider_1.useTheme)();
103
+ var theme = (0, mui_1.useTheme)();
103
104
  var _a = (0, react_1.useState)(""), passcode = _a[0], setPasscode = _a[1];
104
105
  var loadingRef = (0, react_1.useRef)(null);
105
106
  var _b = (0, useWarningWrongPasscode_1.useValidatePasscode)(), handleVerifyPasscode = _b.handleVerifyPasscode, warningContent = _b.warningContent, isLocked = _b.isLocked, handleClearUnknownError = _b.handleClearUnknownError, unknownError = _b.unknownError;
@@ -187,9 +188,10 @@ var ConfirmByPasscode = (0, react_1.forwardRef)(function (props, ref) {
187
188
  }
188
189
  });
189
190
  }); }, [handleClose, handleVerifyPasscode, onConfirmSuccess, passcode]);
191
+ var keyboardThemeMode = (0, TekWalletProvider_1.useKeyboardThemeMode)();
190
192
  return ((0, jsx_runtime_1.jsx)(DrawerComponent_1.default, { ref: drawerRef, trigger: (0, jsx_runtime_1.jsx)(xhub_keyboard_1.Label, { style: {
191
193
  width: "100%",
192
- }, useBrowserInput: false, htmlFor: keyboardId, children: props.children }), onOpen: handleOnOpen, onDone: handleOnClose, triggerStatus: props.triggerStatus, sx: __assign({ width: "100%", maxWidth: "calc(100dvw - 2rem)", display: "flex" }, sx), children: (0, jsx_runtime_1.jsx)(xhub_keyboard_1.Keyboard, { ref: keyboardRef, id: keyboardId, value: passcode, onChange: handlePasscodeChange, keyboardType: xhub_keyboard_1.KeyboardType.Text, layoutType: xhub_keyboard_1.LayoutType.Integer, styles: {
194
+ }, useBrowserInput: false, htmlFor: keyboardId, children: props.children }), onOpen: handleOnOpen, onDone: handleOnClose, triggerStatus: props.triggerStatus, sx: __assign({ width: "100%", maxWidth: "calc(100dvw - 2rem)", display: "flex" }, sx), children: (0, jsx_runtime_1.jsx)(xhub_keyboard_1.Keyboard, { theme: keyboardThemeMode, ref: keyboardRef, id: keyboardId, value: passcode, onChange: handlePasscodeChange, keyboardType: xhub_keyboard_1.KeyboardType.Text, layoutType: xhub_keyboard_1.LayoutType.Integer, styles: {
193
195
  keyboardContainer: {
194
196
  display: isLocked ? "none" : "block",
195
197
  },
@@ -201,7 +203,7 @@ var ConfirmByPasscode = (0, react_1.forwardRef)(function (props, ref) {
201
203
  borderRadius: "1.5rem 1.5rem 0 0",
202
204
  }, children: (0, jsx_runtime_1.jsx)(ModalLayout_1.default, { title: "Enter Passcode", onClose: handleClose, sx: {
203
205
  backgroundColor: theme.palette.background.tertiary,
204
- }, children: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { justifyContent: "center", alignItems: "center", gap: "0.75rem", width: "100%" }), children: [(0, jsx_runtime_1.jsx)(xhub_keyboard_1.Label, { style: {
206
+ }, children: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.column), { justifyContent: "center", alignItems: "center", gap: "0.75rem", width: "100%" }), children: [(0, jsx_runtime_1.jsx)(xhub_keyboard_1.Label, { style: {
205
207
  width: "100%",
206
208
  }, useBrowserInput: false, htmlFor: keyboardId, children: (0, jsx_runtime_1.jsx)(OTP_1.default, { disabled: isLocked, value: passcode, onChange: handlePasscodeChange, numInputs: passcodeLength, otpInputType: OTP_1.OtpInputType.CONFIRM_BY_PASSCODE }) }), !isLocked && warningContent, unknownError] }) }) }) }) }));
207
209
  });
@@ -61,7 +61,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
61
61
  Object.defineProperty(exports, "__esModule", { value: true });
62
62
  var jsx_runtime_1 = require("react/jsx-runtime");
63
63
  var material_1 = require("@mui/material");
64
- var ThemeProvider_1 = require("../../../providers/ThemeProvider");
64
+ var mui_1 = require("../../../theme/mui");
65
65
  var DrawerComponent_1 = __importStar(require("../DrawerComponent"));
66
66
  var react_1 = require("react");
67
67
  var ChildPageLayout_1 = __importDefault(require("../../../layouts/ChildPageLayout"));
@@ -69,7 +69,7 @@ var PageHeader_1 = __importDefault(require("../PageHeader"));
69
69
  var ConfirmLayout = (0, react_1.forwardRef)(function (props, ref) {
70
70
  var _a;
71
71
  var children = props.children, action = props.action, header = props.header, confirmAction = props.confirmAction, rest = __rest(props, ["children", "action", "header", "confirmAction"]);
72
- var theme = (0, ThemeProvider_1.useTheme)();
72
+ var theme = (0, mui_1.useTheme)();
73
73
  var confirmByPasscodeDrawerRef = (0, react_1.useRef)(null);
74
74
  var handleOnClose = function () {
75
75
  var _a;
@@ -93,7 +93,7 @@ var ConfirmLayout = (0, react_1.forwardRef)(function (props, ref) {
93
93
  (_a = confirmByPasscodeDrawerRef.current) === null || _a === void 0 ? void 0 : _a.unlockStatus();
94
94
  },
95
95
  }); });
96
- return ((0, jsx_runtime_1.jsx)(DrawerComponent_1.default, __assign({ direction: DrawerComponent_1.DRAWER_DIRECTION.RIGHT, ref: confirmByPasscodeDrawerRef }, rest, { children: (0, jsx_runtime_1.jsx)(ChildPageLayout_1.default, { header: (0, jsx_runtime_1.jsx)(PageHeader_1.default, { title: (_a = header === null || header === void 0 ? void 0 : header.title) !== null && _a !== void 0 ? _a : action, overrideBack: handleOnClose }), footer: confirmAction, children: (0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { alignItems: "center", gap: theme.mixins.gaps.g16, padding: theme.mixins.customPadding.p16 }), children: children }) }) })));
96
+ return ((0, jsx_runtime_1.jsx)(DrawerComponent_1.default, __assign({ direction: DrawerComponent_1.DRAWER_DIRECTION.RIGHT, ref: confirmByPasscodeDrawerRef }, rest, { children: (0, jsx_runtime_1.jsx)(ChildPageLayout_1.default, { header: (0, jsx_runtime_1.jsx)(PageHeader_1.default, { title: (_a = header === null || header === void 0 ? void 0 : header.title) !== null && _a !== void 0 ? _a : action, overrideBack: handleOnClose }), footer: confirmAction, children: (0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.column), { alignItems: "center", gap: theme.styleMixins.gaps.g16, padding: theme.styleMixins.customPadding.p16 }), children: children }) }) })));
97
97
  });
98
98
  ConfirmLayout.displayName = "ConfirmLayout";
99
99
  exports.default = ConfirmLayout;
@@ -20,7 +20,7 @@ var material_1 = require("@mui/material");
20
20
  var Text_1 = __importDefault(require("../Text"));
21
21
  var react_1 = require("react");
22
22
  var Button_1 = __importDefault(require("../Button"));
23
- var providers_1 = require("../../../providers");
23
+ var mui_1 = require("../../../theme/mui");
24
24
  var Formatter_1 = __importDefault(require("../Formatter"));
25
25
  var Icon_1 = __importDefault(require("../Icon"));
26
26
  var useFormatter_1 = __importDefault(require("../../../hooks/useFormatter"));
@@ -29,7 +29,7 @@ var InlineTitleValue_1 = __importDefault(require("../InlineTitleValue"));
29
29
  var convertTokensRate_1 = __importDefault(require("../../views/SwapView/functions/convertTokensRate"));
30
30
  function Result(props) {
31
31
  var _a;
32
- var theme = (0, providers_1.useTheme)();
32
+ var theme = (0, mui_1.useTheme)();
33
33
  var formatDate = (0, useFormatter_1.default)().formatDate;
34
34
  var transaction = props.transaction, onDone = props.onDone;
35
35
  var status = (0, react_1.useMemo)(function () { return (transaction === null || transaction === void 0 ? void 0 : transaction.transaction_status) || "failed"; }, [transaction === null || transaction === void 0 ? void 0 : transaction.transaction_status]);
@@ -51,11 +51,11 @@ function Result(props) {
51
51
  display: "flex",
52
52
  flexDirection: "column",
53
53
  alignItems: "center",
54
- gap: theme.mixins.gaps.g16,
54
+ gap: theme.styleMixins.gaps.g16,
55
55
  my: "auto",
56
56
  backgroundColor: theme.palette.background.tertiary,
57
- borderRadius: theme.mixins.customRadius.r16,
58
- padding: theme.mixins.customPadding.p16,
57
+ borderRadius: theme.styleMixins.customRadius.r16,
58
+ padding: theme.styleMixins.customPadding.p16,
59
59
  paddingTop: "0px",
60
60
  }, children: [(0, jsx_runtime_1.jsx)(Icon_1.default, { iconKey: status === "success" ? "IC_CHECK_CIRCLE" : "IC_ERROR_CIRCLE", width: 100, sx: {
61
61
  transform: "translateY(-50%)",
@@ -65,28 +65,28 @@ function Result(props) {
65
65
  alignItems: "center",
66
66
  }, children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
67
67
  fontSize: theme.typography.fontSize13,
68
- color: theme.palette.text.accent2,
68
+ color: theme.palette.text.secondary,
69
69
  }, children: "Swap" }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
70
70
  color: status === type_1.TransactionStatus.Success
71
- ? theme.palette.text.successStatus
72
- : theme.palette.text.errorStatus,
71
+ ? theme.palette.success.main
72
+ : theme.palette.error.main,
73
73
  textTransform: "capitalize",
74
74
  fontWeight: 600,
75
75
  fontSize: theme.typography.fontSize24,
76
- }, children: status })] }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: { width: "100%", borderTop: "1px ".concat(theme.palette.border.accent3, " solid") } }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
76
+ }, children: status })] }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: { width: "100%", borderTop: "1px ".concat(theme.palette.divider, " solid") } }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
77
77
  width: "100%",
78
78
  position: "relative",
79
79
  }, children: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
80
80
  display: "flex",
81
81
  alignItems: "center",
82
- gap: theme.mixins.gaps.g4,
82
+ gap: theme.styleMixins.gaps.g4,
83
83
  position: "relative",
84
84
  zIndex: 1,
85
85
  }, children: [(0, jsx_runtime_1.jsx)(Icon_1.default, { src: fromToken === null || fromToken === void 0 ? void 0 : fromToken.link, sx: {
86
86
  width: 20,
87
87
  height: 20,
88
88
  borderRadius: "999px",
89
- } }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign({}, theme.mixins.value), { color: "inherit" }), children: (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: amount }) }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: { mx: "auto" } }), (0, jsx_runtime_1.jsx)(Icon_1.default, { iconKey: "IC_SWAP", sx: {
89
+ } }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign({}, theme.styleMixins.value), { color: "inherit" }), children: (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: amount }) }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: { mx: "auto" } }), (0, jsx_runtime_1.jsx)(Icon_1.default, { iconKey: "IC_SWAP", sx: {
90
90
  width: 16,
91
91
  height: 16,
92
92
  position: "absolute",
@@ -97,19 +97,19 @@ function Result(props) {
97
97
  width: 20,
98
98
  height: 20,
99
99
  borderRadius: "999px",
100
- } }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign({}, theme.mixins.value), { color: "inherit" }), children: (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: toAmount }) })] }) }), (0, jsx_runtime_1.jsx)(InlineTitleValue_1.default, { title: "Price", titleStyle: {
100
+ } }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign({}, theme.styleMixins.value), { color: "inherit" }), children: (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: toAmount }) })] }) }), (0, jsx_runtime_1.jsx)(InlineTitleValue_1.default, { title: "Price", titleStyle: {
101
101
  fontSize: "0.875rem",
102
102
  fontWeight: 500,
103
- color: "gray.700",
104
- }, value: !!toTokenRate && ((0, jsx_runtime_1.jsxs)(Text_1.default, { sx: __assign({}, theme.mixins.value), children: ["1 ", fromToken === null || fromToken === void 0 ? void 0 : fromToken.name, " ~ ", (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: toTokenRate, unit: toToken === null || toToken === void 0 ? void 0 : toToken.name })] })), isAligned: true }), !!(transaction === null || transaction === void 0 ? void 0 : transaction.date_created) && ((0, jsx_runtime_1.jsx)(InlineTitleValue_1.default, { title: "Date", titleStyle: {
103
+ color: "text.secondary",
104
+ }, value: !!toTokenRate && ((0, jsx_runtime_1.jsxs)(Text_1.default, { sx: __assign({}, theme.styleMixins.value), children: ["1 ", fromToken === null || fromToken === void 0 ? void 0 : fromToken.name, " ~ ", (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: toTokenRate, unit: toToken === null || toToken === void 0 ? void 0 : toToken.name })] })), isAligned: true }), !!(transaction === null || transaction === void 0 ? void 0 : transaction.date_created) && ((0, jsx_runtime_1.jsx)(InlineTitleValue_1.default, { title: "Date", titleStyle: {
105
105
  fontSize: "0.875rem",
106
106
  fontWeight: 500,
107
- color: "gray.700",
108
- }, value: !!toTokenRate && ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.value), children: formatDate(transaction === null || transaction === void 0 ? void 0 : transaction.date_created, true) })), isAligned: true }))] }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
107
+ color: "text.secondary",
108
+ }, value: !!toTokenRate && ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.styleMixins.value), children: formatDate(transaction === null || transaction === void 0 ? void 0 : transaction.date_created, true) })), isAligned: true }))] }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
109
109
  marginTop: "auto",
110
110
  width: "100%",
111
111
  display: "grid",
112
112
  gridTemplateColumns: "1fr",
113
- gap: theme.mixins.gaps.g8,
113
+ gap: theme.styleMixins.gaps.g8,
114
114
  }, children: (0, jsx_runtime_1.jsx)(Button_1.default.Primary, { sx: { width: "100%" }, onClick: onDone, children: "Done" }) })] }) }));
115
115
  }
@@ -99,7 +99,7 @@ var validate_wallet_address_service_1 = __importDefault(require("../../../servic
99
99
  var type_2 = require("../../../services/axios/validate-wallet-address-service/type");
100
100
  var ConfirmByPasscode_1 = __importDefault(require("../ConfirmByPasscode"));
101
101
  var instructions_service_1 = __importDefault(require("../../../services/axios/instructions-service"));
102
- var providers_1 = require("../../../providers");
102
+ var mui_1 = require("../../../theme/mui");
103
103
  var useWallet_1 = __importDefault(require("../../../hooks/useWallet"));
104
104
  var TransferConfirmationError;
105
105
  (function (TransferConfirmationError) {
@@ -111,7 +111,7 @@ var TransferConfirmationError;
111
111
  })(TransferConfirmationError || (exports.TransferConfirmationError = TransferConfirmationError = {}));
112
112
  exports.TransferConfirmation = (0, react_1.forwardRef)(function (props, ref) {
113
113
  var _a, _b;
114
- var theme = (0, providers_1.useTheme)();
114
+ var theme = (0, mui_1.useTheme)();
115
115
  var transferData = props.transferData, transferContent = props.transferContent;
116
116
  var _c = (0, useWallet_1.default)(), isInitPasscode = _c.isInitPasscode, sendInternalTokens = _c.sendInternalTokens, updateSendInternalToken = _c.updateSendInternalToken;
117
117
  var confirmLayoutDrawerRef = (0, react_1.useRef)(null);
@@ -247,7 +247,7 @@ exports.TransferConfirmation = (0, react_1.forwardRef)(function (props, ref) {
247
247
  ? DrawerComponent_1.DRAWER_TRIGGER_STATUS.DISABLED
248
248
  : DrawerComponent_1.DRAWER_TRIGGER_STATUS.ENABLED, children: (0, jsx_runtime_1.jsx)(Button_1.default.Primary, { status: !!error || isValidatingAddress || errorAddress || !isEnoughBalance
249
249
  ? Button_1.BUTTON_STATUS.DISABLED
250
- : buttonStatus, sx: { width: "100%" }, children: "Confirm" }) }), children: [transferContent, !!error && ((0, jsx_runtime_1.jsxs)(Text_1.default, { sx: __assign(__assign({}, theme.mixins.validationError), { mt: (_a = theme.mixins.gaps) === null || _a === void 0 ? void 0 : _a.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) })] })), !!errorAddress && ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign({}, theme.mixins.validationError), { mt: (_b = theme.mixins.gaps) === null || _b === void 0 ? void 0 : _b.g6 }), children: errorAddress }))] }) }));
250
+ : buttonStatus, sx: { width: "100%" }, children: "Confirm" }) }), children: [transferContent, !!error && ((0, jsx_runtime_1.jsxs)(Text_1.default, { sx: __assign(__assign({}, theme.styleMixins.validationError), { mt: (_a = theme.styleMixins.gaps) === null || _a === void 0 ? void 0 : _a.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) })] })), !!errorAddress && ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign({}, theme.styleMixins.validationError), { mt: (_b = theme.styleMixins.gaps) === null || _b === void 0 ? void 0 : _b.g6 }), children: errorAddress }))] }) }));
251
251
  });
252
252
  exports.TransferConfirmation.displayName = "TransferConfirmation";
253
253
  exports.default = exports.TransferConfirmation;
@@ -53,12 +53,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
53
53
  var jsx_runtime_1 = require("react/jsx-runtime");
54
54
  var react_1 = require("react");
55
55
  var material_1 = require("@mui/material");
56
- var ThemeProvider_1 = require("../../../providers/ThemeProvider");
56
+ var mui_1 = require("../../../theme/mui");
57
57
  var Text_1 = __importDefault(require("../Text"));
58
58
  var SvgPath_1 = require("../SvgPath");
59
59
  var CopyTextComponent = function (_a) {
60
60
  var value = _a.value, iconSuccess = _a.iconSuccess, children = _a.children, hideTextMessage = _a.hideTextMessage, sx = _a.sx, messageSuccess = _a.messageSuccess;
61
- var theme = (0, ThemeProvider_1.useTheme)();
61
+ var theme = (0, mui_1.useTheme)();
62
62
  var _b = (0, react_1.useState)(false), showSuccess = _b[0], setShowSuccess = _b[1];
63
63
  var copyText = function (e) { return __awaiter(void 0, void 0, void 0, function () {
64
64
  var err_1;
@@ -89,22 +89,22 @@ var CopyTextComponent = function (_a) {
89
89
  display: "flex",
90
90
  alignItems: "center",
91
91
  justifyContent: "center",
92
- gap: theme.mixins.gaps.g4,
92
+ gap: theme.styleMixins.gaps.g4,
93
93
  opacity: showSuccess ? 1 : 0,
94
94
  position: "absolute",
95
95
  top: 0,
96
96
  left: "50%",
97
97
  transform: "translate(-50%, -80%) scale(".concat(showSuccess ? 1 : 0, ")"),
98
98
  transformOrigin: "center bottom",
99
- backgroundColor: theme.palette.background.black,
99
+ backgroundColor: "background.popover",
100
100
  backdropFilter: "blur(12px)",
101
101
  borderRadius: 9999,
102
- padding: "".concat(theme.mixins.customPadding.p8, " ").concat(theme.mixins.customPadding.p12),
102
+ padding: "".concat(theme.styleMixins.customPadding.p8, " ").concat(theme.styleMixins.customPadding.p12),
103
103
  transition: showSuccess
104
104
  ? "opacity 0.5s linear, transform 0.17s linear"
105
105
  : "opacity 0.15s linear, transform 0.1s linear",
106
106
  }, children: [iconSuccess || (0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { width: "1rem", height: "1rem" }, children: SvgPath_1.IC_SUCCESS }), !hideTextMessage && ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
107
- color: theme.palette.text.successStatus,
107
+ color: theme.palette.success.main,
108
108
  fontSize: theme.typography.fontSize14,
109
109
  lineHeight: theme.typography.leading100,
110
110
  whiteSpace: "nowrap",
@@ -62,6 +62,7 @@ var jsx_runtime_1 = require("react/jsx-runtime");
62
62
  var React = __importStar(require("react"));
63
63
  var Popover_1 = __importDefault(require("@mui/material/Popover"));
64
64
  var material_1 = require("@mui/material");
65
+ var Text_1 = __importDefault(require("../Text"));
65
66
  var CustomTooltip = React.forwardRef(function (_a, ref) {
66
67
  var trigger = _a.trigger, children = _a.children, disabled = _a.disabled, _b = _a.anchorOrigin, anchorOrigin = _b === void 0 ? {
67
68
  vertical: "bottom",
@@ -85,12 +86,13 @@ var CustomTooltip = React.forwardRef(function (_a, ref) {
85
86
  };
86
87
  var open = Boolean(anchorEl);
87
88
  var id = open ? "simple-popover" : undefined;
88
- return ((0, jsx_runtime_1.jsxs)(material_1.Box, { onClick: cancelPropagation, sx: { display: "inline-block" }, children: [(0, jsx_runtime_1.jsx)(material_1.Box, { component: "div", "aria-describedby": id, onClick: handleOpen, sx: { textAlign: "left" }, children: trigger }), (0, jsx_runtime_1.jsx)(Popover_1.default, __assign({ id: id, open: open, anchorEl: anchorEl, onClose: handleClose, anchorOrigin: anchorOrigin, anchorPosition: anchorPosition, transformOrigin: transformOrigin, sx: {
89
+ return ((0, jsx_runtime_1.jsxs)(material_1.Box, { onClick: cancelPropagation, sx: { display: "inline-block" }, children: [(0, jsx_runtime_1.jsx)(material_1.Box, { component: "div", "aria-describedby": id, onClick: handleOpen, sx: { textAlign: "left", display: "inline-block" }, children: trigger }), (0, jsx_runtime_1.jsx)(Popover_1.default, __assign({ id: id, open: open, anchorEl: anchorEl, onClose: handleClose, anchorOrigin: anchorOrigin, anchorPosition: anchorPosition, transformOrigin: transformOrigin, sx: {
90
+ display: "inline-block",
89
91
  "& .MuiPopover-paper": {
90
92
  backgroundColor: "transparent",
91
93
  borderRadius: "0.75rem",
92
94
  },
93
- } }, rest, { children: children }))] }));
95
+ } }, rest, { children: (0, jsx_runtime_1.jsx)(Text_1.default, { sx: { color: "text.reverse", display: "inline-block" }, children: children }) }))] }));
94
96
  });
95
97
  CustomTooltip.displayName = "CustomTooltip";
96
98
  exports.default = CustomTooltip;