@lifi/widget 1.13.2 → 1.13.3

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 (402) hide show
  1. package/cjs/App.d.ts +4 -0
  2. package/cjs/App.js +80 -0
  3. package/cjs/AppDrawer.d.ts +14 -0
  4. package/cjs/AppDrawer.js +44 -0
  5. package/cjs/AppDrawer.style.d.ts +53 -0
  6. package/cjs/AppDrawer.style.js +75 -0
  7. package/cjs/AppProvider.d.ts +11 -0
  8. package/cjs/AppProvider.js +31 -0
  9. package/cjs/components/AppContainer.d.ts +15 -0
  10. package/cjs/components/AppContainer.js +59 -0
  11. package/cjs/components/BottomSheet/BottomSheet.d.ts +3 -0
  12. package/cjs/components/BottomSheet/BottomSheet.js +45 -0
  13. package/cjs/components/BottomSheet/index.d.ts +2 -0
  14. package/cjs/components/BottomSheet/index.js +18 -0
  15. package/cjs/components/BottomSheet/types.d.ts +10 -0
  16. package/cjs/components/BottomSheet/types.js +2 -0
  17. package/cjs/components/Card/Card.d.ts +14 -0
  18. package/cjs/components/Card/Card.js +35 -0
  19. package/cjs/components/Card/CardHeader.d.ts +18 -0
  20. package/cjs/components/Card/CardHeader.js +23 -0
  21. package/cjs/components/Card/CardTitle.d.ts +14 -0
  22. package/cjs/components/Card/CardTitle.js +12 -0
  23. package/cjs/components/Card/index.d.ts +3 -0
  24. package/cjs/components/Card/index.js +19 -0
  25. package/cjs/components/Dialog.d.ts +3 -0
  26. package/cjs/components/Dialog.js +27 -0
  27. package/cjs/components/GasSufficiencyMessage/GasSufficiencyMessage.d.ts +6 -0
  28. package/cjs/components/GasSufficiencyMessage/GasSufficiencyMessage.js +45 -0
  29. package/cjs/components/GasSufficiencyMessage/GasSufficiencyMessage.style.d.ts +9 -0
  30. package/cjs/components/GasSufficiencyMessage/GasSufficiencyMessage.style.js +14 -0
  31. package/cjs/components/GasSufficiencyMessage/index.d.ts +1 -0
  32. package/cjs/components/GasSufficiencyMessage/index.js +17 -0
  33. package/cjs/components/Header/Header.d.ts +2 -0
  34. package/cjs/components/Header/Header.js +27 -0
  35. package/cjs/components/Header/Header.style.d.ts +20 -0
  36. package/cjs/components/Header/Header.style.js +26 -0
  37. package/cjs/components/Header/NavigationHeader.d.ts +2 -0
  38. package/cjs/components/Header/NavigationHeader.js +58 -0
  39. package/cjs/components/Header/WalletHeader.d.ts +2 -0
  40. package/cjs/components/Header/WalletHeader.js +48 -0
  41. package/cjs/components/Header/index.d.ts +2 -0
  42. package/cjs/components/Header/index.js +18 -0
  43. package/cjs/components/Header/types.d.ts +8 -0
  44. package/cjs/components/Header/types.js +2 -0
  45. package/cjs/components/Header/useHeaderActionStore.d.ts +6 -0
  46. package/cjs/components/Header/useHeaderActionStore.js +26 -0
  47. package/cjs/components/Initializer.d.ts +2 -0
  48. package/cjs/components/Initializer.js +9 -0
  49. package/cjs/components/Input.d.ts +1 -0
  50. package/cjs/components/Input.js +17 -0
  51. package/cjs/components/LiFiLogo.d.ts +5 -0
  52. package/cjs/components/LiFiLogo.js +10 -0
  53. package/cjs/components/NotFound.d.ts +2 -0
  54. package/cjs/components/NotFound.js +19 -0
  55. package/cjs/components/PoweredBy/PoweredBy.d.ts +2 -0
  56. package/cjs/components/PoweredBy/PoweredBy.js +16 -0
  57. package/cjs/components/PoweredBy/PoweredBy.style.d.ts +12 -0
  58. package/cjs/components/PoweredBy/PoweredBy.style.js +12 -0
  59. package/cjs/components/PoweredBy/index.d.ts +1 -0
  60. package/cjs/components/PoweredBy/index.js +5 -0
  61. package/cjs/components/ProgressToNextUpdate/ProgressToNextUpdate.d.ts +7 -0
  62. package/cjs/components/ProgressToNextUpdate/ProgressToNextUpdate.js +63 -0
  63. package/cjs/components/ProgressToNextUpdate/index.d.ts +1 -0
  64. package/cjs/components/ProgressToNextUpdate/index.js +17 -0
  65. package/cjs/components/ReverseTokensButton/ReverseTokensButton.d.ts +4 -0
  66. package/cjs/components/ReverseTokensButton/ReverseTokensButton.js +26 -0
  67. package/cjs/components/ReverseTokensButton/ReverseTokensButton.style.d.ts +29 -0
  68. package/cjs/components/ReverseTokensButton/ReverseTokensButton.style.js +19 -0
  69. package/cjs/components/ReverseTokensButton/index.d.ts +1 -0
  70. package/cjs/components/ReverseTokensButton/index.js +17 -0
  71. package/cjs/components/Select.d.ts +3 -0
  72. package/cjs/components/Select.js +30 -0
  73. package/cjs/components/SelectChainAndToken.d.ts +3 -0
  74. package/cjs/components/SelectChainAndToken.js +23 -0
  75. package/cjs/components/SelectTokenButton/SelectTokenButton.d.ts +5 -0
  76. package/cjs/components/SelectTokenButton/SelectTokenButton.js +35 -0
  77. package/cjs/components/SelectTokenButton/SelectTokenButton.style.d.ts +21 -0
  78. package/cjs/components/SelectTokenButton/SelectTokenButton.style.js +27 -0
  79. package/cjs/components/SelectTokenButton/index.d.ts +1 -0
  80. package/cjs/components/SelectTokenButton/index.js +17 -0
  81. package/cjs/components/SmallAvatar.d.ts +16 -0
  82. package/cjs/components/SmallAvatar.js +11 -0
  83. package/cjs/components/Step/CircularProgress.d.ts +5 -0
  84. package/cjs/components/Step/CircularProgress.js +24 -0
  85. package/cjs/components/Step/CircularProgress.style.d.ts +6 -0
  86. package/cjs/components/Step/CircularProgress.style.js +54 -0
  87. package/cjs/components/Step/Step.d.ts +7 -0
  88. package/cjs/components/Step/Step.js +36 -0
  89. package/cjs/components/Step/StepProcess.d.ts +6 -0
  90. package/cjs/components/Step/StepProcess.js +25 -0
  91. package/cjs/components/Step/StepProcess.style.d.ts +39 -0
  92. package/cjs/components/Step/StepProcess.style.js +8 -0
  93. package/cjs/components/Step/StepTimer.d.ts +5 -0
  94. package/cjs/components/Step/StepTimer.js +64 -0
  95. package/cjs/components/Step/index.d.ts +1 -0
  96. package/cjs/components/Step/index.js +17 -0
  97. package/cjs/components/Step/utils.d.ts +6 -0
  98. package/cjs/components/Step/utils.js +93 -0
  99. package/cjs/components/StepActions/StepActions.d.ts +13 -0
  100. package/cjs/components/StepActions/StepActions.js +71 -0
  101. package/cjs/components/StepActions/StepActions.style.d.ts +20 -0
  102. package/cjs/components/StepActions/StepActions.style.js +59 -0
  103. package/cjs/components/StepActions/index.d.ts +1 -0
  104. package/cjs/components/StepActions/index.js +5 -0
  105. package/cjs/components/StepActions/types.d.ts +6 -0
  106. package/cjs/components/StepActions/types.js +2 -0
  107. package/cjs/components/StepDivider/StepDivider.d.ts +2 -0
  108. package/cjs/components/StepDivider/StepDivider.js +10 -0
  109. package/cjs/components/StepDivider/StepDivider.style.d.ts +11 -0
  110. package/cjs/components/StepDivider/StepDivider.style.js +11 -0
  111. package/cjs/components/StepDivider/index.d.ts +1 -0
  112. package/cjs/components/StepDivider/index.js +17 -0
  113. package/cjs/components/SwapButton/ButtonTooltip.d.ts +5 -0
  114. package/cjs/components/SwapButton/ButtonTooltip.js +7 -0
  115. package/cjs/components/SwapButton/SwapButton.d.ts +3 -0
  116. package/cjs/components/SwapButton/SwapButton.js +74 -0
  117. package/cjs/components/SwapButton/SwapButton.style.d.ts +65 -0
  118. package/cjs/components/SwapButton/SwapButton.style.js +15 -0
  119. package/cjs/components/SwapButton/index.d.ts +1 -0
  120. package/cjs/components/SwapButton/index.js +5 -0
  121. package/cjs/components/SwapButton/types.d.ts +7 -0
  122. package/cjs/components/SwapButton/types.js +2 -0
  123. package/cjs/components/SwapInProgress/SwapInProgress.d.ts +3 -0
  124. package/cjs/components/SwapInProgress/SwapInProgress.js +29 -0
  125. package/cjs/components/SwapInProgress/SwapInProgress.style.d.ts +31 -0
  126. package/cjs/components/SwapInProgress/SwapInProgress.style.js +17 -0
  127. package/cjs/components/SwapInProgress/index.d.ts +1 -0
  128. package/cjs/components/SwapInProgress/index.js +17 -0
  129. package/cjs/components/SwapInput/FormPriceHelperText.d.ts +5 -0
  130. package/cjs/components/SwapInput/FormPriceHelperText.js +31 -0
  131. package/cjs/components/SwapInput/SwapInput.d.ts +3 -0
  132. package/cjs/components/SwapInput/SwapInput.js +46 -0
  133. package/cjs/components/SwapInput/SwapInput.style.d.ts +21 -0
  134. package/cjs/components/SwapInput/SwapInput.style.js +33 -0
  135. package/cjs/components/SwapInput/SwapInputAdornment.d.ts +3 -0
  136. package/cjs/components/SwapInput/SwapInputAdornment.js +27 -0
  137. package/cjs/components/SwapInput/SwapInputAdornment.style.d.ts +34 -0
  138. package/cjs/components/SwapInput/SwapInputAdornment.style.js +23 -0
  139. package/cjs/components/SwapInput/index.d.ts +1 -0
  140. package/cjs/components/SwapInput/index.js +17 -0
  141. package/cjs/components/SwapRouteCard/SwapRouteCard.d.ts +4 -0
  142. package/cjs/components/SwapRouteCard/SwapRouteCard.js +42 -0
  143. package/cjs/components/SwapRouteCard/SwapRouteCard.style.d.ts +16 -0
  144. package/cjs/components/SwapRouteCard/SwapRouteCard.style.js +30 -0
  145. package/cjs/components/SwapRouteCard/SwapRouteCardSkeleton.d.ts +4 -0
  146. package/cjs/components/SwapRouteCard/SwapRouteCardSkeleton.js +32 -0
  147. package/cjs/components/SwapRouteCard/SwapRouteNotFoundCard.d.ts +4 -0
  148. package/cjs/components/SwapRouteCard/SwapRouteNotFoundCard.js +30 -0
  149. package/cjs/components/SwapRouteCard/index.d.ts +3 -0
  150. package/cjs/components/SwapRouteCard/index.js +19 -0
  151. package/cjs/components/SwapRouteCard/types.d.ts +9 -0
  152. package/cjs/components/SwapRouteCard/types.js +2 -0
  153. package/cjs/components/Switch.d.ts +1 -0
  154. package/cjs/components/Switch.js +56 -0
  155. package/cjs/components/TextFitter/TextFitter.d.ts +3 -0
  156. package/cjs/components/TextFitter/TextFitter.js +52 -0
  157. package/cjs/components/TextFitter/index.d.ts +1 -0
  158. package/cjs/components/TextFitter/index.js +17 -0
  159. package/cjs/components/TextFitter/types.d.ts +12 -0
  160. package/cjs/components/TextFitter/types.js +2 -0
  161. package/cjs/components/Token/Token.d.ts +7 -0
  162. package/cjs/components/Token/Token.js +35 -0
  163. package/cjs/components/Token/Token.style.d.ts +24 -0
  164. package/cjs/components/Token/Token.style.js +34 -0
  165. package/cjs/components/Token/index.d.ts +2 -0
  166. package/cjs/components/Token/index.js +18 -0
  167. package/cjs/components/TokenAvatar/TokenAvatar.d.ts +7 -0
  168. package/cjs/components/TokenAvatar/TokenAvatar.js +13 -0
  169. package/cjs/components/TokenAvatar/TokenAvatar.style.d.ts +1 -0
  170. package/cjs/components/TokenAvatar/TokenAvatar.style.js +19 -0
  171. package/cjs/components/TokenAvatar/index.d.ts +2 -0
  172. package/cjs/components/TokenAvatar/index.js +18 -0
  173. package/cjs/components/TokenList/TokenList.d.ts +3 -0
  174. package/cjs/components/TokenList/TokenList.js +55 -0
  175. package/cjs/components/TokenList/TokenList.style.d.ts +32 -0
  176. package/cjs/components/TokenList/TokenList.style.js +28 -0
  177. package/cjs/components/TokenList/TokenListItem.d.ts +5 -0
  178. package/cjs/components/TokenList/TokenListItem.js +32 -0
  179. package/cjs/components/TokenList/TokenNotFound.d.ts +2 -0
  180. package/cjs/components/TokenList/TokenNotFound.js +19 -0
  181. package/cjs/components/TokenList/VirtualizedTokenList.d.ts +3 -0
  182. package/cjs/components/TokenList/VirtualizedTokenList.js +57 -0
  183. package/cjs/components/TokenList/index.d.ts +1 -0
  184. package/cjs/components/TokenList/index.js +17 -0
  185. package/cjs/components/TokenList/types.d.ts +32 -0
  186. package/cjs/components/TokenList/types.js +2 -0
  187. package/cjs/config/env.d.ts +3 -0
  188. package/cjs/config/env.js +6 -0
  189. package/cjs/config/lifi.d.ts +3 -0
  190. package/cjs/config/lifi.js +12 -0
  191. package/cjs/config/queryClient.d.ts +2 -0
  192. package/cjs/config/queryClient.js +28 -0
  193. package/cjs/config/sentry.d.ts +1 -0
  194. package/cjs/config/sentry.js +65 -0
  195. package/cjs/config/theme.d.ts +27 -0
  196. package/cjs/config/theme.js +175 -0
  197. package/cjs/config/version.d.ts +2 -0
  198. package/cjs/config/version.js +5 -0
  199. package/cjs/hooks/index.d.ts +17 -0
  200. package/cjs/hooks/index.js +33 -0
  201. package/cjs/hooks/useChain.d.ts +4 -0
  202. package/cjs/hooks/useChain.js +17 -0
  203. package/cjs/hooks/useChains.d.ts +101 -0
  204. package/cjs/hooks/useChains.js +43 -0
  205. package/cjs/hooks/useContentHeight.d.ts +1 -0
  206. package/cjs/hooks/useContentHeight.js +27 -0
  207. package/cjs/hooks/useDebouncedWatch.d.ts +1 -0
  208. package/cjs/hooks/useDebouncedWatch.js +36 -0
  209. package/cjs/hooks/useFeaturedTokens.d.ts +1 -0
  210. package/cjs/hooks/useFeaturedTokens.js +10 -0
  211. package/cjs/hooks/useGasSufficiency.d.ts +15 -0
  212. package/cjs/hooks/useGasSufficiency.js +105 -0
  213. package/cjs/hooks/useInitializer.d.ts +1 -0
  214. package/cjs/hooks/useInitializer.js +9 -0
  215. package/cjs/hooks/useRouteExecution.d.ts +8 -0
  216. package/cjs/hooks/useRouteExecution.js +163 -0
  217. package/cjs/hooks/useScrollableContainer.d.ts +2 -0
  218. package/cjs/hooks/useScrollableContainer.js +29 -0
  219. package/cjs/hooks/useSwapRoutes.d.ts +9 -0
  220. package/cjs/hooks/useSwapRoutes.js +109 -0
  221. package/cjs/hooks/useTelemetry.d.ts +1 -0
  222. package/cjs/hooks/useTelemetry.js +22 -0
  223. package/cjs/hooks/useToken.d.ts +5 -0
  224. package/cjs/hooks/useToken.js +18 -0
  225. package/cjs/hooks/useTokenBalance.d.ts +5 -0
  226. package/cjs/hooks/useTokenBalance.js +19 -0
  227. package/cjs/hooks/useTokenBalances.d.ts +10 -0
  228. package/cjs/hooks/useTokenBalances.js +80 -0
  229. package/cjs/hooks/useTokenSearch.d.ts +7 -0
  230. package/cjs/hooks/useTokenSearch.js +41 -0
  231. package/cjs/hooks/useTokens.d.ts +6 -0
  232. package/cjs/hooks/useTokens.js +36 -0
  233. package/cjs/hooks/useTools.d.ts +10 -0
  234. package/cjs/hooks/useTools.js +28 -0
  235. package/cjs/i18n/en/translation.json +175 -0
  236. package/cjs/i18n/index.d.ts +181 -0
  237. package/cjs/i18n/index.js +27 -0
  238. package/cjs/icons/LiFiFullLogo.d.ts +2 -0
  239. package/cjs/icons/LiFiFullLogo.js +6 -0
  240. package/cjs/icons/LiFiLogo.d.ts +2 -0
  241. package/cjs/icons/LiFiLogo.js +6 -0
  242. package/cjs/icons/LiFiToolLogo.d.ts +2 -0
  243. package/cjs/icons/LiFiToolLogo.js +6 -0
  244. package/cjs/icons/index.d.ts +3 -0
  245. package/cjs/icons/index.js +19 -0
  246. package/cjs/index.d.ts +5 -0
  247. package/cjs/index.js +28 -0
  248. package/cjs/pages/MainPage/MainPage.d.ts +2 -0
  249. package/cjs/pages/MainPage/MainPage.js +15 -0
  250. package/cjs/pages/MainPage/MainPage.style.d.ts +11 -0
  251. package/cjs/pages/MainPage/MainPage.style.js +11 -0
  252. package/cjs/pages/MainPage/MainSwapButton.d.ts +2 -0
  253. package/cjs/pages/MainPage/MainSwapButton.js +34 -0
  254. package/cjs/pages/MainPage/SwapRoutes.d.ts +3 -0
  255. package/cjs/pages/MainPage/SwapRoutes.js +40 -0
  256. package/cjs/pages/MainPage/SwapRoutes.style.d.ts +11 -0
  257. package/cjs/pages/MainPage/SwapRoutes.style.js +16 -0
  258. package/cjs/pages/MainPage/index.d.ts +1 -0
  259. package/cjs/pages/MainPage/index.js +17 -0
  260. package/cjs/pages/SelectTokenPage/ChainSelect.d.ts +3 -0
  261. package/cjs/pages/SelectTokenPage/ChainSelect.js +32 -0
  262. package/cjs/pages/SelectTokenPage/SearchTokenInput.d.ts +2 -0
  263. package/cjs/pages/SelectTokenPage/SearchTokenInput.js +21 -0
  264. package/cjs/pages/SelectTokenPage/SearchTokenInput.style.d.ts +1 -0
  265. package/cjs/pages/SelectTokenPage/SearchTokenInput.style.js +8 -0
  266. package/cjs/pages/SelectTokenPage/SelectTokenPage.d.ts +5 -0
  267. package/cjs/pages/SelectTokenPage/SelectTokenPage.js +27 -0
  268. package/cjs/pages/SelectTokenPage/index.d.ts +2 -0
  269. package/cjs/pages/SelectTokenPage/index.js +18 -0
  270. package/cjs/pages/SelectTokenPage/types.d.ts +4 -0
  271. package/cjs/pages/SelectTokenPage/types.js +8 -0
  272. package/cjs/pages/SelectWalletPage/SelectWalletPage.d.ts +2 -0
  273. package/cjs/pages/SelectWalletPage/SelectWalletPage.js +53 -0
  274. package/cjs/pages/SelectWalletPage/SelectWalletPage.style.d.ts +46 -0
  275. package/cjs/pages/SelectWalletPage/SelectWalletPage.style.js +30 -0
  276. package/cjs/pages/SelectWalletPage/index.d.ts +1 -0
  277. package/cjs/pages/SelectWalletPage/index.js +17 -0
  278. package/cjs/pages/SettingsPage/AdvancedPreferences.d.ts +2 -0
  279. package/cjs/pages/SettingsPage/AdvancedPreferences.js +24 -0
  280. package/cjs/pages/SettingsPage/ColorSchemeButtonGroup.d.ts +2 -0
  281. package/cjs/pages/SettingsPage/ColorSchemeButtonGroup.js +24 -0
  282. package/cjs/pages/SettingsPage/ColorSchemeButtonGroup.style.d.ts +33 -0
  283. package/cjs/pages/SettingsPage/ColorSchemeButtonGroup.style.js +19 -0
  284. package/cjs/pages/SettingsPage/EnabledBridgesSelect.d.ts +2 -0
  285. package/cjs/pages/SettingsPage/EnabledBridgesSelect.js +30 -0
  286. package/cjs/pages/SettingsPage/EnabledExchangesSelect.d.ts +2 -0
  287. package/cjs/pages/SettingsPage/EnabledExchangesSelect.js +29 -0
  288. package/cjs/pages/SettingsPage/GasPriceSelect.d.ts +2 -0
  289. package/cjs/pages/SettingsPage/GasPriceSelect.js +17 -0
  290. package/cjs/pages/SettingsPage/RoutePrioritySelect.d.ts +2 -0
  291. package/cjs/pages/SettingsPage/RoutePrioritySelect.js +18 -0
  292. package/cjs/pages/SettingsPage/SettingsPage.d.ts +2 -0
  293. package/cjs/pages/SettingsPage/SettingsPage.js +14 -0
  294. package/cjs/pages/SettingsPage/SlippageInput.d.ts +2 -0
  295. package/cjs/pages/SettingsPage/SlippageInput.js +29 -0
  296. package/cjs/pages/SettingsPage/index.d.ts +1 -0
  297. package/cjs/pages/SettingsPage/index.js +17 -0
  298. package/cjs/pages/SwapDetailsPage/SwapDetailsPage.d.ts +2 -0
  299. package/cjs/pages/SwapDetailsPage/SwapDetailsPage.js +69 -0
  300. package/cjs/pages/SwapDetailsPage/SwapDetailsPage.style.d.ts +11 -0
  301. package/cjs/pages/SwapDetailsPage/SwapDetailsPage.style.js +8 -0
  302. package/cjs/pages/SwapDetailsPage/index.d.ts +1 -0
  303. package/cjs/pages/SwapDetailsPage/index.js +17 -0
  304. package/cjs/pages/SwapHistoryPage/SwapHistoryEmpty.d.ts +2 -0
  305. package/cjs/pages/SwapHistoryPage/SwapHistoryEmpty.js +18 -0
  306. package/cjs/pages/SwapHistoryPage/SwapHistoryItem.d.ts +5 -0
  307. package/cjs/pages/SwapHistoryPage/SwapHistoryItem.js +27 -0
  308. package/cjs/pages/SwapHistoryPage/SwapHistoryPage.d.ts +2 -0
  309. package/cjs/pages/SwapHistoryPage/SwapHistoryPage.js +34 -0
  310. package/cjs/pages/SwapHistoryPage/index.d.ts +1 -0
  311. package/cjs/pages/SwapHistoryPage/index.js +17 -0
  312. package/cjs/pages/SwapPage/StatusBottomSheet.d.ts +3 -0
  313. package/cjs/pages/SwapPage/StatusBottomSheet.js +83 -0
  314. package/cjs/pages/SwapPage/StatusBottomSheet.style.d.ts +25 -0
  315. package/cjs/pages/SwapPage/StatusBottomSheet.style.js +35 -0
  316. package/cjs/pages/SwapPage/SwapPage.d.ts +2 -0
  317. package/cjs/pages/SwapPage/SwapPage.js +49 -0
  318. package/cjs/pages/SwapPage/SwapPage.style.d.ts +11 -0
  319. package/cjs/pages/SwapPage/SwapPage.style.js +8 -0
  320. package/cjs/pages/SwapPage/index.d.ts +1 -0
  321. package/cjs/pages/SwapPage/index.js +17 -0
  322. package/cjs/pages/SwapPage/utils.d.ts +6 -0
  323. package/cjs/pages/SwapPage/utils.js +93 -0
  324. package/cjs/pages/SwapRoutesPage/SwapRoutesPage.d.ts +3 -0
  325. package/cjs/pages/SwapRoutesPage/SwapRoutesPage.js +39 -0
  326. package/cjs/pages/SwapRoutesPage/SwapRoutesPage.style.d.ts +11 -0
  327. package/cjs/pages/SwapRoutesPage/SwapRoutesPage.style.js +9 -0
  328. package/cjs/pages/SwapRoutesPage/index.d.ts +1 -0
  329. package/cjs/pages/SwapRoutesPage/index.js +17 -0
  330. package/cjs/providers/SwapFormProvider/SwapFormProvider.d.ts +6 -0
  331. package/cjs/providers/SwapFormProvider/SwapFormProvider.js +45 -0
  332. package/cjs/providers/SwapFormProvider/index.d.ts +2 -0
  333. package/cjs/providers/SwapFormProvider/index.js +18 -0
  334. package/cjs/providers/SwapFormProvider/types.d.ts +25 -0
  335. package/cjs/providers/SwapFormProvider/types.js +17 -0
  336. package/cjs/providers/ThemeProvider/ThemeProvider.d.ts +2 -0
  337. package/cjs/providers/ThemeProvider/ThemeProvider.js +37 -0
  338. package/cjs/providers/ThemeProvider/index.d.ts +1 -0
  339. package/cjs/providers/ThemeProvider/index.js +17 -0
  340. package/cjs/providers/WalletProvider/WalletProvider.d.ts +19 -0
  341. package/cjs/providers/WalletProvider/WalletProvider.js +106 -0
  342. package/cjs/providers/WalletProvider/index.d.ts +2 -0
  343. package/cjs/providers/WalletProvider/index.js +18 -0
  344. package/cjs/providers/WalletProvider/types.d.ts +17 -0
  345. package/cjs/providers/WalletProvider/types.js +2 -0
  346. package/cjs/providers/WidgetProvider/WidgetProvider.d.ts +4 -0
  347. package/cjs/providers/WidgetProvider/WidgetProvider.js +68 -0
  348. package/cjs/providers/WidgetProvider/index.d.ts +2 -0
  349. package/cjs/providers/WidgetProvider/index.js +18 -0
  350. package/cjs/providers/WidgetProvider/types.d.ts +8 -0
  351. package/cjs/providers/WidgetProvider/types.js +2 -0
  352. package/cjs/stores/index.d.ts +2 -0
  353. package/cjs/stores/index.js +18 -0
  354. package/cjs/stores/route/index.d.ts +5 -0
  355. package/cjs/stores/route/index.js +21 -0
  356. package/cjs/stores/route/types.d.ts +14 -0
  357. package/cjs/stores/route/types.js +2 -0
  358. package/cjs/stores/route/useExecutingRoutes.d.ts +2 -0
  359. package/cjs/stores/route/useExecutingRoutes.js +13 -0
  360. package/cjs/stores/route/useRouteStore.d.ts +18 -0
  361. package/cjs/stores/route/useRouteStore.js +57 -0
  362. package/cjs/stores/route/useSetExecutableRoute.d.ts +1 -0
  363. package/cjs/stores/route/useSetExecutableRoute.js +8 -0
  364. package/cjs/stores/route/useSwapHistory.d.ts +2 -0
  365. package/cjs/stores/route/useSwapHistory.js +18 -0
  366. package/cjs/stores/settings/index.d.ts +5 -0
  367. package/cjs/stores/settings/index.js +21 -0
  368. package/cjs/stores/settings/types.d.ts +23 -0
  369. package/cjs/stores/settings/types.js +4 -0
  370. package/cjs/stores/settings/useAppearance.d.ts +2 -0
  371. package/cjs/stores/settings/useAppearance.js +14 -0
  372. package/cjs/stores/settings/useSetSettings.d.ts +5 -0
  373. package/cjs/stores/settings/useSetSettings.js +12 -0
  374. package/cjs/stores/settings/useSettings.d.ts +2 -0
  375. package/cjs/stores/settings/useSettings.js +15 -0
  376. package/cjs/stores/settings/useSettingsStore.d.ts +38 -0
  377. package/cjs/stores/settings/useSettingsStore.js +90 -0
  378. package/cjs/types/index.d.ts +2 -0
  379. package/cjs/types/index.js +18 -0
  380. package/cjs/types/token.d.ts +4 -0
  381. package/cjs/types/token.js +2 -0
  382. package/cjs/types/widget.d.ts +47 -0
  383. package/cjs/types/widget.js +2 -0
  384. package/cjs/utils/colors.d.ts +3 -0
  385. package/cjs/utils/colors.js +13 -0
  386. package/cjs/utils/deepClone.d.ts +1 -0
  387. package/cjs/utils/deepClone.js +7 -0
  388. package/cjs/utils/elements.d.ts +4 -0
  389. package/cjs/utils/elements.js +8 -0
  390. package/cjs/utils/format.d.ts +9 -0
  391. package/cjs/utils/format.js +86 -0
  392. package/cjs/utils/index.d.ts +6 -0
  393. package/cjs/utils/index.js +22 -0
  394. package/cjs/utils/input.d.ts +1 -0
  395. package/cjs/utils/input.js +28 -0
  396. package/cjs/utils/navigationRoutes.d.ts +13 -0
  397. package/cjs/utils/navigationRoutes.js +15 -0
  398. package/config/version.d.ts +1 -1
  399. package/config/version.js +1 -1
  400. package/index.js +3 -1
  401. package/package.json +25 -11
  402. package/tsconfig.cjs.tsbuildinfo +1 -0
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ export declare const Link: import("@emotion/styled").StyledComponent<Omit<import("@mui/material").LinkBaseProps, "classes"> & {
3
+ children?: import("react").ReactNode;
4
+ classes?: Partial<import("@mui/material").LinkClasses> | undefined;
5
+ color?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.Color | import("csstype").Property.Color[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.Color | import("csstype").Property.Color[] | undefined>);
6
+ sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
7
+ TypographyClasses?: (Partial<import("@mui/material").TypographyClasses> & Partial<import("@mui/material").ClassNameMap<never>>) | undefined;
8
+ underline?: "none" | "always" | "hover" | undefined;
9
+ variant?: "button" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "inherit" | "subtitle1" | "subtitle2" | "body1" | "body2" | "overline" | "@supports (font-variation-settings: normal)" | undefined;
10
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "key" | keyof import("react").AnchorHTMLAttributes<HTMLAnchorElement>> & {
11
+ ref?: ((instance: HTMLAnchorElement | null) => void) | import("react").RefObject<HTMLAnchorElement> | null | undefined;
12
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | "p" | "slot" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "children" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "sx" | "key" | "download" | "href" | "hrefLang" | "media" | "ping" | "rel" | "target" | "type" | "referrerPolicy" | "border" | "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping" | "underline" | "TypographyClasses"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Link = void 0;
4
+ const material_1 = require("@mui/material");
5
+ const styles_1 = require("@mui/material/styles");
6
+ exports.Link = (0, styles_1.styled)(material_1.Link)(({ theme }) => ({
7
+ display: 'flex',
8
+ alignItems: 'center',
9
+ ':hover': {
10
+ color: theme.palette.primary.main,
11
+ },
12
+ }));
@@ -0,0 +1 @@
1
+ export { PoweredBy } from './PoweredBy';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PoweredBy = void 0;
4
+ var PoweredBy_1 = require("./PoweredBy");
5
+ Object.defineProperty(exports, "PoweredBy", { enumerable: true, get: function () { return PoweredBy_1.PoweredBy; } });
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { IconButtonProps } from '@mui/material';
3
+ export declare const ProgressToNextUpdate: React.FC<{
4
+ updatedAt: number;
5
+ timeToUpdate: number;
6
+ isLoading?: boolean;
7
+ } & IconButtonProps>;
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+ var __rest = (this && this.__rest) || function (s, e) {
3
+ var t = {};
4
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5
+ t[p] = s[p];
6
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
7
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
9
+ t[p[i]] = s[p[i]];
10
+ }
11
+ return t;
12
+ };
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.ProgressToNextUpdate = void 0;
15
+ const jsx_runtime_1 = require("react/jsx-runtime");
16
+ const material_1 = require("@mui/material");
17
+ const react_1 = require("react");
18
+ const react_i18next_1 = require("react-i18next");
19
+ const getProgressValue = (updatedAt, timeToUpdate) => updatedAt
20
+ ? Math.min(100, ((Date.now() - updatedAt) / timeToUpdate) * 100)
21
+ : 0;
22
+ const getSecondsToUpdate = (updatedAt, timeToUpdate) => Math.max(Math.round((timeToUpdate - (Date.now() - updatedAt)) / 1000), 0);
23
+ const ProgressToNextUpdate = (_a) => {
24
+ var { updatedAt, timeToUpdate, isLoading, onClick } = _a, other = __rest(_a, ["updatedAt", "timeToUpdate", "isLoading", "onClick"]);
25
+ const { t } = (0, react_i18next_1.useTranslation)();
26
+ const [value, setValue] = (0, react_1.useState)(() => getProgressValue(updatedAt, timeToUpdate));
27
+ (0, react_1.useEffect)(() => {
28
+ setValue(getProgressValue(updatedAt, timeToUpdate));
29
+ const id = setInterval(() => {
30
+ const time = getProgressValue(updatedAt, timeToUpdate);
31
+ setValue(time);
32
+ if (time >= 100) {
33
+ clearInterval(id);
34
+ }
35
+ }, 1000);
36
+ return () => clearInterval(id);
37
+ }, [timeToUpdate, updatedAt]);
38
+ (0, react_1.useEffect)(() => {
39
+ if (isLoading) {
40
+ setValue(0);
41
+ }
42
+ }, [isLoading]);
43
+ return ((0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ onClick: onClick, disabled: isLoading }, other, { children: (0, jsx_runtime_1.jsx)(material_1.Tooltip, Object.assign({ title: t('tooltip.progressToNextUpdate', {
44
+ value: getSecondsToUpdate(updatedAt, timeToUpdate),
45
+ }), placement: "top", enterDelay: 250, arrow: true }, { children: (0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ sx: {
46
+ display: 'grid',
47
+ position: 'relative',
48
+ placeItems: 'center',
49
+ width: 24,
50
+ height: 24,
51
+ } }, { children: [(0, jsx_runtime_1.jsx)(material_1.CircularProgress, { variant: "determinate", size: 24, value: 100, sx: (theme) => ({
52
+ position: 'absolute',
53
+ color: theme.palette.mode === 'light'
54
+ ? theme.palette.grey[300]
55
+ : theme.palette.grey[800],
56
+ }) }), (0, jsx_runtime_1.jsx)(material_1.CircularProgress, { variant: isLoading ? 'indeterminate' : 'determinate', size: 24, value: value, sx: (theme) => ({
57
+ opacity: value === 100 && !isLoading ? 0.5 : 1,
58
+ color: theme.palette.mode === 'light'
59
+ ? theme.palette.primary.main
60
+ : theme.palette.primary.light,
61
+ }) })] })) })) })));
62
+ };
63
+ exports.ProgressToNextUpdate = ProgressToNextUpdate;
@@ -0,0 +1 @@
1
+ export * from './ProgressToNextUpdate';
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./ProgressToNextUpdate"), exports);
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ export declare const ReverseTokensButton: React.FC<{
3
+ vertical?: boolean;
4
+ }>;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ReverseTokensButton = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const icons_material_1 = require("@mui/icons-material");
6
+ const react_hook_form_1 = require("react-hook-form");
7
+ const SwapFormProvider_1 = require("../../providers/SwapFormProvider");
8
+ const ReverseTokensButton_style_1 = require("./ReverseTokensButton.style");
9
+ const ReverseTokensButton = ({ vertical, }) => {
10
+ const { setValue, getValues } = (0, react_hook_form_1.useFormContext)();
11
+ const handleClick = () => {
12
+ const [fromChain, fromToken, toChain, toToken] = getValues([
13
+ SwapFormProvider_1.SwapFormKey.FromChain,
14
+ SwapFormProvider_1.SwapFormKey.FromToken,
15
+ SwapFormProvider_1.SwapFormKey.ToChain,
16
+ SwapFormProvider_1.SwapFormKey.ToToken,
17
+ ]);
18
+ setValue(SwapFormProvider_1.SwapFormKey.FromAmount, '');
19
+ setValue(SwapFormProvider_1.SwapFormKey.FromChain, toChain);
20
+ setValue(SwapFormProvider_1.SwapFormKey.FromToken, toToken);
21
+ setValue(SwapFormProvider_1.SwapFormKey.ToChain, fromChain);
22
+ setValue(SwapFormProvider_1.SwapFormKey.ToToken, fromToken);
23
+ };
24
+ return ((0, jsx_runtime_1.jsx)(ReverseTokensButton_style_1.IconButton, Object.assign({ onClick: handleClick, size: "small", "aria-label": "swap-destinations" }, { children: vertical ? (0, jsx_runtime_1.jsx)(icons_material_1.SwapVert, {}) : (0, jsx_runtime_1.jsx)(icons_material_1.SwapHoriz, {}) })));
25
+ };
26
+ exports.ReverseTokensButton = ReverseTokensButton;
@@ -0,0 +1,29 @@
1
+ /// <reference types="react" />
2
+ export declare const IconButton: import("@emotion/styled").StyledComponent<{
3
+ children?: import("react").ReactNode;
4
+ classes?: Partial<import("@mui/material").IconButtonClasses> | undefined;
5
+ color?: "inherit" | "default" | "primary" | "secondary" | "error" | "warning" | "info" | "success" | undefined;
6
+ disabled?: boolean | undefined;
7
+ disableFocusRipple?: boolean | undefined;
8
+ edge?: false | "end" | "start" | undefined;
9
+ size?: "small" | "medium" | "large" | undefined;
10
+ sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
11
+ } & Omit<{
12
+ action?: import("react").Ref<import("@mui/material").ButtonBaseActions> | undefined;
13
+ centerRipple?: boolean | undefined;
14
+ children?: import("react").ReactNode;
15
+ classes?: Partial<import("@mui/material").ButtonBaseClasses> | undefined;
16
+ disabled?: boolean | undefined;
17
+ disableRipple?: boolean | undefined;
18
+ disableTouchRipple?: boolean | undefined;
19
+ focusRipple?: boolean | undefined;
20
+ focusVisibleClassName?: string | undefined;
21
+ LinkComponent?: import("react").ElementType<any> | undefined;
22
+ onFocusVisible?: import("react").FocusEventHandler<any> | undefined;
23
+ sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
24
+ tabIndex?: number | undefined;
25
+ TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
26
+ touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
27
+ }, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof import("react").ButtonHTMLAttributes<HTMLButtonElement>> & {
28
+ ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
29
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | "tabIndex" | "color" | "children" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "size" | "edge"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IconButton = void 0;
4
+ const material_1 = require("@mui/material");
5
+ const styles_1 = require("@mui/material/styles");
6
+ exports.IconButton = (0, styles_1.styled)(material_1.IconButton)(({ theme }) => ({
7
+ backgroundColor: theme.palette.background.paper,
8
+ border: `1px solid`,
9
+ borderColor: theme.palette.mode === 'light'
10
+ ? theme.palette.grey[300]
11
+ : theme.palette.grey[800],
12
+ zIndex: 1200,
13
+ padding: theme.spacing(0.5),
14
+ '&:hover': {
15
+ backgroundColor: theme.palette.mode === 'light'
16
+ ? (0, styles_1.darken)(theme.palette.background.paper, 0.02)
17
+ : (0, styles_1.lighten)(theme.palette.background.paper, 0.02),
18
+ },
19
+ }));
@@ -0,0 +1 @@
1
+ export * from './ReverseTokensButton';
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./ReverseTokensButton"), exports);
@@ -0,0 +1,3 @@
1
+ export declare const Select: import("@emotion/styled").StyledComponent<import("@mui/material").SelectProps<unknown> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
2
+ dense?: boolean | undefined;
3
+ }, {}, {}>;
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Select = void 0;
4
+ const material_1 = require("@mui/material");
5
+ const InputBase_1 = require("@mui/material/InputBase");
6
+ const ListItemIcon_1 = require("@mui/material/ListItemIcon");
7
+ const OutlinedInput_1 = require("@mui/material/OutlinedInput");
8
+ const Select_1 = require("@mui/material/Select");
9
+ const styles_1 = require("@mui/material/styles");
10
+ exports.Select = (0, styles_1.styled)(material_1.Select, {
11
+ shouldForwardProp: (prop) => prop !== 'dense',
12
+ })(({ theme, dense }) => ({
13
+ backgroundColor: theme.palette.mode === 'light'
14
+ ? theme.palette.common.white
15
+ : theme.palette.background.paper,
16
+ [`.${InputBase_1.inputBaseClasses.input}`]: {
17
+ padding: dense ? theme.spacing(1.625, 2, 1.5, 2) : theme.spacing(2),
18
+ display: 'flex',
19
+ alignItems: 'center',
20
+ },
21
+ [`.${Select_1.selectClasses.icon}`]: {
22
+ right: 10,
23
+ },
24
+ [`.${ListItemIcon_1.listItemIconClasses.root}`]: {
25
+ minWidth: 38,
26
+ },
27
+ [`.${OutlinedInput_1.outlinedInputClasses.notchedOutline}`]: {
28
+ display: 'none',
29
+ },
30
+ }));
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { BoxProps } from '@mui/material';
3
+ export declare const SelectChainAndToken: React.FC<BoxProps>;
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SelectChainAndToken = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const material_1 = require("@mui/material");
6
+ const react_hook_form_1 = require("react-hook-form");
7
+ const ReverseTokensButton_1 = require("../components/ReverseTokensButton");
8
+ const SelectTokenButton_1 = require("../components/SelectTokenButton");
9
+ const SwapFormProvider_1 = require("../providers/SwapFormProvider");
10
+ const SelectChainAndToken = (props) => {
11
+ const prefersNarrowView = (0, material_1.useMediaQuery)((theme) => theme.breakpoints.down('sm'));
12
+ const [fromChain, toChain, fromToken, toToken] = (0, react_hook_form_1.useWatch)({
13
+ name: [
14
+ SwapFormProvider_1.SwapFormKey.FromChain,
15
+ SwapFormProvider_1.SwapFormKey.ToChain,
16
+ SwapFormProvider_1.SwapFormKey.FromToken,
17
+ SwapFormProvider_1.SwapFormKey.ToToken,
18
+ ],
19
+ });
20
+ const isCompact = fromChain && toChain && fromToken && toToken && !prefersNarrowView;
21
+ return ((0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ sx: { display: 'flex', flexDirection: isCompact ? 'row' : 'column' } }, props, { children: [(0, jsx_runtime_1.jsx)(SelectTokenButton_1.SelectTokenButton, { formType: "from", compact: isCompact }), (0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ sx: { display: 'flex', justifyContent: 'center', alignItems: 'center' }, m: -1.25 }, { children: (0, jsx_runtime_1.jsx)(ReverseTokensButton_1.ReverseTokensButton, { vertical: !isCompact }) })), (0, jsx_runtime_1.jsx)(SelectTokenButton_1.SelectTokenButton, { formType: "to", compact: isCompact })] })));
22
+ };
23
+ exports.SelectChainAndToken = SelectChainAndToken;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { SwapFormTypeProps } from '../../providers/SwapFormProvider';
3
+ export declare const SelectTokenButton: React.FC<SwapFormTypeProps & {
4
+ compact: boolean;
5
+ }>;
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SelectTokenButton = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const icons_material_1 = require("@mui/icons-material");
6
+ const material_1 = require("@mui/material");
7
+ const react_hook_form_1 = require("react-hook-form");
8
+ const react_i18next_1 = require("react-i18next");
9
+ const react_router_dom_1 = require("react-router-dom");
10
+ const hooks_1 = require("../../hooks");
11
+ const SwapFormProvider_1 = require("../../providers/SwapFormProvider");
12
+ const utils_1 = require("../../utils");
13
+ const Card_1 = require("../Card");
14
+ const TokenAvatar_1 = require("../TokenAvatar");
15
+ const SelectTokenButton_style_1 = require("./SelectTokenButton.style");
16
+ const SelectTokenButton = ({ formType, compact }) => {
17
+ const { t } = (0, react_i18next_1.useTranslation)();
18
+ const navigate = (0, react_router_dom_1.useNavigate)();
19
+ const [chainId, tokenAddress] = (0, react_hook_form_1.useWatch)({
20
+ name: [
21
+ SwapFormProvider_1.SwapFormKeyHelper.getChainKey(formType),
22
+ SwapFormProvider_1.SwapFormKeyHelper.getTokenKey(formType),
23
+ ],
24
+ });
25
+ const { chain, isLoading: isChainLoading } = (0, hooks_1.useChain)(chainId);
26
+ const { token, isLoading: isTokenLoading } = (0, hooks_1.useToken)(chainId, tokenAddress);
27
+ const handleClick = () => {
28
+ navigate(formType === 'from'
29
+ ? utils_1.navigationRoutes.fromToken
30
+ : utils_1.navigationRoutes.toToken);
31
+ };
32
+ const isSelected = !!(chain && token);
33
+ return ((0, jsx_runtime_1.jsxs)(Card_1.Card, Object.assign({ flex: 1, onClick: handleClick }, { children: [(0, jsx_runtime_1.jsx)(Card_1.CardTitle, { children: t(`swap.${formType}`) }), chainId && tokenAddress && (isChainLoading || isTokenLoading) ? ((0, jsx_runtime_1.jsx)(SelectTokenButton_style_1.SelectTokenCardHeader, { avatar: (0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "circular", width: 32, height: 32 }), title: (0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "text", width: 64, height: 24 }), subheader: (0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "text", width: 64, height: 16 }), compact: compact })) : ((0, jsx_runtime_1.jsx)(SelectTokenButton_style_1.SelectTokenCardHeader, { avatar: isSelected ? (0, jsx_runtime_1.jsx)(TokenAvatar_1.TokenAvatar, { token: token }) : null, action: !compact ? (0, jsx_runtime_1.jsx)(icons_material_1.KeyboardArrowRight, {}) : null, title: isSelected ? token.symbol : t(`swap.selectChainAndToken`), subheader: isSelected ? `on ${chain.name}` : null, selected: isSelected, compact: compact }))] })));
34
+ };
35
+ exports.SelectTokenButton = SelectTokenButton;
@@ -0,0 +1,21 @@
1
+ /// <reference types="react" />
2
+ export declare const SelectTokenCardHeader: import("@emotion/styled").StyledComponent<{
3
+ action?: import("react").ReactNode;
4
+ avatar?: import("react").ReactNode;
5
+ classes?: Partial<import("@mui/material/CardHeader").CardHeaderClasses> | undefined;
6
+ disableTypography?: boolean | undefined;
7
+ subheader?: import("react").ReactNode;
8
+ subheaderTypographyProps?: import("@mui/material").TypographyProps<"span", {
9
+ component?: "span" | undefined;
10
+ }> | undefined;
11
+ sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
12
+ title?: import("react").ReactNode;
13
+ titleTypographyProps?: import("@mui/material").TypographyProps<"span", {
14
+ component?: "span" | undefined;
15
+ }> | undefined;
16
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
17
+ ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
18
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | "title" | "action" | "sx" | "avatar" | "disableTypography" | "subheader" | "subheaderTypographyProps" | "titleTypographyProps"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
19
+ selected?: boolean | undefined;
20
+ compact?: boolean | undefined;
21
+ }, {}, {}>;
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SelectTokenCardHeader = void 0;
4
+ const CardHeader_1 = require("@mui/material/CardHeader");
5
+ const styles_1 = require("@mui/material/styles");
6
+ const Card_1 = require("../Card");
7
+ exports.SelectTokenCardHeader = (0, styles_1.styled)(Card_1.CardHeader, {
8
+ shouldForwardProp: (prop) => !['selected', 'compact'].includes(prop),
9
+ })(({ theme, selected, compact }) => ({
10
+ height: 64,
11
+ [`.${CardHeader_1.cardHeaderClasses.title}`]: {
12
+ color: selected
13
+ ? theme.palette.text.primary
14
+ : theme.palette.text.secondary,
15
+ textOverflow: 'ellipsis',
16
+ whiteSpace: 'nowrap',
17
+ overflow: 'hidden',
18
+ width: compact ? 92 : 224,
19
+ fontWeight: selected ? 500 : 400,
20
+ },
21
+ [`.${CardHeader_1.cardHeaderClasses.subheader}`]: {
22
+ textOverflow: 'ellipsis',
23
+ whiteSpace: 'nowrap',
24
+ overflow: 'hidden',
25
+ width: compact ? 92 : 224,
26
+ },
27
+ }));
@@ -0,0 +1 @@
1
+ export * from './SelectTokenButton';
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./SelectTokenButton"), exports);
@@ -0,0 +1,16 @@
1
+ /// <reference types="react" />
2
+ export declare const SmallAvatar: import("@emotion/styled").StyledComponent<{
3
+ alt?: string | undefined;
4
+ children?: import("react").ReactNode;
5
+ classes?: Partial<import("@mui/material").AvatarClasses> | undefined;
6
+ imgProps?: (import("react").ImgHTMLAttributes<HTMLImageElement> & {
7
+ sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
8
+ }) | undefined;
9
+ sizes?: string | undefined;
10
+ src?: string | undefined;
11
+ srcSet?: string | undefined;
12
+ sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
13
+ variant?: "square" | "circular" | "rounded" | undefined;
14
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
15
+ ref?: import("react").RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
16
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "variant" | "alt" | "src" | "sizes" | "srcSet" | "imgProps"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SmallAvatar = void 0;
4
+ const material_1 = require("@mui/material");
5
+ const styles_1 = require("@mui/material/styles");
6
+ exports.SmallAvatar = (0, styles_1.styled)(material_1.Avatar)(({ theme }) => ({
7
+ background: theme.palette.background.paper,
8
+ width: 16,
9
+ height: 16,
10
+ border: `2px solid ${theme.palette.background.paper}`,
11
+ }));
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { Status } from '@lifi/sdk';
3
+ export declare function CircularProgress({ status }: {
4
+ status: Status;
5
+ }): JSX.Element;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CircularProgress = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const icons_material_1 = require("@mui/icons-material");
6
+ const material_1 = require("@mui/material");
7
+ const CircularProgress_style_1 = require("./CircularProgress.style");
8
+ function CircularProgress({ status }) {
9
+ return ((0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ sx: {
10
+ display: 'grid',
11
+ position: 'relative',
12
+ placeItems: 'center',
13
+ } }, { children: [(0, jsx_runtime_1.jsx)(CircularProgress_style_1.CircularProgress, { variant: "determinate", status: status, size: 32, thickness: 3, value: 100 }), status === 'STARTED' || status === 'PENDING' ? ((0, jsx_runtime_1.jsx)(CircularProgress_style_1.CircularProgressPending, { size: 32, thickness: 3 })) : null, status === 'ACTION_REQUIRED' ? ((0, jsx_runtime_1.jsx)(icons_material_1.Info, { color: "primary", sx: {
14
+ position: 'absolute',
15
+ fontSize: '1rem',
16
+ } })) : null, status === 'DONE' ? ((0, jsx_runtime_1.jsx)(icons_material_1.Done, { color: "success", sx: {
17
+ position: 'absolute',
18
+ fontSize: '1rem',
19
+ } })) : null, status === 'FAILED' ? ((0, jsx_runtime_1.jsx)(icons_material_1.Warning, { color: "error", sx: {
20
+ position: 'absolute',
21
+ fontSize: '1rem',
22
+ } })) : null] })));
23
+ }
24
+ exports.CircularProgress = CircularProgress;
@@ -0,0 +1,6 @@
1
+ import { Status } from '@lifi/sdk';
2
+ import { Theme } from '@mui/material';
3
+ export declare const CircularProgress: import("@emotion/styled").StyledComponent<import("@mui/material").CircularProgressProps & import("@mui/system").MUIStyledCommonProps<Theme> & {
4
+ status: Status;
5
+ }, {}, {}>;
6
+ export declare const CircularProgressPending: import("@emotion/styled").StyledComponent<import("@mui/material").CircularProgressProps & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CircularProgressPending = exports.CircularProgress = void 0;
4
+ const material_1 = require("@mui/material");
5
+ const CircularProgress_1 = require("@mui/material/CircularProgress");
6
+ const styles_1 = require("@mui/material/styles");
7
+ const circleAnimation = (0, styles_1.keyframes)({
8
+ '0%': {
9
+ strokeDashoffset: 129,
10
+ transform: 'rotate(0)',
11
+ },
12
+ '50%': {
13
+ strokeDashoffset: 56,
14
+ transform: 'rotate(45deg)',
15
+ },
16
+ '100%': {
17
+ strokeDashoffset: 129,
18
+ transform: 'rotate(360deg)',
19
+ },
20
+ });
21
+ const getStatusColor = (status, theme) => {
22
+ switch (status) {
23
+ case 'ACTION_REQUIRED':
24
+ return theme.palette.primary.main;
25
+ case 'DONE':
26
+ return theme.palette.success.main;
27
+ case 'FAILED':
28
+ return theme.palette.error.main;
29
+ default:
30
+ return theme.palette.grey[theme.palette.mode === 'light' ? 300 : 800];
31
+ }
32
+ };
33
+ exports.CircularProgress = (0, styles_1.styled)(material_1.CircularProgress, {
34
+ shouldForwardProp: (prop) => prop !== 'status',
35
+ })(({ theme, status }) => ({
36
+ color: getStatusColor(status, theme),
37
+ }));
38
+ exports.CircularProgressPending = (0, styles_1.styled)(material_1.CircularProgress)(({ theme }) => ({
39
+ color: theme.palette.mode === 'light'
40
+ ? theme.palette.primary.main
41
+ : theme.palette.primary.light,
42
+ animationDuration: '3s',
43
+ position: 'absolute',
44
+ left: 0,
45
+ [`.${CircularProgress_1.circularProgressClasses.circle}`]: {
46
+ animationDuration: '2s',
47
+ animationTimingFunction: 'linear',
48
+ animationName: circleAnimation,
49
+ strokeDasharray: 129,
50
+ strokeDashoffset: 129,
51
+ strokeLinecap: 'round',
52
+ transformOrigin: '100% 100%',
53
+ },
54
+ }));
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { Step as StepType, TokenAmount } from '@lifi/sdk';
3
+ export declare const Step: React.FC<{
4
+ step: StepType;
5
+ fromToken?: TokenAmount;
6
+ toToken?: TokenAmount;
7
+ }>;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Step = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const material_1 = require("@mui/material");
6
+ const react_i18next_1 = require("react-i18next");
7
+ const Card_1 = require("../../components/Card");
8
+ const StepActions_1 = require("../../components/StepActions");
9
+ const Token_1 = require("../../components/Token");
10
+ const StepProcess_1 = require("./StepProcess");
11
+ const StepTimer_1 = require("./StepTimer");
12
+ const Step = ({ step, fromToken, toToken }) => {
13
+ var _a, _b;
14
+ const { t } = (0, react_i18next_1.useTranslation)();
15
+ const stepHasError = (_a = step.execution) === null || _a === void 0 ? void 0 : _a.process.some((process) => process.status === 'FAILED');
16
+ const getCardTitle = () => {
17
+ switch (step.type) {
18
+ case 'lifi':
19
+ if (step.includedSteps.some((step) => step.type === 'cross')) {
20
+ return t('swap.stepSwapAndBridge');
21
+ }
22
+ return t('swap.stepSwap');
23
+ case 'swap':
24
+ return t('swap.stepSwap');
25
+ case 'cross':
26
+ return t('swap.stepBridge');
27
+ default:
28
+ return t('swap.stepSwap');
29
+ }
30
+ };
31
+ return ((0, jsx_runtime_1.jsxs)(Card_1.Card, Object.assign({ variant: stepHasError ? 'error' : 'default' }, { children: [(0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ sx: {
32
+ display: 'flex',
33
+ flex: 1,
34
+ } }, { children: [(0, jsx_runtime_1.jsx)(Card_1.CardTitle, Object.assign({ flex: 1 }, { children: getCardTitle() })), (0, jsx_runtime_1.jsx)(Card_1.CardTitle, Object.assign({ sx: { fontWeight: 500 } }, { children: (0, jsx_runtime_1.jsx)(StepTimer_1.StepTimer, { step: step }) }))] })), (0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ py: 1 }, { children: [fromToken ? (0, jsx_runtime_1.jsx)(Token_1.Token, { token: fromToken, px: 2, py: 1 }) : null, (0, jsx_runtime_1.jsx)(StepActions_1.StepActions, { step: step, px: 2, py: 1, dense: true }), (_b = step.execution) === null || _b === void 0 ? void 0 : _b.process.map((process, index) => ((0, jsx_runtime_1.jsx)(StepProcess_1.StepProcess, { step: step, process: process }, index))), toToken ? (0, jsx_runtime_1.jsx)(Token_1.Token, { token: toToken, px: 2, py: 1 }) : null] }))] })));
35
+ };
36
+ exports.Step = Step;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { Process, Step } from '@lifi/sdk';
3
+ export declare const StepProcess: React.FC<{
4
+ step: Step;
5
+ process: Process;
6
+ }>;