@lifi/widget 3.12.6-beta.0 → 3.13.0

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 (236) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/esm/AppProvider.js +9 -2
  3. package/dist/esm/AppProvider.js.map +1 -1
  4. package/dist/esm/components/ActiveTransactions/ActiveTransactionItem.js +15 -3
  5. package/dist/esm/components/ActiveTransactions/ActiveTransactionItem.js.map +1 -1
  6. package/dist/esm/components/ActiveTransactions/ActiveTransactions.js +4 -1
  7. package/dist/esm/components/ActiveTransactions/ActiveTransactions.js.map +1 -1
  8. package/dist/esm/components/ActiveTransactions/ActiveTransactions.style.d.ts +3 -5
  9. package/dist/esm/components/AlertMessage/AlertMessage.style.js +29 -12
  10. package/dist/esm/components/AlertMessage/AlertMessage.style.js.map +1 -1
  11. package/dist/esm/components/AmountInput/PriceFormHelperText.js +13 -2
  12. package/dist/esm/components/AmountInput/PriceFormHelperText.js.map +1 -1
  13. package/dist/esm/components/AppContainer.js +34 -21
  14. package/dist/esm/components/AppContainer.js.map +1 -1
  15. package/dist/esm/components/Avatar/Avatar.style.d.ts +3 -1
  16. package/dist/esm/components/Avatar/Avatar.style.js +8 -6
  17. package/dist/esm/components/Avatar/Avatar.style.js.map +1 -1
  18. package/dist/esm/components/Card/Card.js +60 -33
  19. package/dist/esm/components/Card/Card.js.map +1 -1
  20. package/dist/esm/components/Card/CardLabel.js +46 -29
  21. package/dist/esm/components/Card/CardLabel.js.map +1 -1
  22. package/dist/esm/components/Card/CardTitle.js +12 -2
  23. package/dist/esm/components/Card/CardTitle.js.map +1 -1
  24. package/dist/esm/components/Card/InputCard.d.ts +1 -1
  25. package/dist/esm/components/ChainSelect/ChainSelect.js +3 -1
  26. package/dist/esm/components/ChainSelect/ChainSelect.js.map +1 -1
  27. package/dist/esm/components/ContractComponent/NFT/NFTBase.js +16 -1
  28. package/dist/esm/components/ContractComponent/NFT/NFTBase.js.map +1 -1
  29. package/dist/esm/components/FeeBreakdownTooltip.js +7 -2
  30. package/dist/esm/components/FeeBreakdownTooltip.js.map +1 -1
  31. package/dist/esm/components/GasMessage/FundsSufficiencyMessage.js +4 -1
  32. package/dist/esm/components/GasMessage/FundsSufficiencyMessage.js.map +1 -1
  33. package/dist/esm/components/GasMessage/GasMessage.style.js +8 -6
  34. package/dist/esm/components/GasMessage/GasMessage.style.js.map +1 -1
  35. package/dist/esm/components/GasMessage/GasRefuelMessage.js +11 -1
  36. package/dist/esm/components/GasMessage/GasRefuelMessage.js.map +1 -1
  37. package/dist/esm/components/GasMessage/GasSufficiencyMessage.js +9 -1
  38. package/dist/esm/components/GasMessage/GasSufficiencyMessage.js.map +1 -1
  39. package/dist/esm/components/Header/NavigationHeader.js +11 -2
  40. package/dist/esm/components/Header/NavigationHeader.js.map +1 -1
  41. package/dist/esm/components/Header/WalletMenu.js +12 -3
  42. package/dist/esm/components/Header/WalletMenu.js.map +1 -1
  43. package/dist/esm/components/IconTypography.js +4 -3
  44. package/dist/esm/components/IconTypography.js.map +1 -1
  45. package/dist/esm/components/ListItem/ListItem.d.ts +2 -4
  46. package/dist/esm/components/ListItem/ListItemButton.d.ts +1 -1
  47. package/dist/esm/components/ListItemButton.d.ts +1 -1
  48. package/dist/esm/components/ListItemButton.js +14 -3
  49. package/dist/esm/components/ListItemButton.js.map +1 -1
  50. package/dist/esm/components/NotFound.js +11 -1
  51. package/dist/esm/components/NotFound.js.map +1 -1
  52. package/dist/esm/components/PageContainer.js +10 -4
  53. package/dist/esm/components/PageContainer.js.map +1 -1
  54. package/dist/esm/components/PoweredBy/PoweredBy.js +14 -2
  55. package/dist/esm/components/PoweredBy/PoweredBy.js.map +1 -1
  56. package/dist/esm/components/PoweredBy/PoweredBy.style.d.ts +1 -1
  57. package/dist/esm/components/ProgressToNextUpdate.js +8 -6
  58. package/dist/esm/components/ProgressToNextUpdate.js.map +1 -1
  59. package/dist/esm/components/RouteCard/RouteCard.js +7 -1
  60. package/dist/esm/components/RouteCard/RouteCard.js.map +1 -1
  61. package/dist/esm/components/RouteCard/RouteCardEssentials.js +28 -2
  62. package/dist/esm/components/RouteCard/RouteCardEssentials.js.map +1 -1
  63. package/dist/esm/components/RouteCard/RouteCardEssentialsExpanded.js +20 -1
  64. package/dist/esm/components/RouteCard/RouteCardEssentialsExpanded.js.map +1 -1
  65. package/dist/esm/components/RouteCard/RouteCardSkeleton.js +12 -2
  66. package/dist/esm/components/RouteCard/RouteCardSkeleton.js.map +1 -1
  67. package/dist/esm/components/RouteCard/RouteNotFoundCard.js +12 -1
  68. package/dist/esm/components/RouteCard/RouteNotFoundCard.js.map +1 -1
  69. package/dist/esm/components/Routes/Routes.js +5 -1
  70. package/dist/esm/components/Routes/Routes.js.map +1 -1
  71. package/dist/esm/components/Routes/RoutesExpanded.js +8 -1
  72. package/dist/esm/components/Routes/RoutesExpanded.js.map +1 -1
  73. package/dist/esm/components/Select.js +16 -5
  74. package/dist/esm/components/Select.js.map +1 -1
  75. package/dist/esm/components/SelectTokenButton/SelectTokenButton.style.js +34 -8
  76. package/dist/esm/components/SelectTokenButton/SelectTokenButton.style.js.map +1 -1
  77. package/dist/esm/components/SendToWallet/SendToWallet.style.js +28 -7
  78. package/dist/esm/components/SendToWallet/SendToWallet.style.js.map +1 -1
  79. package/dist/esm/components/SendToWallet/SendToWalletButton.js +5 -1
  80. package/dist/esm/components/SendToWallet/SendToWalletButton.js.map +1 -1
  81. package/dist/esm/components/SettingsListItemButton.d.ts +1 -1
  82. package/dist/esm/components/Skeleton/WidgetSkeleton.style.d.ts +1 -1
  83. package/dist/esm/components/Step/DestinationWalletAddress.js +10 -2
  84. package/dist/esm/components/Step/DestinationWalletAddress.js.map +1 -1
  85. package/dist/esm/components/Step/Step.js +3 -1
  86. package/dist/esm/components/Step/Step.js.map +1 -1
  87. package/dist/esm/components/Step/StepProcess.js +16 -3
  88. package/dist/esm/components/Step/StepProcess.js.map +1 -1
  89. package/dist/esm/components/Step/StepTimer.js +5 -1
  90. package/dist/esm/components/Step/StepTimer.js.map +1 -1
  91. package/dist/esm/components/StepActions/StepActions.js +22 -3
  92. package/dist/esm/components/StepActions/StepActions.js.map +1 -1
  93. package/dist/esm/components/StepActions/StepActions.style.js +19 -10
  94. package/dist/esm/components/StepActions/StepActions.style.js.map +1 -1
  95. package/dist/esm/components/StepActions/StepFees.js +9 -1
  96. package/dist/esm/components/StepActions/StepFees.js.map +1 -1
  97. package/dist/esm/components/Switch.js +12 -7
  98. package/dist/esm/components/Switch.js.map +1 -1
  99. package/dist/esm/components/Tabs/Tabs.style.d.ts +1 -1
  100. package/dist/esm/components/Tabs/Tabs.style.js +16 -12
  101. package/dist/esm/components/Tabs/Tabs.style.js.map +1 -1
  102. package/dist/esm/components/ToAddressRequiredMessage.js +4 -1
  103. package/dist/esm/components/ToAddressRequiredMessage.js.map +1 -1
  104. package/dist/esm/components/Token/Token.js +47 -6
  105. package/dist/esm/components/Token/Token.js.map +1 -1
  106. package/dist/esm/components/Token/Token.style.js +14 -7
  107. package/dist/esm/components/Token/Token.style.js.map +1 -1
  108. package/dist/esm/components/TokenList/TokenList.style.d.ts +3 -5
  109. package/dist/esm/components/TokenList/TokenListItem.js +21 -4
  110. package/dist/esm/components/TokenList/TokenListItem.js.map +1 -1
  111. package/dist/esm/components/TokenList/VirtualizedTokenList.js +8 -1
  112. package/dist/esm/components/TokenList/VirtualizedTokenList.js.map +1 -1
  113. package/dist/esm/components/TransactionDetails.js +52 -6
  114. package/dist/esm/components/TransactionDetails.js.map +1 -1
  115. package/dist/esm/config/version.d.ts +1 -1
  116. package/dist/esm/config/version.js +1 -1
  117. package/dist/esm/config/version.js.map +1 -1
  118. package/dist/esm/pages/ActiveTransactionsPage/ActiveTransactionsEmpty.js +11 -1
  119. package/dist/esm/pages/ActiveTransactionsPage/ActiveTransactionsEmpty.js.map +1 -1
  120. package/dist/esm/pages/MainPage/MainPage.js +5 -1
  121. package/dist/esm/pages/MainPage/MainPage.js.map +1 -1
  122. package/dist/esm/pages/SelectTokenPage/SelectTokenPage.js +8 -1
  123. package/dist/esm/pages/SelectTokenPage/SelectTokenPage.js.map +1 -1
  124. package/dist/esm/pages/SendToWallet/BookmarkAddressSheet.js +4 -1
  125. package/dist/esm/pages/SendToWallet/BookmarkAddressSheet.js.map +1 -1
  126. package/dist/esm/pages/SendToWallet/ConfirmAddressSheet.js +4 -1
  127. package/dist/esm/pages/SendToWallet/ConfirmAddressSheet.js.map +1 -1
  128. package/dist/esm/pages/SendToWallet/EmptyListIndicator.js +5 -1
  129. package/dist/esm/pages/SendToWallet/EmptyListIndicator.js.map +1 -1
  130. package/dist/esm/pages/SendToWallet/SendToWalletPage.js +7 -1
  131. package/dist/esm/pages/SendToWallet/SendToWalletPage.js.map +1 -1
  132. package/dist/esm/pages/SendToWallet/SendToWalletPage.style.d.ts +1 -1
  133. package/dist/esm/pages/SendToWallet/SendToWalletPage.style.js +6 -6
  134. package/dist/esm/pages/SendToWallet/SendToWalletPage.style.js.map +1 -1
  135. package/dist/esm/pages/SettingsPage/ResetSettingsButton.js +9 -2
  136. package/dist/esm/pages/SettingsPage/ResetSettingsButton.js.map +1 -1
  137. package/dist/esm/pages/SettingsPage/ResetSettingsButton.style.js.map +1 -1
  138. package/dist/esm/pages/SettingsPage/SlippageSettings/SlippageSettings.js +7 -2
  139. package/dist/esm/pages/SettingsPage/SlippageSettings/SlippageSettings.js.map +1 -1
  140. package/dist/esm/pages/SettingsPage/SlippageSettings/SlippageSettings.style.js +4 -3
  141. package/dist/esm/pages/SettingsPage/SlippageSettings/SlippageSettings.style.js.map +1 -1
  142. package/dist/esm/pages/TransactionDetailsPage/TransactionDetailsPage.js +10 -3
  143. package/dist/esm/pages/TransactionDetailsPage/TransactionDetailsPage.js.map +1 -1
  144. package/dist/esm/pages/TransactionDetailsPage/TransactionDetailsSkeleton.js +16 -3
  145. package/dist/esm/pages/TransactionDetailsPage/TransactionDetailsSkeleton.js.map +1 -1
  146. package/dist/esm/pages/TransactionDetailsPage/TransferIdCard.js +6 -1
  147. package/dist/esm/pages/TransactionDetailsPage/TransferIdCard.js.map +1 -1
  148. package/dist/esm/pages/TransactionHistoryPage/TransactionHistoryEmpty.js +11 -1
  149. package/dist/esm/pages/TransactionHistoryPage/TransactionHistoryEmpty.js.map +1 -1
  150. package/dist/esm/pages/TransactionHistoryPage/TransactionHistoryItem.js +14 -2
  151. package/dist/esm/pages/TransactionHistoryPage/TransactionHistoryItem.js.map +1 -1
  152. package/dist/esm/pages/TransactionHistoryPage/TransactionHistorySkeleton.js +10 -2
  153. package/dist/esm/pages/TransactionHistoryPage/TransactionHistorySkeleton.js.map +1 -1
  154. package/dist/esm/pages/TransactionPage/ExchangeRateBottomSheet.js +35 -3
  155. package/dist/esm/pages/TransactionPage/ExchangeRateBottomSheet.js.map +1 -1
  156. package/dist/esm/pages/TransactionPage/StatusBottomSheet.js +12 -2
  157. package/dist/esm/pages/TransactionPage/StatusBottomSheet.js.map +1 -1
  158. package/dist/esm/pages/TransactionPage/TokenValueBottomSheet.js +45 -1
  159. package/dist/esm/pages/TransactionPage/TokenValueBottomSheet.js.map +1 -1
  160. package/dist/esm/pages/TransactionPage/TransactionPage.js +4 -1
  161. package/dist/esm/pages/TransactionPage/TransactionPage.js.map +1 -1
  162. package/package.json +18 -18
  163. package/src/AppProvider.tsx +16 -2
  164. package/src/components/ActiveTransactions/ActiveTransactionItem.tsx +16 -9
  165. package/src/components/ActiveTransactions/ActiveTransactions.tsx +7 -1
  166. package/src/components/AlertMessage/AlertMessage.style.tsx +30 -14
  167. package/src/components/AmountInput/PriceFormHelperText.tsx +12 -10
  168. package/src/components/AppContainer.tsx +34 -23
  169. package/src/components/Avatar/Avatar.style.tsx +8 -8
  170. package/src/components/Card/Card.tsx +60 -37
  171. package/src/components/Card/CardLabel.tsx +69 -43
  172. package/src/components/Card/CardTitle.tsx +12 -2
  173. package/src/components/ChainSelect/ChainSelect.tsx +7 -1
  174. package/src/components/ContractComponent/NFT/NFTBase.tsx +33 -6
  175. package/src/components/FeeBreakdownTooltip.tsx +9 -3
  176. package/src/components/GasMessage/FundsSufficiencyMessage.tsx +7 -1
  177. package/src/components/GasMessage/GasMessage.style.ts +8 -8
  178. package/src/components/GasMessage/GasRefuelMessage.tsx +19 -6
  179. package/src/components/GasMessage/GasSufficiencyMessage.tsx +21 -3
  180. package/src/components/Header/NavigationHeader.tsx +23 -5
  181. package/src/components/Header/WalletMenu.tsx +18 -3
  182. package/src/components/IconTypography.ts +4 -4
  183. package/src/components/ListItemButton.tsx +21 -12
  184. package/src/components/NotFound.tsx +17 -6
  185. package/src/components/PageContainer.ts +19 -15
  186. package/src/components/PoweredBy/PoweredBy.tsx +16 -8
  187. package/src/components/ProgressToNextUpdate.tsx +8 -8
  188. package/src/components/RouteCard/RouteCard.tsx +12 -2
  189. package/src/components/RouteCard/RouteCardEssentials.tsx +38 -16
  190. package/src/components/RouteCard/RouteCardEssentialsExpanded.tsx +30 -11
  191. package/src/components/RouteCard/RouteCardSkeleton.tsx +19 -3
  192. package/src/components/RouteCard/RouteNotFoundCard.tsx +18 -7
  193. package/src/components/Routes/Routes.tsx +10 -2
  194. package/src/components/Routes/RoutesExpanded.tsx +16 -2
  195. package/src/components/Select.tsx +16 -6
  196. package/src/components/SelectTokenButton/SelectTokenButton.style.tsx +34 -8
  197. package/src/components/SendToWallet/SendToWallet.style.tsx +28 -7
  198. package/src/components/SendToWallet/SendToWalletButton.tsx +7 -1
  199. package/src/components/Step/DestinationWalletAddress.tsx +14 -2
  200. package/src/components/Step/Step.tsx +5 -1
  201. package/src/components/Step/StepProcess.tsx +18 -9
  202. package/src/components/Step/StepTimer.tsx +9 -5
  203. package/src/components/StepActions/StepActions.style.tsx +19 -13
  204. package/src/components/StepActions/StepActions.tsx +32 -10
  205. package/src/components/StepActions/StepFees.tsx +9 -4
  206. package/src/components/Switch.tsx +12 -9
  207. package/src/components/Tabs/Tabs.style.tsx +16 -16
  208. package/src/components/ToAddressRequiredMessage.tsx +7 -1
  209. package/src/components/Token/Token.style.tsx +14 -8
  210. package/src/components/Token/Token.tsx +75 -12
  211. package/src/components/TokenList/TokenListItem.tsx +37 -8
  212. package/src/components/TokenList/VirtualizedTokenList.tsx +8 -6
  213. package/src/components/TransactionDetails.tsx +75 -17
  214. package/src/config/version.ts +1 -1
  215. package/src/pages/ActiveTransactionsPage/ActiveTransactionsEmpty.tsx +17 -6
  216. package/src/pages/MainPage/MainPage.tsx +7 -1
  217. package/src/pages/SelectTokenPage/SelectTokenPage.tsx +17 -3
  218. package/src/pages/SendToWallet/BookmarkAddressSheet.tsx +6 -1
  219. package/src/pages/SendToWallet/ConfirmAddressSheet.tsx +6 -1
  220. package/src/pages/SendToWallet/EmptyListIndicator.tsx +7 -1
  221. package/src/pages/SendToWallet/SendToWalletPage.style.tsx +6 -9
  222. package/src/pages/SendToWallet/SendToWalletPage.tsx +17 -3
  223. package/src/pages/SettingsPage/ResetSettingsButton.style.tsx +0 -1
  224. package/src/pages/SettingsPage/ResetSettingsButton.tsx +18 -3
  225. package/src/pages/SettingsPage/SlippageSettings/SlippageSettings.style.tsx +4 -5
  226. package/src/pages/SettingsPage/SlippageSettings/SlippageSettings.tsx +11 -2
  227. package/src/pages/TransactionDetailsPage/TransactionDetailsPage.tsx +16 -4
  228. package/src/pages/TransactionDetailsPage/TransactionDetailsSkeleton.tsx +29 -9
  229. package/src/pages/TransactionDetailsPage/TransferIdCard.tsx +6 -4
  230. package/src/pages/TransactionHistoryPage/TransactionHistoryEmpty.tsx +17 -6
  231. package/src/pages/TransactionHistoryPage/TransactionHistoryItem.tsx +24 -6
  232. package/src/pages/TransactionHistoryPage/TransactionHistorySkeleton.tsx +14 -4
  233. package/src/pages/TransactionPage/ExchangeRateBottomSheet.tsx +70 -11
  234. package/src/pages/TransactionPage/StatusBottomSheet.tsx +27 -4
  235. package/src/pages/TransactionPage/TokenValueBottomSheet.tsx +92 -15
  236. package/src/pages/TransactionPage/TransactionPage.tsx +6 -1
@@ -131,12 +131,14 @@ export const VirtualizedTokenList: FC<VirtualizedTokenListProps> = ({
131
131
  startAdornment={
132
132
  startAdornmentLabel ? (
133
133
  <Typography
134
- fontSize={14}
135
- fontWeight={600}
136
- lineHeight="16px"
137
- px={1.5}
138
- pt={isFirstFeaturedToken ? 0 : 1}
139
- pb={1}
134
+ sx={{
135
+ fontSize: 14,
136
+ fontWeight: 600,
137
+ lineHeight: '16px',
138
+ px: 1.5,
139
+ pt: isFirstFeaturedToken ? 0 : 1,
140
+ pb: 1,
141
+ }}
140
142
  >
141
143
  {startAdornmentLabel}
142
144
  </Typography>
@@ -71,30 +71,48 @@ export const TransactionDetails: React.FC<TransactionDetailsProps> = ({
71
71
 
72
72
  return (
73
73
  <Card selectionColor="secondary" {...props}>
74
- <Box display="flex" alignItems="center" px={2} py={1.75}>
75
- <Box display="flex" flex={1} alignItems="center" justifyContent="left">
74
+ <Box
75
+ sx={{
76
+ display: 'flex',
77
+ alignItems: 'center',
78
+ px: 2,
79
+ py: 1.75,
80
+ }}
81
+ >
82
+ <Box
83
+ sx={{
84
+ display: 'flex',
85
+ flex: 1,
86
+ alignItems: 'center',
87
+ justifyContent: 'left',
88
+ }}
89
+ >
76
90
  <TokenRate route={route} />
77
91
  </Box>
78
92
  <Collapse timeout={100} in={!cardExpanded} mountOnEnter>
79
93
  <FeeBreakdownTooltip gasCosts={gasCosts} feeCosts={feeCosts}>
80
94
  <Box
81
- display="flex"
82
- alignItems="center"
83
95
  onClick={toggleCard}
84
96
  // biome-ignore lint/a11y/useSemanticElements:
85
97
  role="button"
86
- sx={{ cursor: 'pointer' }}
87
- px={1}
98
+ sx={{
99
+ display: 'flex',
100
+ alignItems: 'center',
101
+ px: 1,
102
+ cursor: 'pointer',
103
+ }}
88
104
  >
89
105
  <IconTypography mr={0.5} fontSize={16}>
90
106
  <LocalGasStationRounded fontSize="inherit" />
91
107
  </IconTypography>
92
108
  <Typography
93
- fontSize={14}
94
- color="text.primary"
95
- fontWeight="600"
96
- lineHeight={1.429}
97
109
  data-value={combinedFeesUSD}
110
+ sx={{
111
+ fontSize: 14,
112
+ color: 'text.primary',
113
+ fontWeight: '600',
114
+ lineHeight: 1.429,
115
+ }}
98
116
  >
99
117
  {t('format.currency', { value: combinedFeesUSD })}
100
118
  </Typography>
@@ -110,8 +128,19 @@ export const TransactionDetails: React.FC<TransactionDetailsProps> = ({
110
128
  </CardIconButton>
111
129
  </Box>
112
130
  <Collapse timeout={225} in={cardExpanded} mountOnEnter>
113
- <Box px={2} pb={2}>
114
- <Box display="flex" justifyContent="space-between" mb={0.5}>
131
+ <Box
132
+ sx={{
133
+ px: 2,
134
+ pb: 2,
135
+ }}
136
+ >
137
+ <Box
138
+ sx={{
139
+ display: 'flex',
140
+ justifyContent: 'space-between',
141
+ mb: 0.5,
142
+ }}
143
+ >
115
144
  <Typography variant="body2">{t('main.fees.network')}</Typography>
116
145
  <FeeBreakdownTooltip gasCosts={gasCosts}>
117
146
  <Typography variant="body2">
@@ -122,7 +151,13 @@ export const TransactionDetails: React.FC<TransactionDetailsProps> = ({
122
151
  </FeeBreakdownTooltip>
123
152
  </Box>
124
153
  {feeCosts.length ? (
125
- <Box display="flex" justifyContent="space-between" mb={0.5}>
154
+ <Box
155
+ sx={{
156
+ display: 'flex',
157
+ justifyContent: 'space-between',
158
+ mb: 0.5,
159
+ }}
160
+ >
126
161
  <Typography variant="body2">{t('main.fees.provider')}</Typography>
127
162
  <FeeBreakdownTooltip feeCosts={feeCosts}>
128
163
  <Typography variant="body2">
@@ -134,7 +169,13 @@ export const TransactionDetails: React.FC<TransactionDetailsProps> = ({
134
169
  </Box>
135
170
  ) : null}
136
171
  {showIntegratorFeeCollectionDetails ? (
137
- <Box display="flex" justifyContent="space-between" mb={0.5}>
172
+ <Box
173
+ sx={{
174
+ display: 'flex',
175
+ justifyContent: 'space-between',
176
+ mb: 0.5,
177
+ }}
178
+ >
138
179
  <Typography variant="body2">
139
180
  {feeConfig?.name
140
181
  ? t('main.fees.integrator', { tool: feeConfig.name })
@@ -160,7 +201,13 @@ export const TransactionDetails: React.FC<TransactionDetailsProps> = ({
160
201
  )}
161
202
  </Box>
162
203
  ) : null}
163
- <Box display="flex" justifyContent="space-between" mb={0.5}>
204
+ <Box
205
+ sx={{
206
+ display: 'flex',
207
+ justifyContent: 'space-between',
208
+ mb: 0.5,
209
+ }}
210
+ >
164
211
  <Typography variant="body2">{t('main.priceImpact')}</Typography>
165
212
  <Tooltip title={t('tooltip.priceImpact')} sx={{ cursor: 'help' }}>
166
213
  <Typography variant="body2">
@@ -170,7 +217,13 @@ export const TransactionDetails: React.FC<TransactionDetailsProps> = ({
170
217
  </Box>
171
218
  {!isRouteDone(route) ? (
172
219
  <>
173
- <Box display="flex" justifyContent="space-between" mb={0.5}>
220
+ <Box
221
+ sx={{
222
+ display: 'flex',
223
+ justifyContent: 'space-between',
224
+ mb: 0.5,
225
+ }}
226
+ >
174
227
  <Typography variant="body2">{t('main.maxSlippage')}</Typography>
175
228
  <Tooltip title={t('tooltip.slippage')} sx={{ cursor: 'help' }}>
176
229
  <Typography variant="body2">
@@ -180,7 +233,12 @@ export const TransactionDetails: React.FC<TransactionDetailsProps> = ({
180
233
  </Typography>
181
234
  </Tooltip>
182
235
  </Box>
183
- <Box display="flex" justifyContent="space-between">
236
+ <Box
237
+ sx={{
238
+ display: 'flex',
239
+ justifyContent: 'space-between',
240
+ }}
241
+ >
184
242
  <Typography variant="body2">{t('main.minReceived')}</Typography>
185
243
  <Tooltip
186
244
  title={t('tooltip.minReceived')}
@@ -1,2 +1,2 @@
1
1
  export const name = '@lifi/widget'
2
- export const version = '3.12.6-beta.0'
2
+ export const version = '3.13.0'
@@ -15,17 +15,28 @@ export const ActiveTransactionsEmpty: React.FC = () => {
15
15
  paddingY: 12,
16
16
  }}
17
17
  >
18
- <Typography fontSize={48}>
18
+ <Typography
19
+ sx={{
20
+ fontSize: 48,
21
+ }}
22
+ >
19
23
  <SwapHoriz fontSize="inherit" />
20
24
  </Typography>
21
- <Typography fontSize={18} fontWeight={700}>
25
+ <Typography
26
+ sx={{
27
+ fontSize: 18,
28
+ fontWeight: 700,
29
+ }}
30
+ >
22
31
  {t('info.title.emptyActiveTransactions')}
23
32
  </Typography>
24
33
  <Typography
25
- fontSize={14}
26
- color="text.secondary"
27
- textAlign="center"
28
- mt={2}
34
+ sx={{
35
+ fontSize: 14,
36
+ color: 'text.secondary',
37
+ textAlign: 'center',
38
+ mt: 2,
39
+ }}
29
40
  >
30
41
  {t('info.message.emptyActiveTransactions')}
31
42
  </Typography>
@@ -50,7 +50,13 @@ export const MainPage: React.FC = () => {
50
50
  <SendToWalletButton sx={marginSx} />
51
51
  <GasRefuelMessage mb={2} />
52
52
  <MainMessages mb={2} />
53
- <Box display="flex" mb={showPoweredBy ? 1 : 3} gap={1.5}>
53
+ <Box
54
+ sx={{
55
+ display: 'flex',
56
+ mb: showPoweredBy ? 1 : 3,
57
+ gap: 1.5,
58
+ }}
59
+ >
54
60
  <ReviewButton />
55
61
  <SendToWalletExpandButton />
56
62
  </Box>
@@ -41,13 +41,27 @@ export const SelectTokenPage: FC<FormTypeProps> = ({ formType }) => {
41
41
 
42
42
  return (
43
43
  <FullPageContainer disableGutters>
44
- <Box pb={2} px={3} ref={headerRef}>
44
+ <Box
45
+ ref={headerRef}
46
+ sx={{
47
+ pb: 2,
48
+ px: 3,
49
+ }}
50
+ >
45
51
  {!hideChainSelect ? <ChainSelect formType={formType} /> : null}
46
- <Box mt={!hideChainSelect ? 2 : 0}>
52
+ <Box
53
+ sx={{
54
+ mt: !hideChainSelect ? 2 : 0,
55
+ }}
56
+ >
47
57
  <SearchTokenInput />
48
58
  </Box>
49
59
  </Box>
50
- <Box height={minListHeight}>
60
+ <Box
61
+ sx={{
62
+ height: minListHeight,
63
+ }}
64
+ >
51
65
  <TokenList
52
66
  parentRef={listParentRef}
53
67
  height={tokenListHeight}
@@ -148,7 +148,12 @@ export const BookmarkAddressSheet = forwardRef<
148
148
  {validatedWallet ? (
149
149
  <SheetAddressContainer>
150
150
  {validatedWallet?.name ? (
151
- <Typography fontWeight={600} mb={0.5}>
151
+ <Typography
152
+ sx={{
153
+ fontWeight: 600,
154
+ mb: 0.5,
155
+ }}
156
+ >
152
157
  {validatedWallet?.name}
153
158
  </Typography>
154
159
  ) : null}
@@ -58,7 +58,12 @@ export const ConfirmAddressSheet = forwardRef<
58
58
  <SheetTitle>{t('sendToWallet.confirmWalletAddress')}</SheetTitle>
59
59
  <SheetAddressContainer>
60
60
  {validatedBookmark?.name ? (
61
- <Typography fontWeight={600} mb={0.5}>
61
+ <Typography
62
+ sx={{
63
+ fontWeight: 600,
64
+ mb: 0.5,
65
+ }}
66
+ >
62
67
  {validatedBookmark?.name}
63
68
  </Typography>
64
69
  ) : null}
@@ -11,7 +11,13 @@ export const EmptyListIndicator = ({
11
11
  }: EmptyListIndicatorProps) => (
12
12
  <EmptyContainer>
13
13
  <IconContainer>{icon}</IconContainer>
14
- <Typography fontSize={14} fontWeight={700} color="text.secondary">
14
+ <Typography
15
+ sx={{
16
+ fontSize: 14,
17
+ fontWeight: 700,
18
+ color: 'text.secondary',
19
+ }}
20
+ >
15
21
  {children}
16
22
  </Typography>
17
23
  </EmptyContainer>
@@ -87,15 +87,13 @@ export const IconContainer = styled(Box)(({ theme }) => ({
87
87
  alignItems: 'center',
88
88
  width: 80,
89
89
  height: 80,
90
- color:
91
- theme.palette.mode === 'light'
92
- ? theme.palette.grey[700]
93
- : theme.palette.grey[300],
94
- background:
95
- theme.palette.mode === 'light'
96
- ? theme.palette.grey[200]
97
- : theme.palette.grey[800],
90
+ color: theme.palette.grey[300],
91
+ background: theme.palette.grey[800],
98
92
  borderRadius: '50%',
93
+ ...theme.applyStyles('light', {
94
+ color: theme.palette.grey[700],
95
+ background: theme.palette.grey[200],
96
+ }),
99
97
  }))
100
98
 
101
99
  export const SheetTitle = styled(Typography)(() => ({
@@ -120,7 +118,6 @@ export const BookmarksListContainer = styled(ListContainer)(({ theme }) => ({
120
118
  ? { minHeight: 360, height: 360, flexGrow: 1, overflow: 'auto' }
121
119
  : { minHeight: 440 }),
122
120
  }))
123
-
124
121
  export const BookmarkButtonContainer = styled(Box)(({ theme }) => ({
125
122
  background: theme.palette.background.default,
126
123
  display: 'flex',
@@ -255,7 +255,11 @@ export const SendToWalletPage = () => {
255
255
  onClick={handleRecentWalletsClick}
256
256
  >
257
257
  {!!recentWallets.length && (
258
- <Typography color="text.secondary">
258
+ <Typography
259
+ sx={{
260
+ color: 'text.secondary',
261
+ }}
262
+ >
259
263
  {recentWallets.length}
260
264
  </Typography>
261
265
  )}
@@ -266,7 +270,11 @@ export const SendToWalletPage = () => {
266
270
  onClick={handleConnectedWalletsClick}
267
271
  >
268
272
  {!!connectedWallets.length && (
269
- <Typography color="text.secondary">
273
+ <Typography
274
+ sx={{
275
+ color: 'text.secondary',
276
+ }}
277
+ >
270
278
  {connectedWallets.length}
271
279
  </Typography>
272
280
  )}
@@ -277,7 +285,13 @@ export const SendToWalletPage = () => {
277
285
  onClick={handleBookmarkedWalletsClick}
278
286
  >
279
287
  {!!bookmarks.length && (
280
- <Typography color="text.secondary">{bookmarks.length}</Typography>
288
+ <Typography
289
+ sx={{
290
+ color: 'text.secondary',
291
+ }}
292
+ >
293
+ {bookmarks.length}
294
+ </Typography>
281
295
  )}
282
296
  </CardButton>
283
297
  </Box>
@@ -5,7 +5,6 @@ export const ResetButtonContainer = styled(Box)(({ theme }) => ({
5
5
  background: getContrastAlphaColor(theme, 0.04),
6
6
  borderRadius: '16px',
7
7
  padding: '16px',
8
-
9
8
  svg: {
10
9
  fill: getContrastAlphaColor(theme, 0.4),
11
10
  },
@@ -32,15 +32,30 @@ export const ResetSettingsButton: React.FC = () => {
32
32
  }
33
33
 
34
34
  return (
35
- <Box mt={2}>
35
+ <Box
36
+ sx={{
37
+ mt: 2,
38
+ }}
39
+ >
36
40
  <ResetButtonContainer>
37
- <Box display="flex" marginBottom="12px">
41
+ <Box
42
+ sx={{
43
+ display: 'flex',
44
+ marginBottom: '12px',
45
+ }}
46
+ >
38
47
  <InfoRounded
39
48
  sx={{
40
49
  marginRight: '8px',
41
50
  }}
42
51
  />
43
- <Box fontSize={14}>{t('settings.resetSettings')}</Box>
52
+ <Box
53
+ sx={{
54
+ fontSize: 14,
55
+ }}
56
+ >
57
+ {t('settings.resetSettings')}
58
+ </Box>
44
59
  </Box>
45
60
  <Button onClick={toggleDialog} fullWidth>
46
61
  {t('button.resetSettings')}
@@ -10,14 +10,14 @@ import {
10
10
 
11
11
  export const SettingsFieldSet = styled(Box)(({ theme }) => ({
12
12
  display: 'flex',
13
- backgroundColor:
14
- theme.palette.mode === 'light'
15
- ? alpha(theme.palette.common.black, 0.04)
16
- : alpha(theme.palette.common.white, 0.08),
13
+ backgroundColor: alpha(theme.palette.common.white, 0.08),
17
14
  borderRadius: theme.shape.borderRadius,
18
15
  padding: theme.spacing(0.5),
19
16
  gap: theme.spacing(0.5),
20
17
  height: '3.5rem',
18
+ ...theme.applyStyles('light', {
19
+ backgroundColor: alpha(theme.palette.common.black, 0.04),
20
+ }),
21
21
  }))
22
22
 
23
23
  const slippageControlSelected = (theme: Theme) => ({
@@ -69,7 +69,6 @@ export const SlippageCustomInput = styled(InputBase)<SlippageDefaultProps>(
69
69
  return {
70
70
  height: '100%',
71
71
  width: '100%',
72
-
73
72
  [`.${inputBaseClasses.input}`]: {
74
73
  height: '100%',
75
74
  width: '100%',
@@ -82,7 +82,11 @@ export const SlippageSettings: React.FC = () => {
82
82
  icon={<Percent />}
83
83
  title={t('settings.slippage')}
84
84
  >
85
- <Box mt={1.5}>
85
+ <Box
86
+ sx={{
87
+ mt: 1.5,
88
+ }}
89
+ >
86
90
  <SettingsFieldSet>
87
91
  <SlippageDefaultButton
88
92
  selected={defaultSlippage === slippage && focused !== 'input'}
@@ -115,7 +119,12 @@ export const SlippageSettings: React.FC = () => {
115
119
  {isSlippageOutsideRecommendedLimits && (
116
120
  <SlippageLimitsWarningContainer>
117
121
  <WarningRounded color="warning" />
118
- <Typography fontSize={13} fontWeight={400}>
122
+ <Typography
123
+ sx={{
124
+ fontSize: 13,
125
+ fontWeight: 400,
126
+ }}
127
+ >
119
128
  {t('warning.message.slippageOutsideRecommendedLimits')}
120
129
  </Typography>
121
130
  </SlippageLimitsWarningContainer>
@@ -82,17 +82,25 @@ export const TransactionDetailsPage: React.FC = () => {
82
82
  <PageContainer bottomGutters>
83
83
  <Box
84
84
  sx={{
85
+ pb: 1,
85
86
  display: 'flex',
86
87
  justifyContent: 'space-between',
87
88
  }}
88
- pb={1}
89
89
  >
90
- <Typography fontSize={12}>
90
+ <Typography
91
+ sx={{
92
+ fontSize: 12,
93
+ }}
94
+ >
91
95
  {startedAt.toLocaleString(i18n.language, {
92
96
  dateStyle: 'long',
93
97
  })}
94
98
  </Typography>
95
- <Typography fontSize={12}>
99
+ <Typography
100
+ sx={{
101
+ fontSize: 12,
102
+ }}
103
+ >
96
104
  {startedAt.toLocaleString(i18n.language, {
97
105
  timeStyle: 'short',
98
106
  })}
@@ -111,7 +119,11 @@ export const TransactionDetailsPage: React.FC = () => {
111
119
  />
112
120
  ) : null}
113
121
  <TransferIdCard transferId={supportId} />
114
- <Box mt={2}>
122
+ <Box
123
+ sx={{
124
+ mt: 2,
125
+ }}
126
+ >
115
127
  <ContactSupportButton supportId={supportId} />
116
128
  </Box>
117
129
  </PageContainer>
@@ -8,38 +8,54 @@ export const TransactionDetailsSkeleton = () => {
8
8
  <PageContainer>
9
9
  <Box
10
10
  sx={{
11
+ pb: 1,
12
+ pt: 0.75,
11
13
  display: 'flex',
12
14
  flex: 1,
13
15
  justifyContent: 'space-between',
14
16
  }}
15
- pb={1}
16
- pt={0.75}
17
17
  >
18
18
  <Skeleton width={96} height={20} variant="text" />
19
19
  <Skeleton width={40} height={20} variant="text" />
20
20
  </Box>
21
21
  <Card sx={{ paddingX: 2, marginBottom: 3 }}>
22
- <Box pt={2.5}>
22
+ <Box
23
+ sx={{
24
+ pt: 2.5,
25
+ }}
26
+ >
23
27
  <Skeleton width={64} height={12} variant="rounded" />
24
28
  </Box>
25
- <Box py={1}>
29
+ <Box
30
+ sx={{
31
+ py: 1,
32
+ }}
33
+ >
26
34
  {/* Token skeleton */}
27
- <Box py={1}>
35
+ <Box
36
+ sx={{
37
+ py: 1,
38
+ }}
39
+ >
28
40
  <TokenSkeleton />
29
41
  </Box>
30
42
  {/* Bridge skeleton */}
31
- <Box py={1}>
43
+ <Box
44
+ sx={{
45
+ py: 1,
46
+ }}
47
+ >
32
48
  <TokenSkeleton disableDescription />
33
49
  </Box>
34
50
  {/* Steps skeleton */}
35
51
  {Array.from({ length: 3 }).map((_, key) => (
36
52
  <Box
53
+ key={key}
37
54
  sx={{
55
+ py: 1,
38
56
  display: 'flex',
39
57
  alignItems: 'center',
40
58
  }}
41
- py={1}
42
- key={key}
43
59
  >
44
60
  <Skeleton
45
61
  variant="rounded"
@@ -60,7 +76,11 @@ export const TransactionDetailsSkeleton = () => {
60
76
  </Box>
61
77
  ))}
62
78
  {/* Receiving Token skeleton */}
63
- <Box py={1}>
79
+ <Box
80
+ sx={{
81
+ py: 1,
82
+ }}
83
+ >
64
84
  <TokenSkeleton />
65
85
  </Box>
66
86
  </Box>
@@ -55,10 +55,12 @@ export const TransferIdCard = ({ transferId }: TransferIdCardProps) => {
55
55
  </Box>
56
56
  <Typography
57
57
  variant="body2"
58
- pt={1}
59
- pb={2}
60
- px={2}
61
- sx={{ wordBreak: 'break-all' }}
58
+ sx={{
59
+ pt: 1,
60
+ pb: 2,
61
+ px: 2,
62
+ wordBreak: 'break-all',
63
+ }}
62
64
  >
63
65
  {transferId}
64
66
  </Typography>
@@ -15,17 +15,28 @@ export const TransactionHistoryEmpty: React.FC = () => {
15
15
  paddingY: 12,
16
16
  }}
17
17
  >
18
- <Typography fontSize={48}>
18
+ <Typography
19
+ sx={{
20
+ fontSize: 48,
21
+ }}
22
+ >
19
23
  <ReceiptLongRounded fontSize="inherit" />
20
24
  </Typography>
21
- <Typography fontSize={18} fontWeight={700}>
25
+ <Typography
26
+ sx={{
27
+ fontSize: 18,
28
+ fontWeight: 700,
29
+ }}
30
+ >
22
31
  {t('info.title.emptyTransactionHistory')}
23
32
  </Typography>
24
33
  <Typography
25
- fontSize={14}
26
- color="text.secondary"
27
- textAlign="center"
28
- mt={2}
34
+ sx={{
35
+ fontSize: 14,
36
+ color: 'text.secondary',
37
+ textAlign: 'center',
38
+ mt: 2,
39
+ }}
29
40
  >
30
41
  {t('info.message.emptyTransactionHistory')}
31
42
  </Typography>