tek-wallet 0.0.805 → 0.0.807

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (196) hide show
  1. package/dist/components/TekWallet/components/index.d.ts +2 -1
  2. package/dist/components/TekWallet/components/index.js +2 -1
  3. package/dist/components/TekWallet/components/layouts/ChildPageLayout/index.js +3 -3
  4. package/dist/components/TekWallet/components/layouts/DefaultPageLayout/index.js +3 -3
  5. package/dist/components/TekWallet/components/ui/ActivitiesTypeSlice/index.js +12 -8
  6. package/dist/components/TekWallet/components/ui/ActivityDetail/index.js +17 -19
  7. package/dist/components/TekWallet/components/ui/ActivityItem/index.js +13 -13
  8. package/dist/components/TekWallet/components/ui/AmountGroupAndChart/index.js +3 -3
  9. package/dist/components/TekWallet/components/ui/AnalyticGroup/index.js +20 -20
  10. package/dist/components/TekWallet/components/ui/AnalyticGroupCenter/index.js +9 -8
  11. package/dist/components/TekWallet/components/ui/AppBackDrop/index.js +3 -3
  12. package/dist/components/TekWallet/components/ui/AppDialog/index.js +3 -3
  13. package/dist/components/TekWallet/components/ui/AssetViewHeader/index.js +9 -8
  14. package/dist/components/TekWallet/components/ui/BackHeader/index.js +6 -6
  15. package/dist/components/TekWallet/components/ui/BottomActionLayout/index.js +3 -3
  16. package/dist/components/TekWallet/components/ui/Button/index.js +4 -4
  17. package/dist/components/TekWallet/components/ui/CardToken/index.js +8 -8
  18. package/dist/components/TekWallet/components/ui/Column/index.js +3 -3
  19. package/dist/components/TekWallet/components/ui/ConfirmByPasscode/index.js +6 -4
  20. package/dist/components/TekWallet/components/ui/ConfirmLayout/index.js +3 -3
  21. package/dist/components/TekWallet/components/ui/ConfirmSwapToken/Result.js +17 -17
  22. package/dist/components/TekWallet/components/ui/ConfirmTransfer/index.js +3 -3
  23. package/dist/components/TekWallet/components/ui/CopyTextComponent/index.js +6 -6
  24. package/dist/components/TekWallet/components/ui/CustomTooltip/index.js +4 -2
  25. package/dist/components/TekWallet/components/ui/DetailSwap/index.js +9 -9
  26. package/dist/components/TekWallet/components/ui/DialogContentLayout/index.js +6 -6
  27. package/dist/components/TekWallet/components/ui/DrawerDrag/index.js +3 -3
  28. package/dist/components/TekWallet/components/ui/EmptyData/index.js +3 -3
  29. package/dist/components/TekWallet/components/ui/Fees/index.js +25 -25
  30. package/dist/components/TekWallet/components/ui/FeesAutoDebounce/index.js +24 -25
  31. package/dist/components/TekWallet/components/ui/FiatDeposit/components/shareAction.js +4 -6
  32. package/dist/components/TekWallet/components/ui/FiatDeposit/components/shareDrawer.js +2 -5
  33. package/dist/components/TekWallet/components/ui/FiatDeposit/components/shareImage.js +1 -2
  34. package/dist/components/TekWallet/components/ui/FiatDeposit/index.js +28 -26
  35. package/dist/components/TekWallet/components/ui/Formatter/index.js +3 -0
  36. package/dist/components/TekWallet/components/ui/FunctionItem/index.js +4 -5
  37. package/dist/components/TekWallet/components/ui/Icon/index.js +1 -1
  38. package/dist/components/TekWallet/components/ui/IconText/index.js +3 -3
  39. package/dist/components/TekWallet/components/ui/IncomeWallet/components/AnalyticGroup.js +19 -20
  40. package/dist/components/TekWallet/components/ui/IncomeWallet/components/BalanceChart.js +5 -5
  41. package/dist/components/TekWallet/components/ui/IncomeWallet/components/FunctionItem.js +3 -3
  42. package/dist/components/TekWallet/components/ui/IncomeWallet/components/HistoryItem.js +3 -3
  43. package/dist/components/TekWallet/components/ui/IncomeWallet/components/WealthDeposit.js +3 -1
  44. package/dist/components/TekWallet/components/ui/IncomeWallet/components/WealthWithdraw.js +3 -1
  45. package/dist/components/TekWallet/components/ui/IncomeWallet/components/history/index.js +3 -3
  46. package/dist/components/TekWallet/components/ui/IncomeWallet/index.js +10 -10
  47. package/dist/components/TekWallet/components/ui/InlineTitleValue/index.js +3 -3
  48. package/dist/components/TekWallet/components/ui/Input/index.js +5 -5
  49. package/dist/components/TekWallet/components/ui/LineValue/index.js +3 -3
  50. package/dist/components/TekWallet/components/ui/ListItemCustom/index.js +8 -6
  51. package/dist/components/TekWallet/components/ui/LoadingLayout/index.js +3 -3
  52. package/dist/components/TekWallet/components/ui/LockToken/index.js +4 -4
  53. package/dist/components/TekWallet/components/ui/ModalCheckboxToken/index.js +22 -22
  54. package/dist/components/TekWallet/components/ui/ModalDateFilter/index.js +11 -11
  55. package/dist/components/TekWallet/components/ui/ModalLayout/index.js +3 -3
  56. package/dist/components/TekWallet/components/ui/ModalSelectToken/index.js +12 -12
  57. package/dist/components/TekWallet/components/ui/ModalStatusFilter/index.js +16 -16
  58. package/dist/components/TekWallet/components/ui/ModalTitle/index.js +3 -3
  59. package/dist/components/TekWallet/components/ui/NeonLineChart/index.js +4 -4
  60. package/dist/components/TekWallet/components/ui/NetworkSelection/index.js +5 -5
  61. package/dist/components/TekWallet/components/ui/OTP/index.js +24 -18
  62. package/dist/components/TekWallet/components/ui/PageHeader/index.js +3 -3
  63. package/dist/components/TekWallet/components/ui/QRCode/index.js +3 -1
  64. package/dist/components/TekWallet/components/ui/QrCodeReader/index.js +2 -3
  65. package/dist/components/TekWallet/components/ui/ReceiveDirectly/index.d.ts +26 -0
  66. package/dist/components/TekWallet/components/ui/ReceiveDirectly/index.js +365 -0
  67. package/dist/components/TekWallet/components/ui/ReceiveFunction/components/HelpView.js +4 -4
  68. package/dist/components/TekWallet/components/ui/ReceiveFunction/components/SortGroup.js +4 -4
  69. package/dist/components/TekWallet/components/ui/ReceiveFunction/components/SortTool.js +7 -12
  70. package/dist/components/TekWallet/components/ui/ReceiveFunction/index.js +39 -56
  71. package/dist/components/TekWallet/components/ui/ReceiveHistory/ReceiveCardHistory.js +13 -13
  72. package/dist/components/TekWallet/components/ui/ReceiveHistory/ReceiveHistoryDetails.js +22 -29
  73. package/dist/components/TekWallet/components/ui/ReceiveHistory/index.js +19 -19
  74. package/dist/components/TekWallet/components/ui/Row/index.js +3 -3
  75. package/dist/components/TekWallet/components/ui/ScanQRToSend/index.js +7 -7
  76. package/dist/components/TekWallet/components/ui/SearchBar.d.ts +10 -0
  77. package/dist/components/TekWallet/components/ui/SearchBar.js +42 -0
  78. package/dist/components/TekWallet/components/ui/SendExternalToken/index.js +7 -7
  79. package/dist/components/TekWallet/components/ui/SendInternalToken/index.js +5 -5
  80. package/dist/components/TekWallet/components/ui/SmartList/index.js +3 -3
  81. package/dist/components/TekWallet/components/ui/StatusDisplay/index.js +7 -7
  82. package/dist/components/TekWallet/components/ui/SvgPath/index.js +27 -27
  83. package/dist/components/TekWallet/components/ui/SwiperControlled/index.js +1 -3
  84. package/dist/components/TekWallet/components/ui/TimeFilter/index.js +9 -8
  85. package/dist/components/TekWallet/components/ui/TimeText/index.js +1 -1
  86. package/dist/components/TekWallet/components/ui/TokenItem/index.js +7 -15
  87. package/dist/components/TekWallet/components/ui/TokenSelection/index.js +5 -5
  88. package/dist/components/TekWallet/components/ui/TokensBoard/index.js +12 -12
  89. package/dist/components/TekWallet/components/ui/TransferConfirmation/index.js +3 -3
  90. package/dist/components/TekWallet/components/ui/TransferInternal/index.js +3 -3
  91. package/dist/components/TekWallet/components/ui/UpdateLockToken/index.js +4 -4
  92. package/dist/components/TekWallet/components/ui/UserInfo/index.js +4 -4
  93. package/dist/components/TekWallet/components/ui/WaitingData/index.js +13 -12
  94. package/dist/components/TekWallet/components/ui/WithdrawFunction/components/selectToken.js +11 -11
  95. package/dist/components/TekWallet/components/ui/WithdrawFunction/components/sendForm.js +30 -30
  96. package/dist/components/TekWallet/components/ui/WithdrawFunction/components/sortByBalance.js +3 -3
  97. package/dist/components/TekWallet/components/ui/WithdrawFunction/components/sortByToken.js +3 -3
  98. package/dist/components/TekWallet/components/ui/WithdrawFunction/components/summary/infoSummary.js +8 -8
  99. package/dist/components/TekWallet/components/ui/WithdrawFunction/index.js +9 -9
  100. package/dist/components/TekWallet/components/views/ActivityView/index.js +4 -4
  101. package/dist/components/TekWallet/components/views/AssetView/Menu.js +3 -3
  102. package/dist/components/TekWallet/components/views/AssetView/index.js +12 -12
  103. package/dist/components/TekWallet/components/views/AuthView/index.js +4 -4
  104. package/dist/components/TekWallet/components/views/AuthViewSignIn/index.js +4 -4
  105. package/dist/components/TekWallet/components/views/ChangePasscodeView/index.js +8 -6
  106. package/dist/components/TekWallet/components/views/CreateWalletView/index.js +4 -4
  107. package/dist/components/TekWallet/components/views/DetailActivityView/LoadingView.js +4 -4
  108. package/dist/components/TekWallet/components/views/GetSeedPhraseWalletView/index.js +7 -7
  109. package/dist/components/TekWallet/components/views/ImportWalletView/index.js +4 -7
  110. package/dist/components/TekWallet/components/views/SendExternalView/components/Form.js +32 -37
  111. package/dist/components/TekWallet/components/views/SendExternalView/components/Result.js +16 -16
  112. package/dist/components/TekWallet/components/views/SendExternalView/components/SelectNetwork.js +3 -3
  113. package/dist/components/TekWallet/components/views/SendExternalView/components/SelectToken.js +7 -32
  114. package/dist/components/TekWallet/components/views/SendExternalView/components/Summary.js +12 -12
  115. package/dist/components/TekWallet/components/views/SendExternalView/index.js +3 -3
  116. package/dist/components/TekWallet/components/views/SendInternalView/components/AmountForm.js +26 -24
  117. package/dist/components/TekWallet/components/views/SendInternalView/components/Form.js +27 -33
  118. package/dist/components/TekWallet/components/views/SendInternalView/components/Result.js +14 -14
  119. package/dist/components/TekWallet/components/views/SendInternalView/components/SelectToken.js +7 -32
  120. package/dist/components/TekWallet/components/views/SendInternalView/components/Summary.js +10 -10
  121. package/dist/components/TekWallet/components/views/SendInternalView/index.js +3 -3
  122. package/dist/components/TekWallet/components/views/SettingView/index.js +4 -13
  123. package/dist/components/TekWallet/components/views/SwapView/components/FromCard/FromCardSkeleton.js +7 -8
  124. package/dist/components/TekWallet/components/views/SwapView/components/FromCard/index.js +20 -25
  125. package/dist/components/TekWallet/components/views/SwapView/components/SelectToken.js +7 -32
  126. package/dist/components/TekWallet/components/views/SwapView/components/Summary.js +36 -39
  127. package/dist/components/TekWallet/components/views/SwapView/components/ToCard/index.js +7 -7
  128. package/dist/components/TekWallet/components/views/SwapView/index.js +12 -10
  129. package/dist/components/TekWallet/hooks/useEventHandler.d.ts +1 -0
  130. package/dist/components/TekWallet/hooks/useEventHandler.js +9 -7
  131. package/dist/components/TekWallet/hooks/useRefetchOnWindowFocused.d.ts +7 -0
  132. package/dist/components/TekWallet/hooks/useRefetchOnWindowFocused.js +144 -0
  133. package/dist/components/TekWallet/hooks/useValidateAmount.js +3 -3
  134. package/dist/components/TekWallet/hooks/useWarningWrongPasscode.js +5 -5
  135. package/dist/components/TekWallet/index.d.ts +2 -0
  136. package/dist/components/TekWallet/index.js +2 -12
  137. package/dist/components/TekWallet/layouts/ChildPageLayout/index.js +3 -3
  138. package/dist/components/TekWallet/providers/ActivitiesProvider/index.js +28 -0
  139. package/dist/components/TekWallet/providers/ActivitiesProvider/type.d.ts +1 -0
  140. package/dist/components/TekWallet/providers/EventHandlerProvider/index.js +11 -1
  141. package/dist/components/TekWallet/providers/RealtimeProvider/index.js +15 -13
  142. package/dist/components/TekWallet/providers/TekWalletProvider/index.d.ts +9 -1
  143. package/dist/components/TekWallet/providers/TekWalletProvider/index.js +11 -4
  144. package/dist/components/TekWallet/providers/index.d.ts +0 -1
  145. package/dist/components/TekWallet/providers/index.js +0 -1
  146. package/dist/components/TekWallet/theme/mui/components/index.d.ts +133 -0
  147. package/dist/components/TekWallet/theme/mui/components/index.js +14 -0
  148. package/dist/components/TekWallet/theme/mui/components/overrides/Button.d.ts +142 -0
  149. package/dist/components/TekWallet/theme/mui/components/overrides/Button.js +84 -0
  150. package/dist/components/TekWallet/theme/mui/components/overrides/Drawer.d.ts +4 -0
  151. package/dist/components/TekWallet/theme/mui/components/overrides/Drawer.js +9 -0
  152. package/dist/components/TekWallet/theme/mui/components/overrides/Paper.d.ts +3 -0
  153. package/dist/components/TekWallet/theme/mui/components/overrides/Paper.js +15 -0
  154. package/dist/components/TekWallet/theme/mui/components/overrides/SnackBar.d.ts +3 -0
  155. package/dist/components/TekWallet/theme/mui/components/overrides/SnackBar.js +32 -0
  156. package/dist/components/TekWallet/theme/mui/fixed-mixins.d.ts +2 -0
  157. package/dist/components/TekWallet/theme/mui/fixed-mixins.js +218 -0
  158. package/dist/components/TekWallet/theme/mui/index.d.ts +3 -3
  159. package/dist/components/TekWallet/theme/mui/index.js +16 -32
  160. package/dist/components/TekWallet/theme/mui/palette.d.ts +34 -0
  161. package/dist/components/TekWallet/theme/mui/palette.js +133 -0
  162. package/dist/components/TekWallet/theme/mui/shadows/index.d.ts +3 -0
  163. package/dist/components/TekWallet/theme/mui/shadows/index.js +64 -0
  164. package/dist/components/TekWallet/theme/mui/spacing.d.ts +1 -0
  165. package/dist/components/TekWallet/theme/mui/spacing.js +5 -0
  166. package/dist/components/TekWallet/theme/mui/theme.d.ts +9 -442
  167. package/dist/components/TekWallet/theme/mui/theme.js +38 -415
  168. package/dist/components/TekWallet/theme/mui/type.d.ts +5 -0
  169. package/dist/components/TekWallet/theme/mui/type.js +9 -0
  170. package/dist/components/TekWallet/theme/mui/typography.d.ts +27 -0
  171. package/dist/components/TekWallet/theme/mui/typography.js +30 -0
  172. package/dist/components/TekWallet/theme/mui/utils/deepMergeTheme.d.ts +2 -0
  173. package/dist/components/TekWallet/theme/mui/utils/deepMergeTheme.js +7 -0
  174. package/dist/components/TekWallet/utils/getContractColor.d.ts +1 -0
  175. package/dist/components/TekWallet/utils/getContractColor.js +30 -0
  176. package/package.json +1 -1
  177. package/dist/components/TekWallet/components/ui/CardHistorySwap/index.d.ts +0 -12
  178. package/dist/components/TekWallet/components/ui/CardHistorySwap/index.js +0 -75
  179. package/dist/components/TekWallet/components/ui/DetailSwapResult/index.d.ts +0 -8
  180. package/dist/components/TekWallet/components/ui/DetailSwapResult/index.js +0 -122
  181. package/dist/components/TekWallet/components/ui/HistorySwap/index.d.ts +0 -16
  182. package/dist/components/TekWallet/components/ui/HistorySwap/index.js +0 -434
  183. package/dist/components/TekWallet/components/ui/SwapFunction/index.d.ts +0 -16
  184. package/dist/components/TekWallet/components/ui/SwapFunction/index.js +0 -271
  185. package/dist/components/TekWallet/components/ui/SwapToken/index.d.ts +0 -31
  186. package/dist/components/TekWallet/components/ui/SwapToken/index.js +0 -293
  187. package/dist/components/TekWallet/providers/ThemeProvider/index.d.ts +0 -8
  188. package/dist/components/TekWallet/providers/ThemeProvider/index.js +0 -43
  189. package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/components.d.ts +0 -3
  190. package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/components.js +0 -158
  191. package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/palette.d.ts +0 -55
  192. package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/palette.js +0 -45
  193. package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/theme.d.ts +0 -2
  194. package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/theme.js +0 -13
  195. package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/typography.d.ts +0 -39
  196. package/dist/components/TekWallet/theme/mui/deposit-fiat-theme/typography.js +0 -65
@@ -39,7 +39,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  var jsx_runtime_1 = require("react/jsx-runtime");
40
40
  var material_1 = require("@mui/material");
41
41
  var react_1 = require("react");
42
- var providers_1 = require("../../../providers");
42
+ var mui_1 = require("../../../theme/mui");
43
43
  var Text_1 = __importDefault(require("../Text"));
44
44
  var DatePicker_1 = __importDefault(require("../DatePicker"));
45
45
  var Row_1 = __importDefault(require("../Row"));
@@ -51,13 +51,13 @@ var ModalDateFilter = function (props) {
51
51
  var drawerRefs = props.drawerRefs, handleConfirm = props.handleConfirm;
52
52
  var _a = (0, react_1.useState)(null), valueStartDate = _a[0], setValueStartDate = _a[1];
53
53
  var _b = (0, react_1.useState)(null), valueEndDate = _b[0], setValueEndDate = _b[1];
54
- var theme = (0, providers_1.useTheme)();
54
+ var theme = (0, mui_1.useTheme)();
55
55
  var _c = (0, react_1.useState)(null), errorEndDate = _c[0], setErrorEndDate = _c[1];
56
56
  return ((0, jsx_runtime_1.jsxs)(Column_1.default, { sx: {
57
- paddingTop: theme.mixins.customPadding.p2,
58
- paddingBottom: theme.mixins.customPadding.p2,
57
+ paddingTop: theme.styleMixins.customPadding.p2,
58
+ paddingBottom: theme.styleMixins.customPadding.p2,
59
59
  }, children: [(0, jsx_runtime_1.jsxs)(Row_1.default, { sx: {
60
- gap: theme.mixins.gaps.g8,
60
+ gap: theme.styleMixins.gaps.g8,
61
61
  }, children: [(0, jsx_runtime_1.jsx)(DatePicker_1.default, { onSelect: function (date) {
62
62
  setValueStartDate((0, dayjs_1.default)(date).startOf("day"));
63
63
  }, value: valueStartDate, disableFuture: true }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
@@ -69,17 +69,17 @@ var ModalDateFilter = function (props) {
69
69
  }, value: valueEndDate, disablePastFrom: valueStartDate, onError: function (error) {
70
70
  setErrorEndDate(error);
71
71
  }, disableFuture: true })] }), (0, jsx_runtime_1.jsx)(material_1.Divider, { sx: {
72
- backgroundColor: theme.palette.border.accent3,
72
+ backgroundColor: theme.palette.divider,
73
73
  width: "100%",
74
- mt: theme.mixins.customMargin.m12,
75
- mb: theme.mixins.customMargin.m6,
74
+ mt: theme.styleMixins.customMargin.m12,
75
+ mb: theme.styleMixins.customMargin.m6,
76
76
  } }), (0, jsx_runtime_1.jsxs)(Row_1.default, { sx: {
77
- gap: theme.mixins.gaps.g8,
77
+ gap: theme.styleMixins.gaps.g8,
78
78
  }, children: [(0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
79
79
  cursor: "pointer",
80
80
  border: "1px solid ".concat(theme.palette.primary.main),
81
- borderRadius: theme.mixins.customRadius.r10,
82
- padding: theme.mixins.customPadding.p1,
81
+ borderRadius: theme.styleMixins.customRadius.r10,
82
+ padding: theme.styleMixins.customPadding.p1,
83
83
  minWidth: "32px",
84
84
  minHeight: "32px",
85
85
  display: "flex",
@@ -18,10 +18,10 @@ var jsx_runtime_1 = require("react/jsx-runtime");
18
18
  var ModalTitle_1 = __importDefault(require("../ModalTitle"));
19
19
  var CloseModal_1 = __importDefault(require("../CloseModal"));
20
20
  var material_1 = require("@mui/material");
21
- var ThemeProvider_1 = require("../../../providers/ThemeProvider");
21
+ var mui_1 = require("../../../theme/mui");
22
22
  var ModalLayout = function (props) {
23
- var theme = (0, ThemeProvider_1.useTheme)();
24
- return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({ borderRadius: props.fullScreen ? "0" : "1.5rem 1.5rem 0 0", maxHeight: "100dvh", backgroundColor: props.backgroundColor || theme.palette.background.tertiary, display: "flex", flexDirection: "column", height: props.fullScreen ? "100dvh" : "fit-content" }, theme.mixins.pagePadding), props.sx), children: [!props.hideHeader && !props.overrideHeader && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
23
+ var theme = (0, mui_1.useTheme)();
24
+ return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({ borderRadius: props.fullScreen ? "0" : "1.5rem 1.5rem 0 0", maxHeight: "100dvh", backgroundColor: props.backgroundColor || "background.default", display: "flex", flexDirection: "column", height: props.fullScreen ? "100dvh" : "fit-content" }, theme.styleMixins.pagePadding), props.sx), children: [!props.hideHeader && !props.overrideHeader && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
25
25
  width: "100%",
26
26
  position: "relative",
27
27
  }, children: [(0, jsx_runtime_1.jsx)(ModalTitle_1.default, { children: props.title }), (0, jsx_runtime_1.jsx)(CloseModal_1.default, { sx: {
@@ -59,7 +59,7 @@ var getIcon_1 = __importDefault(require("../../../utils/getIcon"));
59
59
  var DrawerDrag_1 = __importStar(require("../DrawerDrag"));
60
60
  var Icon_1 = __importDefault(require("../Icon"));
61
61
  var Text_1 = __importDefault(require("../Text"));
62
- var providers_1 = require("../../../providers");
62
+ var mui_1 = require("../../../theme/mui");
63
63
  var ModalSelectToken = function (props) {
64
64
  var setSwapToken = props.setSwapToken;
65
65
  var selectTokenForm = (0, useBoolean_1.useBoolean)("selectTokenForm");
@@ -68,7 +68,7 @@ var ModalSelectToken = function (props) {
68
68
  var onOpen = selectTokenForm.value ? selectTokenForm.setTrue : selectTokenTo.setTrue;
69
69
  var onClose = selectTokenForm.value ? selectTokenForm.setFalse : selectTokenTo.setFalse;
70
70
  var _a = (0, useWallet_1.default)(), fromTokens = _a.fromTokens, updateSwapTokens = _a.updateSwapTokens;
71
- var theme = (0, providers_1.useTheme)();
71
+ var theme = (0, mui_1.useTheme)();
72
72
  var router = (0, useCustomRouter_1.default)();
73
73
  (0, react_1.useEffect)(function () {
74
74
  if (fromTokens && fromTokens.length > 0 && !props.token && setSwapToken) {
@@ -94,22 +94,22 @@ var ModalSelectToken = function (props) {
94
94
  }, className: "!bg-white !rounded-none !size-full", anchor: DrawerDrag_1.DRAWER_DIRECTION.RIGHT, open: open, onClose: onClose, onOpen: onOpen, title: (0, jsx_runtime_1.jsx)(material_1.Box, { children: (0, jsx_runtime_1.jsx)(PageHeader_1.default, { overrideBack: onClose, onClick: onClose, title: selectTokenForm.value === true ? "Select from token" : "Select to token", children: (0, jsx_runtime_1.jsxs)(material_1.Box, { className: "flex gap-1 items-center ml-auto", children: [(0, jsx_runtime_1.jsx)(Icon_1.default, { onClick: function () { return router.push("/help"); }, src: (0, getIcon_1.default)("help") }), (0, jsx_runtime_1.jsx)(material_1.Divider, { orientation: "vertical", sx: {
95
95
  height: "15px",
96
96
  width: "1px",
97
- backgroundColor: theme.palette.border.accent3,
98
- marginLeft: theme.mixins.customMargin.m4,
99
- marginRight: theme.mixins.customMargin.m4,
100
- } }), (0, jsx_runtime_1.jsx)(Icon_1.default, { onClick: function () { return router.push("/history"); }, src: (0, getIcon_1.default)("history") })] }) }) }), content: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign({}, theme.mixins.pagePadding), children: [(0, jsx_runtime_1.jsx)(material_1.InputBase, { startAdornment: (0, jsx_runtime_1.jsx)(material_1.InputAdornment, { className: "size-5 text-black", position: "start", children: (0, jsx_runtime_1.jsx)(Icon_1.default, { className: "size-5", src: (0, getIcon_1.default)("search") }) }), placeholder: "Search", sx: {
97
+ backgroundColor: theme.palette.divider,
98
+ marginLeft: theme.styleMixins.customMargin.m4,
99
+ marginRight: theme.styleMixins.customMargin.m4,
100
+ } }), (0, jsx_runtime_1.jsx)(Icon_1.default, { onClick: function () { return router.push("/history"); }, src: (0, getIcon_1.default)("history") })] }) }) }), content: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign({}, theme.styleMixins.pagePadding), children: [(0, jsx_runtime_1.jsx)(material_1.InputBase, { startAdornment: (0, jsx_runtime_1.jsx)(material_1.InputAdornment, { className: "size-5 text-black", position: "start", children: (0, jsx_runtime_1.jsx)(Icon_1.default, { className: "size-5", src: (0, getIcon_1.default)("search") }) }), placeholder: "Search", sx: {
101
101
  "input::placeholder": {
102
102
  fontSize: theme.typography.fontSize12,
103
- color: theme.palette.text.black,
103
+ color: theme.palette.text.primary,
104
104
  fontWeight: theme.typography.fontWeight500,
105
- pl: theme.mixins.customPadding.p4,
105
+ pl: theme.styleMixins.customPadding.p4,
106
106
  },
107
- }, className: "w-full flex items-center py-1 px-2 rounded-12 border border-".concat(theme.palette.border.accent3, " bg-white text-black") }), (0, jsx_runtime_1.jsxs)(material_1.Box, { className: "py-4 mt-3 h-[50dvh] space-y-3", 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-1", children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
108
- color: theme.palette.text.accent,
107
+ }, className: "w-full flex items-center py-1 px-2 rounded-12 border border-".concat(theme.palette.divider, " bg-white text-black") }), (0, jsx_runtime_1.jsxs)(material_1.Box, { className: "py-4 mt-3 h-[50dvh] space-y-3", 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-1", children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
108
+ color: theme.palette.text.secondary,
109
109
  fontSize: theme.typography.fontSize12,
110
110
  fontWeight: theme.typography.fontWeight600,
111
- }, children: "Token" }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign({}, theme.mixins.column), className: "items-center gap-0.5", children: [(0, jsx_runtime_1.jsx)(Icon_1.default, { src: (0, getIcon_1.default)("arrow_drop_up") }), (0, jsx_runtime_1.jsx)(Icon_1.default, { src: (0, getIcon_1.default)("arrow_drop_down") })] })] }), (0, jsx_runtime_1.jsxs)(material_1.Box, { className: "flex items-center gap-1", children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
112
- color: theme.palette.text.accent,
111
+ }, children: "Token" }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign({}, theme.styleMixins.column), className: "items-center gap-0.5", children: [(0, jsx_runtime_1.jsx)(Icon_1.default, { src: (0, getIcon_1.default)("arrow_drop_up") }), (0, jsx_runtime_1.jsx)(Icon_1.default, { src: (0, getIcon_1.default)("arrow_drop_down") })] })] }), (0, jsx_runtime_1.jsxs)(material_1.Box, { className: "flex items-center gap-1", children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
112
+ color: theme.palette.text.secondary,
113
113
  fontSize: theme.typography.fontSize12,
114
114
  fontWeight: theme.typography.fontWeight600,
115
115
  }, children: "Balance" }), (0, jsx_runtime_1.jsxs)(material_1.Box, { className: "flex items-center gap-0.5 flex-col", children: [(0, jsx_runtime_1.jsx)(Icon_1.default, { src: (0, getIcon_1.default)("arrow_drop_up") }), (0, jsx_runtime_1.jsx)(Icon_1.default, { src: (0, getIcon_1.default)("arrow_drop_down") })] })] })] }), (0, jsx_runtime_1.jsx)(material_1.Box, { className: "space-y-3", children: selectTokenForm.value
@@ -16,48 +16,48 @@ 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 Text_1 = __importDefault(require("../Text"));
21
21
  var CheckBoxComponent_1 = __importDefault(require("../CheckBoxComponent"));
22
22
  var Button_1 = __importDefault(require("../Button"));
23
23
  var ModalStatusFilter = function (_a) {
24
24
  var statusList = _a.statusList, handleStatusSelect = _a.handleStatusSelect, _b = _a.selectedStatuses, selectedStatuses = _b === void 0 ? [] : _b, onApply = _a.onApply, onReset = _a.onReset;
25
- var theme = (0, providers_1.useTheme)();
25
+ var theme = (0, mui_1.useTheme)();
26
26
  return ((0, jsx_runtime_1.jsxs)(material_1.Box, { children: [(0, jsx_runtime_1.jsx)(material_1.Divider, { sx: {
27
- backgroundColor: theme.palette.border.accent3,
27
+ backgroundColor: theme.palette.divider,
28
28
  width: "100%",
29
- mt: theme.mixins.customMargin.m12,
30
- mb: theme.mixins.customMargin.m12,
31
- } }), statusList === null || statusList === void 0 ? void 0 : statusList.map(function (item) { return ((0, jsx_runtime_1.jsxs)(material_1.Box, { onClick: function () { return handleStatusSelect(item.name); }, sx: __assign(__assign({}, theme.mixins.row), { justifyContent: "space-between", alignItems: "center", px: theme.mixins.customPadding.p8, py: theme.mixins.customPadding.p4, borderRadius: theme.mixins.customRadius.r16, padding: theme.mixins.customPadding.p12, color: theme.palette.text.blackContrast, border: "1px solid", borderColor: selectedStatuses.includes(item.name)
29
+ mt: theme.styleMixins.customMargin.m12,
30
+ mb: theme.styleMixins.customMargin.m12,
31
+ } }), statusList === null || statusList === void 0 ? void 0 : statusList.map(function (item) { return ((0, jsx_runtime_1.jsxs)(material_1.Box, { onClick: function () { return handleStatusSelect(item.name); }, sx: __assign(__assign({}, theme.styleMixins.row), { justifyContent: "space-between", alignItems: "center", px: theme.styleMixins.customPadding.p8, py: theme.styleMixins.customPadding.p4, borderRadius: theme.styleMixins.customRadius.r16, padding: theme.styleMixins.customPadding.p12, color: theme.palette.text.primary, border: "1px solid", borderColor: selectedStatuses.includes(item.name)
32
32
  ? theme.palette.primary.main
33
- : theme.palette.border.accent3, backgroundColor: selectedStatuses.includes(item.name)
34
- ? theme.palette.background.white
35
- : "transparent", mt: theme.mixins.customMargin.m12, cursor: "pointer" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
33
+ : theme.palette.divider, backgroundColor: selectedStatuses.includes(item.name)
34
+ ? theme.palette.background.default
35
+ : "transparent", mt: theme.styleMixins.customMargin.m12, cursor: "pointer" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
36
36
  fontSize: theme.typography.fontSize12,
37
37
  fontWeight: theme.typography.fontWeight500,
38
38
  }, children: item === null || item === void 0 ? void 0 : item.title }), (0, jsx_runtime_1.jsx)(CheckBoxComponent_1.default, { checked: selectedStatuses.includes(item === null || item === void 0 ? void 0 : item.name), sx: {
39
39
  "& .MuiSvgIcon-root": {
40
40
  color: selectedStatuses.includes(item === null || item === void 0 ? void 0 : item.name)
41
41
  ? theme.palette.primary.main
42
- : theme.palette.text.accent,
42
+ : theme.palette.text.secondary,
43
43
  },
44
- } })] }, item.name)); }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g10, justifyContent: "center", mt: theme.mixins.customMargin.m16, width: "100%" }), children: [(0, jsx_runtime_1.jsx)(Button_1.default, { onClick: onReset, sx: {
45
- backgroundColor: theme.palette.background.white,
44
+ } })] }, item.name)); }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.row), { gap: theme.styleMixins.gaps.g10, justifyContent: "center", mt: theme.styleMixins.customMargin.m16, width: "100%" }), children: [(0, jsx_runtime_1.jsx)(Button_1.default, { onClick: onReset, sx: {
45
+ backgroundColor: theme.palette.background.default,
46
46
  borderColor: theme.palette.primary.main,
47
- borderRadius: theme.mixins.customRadius.r12,
47
+ borderRadius: theme.styleMixins.customRadius.r12,
48
48
  color: theme.palette.primary.main,
49
49
  fontSize: theme.typography.fontSize12,
50
50
  fontWeight: theme.typography.fontWeight600,
51
- padding: theme.mixins.customPadding.p12,
51
+ padding: theme.styleMixins.customPadding.p12,
52
52
  textTransform: "none",
53
53
  }, fullWidth: true, children: "Reset" }), (0, jsx_runtime_1.jsx)(Button_1.default, { onClick: onApply, sx: {
54
54
  backgroundColor: theme.palette.primary.main,
55
55
  borderColor: theme.palette.secondary.main,
56
- borderRadius: theme.mixins.customRadius.r12,
56
+ borderRadius: theme.styleMixins.customRadius.r12,
57
57
  color: theme.palette.secondary.main,
58
58
  fontSize: theme.typography.fontSize12,
59
59
  fontWeight: theme.typography.fontWeight600,
60
- padding: theme.mixins.customPadding.p12,
60
+ padding: theme.styleMixins.customPadding.p12,
61
61
  textTransform: "none",
62
62
  }, fullWidth: true, children: "Apply" })] })] }));
63
63
  };
@@ -26,11 +26,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
26
26
  };
27
27
  Object.defineProperty(exports, "__esModule", { value: true });
28
28
  var jsx_runtime_1 = require("react/jsx-runtime");
29
- var ThemeProvider_1 = require("../../../providers/ThemeProvider");
29
+ var mui_1 = require("../../../theme/mui");
30
30
  var Text_1 = __importDefault(require("../Text"));
31
31
  var ModalTitle = function (props) {
32
32
  var children = props.children, sx = props.sx, rest = __rest(props, ["children", "sx"]);
33
- var theme = (0, ThemeProvider_1.useTheme)();
34
- return ((0, jsx_runtime_1.jsx)(Text_1.default, __assign({}, rest, { sx: __assign(__assign({}, theme.mixins.sessionTitle), sx), children: children })));
33
+ var theme = (0, mui_1.useTheme)();
34
+ return ((0, jsx_runtime_1.jsx)(Text_1.default, __assign({}, rest, { sx: __assign(__assign({}, theme.styleMixins.sessionTitle), sx), children: children })));
35
35
  };
36
36
  exports.default = ModalTitle;
@@ -23,14 +23,14 @@ var Text_1 = __importDefault(require("../Text"));
23
23
  var framer_motion_1 = require("framer-motion");
24
24
  var useFormatter_1 = __importDefault(require("../../../hooks/useFormatter"));
25
25
  var material_1 = require("@mui/material");
26
- var ThemeProvider_1 = require("../../../providers/ThemeProvider");
26
+ var mui_1 = require("../../../theme/mui");
27
27
  var formatDate_1 = __importDefault(require("../../../utils/formatDate"));
28
28
  function NeonLineChart(_a) {
29
29
  var _b, _c, _d;
30
30
  var series = _a.series, categories = _a.categories, _e = _a.showMinMaxValues, showMinMaxValues = _e === void 0 ? false : _e, children = _a.children, sx = _a.sx;
31
31
  var chartComponentRef = (0, react_1.useRef)(null);
32
32
  var formatValue = (0, useFormatter_1.default)().formatValue;
33
- var theme = (0, ThemeProvider_1.useTheme)();
33
+ var theme = (0, mui_1.useTheme)();
34
34
  var options = {
35
35
  title: {
36
36
  text: "",
@@ -159,7 +159,7 @@ function NeonLineChart(_a) {
159
159
  duration: 0.4,
160
160
  ease: "easeInOut",
161
161
  delay: 0.4,
162
- }, children: (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.value), children: (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: maxValue }) }) }), (0, jsx_runtime_1.jsx)(framer_motion_1.motion.div, { className: "absolute bottom-0 w-fit z-[9999]", style: {
162
+ }, children: (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.styleMixins.value), children: (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: maxValue }) }) }), (0, jsx_runtime_1.jsx)(framer_motion_1.motion.div, { className: "absolute bottom-0 w-fit z-[9999]", style: {
163
163
  left: "".concat(Math.min((minIndex / chartLength) * 100, 90), "%"),
164
164
  }, initial: {
165
165
  scale: 0,
@@ -175,6 +175,6 @@ function NeonLineChart(_a) {
175
175
  duration: 0.4,
176
176
  ease: "easeInOut",
177
177
  delay: 0.4,
178
- }, children: (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.value), children: (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: minValue }) }) })] })), (0, jsx_runtime_1.jsx)(highcharts_react_official_1.default, { highcharts: highcharts_1.default, options: options, ref: chartComponentRef }), children] }));
178
+ }, children: (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.styleMixins.value), children: (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: minValue }) }) })] })), (0, jsx_runtime_1.jsx)(highcharts_react_official_1.default, { highcharts: highcharts_1.default, options: options, ref: chartComponentRef }), children] }));
179
179
  }
180
180
  exports.default = (0, react_1.memo)(NeonLineChart);
@@ -31,17 +31,17 @@ var Icon_1 = __importDefault(require("../Icon"));
31
31
  var Text_1 = __importDefault(require("../Text"));
32
32
  var parsePropsData_1 = __importDefault(require("../../../utils/parsePropsData"));
33
33
  var material_1 = require("@mui/material");
34
- var ThemeProvider_1 = require("../../../providers/ThemeProvider");
34
+ var mui_1 = require("../../../theme/mui");
35
35
  var SvgPath_1 = require("../SvgPath");
36
36
  var Formatter_1 = __importDefault(require("../Formatter"));
37
37
  var NetworkSelection = function (props) {
38
38
  var networkDataString = props.networkData, onClick = props.onClick, active = props.active, token = props.token, rest = __rest(props, ["networkData", "onClick", "active", "token"]);
39
- var theme = (0, ThemeProvider_1.useTheme)();
39
+ var theme = (0, mui_1.useTheme)();
40
40
  var networkData = (0, react_1.useMemo)(function () { return (0, parsePropsData_1.default)(networkDataString); }, [networkDataString]);
41
- return ((0, jsx_runtime_1.jsxs)(material_1.Box, __assign({}, rest, { sx: __assign(__assign({}, theme.mixins.row), { backgroundColor: active
41
+ return ((0, jsx_runtime_1.jsxs)(material_1.Box, __assign({}, rest, { sx: __assign(__assign({}, theme.styleMixins.row), { backgroundColor: active
42
42
  ? "".concat(theme.palette.background.tertiary)
43
- : "".concat(theme.palette.background.white), backdropFilter: "blur(12px)", padding: theme.mixins.customPadding.p16, borderRadius: theme.mixins.customRadius.r16, border: "1px solid", borderColor: active ? "".concat(theme.palette.primary.main) : "".concat(theme.palette.border.accent3), gap: theme.mixins.gaps.g8, justifyContent: "space-between" }), onClick: function () {
43
+ : "".concat(theme.palette.background.default), backdropFilter: "blur(12px)", padding: theme.styleMixins.customPadding.p16, borderRadius: theme.styleMixins.customRadius.r16, border: "1px solid", borderColor: active ? "".concat(theme.palette.primary.main) : "".concat(theme.palette.divider), gap: theme.styleMixins.gaps.g8, justifyContent: "space-between" }), onClick: function () {
44
44
  onClick === null || onClick === void 0 ? void 0 : onClick(networkData);
45
- }, children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g8 }), children: [(0, jsx_runtime_1.jsx)(Icon_1.default, { src: networkData === null || networkData === void 0 ? void 0 : networkData.link, sx: { borderRadius: theme.mixins.customRadius.full }, width: 24 }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { gap: theme.mixins.gaps.g2 }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign({}, theme.mixins.value), { color: "text.white", whiteSpace: "nowrap", textTransform: "capitalize" }), children: networkData === null || networkData === void 0 ? void 0 : networkData.name }), (0, jsx_runtime_1.jsxs)(Text_1.default, { sx: __assign(__assign({}, theme.mixins.activityDescription), { color: theme.palette.text.accent, fontSize: theme.typography.fontSize13, fontWeight: theme.typography.fontWeight400 }), children: ["Minimum transaction amount:", " ", (0, jsx_runtime_1.jsx)("strong", { children: (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: networkData === null || networkData === void 0 ? void 0 : networkData.min_value, unit: token === null || token === void 0 ? void 0 : token.name }) })] })] })] }), (0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { width: 20, height: 20 }, children: active ? SvgPath_1.IC_CHECK : SvgPath_1.IC_UNCHECK })] })));
45
+ }, children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.row), { gap: theme.styleMixins.gaps.g8 }), children: [(0, jsx_runtime_1.jsx)(Icon_1.default, { src: networkData === null || networkData === void 0 ? void 0 : networkData.link, sx: { borderRadius: theme.styleMixins.customRadius.full }, width: 24 }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.column), { gap: theme.styleMixins.gaps.g4 }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign({}, theme.styleMixins.value), { color: "text.white", whiteSpace: "nowrap", textTransform: "capitalize" }), children: networkData === null || networkData === void 0 ? void 0 : networkData.name }), (0, jsx_runtime_1.jsxs)(Text_1.default, { sx: __assign(__assign({}, theme.styleMixins.activityDescription), { color: theme.palette.text.secondary, fontSize: theme.typography.fontSize13, fontWeight: theme.typography.fontWeight400 }), children: ["Minimum transaction amount:", " ", (0, jsx_runtime_1.jsx)("strong", { children: (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: networkData === null || networkData === void 0 ? void 0 : networkData.min_value, unit: token === null || token === void 0 ? void 0 : token.name }) })] })] })] }), (0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { width: 20, height: 20, color: theme.palette.text.primary }, children: active ? SvgPath_1.IC_CHECK : SvgPath_1.IC_UNCHECK })] })));
46
46
  };
47
47
  exports.default = NetworkSelection;
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ "use client";
2
3
  var __assign = (this && this.__assign) || function () {
3
4
  __assign = Object.assign || function(t) {
4
5
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -41,7 +42,7 @@ var react_otp_input_1 = __importDefault(require("react-otp-input"));
41
42
  var SvgPath_1 = require("../SvgPath");
42
43
  var xhub_keyboard_1 = require("xhub-keyboard");
43
44
  var react_1 = require("react");
44
- var providers_1 = require("../../../providers");
45
+ var mui_1 = require("../../../theme/mui");
45
46
  var OtpInputType;
46
47
  (function (OtpInputType) {
47
48
  OtpInputType["TEXT"] = "text";
@@ -51,7 +52,7 @@ var OtpInputType;
51
52
  })(OtpInputType || (exports.OtpInputType = OtpInputType = {}));
52
53
  var CustomOtpInput = function (props) {
53
54
  var otpInputType = props.otpInputType, numInputs = props.numInputs, _a = props.onChange, onChange = _a === void 0 ? function () { } : _a, _b = props.readOnly, readOnly = _b === void 0 ? false : _b, _c = props.disabled, disabled = _c === void 0 ? false : _c, rest = __rest(props, ["otpInputType", "numInputs", "onChange", "readOnly", "disabled"]);
54
- var theme = (0, providers_1.useTheme)();
55
+ var theme = (0, mui_1.useTheme)();
55
56
  var InputElement = (0, react_1.useMemo)(function () {
56
57
  var _a, _b, _c;
57
58
  switch (otpInputType) {
@@ -61,37 +62,38 @@ var CustomOtpInput = function (props) {
61
62
  alignItems: "center",
62
63
  justifyContent: "center",
63
64
  }, children: (0, jsx_runtime_1.jsx)(react_otp_input_1.default, __assign({}, rest, { onChange: onChange, numInputs: numInputs, inputType: "password", inputStyle: {
64
- border: "1px solid #00000058",
65
- borderRadius: "0.75rem",
65
+ border: "1px solid ".concat(theme.palette.text.secondary),
66
+ borderRadius: theme.styleMixins.customRadius.r12,
66
67
  width: "2.8rem",
67
68
  aspectRatio: "1/1.1",
68
69
  margin: "0 0.25rem",
69
70
  outline: "none",
70
- color: "#000",
71
- backgroundColor: "white",
72
- }, renderInput: function (props) { return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("input", __assign({}, props, { inputMode: "decimal", readOnly: readOnly })), (0, jsx_runtime_1.jsx)("style", { children: "input::selection {\n background-color: white; \n color: #000; \n }" })] })); } })) }));
71
+ color: theme.palette.text.primary,
72
+ backgroundColor: theme.palette.background.default,
73
+ }, renderInput: function (props) { return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("input", __assign({}, props, { inputMode: "decimal", readOnly: readOnly })), (0, jsx_runtime_1.jsx)("style", { children: "input::selection {\n background-color: ".concat(theme.palette.background.default, "; \n color: ").concat(theme.palette.text.primary, "; \n }") })] })); } })) }));
73
74
  case OtpInputType.OTP:
74
75
  return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
75
76
  display: "flex",
76
77
  alignItems: "center",
77
- border: "1px solid #00000058",
78
- borderRadius: "0.5rem",
79
- padding: "0.75rem 1rem",
78
+ border: "1px solid",
79
+ borderColor: theme.palette.divider,
80
+ borderRadius: theme.styleMixins.customRadius.r12,
81
+ padding: "".concat(theme.styleMixins.customPadding.p16, " ").concat(theme.styleMixins.customPadding.p24),
80
82
  width: "100%",
81
- backgroundColor: "#ffffff",
83
+ backgroundColor: theme.palette.background.default,
82
84
  }, children: [(0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: {
83
85
  width: 20,
84
86
  height: 20,
85
87
  }, children: SvgPath_1.IC_PASSCODE }), (0, jsx_runtime_1.jsx)(material_1.Divider, { orientation: "vertical", variant: "fullWidth", flexItem: true, sx: {
86
88
  margin: "0 0.75rem",
87
89
  } }), (0, jsx_runtime_1.jsx)(react_otp_input_1.default, __assign({}, rest, { onChange: onChange, numInputs: numInputs, inputType: "password", inputStyle: {
88
- borderBottom: "1px solid #000000",
90
+ borderBottom: "1px solid ${theme.palette.text.secondary}",
89
91
  width: "0.625rem",
90
92
  margin: "0 0.25rem",
91
93
  outline: "none",
92
- color: "#000",
93
- backgroundColor: "#00000000",
94
- }, renderInput: function (props) { return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("input", __assign({}, props, { inputMode: "decimal", readOnly: readOnly })), (0, jsx_runtime_1.jsx)("style", { children: "input::selection {\n background-color: transparent;\n color: #000;\n }" })] })); } }))] }));
94
+ color: theme.palette.text.primary,
95
+ backgroundColor: "currentColor",
96
+ }, renderInput: function (props) { return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("input", __assign({}, props, { inputMode: "decimal", readOnly: readOnly })), (0, jsx_runtime_1.jsx)("style", { children: "input::selection {\n background-color: transparent;\n color: ".concat(theme.palette.text.primary, ";\n }") })] })); } }))] }));
95
97
  case OtpInputType.CONFIRM_BY_PASSCODE:
96
98
  var length_1 = numInputs || 6;
97
99
  var value = ((_a = rest.value) === null || _a === void 0 ? void 0 : _a.split("")) || [];
@@ -107,16 +109,20 @@ var CustomOtpInput = function (props) {
107
109
  }, children: (0, jsx_runtime_1.jsx)(xhub_keyboard_1.Input, { styles: {
108
110
  container: {
109
111
  width: "100%",
110
- borderColor: theme.palette.border.accent3,
112
+ borderColor: theme.palette.divider,
111
113
  },
112
114
  input: {
113
115
  width: "100%",
114
116
  },
115
- }, leftElement: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: { display: "flex", alignItems: "center", justifyContent: "center" }, children: [(0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { width: 20, height: 20 }, children: SvgPath_1.IC_PASSCODE }), (0, jsx_runtime_1.jsx)(material_1.Divider, { orientation: "vertical", variant: "fullWidth", flexItem: true, sx: { margin: "0 0.75rem" } })] }), displayType: xhub_keyboard_1.DisplayType.Text, isUseFormatNumber: false, value: valueRendered, renderValue: function (value, index) { return ((0, jsx_runtime_1.jsx)("span", { style: { margin: "0.1rem", display: "inline-block" }, children: value != "_" ? "●" : "_" }, index)); } }) }));
117
+ }, leftElement: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: { display: "flex", alignItems: "center", justifyContent: "center" }, children: [(0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { width: 20, height: 20 }, children: SvgPath_1.IC_PASSCODE }), (0, jsx_runtime_1.jsx)(material_1.Divider, { orientation: "vertical", variant: "fullWidth", flexItem: true, sx: { margin: "0 0.75rem" } })] }), displayType: xhub_keyboard_1.DisplayType.Text, isUseFormatNumber: false, value: valueRendered, renderValue: function (value, index) { return ((0, jsx_runtime_1.jsx)("span", { style: {
118
+ margin: "0.1rem",
119
+ display: "inline-block",
120
+ color: theme.palette.text.primary,
121
+ }, children: value != "_" ? "●" : "_" }, index)); } }) }));
116
122
  default:
117
123
  return ((0, jsx_runtime_1.jsx)(react_otp_input_1.default, __assign({}, rest, { onChange: onChange, numInputs: numInputs, renderInput: function (props) { return ((0, jsx_runtime_1.jsx)("input", __assign({}, props, { inputMode: "text", type: "text", readOnly: readOnly }))); } })));
118
124
  }
119
- }, [otpInputType, rest, onChange, numInputs, theme.palette.border.accent3, readOnly]);
125
+ }, [otpInputType, rest, onChange, numInputs, theme.palette.divider, readOnly]);
120
126
  return InputElement;
121
127
  };
122
128
  exports.default = CustomOtpInput;
@@ -16,11 +16,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
16
16
  };
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  var jsx_runtime_1 = require("react/jsx-runtime");
19
- var ThemeProvider_1 = require("../../../providers/ThemeProvider");
19
+ var mui_1 = require("../../../theme/mui");
20
20
  var BackHeader_1 = __importDefault(require("../BackHeader"));
21
21
  var Text_1 = __importDefault(require("../Text"));
22
22
  var PageHeader = function (props) {
23
- var theme = (0, ThemeProvider_1.useTheme)();
24
- return ((0, jsx_runtime_1.jsxs)(BackHeader_1.default, { overrideBack: props.overrideBack, renderBack: props.renderBack, hideBack: props.hideBack, sx: __assign({ display: "flex", alignItems: "center", justifyContent: "space-between", height: "100%", position: "relative", paddingLeft: theme.mixins.pagePadding.paddingLeft, paddingRight: theme.mixins.pagePadding.paddingRight, minHeight: "3.125rem", color: theme.palette.text.blackContrast }, props.sx), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign(__assign({}, theme.mixins.center), theme.mixins.headerTitle), { textTransform: "capitalize", color: "inherit" }), children: props.title }), props.children] }));
23
+ var theme = (0, mui_1.useTheme)();
24
+ return ((0, jsx_runtime_1.jsxs)(BackHeader_1.default, { overrideBack: props.overrideBack, renderBack: props.renderBack, hideBack: props.hideBack, sx: __assign({ display: "flex", alignItems: "center", justifyContent: "space-between", height: "100%", position: "relative", paddingLeft: theme.styleMixins.pagePadding.paddingLeft, paddingRight: theme.styleMixins.pagePadding.paddingRight, minHeight: "3.125rem", color: "text.primary" }, props.sx), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign(__assign({}, theme.styleMixins.center), theme.styleMixins.headerTitle), { textTransform: "capitalize", color: "inherit" }), children: props.title }), props.children] }));
25
25
  };
26
26
  exports.default = PageHeader;
@@ -2,9 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  var jsx_runtime_1 = require("react/jsx-runtime");
4
4
  var qrcode_react_1 = require("qrcode.react");
5
+ var mui_1 = require("../../../theme/mui");
5
6
  function QRCode(props) {
6
7
  var value = props.value, _a = props.size, size = _a === void 0 ? 156 : _a, logo = props.logo, title = props.title, _b = props.bgColor, bgColor = _b === void 0 ? "#ffffff" : _b;
7
- return ((0, jsx_runtime_1.jsx)(qrcode_react_1.QRCodeCanvas, { value: value, title: title, size: size, bgColor: bgColor, fgColor: "#044C2F", level: "L", minVersion: 8, marginSize: 3, imageSettings: {
8
+ var theme = (0, mui_1.useTheme)();
9
+ return ((0, jsx_runtime_1.jsx)(qrcode_react_1.QRCodeCanvas, { value: value, title: title, size: size, bgColor: bgColor, fgColor: theme.palette.primary.main, level: "L", minVersion: 8, marginSize: 3, imageSettings: {
8
10
  src: logo || "/",
9
11
  x: undefined,
10
12
  y: undefined,
@@ -124,7 +124,6 @@ var QrCodeReader = (0, react_1.forwardRef)(function (props, ref) {
124
124
  styleTag.remove();
125
125
  };
126
126
  }, []);
127
- var theme = (0, providers_1.useTheme)();
128
127
  var _d = (0, providers_1.useWalletSetup)(), topOffset = _d.topOffset, overrideQRScanMethod = _d.overrideQRScanMethod;
129
128
  if (!!overrideQRScanMethod) {
130
129
  var handleOverrideQRScanMethod = function (event) { return __awaiter(void 0, void 0, void 0, function () {
@@ -176,13 +175,13 @@ var QrCodeReader = (0, react_1.forwardRef)(function (props, ref) {
176
175
  zIndex: 1001,
177
176
  height: "fit-content",
178
177
  fontWeight: 700,
179
- color: theme.palette.text.white,
178
+ color: "#eeeeee",
180
179
  }, children: (0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: {
181
180
  width: "1.5rem",
182
181
  height: "1.5rem",
183
182
  cursor: "pointer",
184
183
  ml: "auto",
185
- }, onClick: close, children: (0, jsx_runtime_1.jsx)("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: (0, jsx_runtime_1.jsx)("path", { d: "M5 15L15 5M5 5L15 15", stroke: "white", strokeWidth: "1.25", strokeLinecap: "round", strokeLinejoin: "round" }) }) }) }), children: (0, jsx_runtime_1.jsx)("div", { ref: qrReaderContainer, children: isOpen && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
184
+ }, onClick: close, children: (0, jsx_runtime_1.jsx)("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: (0, jsx_runtime_1.jsx)("path", { d: "M5 15L15 5M5 5L15 15", stroke: "currentColor", strokeWidth: "1.25", strokeLinecap: "round", strokeLinejoin: "round" }) }) }) }), children: (0, jsx_runtime_1.jsx)("div", { ref: qrReaderContainer, children: isOpen && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
186
185
  opacity: isReaderReady ? 0 : 1,
187
186
  transition: "opacity 0.3s ease-in-out",
188
187
  }, children: (0, jsx_runtime_1.jsx)(AppBackDrop_1.default, { open: true, message: "Starting the camera..." }) }), (0, jsx_runtime_1.jsxs)("div", { style: { transition: "opacity 0.3s ease-in-out", opacity: isReaderReady ? 1 : 0 }, children: [(0, jsx_runtime_1.jsxs)("div", { style: {
@@ -0,0 +1,26 @@
1
+ import { GeneralProps } from "../../../types/ui";
2
+ import { TonTransferUrlParams } from "../../../utils/parseTonTransferUrl";
3
+ export interface ReceiveDirectlyInternalParams extends TonTransferUrlParams {
4
+ isTekWalletReceiveInternal: true;
5
+ }
6
+ export declare enum ReceiveDirectlyMethod {
7
+ RECEIVE_INTERNAL = "Internal Transfer",
8
+ RECEIVE_EXTERNAL = "Blockchain Deposit"
9
+ }
10
+ export interface ReceiveDirectlyProps extends GeneralProps {
11
+ tokenSlug: string;
12
+ method: ReceiveDirectlyMethod;
13
+ networkSlug?: string;
14
+ amount?: string | number;
15
+ userInfo?: {
16
+ nickname?: string;
17
+ username?: string;
18
+ avatar?: string;
19
+ };
20
+ }
21
+ export type ReceiveDirectlyRef = {
22
+ open: () => void;
23
+ close: () => void;
24
+ };
25
+ export declare const ReceiveDirectly: import("react").ForwardRefExoticComponent<ReceiveDirectlyProps & import("react").RefAttributes<ReceiveDirectlyRef>>;
26
+ export default ReceiveDirectly;