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
@@ -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;
@@ -29,7 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.FeesStyle = void 0;
30
30
  var jsx_runtime_1 = require("react/jsx-runtime");
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 Icon_1 = __importDefault(require("../Icon"));
34
34
  var Text_1 = __importDefault(require("../Text"));
35
35
  var Formatter_1 = __importDefault(require("../Formatter"));
@@ -44,7 +44,7 @@ var FeesStyle;
44
44
  })(FeesStyle || (exports.FeesStyle = FeesStyle = {}));
45
45
  function Fees(props) {
46
46
  var sx = props.sx, amount = props.amount, feesData = props.feesData, isFeePaidByAmount = props.isFeePaidByAmount, tokenSlug = props.tokenSlug, setIsEnoughBalanceToPayFee = props.setIsEnoughBalanceToPayFee, feesStyle = props.feesStyle, estimateReceive = props.estimateReceive, rest = __rest(props, ["sx", "amount", "feesData", "isFeePaidByAmount", "tokenSlug", "setIsEnoughBalanceToPayFee", "feesStyle", "estimateReceive"]);
47
- var theme = (0, ThemeProvider_1.useTheme)();
47
+ var theme = (0, mui_1.useTheme)();
48
48
  // const feesData = parsePropsData<FeesDataType>(feesDataString);
49
49
  var tokens = (0, useWalletData_1.default)().tokens;
50
50
  var getBalanceUseToPaidFee = (0, react_1.useCallback)(function (tokenSlugMustBePaidFee) {
@@ -94,63 +94,63 @@ function Fees(props) {
94
94
  var totalFeeInCurrency = (0, react_1.useMemo)(function () {
95
95
  return feesData === null || feesData === void 0 ? void 0 : feesData.fee_in_currency;
96
96
  }, [feesData]);
97
- return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: !!isChargeFee && ((0, jsx_runtime_1.jsxs)(material_1.Accordion, __assign({ defaultExpanded: true }, rest, { disableGutters: true, sx: __assign(__assign({}, getStyled(feesStyle !== null && feesStyle !== void 0 ? feesStyle : FeesStyle.DEFAULT, theme)), sx), children: [(0, jsx_runtime_1.jsx)(material_1.AccordionSummary, { expandIcon: (0, jsx_runtime_1.jsx)(Icon_1.default, { src: (0, getIcon_1.default)("arrow_down"), width: 8, height: 8 }), children: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { width: "100%" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
97
+ return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: !!isChargeFee && ((0, jsx_runtime_1.jsxs)(material_1.Accordion, __assign({ defaultExpanded: true }, rest, { disableGutters: true, sx: __assign(__assign({}, getStyled(feesStyle !== null && feesStyle !== void 0 ? feesStyle : FeesStyle.DEFAULT, theme)), sx), children: [(0, jsx_runtime_1.jsx)(material_1.AccordionSummary, { expandIcon: (0, jsx_runtime_1.jsx)(Icon_1.default, { src: (0, getIcon_1.default)("arrow_down"), width: 8, height: 8 }), children: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.row), { width: "100%" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
98
98
  fontSize: theme.typography.fontSize11,
99
99
  fontWeight: theme.typography.fontWeight500,
100
- color: theme.palette.text.black,
100
+ color: theme.palette.text.primary,
101
101
  }, children: "Total fees" }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
102
102
  borderTop: "1px dashed",
103
- borderColor: theme.palette.border.accent,
103
+ borderColor: theme.palette.divider,
104
104
  flex: 1,
105
105
  height: "1px",
106
106
  width: "100%",
107
- ml: theme.mixins.gaps.g8,
108
- mr: theme.mixins.gaps.g8,
107
+ ml: theme.styleMixins.gaps.g8,
108
+ mr: theme.styleMixins.gaps.g8,
109
109
  } }), (0, jsx_runtime_1.jsx)(Formatter_1.default, { sx: {
110
110
  fontSize: theme.typography.fontSize13,
111
111
  fontWeight: theme.typography.fontWeight500,
112
- color: theme.palette.text.black,
113
- }, value: totalFeeInCurrency, unit: " ".concat(tokenSlug.toUpperCase()), disableTooltip: true }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { width: "0.5rem" }) })] }) }), (0, jsx_runtime_1.jsx)(material_1.AccordionDetails, { children: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { gap: theme.mixins.gaps.g8, pt: theme.mixins.gaps.g12 }), children: [(0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { alignItems: "stretch" }), children: (0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { flex: 1, gap: theme.mixins.gaps.g8 }), children: feeCheckedBalance === null || feeCheckedBalance === void 0 ? void 0 : feeCheckedBalance.map(function (item, index) {
112
+ color: theme.palette.text.primary,
113
+ }, value: totalFeeInCurrency, unit: " ".concat(tokenSlug.toUpperCase()), disableTooltip: true }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.row), { width: "0.5rem" }) })] }) }), (0, jsx_runtime_1.jsx)(material_1.AccordionDetails, { children: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.column), { gap: theme.styleMixins.gaps.g8, pt: theme.styleMixins.gaps.g12 }), children: [(0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.row), { alignItems: "stretch" }), children: (0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.column), { flex: 1, gap: theme.styleMixins.gaps.g8 }), children: feeCheckedBalance === null || feeCheckedBalance === void 0 ? void 0 : feeCheckedBalance.map(function (item, index) {
114
114
  var _a, _b, _c, _d;
115
115
  return ((0, jsx_runtime_1.jsxs)(react_1.Fragment, { children: [index !== 0 && ((0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
116
- borderRight: "1px dashed ".concat(theme.palette.border.accent),
116
+ borderRight: "1px dashed ".concat(theme.palette.divider),
117
117
  width: "1px",
118
118
  height: "1rem",
119
- pr: theme.mixins.gaps.g6,
119
+ pr: theme.styleMixins.gaps.g6,
120
120
  } })), (0, jsx_runtime_1.jsx)(FeeDetails, { feeName: (_a = item.fee_type) === null || _a === void 0 ? void 0 : _a.name, fee_in_currency: item.fee_in_currency, fee_in_usd: item.fee_in_usd, currencyName: (_b = item.currency) === null || _b === void 0 ? void 0 : _b.name }, (_c = item.fee_type) === null || _c === void 0 ? void 0 : _c.name)] }, (_d = item.fee_type) === null || _d === void 0 ? void 0 : _d.name));
121
- }) }) }), isNotEnoughBalanceToPayFee && ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.validationError), children: "ⓘ Insufficient transaction fee!" })), (0, jsx_runtime_1.jsx)(material_1.Divider, { sx: {
122
- borderColor: theme.palette.border.black16,
123
- my: theme.mixins.gaps.g4,
124
- } }), estimateReceive !== undefined && ((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, { sx: {
121
+ }) }) }), isNotEnoughBalanceToPayFee && ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.styleMixins.validationError), children: "ⓘ Insufficient transaction fee!" })), (0, jsx_runtime_1.jsx)(material_1.Divider, { sx: {
122
+ borderColor: theme.palette.divider,
123
+ my: theme.styleMixins.gaps.g4,
124
+ } }), estimateReceive !== undefined && ((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, { sx: {
125
125
  fontSize: theme.typography.fontSize11,
126
126
  fontWeight: theme.typography.fontWeight500,
127
127
  lineHeight: theme.typography.leading160,
128
128
  }, children: "Receive amount estimated" }), (0, jsx_runtime_1.jsx)(Formatter_1.default, { sx: {
129
129
  fontSize: theme.typography.fontSize16,
130
130
  fontWeight: theme.typography.fontWeight700,
131
- color: theme.palette.text.black,
131
+ color: theme.palette.text.primary,
132
132
  }, unit: " ".concat(tokenSlug.toUpperCase()), value: estimateReceive })] }))] }) })] }))) }));
133
133
  }
134
134
  exports.default = Fees;
135
135
  var FeeDetails = function (_a) {
136
136
  var feeName = _a.feeName, fee_in_currency = _a.fee_in_currency, fee_in_usd = _a.fee_in_usd, currencyName = _a.currencyName;
137
- var theme = (0, ThemeProvider_1.useTheme)();
138
- return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g4, alignItems: "center", justifyContent: "space-between" }), children: [(0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { width: 14, height: 14 }, children: SvgPath_1.IC_TIMELINE_DOT }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
137
+ var theme = (0, mui_1.useTheme)();
138
+ return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.row), { gap: theme.styleMixins.gaps.g4, alignItems: "center", justifyContent: "space-between" }), children: [(0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { width: 14, height: 14 }, children: SvgPath_1.IC_TIMELINE_DOT }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
139
139
  fontSize: theme.typography.fontSize11,
140
140
  fontWeight: theme.typography.fontWeight500,
141
141
  lineHeight: theme.typography.leading160,
142
- color: theme.palette.text.accent,
143
- pl: theme.mixins.gaps.g12,
142
+ color: theme.palette.text.secondary,
143
+ pl: theme.styleMixins.gaps.g12,
144
144
  whiteSpace: "nowrap",
145
145
  flex: 1,
146
- }, children: feeName }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { width: "fit-content", alignItems: "flex-end" }), children: [(0, jsx_runtime_1.jsx)(Formatter_1.default, { sx: {
146
+ }, children: feeName }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.column), { width: "fit-content", alignItems: "flex-end" }), children: [(0, jsx_runtime_1.jsx)(Formatter_1.default, { sx: {
147
147
  fontSize: theme.typography.fontSize13,
148
148
  fontWeight: theme.typography.fontWeight500,
149
- color: theme.palette.text.black,
149
+ color: theme.palette.text.primary,
150
150
  }, value: fee_in_currency, unit: " ".concat(currencyName), disableTooltip: true }), (0, jsx_runtime_1.jsx)(Formatter_1.default, { sx: {
151
151
  fontSize: theme.typography.fontSize11,
152
152
  fontWeight: theme.typography.fontWeight500,
153
- color: theme.palette.text.black,
153
+ color: theme.palette.text.primary,
154
154
  }, value: fee_in_usd, unit: " $" })] })] }));
155
155
  };
156
156
  var getStyled = function (style, theme) {
@@ -192,8 +192,8 @@ var getStyled = function (style, theme) {
192
192
  "&.MuiAccordion-root": {
193
193
  backgroundColor: theme.palette.background.tertiary,
194
194
  margin: 0,
195
- padding: theme.mixins.customPadding.p16,
196
- borderRadius: theme.mixins.customRadius.r16,
195
+ padding: theme.styleMixins.customPadding.p16,
196
+ borderRadius: theme.styleMixins.customRadius.r16,
197
197
  border: "none",
198
198
  boxShadow: "none",
199
199
  },
@@ -29,7 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.FeesStyle = void 0;
30
30
  var jsx_runtime_1 = require("react/jsx-runtime");
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 Icon_1 = __importDefault(require("../Icon"));
34
34
  var Text_1 = __importDefault(require("../Text"));
35
35
  var Formatter_1 = __importDefault(require("../Formatter"));
@@ -44,7 +44,7 @@ var FeesStyle;
44
44
  })(FeesStyle || (exports.FeesStyle = FeesStyle = {}));
45
45
  function Fees(props) {
46
46
  var sx = props.sx, amount = props.amount, feesData = props.feesData, isFeePaidByAmount = props.isFeePaidByAmount, tokenSlug = props.tokenSlug, setIsEnoughBalanceToPayFee = props.setIsEnoughBalanceToPayFee, feesStyle = props.feesStyle, estimateReceive = props.estimateReceive, rest = __rest(props, ["sx", "amount", "feesData", "isFeePaidByAmount", "tokenSlug", "setIsEnoughBalanceToPayFee", "feesStyle", "estimateReceive"]);
47
- var theme = (0, ThemeProvider_1.useTheme)();
47
+ var theme = (0, mui_1.useTheme)();
48
48
  // const feesData = parsePropsData<FeesDataType>(feesDataString);
49
49
  var tokens = (0, useWalletData_1.default)().tokens;
50
50
  var getBalanceUseToPaidFee = (0, react_1.useCallback)(function (tokenSlugMustBePaidFee) {
@@ -94,63 +94,62 @@ function Fees(props) {
94
94
  var totalFeeInCurrency = (0, react_1.useMemo)(function () {
95
95
  return feesData === null || feesData === void 0 ? void 0 : feesData.fee_in_currency;
96
96
  }, [feesData]);
97
- return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: !!isChargeFee && ((0, jsx_runtime_1.jsxs)(material_1.Accordion, __assign({ defaultExpanded: true }, rest, { disableGutters: true, sx: __assign(__assign({}, getStyled(feesStyle !== null && feesStyle !== void 0 ? feesStyle : FeesStyle.DEFAULT, theme)), sx), children: [(0, jsx_runtime_1.jsx)(material_1.AccordionSummary, { expandIcon: (0, jsx_runtime_1.jsx)(Icon_1.default, { src: (0, getIcon_1.default)("arrow_down"), width: 8, height: 8 }), children: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { width: "100%" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
97
+ return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: !!isChargeFee && ((0, jsx_runtime_1.jsxs)(material_1.Accordion, __assign({ defaultExpanded: true }, rest, { disableGutters: true, sx: __assign(__assign({}, getStyled(feesStyle !== null && feesStyle !== void 0 ? feesStyle : FeesStyle.DEFAULT, theme)), sx), children: [(0, jsx_runtime_1.jsx)(material_1.AccordionSummary, { expandIcon: (0, jsx_runtime_1.jsx)(Icon_1.default, { src: (0, getIcon_1.default)("arrow_down"), width: 8, height: 8 }), children: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.row), { width: "100%" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
98
98
  fontSize: theme.typography.fontSize11,
99
99
  fontWeight: theme.typography.fontWeight500,
100
- color: theme.palette.text.black,
100
+ color: theme.palette.text.primary,
101
101
  }, children: "Total fees" }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
102
102
  borderTop: "1px dashed",
103
- borderColor: theme.palette.border.accent,
103
+ borderColor: theme.palette.divider,
104
104
  flex: 1,
105
105
  height: "1px",
106
106
  width: "100%",
107
- ml: theme.mixins.gaps.g8,
108
- mr: theme.mixins.gaps.g8,
107
+ ml: theme.styleMixins.gaps.g8,
108
+ mr: theme.styleMixins.gaps.g8,
109
109
  } }), (0, jsx_runtime_1.jsx)(Formatter_1.default, { sx: {
110
110
  fontSize: theme.typography.fontSize13,
111
111
  fontWeight: theme.typography.fontWeight500,
112
- color: theme.palette.text.black,
113
- }, value: totalFeeInCurrency, unit: " ".concat(tokenSlug.toUpperCase()), disableTooltip: true }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { width: "0.5rem" }) })] }) }), (0, jsx_runtime_1.jsx)(material_1.AccordionDetails, { children: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { gap: theme.mixins.gaps.g8, pt: theme.mixins.gaps.g12 }), children: [(0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { alignItems: "stretch" }), children: (0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { flex: 1, gap: theme.mixins.gaps.g8 }), children: feeCheckedBalance === null || feeCheckedBalance === void 0 ? void 0 : feeCheckedBalance.map(function (item, index) {
112
+ color: theme.palette.text.primary,
113
+ }, value: totalFeeInCurrency, unit: " ".concat(tokenSlug.toUpperCase()), disableTooltip: true }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.row), { width: "0.5rem" }) })] }) }), (0, jsx_runtime_1.jsx)(material_1.AccordionDetails, { children: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.column), { gap: theme.styleMixins.gaps.g8, pt: theme.styleMixins.gaps.g12 }), children: [(0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.row), { alignItems: "stretch" }), children: (0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.column), { flex: 1, gap: theme.styleMixins.gaps.g8 }), children: feeCheckedBalance === null || feeCheckedBalance === void 0 ? void 0 : feeCheckedBalance.map(function (item, index) {
114
114
  var _a, _b, _c, _d;
115
115
  return ((0, jsx_runtime_1.jsxs)(react_1.Fragment, { children: [index !== 0 && ((0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
116
- borderRight: "1px dashed ".concat(theme.palette.border.accent),
116
+ borderRight: "1px dashed ".concat(theme.palette.divider),
117
117
  width: "1px",
118
118
  height: "1rem",
119
- pr: theme.mixins.gaps.g6,
119
+ pr: theme.styleMixins.gaps.g6,
120
120
  } })), (0, jsx_runtime_1.jsx)(FeeDetails, { feeName: (_a = item.fee_type) === null || _a === void 0 ? void 0 : _a.name, fee_in_currency: item.fee_in_currency, fee_in_usd: item.fee_in_usd, currencyName: (_b = item.currency) === null || _b === void 0 ? void 0 : _b.name }, (_c = item.fee_type) === null || _c === void 0 ? void 0 : _c.name)] }, (_d = item.fee_type) === null || _d === void 0 ? void 0 : _d.name));
121
- }) }) }), isNotEnoughBalanceToPayFee && ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.validationError), children: "ⓘ Insufficient transaction fee!" })), (0, jsx_runtime_1.jsx)(material_1.Divider, { sx: {
122
- borderColor: theme.palette.border.black16,
123
- my: theme.mixins.gaps.g4,
124
- } }), estimateReceive !== undefined && ((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, { sx: {
121
+ }) }) }), isNotEnoughBalanceToPayFee && ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.styleMixins.validationError), children: "ⓘ Insufficient transaction fee!" })), (0, jsx_runtime_1.jsx)(material_1.Divider, { sx: {
122
+ my: theme.styleMixins.gaps.g4,
123
+ } }), estimateReceive !== undefined && ((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, { sx: {
125
124
  fontSize: theme.typography.fontSize11,
126
125
  fontWeight: theme.typography.fontWeight500,
127
126
  lineHeight: theme.typography.leading160,
128
127
  }, children: "Receive amount estimated" }), (0, jsx_runtime_1.jsx)(Formatter_1.default, { sx: {
129
128
  fontSize: theme.typography.fontSize16,
130
129
  fontWeight: theme.typography.fontWeight700,
131
- color: theme.palette.text.black,
130
+ color: theme.palette.text.primary,
132
131
  }, unit: " ".concat(tokenSlug.toUpperCase()), value: estimateReceive })] }))] }) })] }))) }));
133
132
  }
134
133
  exports.default = Fees;
135
134
  var FeeDetails = function (_a) {
136
135
  var feeName = _a.feeName, fee_in_currency = _a.fee_in_currency, fee_in_usd = _a.fee_in_usd, currencyName = _a.currencyName;
137
- var theme = (0, ThemeProvider_1.useTheme)();
138
- return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g4, alignItems: "center", justifyContent: "space-between" }), children: [(0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { width: 14, height: 14 }, children: SvgPath_1.IC_TIMELINE_DOT }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
136
+ var theme = (0, mui_1.useTheme)();
137
+ return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.row), { gap: theme.styleMixins.gaps.g4, alignItems: "center", justifyContent: "space-between" }), children: [(0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { width: 14, height: 14 }, children: SvgPath_1.IC_TIMELINE_DOT }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
139
138
  fontSize: theme.typography.fontSize11,
140
139
  fontWeight: theme.typography.fontWeight500,
141
140
  lineHeight: theme.typography.leading160,
142
- color: theme.palette.text.accent,
143
- pl: theme.mixins.gaps.g12,
141
+ color: theme.palette.text.secondary,
142
+ pl: theme.styleMixins.gaps.g12,
144
143
  whiteSpace: "nowrap",
145
144
  flex: 1,
146
- }, children: feeName }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { width: "fit-content", alignItems: "flex-end" }), children: [(0, jsx_runtime_1.jsx)(Formatter_1.default, { sx: {
145
+ }, children: feeName }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.column), { width: "fit-content", alignItems: "flex-end" }), children: [(0, jsx_runtime_1.jsx)(Formatter_1.default, { sx: {
147
146
  fontSize: theme.typography.fontSize13,
148
147
  fontWeight: theme.typography.fontWeight500,
149
- color: theme.palette.text.black,
148
+ color: theme.palette.text.primary,
150
149
  }, value: fee_in_currency, unit: " ".concat(currencyName), disableTooltip: true }), (0, jsx_runtime_1.jsx)(Formatter_1.default, { sx: {
151
150
  fontSize: theme.typography.fontSize11,
152
151
  fontWeight: theme.typography.fontWeight500,
153
- color: theme.palette.text.black,
152
+ color: theme.palette.text.primary,
154
153
  }, value: fee_in_usd, unit: " $" })] })] }));
155
154
  };
156
155
  var getStyled = function (style, theme) {
@@ -192,8 +191,8 @@ var getStyled = function (style, theme) {
192
191
  "&.MuiAccordion-root": {
193
192
  backgroundColor: theme.palette.background.tertiary,
194
193
  margin: 0,
195
- padding: theme.mixins.customPadding.p16,
196
- borderRadius: theme.mixins.customRadius.r16,
194
+ padding: theme.styleMixins.customPadding.p16,
195
+ borderRadius: theme.styleMixins.customRadius.r16,
197
196
  border: "none",
198
197
  boxShadow: "none",
199
198
  },
@@ -58,15 +58,13 @@ var react_1 = require("react");
58
58
  var html_to_image_1 = require("html-to-image");
59
59
  var Text_1 = __importDefault(require("../../Text"));
60
60
  var style_1 = require("../style");
61
- var palette_1 = require("../../../../theme/mui/deposit-fiat-theme/palette");
62
61
  var SuccessAnimation = function () { return ((0, jsx_runtime_1.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: (0, jsx_runtime_1.jsx)("path", { d: "M4.5 12.75L10.5 18.75L19.5 5.25", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) })); };
63
62
  exports.SuccessAnimation = SuccessAnimation;
64
63
  exports.default = (0, react_1.memo)(function ShareAction(_a) {
65
64
  var _this = this;
66
- var _b, _c;
67
65
  var data = _a.data, shareRef = _a.shareRef;
68
- var _d = (0, react_1.useState)(false), isDownloading = _d[0], setIsDownloading = _d[1];
69
- var _e = (0, react_1.useState)(false), copySuccess = _e[0], setCopySuccess = _e[1];
66
+ var _b = (0, react_1.useState)(false), isDownloading = _b[0], setIsDownloading = _b[1];
67
+ var _c = (0, react_1.useState)(false), copySuccess = _c[0], setCopySuccess = _c[1];
70
68
  var convertHtml2Img = function () { return __awaiter(_this, void 0, void 0, function () {
71
69
  var _a, _b;
72
70
  var _c;
@@ -157,7 +155,7 @@ exports.default = (0, react_1.memo)(function ShareAction(_a) {
157
155
  color: "#fff",
158
156
  aspectRatio: "1 / 1",
159
157
  background: "#044C2F",
160
- }, children: (0, jsx_runtime_1.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "21", height: "20", viewBox: "0 0 21 20", fill: "none", children: (0, jsx_runtime_1.jsx)("path", { d: "M3.375 13.75V15.625C3.375 16.1223 3.57254 16.5992 3.92417 16.9508C4.27581 17.3025 4.75272 17.5 5.25 17.5H16.5C16.9973 17.5 17.4742 17.3025 17.8258 16.9508C18.1775 16.5992 18.375 16.1223 18.375 15.625V13.75M14.625 10L10.875 13.75M10.875 13.75L7.125 10M10.875 13.75V2.5", stroke: "white", strokeWidth: "1.25", strokeLinecap: "round", strokeLinejoin: "round" }) }) }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, style_1.content02), color: (_b = palette_1.palette.positive) === null || _b === void 0 ? void 0 : _b.main, children: "Save photo" })] }), (0, jsx_runtime_1.jsxs)(material_1.Grid2, { display: "flex", flexDirection: "column", gap: "0.375rem", alignItems: "center", children: [(0, jsx_runtime_1.jsx)(material_1.Button, { color: "primary", onClick: handleCopyLink, sx: {
158
+ }, children: (0, jsx_runtime_1.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "21", height: "20", viewBox: "0 0 21 20", fill: "none", children: (0, jsx_runtime_1.jsx)("path", { d: "M3.375 13.75V15.625C3.375 16.1223 3.57254 16.5992 3.92417 16.9508C4.27581 17.3025 4.75272 17.5 5.25 17.5H16.5C16.9973 17.5 17.4742 17.3025 17.8258 16.9508C18.1775 16.5992 18.375 16.1223 18.375 15.625V13.75M14.625 10L10.875 13.75M10.875 13.75L7.125 10M10.875 13.75V2.5", stroke: "white", strokeWidth: "1.25", strokeLinecap: "round", strokeLinejoin: "round" }) }) }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, style_1.content02), color: "text.primary", children: "Save photo" })] }), (0, jsx_runtime_1.jsxs)(material_1.Grid2, { display: "flex", flexDirection: "column", gap: "0.375rem", alignItems: "center", children: [(0, jsx_runtime_1.jsx)(material_1.Button, { color: "primary", onClick: handleCopyLink, sx: {
161
159
  borderRadius: "0.75rem",
162
160
  justifyContent: "center",
163
161
  alignItems: "center",
@@ -167,5 +165,5 @@ exports.default = (0, react_1.memo)(function ShareAction(_a) {
167
165
  color: "#fff",
168
166
  aspectRatio: "1 / 1",
169
167
  background: "#044C2F",
170
- }, children: copySuccess ? ((0, jsx_runtime_1.jsx)(exports.SuccessAnimation, {})) : ((0, jsx_runtime_1.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "21", height: "20", viewBox: "0 0 21 20", fill: "none", children: (0, jsx_runtime_1.jsx)("path", { d: "M11.6167 7.24002C12.1582 7.49857 12.6298 7.8833 12.9918 8.36189C13.3538 8.84048 13.5956 9.39895 13.697 9.9904C13.7985 10.5818 13.7564 11.189 13.5745 11.7608C13.3926 12.3327 13.0762 12.8525 12.6517 13.2767L8.90169 17.0267C8.19842 17.73 7.24459 18.125 6.25002 18.125C5.25546 18.125 4.30162 17.73 3.59836 17.0267C2.89509 16.3234 2.5 15.3696 2.5 14.375C2.5 13.3805 2.89509 12.4266 3.59836 11.7234L5.06252 10.2592M16.1875 9.74086L17.6517 8.27669C18.355 7.57342 18.75 6.61959 18.75 5.62502C18.75 4.63046 18.355 3.67662 17.6517 2.97336C16.9484 2.27009 15.9946 1.875 15 1.875C14.0055 1.875 13.0516 2.27009 12.3484 2.97336L8.59836 6.72336C8.17389 7.14752 7.85741 7.66736 7.67551 8.23921C7.49361 8.81105 7.45159 9.4182 7.553 10.0096C7.6544 10.6011 7.89626 11.1596 8.25827 11.6382C8.62027 12.1167 9.09183 12.5015 9.63336 12.76", stroke: "white", strokeWidth: "1.25", strokeLinecap: "round", strokeLinejoin: "round" }) })) }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, style_1.content02), color: (_c = palette_1.palette.positive) === null || _c === void 0 ? void 0 : _c.main, children: copySuccess ? "Copied!" : "Copy link" })] })] }));
168
+ }, children: copySuccess ? ((0, jsx_runtime_1.jsx)(exports.SuccessAnimation, {})) : ((0, jsx_runtime_1.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "21", height: "20", viewBox: "0 0 21 20", fill: "none", children: (0, jsx_runtime_1.jsx)("path", { d: "M11.6167 7.24002C12.1582 7.49857 12.6298 7.8833 12.9918 8.36189C13.3538 8.84048 13.5956 9.39895 13.697 9.9904C13.7985 10.5818 13.7564 11.189 13.5745 11.7608C13.3926 12.3327 13.0762 12.8525 12.6517 13.2767L8.90169 17.0267C8.19842 17.73 7.24459 18.125 6.25002 18.125C5.25546 18.125 4.30162 17.73 3.59836 17.0267C2.89509 16.3234 2.5 15.3696 2.5 14.375C2.5 13.3805 2.89509 12.4266 3.59836 11.7234L5.06252 10.2592M16.1875 9.74086L17.6517 8.27669C18.355 7.57342 18.75 6.61959 18.75 5.62502C18.75 4.63046 18.355 3.67662 17.6517 2.97336C16.9484 2.27009 15.9946 1.875 15 1.875C14.0055 1.875 13.0516 2.27009 12.3484 2.97336L8.59836 6.72336C8.17389 7.14752 7.85741 7.66736 7.67551 8.23921C7.49361 8.81105 7.45159 9.4182 7.553 10.0096C7.6544 10.6011 7.89626 11.1596 8.25827 11.6382C8.62027 12.1167 9.09183 12.5015 9.63336 12.76", stroke: "white", strokeWidth: "1.25", strokeLinecap: "round", strokeLinejoin: "round" }) })) }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, style_1.content02), color: "text.primary", children: copySuccess ? "Copied!" : "Copy link" })] })] }));
171
169
  });
@@ -19,18 +19,15 @@ var jsx_runtime_1 = require("react/jsx-runtime");
19
19
  var material_1 = require("@mui/material");
20
20
  var shareImage_1 = __importDefault(require("./shareImage"));
21
21
  var shareAction_1 = __importDefault(require("./shareAction"));
22
- var theme_1 = __importDefault(require("../../../../theme/mui/deposit-fiat-theme/theme"));
23
22
  var react_1 = require("react");
24
23
  var Text_1 = __importDefault(require("../../Text"));
25
24
  var style_1 = require("../style");
26
- var palette_1 = require("../../../../theme/mui/deposit-fiat-theme/palette");
27
25
  function ShareDrawer(_a) {
28
- var _b, _c;
29
26
  var depositData = _a.depositData, count = _a.count, handleRefresh = _a.handleRefresh, onClose = _a.onClose;
30
27
  var shareRef = (0, react_1.useRef)(null);
31
28
  return ((0, jsx_runtime_1.jsxs)(material_1.Stack, { p: "1rem", sx: {
32
- background: theme_1.default.palette.tertiary.main,
29
+ background: "background.tertiary",
33
30
  maxHeight: "70%",
34
31
  overflowY: "auto",
35
- }, pb: "2.5rem", gap: "0.75rem", alignItems: "center", children: [(0, jsx_runtime_1.jsxs)(material_1.Stack, { width: "100%", flexDirection: "row", alignItems: "center", justifyContent: "space-between", children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, style_1.title01), color: (_b = palette_1.palette.positive) === null || _b === void 0 ? void 0 : _b.main, children: "Share" }), (0, jsx_runtime_1.jsx)("svg", { onClick: onClose, xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", children: (0, jsx_runtime_1.jsx)("path", { d: "M1 13L13 1M1 1L13 13", stroke: "#121212", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) })] }), (0, jsx_runtime_1.jsx)(material_1.Divider, { flexItem: true }), (0, jsx_runtime_1.jsx)(shareImage_1.default, { ref: shareRef, data: depositData, count: count, handleRefresh: handleRefresh }), (0, jsx_runtime_1.jsx)(material_1.Divider, { flexItem: true }), (0, jsx_runtime_1.jsxs)(material_1.Stack, { gap: "0.75rem", width: "100%", children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, style_1.title01), color: (_c = palette_1.palette.positive) === null || _c === void 0 ? void 0 : _c.main, children: "Share To" }), (0, jsx_runtime_1.jsx)(shareAction_1.default, { data: depositData, shareRef: shareRef })] })] }));
32
+ }, pb: "2.5rem", gap: "0.75rem", alignItems: "center", children: [(0, jsx_runtime_1.jsxs)(material_1.Stack, { width: "100%", flexDirection: "row", alignItems: "center", justifyContent: "space-between", children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, style_1.title01), color: "text.primary", children: "Share" }), (0, jsx_runtime_1.jsx)("svg", { onClick: onClose, xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", children: (0, jsx_runtime_1.jsx)("path", { d: "M1 13L13 1M1 1L13 13", stroke: "#121212", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) })] }), (0, jsx_runtime_1.jsx)(material_1.Divider, { flexItem: true }), (0, jsx_runtime_1.jsx)(shareImage_1.default, { ref: shareRef, data: depositData, count: count, handleRefresh: handleRefresh }), (0, jsx_runtime_1.jsx)(material_1.Divider, { flexItem: true }), (0, jsx_runtime_1.jsxs)(material_1.Stack, { gap: "0.75rem", width: "100%", children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, style_1.title01), color: "text.primary", children: "Share To" }), (0, jsx_runtime_1.jsx)(shareAction_1.default, { data: depositData, shareRef: shareRef })] })] }));
36
33
  }
@@ -7,14 +7,13 @@ exports.default = ShareImage;
7
7
  var jsx_runtime_1 = require("react/jsx-runtime");
8
8
  var material_1 = require("@mui/material");
9
9
  var formatter_1 = __importDefault(require("../../Formatter/functions/formatter"));
10
- var theme_1 = __importDefault(require("../../../../theme/mui/deposit-fiat-theme/theme"));
11
10
  var Icon_1 = __importDefault(require("../../Icon"));
12
11
  var Text_1 = __importDefault(require("../../Text"));
13
12
  function ShareImage(_a) {
14
13
  var _b, _c;
15
14
  var data = _a.data, count = _a.count, handleRefresh = _a.handleRefresh, ref = _a.ref;
16
15
  return ((0, jsx_runtime_1.jsx)(material_1.Box, { width: "55%", p: "0.75rem", ref: ref, children: (0, jsx_runtime_1.jsxs)(material_1.Stack, { position: "relative", py: "1.5rem", sx: {
17
- background: theme_1.default.palette.negative.main,
16
+ background: "background.default",
18
17
  borderRadius: "0.563rem",
19
18
  gap: "2rem",
20
19
  alignItems: "center",