@lifi/widget 3.19.0-beta.2 → 3.19.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 (385) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/esm/AppDrawer.js +6 -7
  3. package/dist/esm/AppDrawer.js.map +1 -1
  4. package/dist/esm/components/ActiveTransactions/ActiveTransactionItem.js +1 -3
  5. package/dist/esm/components/ActiveTransactions/ActiveTransactionItem.js.map +1 -1
  6. package/dist/esm/components/ActiveTransactions/ActiveTransactions.style.js +3 -2
  7. package/dist/esm/components/ActiveTransactions/ActiveTransactions.style.js.map +1 -1
  8. package/dist/esm/components/AmountInput/AmountInputAdornment.style.js +1 -1
  9. package/dist/esm/components/AmountInput/AmountInputAdornment.style.js.map +1 -1
  10. package/dist/esm/components/AppContainer.js +1 -1
  11. package/dist/esm/components/AppContainer.js.map +1 -1
  12. package/dist/esm/components/Avatar/AccountAvatar.js +1 -1
  13. package/dist/esm/components/Avatar/AccountAvatar.js.map +1 -1
  14. package/dist/esm/components/Avatar/Avatar.style.js +9 -9
  15. package/dist/esm/components/Avatar/Avatar.style.js.map +1 -1
  16. package/dist/esm/components/Avatar/SmallAvatar.js +1 -1
  17. package/dist/esm/components/Avatar/SmallAvatar.js.map +1 -1
  18. package/dist/esm/components/BottomSheet/BottomSheet.js +2 -2
  19. package/dist/esm/components/BottomSheet/BottomSheet.js.map +1 -1
  20. package/dist/esm/components/ButtonTertiary.js +6 -5
  21. package/dist/esm/components/ButtonTertiary.js.map +1 -1
  22. package/dist/esm/components/Card/Card.js +18 -18
  23. package/dist/esm/components/Card/Card.js.map +1 -1
  24. package/dist/esm/components/Card/CardButton.style.js +1 -1
  25. package/dist/esm/components/Card/CardButton.style.js.map +1 -1
  26. package/dist/esm/components/Card/CardHeader.js +2 -2
  27. package/dist/esm/components/Card/CardHeader.js.map +1 -1
  28. package/dist/esm/components/Card/CardIconButton.d.ts +1 -1
  29. package/dist/esm/components/Card/CardIconButton.js +3 -2
  30. package/dist/esm/components/Card/CardIconButton.js.map +1 -1
  31. package/dist/esm/components/Card/CardLabel.js +21 -15
  32. package/dist/esm/components/Card/CardLabel.js.map +1 -1
  33. package/dist/esm/components/Card/CardTitle.js +2 -2
  34. package/dist/esm/components/Card/CardTitle.js.map +1 -1
  35. package/dist/esm/components/Card/InputCard.d.ts +1 -1
  36. package/dist/esm/components/ContractComponent/NFT/NFT.style.js +2 -2
  37. package/dist/esm/components/ContractComponent/NFT/NFT.style.js.map +1 -1
  38. package/dist/esm/components/Dialog.d.ts +2 -10
  39. package/dist/esm/components/Dialog.js +10 -10
  40. package/dist/esm/components/Dialog.js.map +1 -1
  41. package/dist/esm/components/Header/BackButton.js +1 -1
  42. package/dist/esm/components/Header/BackButton.js.map +1 -1
  43. package/dist/esm/components/Header/CloseDrawerButton.js +1 -1
  44. package/dist/esm/components/Header/CloseDrawerButton.js.map +1 -1
  45. package/dist/esm/components/Header/DisconnectIconButton.js +1 -1
  46. package/dist/esm/components/Header/DisconnectIconButton.js.map +1 -1
  47. package/dist/esm/components/Header/Header.style.js +7 -15
  48. package/dist/esm/components/Header/Header.style.js.map +1 -1
  49. package/dist/esm/components/Header/SettingsButton.js +1 -1
  50. package/dist/esm/components/Header/SettingsButton.js.map +1 -1
  51. package/dist/esm/components/Header/SettingsButton.style.js +7 -18
  52. package/dist/esm/components/Header/SettingsButton.style.js.map +1 -1
  53. package/dist/esm/components/Header/TransactionHistoryButton.js +1 -1
  54. package/dist/esm/components/Header/TransactionHistoryButton.js.map +1 -1
  55. package/dist/esm/components/Header/WalletHeader.js +1 -2
  56. package/dist/esm/components/Header/WalletHeader.js.map +1 -1
  57. package/dist/esm/components/Header/WalletMenu.js +1 -3
  58. package/dist/esm/components/Header/WalletMenu.js.map +1 -1
  59. package/dist/esm/components/Header/WalletMenu.style.js +4 -4
  60. package/dist/esm/components/Header/WalletMenu.style.js.map +1 -1
  61. package/dist/esm/components/IconTypography.js +4 -4
  62. package/dist/esm/components/IconTypography.js.map +1 -1
  63. package/dist/esm/components/ListItemButton.js +4 -2
  64. package/dist/esm/components/ListItemButton.js.map +1 -1
  65. package/dist/esm/components/Menu.js +3 -3
  66. package/dist/esm/components/Menu.js.map +1 -1
  67. package/dist/esm/components/Messages/AccountNotDeployedMessage.js +1 -1
  68. package/dist/esm/components/Messages/AccountNotDeployedMessage.js.map +1 -1
  69. package/dist/esm/components/Messages/AlertMessage.style.js +12 -18
  70. package/dist/esm/components/Messages/AlertMessage.style.js.map +1 -1
  71. package/dist/esm/components/Messages/FundsSufficiencyMessage.js +1 -1
  72. package/dist/esm/components/Messages/FundsSufficiencyMessage.js.map +1 -1
  73. package/dist/esm/components/Messages/GasRefuelMessage.js +1 -1
  74. package/dist/esm/components/Messages/GasRefuelMessage.js.map +1 -1
  75. package/dist/esm/components/Messages/GasRefuelMessage.style.js +7 -7
  76. package/dist/esm/components/Messages/GasRefuelMessage.style.js.map +1 -1
  77. package/dist/esm/components/Messages/GasSufficiencyMessage.js +1 -1
  78. package/dist/esm/components/Messages/GasSufficiencyMessage.js.map +1 -1
  79. package/dist/esm/components/Messages/ToAddressRequiredMessage.js +1 -1
  80. package/dist/esm/components/Messages/ToAddressRequiredMessage.js.map +1 -1
  81. package/dist/esm/components/NotFound.js +1 -1
  82. package/dist/esm/components/NotFound.js.map +1 -1
  83. package/dist/esm/components/PoweredBy/PoweredBy.style.js +1 -1
  84. package/dist/esm/components/PoweredBy/PoweredBy.style.js.map +1 -1
  85. package/dist/esm/components/ProgressToNextUpdate.js +6 -6
  86. package/dist/esm/components/ProgressToNextUpdate.js.map +1 -1
  87. package/dist/esm/components/ReverseTokensButton/ReverseTokensButton.js +1 -2
  88. package/dist/esm/components/ReverseTokensButton/ReverseTokensButton.js.map +1 -1
  89. package/dist/esm/components/ReverseTokensButton/ReverseTokensButton.style.js +1 -1
  90. package/dist/esm/components/ReverseTokensButton/ReverseTokensButton.style.js.map +1 -1
  91. package/dist/esm/components/RouteCard/RouteCard.js +1 -2
  92. package/dist/esm/components/RouteCard/RouteCard.js.map +1 -1
  93. package/dist/esm/components/RouteCard/RouteCardEssentials.js +1 -2
  94. package/dist/esm/components/RouteCard/RouteCardEssentials.js.map +1 -1
  95. package/dist/esm/components/RouteCard/RouteCardEssentialsExpanded.js +1 -1
  96. package/dist/esm/components/RouteCard/RouteCardEssentialsExpanded.js.map +1 -1
  97. package/dist/esm/components/RouteCard/RouteCardSkeleton.js +1 -1
  98. package/dist/esm/components/RouteCard/RouteCardSkeleton.js.map +1 -1
  99. package/dist/esm/components/RouteCard/RouteNotFoundCard.js +1 -1
  100. package/dist/esm/components/RouteCard/RouteNotFoundCard.js.map +1 -1
  101. package/dist/esm/components/Routes/Routes.js +1 -1
  102. package/dist/esm/components/Routes/Routes.js.map +1 -1
  103. package/dist/esm/components/Routes/RoutesExpanded.style.js +2 -2
  104. package/dist/esm/components/Routes/RoutesExpanded.style.js.map +1 -1
  105. package/dist/esm/components/Search/SearchInput.js +1 -1
  106. package/dist/esm/components/Search/SearchInput.js.map +1 -1
  107. package/dist/esm/components/Search/SearchInput.style.js +1 -1
  108. package/dist/esm/components/Search/SearchInput.style.js.map +1 -1
  109. package/dist/esm/components/Search/SearchNotFound.js +1 -1
  110. package/dist/esm/components/Search/SearchNotFound.js.map +1 -1
  111. package/dist/esm/components/Search/SearchNotFound.style.js +1 -1
  112. package/dist/esm/components/Search/SearchNotFound.style.js.map +1 -1
  113. package/dist/esm/components/Select.js +4 -4
  114. package/dist/esm/components/Select.js.map +1 -1
  115. package/dist/esm/components/SelectTokenButton/SelectTokenButton.js +4 -2
  116. package/dist/esm/components/SelectTokenButton/SelectTokenButton.js.map +1 -1
  117. package/dist/esm/components/SelectTokenButton/SelectTokenButton.style.js +7 -8
  118. package/dist/esm/components/SelectTokenButton/SelectTokenButton.style.js.map +1 -1
  119. package/dist/esm/components/SendToWallet/SendToWallet.style.js +2 -2
  120. package/dist/esm/components/SendToWallet/SendToWallet.style.js.map +1 -1
  121. package/dist/esm/components/SendToWallet/SendToWalletButton.js +1 -1
  122. package/dist/esm/components/SendToWallet/SendToWalletButton.js.map +1 -1
  123. package/dist/esm/components/SendToWallet/SendToWalletExpandButton.js +1 -1
  124. package/dist/esm/components/SendToWallet/SendToWalletExpandButton.js.map +1 -1
  125. package/dist/esm/components/Skeleton/WidgetSkeleton.js +3 -3
  126. package/dist/esm/components/Skeleton/WidgetSkeleton.js.map +1 -1
  127. package/dist/esm/components/Skeleton/WidgetSkeleton.style.d.ts +1 -1
  128. package/dist/esm/components/Skeleton/WidgetSkeleton.style.js +2 -2
  129. package/dist/esm/components/Skeleton/WidgetSkeleton.style.js.map +1 -1
  130. package/dist/esm/components/Step/CircularProgress.js +3 -5
  131. package/dist/esm/components/Step/CircularProgress.js.map +1 -1
  132. package/dist/esm/components/Step/CircularProgress.style.js +10 -11
  133. package/dist/esm/components/Step/CircularProgress.style.js.map +1 -1
  134. package/dist/esm/components/Step/DestinationWalletAddress.js +1 -2
  135. package/dist/esm/components/Step/DestinationWalletAddress.js.map +1 -1
  136. package/dist/esm/components/Step/StepProcess.js +1 -1
  137. package/dist/esm/components/Step/StepProcess.js.map +1 -1
  138. package/dist/esm/components/StepActions/StepActions.js +1 -3
  139. package/dist/esm/components/StepActions/StepActions.js.map +1 -1
  140. package/dist/esm/components/StepActions/StepActions.style.js +10 -10
  141. package/dist/esm/components/StepActions/StepActions.style.js.map +1 -1
  142. package/dist/esm/components/Switch.js +16 -10
  143. package/dist/esm/components/Switch.js.map +1 -1
  144. package/dist/esm/components/Tabs/Tabs.style.d.ts +1 -1
  145. package/dist/esm/components/Tabs/Tabs.style.js +16 -10
  146. package/dist/esm/components/Tabs/Tabs.style.js.map +1 -1
  147. package/dist/esm/components/TextFitter/TextFitter.js +1 -1
  148. package/dist/esm/components/TextFitter/TextFitter.js.map +1 -1
  149. package/dist/esm/components/Timer/TimerContent.js +1 -1
  150. package/dist/esm/components/Timer/TimerContent.js.map +1 -1
  151. package/dist/esm/components/Token/Token.style.js +6 -6
  152. package/dist/esm/components/Token/Token.style.js.map +1 -1
  153. package/dist/esm/components/TokenList/TokenList.js +1 -5
  154. package/dist/esm/components/TokenList/TokenList.js.map +1 -1
  155. package/dist/esm/components/TokenList/TokenList.style.d.ts +2 -2
  156. package/dist/esm/components/TokenList/TokenList.style.js +3 -2
  157. package/dist/esm/components/TokenList/TokenList.style.js.map +1 -1
  158. package/dist/esm/components/TokenList/TokenListItem.js +1 -1
  159. package/dist/esm/components/TokenList/TokenListItem.js.map +1 -1
  160. package/dist/esm/components/TokenList/types.d.ts +3 -3
  161. package/dist/esm/components/TokenRate/TokenRate.style.js +1 -1
  162. package/dist/esm/components/TokenRate/TokenRate.style.js.map +1 -1
  163. package/dist/esm/components/TransactionDetails.js +1 -3
  164. package/dist/esm/components/TransactionDetails.js.map +1 -1
  165. package/dist/esm/config/version.d.ts +1 -1
  166. package/dist/esm/config/version.js +1 -1
  167. package/dist/esm/config/version.js.map +1 -1
  168. package/dist/esm/hooks/useRoutes.js +4 -4
  169. package/dist/esm/hooks/useRoutes.js.map +1 -1
  170. package/dist/esm/hooks/useSetContentHeight.d.ts +2 -2
  171. package/dist/esm/hooks/useSetContentHeight.js.map +1 -1
  172. package/dist/esm/i18n/en.json +1 -2
  173. package/dist/esm/pages/ActiveTransactionsPage/ActiveTransactionsEmpty.js +1 -1
  174. package/dist/esm/pages/ActiveTransactionsPage/ActiveTransactionsEmpty.js.map +1 -1
  175. package/dist/esm/pages/ActiveTransactionsPage/ActiveTransactionsPage.js +1 -1
  176. package/dist/esm/pages/ActiveTransactionsPage/ActiveTransactionsPage.js.map +1 -1
  177. package/dist/esm/pages/LanguagesPage.js +1 -1
  178. package/dist/esm/pages/LanguagesPage.js.map +1 -1
  179. package/dist/esm/pages/SelectEnabledToolsPage.js +1 -4
  180. package/dist/esm/pages/SelectEnabledToolsPage.js.map +1 -1
  181. package/dist/esm/pages/SelectTokenPage/SelectTokenPage.js +3 -2
  182. package/dist/esm/pages/SelectTokenPage/SelectTokenPage.js.map +1 -1
  183. package/dist/esm/pages/SendToWallet/BookmarkAddressSheet.js +1 -3
  184. package/dist/esm/pages/SendToWallet/BookmarkAddressSheet.js.map +1 -1
  185. package/dist/esm/pages/SendToWallet/BookmarksPage.js +1 -5
  186. package/dist/esm/pages/SendToWallet/BookmarksPage.js.map +1 -1
  187. package/dist/esm/pages/SendToWallet/ConfirmAddressSheet.js +1 -2
  188. package/dist/esm/pages/SendToWallet/ConfirmAddressSheet.js.map +1 -1
  189. package/dist/esm/pages/SendToWallet/ConnectedWalletsPage.js +1 -4
  190. package/dist/esm/pages/SendToWallet/ConnectedWalletsPage.js.map +1 -1
  191. package/dist/esm/pages/SendToWallet/RecentWalletsPage.js +1 -6
  192. package/dist/esm/pages/SendToWallet/RecentWalletsPage.js.map +1 -1
  193. package/dist/esm/pages/SendToWallet/SendToConfiguredWalletPage.js +1 -3
  194. package/dist/esm/pages/SendToWallet/SendToConfiguredWalletPage.js.map +1 -1
  195. package/dist/esm/pages/SendToWallet/SendToWalletPage.js +1 -4
  196. package/dist/esm/pages/SendToWallet/SendToWalletPage.js.map +1 -1
  197. package/dist/esm/pages/SendToWallet/SendToWalletPage.style.d.ts +1 -1
  198. package/dist/esm/pages/SendToWallet/SendToWalletPage.style.js +10 -9
  199. package/dist/esm/pages/SendToWallet/SendToWalletPage.style.js.map +1 -1
  200. package/dist/esm/pages/SettingsPage/BridgeAndExchangeSettings.js +1 -2
  201. package/dist/esm/pages/SettingsPage/BridgeAndExchangeSettings.js.map +1 -1
  202. package/dist/esm/pages/SettingsPage/GasPriceSettings.js +1 -1
  203. package/dist/esm/pages/SettingsPage/GasPriceSettings.js.map +1 -1
  204. package/dist/esm/pages/SettingsPage/LanguageSetting.js +1 -1
  205. package/dist/esm/pages/SettingsPage/LanguageSetting.js.map +1 -1
  206. package/dist/esm/pages/SettingsPage/ResetSettingsButton.js +1 -1
  207. package/dist/esm/pages/SettingsPage/ResetSettingsButton.js.map +1 -1
  208. package/dist/esm/pages/SettingsPage/ResetSettingsButton.style.js +3 -2
  209. package/dist/esm/pages/SettingsPage/ResetSettingsButton.style.js.map +1 -1
  210. package/dist/esm/pages/SettingsPage/RoutePrioritySettings.js +1 -1
  211. package/dist/esm/pages/SettingsPage/RoutePrioritySettings.js.map +1 -1
  212. package/dist/esm/pages/SettingsPage/SlippageSettings/SlippageSettings.js +1 -2
  213. package/dist/esm/pages/SettingsPage/SlippageSettings/SlippageSettings.js.map +1 -1
  214. package/dist/esm/pages/SettingsPage/SlippageSettings/SlippageSettings.style.js +14 -18
  215. package/dist/esm/pages/SettingsPage/SlippageSettings/SlippageSettings.style.js.map +1 -1
  216. package/dist/esm/pages/SettingsPage/ThemeSettings.js +7 -9
  217. package/dist/esm/pages/SettingsPage/ThemeSettings.js.map +1 -1
  218. package/dist/esm/pages/TransactionDetailsPage/TransferIdCard.js +1 -2
  219. package/dist/esm/pages/TransactionDetailsPage/TransferIdCard.js.map +1 -1
  220. package/dist/esm/pages/TransactionHistoryPage/TransactionHistoryEmpty.js +1 -1
  221. package/dist/esm/pages/TransactionHistoryPage/TransactionHistoryEmpty.js.map +1 -1
  222. package/dist/esm/pages/TransactionHistoryPage/TransactionHistorySkeleton.js +2 -2
  223. package/dist/esm/pages/TransactionHistoryPage/TransactionHistorySkeleton.js.map +1 -1
  224. package/dist/esm/pages/TransactionPage/ConfirmToAddressSheet.js +1 -2
  225. package/dist/esm/pages/TransactionPage/ConfirmToAddressSheet.js.map +1 -1
  226. package/dist/esm/pages/TransactionPage/ExchangeRateBottomSheet.js +1 -1
  227. package/dist/esm/pages/TransactionPage/ExchangeRateBottomSheet.js.map +1 -1
  228. package/dist/esm/pages/TransactionPage/StatusBottomSheet.js +1 -4
  229. package/dist/esm/pages/TransactionPage/StatusBottomSheet.js.map +1 -1
  230. package/dist/esm/pages/TransactionPage/StatusBottomSheet.style.js +7 -19
  231. package/dist/esm/pages/TransactionPage/StatusBottomSheet.style.js.map +1 -1
  232. package/dist/esm/pages/TransactionPage/TokenValueBottomSheet.js +1 -1
  233. package/dist/esm/pages/TransactionPage/TokenValueBottomSheet.js.map +1 -1
  234. package/dist/esm/pages/TransactionPage/TransactionPage.js +1 -1
  235. package/dist/esm/pages/TransactionPage/TransactionPage.js.map +1 -1
  236. package/dist/esm/providers/ThemeProvider/ThemeProvider.js +22 -7
  237. package/dist/esm/providers/ThemeProvider/ThemeProvider.js.map +1 -1
  238. package/dist/esm/stores/settings/types.d.ts +2 -1
  239. package/dist/esm/stores/settings/useAppearance.d.ts +2 -0
  240. package/dist/esm/stores/settings/useAppearance.js +11 -0
  241. package/dist/esm/stores/settings/useAppearance.js.map +1 -0
  242. package/dist/esm/stores/settings/useSettingsStore.js +7 -2
  243. package/dist/esm/stores/settings/useSettingsStore.js.map +1 -1
  244. package/dist/esm/stores/settings/utils/getStateValues.js +1 -0
  245. package/dist/esm/stores/settings/utils/getStateValues.js.map +1 -1
  246. package/dist/esm/themes/createTheme.d.ts +2 -1
  247. package/dist/esm/themes/createTheme.js +67 -108
  248. package/dist/esm/themes/createTheme.js.map +1 -1
  249. package/dist/esm/themes/jumper.js +1 -1
  250. package/dist/esm/themes/jumper.js.map +1 -1
  251. package/dist/esm/themes/watermelonLight.js +1 -1
  252. package/dist/esm/themes/watermelonLight.js.map +1 -1
  253. package/dist/esm/types/widget.d.ts +12 -22
  254. package/dist/esm/types/widget.js +1 -0
  255. package/dist/esm/types/widget.js.map +1 -1
  256. package/dist/esm/utils/colors.d.ts +15 -0
  257. package/dist/esm/utils/colors.js +35 -0
  258. package/dist/esm/utils/colors.js.map +1 -0
  259. package/package.json +9 -9
  260. package/package.json.tmp +9 -9
  261. package/src/AppDrawer.tsx +7 -9
  262. package/src/components/ActiveTransactions/ActiveTransactionItem.tsx +1 -3
  263. package/src/components/ActiveTransactions/ActiveTransactions.style.ts +3 -2
  264. package/src/components/AmountInput/AmountInputAdornment.style.tsx +1 -1
  265. package/src/components/AppContainer.tsx +1 -1
  266. package/src/components/Avatar/AccountAvatar.tsx +1 -1
  267. package/src/components/Avatar/Avatar.style.tsx +9 -9
  268. package/src/components/Avatar/SmallAvatar.tsx +1 -1
  269. package/src/components/BottomSheet/BottomSheet.tsx +2 -1
  270. package/src/components/ButtonTertiary.tsx +6 -5
  271. package/src/components/Card/Card.tsx +18 -18
  272. package/src/components/Card/CardButton.style.tsx +1 -1
  273. package/src/components/Card/CardHeader.tsx +2 -2
  274. package/src/components/Card/CardIconButton.tsx +3 -2
  275. package/src/components/Card/CardLabel.tsx +59 -15
  276. package/src/components/Card/CardTitle.tsx +2 -2
  277. package/src/components/ContractComponent/NFT/NFT.style.ts +2 -2
  278. package/src/components/Dialog.tsx +12 -10
  279. package/src/components/Header/BackButton.tsx +1 -1
  280. package/src/components/Header/CloseDrawerButton.tsx +1 -1
  281. package/src/components/Header/DisconnectIconButton.tsx +1 -1
  282. package/src/components/Header/Header.style.ts +7 -15
  283. package/src/components/Header/SettingsButton.style.tsx +10 -17
  284. package/src/components/Header/SettingsButton.tsx +1 -1
  285. package/src/components/Header/TransactionHistoryButton.tsx +1 -1
  286. package/src/components/Header/WalletHeader.tsx +1 -2
  287. package/src/components/Header/WalletMenu.style.tsx +4 -4
  288. package/src/components/Header/WalletMenu.tsx +5 -3
  289. package/src/components/IconTypography.ts +4 -4
  290. package/src/components/ListItemButton.tsx +4 -2
  291. package/src/components/Menu.tsx +3 -3
  292. package/src/components/Messages/AccountNotDeployedMessage.tsx +1 -1
  293. package/src/components/Messages/AlertMessage.style.tsx +16 -18
  294. package/src/components/Messages/FundsSufficiencyMessage.tsx +1 -1
  295. package/src/components/Messages/GasRefuelMessage.style.ts +7 -7
  296. package/src/components/Messages/GasRefuelMessage.tsx +1 -1
  297. package/src/components/Messages/GasSufficiencyMessage.tsx +1 -1
  298. package/src/components/Messages/ToAddressRequiredMessage.tsx +1 -1
  299. package/src/components/NotFound.tsx +1 -1
  300. package/src/components/PoweredBy/PoweredBy.style.ts +1 -1
  301. package/src/components/ProgressToNextUpdate.tsx +6 -6
  302. package/src/components/ReverseTokensButton/ReverseTokensButton.style.tsx +1 -1
  303. package/src/components/ReverseTokensButton/ReverseTokensButton.tsx +1 -2
  304. package/src/components/RouteCard/RouteCard.tsx +1 -2
  305. package/src/components/RouteCard/RouteCardEssentials.tsx +1 -2
  306. package/src/components/RouteCard/RouteCardEssentialsExpanded.tsx +1 -1
  307. package/src/components/RouteCard/RouteCardSkeleton.tsx +1 -1
  308. package/src/components/RouteCard/RouteNotFoundCard.tsx +1 -1
  309. package/src/components/Routes/Routes.tsx +1 -1
  310. package/src/components/Routes/RoutesExpanded.style.ts +2 -2
  311. package/src/components/Search/SearchInput.style.tsx +1 -1
  312. package/src/components/Search/SearchInput.tsx +1 -1
  313. package/src/components/Search/SearchNotFound.style.tsx +1 -1
  314. package/src/components/Search/SearchNotFound.tsx +1 -1
  315. package/src/components/Select.tsx +4 -4
  316. package/src/components/SelectTokenButton/SelectTokenButton.style.tsx +9 -7
  317. package/src/components/SelectTokenButton/SelectTokenButton.tsx +4 -2
  318. package/src/components/SendToWallet/SendToWallet.style.tsx +2 -2
  319. package/src/components/SendToWallet/SendToWalletButton.tsx +1 -1
  320. package/src/components/SendToWallet/SendToWalletExpandButton.tsx +1 -1
  321. package/src/components/Skeleton/WidgetSkeleton.style.tsx +2 -2
  322. package/src/components/Skeleton/WidgetSkeleton.tsx +6 -9
  323. package/src/components/Step/CircularProgress.style.tsx +11 -11
  324. package/src/components/Step/CircularProgress.tsx +8 -5
  325. package/src/components/Step/DestinationWalletAddress.tsx +1 -2
  326. package/src/components/Step/StepProcess.tsx +1 -1
  327. package/src/components/StepActions/StepActions.style.tsx +10 -9
  328. package/src/components/StepActions/StepActions.tsx +1 -3
  329. package/src/components/Switch.tsx +21 -10
  330. package/src/components/Tabs/Tabs.style.tsx +16 -9
  331. package/src/components/TextFitter/TextFitter.tsx +1 -1
  332. package/src/components/Timer/TimerContent.tsx +1 -1
  333. package/src/components/Token/Token.style.tsx +6 -6
  334. package/src/components/TokenList/TokenList.style.tsx +3 -2
  335. package/src/components/TokenList/TokenList.tsx +1 -5
  336. package/src/components/TokenList/TokenListItem.tsx +1 -1
  337. package/src/components/TokenList/types.ts +3 -3
  338. package/src/components/TokenRate/TokenRate.style.ts +1 -1
  339. package/src/components/TransactionDetails.tsx +5 -3
  340. package/src/config/version.ts +1 -1
  341. package/src/hooks/useRoutes.ts +4 -4
  342. package/src/hooks/useSetContentHeight.ts +2 -2
  343. package/src/i18n/en.json +1 -2
  344. package/src/pages/ActiveTransactionsPage/ActiveTransactionsEmpty.tsx +1 -1
  345. package/src/pages/ActiveTransactionsPage/ActiveTransactionsPage.tsx +1 -1
  346. package/src/pages/LanguagesPage.tsx +1 -1
  347. package/src/pages/SelectEnabledToolsPage.tsx +6 -4
  348. package/src/pages/SelectTokenPage/SelectTokenPage.tsx +4 -2
  349. package/src/pages/SendToWallet/BookmarkAddressSheet.tsx +8 -6
  350. package/src/pages/SendToWallet/BookmarksPage.tsx +7 -5
  351. package/src/pages/SendToWallet/ConfirmAddressSheet.tsx +3 -4
  352. package/src/pages/SendToWallet/ConnectedWalletsPage.tsx +6 -4
  353. package/src/pages/SendToWallet/RecentWalletsPage.tsx +8 -6
  354. package/src/pages/SendToWallet/SendToConfiguredWalletPage.tsx +5 -3
  355. package/src/pages/SendToWallet/SendToWalletPage.style.tsx +10 -9
  356. package/src/pages/SendToWallet/SendToWalletPage.tsx +6 -4
  357. package/src/pages/SettingsPage/BridgeAndExchangeSettings.tsx +1 -2
  358. package/src/pages/SettingsPage/GasPriceSettings.tsx +1 -1
  359. package/src/pages/SettingsPage/LanguageSetting.tsx +1 -1
  360. package/src/pages/SettingsPage/ResetSettingsButton.style.tsx +3 -2
  361. package/src/pages/SettingsPage/ResetSettingsButton.tsx +1 -1
  362. package/src/pages/SettingsPage/RoutePrioritySettings.tsx +1 -1
  363. package/src/pages/SettingsPage/SlippageSettings/SlippageSettings.style.tsx +15 -17
  364. package/src/pages/SettingsPage/SlippageSettings/SlippageSettings.tsx +1 -2
  365. package/src/pages/SettingsPage/ThemeSettings.tsx +7 -10
  366. package/src/pages/TransactionDetailsPage/TransferIdCard.tsx +1 -2
  367. package/src/pages/TransactionHistoryPage/TransactionHistoryEmpty.tsx +1 -1
  368. package/src/pages/TransactionHistoryPage/TransactionHistorySkeleton.tsx +2 -2
  369. package/src/pages/TransactionPage/ConfirmToAddressSheet.tsx +3 -4
  370. package/src/pages/TransactionPage/ExchangeRateBottomSheet.tsx +7 -5
  371. package/src/pages/TransactionPage/StatusBottomSheet.style.tsx +7 -19
  372. package/src/pages/TransactionPage/StatusBottomSheet.tsx +6 -4
  373. package/src/pages/TransactionPage/TokenValueBottomSheet.tsx +3 -3
  374. package/src/pages/TransactionPage/TransactionPage.tsx +1 -1
  375. package/src/providers/ThemeProvider/ThemeProvider.tsx +27 -20
  376. package/src/stores/settings/types.ts +2 -1
  377. package/src/stores/settings/useAppearance.ts +15 -0
  378. package/src/stores/settings/useSettingsStore.ts +7 -2
  379. package/src/stores/settings/utils/getStateValues.ts +1 -0
  380. package/src/themes/createTheme.ts +91 -124
  381. package/src/themes/jumper.ts +1 -1
  382. package/src/themes/types.ts +0 -1
  383. package/src/themes/watermelonLight.ts +1 -1
  384. package/src/types/widget.ts +17 -26
  385. package/src/utils/colors.ts +53 -0
@@ -18,6 +18,7 @@ export var HiddenUI;
18
18
  HiddenUI["IntegratorStepDetails"] = "integratorStepDetails";
19
19
  HiddenUI["ReverseTokensButton"] = "reverseTokensButton";
20
20
  HiddenUI["RouteTokenDescription"] = "routeTokenDescription";
21
+ HiddenUI["ChainSelect"] = "chainSelect";
21
22
  })(HiddenUI || (HiddenUI = {}));
22
23
  export var RequiredUI;
23
24
  (function (RequiredUI) {
@@ -1 +1 @@
1
- {"version":3,"file":"widget.js","sourceRoot":"","sources":["../../../src/types/widget.ts"],"names":[],"mappings":"AA2FA,MAAM,CAAN,IAAY,UAKX;AALD,WAAY,UAAU;IACpB,uCAAyB,CAAA;IACzB,qCAAuB,CAAA;IACvB,qCAAuB,CAAA;IACvB,iCAAmB,CAAA;AACrB,CAAC,EALW,UAAU,KAAV,UAAU,QAKrB;AAGD,MAAM,CAAN,IAAY,QAYX;AAZD,WAAY,QAAQ;IAClB,qCAAyB,CAAA;IACzB,mDAAuC,CAAA;IACvC,+BAAmB,CAAA;IACnB,iCAAqB,CAAA;IACrB,mCAAuB,CAAA;IACvB,mCAAuB,CAAA;IACvB,+BAAmB,CAAA;IACnB,qCAAyB,CAAA;IACzB,2DAA+C,CAAA;IAC/C,uDAA2C,CAAA;IAC3C,2DAA+C,CAAA;AACjD,CAAC,EAZW,QAAQ,KAAR,QAAQ,QAYnB;AAGD,MAAM,CAAN,IAAY,UAEX;AAFD,WAAY,UAAU;IACpB,qCAAuB,CAAA;AACzB,CAAC,EAFW,UAAU,KAAV,UAAU,QAErB"}
1
+ {"version":3,"file":"widget.js","sourceRoot":"","sources":["../../../src/types/widget.ts"],"names":[],"mappings":"AAiFA,MAAM,CAAN,IAAY,UAKX;AALD,WAAY,UAAU;IACpB,uCAAyB,CAAA;IACzB,qCAAuB,CAAA;IACvB,qCAAuB,CAAA;IACvB,iCAAmB,CAAA;AACrB,CAAC,EALW,UAAU,KAAV,UAAU,QAKrB;AAGD,MAAM,CAAN,IAAY,QAaX;AAbD,WAAY,QAAQ;IAClB,qCAAyB,CAAA;IACzB,mDAAuC,CAAA;IACvC,+BAAmB,CAAA;IACnB,iCAAqB,CAAA;IACrB,mCAAuB,CAAA;IACvB,mCAAuB,CAAA;IACvB,+BAAmB,CAAA;IACnB,qCAAyB,CAAA;IACzB,2DAA+C,CAAA;IAC/C,uDAA2C,CAAA;IAC3C,2DAA+C,CAAA;IAC/C,uCAA2B,CAAA;AAC7B,CAAC,EAbW,QAAQ,KAAR,QAAQ,QAanB;AAGD,MAAM,CAAN,IAAY,UAEX;AAFD,WAAY,UAAU;IACpB,qCAAuB,CAAA;AACzB,CAAC,EAFW,UAAU,KAAV,UAAU,QAErB"}
@@ -0,0 +1,15 @@
1
+ import type { Theme } from '@mui/material';
2
+ export declare const getContrastAlphaColor: (theme: Theme, value: number) => string;
3
+ export declare const getWarningBackgroundColor: (theme: Theme) => string;
4
+ export declare const getInfoBackgroundColor: (theme: Theme) => string;
5
+ /**
6
+ * https://github.com/mui/material-ui/blob/next/packages/mui-system/src/colorManipulator/colorManipulator.js
7
+ * Blend a transparent overlay color with a background color, resulting in a single
8
+ * RGB color.
9
+ * Remove in favor of MUI one once the next major version is released.
10
+ * @param {string} background - CSS color
11
+ * @param {string} overlay - CSS color
12
+ * @param {number} opacity - Opacity multiplier in the range 0 - 1
13
+ * @param {number} [gamma=1.0] - Gamma correction factor. For gamma-correct blending, 2.2 is usual.
14
+ */
15
+ export declare function blend(background: string, overlay: string, opacity: number, gamma?: number): string;
@@ -0,0 +1,35 @@
1
+ import { alpha, decomposeColor, recomposeColor } from '@mui/material';
2
+ export const getContrastAlphaColor = (theme, value) => theme.palette.mode === 'light'
3
+ ? alpha(theme.palette.common.black, value)
4
+ : alpha(theme.palette.common.white, value);
5
+ export const getWarningBackgroundColor = (theme) => theme.palette.mode === 'light'
6
+ ? alpha(theme.palette.warning.main, 0.32)
7
+ : alpha(theme.palette.warning.main, 0.16);
8
+ export const getInfoBackgroundColor = (theme) => theme.palette.mode === 'light'
9
+ ? alpha(theme.palette.info.main, 0.12)
10
+ : alpha(theme.palette.info.main, 0.16);
11
+ /**
12
+ * https://github.com/mui/material-ui/blob/next/packages/mui-system/src/colorManipulator/colorManipulator.js
13
+ * Blend a transparent overlay color with a background color, resulting in a single
14
+ * RGB color.
15
+ * Remove in favor of MUI one once the next major version is released.
16
+ * @param {string} background - CSS color
17
+ * @param {string} overlay - CSS color
18
+ * @param {number} opacity - Opacity multiplier in the range 0 - 1
19
+ * @param {number} [gamma=1.0] - Gamma correction factor. For gamma-correct blending, 2.2 is usual.
20
+ */
21
+ export function blend(background, overlay, opacity, gamma = 1.0) {
22
+ const blendChannel = (b, o) => Math.round((b ** (1 / gamma) * (1 - opacity) + o ** (1 / gamma) * opacity) ** gamma);
23
+ const backgroundColor = decomposeColor(background);
24
+ const overlayColor = decomposeColor(overlay);
25
+ const rgb = [
26
+ blendChannel(backgroundColor.values[0], overlayColor.values[0]),
27
+ blendChannel(backgroundColor.values[1], overlayColor.values[1]),
28
+ blendChannel(backgroundColor.values[2], overlayColor.values[2]),
29
+ ];
30
+ return recomposeColor({
31
+ type: 'rgb',
32
+ values: rgb,
33
+ });
34
+ }
35
+ //# sourceMappingURL=colors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"colors.js","sourceRoot":"","sources":["../../../src/utils/colors.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAErE,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,KAAY,EAAE,KAAa,EAAE,EAAE,CACnE,KAAK,CAAC,OAAO,CAAC,IAAI,KAAK,OAAO;IAC5B,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC;IAC1C,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,CAAA;AAE9C,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,KAAY,EAAE,EAAE,CACxD,KAAK,CAAC,OAAO,CAAC,IAAI,KAAK,OAAO;IAC5B,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC;IACzC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,CAAA;AAE7C,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,KAAY,EAAE,EAAE,CACrD,KAAK,CAAC,OAAO,CAAC,IAAI,KAAK,OAAO;IAC5B,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC;IACtC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAA;AAE1C;;;;;;;;;GASG;AACH,MAAM,UAAU,KAAK,CACnB,UAAkB,EAClB,OAAe,EACf,OAAe,EACf,KAAK,GAAG,GAAG;IAEX,MAAM,YAAY,GAAG,CAAC,CAAS,EAAE,CAAS,EAAE,EAAE,CAC5C,IAAI,CAAC,KAAK,CACR,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,GAAG,KAAK,CAAC,GAAG,OAAO,CAAC,IAAI,KAAK,CACzE,CAAA;IAEH,MAAM,eAAe,GAAG,cAAc,CAAC,UAAU,CAAC,CAAA;IAClD,MAAM,YAAY,GAAG,cAAc,CAAC,OAAO,CAAC,CAAA;IAE5C,MAAM,GAAG,GAA6B;QACpC,YAAY,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;QAC/D,YAAY,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;QAC/D,YAAY,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;KAChE,CAAA;IAED,OAAO,cAAc,CAAC;QACpB,IAAI,EAAE,KAAK;QACX,MAAM,EAAE,GAAG;KACZ,CAAC,CAAA;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lifi/widget",
3
- "version": "3.19.0-beta.2",
3
+ "version": "3.19.0",
4
4
  "description": "LI.FI Widget for cross-chain bridging and swapping. It will drive your multi-chain strategy and attract new users from everywhere.",
5
5
  "type": "module",
6
6
  "main": "./dist/esm/index.js",
@@ -34,22 +34,22 @@
34
34
  "@bigmi/core": "^0.1.1",
35
35
  "@emotion/react": "^11.14.0",
36
36
  "@emotion/styled": "^11.14.0",
37
- "@lifi/sdk": "^3.6.8",
38
- "@mui/icons-material": "^7.0.2",
39
- "@mui/material": "^7.0.2",
40
- "@mui/system": "^7.0.2",
37
+ "@lifi/sdk": "^3.6.9",
38
+ "@mui/icons-material": "6.0.2",
39
+ "@mui/material": "^6.4.11",
40
+ "@mui/system": "^6.4.11",
41
41
  "@solana/wallet-adapter-base": "^0.9.24",
42
42
  "@solana/web3.js": "^1.98.0",
43
43
  "@tanstack/react-virtual": "^3.13.6",
44
- "i18next": "^25.0.0",
44
+ "i18next": "^25.0.1",
45
45
  "microdiff": "^1.5.0",
46
46
  "mitt": "^3.0.1",
47
- "react-i18next": "^15.4.1",
47
+ "react-i18next": "^15.5.1",
48
48
  "react-intersection-observer": "^9.16.0",
49
49
  "react-router-dom": "^6.30.0",
50
- "viem": "^2.27.0",
50
+ "viem": "^2.28.0",
51
51
  "zustand": "^5.0.3",
52
- "@lifi/wallet-management": "^3.8.0-beta.1"
52
+ "@lifi/wallet-management": "^3.7.5"
53
53
  },
54
54
  "peerDependencies": {
55
55
  "@bigmi/react": ">=0.1.0",
package/package.json.tmp CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lifi/widget",
3
- "version": "3.19.0-beta.2",
3
+ "version": "3.19.0",
4
4
  "description": "LI.FI Widget for cross-chain bridging and swapping. It will drive your multi-chain strategy and attract new users from everywhere.",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -53,21 +53,21 @@
53
53
  "@bigmi/core": "^0.1.1",
54
54
  "@emotion/react": "^11.14.0",
55
55
  "@emotion/styled": "^11.14.0",
56
- "@lifi/sdk": "^3.6.8",
56
+ "@lifi/sdk": "^3.6.9",
57
57
  "@lifi/wallet-management": "workspace:^",
58
- "@mui/icons-material": "^7.0.2",
59
- "@mui/material": "^7.0.2",
60
- "@mui/system": "^7.0.2",
58
+ "@mui/icons-material": "6.0.2",
59
+ "@mui/material": "^6.4.11",
60
+ "@mui/system": "^6.4.11",
61
61
  "@solana/wallet-adapter-base": "^0.9.24",
62
62
  "@solana/web3.js": "^1.98.0",
63
63
  "@tanstack/react-virtual": "^3.13.6",
64
- "i18next": "^25.0.0",
64
+ "i18next": "^25.0.1",
65
65
  "microdiff": "^1.5.0",
66
66
  "mitt": "^3.0.1",
67
- "react-i18next": "^15.4.1",
67
+ "react-i18next": "^15.5.1",
68
68
  "react-intersection-observer": "^9.16.0",
69
69
  "react-router-dom": "^6.30.0",
70
- "viem": "^2.27.0",
70
+ "viem": "^2.28.0",
71
71
  "zustand": "^5.0.3"
72
72
  },
73
73
  "devDependencies": {
@@ -76,7 +76,7 @@
76
76
  "react": "^19.1.0",
77
77
  "react-dom": "^19.1.0",
78
78
  "typescript": "^5.8.3",
79
- "vitest": "^3.1.1"
79
+ "vitest": "^3.1.2"
80
80
  },
81
81
  "peerDependencies": {
82
82
  "@bigmi/react": ">=0.1.0",
package/src/AppDrawer.tsx CHANGED
@@ -73,15 +73,6 @@ export const AppDrawer = forwardRef<
73
73
  open={drawerOpen}
74
74
  onClose={closeDrawer}
75
75
  slotProps={{
76
- paper: {
77
- sx: (theme) => ({
78
- width: theme?.container?.width ?? '100%',
79
- minWidth:
80
- theme?.container?.minWidth ?? theme.breakpoints.values.xs,
81
- maxWidth:
82
- theme?.container?.maxWidth ?? theme.breakpoints.values.sm,
83
- }),
84
- },
85
76
  backdrop: {
86
77
  sx: {
87
78
  backgroundColor: 'rgb(0 0 0 / 48%)',
@@ -89,6 +80,13 @@ export const AppDrawer = forwardRef<
89
80
  },
90
81
  },
91
82
  }}
83
+ PaperProps={{
84
+ sx: (theme) => ({
85
+ width: theme?.container?.width ?? '100%',
86
+ minWidth: theme?.container?.minWidth ?? theme.breakpoints.values.xs,
87
+ maxWidth: theme?.container?.maxWidth ?? theme.breakpoints.values.sm,
88
+ }),
89
+ }}
92
90
  keepMounted
93
91
  >
94
92
  {children}
@@ -1,6 +1,4 @@
1
- import ArrowForward from '@mui/icons-material/ArrowForward'
2
- import ErrorRounded from '@mui/icons-material/ErrorRounded'
3
- import InfoRounded from '@mui/icons-material/InfoRounded'
1
+ import { ArrowForward, ErrorRounded, InfoRounded } from '@mui/icons-material'
4
2
  import { ListItemAvatar, ListItemText, Typography } from '@mui/material'
5
3
  import { useNavigate } from 'react-router-dom'
6
4
  import { useProcessMessage } from '../../hooks/useProcessMessage.js'
@@ -5,14 +5,15 @@ import {
5
5
  listItemSecondaryActionClasses,
6
6
  styled,
7
7
  } from '@mui/material'
8
+ import { getContrastAlphaColor } from '../../utils/colors.js'
8
9
 
9
10
  export const ListItemButton = styled(MuiListItemButton)(({ theme }) => ({
10
- borderRadius: theme.vars.shape.borderRadius,
11
+ borderRadius: theme.shape.borderRadius,
11
12
  paddingLeft: theme.spacing(1.5),
12
13
  paddingRight: theme.spacing(1.5),
13
14
  height: 64,
14
15
  '&:hover': {
15
- backgroundColor: `rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.04)`,
16
+ backgroundColor: getContrastAlphaColor(theme, 0.04),
16
17
  },
17
18
  }))
18
19
 
@@ -10,5 +10,5 @@ export const MaxButton = styled(MuiButton)(({ theme }) => ({
10
10
  export const MaxButtonSkeleton = styled(Skeleton)(({ theme }) => ({
11
11
  width: 46,
12
12
  height: 24,
13
- borderRadius: theme.vars.shape.borderRadiusSecondary,
13
+ borderRadius: theme.shape.borderRadiusSecondary,
14
14
  }))
@@ -48,7 +48,7 @@ export const RelativeContainer = styled(Box, {
48
48
  width: '100%',
49
49
  minWidth: theme.breakpoints.values.xs,
50
50
  maxWidth: theme.breakpoints.values.sm,
51
- background: theme.vars.palette.background.default,
51
+ background: theme.palette.background.default,
52
52
  overflow: 'auto',
53
53
  flex: 1,
54
54
  zIndex: 0,
@@ -1,6 +1,6 @@
1
1
  import type { Account } from '@lifi/wallet-management'
2
2
  import { getConnectorIcon } from '@lifi/wallet-management'
3
- import Wallet from '@mui/icons-material/Wallet'
3
+ import { Wallet } from '@mui/icons-material'
4
4
  import { Badge } from '@mui/material'
5
5
  import { useChain } from '../../hooks/useChain.js'
6
6
  import type { ToAddress } from '../../types/widget.js'
@@ -36,37 +36,37 @@ export const AvatarDefault = styled(Box)(({ theme }) => {
36
36
  display: 'flex',
37
37
  alignItems: 'center',
38
38
  justifyContent: 'center',
39
+ background: theme.palette.grey[800],
39
40
  borderRadius: '50%',
40
41
  height: root?.height,
41
42
  width: root?.width,
42
- color: theme.vars.palette.text.secondary,
43
+ color: theme.palette.text.secondary,
43
44
  mask: avatarMask16,
44
- background: theme.vars.palette.grey[300],
45
- ...theme.applyStyles('dark', {
46
- background: theme.vars.palette.grey[800],
45
+ ...theme.applyStyles('light', {
46
+ background: theme.palette.grey[300],
47
47
  }),
48
48
  }
49
49
  })
50
50
 
51
51
  export const AvatarDefaultBadge = styled(Box)(({ theme }) => {
52
52
  return {
53
+ background: theme.palette.grey[800],
53
54
  borderRadius: '50%',
54
55
  height: 16,
55
56
  width: 16,
56
- background: theme.vars.palette.grey[300],
57
- ...theme.applyStyles('dark', {
58
- background: theme.vars.palette.grey[800],
57
+ ...theme.applyStyles('light', {
58
+ background: theme.palette.grey[300],
59
59
  }),
60
60
  }
61
61
  })
62
62
 
63
63
  export const AvatarSkeletonContainer = styled(Box)(({ theme }) => ({
64
- background: theme.vars.palette.background.paper,
64
+ background: theme.palette.background.paper,
65
65
  borderRadius: '50%',
66
66
  }))
67
67
 
68
68
  export const AvatarSkeletonMaskedContainer = styled(Box)(({ theme }) => ({
69
- background: theme.vars.palette.background.paper,
69
+ background: theme.palette.background.paper,
70
70
  borderRadius: '50%',
71
71
  mask: avatarMask16,
72
72
  }))
@@ -2,7 +2,7 @@ import { Avatar, Skeleton, styled } from '@mui/material'
2
2
  import { AvatarSkeletonContainer } from './Avatar.style.js'
3
3
 
4
4
  export const SmallAvatar = styled(Avatar)(({ theme }) => ({
5
- background: theme.vars.palette.background.paper,
5
+ background: theme.palette.background.paper,
6
6
  width: 16,
7
7
  height: 16,
8
8
  }))
@@ -7,7 +7,7 @@ import {
7
7
  useState,
8
8
  } from 'react'
9
9
  import { useGetScrollableContainer } from '../../hooks/useScrollableContainer.js'
10
- import { modalProps, slotProps } from '../Dialog.js'
10
+ import { modalProps, paperProps, slotProps } from '../Dialog.js'
11
11
  import type { BottomSheetBase, BottomSheetProps } from './types.js'
12
12
 
13
13
  export const BottomSheet = forwardRef<BottomSheetBase, BottomSheetProps>(
@@ -43,6 +43,7 @@ export const BottomSheet = forwardRef<BottomSheetBase, BottomSheetProps>(
43
43
  open={drawerOpen}
44
44
  onClose={close}
45
45
  ModalProps={modalProps}
46
+ PaperProps={paperProps}
46
47
  slotProps={slotProps}
47
48
  disableAutoFocus
48
49
  >
@@ -1,17 +1,18 @@
1
1
  import { Button, buttonClasses, styled } from '@mui/material'
2
+ import { getContrastAlphaColor } from '../utils/colors.js'
2
3
 
3
4
  export const ButtonTertiary = styled(Button)(({ theme }) => ({
4
- color: theme.vars.palette.text.primary,
5
+ color: theme.palette.text.primary,
5
6
  height: 40,
6
7
  fontSize: 14,
7
- backgroundColor: `rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.04)`,
8
+ backgroundColor: getContrastAlphaColor(theme, 0.04),
8
9
  '&:hover, &:active': {
9
- backgroundColor: `rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.08)`,
10
+ backgroundColor: getContrastAlphaColor(theme, 0.08),
10
11
  },
11
12
  [`&.${buttonClasses.loading}:disabled`]: {
12
- backgroundColor: `rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.04)`,
13
+ backgroundColor: getContrastAlphaColor(theme, 0.04),
13
14
  },
14
15
  [`.${buttonClasses.loadingIndicator}`]: {
15
- color: theme.vars.palette.text.primary,
16
+ color: theme.palette.text.primary,
16
17
  },
17
18
  }))
@@ -1,5 +1,5 @@
1
1
  import type { CardProps as MuiCardProps } from '@mui/material'
2
- import { Card as MuiCard, styled } from '@mui/material'
2
+ import { Card as MuiCard, alpha, darken, lighten, styled } from '@mui/material'
3
3
 
4
4
  export interface CardProps extends MuiCardProps {
5
5
  type?: 'default' | 'selected' | 'error'
@@ -26,18 +26,18 @@ export const Card = styled(MuiCard, {
26
26
  type: 'selected',
27
27
  },
28
28
  style: {
29
+ backgroundColor: darken(theme.palette.primary.main, 0.65),
29
30
  borderWidth: 1,
30
31
  borderStyle: 'solid',
31
- borderColor: theme.vars.palette.primary.main,
32
- backgroundColor: `color-mix(in srgb, ${theme.vars.palette.primary.main} 5%, white)`,
32
+ borderColor: theme.palette.primary.main,
33
33
  '&:hover': {
34
- backgroundColor: `color-mix(in srgb, ${theme.vars.palette.primary.main} 10%, white)`,
34
+ backgroundColor: darken(theme.palette.primary.main, 0.6),
35
+ ...theme.applyStyles('light', {
36
+ backgroundColor: lighten(theme.palette.primary.main, 0.9),
37
+ }),
35
38
  },
36
- ...theme.applyStyles('dark', {
37
- backgroundColor: `color-mix(in srgb, ${theme.vars.palette.primary.main} 35%, black)`,
38
- '&:hover': {
39
- backgroundColor: `color-mix(in srgb, ${theme.vars.palette.primary.main} 40%, black)`,
40
- },
39
+ ...theme.applyStyles('light', {
40
+ backgroundColor: lighten(theme.palette.primary.main, 0.95),
41
41
  }),
42
42
  },
43
43
  },
@@ -47,18 +47,18 @@ export const Card = styled(MuiCard, {
47
47
  type: 'selected',
48
48
  },
49
49
  style: {
50
- backgroundColor: `color-mix(in srgb, ${theme.vars.palette.secondary.main} 15%, white)`,
50
+ backgroundColor: darken(theme.palette.secondary.main, 0.76),
51
51
  borderWidth: 1,
52
52
  borderStyle: 'solid',
53
- borderColor: `rgba(${theme.vars.palette.secondary.mainChannel} / 0.2)`,
53
+ borderColor: alpha(theme.palette.secondary.main, 0.2),
54
54
  '&:hover': {
55
- backgroundColor: `color-mix(in srgb, ${theme.vars.palette.secondary.main} 20%, white)`,
55
+ backgroundColor: darken(theme.palette.secondary.main, 0.72),
56
+ ...theme.applyStyles('light', {
57
+ backgroundColor: lighten(theme.palette.secondary.main, 0.8),
58
+ }),
56
59
  },
57
- ...theme.applyStyles('dark', {
58
- backgroundColor: `color-mix(in srgb, ${theme.vars.palette.secondary.main} 24%, black)`,
59
- '&:hover': {
60
- backgroundColor: `color-mix(in srgb, ${theme.vars.palette.secondary.main} 28%, black)`,
61
- },
60
+ ...theme.applyStyles('light', {
61
+ backgroundColor: lighten(theme.palette.secondary.main, 0.85),
62
62
  }),
63
63
  },
64
64
  },
@@ -69,7 +69,7 @@ export const Card = styled(MuiCard, {
69
69
  style: {
70
70
  borderWidth: 1,
71
71
  borderStyle: 'solid',
72
- borderColor: theme.vars.palette.error.main,
72
+ borderColor: theme.palette.error.main,
73
73
  },
74
74
  },
75
75
  ],
@@ -12,7 +12,7 @@ export const CardRowButton = styled(ButtonBase)(({ theme }) => ({
12
12
  justifyContent: 'space-between',
13
13
  alignItems: 'center',
14
14
  padding: theme.spacing(2),
15
- borderRadius: theme.vars.shape.borderRadius,
15
+ borderRadius: theme.shape.borderRadius,
16
16
  }))
17
17
 
18
18
  export const CardRowContainer = styled(Box)(({ theme }) => ({
@@ -13,14 +13,14 @@ export const CardHeader = styled(MuiCardHeader)(({ theme }) => ({
13
13
  fontWeight: 600,
14
14
  fontSize: 18,
15
15
  lineHeight: 1.3334,
16
- color: theme.vars.palette.text.primary,
16
+ color: theme.palette.text.primary,
17
17
  textAlign: 'left',
18
18
  },
19
19
  [`.${cardHeaderClasses.subheader}`]: {
20
20
  fontWeight: 500,
21
21
  fontSize: 12,
22
22
  lineHeight: 1.3334,
23
- color: theme.vars.palette.text.secondary,
23
+ color: theme.palette.text.secondary,
24
24
  textAlign: 'left',
25
25
  },
26
26
  }))
@@ -1,14 +1,15 @@
1
1
  import type { IconButtonProps, LinkProps } from '@mui/material'
2
2
  import { IconButton as MuiIconButton, styled } from '@mui/material'
3
+ import { getContrastAlphaColor } from '../../utils/colors.js'
3
4
 
4
5
  export const CardIconButton = styled(MuiIconButton)<
5
6
  IconButtonProps & Pick<LinkProps, 'href' | 'target' | 'rel'>
6
7
  >(({ theme }) => {
7
8
  return {
8
9
  padding: theme.spacing(0.5),
9
- backgroundColor: `rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.04)`,
10
+ backgroundColor: getContrastAlphaColor(theme, 0.04),
10
11
  '&:hover': {
11
- backgroundColor: `rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.08)`,
12
+ backgroundColor: getContrastAlphaColor(theme, 0.08),
12
13
  },
13
14
  fontSize: '1rem',
14
15
  }
@@ -1,9 +1,16 @@
1
- import { Box, Typography, styled } from '@mui/material'
1
+ import {
2
+ Box,
3
+ Typography,
4
+ getContrastRatio,
5
+ lighten,
6
+ styled,
7
+ } from '@mui/material'
8
+ import { blend } from '../../utils/colors.js'
2
9
 
3
10
  export const CardLabel = styled(Box, {
4
11
  shouldForwardProp: (prop) => prop !== 'variant',
5
12
  })<{ variant?: 'secondary' | 'success' }>(({ theme }) => ({
6
- borderRadius: theme.vars.shape.borderRadius,
13
+ borderRadius: theme.shape.borderRadius,
7
14
  padding: 0,
8
15
  display: 'flex',
9
16
  alignItems: 'center',
@@ -12,30 +19,67 @@ export const CardLabel = styled(Box, {
12
19
  minWidth: 24,
13
20
  userSelect: 'none',
14
21
  fontSize: '1rem',
15
- backgroundColor: `color-mix(in srgb, ${theme.vars.palette.background.paper} 88%, black)`,
16
- color: theme.vars.palette.text.primary,
17
- ...theme.applyStyles('dark', {
18
- backgroundColor: `color-mix(in srgb, ${theme.vars.palette.background.paper} 84%, white)`,
22
+ backgroundColor: blend(
23
+ theme.palette.background.paper,
24
+ theme.palette.common.white,
25
+ 0.16
26
+ ),
27
+ color: theme.palette.text.primary,
28
+ ...theme.applyStyles('light', {
29
+ backgroundColor: blend(
30
+ theme.palette.background.paper,
31
+ theme.palette.common.black,
32
+ 0.12
33
+ ),
19
34
  }),
20
35
  variants: [
21
36
  {
22
37
  props: { variant: 'secondary' },
23
38
  style: {
24
- color: theme.palette.getContrastText(theme.palette.secondary.main),
25
- backgroundColor: `color-mix(in srgb, ${theme.vars.palette.background.paper} 20%, ${theme.vars.palette.secondary.main})`,
26
- ...theme.applyStyles('dark', {
27
- backgroundColor: `color-mix(in srgb, ${theme.vars.palette.background.paper} 20%, ${theme.vars.palette.secondary.main})`,
39
+ backgroundColor: blend(
40
+ theme.palette.background.paper,
41
+ theme.palette.secondary.main,
42
+ 0.8
43
+ ),
44
+ color:
45
+ getContrastRatio(
46
+ theme.palette.common.white,
47
+ blend(
48
+ theme.palette.background.paper,
49
+ theme.palette.secondary.main,
50
+ 0.8
51
+ )
52
+ ) >= 3
53
+ ? theme.palette.common.white
54
+ : theme.palette.common.black,
55
+ ...theme.applyStyles('light', {
56
+ backgroundColor: theme.palette.secondary.main,
57
+ color:
58
+ getContrastRatio(
59
+ theme.palette.common.white,
60
+ theme.palette.secondary.main
61
+ ) >= 3
62
+ ? theme.palette.common.white
63
+ : theme.palette.common.black,
28
64
  }),
29
65
  },
30
66
  },
31
67
  {
32
68
  props: { variant: 'success' },
33
69
  style: {
34
- backgroundColor: `color-mix(in srgb, ${theme.vars.palette.background.paper} 84%, ${theme.vars.palette.success.main})`,
35
- color: theme.vars.palette.success.main,
36
- ...theme.applyStyles('dark', {
37
- backgroundColor: `color-mix(in srgb, ${theme.vars.palette.background.paper} 76%, ${theme.vars.palette.success.main})`,
38
- color: `color-mix(in srgb, ${theme.vars.palette.success.main} 76%, white)`,
70
+ backgroundColor: blend(
71
+ theme.palette.background.paper,
72
+ theme.palette.success.main,
73
+ 0.24
74
+ ),
75
+ color: lighten(theme.palette.success.main, 0.24),
76
+ ...theme.applyStyles('light', {
77
+ backgroundColor: blend(
78
+ theme.palette.background.paper,
79
+ theme.palette.success.main,
80
+ 0.16
81
+ ),
82
+ color: lighten(theme.palette.success.main, 0),
39
83
  }),
40
84
  },
41
85
  },
@@ -8,10 +8,10 @@ export const CardTitle = styled(Typography, {
8
8
  fontWeight: 700,
9
9
  padding: theme.spacing(2, 2, 0, 2),
10
10
  textAlign: 'left',
11
- color: theme.vars.palette.text.primary,
11
+ color: theme.palette.text.primary,
12
12
  '&:after': {
13
13
  content: 'none',
14
- color: theme.vars.palette.error.main,
14
+ color: theme.palette.error.main,
15
15
  },
16
16
  variants: [
17
17
  {
@@ -1,8 +1,8 @@
1
1
  import { Avatar, styled } from '@mui/material'
2
2
 
3
3
  export const PreviewAvatar = styled(Avatar)(({ theme }) => ({
4
- background: theme.vars.palette.background.paper,
4
+ background: theme.palette.background.paper,
5
5
  width: 96,
6
6
  height: 96,
7
- borderRadius: theme.vars.shape.borderRadius,
7
+ borderRadius: theme.shape.borderRadius,
8
8
  }))
@@ -1,4 +1,4 @@
1
- import type { DialogProps, Theme } from '@mui/material'
1
+ import type { DialogProps, PaperProps, Theme } from '@mui/material'
2
2
  import { Dialog as MuiDialog } from '@mui/material'
3
3
  import type { PropsWithChildren } from 'react'
4
4
  import { useGetScrollableContainer } from '../hooks/useScrollableContainer.js'
@@ -10,16 +10,17 @@ export const modalProps = {
10
10
  },
11
11
  }
12
12
 
13
+ export const paperProps: Partial<PaperProps> = {
14
+ sx: (theme: Theme) => ({
15
+ position: 'absolute',
16
+ backgroundImage: 'none',
17
+ backgroundColor: theme.palette.background.default,
18
+ borderTopLeftRadius: theme.shape.borderRadius,
19
+ borderTopRightRadius: theme.shape.borderRadius,
20
+ }),
21
+ }
22
+
13
23
  export const slotProps = {
14
- paper: {
15
- sx: (theme: Theme) => ({
16
- position: 'absolute',
17
- backgroundImage: 'none',
18
- backgroundColor: theme.vars.palette.background.default,
19
- borderTopLeftRadius: theme.vars.shape.borderRadius,
20
- borderTopRightRadius: theme.vars.shape.borderRadius,
21
- }),
22
- },
23
24
  backdrop: {
24
25
  sx: {
25
26
  position: 'absolute',
@@ -41,6 +42,7 @@ export const Dialog: React.FC<PropsWithChildren<DialogProps>> = ({
41
42
  open={open}
42
43
  onClose={onClose}
43
44
  sx={modalProps.sx}
45
+ PaperProps={paperProps}
44
46
  slotProps={slotProps}
45
47
  >
46
48
  {children}
@@ -1,4 +1,4 @@
1
- import ArrowBack from '@mui/icons-material/ArrowBack'
1
+ import { ArrowBack } from '@mui/icons-material'
2
2
  import type { IconButtonProps } from '@mui/material'
3
3
  import { IconButton, useTheme } from '@mui/material'
4
4
 
@@ -1,4 +1,4 @@
1
- import CloseRounded from '@mui/icons-material/CloseRounded'
1
+ import { CloseRounded } from '@mui/icons-material'
2
2
  import { IconButton, Tooltip } from '@mui/material'
3
3
  import { useTranslation } from 'react-i18next'
4
4
  import { useDrawer } from '../../AppDrawerContext.js'