@lifi/widget 3.0.0-alpha.25 → 3.0.0-alpha.26

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 (244) hide show
  1. package/AppDrawer.style.tsx +1 -2
  2. package/_esm/AppDrawer.js +1 -2
  3. package/_esm/AppDrawer.style.js +1 -2
  4. package/_esm/AppDrawer.style.js.map +1 -1
  5. package/_esm/components/AccountAvatar.js +1 -1
  6. package/_esm/components/ActiveTransactions/ActiveTransactionItem.js +1 -3
  7. package/_esm/components/ActiveTransactions/ActiveTransactions.style.js +1 -3
  8. package/_esm/components/ActiveTransactions/ActiveTransactions.style.js.map +1 -1
  9. package/_esm/components/AlertMessage/AlertMessage.style.js +1 -2
  10. package/_esm/components/AlertMessage/AlertMessage.style.js.map +1 -1
  11. package/_esm/components/AmountInput/AmountInput.style.js +1 -3
  12. package/_esm/components/AmountInput/AmountInput.style.js.map +1 -1
  13. package/_esm/components/AmountInput/AmountInputAdornment.style.js +1 -2
  14. package/_esm/components/AmountInput/AmountInputAdornment.style.js.map +1 -1
  15. package/_esm/components/AppContainer.js +1 -2
  16. package/_esm/components/AppContainer.js.map +1 -1
  17. package/_esm/components/Card/Card.js +1 -3
  18. package/_esm/components/Card/Card.js.map +1 -1
  19. package/_esm/components/Card/CardButton.style.js +1 -2
  20. package/_esm/components/Card/CardButton.style.js.map +1 -1
  21. package/_esm/components/Card/CardHeader.js +1 -3
  22. package/_esm/components/Card/CardHeader.js.map +1 -1
  23. package/_esm/components/Card/CardIconButton.js +1 -2
  24. package/_esm/components/Card/CardIconButton.js.map +1 -1
  25. package/_esm/components/Card/CardLabel.js +1 -2
  26. package/_esm/components/Card/CardLabel.js.map +1 -1
  27. package/_esm/components/Card/CardTitle.js +1 -2
  28. package/_esm/components/Card/CardTitle.js.map +1 -1
  29. package/_esm/components/ChainSelect/ChainSelect.style.js +1 -2
  30. package/_esm/components/ChainSelect/ChainSelect.style.js.map +1 -1
  31. package/_esm/components/GasMessage/FundsSufficiencyMessage.js +2 -3
  32. package/_esm/components/GasMessage/FundsSufficiencyMessage.js.map +1 -1
  33. package/_esm/components/GasMessage/GasMessage.style.d.ts +1 -1
  34. package/_esm/components/GasMessage/GasMessage.style.js +1 -2
  35. package/_esm/components/GasMessage/GasMessage.style.js.map +1 -1
  36. package/_esm/components/GasMessage/GasRefuelMessage.js +1 -1
  37. package/_esm/components/GasMessage/GasSufficiencyMessage.js +1 -1
  38. package/_esm/components/Header/CloseDrawerButton.js +1 -1
  39. package/_esm/components/Header/EVMDisconnectIconButton.js +1 -1
  40. package/_esm/components/Header/Header.style.js +1 -3
  41. package/_esm/components/Header/Header.style.js.map +1 -1
  42. package/_esm/components/Header/NavigationHeader.js +1 -1
  43. package/_esm/components/Header/SVMDisconnectIconButton.js +1 -1
  44. package/_esm/components/Header/SettingsButton.js +1 -1
  45. package/_esm/components/Header/SettingsButton.style.js +1 -3
  46. package/_esm/components/Header/SettingsButton.style.js.map +1 -1
  47. package/_esm/components/Header/TransactionHistoryButton.js +1 -1
  48. package/_esm/components/Header/WalletHeader.js +1 -2
  49. package/_esm/components/Header/WalletMenu.js +1 -3
  50. package/_esm/components/Header/WalletMenu.style.js +1 -5
  51. package/_esm/components/Header/WalletMenu.style.js.map +1 -1
  52. package/_esm/components/Input.js +1 -3
  53. package/_esm/components/Input.js.map +1 -1
  54. package/_esm/components/Insurance/InsuranceCard.js +1 -1
  55. package/_esm/components/ListItem/ListItem.js +1 -4
  56. package/_esm/components/ListItem/ListItem.js.map +1 -1
  57. package/_esm/components/ListItem/ListItemButton.d.ts +1 -1
  58. package/_esm/components/ListItem/ListItemButton.js +1 -1
  59. package/_esm/components/ListItem/ListItemButton.js.map +1 -1
  60. package/_esm/components/ListItemButton.js +1 -2
  61. package/_esm/components/ListItemButton.js.map +1 -1
  62. package/_esm/components/ListItemText.js +1 -3
  63. package/_esm/components/ListItemText.js.map +1 -1
  64. package/_esm/components/Menu.js +1 -2
  65. package/_esm/components/Menu.js.map +1 -1
  66. package/_esm/components/NFT/NFT.style.js +1 -2
  67. package/_esm/components/NFT/NFT.style.js.map +1 -1
  68. package/_esm/components/NotFound.js +1 -1
  69. package/_esm/components/PageContainer.js +1 -2
  70. package/_esm/components/PageContainer.js.map +1 -1
  71. package/_esm/components/PoweredBy/PoweredBy.style.js +1 -2
  72. package/_esm/components/PoweredBy/PoweredBy.style.js.map +1 -1
  73. package/_esm/components/ReverseTokensButton/ReverseTokensButton.js +1 -2
  74. package/_esm/components/ReverseTokensButton/ReverseTokensButton.style.js +1 -2
  75. package/_esm/components/ReverseTokensButton/ReverseTokensButton.style.js.map +1 -1
  76. package/_esm/components/RouteCard/RouteCard.js +1 -3
  77. package/_esm/components/RouteCard/RouteCard.style.js +1 -2
  78. package/_esm/components/RouteCard/RouteCard.style.js.map +1 -1
  79. package/_esm/components/RouteCard/RouteCardEssentials.js +1 -2
  80. package/_esm/components/RouteCard/RouteCardEssentialsExpanded.js +1 -3
  81. package/_esm/components/RouteCard/RouteNotFoundCard.js +1 -1
  82. package/_esm/components/Routes/RoutesExpanded.style.js +1 -2
  83. package/_esm/components/Routes/RoutesExpanded.style.js.map +1 -1
  84. package/_esm/components/Select.js +1 -6
  85. package/_esm/components/Select.js.map +1 -1
  86. package/_esm/components/SelectTokenButton/SelectTokenButton.style.d.ts +2 -2
  87. package/_esm/components/SelectTokenButton/SelectTokenButton.style.js +1 -2
  88. package/_esm/components/SelectTokenButton/SelectTokenButton.style.js.map +1 -1
  89. package/_esm/components/SendToWallet/SendToWallet.style.d.ts +2 -2
  90. package/_esm/components/SendToWallet/SendToWallet.style.js +1 -2
  91. package/_esm/components/SendToWallet/SendToWallet.style.js.map +1 -1
  92. package/_esm/components/SendToWallet/SendToWalletExpandButton.js +1 -1
  93. package/_esm/components/SettingsListItemButton.d.ts +1 -1
  94. package/_esm/components/SettingsListItemButton.js +1 -1
  95. package/_esm/components/SettingsListItemButton.js.map +1 -1
  96. package/_esm/components/SmallAvatar.js +1 -2
  97. package/_esm/components/SmallAvatar.js.map +1 -1
  98. package/_esm/components/Step/CircularProgress.js +2 -5
  99. package/_esm/components/Step/CircularProgress.js.map +1 -1
  100. package/_esm/components/Step/CircularProgress.style.js +1 -3
  101. package/_esm/components/Step/CircularProgress.style.js.map +1 -1
  102. package/_esm/components/Step/DestinationWalletAddress.js +1 -2
  103. package/_esm/components/Step/StepProcess.js +1 -1
  104. package/_esm/components/Step/StepProcess.style.js +1 -2
  105. package/_esm/components/Step/StepProcess.style.js.map +1 -1
  106. package/_esm/components/Step/StepTimer.js +2 -1
  107. package/_esm/components/Step/StepTimer.js.map +1 -1
  108. package/_esm/components/StepActions/StepActions.js +1 -3
  109. package/_esm/components/StepActions/StepActions.style.js +1 -4
  110. package/_esm/components/StepActions/StepActions.style.js.map +1 -1
  111. package/_esm/components/StepActions/StepFeeBreakdown.js +1 -1
  112. package/_esm/components/StepDivider/StepDivider.style.js +1 -2
  113. package/_esm/components/StepDivider/StepDivider.style.js.map +1 -1
  114. package/_esm/components/Switch.js +1 -3
  115. package/_esm/components/Switch.js.map +1 -1
  116. package/_esm/components/Tabs/Tabs.style.js +1 -2
  117. package/_esm/components/Tabs/Tabs.style.js.map +1 -1
  118. package/_esm/components/TextFitter/TextFitter.js +1 -1
  119. package/_esm/components/TextFitter/TextFitter.js.map +1 -1
  120. package/_esm/components/Token/Token.style.js +1 -2
  121. package/_esm/components/Token/Token.style.js.map +1 -1
  122. package/_esm/components/TokenAvatar/TokenAvatar.style.js +1 -4
  123. package/_esm/components/TokenAvatar/TokenAvatar.style.js.map +1 -1
  124. package/_esm/components/TokenList/TokenList.style.js +1 -2
  125. package/_esm/components/TokenList/TokenList.style.js.map +1 -1
  126. package/_esm/components/TokenList/TokenListItem.js +1 -1
  127. package/_esm/components/TokenList/TokenNotFound.js +1 -1
  128. package/_esm/components/TokenList/useTokenSelect.js +2 -1
  129. package/_esm/components/TokenList/useTokenSelect.js.map +1 -1
  130. package/_esm/config/theme.js +14 -13
  131. package/_esm/config/theme.js.map +1 -1
  132. package/_esm/config/version.d.ts +1 -1
  133. package/_esm/config/version.js +1 -1
  134. package/_esm/i18n/index.js +14 -14
  135. package/_esm/i18n/index.js.map +1 -1
  136. package/_esm/icons/InsuraceLogo.js +1 -1
  137. package/_esm/icons/InsuraceLogo.js.map +1 -1
  138. package/_esm/pages/ActiveTransactionsPage/ActiveTransactionsEmpty.js +1 -1
  139. package/_esm/pages/ActiveTransactionsPage/ActiveTransactionsPage.js +1 -1
  140. package/_esm/pages/LanguagesPage/LanguagesPage.js +1 -1
  141. package/_esm/pages/MainPage/MainPage.style.js +1 -2
  142. package/_esm/pages/MainPage/MainPage.style.js.map +1 -1
  143. package/_esm/pages/RoutesPage/RoutesPage.style.js +1 -2
  144. package/_esm/pages/RoutesPage/RoutesPage.style.js.map +1 -1
  145. package/_esm/pages/SelectEnabledToolsPage/SelectEnabledToolsPage.js +1 -4
  146. package/_esm/pages/SelectTokenPage/SearchTokenInput.js +1 -1
  147. package/_esm/pages/SelectTokenPage/SearchTokenInput.style.d.ts +1 -1
  148. package/_esm/pages/SelectTokenPage/SearchTokenInput.style.js +1 -1
  149. package/_esm/pages/SelectTokenPage/SearchTokenInput.style.js.map +1 -1
  150. package/_esm/pages/SendToWallet/BookmarkAddressSheet.js +1 -2
  151. package/_esm/pages/SendToWallet/BookmarksPage.js +1 -5
  152. package/_esm/pages/SendToWallet/ConfirmAddressSheet.js +1 -2
  153. package/_esm/pages/SendToWallet/ConnectedWalletsPage.js +1 -4
  154. package/_esm/pages/SendToWallet/RecentWalletsPage.js +1 -6
  155. package/_esm/pages/SendToWallet/SendToConfiguredWalletPage.js +1 -3
  156. package/_esm/pages/SendToWallet/SendToWalletPage.js +1 -4
  157. package/_esm/pages/SettingsPage/BridgeAndExchangeSettings.js +1 -2
  158. package/_esm/pages/SettingsPage/GasPriceSettings.js +1 -1
  159. package/_esm/pages/SettingsPage/LanguageSetting.js +1 -1
  160. package/_esm/pages/SettingsPage/ResetSettingsButton.js +1 -1
  161. package/_esm/pages/SettingsPage/ResetSettingsButton.style.js +1 -2
  162. package/_esm/pages/SettingsPage/ResetSettingsButton.style.js.map +1 -1
  163. package/_esm/pages/SettingsPage/RoutePrioritySettings.js +1 -1
  164. package/_esm/pages/SettingsPage/SendToWalletOptionSetting.js +1 -1
  165. package/_esm/pages/SettingsPage/SettingsCard/SettingCard.style.js +1 -3
  166. package/_esm/pages/SettingsPage/SettingsCard/SettingCard.style.js.map +1 -1
  167. package/_esm/pages/SettingsPage/SlippageSettings/SlippageSettings.js +1 -2
  168. package/_esm/pages/SettingsPage/SlippageSettings/SlippageSettings.style.js +1 -3
  169. package/_esm/pages/SettingsPage/SlippageSettings/SlippageSettings.style.js.map +1 -1
  170. package/_esm/pages/SettingsPage/ThemeSettings.js +1 -3
  171. package/_esm/pages/TransactionDetailsPage/TransactionDetailsPage.js +1 -1
  172. package/_esm/pages/TransactionHistoryPage/TransactionHistoryEmpty.js +1 -1
  173. package/_esm/pages/TransactionPage/ExchangeRateBottomSheet.js +1 -1
  174. package/_esm/pages/TransactionPage/StatusBottomSheet.js +1 -4
  175. package/_esm/pages/TransactionPage/StatusBottomSheet.style.js +1 -2
  176. package/_esm/pages/TransactionPage/StatusBottomSheet.style.js.map +1 -1
  177. package/_esm/pages/TransactionPage/TokenValueBottomSheet.js +1 -1
  178. package/_esm/pages/TransactionPage/TransactionPage.js +1 -1
  179. package/_esm/providers/ThemeProvider/ThemeProvider.js +1 -2
  180. package/_esm/providers/ThemeProvider/ThemeProvider.js.map +1 -1
  181. package/_esm/utils/colors.d.ts +0 -1
  182. package/_esm/utils/colors.js +1 -5
  183. package/_esm/utils/colors.js.map +1 -1
  184. package/components/ActiveTransactions/ActiveTransactions.style.ts +2 -2
  185. package/components/AlertMessage/AlertMessage.style.tsx +1 -2
  186. package/components/AmountInput/AmountInput.style.tsx +7 -3
  187. package/components/AmountInput/AmountInputAdornment.style.tsx +1 -2
  188. package/components/AppContainer.tsx +1 -2
  189. package/components/Card/Card.tsx +8 -3
  190. package/components/Card/CardButton.style.tsx +1 -2
  191. package/components/Card/CardHeader.tsx +5 -3
  192. package/components/Card/CardIconButton.tsx +1 -2
  193. package/components/Card/CardLabel.tsx +1 -2
  194. package/components/Card/CardTitle.tsx +1 -2
  195. package/components/ChainSelect/ChainSelect.style.tsx +1 -2
  196. package/components/GasMessage/FundsSufficiencyMessage.tsx +1 -2
  197. package/components/GasMessage/GasMessage.style.ts +1 -2
  198. package/components/Header/Header.style.ts +9 -3
  199. package/components/Header/SettingsButton.style.tsx +7 -3
  200. package/components/Header/WalletMenu.style.tsx +7 -5
  201. package/components/Input.tsx +1 -3
  202. package/components/ListItem/ListItem.tsx +6 -4
  203. package/components/ListItem/ListItemButton.tsx +1 -1
  204. package/components/ListItemButton.tsx +1 -2
  205. package/components/ListItemText.tsx +5 -3
  206. package/components/Menu.tsx +1 -1
  207. package/components/NFT/NFT.style.ts +1 -2
  208. package/components/PageContainer.ts +1 -2
  209. package/components/PoweredBy/PoweredBy.style.ts +1 -2
  210. package/components/ReverseTokensButton/ReverseTokensButton.style.tsx +6 -2
  211. package/components/RouteCard/RouteCard.style.ts +1 -2
  212. package/components/Routes/RoutesExpanded.style.ts +1 -2
  213. package/components/Select.tsx +8 -6
  214. package/components/SelectTokenButton/SelectTokenButton.style.tsx +1 -2
  215. package/components/SendToWallet/SendToWallet.style.tsx +1 -2
  216. package/components/SettingsListItemButton.tsx +1 -1
  217. package/components/SmallAvatar.tsx +1 -2
  218. package/components/Step/CircularProgress.style.tsx +8 -3
  219. package/components/Step/CircularProgress.tsx +1 -1
  220. package/components/Step/StepProcess.style.tsx +1 -2
  221. package/components/Step/StepTimer.tsx +2 -1
  222. package/components/StepActions/StepActions.style.tsx +3 -3
  223. package/components/StepDivider/StepDivider.style.tsx +1 -2
  224. package/components/Switch.tsx +6 -3
  225. package/components/Tabs/Tabs.style.tsx +2 -1
  226. package/components/TextFitter/TextFitter.tsx +1 -1
  227. package/components/Token/Token.style.tsx +1 -2
  228. package/components/TokenAvatar/TokenAvatar.style.tsx +7 -4
  229. package/components/TokenList/TokenList.style.tsx +1 -2
  230. package/components/TokenList/useTokenSelect.ts +2 -1
  231. package/config/theme.ts +19 -13
  232. package/config/version.ts +1 -1
  233. package/i18n/index.ts +14 -14
  234. package/icons/InsuraceLogo.tsx +1 -1
  235. package/package.json +2 -2
  236. package/pages/MainPage/MainPage.style.tsx +1 -2
  237. package/pages/RoutesPage/RoutesPage.style.ts +1 -2
  238. package/pages/SelectTokenPage/SearchTokenInput.style.tsx +1 -1
  239. package/pages/SettingsPage/ResetSettingsButton.style.tsx +1 -2
  240. package/pages/SettingsPage/SettingsCard/SettingCard.style.tsx +1 -3
  241. package/pages/SettingsPage/SlippageSettings/SlippageSettings.style.tsx +8 -3
  242. package/pages/TransactionPage/StatusBottomSheet.style.tsx +1 -2
  243. package/providers/ThemeProvider/ThemeProvider.tsx +4 -2
  244. package/utils/colors.ts +1 -7
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import WarningRounded from '@mui/icons-material/esm/WarningRounded.js';
2
+ import { WarningRounded } from '@mui/icons-material';
3
3
  import { Box, Button, Typography } from '@mui/material';
4
4
  import { forwardRef, useRef } from 'react';
5
5
  import { useTranslation } from 'react-i18next';
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import Delete from '@mui/icons-material/esm/Delete.js';
2
+ import { Delete } from '@mui/icons-material';
3
3
  import { Box, Button, Tooltip } from '@mui/material';
4
4
  import { useEffect, useRef, useState } from 'react';
5
5
  import { useTranslation } from 'react-i18next';
@@ -1,6 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { useMediaQuery } from '@mui/material';
3
- import { ThemeProvider as MuiThemeProvider } from '@mui/material/styles';
2
+ import { ThemeProvider as MuiThemeProvider, useMediaQuery, } from '@mui/material';
4
3
  import { useEffect, useMemo, useState } from 'react';
5
4
  import { createTheme } from '../../config/theme.js';
6
5
  import { useAppearance } from '../../stores/settings/useAppearance.js';
@@ -1 +1 @@
1
- {"version":3,"file":"ThemeProvider.js","sourceRoot":"","sources":["../../../providers/ThemeProvider/ThemeProvider.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,aAAa,IAAI,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACzE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AACvE,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAEtE,MAAM,CAAC,MAAM,aAAa,GAA0C,CAAC,EACnE,QAAQ,GACT,EAAE,EAAE;IACH,MAAM,EAAE,UAAU,EAAE,eAAe,EAAE,KAAK,EAAE,WAAW,EAAE,GAAG,eAAe,EAAE,CAAC;IAC9E,MAAM,eAAe,GAAG,aAAa,CAAC,8BAA8B,CAAC,CAAC;IACtE,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,aAAa,EAAE,CAAC;IACpD,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAC9B,eAAe,IAAI,UAAU,KAAK,MAAM;QACtC,CAAC,CAAC,eAAe;YACf,CAAC,CAAC,MAAM;YACR,CAAC,CAAC,OAAO;QACX,CAAC,CAAC,UAAU,CACf,CAAC;IAEF,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,UAAU,KAAK,MAAM,EAAE,CAAC;YAC1B,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;QAC9C,CAAC;aAAM,CAAC;YACN,OAAO,CAAC,UAAU,CAAC,CAAC;QACtB,CAAC;IACH,CAAC,EAAE,CAAC,UAAU,EAAE,eAAe,CAAC,CAAC,CAAC;IAElC,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,eAAe,EAAE,CAAC;YACpB,aAAa,CAAC,eAAe,CAAC,CAAC;QACjC,CAAC;QACD,uDAAuD;IACzD,CAAC,EAAE,CAAC,eAAe,CAAC,CAAC,CAAC;IAEtB,MAAM,KAAK,GAAG,OAAO,CACnB,GAAG,EAAE,CAAC,WAAW,CAAC,IAAI,EAAE,WAAW,CAAC,EACpC,CAAC,IAAI,EAAE,WAAW,CAAC,CACpB,CAAC;IACF,OAAO,KAAC,gBAAgB,IAAC,KAAK,EAAE,KAAK,YAAG,QAAQ,GAAoB,CAAC;AACvE,CAAC,CAAC"}
1
+ {"version":3,"file":"ThemeProvider.js","sourceRoot":"","sources":["../../../providers/ThemeProvider/ThemeProvider.tsx"],"names":[],"mappings":";AACA,OAAO,EACL,aAAa,IAAI,gBAAgB,EACjC,aAAa,GACd,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AACvE,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAEtE,MAAM,CAAC,MAAM,aAAa,GAA0C,CAAC,EACnE,QAAQ,GACT,EAAE,EAAE;IACH,MAAM,EAAE,UAAU,EAAE,eAAe,EAAE,KAAK,EAAE,WAAW,EAAE,GAAG,eAAe,EAAE,CAAC;IAC9E,MAAM,eAAe,GAAG,aAAa,CAAC,8BAA8B,CAAC,CAAC;IACtE,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,aAAa,EAAE,CAAC;IACpD,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAC9B,eAAe,IAAI,UAAU,KAAK,MAAM;QACtC,CAAC,CAAC,eAAe;YACf,CAAC,CAAC,MAAM;YACR,CAAC,CAAC,OAAO;QACX,CAAC,CAAC,UAAU,CACf,CAAC;IAEF,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,UAAU,KAAK,MAAM,EAAE,CAAC;YAC1B,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;QAC9C,CAAC;aAAM,CAAC;YACN,OAAO,CAAC,UAAU,CAAC,CAAC;QACtB,CAAC;IACH,CAAC,EAAE,CAAC,UAAU,EAAE,eAAe,CAAC,CAAC,CAAC;IAElC,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,eAAe,EAAE,CAAC;YACpB,aAAa,CAAC,eAAe,CAAC,CAAC;QACjC,CAAC;QACD,uDAAuD;IACzD,CAAC,EAAE,CAAC,eAAe,CAAC,CAAC,CAAC;IAEtB,MAAM,KAAK,GAAG,OAAO,CACnB,GAAG,EAAE,CAAC,WAAW,CAAC,IAAI,EAAE,WAAW,CAAC,EACpC,CAAC,IAAI,EAAE,WAAW,CAAC,CACpB,CAAC;IACF,OAAO,KAAC,gBAAgB,IAAC,KAAK,EAAE,KAAK,YAAG,QAAQ,GAAoB,CAAC;AACvE,CAAC,CAAC"}
@@ -1,6 +1,5 @@
1
1
  import type { PaletteMode, Theme } from '@mui/material';
2
2
  export declare const getContrastAlphaColor: (mode: PaletteMode, alpha: string | number) => string;
3
- export declare const getContrastTextColor: (theme: Theme, background?: string) => "#fff" | "#000";
4
3
  export declare const getWarningBackgroundColor: (theme: Theme) => string;
5
4
  export declare const getInfoBackgroundColor: (theme: Theme) => string;
6
5
  export declare const getCardFieldsetBackgroundColor: (theme: Theme) => string;
@@ -1,9 +1,5 @@
1
- import { common } from '@mui/material/colors';
2
- import { alpha, getContrastRatio } from '@mui/material/styles';
1
+ import { alpha } from '@mui/material';
3
2
  export const getContrastAlphaColor = (mode, alpha) => mode === 'light' ? `rgb(0 0 0 / ${alpha})` : `rgb(255 255 255 / ${alpha})`;
4
- export const getContrastTextColor = (theme, background) => getContrastRatio(common.white, background ?? theme.palette.primary.main) >= 3
5
- ? common.white
6
- : common.black;
7
3
  export const getWarningBackgroundColor = (theme) => theme.palette.mode === 'light'
8
4
  ? alpha(theme.palette.warning.main, 0.32)
9
5
  : alpha(theme.palette.warning.main, 0.16);
@@ -1 +1 @@
1
- {"version":3,"file":"colors.js","sourceRoot":"","sources":["../../utils/colors.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,MAAM,CAAC,MAAM,qBAAqB,GAAG,CACnC,IAAiB,EACjB,KAAsB,EACtB,EAAE,CACF,IAAI,KAAK,OAAO,CAAC,CAAC,CAAC,eAAe,KAAK,GAAG,CAAC,CAAC,CAAC,qBAAqB,KAAK,GAAG,CAAC;AAE7E,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,KAAY,EAAE,UAAmB,EAAE,EAAE,CACxE,gBAAgB,CAAC,MAAM,CAAC,KAAK,EAAE,UAAU,IAAI,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC;IAC3E,CAAC,CAAC,MAAM,CAAC,KAAK;IACd,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;AAEnB,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,CAAC;AAE9C,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,CAAC;AAE3C,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,KAAY,EAAE,EAAE,CAC7D,KAAK,CAAC,OAAO,CAAC,IAAI,KAAK,MAAM;IAC3B,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC;IACzB,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC"}
1
+ {"version":3,"file":"colors.js","sourceRoot":"","sources":["../../utils/colors.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEtC,MAAM,CAAC,MAAM,qBAAqB,GAAG,CACnC,IAAiB,EACjB,KAAsB,EACtB,EAAE,CACF,IAAI,KAAK,OAAO,CAAC,CAAC,CAAC,eAAe,KAAK,GAAG,CAAC,CAAC,CAAC,qBAAqB,KAAK,GAAG,CAAC;AAE7E,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,CAAC;AAE9C,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,CAAC;AAE3C,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,KAAY,EAAE,EAAE,CAC7D,KAAK,CAAC,OAAO,CAAC,IAAI,KAAK,MAAM;IAC3B,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC;IACzB,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC"}
@@ -2,9 +2,9 @@ import {
2
2
  Button,
3
3
  ListItem as MuiListItem,
4
4
  ListItemButton as MuiListItemButton,
5
+ listItemSecondaryActionClasses,
6
+ styled,
5
7
  } from '@mui/material';
6
- import { listItemSecondaryActionClasses } from '@mui/material/ListItemSecondaryAction';
7
- import { styled } from '@mui/material/styles';
8
8
  import { getContrastAlphaColor } from '../../utils/colors.js';
9
9
 
10
10
  export const ListItemButton = styled(MuiListItemButton)(({ theme }) => ({
@@ -1,5 +1,4 @@
1
- import { Box } from '@mui/material';
2
- import { alpha, darken, lighten, styled } from '@mui/material/styles';
1
+ import { Box, alpha, darken, lighten, styled } from '@mui/material';
3
2
  import {
4
3
  getInfoBackgroundColor,
5
4
  getWarningBackgroundColor,
@@ -1,6 +1,10 @@
1
- import { Box, InputBase, FormControl as MuiFormControl } from '@mui/material';
2
- import { inputBaseClasses } from '@mui/material/InputBase';
3
- import { styled } from '@mui/material/styles';
1
+ import {
2
+ Box,
3
+ InputBase,
4
+ FormControl as MuiFormControl,
5
+ inputBaseClasses,
6
+ styled,
7
+ } from '@mui/material';
4
8
 
5
9
  export const maxInputFontSize = 24;
6
10
  export const minInputFontSize = 14;
@@ -1,5 +1,4 @@
1
- import { Button as MuiButton, Skeleton } from '@mui/material';
2
- import { styled } from '@mui/material/styles';
1
+ import { Button as MuiButton, Skeleton, styled } from '@mui/material';
3
2
 
4
3
  export const MaxButton = styled(MuiButton)(({ theme }) => ({
5
4
  padding: theme.spacing(0.5, 1, 0.625, 1),
@@ -1,5 +1,4 @@
1
- import { Box, Container, ScopedCssBaseline } from '@mui/material';
2
- import { styled } from '@mui/material/styles';
1
+ import { Box, Container, ScopedCssBaseline, styled } from '@mui/material';
3
2
  import type { PropsWithChildren } from 'react';
4
3
  import { useWidgetConfig } from '../providers/WidgetProvider/WidgetProvider.js';
5
4
  import type { WidgetVariant } from '../types/widget.js';
@@ -1,7 +1,12 @@
1
1
  import type { BoxProps, Theme } from '@mui/material';
2
- import { Box } from '@mui/material';
3
- import { badgeClasses } from '@mui/material/Badge';
4
- import { alpha, darken, lighten, styled } from '@mui/material/styles';
2
+ import {
3
+ Box,
4
+ alpha,
5
+ badgeClasses,
6
+ darken,
7
+ lighten,
8
+ styled,
9
+ } from '@mui/material';
5
10
  import type { MouseEventHandler } from 'react';
6
11
 
7
12
  type CardVariant = 'default' | 'selected' | 'error';
@@ -1,5 +1,4 @@
1
- import { styled } from '@mui/material/styles';
2
- import { Box, ButtonBase, Typography } from '@mui/material';
1
+ import { Box, ButtonBase, Typography, styled } from '@mui/material';
3
2
 
4
3
  export const CardRowButton = styled(ButtonBase)(({ theme }) => ({
5
4
  background: 'none',
@@ -1,6 +1,8 @@
1
- import { CardHeader as MuiCardHeader } from '@mui/material';
2
- import { cardHeaderClasses } from '@mui/material/CardHeader';
3
- import { styled } from '@mui/material/styles';
1
+ import {
2
+ CardHeader as MuiCardHeader,
3
+ cardHeaderClasses,
4
+ styled,
5
+ } from '@mui/material';
4
6
 
5
7
  export const CardHeader = styled(MuiCardHeader)(({ theme }) => ({
6
8
  [`.${cardHeaderClasses.action}`]: {
@@ -1,5 +1,4 @@
1
- import { IconButton as MuiIconButton } from '@mui/material';
2
- import { alpha, styled } from '@mui/material/styles';
1
+ import { IconButton as MuiIconButton, alpha, styled } from '@mui/material';
3
2
 
4
3
  export const CardIconButton = styled(MuiIconButton)(({ theme }) => {
5
4
  const backgroundColor =
@@ -1,5 +1,4 @@
1
- import { Box, Typography } from '@mui/material';
2
- import { alpha, lighten, styled } from '@mui/material/styles';
1
+ import { Box, Typography, alpha, lighten, styled } from '@mui/material';
3
2
 
4
3
  export const CardLabel = styled(Box, {
5
4
  shouldForwardProp: (prop) => prop !== 'type',
@@ -1,5 +1,4 @@
1
- import { Typography } from '@mui/material';
2
- import { styled } from '@mui/material/styles';
1
+ import { Typography, styled } from '@mui/material';
3
2
 
4
3
  export const CardTitle = styled(Typography, {
5
4
  shouldForwardProp: (prop) => !['required'].includes(prop as string),
@@ -1,5 +1,4 @@
1
- import { Box } from '@mui/material';
2
- import { styled } from '@mui/material/styles';
1
+ import { Box, styled } from '@mui/material';
3
2
  import { Card } from '../../components/Card/Card.js';
4
3
 
5
4
  export const ChainCard = styled(Card)({
@@ -1,6 +1,5 @@
1
1
  import { WarningRounded } from '@mui/icons-material';
2
- import { Typography } from '@mui/material';
3
- import { styled } from '@mui/material/styles';
2
+ import { Typography, styled } from '@mui/material';
4
3
  import { useTranslation } from 'react-i18next';
5
4
  import { AlertMessage } from '../AlertMessage/AlertMessage.js';
6
5
 
@@ -1,5 +1,4 @@
1
- import { switchClasses } from '@mui/material/Switch';
2
- import { alpha, styled } from '@mui/material/styles';
1
+ import { alpha, styled, switchClasses } from '@mui/material';
3
2
  import { Switch } from '../Switch.js';
4
3
 
5
4
  export const InfoMessageSwitch = styled(Switch)(({ theme }) => ({
@@ -1,6 +1,12 @@
1
- import { AppBar, Box, Button, badgeClasses } from '@mui/material';
2
- import { buttonClasses } from '@mui/material/Button';
3
- import { alpha, styled } from '@mui/material/styles';
1
+ import {
2
+ AppBar,
3
+ Box,
4
+ Button,
5
+ alpha,
6
+ badgeClasses,
7
+ buttonClasses,
8
+ styled,
9
+ } from '@mui/material';
4
10
  import { Tabs } from '../Tabs/Tabs.style.js';
5
11
 
6
12
  export const HeaderAppBar = styled(AppBar)(({ theme }) => ({
@@ -1,6 +1,10 @@
1
- import { IconButton, Badge as MuiBadge } from '@mui/material';
2
- import { badgeClasses } from '@mui/material/Badge';
3
- import { darken, styled } from '@mui/material/styles';
1
+ import {
2
+ IconButton,
3
+ Badge as MuiBadge,
4
+ badgeClasses,
5
+ darken,
6
+ styled,
7
+ } from '@mui/material';
4
8
  import {
5
9
  getInfoBackgroundColor,
6
10
  getWarningBackgroundColor,
@@ -1,8 +1,10 @@
1
- import { Menu as MuiMenu } from '@mui/material';
2
- import { menuClasses } from '@mui/material/Menu';
3
- import { menuItemClasses } from '@mui/material/MenuItem';
4
- import { styled } from '@mui/material/styles';
5
- import { svgIconClasses } from '@mui/material/SvgIcon';
1
+ import {
2
+ Menu as MuiMenu,
3
+ menuClasses,
4
+ menuItemClasses,
5
+ styled,
6
+ svgIconClasses,
7
+ } from '@mui/material';
6
8
 
7
9
  export const WalletMenuContainer = styled(MuiMenu)(({ theme }) => ({
8
10
  [`& .${menuClasses.paper}`]: {
@@ -1,6 +1,4 @@
1
- import { InputBase } from '@mui/material';
2
- import { inputBaseClasses } from '@mui/material/InputBase';
3
- import { styled } from '@mui/material/styles';
1
+ import { InputBase, inputBaseClasses, styled } from '@mui/material';
4
2
 
5
3
  export const Input = styled(InputBase)(({ theme }) => ({
6
4
  backgroundColor:
@@ -1,7 +1,9 @@
1
- import { styled } from '@mui/material/styles';
2
- import { ListItem as MuiListItem } from '@mui/material';
3
- import { listItemSecondaryActionClasses } from '@mui/material/ListItemSecondaryAction';
4
- import { listItemTextClasses } from '@mui/material/ListItemText';
1
+ import {
2
+ ListItem as MuiListItem,
3
+ listItemSecondaryActionClasses,
4
+ listItemTextClasses,
5
+ styled,
6
+ } from '@mui/material';
5
7
 
6
8
  export const ListItem = styled(MuiListItem)(({ theme }) => ({
7
9
  height: 64,
@@ -1,4 +1,4 @@
1
- import { styled } from '@mui/material/styles';
1
+ import { styled } from '@mui/material';
2
2
  import { ListItemButton as ListItemButtonBase } from '../ListItemButton.js';
3
3
 
4
4
  export const ListItemButton = styled(ListItemButtonBase)(({ theme }) => ({
@@ -1,5 +1,4 @@
1
- import { ListItemButton as MuiListItemButton } from '@mui/material';
2
- import { styled } from '@mui/material/styles';
1
+ import { ListItemButton as MuiListItemButton, styled } from '@mui/material';
3
2
  import { getContrastAlphaColor } from '../utils/colors.js';
4
3
 
5
4
  export const ListItemButton = styled(MuiListItemButton)(
@@ -1,6 +1,8 @@
1
- import { ListItemText as MuiListItemText } from '@mui/material';
2
- import { listItemTextClasses } from '@mui/material/ListItemText';
3
- import { styled } from '@mui/material/styles';
1
+ import {
2
+ ListItemText as MuiListItemText,
3
+ listItemTextClasses,
4
+ styled,
5
+ } from '@mui/material';
4
6
 
5
7
  export const ListItemText = styled(MuiListItemText)(({ theme }) => ({
6
8
  [`.${listItemTextClasses.primary}`]: {
@@ -1,8 +1,8 @@
1
- import { styled } from '@mui/material/styles';
2
1
  import {
3
2
  Menu as MuiMenu,
4
3
  menuClasses,
5
4
  menuItemClasses,
5
+ styled,
6
6
  svgIconClasses,
7
7
  } from '@mui/material';
8
8
 
@@ -1,5 +1,4 @@
1
- import { Avatar } from '@mui/material';
2
- import { styled } from '@mui/material/styles';
1
+ import { Avatar, styled } from '@mui/material';
3
2
 
4
3
  export const PreviewAvatar = styled(Avatar)(({ theme }) => ({
5
4
  background: theme.palette.background.paper,
@@ -1,5 +1,4 @@
1
- import { Container } from '@mui/material';
2
- import { styled } from '@mui/material/styles';
1
+ import { Container, styled } from '@mui/material';
3
2
 
4
3
  export interface PageContainerProps {
5
4
  halfGutters?: boolean;
@@ -1,5 +1,4 @@
1
- import { Link as MuiLink } from '@mui/material';
2
- import { styled } from '@mui/material/styles';
1
+ import { Link as MuiLink, styled } from '@mui/material';
3
2
 
4
3
  export const Link = styled(MuiLink)(({ theme }) => ({
5
4
  display: 'flex',
@@ -1,5 +1,9 @@
1
- import { IconButton as MuiIconButton } from '@mui/material';
2
- import { darken, lighten, styled } from '@mui/material/styles';
1
+ import {
2
+ IconButton as MuiIconButton,
3
+ darken,
4
+ lighten,
5
+ styled,
6
+ } from '@mui/material';
3
7
 
4
8
  export const IconButton = styled(MuiIconButton)(({ theme }) => ({
5
9
  height: 32,
@@ -1,5 +1,4 @@
1
- import { Box, Typography } from '@mui/material';
2
- import { alpha, styled } from '@mui/material/styles';
1
+ import { Box, Typography, alpha, styled } from '@mui/material';
3
2
 
4
3
  export const IconTypography = styled(Typography)(({ theme }) => ({
5
4
  color:
@@ -1,5 +1,4 @@
1
- import { Box, ScopedCssBaseline } from '@mui/material';
2
- import { styled } from '@mui/material/styles';
1
+ import { Box, ScopedCssBaseline, styled } from '@mui/material';
3
2
  import { maxHeight } from '../AppContainer.js';
4
3
 
5
4
  export const CollapseContainer = styled(Box)(({ theme }) => ({
@@ -1,9 +1,11 @@
1
- import { Select as MuiSelect } from '@mui/material';
2
- import { inputBaseClasses } from '@mui/material/InputBase';
3
- import { listItemIconClasses } from '@mui/material/ListItemIcon';
4
- import { outlinedInputClasses } from '@mui/material/OutlinedInput';
5
- import { selectClasses } from '@mui/material/Select';
6
- import { styled } from '@mui/material/styles';
1
+ import {
2
+ Select as MuiSelect,
3
+ inputBaseClasses,
4
+ listItemIconClasses,
5
+ outlinedInputClasses,
6
+ selectClasses,
7
+ styled,
8
+ } from '@mui/material';
7
9
 
8
10
  export const Select = styled(MuiSelect, {
9
11
  shouldForwardProp: (prop) => prop !== 'dense',
@@ -1,5 +1,4 @@
1
- import { cardHeaderClasses } from '@mui/material/CardHeader';
2
- import { styled } from '@mui/material/styles';
1
+ import { cardHeaderClasses, styled } from '@mui/material';
3
2
  import { CardHeader } from '../Card/CardHeader.js';
4
3
 
5
4
  export const SelectTokenCardHeader = styled(CardHeader, {
@@ -1,5 +1,4 @@
1
- import { cardHeaderClasses } from '@mui/material/CardHeader';
2
- import { styled } from '@mui/material/styles';
1
+ import { cardHeaderClasses, styled } from '@mui/material';
3
2
  import { CardHeader } from '../Card/CardHeader.js';
4
3
 
5
4
  export const SendToWalletCardHeader = styled(CardHeader, {
@@ -1,4 +1,4 @@
1
- import { styled } from '@mui/material/styles';
1
+ import { styled } from '@mui/material';
2
2
  import { ListItemButton as ListItemButtonBase } from './ListItemButton.js';
3
3
 
4
4
  export const SettingsListItemButton = styled(ListItemButtonBase)(
@@ -1,5 +1,4 @@
1
- import { Avatar, Box, Skeleton } from '@mui/material';
2
- import { styled } from '@mui/material/styles';
1
+ import { Avatar, Box, Skeleton, styled } from '@mui/material';
3
2
 
4
3
  export const SmallAvatar = styled(Avatar)(({ theme }) => ({
5
4
  background: theme.palette.background.paper,
@@ -1,8 +1,13 @@
1
1
  import type { Status, Substatus } from '@lifi/sdk';
2
2
  import type { Theme } from '@mui/material';
3
- import { Box, CircularProgress as MuiCircularProgress } from '@mui/material';
4
- import { circularProgressClasses } from '@mui/material/CircularProgress';
5
- import { alpha, keyframes, styled } from '@mui/material/styles';
3
+ import {
4
+ Box,
5
+ CircularProgress as MuiCircularProgress,
6
+ alpha,
7
+ circularProgressClasses,
8
+ keyframes,
9
+ styled,
10
+ } from '@mui/material';
6
11
 
7
12
  const getStatusColor = (
8
13
  theme: Theme,
@@ -5,7 +5,7 @@ import {
5
5
  InfoRounded,
6
6
  WarningRounded,
7
7
  } from '@mui/icons-material';
8
- import { darken } from '@mui/material/styles';
8
+ import { darken } from '@mui/material';
9
9
  import {
10
10
  CircularIcon,
11
11
  CircularProgressPending,
@@ -1,6 +1,5 @@
1
1
  import type { IconButtonProps, LinkProps } from '@mui/material';
2
- import { IconButton } from '@mui/material';
3
- import { styled } from '@mui/material/styles';
2
+ import { IconButton, styled } from '@mui/material';
4
3
 
5
4
  export const LinkButton = styled(IconButton)<IconButtonProps & LinkProps>(
6
5
  ({ theme }) => ({
@@ -1,7 +1,8 @@
1
1
  import type { LiFiStepExtended } from '@lifi/sdk';
2
2
  import { useEffect, useState } from 'react';
3
3
  import { useTranslation } from 'react-i18next';
4
- import { useTimer } from 'react-timer-hook';
4
+ import pkg from 'react-timer-hook';
5
+ const { useTimer } = pkg;
5
6
 
6
7
  const getExpiryTimestamp = (step: LiFiStepExtended) =>
7
8
  new Date(
@@ -4,10 +4,10 @@ import {
4
4
  StepConnector as MuiStepConnector,
5
5
  StepLabel as MuiStepLabel,
6
6
  Typography,
7
+ stepConnectorClasses,
8
+ stepLabelClasses,
9
+ styled,
7
10
  } from '@mui/material';
8
- import { stepConnectorClasses } from '@mui/material/StepConnector';
9
- import { stepLabelClasses } from '@mui/material/StepLabel';
10
- import { styled } from '@mui/material/styles';
11
11
 
12
12
  export const StepIcon = styled('span', {
13
13
  shouldForwardProp: (prop) =>
@@ -1,5 +1,4 @@
1
- import { Container as MuiContainer } from '@mui/material';
2
- import { styled } from '@mui/material/styles';
1
+ import { Container as MuiContainer, styled } from '@mui/material';
3
2
 
4
3
  export const Container = styled(MuiContainer)(({ theme }) => ({
5
4
  display: 'flex',
@@ -1,6 +1,9 @@
1
- import { Switch as MuiSwitch } from '@mui/material';
2
- import { alpha, styled } from '@mui/material/styles';
3
- import { switchClasses } from '@mui/material/Switch';
1
+ import {
2
+ Switch as MuiSwitch,
3
+ alpha,
4
+ styled,
5
+ switchClasses,
6
+ } from '@mui/material';
4
7
 
5
8
  export const Switch = styled(MuiSwitch)(({ theme }) => ({
6
9
  width: 42,
@@ -2,10 +2,11 @@ import type { TabProps } from '@mui/material';
2
2
  import {
3
3
  Tab as MuiTab,
4
4
  Tabs as MuiTabs,
5
+ alpha,
6
+ styled,
5
7
  tabClasses,
6
8
  tabsClasses,
7
9
  } from '@mui/material';
8
- import { alpha, styled } from '@mui/material/styles';
9
10
  import { getCardFieldsetBackgroundColor } from '../../utils/colors.js';
10
11
 
11
12
  export const Tabs = styled(MuiTabs)(({ theme }) => ({
@@ -1,4 +1,4 @@
1
- import { useTheme } from '@mui/material/styles';
1
+ import { useTheme } from '@mui/material';
2
2
  import type { PropsWithChildren } from 'react';
3
3
  import { useCallback, useLayoutEffect, useRef, useState } from 'react';
4
4
  import { useInView } from 'react-intersection-observer';
@@ -1,5 +1,4 @@
1
- import { Box, Typography } from '@mui/material';
2
- import { alpha, styled } from '@mui/material/styles';
1
+ import { Box, Typography, alpha, styled } from '@mui/material';
3
2
 
4
3
  export const TextSecondaryContainer = styled(Box)(() => ({
5
4
  display: 'flex',
@@ -1,8 +1,11 @@
1
1
  import type { CSSObject } from '@mui/material';
2
- import { AvatarGroup, Box } from '@mui/material';
3
- import { avatarClasses } from '@mui/material/Avatar';
4
- import { badgeClasses } from '@mui/material/Badge';
5
- import { styled } from '@mui/material/styles';
2
+ import {
3
+ AvatarGroup,
4
+ Box,
5
+ avatarClasses,
6
+ badgeClasses,
7
+ styled,
8
+ } from '@mui/material';
6
9
 
7
10
  export const TokenAvatarGroup = styled(AvatarGroup)(({ theme }) => ({
8
11
  [`& .${badgeClasses.badge}:last-child .${avatarClasses.root}`]: {
@@ -1,6 +1,5 @@
1
1
  import type { IconButtonProps, LinkProps } from '@mui/material';
2
- import { IconButton as MuiIconButton } from '@mui/material';
3
- import { alpha, styled } from '@mui/material/styles';
2
+ import { IconButton as MuiIconButton, alpha, styled } from '@mui/material';
4
3
  import { ListItem as ListItemBase } from '../ListItem/ListItem.js';
5
4
 
6
5
  export const ListItem = styled(ListItemBase)(({ theme }) => ({
@@ -1,10 +1,11 @@
1
- import { WidgetEvent, useWidgetEvents } from '@lifi/widget';
2
1
  import { useCallback } from 'react';
2
+ import { useWidgetEvents } from '../../hooks/useWidgetEvents.js';
3
3
  import { useWidgetConfig } from '../../providers/WidgetProvider/WidgetProvider.js';
4
4
  import type { FormType } from '../../stores/form/types.js';
5
5
  import { FormKeyHelper } from '../../stores/form/types.js';
6
6
  import { useFieldActions } from '../../stores/form/useFieldActions.js';
7
7
  import { useFieldController } from '../../stores/form/useFieldController.js';
8
+ import { WidgetEvent } from '../../types/events.js';
8
9
 
9
10
  export const useTokenSelect = (formType: FormType, onClick?: () => void) => {
10
11
  const tokenKey = FormKeyHelper.getTokenKey(formType);