tek-wallet 0.0.806 → 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 (189) 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/useValidateAmount.js +3 -3
  130. package/dist/components/TekWallet/hooks/useWarningWrongPasscode.js +5 -5
  131. package/dist/components/TekWallet/index.d.ts +2 -0
  132. package/dist/components/TekWallet/index.js +2 -12
  133. package/dist/components/TekWallet/layouts/ChildPageLayout/index.js +3 -3
  134. package/dist/components/TekWallet/providers/RealtimeProvider/index.js +15 -13
  135. package/dist/components/TekWallet/providers/TekWalletProvider/index.d.ts +9 -1
  136. package/dist/components/TekWallet/providers/TekWalletProvider/index.js +11 -4
  137. package/dist/components/TekWallet/providers/index.d.ts +0 -1
  138. package/dist/components/TekWallet/providers/index.js +0 -1
  139. package/dist/components/TekWallet/theme/mui/components/index.d.ts +133 -0
  140. package/dist/components/TekWallet/theme/mui/components/index.js +14 -0
  141. package/dist/components/TekWallet/theme/mui/components/overrides/Button.d.ts +142 -0
  142. package/dist/components/TekWallet/theme/mui/components/overrides/Button.js +84 -0
  143. package/dist/components/TekWallet/theme/mui/components/overrides/Drawer.d.ts +4 -0
  144. package/dist/components/TekWallet/theme/mui/components/overrides/Drawer.js +9 -0
  145. package/dist/components/TekWallet/theme/mui/components/overrides/Paper.d.ts +3 -0
  146. package/dist/components/TekWallet/theme/mui/components/overrides/Paper.js +15 -0
  147. package/dist/components/TekWallet/theme/mui/components/overrides/SnackBar.d.ts +3 -0
  148. package/dist/components/TekWallet/theme/mui/components/overrides/SnackBar.js +32 -0
  149. package/dist/components/TekWallet/theme/mui/fixed-mixins.d.ts +2 -0
  150. package/dist/components/TekWallet/theme/mui/fixed-mixins.js +218 -0
  151. package/dist/components/TekWallet/theme/mui/index.d.ts +3 -3
  152. package/dist/components/TekWallet/theme/mui/index.js +16 -32
  153. package/dist/components/TekWallet/theme/mui/palette.d.ts +34 -0
  154. package/dist/components/TekWallet/theme/mui/palette.js +133 -0
  155. package/dist/components/TekWallet/theme/mui/shadows/index.d.ts +3 -0
  156. package/dist/components/TekWallet/theme/mui/shadows/index.js +64 -0
  157. package/dist/components/TekWallet/theme/mui/spacing.d.ts +1 -0
  158. package/dist/components/TekWallet/theme/mui/spacing.js +5 -0
  159. package/dist/components/TekWallet/theme/mui/theme.d.ts +9 -442
  160. package/dist/components/TekWallet/theme/mui/theme.js +38 -415
  161. package/dist/components/TekWallet/theme/mui/type.d.ts +5 -0
  162. package/dist/components/TekWallet/theme/mui/type.js +9 -0
  163. package/dist/components/TekWallet/theme/mui/typography.d.ts +27 -0
  164. package/dist/components/TekWallet/theme/mui/typography.js +30 -0
  165. package/dist/components/TekWallet/theme/mui/utils/deepMergeTheme.d.ts +2 -0
  166. package/dist/components/TekWallet/theme/mui/utils/deepMergeTheme.js +7 -0
  167. package/dist/components/TekWallet/utils/getContractColor.d.ts +1 -0
  168. package/dist/components/TekWallet/utils/getContractColor.js +30 -0
  169. package/package.json +1 -1
  170. package/dist/components/TekWallet/components/ui/CardHistorySwap/index.d.ts +0 -12
  171. package/dist/components/TekWallet/components/ui/CardHistorySwap/index.js +0 -75
  172. package/dist/components/TekWallet/components/ui/DetailSwapResult/index.d.ts +0 -8
  173. package/dist/components/TekWallet/components/ui/DetailSwapResult/index.js +0 -122
  174. package/dist/components/TekWallet/components/ui/HistorySwap/index.d.ts +0 -16
  175. package/dist/components/TekWallet/components/ui/HistorySwap/index.js +0 -434
  176. package/dist/components/TekWallet/components/ui/SwapFunction/index.d.ts +0 -16
  177. package/dist/components/TekWallet/components/ui/SwapFunction/index.js +0 -271
  178. package/dist/components/TekWallet/components/ui/SwapToken/index.d.ts +0 -31
  179. package/dist/components/TekWallet/components/ui/SwapToken/index.js +0 -293
  180. package/dist/components/TekWallet/providers/ThemeProvider/index.d.ts +0 -8
  181. package/dist/components/TekWallet/providers/ThemeProvider/index.js +0 -43
  182. package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/components.d.ts +0 -3
  183. package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/components.js +0 -158
  184. package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/palette.d.ts +0 -55
  185. package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/palette.js +0 -45
  186. package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/theme.d.ts +0 -2
  187. package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/theme.js +0 -13
  188. package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/typography.d.ts +0 -39
  189. package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/typography.js +0 -65
@@ -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;
@@ -16,32 +16,32 @@ 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");
19
+ var mui_1 = require("../../../theme/mui");
20
20
  var LineValue_1 = __importDefault(require("../LineValue"));
21
21
  var Text_1 = __importDefault(require("../Text"));
22
22
  var DetailSwap = function (props) {
23
23
  var _a, _b;
24
- var theme = (0, providers_1.useTheme)();
24
+ var theme = (0, mui_1.useTheme)();
25
25
  var getOutputID = props.selectOutputToken &&
26
26
  ((_a = props.selectedToken) === null || _a === void 0 ? void 0 : _a.outputs.find(function (output) { var _a; return output.id === Number((_a = props.selectOutputToken) === null || _a === void 0 ? void 0 : _a.id); }));
27
- return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign({}, theme.mixins.column), className: "gap-3 mt-2", children: [(0, jsx_runtime_1.jsx)(material_1.Box, { children: (0, jsx_runtime_1.jsx)(Text_1.default, { className: "capitalize opacity-90", sx: {
28
- color: theme.palette.text.accent2,
27
+ return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign({}, theme.styleMixins.column), className: "gap-3 mt-2", children: [(0, jsx_runtime_1.jsx)(material_1.Box, { children: (0, jsx_runtime_1.jsx)(Text_1.default, { className: "capitalize opacity-90", sx: {
28
+ color: theme.palette.text.secondary,
29
29
  fontSize: theme.typography.fontSize13,
30
30
  fontWeight: theme.typography.fontWeight400,
31
31
  }, children: "Transaction summary" }) }), (0, jsx_runtime_1.jsx)(LineValue_1.default, { field: (0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
32
- color: theme.palette.text.accent,
32
+ color: theme.palette.text.secondary,
33
33
  fontSize: theme.typography.fontSize12,
34
34
  fontWeight: theme.typography.fontWeight400,
35
- }, children: "Best Price" }), value: (0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g4 }), children: (0, jsx_runtime_1.jsxs)(Text_1.default, { sx: {
36
- color: theme.palette.text.blackContrast,
35
+ }, children: "Best Price" }), value: (0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.row), { gap: theme.styleMixins.gaps.g4 }), children: (0, jsx_runtime_1.jsxs)(Text_1.default, { sx: {
36
+ color: theme.palette.text.primary,
37
37
  fontSize: theme.typography.fontSize12,
38
38
  fontWeight: theme.typography.fontWeight500,
39
39
  }, children: ["1 ", (_b = props.selectedToken) === null || _b === void 0 ? void 0 : _b.full_name, " ~ ", getOutputID === null || getOutputID === void 0 ? void 0 : getOutputID.swap_amount, " ", getOutputID && getOutputID.full_name] }) }) }), (0, jsx_runtime_1.jsx)(LineValue_1.default, { field: (0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
40
- color: theme.palette.text.accent,
40
+ color: theme.palette.text.secondary,
41
41
  fontSize: theme.typography.fontSize12,
42
42
  fontWeight: theme.typography.fontWeight400,
43
43
  }, className: "capitalize", children: "Powered by" }), value: (0, jsx_runtime_1.jsx)(Text_1.default, { className: "truncate", sx: {
44
- color: theme.palette.text.blackContrast,
44
+ color: theme.palette.text.primary,
45
45
  fontSize: theme.typography.fontSize12,
46
46
  fontWeight: theme.typography.fontWeight500,
47
47
  }, children: "Liquidity Protocol" }) })] }));
@@ -27,15 +27,15 @@ 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
  function DialogContentLayout(props) {
33
33
  var content = props.content, actions = props.actions, sx = props.sx, rest = __rest(props, ["content", "actions", "sx"]);
34
- var theme = (0, ThemeProvider_1.useTheme)();
35
- return ((0, jsx_runtime_1.jsxs)(material_1.Box, __assign({ sx: __assign(__assign(__assign(__assign({}, theme.mixins.column), { borderRadius: theme.mixins.customRadius.r12, backgroundColor: theme.palette.background.black, boxShadow: theme.shadows[1], minWidth: "12rem" }), theme.mixins.dialogContent), sx) }, rest, { children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
36
- padding: theme.mixins.customPadding.p12,
37
- }, children: content }), !!actions && ((0, jsx_runtime_1.jsx)(material_1.Box, { sx: { width: "100%", height: "1px", backgroundColor: theme.palette.border.white16 } })), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
38
- px: theme.mixins.customPadding.p12,
34
+ var theme = (0, mui_1.useTheme)();
35
+ return ((0, jsx_runtime_1.jsxs)(material_1.Box, __assign({ sx: __assign(__assign(__assign(__assign({}, theme.styleMixins.column), { borderRadius: theme.styleMixins.customRadius.r12, backgroundColor: "background.popover", boxShadow: theme.shadows[1], minWidth: "12rem" }), theme.styleMixins.dialogContent), sx) }, rest, { children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
36
+ padding: theme.styleMixins.customPadding.p12,
37
+ }, children: content }), !!actions && ((0, jsx_runtime_1.jsx)(material_1.Box, { sx: { width: "100%", height: "1px", backgroundColor: theme.palette.divider } })), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
38
+ px: theme.styleMixins.customPadding.p12,
39
39
  width: "100%",
40
40
  height: "fit-content",
41
41
  }, children: actions })] })));
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DRAWER_DIRECTION = void 0;
4
4
  var jsx_runtime_1 = require("react/jsx-runtime");
5
5
  var material_1 = require("@mui/material");
6
- var providers_1 = require("../../../providers");
6
+ var mui_1 = require("../../../theme/mui");
7
7
  var DRAWER_DIRECTION;
8
8
  (function (DRAWER_DIRECTION) {
9
9
  DRAWER_DIRECTION["TOP"] = "top";
@@ -13,13 +13,13 @@ var DRAWER_DIRECTION;
13
13
  })(DRAWER_DIRECTION || (exports.DRAWER_DIRECTION = DRAWER_DIRECTION = {}));
14
14
  var DrawerDrag = function (_a) {
15
15
  var anchor = _a.anchor, open = _a.open, onClose = _a.onClose, onOpen = _a.onOpen, content = _a.content, title = _a.title, footer = _a.footer, sx = _a.sx;
16
- var theme = (0, providers_1.useTheme)();
16
+ var theme = (0, mui_1.useTheme)();
17
17
  return ((0, jsx_runtime_1.jsx)(material_1.SwipeableDrawer, { anchor: anchor || DRAWER_DIRECTION.BOTTOM, open: open, onClose: onClose || (function () { }), onOpen: onOpen, sx: sx
18
18
  ? sx
19
19
  : {
20
20
  "& .MuiDrawer-paper": {
21
21
  backgroundColor: "transparent",
22
22
  },
23
- }, children: (0, jsx_runtime_1.jsxs)(material_1.Box, { className: "\n \"w-full border-t border-".concat(theme.palette.border.accent3, " bg-").concat(theme.palette.background.tertiary, " blur-[50px]\",\n className,\n ").concat(anchor === DRAWER_DIRECTION.BOTTOM && "min-h-[33dvh]", "\n "), children: [title, content, footer] }) }));
23
+ }, children: (0, jsx_runtime_1.jsxs)(material_1.Box, { className: "\n \"w-full border-t border-".concat(theme.palette.divider, " bg-").concat(theme.palette.background.tertiary, " blur-[50px]\",\n className,\n ").concat(anchor === DRAWER_DIRECTION.BOTTOM && "min-h-[33dvh]", "\n "), children: [title, content, footer] }) }));
24
24
  };
25
25
  exports.default = DrawerDrag;
@@ -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 ThemeProvider_1 = require("../../../providers/ThemeProvider");
19
+ var mui_1 = require("../../../theme/mui");
20
20
  var Text_1 = __importDefault(require("../Text"));
21
21
  var Button_1 = __importDefault(require("../Button"));
22
22
  function EmptyData(props) {
23
- var theme = (0, ThemeProvider_1.useTheme)();
24
- return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign(__assign({}, theme.mixins.column), { gap: theme.mixins.gaps.g16, alignItems: "center", justifyContent: "center" }), props.sx), children: [(0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { width: 62, height: 62 }, children: (0, jsx_runtime_1.jsxs)("svg", { width: "63", height: "62", viewBox: "0 0 63 62", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [(0, jsx_runtime_1.jsx)("path", { d: "M46.0312 23.25H21.7544C21.4638 23.25 21.1925 23.1241 21.0084 22.9012L17.3272 18.4837C16.775 17.8153 15.9612 17.4375 15.0991 17.4375H5.34375C3.74531 17.4375 2.4375 18.7453 2.4375 20.3438V59.0938C2.4375 59.4231 2.61188 59.7331 2.89281 59.9172C3.04781 60.0141 3.23188 60.0625 3.40625 60.0625C3.55156 60.0625 3.68719 60.0334 3.82281 59.9656L48.3853 38.6531C48.7244 38.4884 48.9375 38.1494 48.9375 37.7812V26.1562C48.9375 24.5578 47.6297 23.25 46.0312 23.25Z", fill: "#A3A3A3" }), (0, jsx_runtime_1.jsx)("path", { d: "M60.2912 37.7522C59.9425 37.1613 59.3225 36.8125 58.6347 36.8125H15.535C14.8278 36.8125 14.1787 37.2 13.8397 37.8297L2.55373 58.6287C2.38904 58.9291 2.39873 59.2972 2.5731 59.5878C2.74748 59.8784 3.06717 60.0625 3.40623 60.0625H46.9709C48.3853 60.0625 49.6834 59.2875 50.3615 58.0378L60.3203 39.6703C60.6497 39.06 60.64 38.3431 60.2815 37.7522H60.2912Z", fill: "#044C2F" }), (0, jsx_runtime_1.jsx)("path", { d: "M27.625 50.375H16.9688C16.4359 50.375 16 49.9391 16 49.4062C16 48.8734 16.4359 48.4375 16.9688 48.4375H27.625C28.1578 48.4375 28.5938 48.8734 28.5938 49.4062C28.5938 49.9391 28.1578 50.375 27.625 50.375Z", fill: "#ECF4E9" }), (0, jsx_runtime_1.jsx)("path", { d: "M31.5 55.2188H14.0625C13.5297 55.2188 13.0938 54.7828 13.0938 54.25C13.0938 53.7172 13.5297 53.2812 14.0625 53.2812H31.5C32.0328 53.2812 32.4688 53.7172 32.4688 54.25C32.4688 54.7828 32.0328 55.2188 31.5 55.2188Z", fill: "#ECF4E9" }), (0, jsx_runtime_1.jsx)("path", { d: "M39.25 1.9375C31.7713 1.9375 25.6875 8.02125 25.6875 15.5C25.6875 21.7969 30.0663 27.2897 36.1597 28.7041L38.4169 32.4628C38.5912 32.7534 38.9109 32.9375 39.25 32.9375C39.5891 32.9375 39.9088 32.7631 40.0831 32.4628L42.3403 28.7041C48.4337 27.2897 52.8125 21.7969 52.8125 15.5C52.8125 8.02125 46.7288 1.9375 39.25 1.9375Z", fill: "#E5E6E6" }), (0, jsx_runtime_1.jsx)("path", { d: "M44.7817 9.96891C44.4039 9.59109 43.7936 9.59109 43.4158 9.96891L39.2598 14.1248L35.1039 9.96891C34.7261 9.59109 34.1158 9.59109 33.7379 9.96891C33.3601 10.3467 33.3601 10.957 33.7379 11.3348L37.8939 15.4908L33.7379 19.6467C33.3601 20.0245 33.3601 20.6348 33.7379 21.0127C33.9317 21.2064 34.1739 21.2936 34.4258 21.2936C34.6776 21.2936 34.9198 21.1967 35.1136 21.0127L39.2695 16.8567L43.4254 21.0127C43.6192 21.2064 43.8614 21.2936 44.1133 21.2936C44.3651 21.2936 44.6073 21.1967 44.8011 21.0127C45.1789 20.6348 45.1789 20.0245 44.8011 19.6467L40.6451 15.4908L44.8011 11.3348C45.1789 10.957 45.1789 10.3467 44.8011 9.96891H44.7817Z", fill: "#044C2F" })] }) }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { gap: theme.mixins.gaps.g8 }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.sessionTitle), children: props.title }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.sessionDescription), children: props.description })] }), props.action && (0, jsx_runtime_1.jsx)(Button_1.default.Primary, { onClick: props.action, children: props.actionText })] }));
23
+ var theme = (0, mui_1.useTheme)();
24
+ return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign(__assign({}, theme.styleMixins.column), { gap: theme.styleMixins.gaps.g16, alignItems: "center", justifyContent: "center", color: theme.palette.primary.main }), props.sx), children: [(0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { width: 62, height: 62 }, children: (0, jsx_runtime_1.jsxs)("svg", { width: "63", height: "62", viewBox: "0 0 63 62", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [(0, jsx_runtime_1.jsx)("path", { d: "M46.0312 23.25H21.7544C21.4638 23.25 21.1925 23.1241 21.0084 22.9012L17.3272 18.4837C16.775 17.8153 15.9612 17.4375 15.0991 17.4375H5.34375C3.74531 17.4375 2.4375 18.7453 2.4375 20.3438V59.0938C2.4375 59.4231 2.61188 59.7331 2.89281 59.9172C3.04781 60.0141 3.23188 60.0625 3.40625 60.0625C3.55156 60.0625 3.68719 60.0334 3.82281 59.9656L48.3853 38.6531C48.7244 38.4884 48.9375 38.1494 48.9375 37.7812V26.1562C48.9375 24.5578 47.6297 23.25 46.0312 23.25Z", fill: "#A3A3A3" }), (0, jsx_runtime_1.jsx)("path", { d: "M60.2912 37.7522C59.9425 37.1613 59.3225 36.8125 58.6347 36.8125H15.535C14.8278 36.8125 14.1787 37.2 13.8397 37.8297L2.55373 58.6287C2.38904 58.9291 2.39873 59.2972 2.5731 59.5878C2.74748 59.8784 3.06717 60.0625 3.40623 60.0625H46.9709C48.3853 60.0625 49.6834 59.2875 50.3615 58.0378L60.3203 39.6703C60.6497 39.06 60.64 38.3431 60.2815 37.7522H60.2912Z", fill: "currentColor" }), (0, jsx_runtime_1.jsx)("path", { d: "M27.625 50.375H16.9688C16.4359 50.375 16 49.9391 16 49.4062C16 48.8734 16.4359 48.4375 16.9688 48.4375H27.625C28.1578 48.4375 28.5938 48.8734 28.5938 49.4062C28.5938 49.9391 28.1578 50.375 27.625 50.375Z", fill: "#ECF4E9" }), (0, jsx_runtime_1.jsx)("path", { d: "M31.5 55.2188H14.0625C13.5297 55.2188 13.0938 54.7828 13.0938 54.25C13.0938 53.7172 13.5297 53.2812 14.0625 53.2812H31.5C32.0328 53.2812 32.4688 53.7172 32.4688 54.25C32.4688 54.7828 32.0328 55.2188 31.5 55.2188Z", fill: "#ECF4E9" }), (0, jsx_runtime_1.jsx)("path", { d: "M39.25 1.9375C31.7713 1.9375 25.6875 8.02125 25.6875 15.5C25.6875 21.7969 30.0663 27.2897 36.1597 28.7041L38.4169 32.4628C38.5912 32.7534 38.9109 32.9375 39.25 32.9375C39.5891 32.9375 39.9088 32.7631 40.0831 32.4628L42.3403 28.7041C48.4337 27.2897 52.8125 21.7969 52.8125 15.5C52.8125 8.02125 46.7288 1.9375 39.25 1.9375Z", fill: "#E5E6E6" }), (0, jsx_runtime_1.jsx)("path", { d: "M44.7817 9.96891C44.4039 9.59109 43.7936 9.59109 43.4158 9.96891L39.2598 14.1248L35.1039 9.96891C34.7261 9.59109 34.1158 9.59109 33.7379 9.96891C33.3601 10.3467 33.3601 10.957 33.7379 11.3348L37.8939 15.4908L33.7379 19.6467C33.3601 20.0245 33.3601 20.6348 33.7379 21.0127C33.9317 21.2064 34.1739 21.2936 34.4258 21.2936C34.6776 21.2936 34.9198 21.1967 35.1136 21.0127L39.2695 16.8567L43.4254 21.0127C43.6192 21.2064 43.8614 21.2936 44.1133 21.2936C44.3651 21.2936 44.6073 21.1967 44.8011 21.0127C45.1789 20.6348 45.1789 20.0245 44.8011 19.6467L40.6451 15.4908L44.8011 11.3348C45.1789 10.957 45.1789 10.3467 44.8011 9.96891H44.7817Z", fill: "currentColor" })] }) }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.column), { gap: theme.styleMixins.gaps.g8 }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.styleMixins.sessionTitle), children: props.title }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.styleMixins.sessionDescription), children: props.description })] }), props.action && (0, jsx_runtime_1.jsx)(Button_1.default.Primary, { onClick: props.action, children: props.actionText })] }));
25
25
  }
26
26
  exports.default = EmptyData;