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
@@ -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++) {
@@ -18,7 +19,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
18
19
  exports.TIME_FILTER_LABEL = exports.TimeFilterType = void 0;
19
20
  var jsx_runtime_1 = require("react/jsx-runtime");
20
21
  var material_1 = require("@mui/material");
21
- var ThemeProvider_1 = require("../../../providers/ThemeProvider");
22
+ var mui_1 = require("../../../theme/mui");
22
23
  var react_1 = require("react");
23
24
  var Text_1 = __importDefault(require("../Text"));
24
25
  var date_fns_1 = require("date-fns");
@@ -39,7 +40,7 @@ exports.TIME_FILTER_LABEL = (_a = {},
39
40
  _a);
40
41
  var TimeFilter = function (_a) {
41
42
  var _b = _a.initialValue, initialValue = _b === void 0 ? TimeFilterType.ALL : _b, onChange = _a.onChange, hideAll = _a.hideAll, sx = _a.sx;
42
- var theme = (0, ThemeProvider_1.useTheme)();
43
+ var theme = (0, mui_1.useTheme)();
43
44
  var _c = (0, react_1.useState)({
44
45
  type: initialValue,
45
46
  }), value = _c[0], setValue = _c[1];
@@ -113,11 +114,11 @@ var TimeFilter = function (_a) {
113
114
  setValue(newData);
114
115
  onChange === null || onChange === void 0 ? void 0 : onChange(newData);
115
116
  }, []);
116
- return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign(__assign({}, theme.mixins.column), { gap: theme.mixins.gaps.g6, alignItems: "flex-start" }), sx), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
117
- color: theme.palette.text.accent2,
117
+ return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign(__assign({}, theme.styleMixins.column), { gap: theme.styleMixins.gaps.g6, alignItems: "flex-start" }), sx), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
118
+ color: theme.palette.text.secondary,
118
119
  fontWeight: theme.typography.fontWeight500,
119
120
  fontSize: theme.typography.fontSize11,
120
- }, children: getTimeFilterLabel(value) }), (0, jsx_runtime_1.jsx)(material_1.ToggleButtonGroup, { defaultValue: initialValue, onChange: handleChange, sx: { gap: theme.mixins.gaps.g8 }, children: Object.values(TimeFilterType).map(function (type) {
121
+ }, children: getTimeFilterLabel(value) }), (0, jsx_runtime_1.jsx)(material_1.ToggleButtonGroup, { defaultValue: initialValue, onChange: handleChange, sx: { gap: theme.styleMixins.gaps.g8 }, children: Object.values(TimeFilterType).map(function (type) {
121
122
  if (hideAll && type === TimeFilterType.ALL)
122
123
  return null;
123
124
  var isActive = (value === null || value === void 0 ? void 0 : value.type) === type;
@@ -128,11 +129,11 @@ var TimeFilter = function (_a) {
128
129
  position: "relative",
129
130
  textTransform: "capitalize",
130
131
  fontSize: theme.typography.fontSize11,
131
- borderRadius: theme.mixins.customRadius.r10,
132
+ borderRadius: theme.styleMixins.customRadius.r10,
132
133
  borderWidth: 1,
133
- borderColor: isActive ? theme.palette.primary.main : theme.palette.border.accent3,
134
+ borderColor: isActive ? theme.palette.primary.main : theme.palette.divider,
134
135
  backgroundColor: isActive ? theme.palette.secondary.main : "transparent",
135
- color: isActive ? theme.palette.primary.main : theme.palette.text.accent,
136
+ color: isActive ? theme.palette.primary.main : theme.palette.text.secondary,
136
137
  fontWeight: theme.typography.fontWeight600,
137
138
  transition: "background 0.2s, color 0.2s, border-color 0.2s",
138
139
  overflow: "hidden",
@@ -18,5 +18,5 @@ function TimeText(_a) {
18
18
  }
19
19
  return "".concat(pad(minutes), ":").concat(pad(secs));
20
20
  };
21
- return ((0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "title03", color: seconds ? "success" : "error", children: formatTime(seconds, format) }));
21
+ return ((0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "h3", color: seconds ? "success" : "error", children: formatTime(seconds, format) }));
22
22
  }
@@ -21,10 +21,10 @@ var Icon_1 = __importDefault(require("../Icon"));
21
21
  var Text_1 = __importDefault(require("../Text"));
22
22
  var Formatter_1 = __importDefault(require("../Formatter"));
23
23
  var material_1 = require("@mui/material");
24
- var ThemeProvider_1 = require("../../../providers/ThemeProvider");
24
+ var mui_1 = require("../../../theme/mui");
25
25
  var user_1 = __importDefault(require("../../../store/user"));
26
26
  var TokenItem = function (props) {
27
- var theme = (0, ThemeProvider_1.useTheme)();
27
+ var theme = (0, mui_1.useTheme)();
28
28
  var tokenData = (0, react_1.useMemo)(function () { return JSON.parse(props.tokenData); }, [props.tokenData]);
29
29
  var currency = (0, react_1.useMemo)(function () { return tokenData.currency; }, [tokenData]);
30
30
  var isShowBalance = (0, user_1.default)(function (state) { return state.settings.balance.isShowBalance; });
@@ -38,19 +38,11 @@ var TokenItem = function (props) {
38
38
  return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
39
39
  display: !shouldHideSmallAsset ? "grid" : "none",
40
40
  gridTemplateColumns: "1fr auto",
41
- gap: theme.mixins.gaps.g12,
42
- py: theme.mixins.customPadding.p8,
43
- }, 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, { width: 20, sx: {
44
- borderRadius: theme.mixins.customRadius.full,
45
- }, src: currency.link }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { flex: 1 }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.value), children: currency.name }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.valueDescription), children: currency.full_name })] })] }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { gap: theme.mixins.gaps.g1, justifyContent: "center", alignItems: "end" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign({}, theme.mixins.value), { fontWeight: theme.typography.fontWeight700 }), children: isShowBalance ? (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: balance }) : "****" }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.valueDescription), children: isShowBalance ? (0, jsx_runtime_1.jsx)(Formatter_1.default, { start: "$", value: balanceInUSD }) : "****" })] }), false && ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { gap: theme.mixins.gaps.g1, textAlign: "right" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign({}, theme.mixins.value), { color: theme.palette.text.alertStatus, fontWeight: theme.typography.fontWeight700 }), children: isShowBalance ? ((0, jsx_runtime_1.jsx)(Formatter_1.default, { value: 70000 })) : ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
46
- fontSize: theme.typography.fontSize14,
47
- fontWeight: theme.typography.fontWeight600,
48
- color: theme.palette.text.black,
49
- }, children: "****" })) }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign({}, theme.mixins.valueDescription), { color: theme.palette.text.alertStatus }), children: isShowBalance ? ((0, jsx_runtime_1.jsx)(Formatter_1.default, { value: 3.72 })) : ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
50
- fontSize: theme.typography.fontSize12,
51
- fontWeight: theme.typography.fontWeight600,
52
- color: theme.palette.text.accent2,
53
- }, children: "****" })) })] }))] }));
41
+ gap: theme.styleMixins.gaps.g12,
42
+ py: theme.styleMixins.customPadding.p8,
43
+ }, 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, { width: 20, sx: {
44
+ borderRadius: theme.styleMixins.customRadius.full,
45
+ }, src: currency.link }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.column), { flex: 1 }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.styleMixins.value), children: currency.name }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.styleMixins.valueDescription), children: currency.full_name })] })] }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.column), { gap: theme.styleMixins.gaps.g1, justifyContent: "center", alignItems: "end" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign({}, theme.styleMixins.value), { fontWeight: theme.typography.fontWeight700 }), children: isShowBalance ? (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: balance }) : "****" }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.styleMixins.valueDescription), children: isShowBalance ? (0, jsx_runtime_1.jsx)(Formatter_1.default, { start: "$", value: balanceInUSD }) : "****" })] })] }));
54
46
  };
55
47
  exports.TokenItem = TokenItem;
56
48
  exports.default = exports.TokenItem;
@@ -32,10 +32,10 @@ var Formatter_1 = __importDefault(require("../Formatter"));
32
32
  var Text_1 = __importDefault(require("../Text"));
33
33
  var Icon_1 = __importDefault(require("../Icon"));
34
34
  var material_1 = require("@mui/material");
35
- var ThemeProvider_1 = require("../../../providers/ThemeProvider");
35
+ var mui_1 = require("../../../theme/mui");
36
36
  var TokenSelection = function (props) {
37
37
  var tokenDataString = props.tokenData, sx = props.sx, onClick = props.onClick, active = props.active, rest = __rest(props, ["tokenData", "sx", "onClick", "active"]);
38
- var theme = (0, ThemeProvider_1.useTheme)();
38
+ var theme = (0, mui_1.useTheme)();
39
39
  var tokenData = (0, react_1.useMemo)(function () { return (0, parsePropsData_1.default)(tokenDataString); }, [tokenDataString]);
40
40
  var balance = (0, react_1.useMemo)(function () {
41
41
  var _a;
@@ -47,8 +47,8 @@ var TokenSelection = function (props) {
47
47
  }, [balance, tokenData]);
48
48
  return ((0, jsx_runtime_1.jsxs)(material_1.Box, __assign({ onClick: function () { return onClick === null || onClick === void 0 ? void 0 : onClick(tokenData); }, sx: __assign({ backgroundColor: active
49
49
  ? "".concat(theme.palette.background.tertiary)
50
- : "".concat(theme.palette.background.white16), border: "1px solid", backdropFilter: "blur(12px)", borderColor: active ? "".concat(theme.palette.primary.main) : "".concat(theme.palette.border.accent3), borderRadius: theme.mixins.customRadius.r16, padding: theme.mixins.customPadding.p16, display: "flex", alignItems: "center", cursor: "pointer" }, sx) }, rest, { children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g12 }), children: [(0, jsx_runtime_1.jsx)(Icon_1.default, { width: 20, src: tokenData === null || tokenData === void 0 ? void 0 : tokenData.link, sx: {
51
- borderRadius: theme.mixins.customRadius.full,
52
- } }), (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), { whiteSpace: "nowrap" }), children: tokenData === null || tokenData === void 0 ? void 0 : tokenData.name }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: theme.mixins.valueDescription, children: tokenData === null || tokenData === void 0 ? void 0 : tokenData.full_name })] })] }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { marginLeft: "auto", alignItems: "end" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: theme.mixins.value, children: (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: balance }) }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign({}, theme.mixins.valueDescription), { color: theme.palette.text.accent }), children: (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: balanceInUSD, start: "~ $" }) })] })] })));
50
+ : "".concat(theme.palette.background.default), border: "1px solid", backdropFilter: "blur(12px)", borderColor: active ? "".concat(theme.palette.primary.main) : "".concat(theme.palette.divider), borderRadius: theme.styleMixins.customRadius.r16, padding: theme.styleMixins.customPadding.p16, display: "flex", alignItems: "center", cursor: "pointer" }, sx) }, rest, { children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.row), { gap: theme.styleMixins.gaps.g12 }), children: [(0, jsx_runtime_1.jsx)(Icon_1.default, { width: 20, src: tokenData === null || tokenData === void 0 ? void 0 : tokenData.link, sx: {
51
+ borderRadius: theme.styleMixins.customRadius.full,
52
+ } }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.column), { gap: theme.styleMixins.gaps.g2 }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign({}, theme.styleMixins.value), { whiteSpace: "nowrap" }), children: tokenData === null || tokenData === void 0 ? void 0 : tokenData.name }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: theme.styleMixins.valueDescription, children: tokenData === null || tokenData === void 0 ? void 0 : tokenData.full_name })] })] }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.column), { marginLeft: "auto", alignItems: "end", gap: theme.styleMixins.gaps.g2 }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: theme.styleMixins.value, children: (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: balance }) }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign({}, theme.styleMixins.valueDescription), { color: theme.palette.text.secondary }), children: (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: balanceInUSD, start: "~ $" }) })] })] })));
53
53
  };
54
54
  exports.default = TokenSelection;
@@ -20,37 +20,37 @@ var Text_1 = __importDefault(require("../Text"));
20
20
  var CheckBoxComponent_1 = __importDefault(require("../CheckBoxComponent"));
21
21
  var TokenItem_1 = __importDefault(require("../TokenItem"));
22
22
  var material_1 = require("@mui/material");
23
- var ThemeProvider_1 = require("../../../providers/ThemeProvider");
23
+ var mui_1 = require("../../../theme/mui");
24
24
  var WaitingData_1 = __importDefault(require("../WaitingData"));
25
25
  var react_1 = require("react");
26
26
  var TokensBoard = function () {
27
27
  var tokens = (0, useWalletData_1.default)().tokens;
28
- var theme = (0, ThemeProvider_1.useTheme)();
28
+ var theme = (0, mui_1.useTheme)();
29
29
  var _a = (0, react_1.useState)(false), showSmallAssets = _a[0], setShowSmallAssets = _a[1];
30
30
  var toggleDisplay = function () {
31
31
  setShowSmallAssets(!showSmallAssets);
32
32
  };
33
33
  return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
34
- // ...theme.mixins.paper,
34
+ // ...theme.styleMixins.paper,
35
35
  // backgroundColor: "background.white",
36
36
  // boxShadow: theme.shadows[1],
37
- }, children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g12, my: theme.mixins.customMargin.m4 }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign({}, theme.mixins.headerTitle), { pb: theme.mixins.customPadding.p8 }), children: "Asset management" }), false && ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g2, ml: "auto" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
38
- // ...theme.mixins.valueDescription
37
+ }, children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.row), { gap: theme.styleMixins.gaps.g12, my: theme.styleMixins.customMargin.m4 }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign({}, theme.styleMixins.headerTitle), { pb: theme.styleMixins.customPadding.p8 }), children: "Asset management" }), false && ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.row), { gap: theme.styleMixins.gaps.g2, ml: "auto" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
38
+ // ...theme.styleMixins.valueDescription
39
39
  fontSize: theme.typography.fontSize12,
40
40
  fontWeight: theme.typography.fontWeight600,
41
- color: theme.palette.text.accent2,
41
+ color: theme.palette.text.secondary,
42
42
  }, children: "Hide small assets" }), (0, jsx_runtime_1.jsx)(CheckBoxComponent_1.default, { sx: {
43
43
  width: "1.5rem",
44
44
  height: "1.5rem",
45
45
  "& .MuiSvgIcon-root": {
46
- color: theme.palette.text.accent,
46
+ color: theme.palette.text.secondary,
47
47
  },
48
48
  }, onClick: toggleDisplay })] }))] }), (0, jsx_runtime_1.jsx)(material_1.Divider, { sx: {
49
- borderColor: theme.palette.border.accent3,
50
- } }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { gap: theme.mixins.gaps.g12, mt: theme.mixins.customMargin.m8, pt: theme.mixins.customPadding.p8, minHeight: !tokens ? "20rem" : "unset" }), children: [!!tokens && ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
49
+ borderColor: theme.palette.divider,
50
+ } }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.column), { gap: theme.styleMixins.gaps.g12, mt: theme.styleMixins.customMargin.m8, pt: theme.styleMixins.customPadding.p8, minHeight: !tokens ? "20rem" : "unset" }), children: [!!tokens && ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
51
51
  display: "grid",
52
52
  gridTemplateColumns: "1fr auto",
53
- gap: theme.mixins.gaps.g12,
53
+ gap: theme.styleMixins.gaps.g12,
54
54
  fontSize: theme.typography.fontSize11,
55
55
  color: "text.white",
56
56
  lineHeight: theme.typography.leading140,
@@ -58,12 +58,12 @@ var TokensBoard = function () {
58
58
  textAlign: "left",
59
59
  fontSize: theme.typography.fontSize14,
60
60
  fontWeight: theme.typography.fontWeight600,
61
- color: theme.palette.text.accent2,
61
+ color: theme.palette.text.secondary,
62
62
  }, children: "Token" }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
63
63
  textAlign: "left",
64
64
  fontSize: theme.typography.fontSize14,
65
65
  fontWeight: theme.typography.fontWeight600,
66
- color: theme.palette.text.accent2,
66
+ color: theme.palette.text.secondary,
67
67
  }, children: "Balance" })] })), tokens === null || tokens === void 0 ? void 0 : tokens.map(function (item) {
68
68
  var stringifiedTokenData = JSON.stringify(__assign({}, item));
69
69
  return ((0, jsx_runtime_1.jsx)(TokenItem_1.default, { showSmallAssets: showSmallAssets, tokenData: stringifiedTokenData }, item.id));
@@ -99,7 +99,7 @@ var validate_wallet_address_service_1 = __importDefault(require("../../../servic
99
99
  var type_2 = require("../../../services/axios/validate-wallet-address-service/type");
100
100
  var ConfirmByPasscode_1 = __importDefault(require("../ConfirmByPasscode"));
101
101
  var instructions_service_1 = __importDefault(require("../../../services/axios/instructions-service"));
102
- var providers_1 = require("../../../providers");
102
+ var mui_1 = require("../../../theme/mui");
103
103
  var useWallet_1 = __importDefault(require("../../../hooks/useWallet"));
104
104
  var TransferConfirmationError;
105
105
  (function (TransferConfirmationError) {
@@ -111,7 +111,7 @@ var TransferConfirmationError;
111
111
  })(TransferConfirmationError || (exports.TransferConfirmationError = TransferConfirmationError = {}));
112
112
  exports.TransferConfirmation = (0, react_1.forwardRef)(function (props, ref) {
113
113
  var _a, _b;
114
- var theme = (0, providers_1.useTheme)();
114
+ var theme = (0, mui_1.useTheme)();
115
115
  var transferData = props.transferData, transferContent = props.transferContent;
116
116
  var _c = (0, useWallet_1.default)(), isInitPasscode = _c.isInitPasscode, sendInternalTokens = _c.sendInternalTokens, updateSendInternalToken = _c.updateSendInternalToken;
117
117
  var confirmLayoutDrawerRef = (0, react_1.useRef)(null);
@@ -247,7 +247,7 @@ exports.TransferConfirmation = (0, react_1.forwardRef)(function (props, ref) {
247
247
  ? DrawerComponent_1.DRAWER_TRIGGER_STATUS.DISABLED
248
248
  : DrawerComponent_1.DRAWER_TRIGGER_STATUS.ENABLED, children: (0, jsx_runtime_1.jsx)(Button_1.default.Primary, { status: !!error || isValidatingAddress || errorAddress || !isEnoughBalance
249
249
  ? Button_1.BUTTON_STATUS.DISABLED
250
- : buttonStatus, sx: { width: "100%" }, children: "Confirm" }) }), children: [transferContent, !!error && ((0, jsx_runtime_1.jsxs)(Text_1.default, { sx: __assign(__assign({}, theme.mixins.validationError), { mt: (_a = theme.mixins.gaps) === null || _a === void 0 ? void 0 : _a.g6 }), children: [error, " ", !!errorAmount && (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: errorAmount, unit: " ".concat(token === null || token === void 0 ? void 0 : token.name) })] })), !!errorAddress && ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign({}, theme.mixins.validationError), { mt: (_b = theme.mixins.gaps) === null || _b === void 0 ? void 0 : _b.g6 }), children: errorAddress }))] }) }));
250
+ : buttonStatus, sx: { width: "100%" }, children: "Confirm" }) }), children: [transferContent, !!error && ((0, jsx_runtime_1.jsxs)(Text_1.default, { sx: __assign(__assign({}, theme.styleMixins.validationError), { mt: (_a = theme.styleMixins.gaps) === null || _a === void 0 ? void 0 : _a.g6 }), children: [error, " ", !!errorAmount && (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: errorAmount, unit: " ".concat(token === null || token === void 0 ? void 0 : token.name) })] })), !!errorAddress && ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign({}, theme.styleMixins.validationError), { mt: (_b = theme.styleMixins.gaps) === null || _b === void 0 ? void 0 : _b.g6 }), children: errorAddress }))] }) }));
251
251
  });
252
252
  exports.TransferConfirmation.displayName = "TransferConfirmation";
253
253
  exports.default = exports.TransferConfirmation;
@@ -99,7 +99,7 @@ var useWithdrawData_1 = __importDefault(require("../../../hooks/useWithdrawData"
99
99
  var send_internal_service_1 = __importDefault(require("../../../services/axios/send-internal-service"));
100
100
  var validate_wallet_address_service_1 = __importDefault(require("../../../services/axios/validate-wallet-address-service"));
101
101
  var type_2 = require("../../../services/axios/validate-wallet-address-service/type");
102
- var ThemeProvider_1 = require("../../../providers/ThemeProvider");
102
+ var mui_1 = require("../../../theme/mui");
103
103
  var TransferError;
104
104
  (function (TransferError) {
105
105
  TransferError["TOKEN_NOT_FOUND"] = "Token not found";
@@ -110,7 +110,7 @@ var TransferError;
110
110
  })(TransferError || (exports.TransferError = TransferError = {}));
111
111
  exports.TransferInternal = (0, react_1.forwardRef)(function (props, ref) {
112
112
  var _a;
113
- var theme = (0, ThemeProvider_1.useTheme)();
113
+ var theme = (0, mui_1.useTheme)();
114
114
  var transferData = props.transferData, transferContent = props.transferContent;
115
115
  var _b = (0, useWithdrawData_1.default)(), sendInternalTokens = _b.sendInternalTokens, updateSendInternalToken = _b.updateSendInternalToken;
116
116
  var isInitPasscode = (0, useWalletData_1.default)().isInitPasscode;
@@ -238,7 +238,7 @@ exports.TransferInternal = (0, react_1.forwardRef)(function (props, ref) {
238
238
  width: "100%",
239
239
  }, status: !!error || isValidatingAddress || errorAddress
240
240
  ? Button_1.BUTTON_STATUS.DISABLED
241
- : buttonStatus, fullWidth: true, children: "Confirm" }) }), children: [transferContent, !!error && ((0, jsx_runtime_1.jsxs)(Text_1.default, { sx: __assign(__assign({}, theme.mixins.validationError), { mt: (_a = theme.mixins.gaps) === null || _a === void 0 ? void 0 : _a.g6 }), children: [error, " ", !!errorAmount && (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: errorAmount, unit: " ".concat(token === null || token === void 0 ? void 0 : token.name) })] }))] }) }));
241
+ : buttonStatus, fullWidth: true, children: "Confirm" }) }), children: [transferContent, !!error && ((0, jsx_runtime_1.jsxs)(Text_1.default, { sx: __assign(__assign({}, theme.styleMixins.validationError), { mt: (_a = theme.styleMixins.gaps) === null || _a === void 0 ? void 0 : _a.g6 }), children: [error, " ", !!errorAmount && (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: errorAmount, unit: " ".concat(token === null || token === void 0 ? void 0 : token.name) })] }))] }) }));
242
242
  });
243
243
  exports.TransferInternal.displayName = "TransferInternal";
244
244
  exports.default = exports.TransferInternal;
@@ -87,7 +87,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
87
87
  exports.UpdateLockToken = exports.UpdateLockTokenError = void 0;
88
88
  var jsx_runtime_1 = require("react/jsx-runtime");
89
89
  var material_1 = require("@mui/material");
90
- var ThemeProvider_1 = require("../../../providers/ThemeProvider");
90
+ var mui_1 = require("../../../theme/mui");
91
91
  var Button_1 = __importStar(require("../Button"));
92
92
  var ConfirmLayout_1 = __importDefault(require("../ConfirmLayout"));
93
93
  var LineValue_1 = __importDefault(require("../LineValue"));
@@ -110,7 +110,7 @@ var UpdateLockTokenError;
110
110
  })(UpdateLockTokenError || (exports.UpdateLockTokenError = UpdateLockTokenError = {}));
111
111
  exports.UpdateLockToken = (0, react_1.forwardRef)(function (props, ref) {
112
112
  var _a;
113
- var theme = (0, ThemeProvider_1.useTheme)();
113
+ var theme = (0, mui_1.useTheme)();
114
114
  var _b = (0, useLockTokenData_1.default)(), lockedTokens = _b.lockedTokens, lockTokens = _b.lockTokens, updateLockedToken = _b.updateLockedToken;
115
115
  var isInitPasscode = (0, useWalletData_1.default)().isInitPasscode;
116
116
  var confirmLayoutDrawerRef = (0, react_1.useRef)(null);
@@ -213,10 +213,10 @@ exports.UpdateLockToken = (0, react_1.forwardRef)(function (props, ref) {
213
213
  return;
214
214
  updateLockedToken();
215
215
  }, [isInitPasscode, lockedTokens]);
216
- return ((0, jsx_runtime_1.jsx)(RequireConnect_1.default, { children: (0, jsx_runtime_1.jsx)(ConfirmLayout_1.default, { ref: confirmLayoutDrawerRef, action: action, trigger: props.children, children: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { gap: theme.mixins.gaps.g12 }), children: [(0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign({}, theme.mixins.paper), children: (0, jsx_runtime_1.jsx)(LineValue_1.default, { field: "Amount", value: (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: props.lockData.locked_amount, unit: " ".concat(token === null || token === void 0 ? void 0 : token.name) }) }) }), (0, jsx_runtime_1.jsxs)(Text_1.default, { sx: __assign({}, theme.mixins.value), children: ["Your balance is", " ", (0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
216
+ return ((0, jsx_runtime_1.jsx)(RequireConnect_1.default, { children: (0, jsx_runtime_1.jsx)(ConfirmLayout_1.default, { ref: confirmLayoutDrawerRef, action: action, trigger: props.children, children: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.column), { gap: theme.styleMixins.gaps.g12 }), children: [(0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign({}, theme.styleMixins.paper), children: (0, jsx_runtime_1.jsx)(LineValue_1.default, { field: "Amount", value: (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: props.lockData.locked_amount, unit: " ".concat(token === null || token === void 0 ? void 0 : token.name) }) }) }), (0, jsx_runtime_1.jsxs)(Text_1.default, { sx: __assign({}, theme.styleMixins.value), children: ["Your balance is", " ", (0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
217
217
  fontWeight: theme.typography.fontWeight600,
218
218
  color: theme.palette.text.secondary,
219
- }, children: (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: token === null || token === void 0 ? void 0 : token.balance, unit: " ".concat(token === null || token === void 0 ? void 0 : token.name) }) })] }), !!error && ((0, jsx_runtime_1.jsxs)(Text_1.default, { sx: __assign(__assign({}, theme.mixins.validationError), { mt: theme.mixins.gaps.g6 }), children: [error, " ", !!errorAmount && (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: errorAmount, unit: " ".concat(token === null || token === void 0 ? void 0 : token.name) })] })), (0, jsx_runtime_1.jsx)(ConfirmByPasscode_1.default, { action: action, onConfirmSuccess: handleLockToken, children: (0, jsx_runtime_1.jsx)(Button_1.default.Primary, { status: !!error ? Button_1.BUTTON_STATUS.DISABLED : buttonStatus, sx: { width: "100%" }, children: "Confirm" }) })] }) }) }));
219
+ }, children: (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: token === null || token === void 0 ? void 0 : token.balance, unit: " ".concat(token === null || token === void 0 ? void 0 : token.name) }) })] }), !!error && ((0, jsx_runtime_1.jsxs)(Text_1.default, { sx: __assign(__assign({}, theme.styleMixins.validationError), { mt: theme.styleMixins.gaps.g6 }), children: [error, " ", !!errorAmount && (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: errorAmount, unit: " ".concat(token === null || token === void 0 ? void 0 : token.name) })] })), (0, jsx_runtime_1.jsx)(ConfirmByPasscode_1.default, { action: action, onConfirmSuccess: handleLockToken, children: (0, jsx_runtime_1.jsx)(Button_1.default.Primary, { status: !!error ? Button_1.BUTTON_STATUS.DISABLED : buttonStatus, sx: { width: "100%" }, children: "Confirm" }) })] }) }) }));
220
220
  });
221
221
  exports.UpdateLockToken.displayName = "UpdateLockToken";
222
222
  exports.default = exports.UpdateLockToken;
@@ -8,22 +8,22 @@ var jsx_runtime_1 = require("react/jsx-runtime");
8
8
  var getImage_1 = __importDefault(require("../../../utils/getImage"));
9
9
  var Text_1 = __importDefault(require("../Text"));
10
10
  var material_1 = require("@mui/material");
11
- var ThemeProvider_1 = require("../../../providers/ThemeProvider");
11
+ var mui_1 = require("../../../theme/mui");
12
12
  function UserInfo(_a) {
13
13
  var _b;
14
14
  var user = _a.user, rightPart = _a.rightPart;
15
- var theme = (0, ThemeProvider_1.useTheme)();
15
+ var theme = (0, mui_1.useTheme)();
16
16
  if (!user)
17
17
  return "loading...";
18
18
  return ((0, jsx_runtime_1.jsxs)(material_1.Box, { className: "flex items-center justify-between", children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { className: "flex gap-3 items-center", children: [(0, jsx_runtime_1.jsx)(material_1.Avatar, { src: (_b = user.avatar) !== null && _b !== void 0 ? _b : (0, getImage_1.default)("default-ava", "png"), sx: {
19
19
  width: 24,
20
20
  height: 24,
21
21
  } }), (0, jsx_runtime_1.jsxs)(material_1.Box, { className: "flex flex-col", children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
22
- color: theme.palette.background.white,
22
+ color: theme.palette.background.default,
23
23
  fontWeight: theme.typography.fontWeight500,
24
24
  fontSize: theme.typography.fontSize13,
25
25
  }, children: user.nick_name }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
26
- color: theme.palette.text.accent,
26
+ color: theme.palette.text.secondary,
27
27
  fontWeight: theme.typography.fontWeight500,
28
28
  fontSize: theme.typography.fontSize11,
29
29
  }, children: user.user_name })] })] }), rightPart] }));
@@ -13,39 +13,40 @@ var __assign = (this && this.__assign) || function () {
13
13
  Object.defineProperty(exports, "__esModule", { value: true });
14
14
  var jsx_runtime_1 = require("react/jsx-runtime");
15
15
  var material_1 = require("@mui/material");
16
- var providers_1 = require("../../../providers");
16
+ var mui_1 = require("../../../theme/mui");
17
+ var getContractColor_1 = require("../../../utils/getContractColor");
17
18
  var WaitingData = function (props) {
18
- var theme = (0, providers_1.useTheme)();
19
+ var theme = (0, mui_1.useTheme)();
19
20
  var sx = props.sx, _a = props.numberOfSkeleton, numberOfSkeleton = _a === void 0 ? 5 : _a;
20
- return ((0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign({ display: "flex", alignItems: "center", justifyContent: "center", flexDirection: "column", gap: theme.mixins.gaps.g12, width: "100%", height: "fit-content" }, sx), children: Array.from({ length: numberOfSkeleton }).map(function (_, index) { return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
21
- backgroundColor: theme.palette.background.white16,
21
+ return ((0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign({ display: "flex", alignItems: "center", justifyContent: "center", flexDirection: "column", gap: theme.styleMixins.gaps.g12, width: "100%", height: "fit-content" }, sx), children: Array.from({ length: numberOfSkeleton }).map(function (_, index) { return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
22
+ backgroundColor: (0, material_1.alpha)(theme.palette.background.default, 0.1),
22
23
  backdropFilter: "blur(12px)",
23
- borderRadius: theme.mixins.customRadius.r16,
24
+ borderRadius: theme.styleMixins.customRadius.r16,
24
25
  display: "flex",
25
26
  alignItems: "center",
26
27
  justifyContent: "center",
27
- boxShadow: "1px 1px 4px 3px rgba(0, 0, 0, 0.03)",
28
+ boxShadow: "1px 1px 4px 3px ".concat((0, material_1.alpha)((0, getContractColor_1.getContrastingColor)(theme.palette.background.default), 0.03)),
28
29
  width: "100%",
29
- gap: theme.mixins.gaps.g12,
30
- padding: theme.mixins.customPadding.p12,
30
+ gap: theme.styleMixins.gaps.g12,
31
+ padding: theme.styleMixins.customPadding.p12,
31
32
  }, children: [(0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "rectangular", sx: {
32
33
  aspectRatio: 1,
33
34
  height: "auto",
34
35
  width: "2.5rem",
35
36
  borderRadius: "999px",
36
37
  opacity: 0.7,
37
- }, animation: "wave" }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { gap: theme.mixins.gaps.g6, flex: 1 }), children: [(0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "rectangular", width: "70%", sx: {
38
+ }, animation: "wave" }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.column), { gap: theme.styleMixins.gaps.g6, flex: 1 }), children: [(0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "rectangular", width: "70%", sx: {
38
39
  height: "1.4rem",
39
40
  opacity: 0.7,
40
- borderRadius: theme.mixins.customRadius.r12,
41
+ borderRadius: theme.styleMixins.customRadius.r12,
41
42
  }, animation: "wave" }), (0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "rectangular", width: "80%", sx: {
42
43
  height: "1.2rem",
43
44
  opacity: 0.7,
44
- borderRadius: theme.mixins.customRadius.r12,
45
+ borderRadius: theme.styleMixins.customRadius.r12,
45
46
  }, animation: "wave" })] }), (0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "rectangular", sx: {
46
47
  height: "1.7rem",
47
48
  width: "4rem",
48
- borderRadius: theme.mixins.customRadius.r12,
49
+ borderRadius: theme.styleMixins.customRadius.r12,
49
50
  opacity: 0.7,
50
51
  }, animation: "wave" })] }, index)); }) }));
51
52
  };
@@ -6,39 +6,39 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.default = SelectToken;
7
7
  var jsx_runtime_1 = require("react/jsx-runtime");
8
8
  var material_1 = require("@mui/material");
9
- var providers_1 = require("../../../../providers");
10
9
  var Column_1 = __importDefault(require("../../Column"));
11
10
  var sortByToken_1 = __importDefault(require("./sortByToken"));
12
11
  var sortByBalance_1 = __importDefault(require("./sortByBalance"));
13
12
  var __1 = require("..");
14
13
  var TokenSelection_1 = __importDefault(require("../../TokenSelection"));
15
14
  var SvgPath_1 = require("../../SvgPath");
15
+ var mui_1 = require("../../../../theme/mui");
16
16
  function SelectToken(props) {
17
- var theme = (0, providers_1.useTheme)();
17
+ var theme = (0, mui_1.useTheme)();
18
18
  var sortToken = props.sortToken, setSortToken = props.setSortToken, sortBalance = props.sortBalance, setSortBalance = props.setSortBalance, withdrawToken = props.withdrawToken, selectedToken = props.selectedToken, handleSelectToken = props.handleSelectToken;
19
19
  return ((0, jsx_runtime_1.jsxs)(Column_1.default, { sx: {
20
- gap: theme.mixins.gaps.g12,
20
+ gap: theme.styleMixins.gaps.g12,
21
21
  height: "fit-content",
22
22
  }, 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)(material_1.SvgIcon, { inheritViewBox: true, sx: {
23
23
  width: 20,
24
24
  height: 20,
25
25
  transition: "opacity 0.2s ease-in-out",
26
26
  }, children: SvgPath_1.IC_SEARCH }) }), placeholder: "Search", className: "w-full flex items-center py-1 px-2", sx: {
27
- borderRadius: theme.mixins.customRadius.r12,
27
+ borderRadius: theme.styleMixins.customRadius.r12,
28
28
  border: "1px solid",
29
- borderColor: theme.palette.border.accent3,
30
- background: theme.palette.background.white,
31
- color: theme.palette.text.black,
29
+ borderColor: theme.palette.divider,
30
+ background: theme.palette.background.default,
31
+ color: theme.palette.text.primary,
32
32
  "input::placeholder": {
33
33
  fontSize: theme.typography.fontSize11,
34
- pl: theme.mixins.customPadding.p4,
34
+ pl: theme.styleMixins.customPadding.p4,
35
35
  fontWeight: theme.typography.fontWeight500,
36
- color: theme.palette.text.black,
36
+ color: theme.palette.text.primary,
37
37
  },
38
38
  } }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
39
- display: theme.mixins.row,
39
+ display: theme.styleMixins.row,
40
40
  justifyContent: "space-between",
41
- mt: theme.mixins.customMargin.m16,
41
+ mt: theme.styleMixins.customMargin.m16,
42
42
  }, children: [(0, jsx_runtime_1.jsx)(sortByToken_1.default, { sortToken: sortToken || __1.SortToken.ASC, setSortToken: setSortToken || (function () { }) }), (0, jsx_runtime_1.jsx)(sortByBalance_1.default, { sortBalance: sortBalance || __1.SortBalance.ASC, setSortBalance: setSortBalance || (function () { }) })] }), withdrawToken === null || withdrawToken === void 0 ? void 0 : withdrawToken.map(function (item) {
43
43
  var stringifiedTokenData = JSON.stringify(item);
44
44
  if (!item)
@@ -92,17 +92,17 @@ var Formatter_1 = __importDefault(require("../../Formatter"));
92
92
  var Fees_1 = __importStar(require("../../Fees"));
93
93
  var SvgPath_1 = require("../../SvgPath");
94
94
  var Text_1 = __importDefault(require("../../Text"));
95
- var providers_1 = require("../../../../providers");
96
95
  var react_1 = require("react");
97
96
  var TransferInternal_1 = __importDefault(require("../../TransferInternal"));
98
97
  var type_1 = require("../../../../services/axios/get-activities-service/type");
99
98
  var Column_1 = __importDefault(require("../../Column"));
100
99
  var infoSummary_1 = __importDefault(require("./summary/infoSummary"));
101
100
  var __1 = require("..");
101
+ var mui_1 = require("../../../../theme/mui");
102
102
  function SendForm(props) {
103
103
  var _this = this;
104
104
  var _a, _b, _c;
105
- var theme = (0, providers_1.useTheme)();
105
+ var theme = (0, mui_1.useTheme)();
106
106
  var setRecipientAddress = props.setRecipientAddress, setRecipientAddressError = props.setRecipientAddressError;
107
107
  var inputAddressRef = (0, react_1.useRef)(null);
108
108
  var handlePaste = function () { return __awaiter(_this, void 0, void 0, function () {
@@ -119,70 +119,70 @@ function SendForm(props) {
119
119
  });
120
120
  }); };
121
121
  var recipientAddress = props.recipientAddress, estimateFee = props.estimateFee, estimateReceive = props.estimateReceive, isLoadingEstimateFee = props.isLoadingEstimateFee, comment = props.comment, amountError = props.amountError, amountErrorMessage = props.amountErrorMessage, hiddenError = props.hiddenError, selectedMethod = props.selectedMethod, memo = props.memo, recipientAddressError = props.recipientAddressError, selectedToken = props.selectedToken, amount = props.amount, handleChangeRecipientAddress = props.handleChangeRecipientAddress, handleClearRecipientAddress = props.handleClearRecipientAddress, handleChangeAmount = props.handleChangeAmount, handleClickMaxAmount = props.handleClickMaxAmount, handleChangeMemo = props.handleChangeMemo, openScannerAddressQrCode = props.openScannerAddressQrCode, handleChangeComment = props.handleChangeComment;
122
- return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { gap: theme.mixins.gaps.g16 }), children: [(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: {
122
+ return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.column), { gap: theme.styleMixins.gaps.g16 }), children: [(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: {
123
123
  fontSize: theme.typography.fontSize14,
124
- color: theme.palette.text.black,
124
+ color: theme.palette.text.primary,
125
125
  fontWeight: theme.typography.fontWeight700,
126
126
  }, children: "Wallet address" }), (0, jsx_runtime_1.jsx)(Input_1.default, { ref: inputAddressRef, sx: {
127
- paddingRight: theme.mixins.customPadding.p12,
128
- borderRadius: theme.mixins.customRadius.r8,
127
+ paddingRight: theme.styleMixins.customPadding.p12,
128
+ borderRadius: theme.styleMixins.customRadius.r8,
129
129
  border: "1px solid",
130
- borderColor: theme.palette.border.primary,
131
- background: theme.palette.background.white,
132
- color: theme.palette.text.black,
130
+ borderColor: theme.palette.divider,
131
+ background: theme.palette.background.default,
132
+ color: theme.palette.text.primary,
133
133
  }, inputRest: {
134
134
  placeholder: "Enter recipient address",
135
135
  value: recipientAddress,
136
136
  onChange: handleChangeRecipientAddress,
137
137
  hiddenLabel: true,
138
- }, rightPart: (0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g8 }), children: !!recipientAddress ? ((0, jsx_runtime_1.jsx)(material_1.Box, { onClick: handleClearRecipientAddress, sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g8, cursor: "pointer" }), children: (0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { width: 12, height: 12 }, children: SvgPath_1.IC_CLOSE }) })) : ((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)(material_1.Box, { onClick: openScannerAddressQrCode, children: (0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { width: 18, height: 18 }, children: SvgPath_1.IC_SCAN }) }), (0, jsx_runtime_1.jsx)(material_1.Divider, { orientation: "vertical", variant: "fullWidth", flexItem: true }), (0, jsx_runtime_1.jsx)(material_1.Box, { onClick: handlePaste, children: (0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { width: 18, height: 18 }, children: SvgPath_1.IC_DOCUMENTS }) })] })) }) }), !!recipientAddressError && ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.validationError), children: recipientAddressError }))] }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { gap: theme.mixins.gaps.g8 }), children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g8, alignItems: "center", justifyContent: "space-between" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
138
+ }, rightPart: (0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.row), { gap: theme.styleMixins.gaps.g8 }), children: !!recipientAddress ? ((0, jsx_runtime_1.jsx)(material_1.Box, { onClick: handleClearRecipientAddress, sx: __assign(__assign({}, theme.styleMixins.row), { gap: theme.styleMixins.gaps.g8, cursor: "pointer" }), children: (0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { width: 12, height: 12 }, children: SvgPath_1.IC_CLOSE }) })) : ((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)(material_1.Box, { onClick: openScannerAddressQrCode, children: (0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { width: 18, height: 18 }, children: SvgPath_1.IC_SCAN }) }), (0, jsx_runtime_1.jsx)(material_1.Divider, { orientation: "vertical", variant: "fullWidth", flexItem: true }), (0, jsx_runtime_1.jsx)(material_1.Box, { onClick: handlePaste, children: (0, jsx_runtime_1.jsx)(material_1.SvgIcon, { sx: { width: 18, height: 18 }, children: SvgPath_1.IC_DOCUMENTS }) })] })) }) }), !!recipientAddressError && ((0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.styleMixins.validationError), children: recipientAddressError }))] }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.column), { gap: theme.styleMixins.gaps.g8 }), children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.row), { gap: theme.styleMixins.gaps.g8, alignItems: "center", justifyContent: "space-between" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
139
139
  fontSize: theme.typography.fontSize14,
140
- color: theme.palette.text.black,
140
+ color: theme.palette.text.primary,
141
141
  fontWeight: theme.typography.fontWeight700,
142
- }, children: "Withdrawal amount" }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g8, alignItems: "center" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign({}, theme.mixins.value), { fontSize: theme.typography.fontSize11, color: theme.palette.text.accent }), children: "Your balance " }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign({}, theme.mixins.value), { fontSize: theme.typography.fontSize12, color: theme.palette.text.black }), children: (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: selectedToken === null || selectedToken === void 0 ? void 0 : selectedToken.balance, unit: " ".concat(selectedToken === null || selectedToken === void 0 ? void 0 : selectedToken.name) }) })] })] }), (0, jsx_runtime_1.jsx)(Input_1.default, { sx: {
143
- paddingRight: theme.mixins.customPadding.p4,
144
- borderRadius: theme.mixins.customRadius.r8,
142
+ }, children: "Withdrawal amount" }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.styleMixins.row), { gap: theme.styleMixins.gaps.g8, alignItems: "center" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign({}, theme.styleMixins.value), { fontSize: theme.typography.fontSize11, color: theme.palette.text.secondary }), children: "Your balance " }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign({}, theme.styleMixins.value), { fontSize: theme.typography.fontSize12, color: theme.palette.text.primary }), children: (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: selectedToken === null || selectedToken === void 0 ? void 0 : selectedToken.balance, unit: " ".concat(selectedToken === null || selectedToken === void 0 ? void 0 : selectedToken.name) }) })] })] }), (0, jsx_runtime_1.jsx)(Input_1.default, { sx: {
143
+ paddingRight: theme.styleMixins.customPadding.p4,
144
+ borderRadius: theme.styleMixins.customRadius.r8,
145
145
  border: "1px solid",
146
- borderColor: theme.palette.border.primary,
147
- background: theme.palette.background.white,
148
- color: theme.palette.text.black,
146
+ borderColor: theme.palette.divider,
147
+ background: theme.palette.background.default,
148
+ color: theme.palette.text.primary,
149
149
  }, inputRest: {
150
150
  placeholder: "".concat(selectedToken === null || selectedToken === void 0 ? void 0 : selectedToken.min_value, " - ").concat(selectedToken === null || selectedToken === void 0 ? void 0 : selectedToken.max_value),
151
151
  value: amount,
152
152
  onChange: handleChangeAmount,
153
153
  hiddenLabel: true,
154
154
  inputMode: "decimal",
155
- }, rightPart: (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)(Text_1.default, { sx: __assign({}, theme.mixins.value), children: selectedToken === null || selectedToken === void 0 ? void 0 : selectedToken.name }), (0, jsx_runtime_1.jsx)(material_1.Box, { onClick: handleClickMaxAmount, sx: {
155
+ }, rightPart: (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)(Text_1.default, { sx: __assign({}, theme.styleMixins.value), children: selectedToken === null || selectedToken === void 0 ? void 0 : selectedToken.name }), (0, jsx_runtime_1.jsx)(material_1.Box, { onClick: handleClickMaxAmount, sx: {
156
156
  background: theme.palette.background.tertiary,
157
- color: theme.palette.text.black,
157
+ color: theme.palette.text.primary,
158
158
  fontSize: theme.typography.fontSize11,
159
159
  fontWeight: theme.typography.fontWeight700,
160
- borderRadius: theme.mixins.customRadius.r4,
161
- paddingX: theme.mixins.customPadding.p16,
162
- paddingY: theme.mixins.customPadding.p8,
160
+ borderRadius: theme.styleMixins.customRadius.r4,
161
+ paddingX: theme.styleMixins.customPadding.p16,
162
+ paddingY: theme.styleMixins.customPadding.p8,
163
163
  border: "0px solid",
164
164
  cursor: "pointer",
165
165
  }, children: (0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
166
166
  fontSize: theme.typography.fontSize12,
167
167
  color: theme.palette.text.primary,
168
168
  fontWeight: theme.typography.fontWeight500,
169
- }, children: "Max" }) })] }) }), !!amountError && !hiddenError && ((0, jsx_runtime_1.jsxs)(Text_1.default, { sx: __assign({}, theme.mixins.validationError), children: [amountErrorMessage, " ", (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: amountError, unit: " ".concat(selectedToken === null || selectedToken === void 0 ? void 0 : selectedToken.name) })] }))] }), (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: {
169
+ }, children: "Max" }) })] }) }), !!amountError && !hiddenError && ((0, jsx_runtime_1.jsxs)(Text_1.default, { sx: __assign({}, theme.styleMixins.validationError), children: [amountErrorMessage, " ", (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: amountError, unit: " ".concat(selectedToken === null || selectedToken === void 0 ? void 0 : selectedToken.name) })] }))] }), (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: {
170
170
  fontSize: theme.typography.fontSize14,
171
- color: theme.palette.text.black,
171
+ color: theme.palette.text.primary,
172
172
  fontWeight: theme.typography.fontWeight700,
173
173
  }, children: "Comment" }), (0, jsx_runtime_1.jsx)(Input_1.default, { sx: {
174
- paddingRight: theme.mixins.customPadding.p12,
175
- borderRadius: theme.mixins.customRadius.r8,
174
+ paddingRight: theme.styleMixins.customPadding.p12,
175
+ borderRadius: theme.styleMixins.customRadius.r8,
176
176
  border: "1px solid",
177
- borderColor: theme.palette.border.primary,
178
- background: theme.palette.background.white,
179
- color: theme.palette.text.black,
177
+ borderColor: theme.palette.divider,
178
+ background: theme.palette.background.default,
179
+ color: theme.palette.text.primary,
180
180
  }, inputRest: {
181
181
  placeholder: "Enter comment if needed",
182
182
  value: comment,
183
183
  onChange: handleChangeComment,
184
184
  hiddenLabel: true,
185
- } }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.validationDescription), children: "Enter comment if your receiving platform requires one to avoid losing your funds." })] }), selectedMethod === __1.SendMethods.TRANSFER_EXTERNAL && ((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.fieldTitle), children: "Memo" }), (0, jsx_runtime_1.jsx)(Input_1.default, { inputRest: {
185
+ } }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.styleMixins.validationDescription), children: "Enter comment if your receiving platform requires one to avoid losing your funds." })] }), selectedMethod === __1.SendMethods.TRANSFER_EXTERNAL && ((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.fieldTitle), children: "Memo" }), (0, jsx_runtime_1.jsx)(Input_1.default, { inputRest: {
186
186
  placeholder: "Enter memo",
187
187
  value: memo,
188
188
  onChange: handleChangeMemo,
@@ -19,11 +19,11 @@ var jsx_runtime_1 = require("react/jsx-runtime");
19
19
  var material_1 = require("@mui/material");
20
20
  var Text_1 = __importDefault(require("../../Text"));
21
21
  var SvgPath_1 = require("../../SvgPath");
22
- var ThemeProvider_1 = require("../../../../providers/ThemeProvider");
22
+ var mui_1 = require("../../../../theme/mui");
23
23
  var __1 = require("..");
24
24
  function SortByBalance(props) {
25
25
  var sortBalance = props.sortBalance, setSortBalance = props.setSortBalance;
26
- var theme = (0, ThemeProvider_1.useTheme)();
26
+ var theme = (0, mui_1.useTheme)();
27
27
  return ((0, jsx_runtime_1.jsxs)(material_1.Stack, { direction: "row", alignItems: "center", gap: 0.5, onClick: function () {
28
28
  if (sortBalance === __1.SortBalance.ASC) {
29
29
  setSortBalance(__1.SortBalance.DESC);
@@ -31,7 +31,7 @@ function SortByBalance(props) {
31
31
  else {
32
32
  setSortBalance(__1.SortBalance.ASC);
33
33
  }
34
- }, children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign({}, theme.mixins.valueDescription), { color: theme.palette.text.accent, fontWeight: theme.typography.fontWeight600 }), children: "Balance" }), (0, jsx_runtime_1.jsxs)(material_1.Box, { className: "flex flex-col gap-[0.8px]", children: [(0, jsx_runtime_1.jsx)(material_1.SvgIcon, { inheritViewBox: true, sx: {
34
+ }, children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign({}, theme.styleMixins.valueDescription), { color: theme.palette.text.secondary, fontWeight: theme.typography.fontWeight600 }), children: "Balance" }), (0, jsx_runtime_1.jsxs)(material_1.Box, { className: "flex flex-col gap-[0.8px]", children: [(0, jsx_runtime_1.jsx)(material_1.SvgIcon, { inheritViewBox: true, sx: {
35
35
  width: 8,
36
36
  height: 5,
37
37
  transition: "opacity 0.2s ease-in-out",