@rango-dev/widget-embedded 0.17.1-next.9 → 0.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (355) hide show
  1. package/CHANGELOG.md +116 -0
  2. package/dist/QueueManager.d.ts +3 -1
  3. package/dist/QueueManager.d.ts.map +1 -1
  4. package/dist/components/AppRouter.d.ts.map +1 -1
  5. package/dist/components/AppRoutes.d.ts.map +1 -1
  6. package/dist/components/BlockchainsSection/BlockchainsSection.d.ts.map +1 -1
  7. package/dist/components/BlockchainsSection/BlockchainsSection.styles.d.ts +1 -1
  8. package/dist/components/BlockchainsSection/BlockchainsSection.styles.d.ts.map +1 -1
  9. package/dist/components/ConfirmWalletsModal/ConfirmWallets.styles.d.ts +690 -61
  10. package/dist/components/ConfirmWalletsModal/ConfirmWallets.styles.d.ts.map +1 -1
  11. package/dist/components/ConfirmWalletsModal/ConfirmWalletsModal.d.ts.map +1 -1
  12. package/dist/components/HeaderButtons/HomeButtons.d.ts.map +1 -1
  13. package/dist/components/Layout/Layout.d.ts.map +1 -1
  14. package/dist/components/Layout/Layout.styles.d.ts.map +1 -1
  15. package/dist/components/Layout/Layout.types.d.ts +2 -2
  16. package/dist/components/Layout/Layout.types.d.ts.map +1 -1
  17. package/dist/components/LoadingSwapDetails/LoadingSwapDetails.d.ts.map +1 -1
  18. package/dist/components/LoadingSwapDetails/LoadingSwapDetails.styles.d.ts +1727 -0
  19. package/dist/components/LoadingSwapDetails/LoadingSwapDetails.styles.d.ts.map +1 -1
  20. package/dist/components/NoResult/NoResult.d.ts.map +1 -1
  21. package/dist/components/NotificationContent/NotificationContent.d.ts.map +1 -1
  22. package/dist/components/Quote/Quote.d.ts.map +1 -1
  23. package/dist/components/Quote/Quote.styles.d.ts +793 -5
  24. package/dist/components/Quote/Quote.styles.d.ts.map +1 -1
  25. package/dist/components/Quote/Quote.types.d.ts +0 -1
  26. package/dist/components/Quote/Quote.types.d.ts.map +1 -1
  27. package/dist/components/Quote/QuoteSummary.styles.d.ts +157 -0
  28. package/dist/components/Quote/QuoteSummary.styles.d.ts.map +1 -1
  29. package/dist/components/Quote/index.d.ts +0 -1
  30. package/dist/components/Quote/index.d.ts.map +1 -1
  31. package/dist/components/QuoteSkeleton/QuoteSkeleton.d.ts.map +1 -0
  32. package/dist/components/{Quote → QuoteSkeleton}/QuoteSkeleton.styles.d.ts +314 -0
  33. package/dist/components/QuoteSkeleton/QuoteSkeleton.styles.d.ts.map +1 -0
  34. package/dist/components/QuoteSkeleton/QuoteSkeleton.types.d.ts.map +1 -0
  35. package/dist/components/QuoteSkeleton/QuoteSummarySkeleton.d.ts +4 -0
  36. package/dist/components/QuoteSkeleton/QuoteSummarySkeleton.d.ts.map +1 -0
  37. package/dist/components/QuoteSkeleton/QuoteSummarySkeleton.styles.d.ts +1571 -0
  38. package/dist/components/QuoteSkeleton/QuoteSummarySkeleton.styles.d.ts.map +1 -0
  39. package/dist/components/QuoteSkeleton/QuoteSummarySkeleton.types.d.ts +6 -0
  40. package/dist/components/QuoteSkeleton/QuoteSummarySkeleton.types.d.ts.map +1 -0
  41. package/dist/components/QuoteSkeleton/StepSkeleton.d.ts +4 -0
  42. package/dist/components/QuoteSkeleton/StepSkeleton.d.ts.map +1 -0
  43. package/dist/components/QuoteSkeleton/StepSkeleton.styles.d.ts +786 -0
  44. package/dist/components/QuoteSkeleton/StepSkeleton.styles.d.ts.map +1 -0
  45. package/dist/components/QuoteSkeleton/StepSkeleton.types.d.ts +4 -0
  46. package/dist/components/QuoteSkeleton/StepSkeleton.types.d.ts.map +1 -0
  47. package/dist/components/QuoteSkeleton/index.d.ts +4 -0
  48. package/dist/components/QuoteSkeleton/index.d.ts.map +1 -0
  49. package/dist/components/QuoteWarningsAndErrors/QuoteWarningsAndErrors.d.ts.map +1 -1
  50. package/dist/components/QuoteWarningsAndErrors/QuoteWarningsAndErrors.helpers.d.ts.map +1 -1
  51. package/dist/components/QuoteWarningsAndErrors/QuoteWarningsAndErrors.styles.d.ts.map +1 -1
  52. package/dist/components/QuoteWarningsAndErrors/QuoteWarningsAndErrors.types.d.ts +1 -0
  53. package/dist/components/QuoteWarningsAndErrors/QuoteWarningsAndErrors.types.d.ts.map +1 -1
  54. package/dist/components/Slippage/Slippage.d.ts.map +1 -1
  55. package/dist/components/Slippage/Slippage.styles.d.ts +158 -0
  56. package/dist/components/Slippage/Slippage.styles.d.ts.map +1 -1
  57. package/dist/components/SwapDetails/SwapDetails.Placeholder.d.ts.map +1 -1
  58. package/dist/components/SwapDetails/SwapDetails.d.ts.map +1 -1
  59. package/dist/components/SwapDetails/SwapDetails.helpers.d.ts +1 -1
  60. package/dist/components/SwapDetails/SwapDetails.helpers.d.ts.map +1 -1
  61. package/dist/components/SwapDetails/SwapDetails.styles.d.ts +628 -0
  62. package/dist/components/SwapDetails/SwapDetails.styles.d.ts.map +1 -1
  63. package/dist/components/SwapDetailsModal/SwapDetailsCompleteModal.d.ts.map +1 -1
  64. package/dist/components/SwapDetailsModal/SwapDetailsModal.WalletState.d.ts.map +1 -1
  65. package/dist/components/SwapDetailsModal/SwapDetailsModal.helpers.d.ts +1 -1
  66. package/dist/components/SwapDetailsModal/SwapDetailsModal.helpers.d.ts.map +1 -1
  67. package/dist/components/SwapDetailsModal/SwapDetailsModal.types.d.ts +1 -1
  68. package/dist/components/SwapDetailsModal/SwapDetailsModal.types.d.ts.map +1 -1
  69. package/dist/components/SwapsGroup/SwapsGroup.d.ts.map +1 -1
  70. package/dist/components/SwapsGroup/SwapsGroup.styles.d.ts +157 -0
  71. package/dist/components/SwapsGroup/SwapsGroup.styles.d.ts.map +1 -1
  72. package/dist/components/TokenList/TokenList.d.ts.map +1 -1
  73. package/dist/components/TokenList/TokenList.helpers.d.ts +2 -2
  74. package/dist/components/TokenList/TokenList.helpers.d.ts.map +1 -1
  75. package/dist/components/TokenList/TokenList.styles.d.ts +1100 -1
  76. package/dist/components/TokenList/TokenList.styles.d.ts.map +1 -1
  77. package/dist/components/TokenList/TokenList.types.d.ts +4 -9
  78. package/dist/components/TokenList/TokenList.types.d.ts.map +1 -1
  79. package/dist/components/TokenList/index.d.ts +0 -1
  80. package/dist/components/TokenList/index.d.ts.map +1 -1
  81. package/dist/components/UpdateUrl.d.ts.map +1 -1
  82. package/dist/constants/errors.d.ts.map +1 -1
  83. package/dist/constants/index.d.ts +1 -0
  84. package/dist/constants/index.d.ts.map +1 -1
  85. package/dist/constants/navigationRoutes.d.ts +1 -2
  86. package/dist/constants/navigationRoutes.d.ts.map +1 -1
  87. package/dist/containers/App/App.d.ts +3 -0
  88. package/dist/containers/App/App.d.ts.map +1 -0
  89. package/dist/containers/App/App.styles.d.ts +158 -0
  90. package/dist/containers/App/App.styles.d.ts.map +1 -0
  91. package/dist/containers/App/index.d.ts +2 -0
  92. package/dist/containers/App/index.d.ts.map +1 -0
  93. package/dist/containers/QuoteInfo/QuoteInfo.d.ts.map +1 -1
  94. package/dist/containers/QuoteInfo/QuoteInfo.styles.d.ts +316 -0
  95. package/dist/containers/QuoteInfo/QuoteInfo.styles.d.ts.map +1 -1
  96. package/dist/containers/QuoteInfo/QuoteInfo.types.d.ts +3 -0
  97. package/dist/containers/QuoteInfo/QuoteInfo.types.d.ts.map +1 -1
  98. package/dist/containers/Wallets/Wallets.d.ts +6 -0
  99. package/dist/containers/Wallets/Wallets.d.ts.map +1 -0
  100. package/dist/containers/Wallets/Wallets.types.d.ts +11 -0
  101. package/dist/containers/Wallets/Wallets.types.d.ts.map +1 -0
  102. package/dist/containers/Wallets/index.d.ts +2 -0
  103. package/dist/containers/Wallets/index.d.ts.map +1 -0
  104. package/dist/containers/Widget/Widget.d.ts +5 -0
  105. package/dist/containers/Widget/Widget.d.ts.map +1 -0
  106. package/dist/containers/Widget/Widget.types.d.ts +5 -0
  107. package/dist/containers/Widget/Widget.types.d.ts.map +1 -0
  108. package/dist/containers/Widget/index.d.ts +3 -0
  109. package/dist/containers/Widget/index.d.ts.map +1 -0
  110. package/dist/containers/WidgetInfo/WidgetInfo.d.ts +6 -0
  111. package/dist/containers/WidgetInfo/WidgetInfo.d.ts.map +1 -0
  112. package/dist/containers/WidgetInfo/WidgetInfo.helpers.d.ts +20 -0
  113. package/dist/containers/WidgetInfo/WidgetInfo.helpers.d.ts.map +1 -0
  114. package/dist/containers/WidgetInfo/WidgetInfo.types.d.ts +21 -0
  115. package/dist/containers/WidgetInfo/WidgetInfo.types.d.ts.map +1 -0
  116. package/dist/containers/WidgetInfo/index.d.ts +2 -0
  117. package/dist/containers/WidgetInfo/index.d.ts.map +1 -0
  118. package/dist/containers/WidgetProvider/WidgetProvider.d.ts +5 -0
  119. package/dist/containers/WidgetProvider/WidgetProvider.d.ts.map +1 -0
  120. package/dist/containers/WidgetProvider/WidgetProvider.types.d.ts +7 -0
  121. package/dist/containers/WidgetProvider/WidgetProvider.types.d.ts.map +1 -0
  122. package/dist/containers/WidgetProvider/index.d.ts +2 -0
  123. package/dist/containers/WidgetProvider/index.d.ts.map +1 -0
  124. package/dist/hooks/useConfirmSwap/useConfirmSwap.d.ts.map +1 -1
  125. package/dist/hooks/useConfirmSwap/useConfirmSwap.helpers.d.ts +6 -3
  126. package/dist/hooks/useConfirmSwap/useConfirmSwap.helpers.d.ts.map +1 -1
  127. package/dist/hooks/useConfirmSwap/useConfirmSwap.types.d.ts +1 -1
  128. package/dist/hooks/useConfirmSwap/useConfirmSwap.types.d.ts.map +1 -1
  129. package/dist/hooks/useLanguage.d.ts +1 -1
  130. package/dist/hooks/useLanguage.d.ts.map +1 -1
  131. package/dist/hooks/useNavigateBack.d.ts +1 -3
  132. package/dist/hooks/useNavigateBack.d.ts.map +1 -1
  133. package/dist/hooks/usePrepareBlockchainList/usePrepareBlockchainList.constants.d.ts +1 -1
  134. package/dist/hooks/usePrepareBlockchainList/usePrepareBlockchainList.d.ts +2 -2
  135. package/dist/hooks/usePrepareBlockchainList/usePrepareBlockchainList.d.ts.map +1 -1
  136. package/dist/hooks/usePrepareBlockchainList/usePrepareBlockchainList.helpers.d.ts +3 -5
  137. package/dist/hooks/usePrepareBlockchainList/usePrepareBlockchainList.helpers.d.ts.map +1 -1
  138. package/dist/hooks/usePrepareBlockchainList/usePrepareBlockchainList.mock.d.ts +1 -0
  139. package/dist/hooks/usePrepareBlockchainList/usePrepareBlockchainList.mock.d.ts.map +1 -1
  140. package/dist/hooks/usePrepareBlockchainList/usePrepareBlockchainList.types.d.ts +5 -1
  141. package/dist/hooks/usePrepareBlockchainList/usePrepareBlockchainList.types.d.ts.map +1 -1
  142. package/dist/hooks/useSwapInput.d.ts.map +1 -1
  143. package/dist/hooks/useSyncStoresWithConfig.d.ts.map +1 -1
  144. package/dist/hooks/useTheme.d.ts +1 -1
  145. package/dist/hooks/useTheme.d.ts.map +1 -1
  146. package/dist/index.d.ts +20 -8
  147. package/dist/index.d.ts.map +1 -1
  148. package/dist/index.js +1 -1
  149. package/dist/index.js.map +4 -4
  150. package/dist/pages/ConfirmSwapPage.d.ts.map +1 -1
  151. package/dist/pages/HistoryPage.d.ts.map +1 -1
  152. package/dist/pages/Home.d.ts.map +1 -1
  153. package/dist/pages/LanguagePage.d.ts.map +1 -1
  154. package/dist/pages/LiquiditySourcePage.d.ts.map +1 -1
  155. package/dist/pages/SelectBlockchainPage.d.ts.map +1 -1
  156. package/dist/pages/SelectSwapItemsPage.d.ts.map +1 -1
  157. package/dist/pages/SettingsPage.d.ts.map +1 -1
  158. package/dist/pages/SwapDetailsPage.d.ts.map +1 -1
  159. package/dist/pages/ThemePage.d.ts.map +1 -1
  160. package/dist/pages/WalletsPage.d.ts.map +1 -1
  161. package/dist/store/AppStore.d.ts +37 -1
  162. package/dist/store/AppStore.d.ts.map +1 -1
  163. package/dist/store/app.d.ts +39 -2
  164. package/dist/store/app.d.ts.map +1 -1
  165. package/dist/store/notification.d.ts +4 -3
  166. package/dist/store/notification.d.ts.map +1 -1
  167. package/dist/store/quote.d.ts +9 -9
  168. package/dist/store/quote.d.ts.map +1 -1
  169. package/dist/store/slices/config.d.ts.map +1 -1
  170. package/dist/store/slices/data.d.ts +2 -2
  171. package/dist/store/slices/data.d.ts.map +1 -1
  172. package/dist/store/slices/settings.d.ts +39 -0
  173. package/dist/store/slices/settings.d.ts.map +1 -0
  174. package/dist/store/ui.d.ts +2 -1
  175. package/dist/store/ui.d.ts.map +1 -1
  176. package/dist/store/wallets.d.ts +9 -5
  177. package/dist/store/wallets.d.ts.map +1 -1
  178. package/dist/types/config.d.ts +36 -3
  179. package/dist/types/config.d.ts.map +1 -1
  180. package/dist/types/swap.d.ts +4 -14
  181. package/dist/types/swap.d.ts.map +1 -1
  182. package/dist/types/wallets.d.ts +15 -1
  183. package/dist/types/wallets.d.ts.map +1 -1
  184. package/dist/utils/colors.d.ts.map +1 -1
  185. package/dist/utils/configs.d.ts +1 -0
  186. package/dist/utils/configs.d.ts.map +1 -1
  187. package/dist/utils/meta.d.ts +2 -1
  188. package/dist/utils/meta.d.ts.map +1 -1
  189. package/dist/utils/providers.d.ts +2 -2
  190. package/dist/utils/providers.d.ts.map +1 -1
  191. package/dist/utils/queue.d.ts +2 -2
  192. package/dist/utils/queue.d.ts.map +1 -1
  193. package/dist/utils/quote.d.ts +1 -1
  194. package/dist/utils/quote.d.ts.map +1 -1
  195. package/dist/utils/settings.d.ts +4 -1
  196. package/dist/utils/settings.d.ts.map +1 -1
  197. package/dist/utils/swap.d.ts +13 -5
  198. package/dist/utils/swap.d.ts.map +1 -1
  199. package/dist/utils/time.d.ts +1 -1
  200. package/dist/utils/time.d.ts.map +1 -1
  201. package/dist/utils/wallets.d.ts +7 -8
  202. package/dist/utils/wallets.d.ts.map +1 -1
  203. package/package.json +12 -10
  204. package/src/QueueManager.tsx +4 -3
  205. package/src/components/AppRouter.tsx +2 -27
  206. package/src/components/AppRoutes.tsx +54 -33
  207. package/src/components/BlockchainList/BlockchainList.styles.ts +2 -2
  208. package/src/components/BlockchainsSection/BlockchainsSection.styles.ts +1 -1
  209. package/src/components/BlockchainsSection/BlockchainsSection.tsx +19 -10
  210. package/src/components/ConfirmWalletsModal/ConfirmWallets.styles.ts +29 -10
  211. package/src/components/ConfirmWalletsModal/ConfirmWalletsModal.tsx +15 -7
  212. package/src/components/ConfirmWalletsModal/WalletList.tsx +3 -3
  213. package/src/components/HeaderButtons/HomeButtons.tsx +28 -18
  214. package/src/components/Layout/Layout.styles.ts +2 -0
  215. package/src/components/Layout/Layout.tsx +20 -7
  216. package/src/components/Layout/Layout.types.ts +2 -2
  217. package/src/components/LoadingSwapDetails/LoadingSwapDetails.styles.ts +65 -61
  218. package/src/components/LoadingSwapDetails/LoadingSwapDetails.tsx +28 -34
  219. package/src/components/NoResult/NoResult.helpers.ts +12 -12
  220. package/src/components/NoResult/NoResult.tsx +2 -5
  221. package/src/components/NotificationContent/NotificationContent.tsx +2 -1
  222. package/src/components/Quote/Quote.styles.ts +49 -12
  223. package/src/components/Quote/Quote.tsx +107 -38
  224. package/src/components/Quote/Quote.types.ts +0 -1
  225. package/src/components/Quote/QuoteSummary.styles.ts +9 -8
  226. package/src/components/Quote/QuoteSummary.tsx +2 -2
  227. package/src/components/Quote/index.ts +0 -1
  228. package/src/components/QuoteSkeleton/QuoteSkeleton.styles.ts +42 -0
  229. package/src/components/QuoteSkeleton/QuoteSkeleton.tsx +30 -0
  230. package/src/components/QuoteSkeleton/QuoteSummarySkeleton.styles.ts +57 -0
  231. package/src/components/QuoteSkeleton/QuoteSummarySkeleton.tsx +76 -0
  232. package/src/components/QuoteSkeleton/QuoteSummarySkeleton.types.ts +6 -0
  233. package/src/components/QuoteSkeleton/StepSkeleton.styles.ts +33 -0
  234. package/src/components/QuoteSkeleton/StepSkeleton.tsx +44 -0
  235. package/src/components/QuoteSkeleton/StepSkeleton.types.ts +1 -0
  236. package/src/components/QuoteSkeleton/index.ts +3 -0
  237. package/src/components/QuoteWarningsAndErrors/QuoteErrorsModalItem.tsx +1 -1
  238. package/src/components/QuoteWarningsAndErrors/QuoteWarningsAndErrors.helpers.ts +11 -4
  239. package/src/components/QuoteWarningsAndErrors/QuoteWarningsAndErrors.styles.ts +8 -1
  240. package/src/components/QuoteWarningsAndErrors/QuoteWarningsAndErrors.tsx +13 -13
  241. package/src/components/QuoteWarningsAndErrors/QuoteWarningsAndErrors.types.ts +1 -0
  242. package/src/components/QuoteWarningsAndErrors/SlippageWariningModal.tsx +3 -3
  243. package/src/components/Slippage/Slippage.styles.ts +15 -5
  244. package/src/components/Slippage/Slippage.tsx +11 -10
  245. package/src/components/SwapDetails/SwapDetails.Placeholder.tsx +5 -8
  246. package/src/components/SwapDetails/SwapDetails.helpers.tsx +1 -1
  247. package/src/components/SwapDetails/SwapDetails.styles.ts +36 -33
  248. package/src/components/SwapDetails/SwapDetails.tsx +28 -39
  249. package/src/components/SwapDetailsAlerts/SwapDetailsAlerts.Warning.tsx +1 -1
  250. package/src/components/SwapDetailsModal/SwapDetailsCompleteModal.tsx +4 -3
  251. package/src/components/SwapDetailsModal/SwapDetailsModal.Cancel.tsx +2 -2
  252. package/src/components/SwapDetailsModal/SwapDetailsModal.WalletState.tsx +14 -8
  253. package/src/components/SwapDetailsModal/SwapDetailsModal.helpers.tsx +1 -1
  254. package/src/components/SwapDetailsModal/SwapDetailsModal.tsx +1 -1
  255. package/src/components/SwapDetailsModal/SwapDetailsModal.types.ts +1 -1
  256. package/src/components/SwapsGroup/SwapsGroup.styles.ts +10 -1
  257. package/src/components/SwapsGroup/SwapsGroup.tsx +3 -5
  258. package/src/components/TokenList/TokenList.helpers.ts +2 -2
  259. package/src/components/TokenList/TokenList.styles.ts +74 -38
  260. package/src/components/TokenList/TokenList.tsx +30 -20
  261. package/src/components/TokenList/TokenList.types.ts +4 -10
  262. package/src/components/TokenList/index.ts +0 -1
  263. package/src/components/UpdateUrl.tsx +0 -5
  264. package/src/constants/errors.ts +9 -5
  265. package/src/constants/index.ts +1 -0
  266. package/src/constants/navigationRoutes.ts +7 -8
  267. package/src/containers/App/App.styles.ts +18 -0
  268. package/src/containers/App/App.tsx +52 -0
  269. package/src/containers/App/index.ts +1 -0
  270. package/src/containers/QuoteInfo/QuoteInfo.styles.ts +17 -1
  271. package/src/containers/QuoteInfo/QuoteInfo.tsx +46 -44
  272. package/src/containers/QuoteInfo/QuoteInfo.types.ts +3 -0
  273. package/src/{Wallets.tsx → containers/Wallets/Wallets.tsx} +25 -31
  274. package/src/containers/Wallets/Wallets.types.ts +12 -0
  275. package/src/containers/Wallets/index.ts +1 -0
  276. package/src/containers/Widget/Widget.tsx +19 -0
  277. package/src/containers/Widget/Widget.types.ts +5 -0
  278. package/src/containers/Widget/index.ts +2 -0
  279. package/src/containers/WidgetInfo/WidgetInfo.helpers.ts +64 -0
  280. package/src/containers/WidgetInfo/WidgetInfo.tsx +62 -0
  281. package/src/containers/WidgetInfo/WidgetInfo.types.ts +21 -0
  282. package/src/containers/WidgetInfo/index.ts +1 -0
  283. package/src/containers/WidgetProvider/WidgetProvider.tsx +28 -0
  284. package/src/containers/WidgetProvider/WidgetProvider.types.ts +7 -0
  285. package/src/containers/WidgetProvider/index.ts +1 -0
  286. package/src/hooks/useConfirmSwap/useConfirmSwap.helpers.ts +15 -11
  287. package/src/hooks/useConfirmSwap/useConfirmSwap.ts +21 -20
  288. package/src/hooks/useConfirmSwap/useConfirmSwap.types.ts +1 -1
  289. package/src/hooks/useLanguage.ts +4 -5
  290. package/src/hooks/useNavigateBack.ts +3 -52
  291. package/src/hooks/usePrepareBlockchainList/usePrepareBlockchainList.constants.ts +1 -1
  292. package/src/hooks/usePrepareBlockchainList/usePrepareBlockchainList.helpers.ts +37 -7
  293. package/src/hooks/usePrepareBlockchainList/usePrepareBlockchainList.mock.ts +60 -0
  294. package/src/hooks/usePrepareBlockchainList/usePrepareBlockchainList.test.ts +78 -3
  295. package/src/hooks/usePrepareBlockchainList/usePrepareBlockchainList.ts +15 -6
  296. package/src/hooks/usePrepareBlockchainList/usePrepareBlockchainList.types.ts +6 -1
  297. package/src/hooks/useSwapInput.ts +86 -28
  298. package/src/hooks/useSyncStoresWithConfig.ts +18 -5
  299. package/src/hooks/useTheme.ts +4 -5
  300. package/src/index.ts +53 -5
  301. package/src/pages/ConfirmSwapPage.tsx +61 -33
  302. package/src/pages/HistoryPage.tsx +2 -7
  303. package/src/pages/Home.tsx +55 -81
  304. package/src/pages/LanguagePage.tsx +0 -5
  305. package/src/pages/LiquiditySourcePage.tsx +3 -7
  306. package/src/pages/SelectBlockchainPage.tsx +26 -18
  307. package/src/pages/SelectSwapItemsPage.tsx +13 -26
  308. package/src/pages/SettingsPage.tsx +26 -17
  309. package/src/pages/SwapDetailsPage.tsx +3 -4
  310. package/src/pages/ThemePage.tsx +2 -7
  311. package/src/pages/WalletsPage.tsx +5 -8
  312. package/src/services/httpService.ts +1 -1
  313. package/src/store/AppStore.tsx +7 -1
  314. package/src/store/app.ts +31 -5
  315. package/src/store/quote.ts +3 -4
  316. package/src/store/slices/config.ts +1 -0
  317. package/src/store/slices/data.ts +10 -6
  318. package/src/store/slices/settings.ts +168 -0
  319. package/src/store/wallets.ts +57 -29
  320. package/src/types/config.ts +48 -3
  321. package/src/types/swap.ts +4 -13
  322. package/src/types/wallets.ts +18 -1
  323. package/src/utils/colors.ts +2 -1
  324. package/src/utils/configs.ts +2 -1
  325. package/src/utils/date.ts +1 -1
  326. package/src/utils/meta.ts +8 -1
  327. package/src/utils/providers.ts +8 -5
  328. package/src/utils/queue.ts +2 -2
  329. package/src/utils/quote.ts +7 -7
  330. package/src/utils/settings.ts +11 -5
  331. package/src/utils/swap.ts +46 -40
  332. package/src/utils/time.ts +1 -1
  333. package/src/utils/wallets.ts +127 -144
  334. package/dist/Wallets.d.ts +0 -18
  335. package/dist/Wallets.d.ts.map +0 -1
  336. package/dist/Widget.d.ts +0 -9
  337. package/dist/Widget.d.ts.map +0 -1
  338. package/dist/components/LoadingSwapDetails/LoadingSwapDetailStep.d.ts +0 -4
  339. package/dist/components/LoadingSwapDetails/LoadingSwapDetailStep.d.ts.map +0 -1
  340. package/dist/components/LoadingSwapDetails/LoadingSwapDetails.types.d.ts +0 -4
  341. package/dist/components/LoadingSwapDetails/LoadingSwapDetails.types.d.ts.map +0 -1
  342. package/dist/components/Quote/QuoteSkeleton.d.ts.map +0 -1
  343. package/dist/components/Quote/QuoteSkeleton.styles.d.ts.map +0 -1
  344. package/dist/components/Quote/QuoteSkeleton.types.d.ts.map +0 -1
  345. package/dist/store/settings.d.ts +0 -82
  346. package/dist/store/settings.d.ts.map +0 -1
  347. package/src/Widget.tsx +0 -106
  348. package/src/components/LoadingSwapDetails/LoadingSwapDetailStep.tsx +0 -41
  349. package/src/components/LoadingSwapDetails/LoadingSwapDetails.types.ts +0 -3
  350. package/src/components/Quote/QuoteSkeleton.styles.ts +0 -110
  351. package/src/components/Quote/QuoteSkeleton.tsx +0 -108
  352. package/src/store/settings.ts +0 -161
  353. /package/dist/components/{Quote → QuoteSkeleton}/QuoteSkeleton.d.ts +0 -0
  354. /package/dist/components/{Quote → QuoteSkeleton}/QuoteSkeleton.types.d.ts +0 -0
  355. /package/src/components/{Quote → QuoteSkeleton}/QuoteSkeleton.types.ts +0 -0
@@ -0,0 +1,786 @@
1
+ export declare const StepContent: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
2
+ sm: string;
3
+ md: string;
4
+ lg: string;
5
+ }, import("@stitches/react/types/css-util").CSS<{
6
+ sm: string;
7
+ md: string;
8
+ lg: string;
9
+ }, {
10
+ colors: {
11
+ primary: string;
12
+ primary500: string;
13
+ primary600: string;
14
+ secondary: string;
15
+ secondary100: string;
16
+ secondary200: string;
17
+ secondary300: string;
18
+ secondary400: string;
19
+ secondary500: string;
20
+ secondary600: string;
21
+ secondary700: string;
22
+ secondary800: string;
23
+ secondary900: string;
24
+ neutral: string;
25
+ neutral100: string;
26
+ neutral200: string;
27
+ neutral300: string;
28
+ neutral400: string;
29
+ neutral500: string;
30
+ neutral600: string;
31
+ neutral700: string;
32
+ neutral800: string;
33
+ neutral900: string;
34
+ error100: string;
35
+ error300: string;
36
+ error500: string;
37
+ error600: string;
38
+ error700: string;
39
+ warning100: string;
40
+ warning300: string;
41
+ warning500: string;
42
+ warning600: string;
43
+ warning700: string;
44
+ info: string;
45
+ info100: string;
46
+ info300: string;
47
+ info500: string;
48
+ info600: string;
49
+ info700: string;
50
+ success100: string;
51
+ success300: string;
52
+ success500: string;
53
+ success600: string;
54
+ success700: string;
55
+ background: string;
56
+ foreground: string;
57
+ };
58
+ space: {
59
+ 0: string;
60
+ 5: string;
61
+ 10: string;
62
+ 15: string;
63
+ 20: string;
64
+ 25: string;
65
+ 30: string;
66
+ 40: string;
67
+ 46: string;
68
+ 50: string;
69
+ 60: string;
70
+ 70: string;
71
+ 80: string;
72
+ 90: string;
73
+ 100: string;
74
+ 2: string;
75
+ 4: string;
76
+ 6: string;
77
+ 8: string;
78
+ 12: string;
79
+ 16: string;
80
+ 24: string;
81
+ 28: string;
82
+ 32: string;
83
+ };
84
+ radii: {
85
+ xs: string;
86
+ sm: string;
87
+ xm: string;
88
+ md: string;
89
+ xl: string;
90
+ lg: string;
91
+ primary: string;
92
+ secondary: string;
93
+ };
94
+ fontSizes: {
95
+ 10: string;
96
+ 12: string;
97
+ 14: string;
98
+ 16: string;
99
+ 18: string;
100
+ 20: string;
101
+ 22: string;
102
+ 24: string;
103
+ 28: string;
104
+ 32: string;
105
+ 36: string;
106
+ 40: string;
107
+ 48: string;
108
+ };
109
+ fonts: {
110
+ primary: string;
111
+ widget: string;
112
+ };
113
+ fontWeights: {
114
+ regular: number;
115
+ medium: number;
116
+ semiBold: number;
117
+ bold: number;
118
+ };
119
+ lineHeights: {
120
+ 12: string;
121
+ 16: string;
122
+ 20: string;
123
+ 24: string;
124
+ 26: string;
125
+ 28: string;
126
+ 30: string;
127
+ 36: string;
128
+ 40: string;
129
+ 44: string;
130
+ 52: string;
131
+ 64: string;
132
+ };
133
+ letterSpacings: {};
134
+ sizes: {
135
+ 4: string;
136
+ 6: string;
137
+ 8: string;
138
+ 12: string;
139
+ 16: string;
140
+ 18: string;
141
+ 20: string;
142
+ 24: string;
143
+ 28: string;
144
+ 32: string;
145
+ 36: string;
146
+ 40: string;
147
+ 45: string;
148
+ 48: string;
149
+ };
150
+ borderWidths: {};
151
+ borderStyles: {};
152
+ shadows: {
153
+ s: string;
154
+ };
155
+ zIndices: {};
156
+ transitions: {};
157
+ }, import("@stitches/react/types/config").DefaultThemeMap, {}>>;
158
+ export declare const StepTokens: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
159
+ sm: string;
160
+ md: string;
161
+ lg: string;
162
+ }, import("@stitches/react/types/css-util").CSS<{
163
+ sm: string;
164
+ md: string;
165
+ lg: string;
166
+ }, {
167
+ colors: {
168
+ primary: string;
169
+ primary500: string;
170
+ primary600: string;
171
+ secondary: string;
172
+ secondary100: string;
173
+ secondary200: string;
174
+ secondary300: string;
175
+ secondary400: string;
176
+ secondary500: string;
177
+ secondary600: string;
178
+ secondary700: string;
179
+ secondary800: string;
180
+ secondary900: string;
181
+ neutral: string;
182
+ neutral100: string;
183
+ neutral200: string;
184
+ neutral300: string;
185
+ neutral400: string;
186
+ neutral500: string;
187
+ neutral600: string;
188
+ neutral700: string;
189
+ neutral800: string;
190
+ neutral900: string;
191
+ error100: string;
192
+ error300: string;
193
+ error500: string;
194
+ error600: string;
195
+ error700: string;
196
+ warning100: string;
197
+ warning300: string;
198
+ warning500: string;
199
+ warning600: string;
200
+ warning700: string;
201
+ info: string;
202
+ info100: string;
203
+ info300: string;
204
+ info500: string;
205
+ info600: string;
206
+ info700: string;
207
+ success100: string;
208
+ success300: string;
209
+ success500: string;
210
+ success600: string;
211
+ success700: string;
212
+ background: string;
213
+ foreground: string;
214
+ };
215
+ space: {
216
+ 0: string;
217
+ 5: string;
218
+ 10: string;
219
+ 15: string;
220
+ 20: string;
221
+ 25: string;
222
+ 30: string;
223
+ 40: string;
224
+ 46: string;
225
+ 50: string;
226
+ 60: string;
227
+ 70: string;
228
+ 80: string;
229
+ 90: string;
230
+ 100: string;
231
+ 2: string;
232
+ 4: string;
233
+ 6: string;
234
+ 8: string;
235
+ 12: string;
236
+ 16: string;
237
+ 24: string;
238
+ 28: string;
239
+ 32: string;
240
+ };
241
+ radii: {
242
+ xs: string;
243
+ sm: string;
244
+ xm: string;
245
+ md: string;
246
+ xl: string;
247
+ lg: string;
248
+ primary: string;
249
+ secondary: string;
250
+ };
251
+ fontSizes: {
252
+ 10: string;
253
+ 12: string;
254
+ 14: string;
255
+ 16: string;
256
+ 18: string;
257
+ 20: string;
258
+ 22: string;
259
+ 24: string;
260
+ 28: string;
261
+ 32: string;
262
+ 36: string;
263
+ 40: string;
264
+ 48: string;
265
+ };
266
+ fonts: {
267
+ primary: string;
268
+ widget: string;
269
+ };
270
+ fontWeights: {
271
+ regular: number;
272
+ medium: number;
273
+ semiBold: number;
274
+ bold: number;
275
+ };
276
+ lineHeights: {
277
+ 12: string;
278
+ 16: string;
279
+ 20: string;
280
+ 24: string;
281
+ 26: string;
282
+ 28: string;
283
+ 30: string;
284
+ 36: string;
285
+ 40: string;
286
+ 44: string;
287
+ 52: string;
288
+ 64: string;
289
+ };
290
+ letterSpacings: {};
291
+ sizes: {
292
+ 4: string;
293
+ 6: string;
294
+ 8: string;
295
+ 12: string;
296
+ 16: string;
297
+ 18: string;
298
+ 20: string;
299
+ 24: string;
300
+ 28: string;
301
+ 32: string;
302
+ 36: string;
303
+ 40: string;
304
+ 45: string;
305
+ 48: string;
306
+ };
307
+ borderWidths: {};
308
+ borderStyles: {};
309
+ shadows: {
310
+ s: string;
311
+ };
312
+ zIndices: {};
313
+ transitions: {};
314
+ }, import("@stitches/react/types/config").DefaultThemeMap, {}>>;
315
+ export declare const StepTokenInfo: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
316
+ sm: string;
317
+ md: string;
318
+ lg: string;
319
+ }, import("@stitches/react/types/css-util").CSS<{
320
+ sm: string;
321
+ md: string;
322
+ lg: string;
323
+ }, {
324
+ colors: {
325
+ primary: string;
326
+ primary500: string;
327
+ primary600: string;
328
+ secondary: string;
329
+ secondary100: string;
330
+ secondary200: string;
331
+ secondary300: string;
332
+ secondary400: string;
333
+ secondary500: string;
334
+ secondary600: string;
335
+ secondary700: string;
336
+ secondary800: string;
337
+ secondary900: string;
338
+ neutral: string;
339
+ neutral100: string;
340
+ neutral200: string;
341
+ neutral300: string;
342
+ neutral400: string;
343
+ neutral500: string;
344
+ neutral600: string;
345
+ neutral700: string;
346
+ neutral800: string;
347
+ neutral900: string;
348
+ error100: string;
349
+ error300: string;
350
+ error500: string;
351
+ error600: string;
352
+ error700: string;
353
+ warning100: string;
354
+ warning300: string;
355
+ warning500: string;
356
+ warning600: string;
357
+ warning700: string;
358
+ info: string;
359
+ info100: string;
360
+ info300: string;
361
+ info500: string;
362
+ info600: string;
363
+ info700: string;
364
+ success100: string;
365
+ success300: string;
366
+ success500: string;
367
+ success600: string;
368
+ success700: string;
369
+ background: string;
370
+ foreground: string;
371
+ };
372
+ space: {
373
+ 0: string;
374
+ 5: string;
375
+ 10: string;
376
+ 15: string;
377
+ 20: string;
378
+ 25: string;
379
+ 30: string;
380
+ 40: string;
381
+ 46: string;
382
+ 50: string;
383
+ 60: string;
384
+ 70: string;
385
+ 80: string;
386
+ 90: string;
387
+ 100: string;
388
+ 2: string;
389
+ 4: string;
390
+ 6: string;
391
+ 8: string;
392
+ 12: string;
393
+ 16: string;
394
+ 24: string;
395
+ 28: string;
396
+ 32: string;
397
+ };
398
+ radii: {
399
+ xs: string;
400
+ sm: string;
401
+ xm: string;
402
+ md: string;
403
+ xl: string;
404
+ lg: string;
405
+ primary: string;
406
+ secondary: string;
407
+ };
408
+ fontSizes: {
409
+ 10: string;
410
+ 12: string;
411
+ 14: string;
412
+ 16: string;
413
+ 18: string;
414
+ 20: string;
415
+ 22: string;
416
+ 24: string;
417
+ 28: string;
418
+ 32: string;
419
+ 36: string;
420
+ 40: string;
421
+ 48: string;
422
+ };
423
+ fonts: {
424
+ primary: string;
425
+ widget: string;
426
+ };
427
+ fontWeights: {
428
+ regular: number;
429
+ medium: number;
430
+ semiBold: number;
431
+ bold: number;
432
+ };
433
+ lineHeights: {
434
+ 12: string;
435
+ 16: string;
436
+ 20: string;
437
+ 24: string;
438
+ 26: string;
439
+ 28: string;
440
+ 30: string;
441
+ 36: string;
442
+ 40: string;
443
+ 44: string;
444
+ 52: string;
445
+ 64: string;
446
+ };
447
+ letterSpacings: {};
448
+ sizes: {
449
+ 4: string;
450
+ 6: string;
451
+ 8: string;
452
+ 12: string;
453
+ 16: string;
454
+ 18: string;
455
+ 20: string;
456
+ 24: string;
457
+ 28: string;
458
+ 32: string;
459
+ 36: string;
460
+ 40: string;
461
+ 45: string;
462
+ 48: string;
463
+ };
464
+ borderWidths: {};
465
+ borderStyles: {};
466
+ shadows: {
467
+ s: string;
468
+ };
469
+ zIndices: {};
470
+ transitions: {};
471
+ }, import("@stitches/react/types/config").DefaultThemeMap, {}>>;
472
+ export declare const StepIconContainer: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
473
+ sm: string;
474
+ md: string;
475
+ lg: string;
476
+ }, import("@stitches/react/types/css-util").CSS<{
477
+ sm: string;
478
+ md: string;
479
+ lg: string;
480
+ }, {
481
+ colors: {
482
+ primary: string;
483
+ primary500: string;
484
+ primary600: string;
485
+ secondary: string;
486
+ secondary100: string;
487
+ secondary200: string;
488
+ secondary300: string;
489
+ secondary400: string;
490
+ secondary500: string;
491
+ secondary600: string;
492
+ secondary700: string;
493
+ secondary800: string;
494
+ secondary900: string;
495
+ neutral: string;
496
+ neutral100: string;
497
+ neutral200: string;
498
+ neutral300: string;
499
+ neutral400: string;
500
+ neutral500: string;
501
+ neutral600: string;
502
+ neutral700: string;
503
+ neutral800: string;
504
+ neutral900: string;
505
+ error100: string;
506
+ error300: string;
507
+ error500: string;
508
+ error600: string;
509
+ error700: string;
510
+ warning100: string;
511
+ warning300: string;
512
+ warning500: string;
513
+ warning600: string;
514
+ warning700: string;
515
+ info: string;
516
+ info100: string;
517
+ info300: string;
518
+ info500: string;
519
+ info600: string;
520
+ info700: string;
521
+ success100: string;
522
+ success300: string;
523
+ success500: string;
524
+ success600: string;
525
+ success700: string;
526
+ background: string;
527
+ foreground: string;
528
+ };
529
+ space: {
530
+ 0: string;
531
+ 5: string;
532
+ 10: string;
533
+ 15: string;
534
+ 20: string;
535
+ 25: string;
536
+ 30: string;
537
+ 40: string;
538
+ 46: string;
539
+ 50: string;
540
+ 60: string;
541
+ 70: string;
542
+ 80: string;
543
+ 90: string;
544
+ 100: string;
545
+ 2: string;
546
+ 4: string;
547
+ 6: string;
548
+ 8: string;
549
+ 12: string;
550
+ 16: string;
551
+ 24: string;
552
+ 28: string;
553
+ 32: string;
554
+ };
555
+ radii: {
556
+ xs: string;
557
+ sm: string;
558
+ xm: string;
559
+ md: string;
560
+ xl: string;
561
+ lg: string;
562
+ primary: string;
563
+ secondary: string;
564
+ };
565
+ fontSizes: {
566
+ 10: string;
567
+ 12: string;
568
+ 14: string;
569
+ 16: string;
570
+ 18: string;
571
+ 20: string;
572
+ 22: string;
573
+ 24: string;
574
+ 28: string;
575
+ 32: string;
576
+ 36: string;
577
+ 40: string;
578
+ 48: string;
579
+ };
580
+ fonts: {
581
+ primary: string;
582
+ widget: string;
583
+ };
584
+ fontWeights: {
585
+ regular: number;
586
+ medium: number;
587
+ semiBold: number;
588
+ bold: number;
589
+ };
590
+ lineHeights: {
591
+ 12: string;
592
+ 16: string;
593
+ 20: string;
594
+ 24: string;
595
+ 26: string;
596
+ 28: string;
597
+ 30: string;
598
+ 36: string;
599
+ 40: string;
600
+ 44: string;
601
+ 52: string;
602
+ 64: string;
603
+ };
604
+ letterSpacings: {};
605
+ sizes: {
606
+ 4: string;
607
+ 6: string;
608
+ 8: string;
609
+ 12: string;
610
+ 16: string;
611
+ 18: string;
612
+ 20: string;
613
+ 24: string;
614
+ 28: string;
615
+ 32: string;
616
+ 36: string;
617
+ 40: string;
618
+ 45: string;
619
+ 48: string;
620
+ };
621
+ borderWidths: {};
622
+ borderStyles: {};
623
+ shadows: {
624
+ s: string;
625
+ };
626
+ zIndices: {};
627
+ transitions: {};
628
+ }, import("@stitches/react/types/config").DefaultThemeMap, {}>>;
629
+ export declare const StepTitle: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
630
+ sm: string;
631
+ md: string;
632
+ lg: string;
633
+ }, import("@stitches/react/types/css-util").CSS<{
634
+ sm: string;
635
+ md: string;
636
+ lg: string;
637
+ }, {
638
+ colors: {
639
+ primary: string;
640
+ primary500: string;
641
+ primary600: string;
642
+ secondary: string;
643
+ secondary100: string;
644
+ secondary200: string;
645
+ secondary300: string;
646
+ secondary400: string;
647
+ secondary500: string;
648
+ secondary600: string;
649
+ secondary700: string;
650
+ secondary800: string;
651
+ secondary900: string;
652
+ neutral: string;
653
+ neutral100: string;
654
+ neutral200: string;
655
+ neutral300: string;
656
+ neutral400: string;
657
+ neutral500: string;
658
+ neutral600: string;
659
+ neutral700: string;
660
+ neutral800: string;
661
+ neutral900: string;
662
+ error100: string;
663
+ error300: string;
664
+ error500: string;
665
+ error600: string;
666
+ error700: string;
667
+ warning100: string;
668
+ warning300: string;
669
+ warning500: string;
670
+ warning600: string;
671
+ warning700: string;
672
+ info: string;
673
+ info100: string;
674
+ info300: string;
675
+ info500: string;
676
+ info600: string;
677
+ info700: string;
678
+ success100: string;
679
+ success300: string;
680
+ success500: string;
681
+ success600: string;
682
+ success700: string;
683
+ background: string;
684
+ foreground: string;
685
+ };
686
+ space: {
687
+ 0: string;
688
+ 5: string;
689
+ 10: string;
690
+ 15: string;
691
+ 20: string;
692
+ 25: string;
693
+ 30: string;
694
+ 40: string;
695
+ 46: string;
696
+ 50: string;
697
+ 60: string;
698
+ 70: string;
699
+ 80: string;
700
+ 90: string;
701
+ 100: string;
702
+ 2: string;
703
+ 4: string;
704
+ 6: string;
705
+ 8: string;
706
+ 12: string;
707
+ 16: string;
708
+ 24: string;
709
+ 28: string;
710
+ 32: string;
711
+ };
712
+ radii: {
713
+ xs: string;
714
+ sm: string;
715
+ xm: string;
716
+ md: string;
717
+ xl: string;
718
+ lg: string;
719
+ primary: string;
720
+ secondary: string;
721
+ };
722
+ fontSizes: {
723
+ 10: string;
724
+ 12: string;
725
+ 14: string;
726
+ 16: string;
727
+ 18: string;
728
+ 20: string;
729
+ 22: string;
730
+ 24: string;
731
+ 28: string;
732
+ 32: string;
733
+ 36: string;
734
+ 40: string;
735
+ 48: string;
736
+ };
737
+ fonts: {
738
+ primary: string;
739
+ widget: string;
740
+ };
741
+ fontWeights: {
742
+ regular: number;
743
+ medium: number;
744
+ semiBold: number;
745
+ bold: number;
746
+ };
747
+ lineHeights: {
748
+ 12: string;
749
+ 16: string;
750
+ 20: string;
751
+ 24: string;
752
+ 26: string;
753
+ 28: string;
754
+ 30: string;
755
+ 36: string;
756
+ 40: string;
757
+ 44: string;
758
+ 52: string;
759
+ 64: string;
760
+ };
761
+ letterSpacings: {};
762
+ sizes: {
763
+ 4: string;
764
+ 6: string;
765
+ 8: string;
766
+ 12: string;
767
+ 16: string;
768
+ 18: string;
769
+ 20: string;
770
+ 24: string;
771
+ 28: string;
772
+ 32: string;
773
+ 36: string;
774
+ 40: string;
775
+ 45: string;
776
+ 48: string;
777
+ };
778
+ borderWidths: {};
779
+ borderStyles: {};
780
+ shadows: {
781
+ s: string;
782
+ };
783
+ zIndices: {};
784
+ transitions: {};
785
+ }, import("@stitches/react/types/config").DefaultThemeMap, {}>>;
786
+ //# sourceMappingURL=StepSkeleton.styles.d.ts.map