@rango-dev/ui 0.22.1-next.8 → 0.23.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 (122) hide show
  1. package/CHANGELOG.md +89 -0
  2. package/dist/index.js +6 -6
  3. package/dist/index.js.map +4 -4
  4. package/dist/translations/en.d.ts.map +1 -1
  5. package/dist/translations/es.d.ts.map +1 -1
  6. package/dist/translations/fr.d.ts.map +1 -1
  7. package/dist/translations/ja.d.ts.map +1 -1
  8. package/dist/widget/ui/src/components/Alert/Alert.styles.d.ts +157 -0
  9. package/dist/widget/ui/src/components/Alert/Alert.styles.d.ts.map +1 -1
  10. package/dist/widget/ui/src/components/BlockchainsChip/BlockchainsChip.styles.d.ts.map +1 -1
  11. package/dist/widget/ui/src/components/Button/Button.d.ts +54 -54
  12. package/dist/widget/ui/src/components/Button/Button.styles.d.ts.map +1 -1
  13. package/dist/widget/ui/src/components/ListItem/ListItem.styles.d.ts.map +1 -1
  14. package/dist/widget/ui/src/components/ListItemButton/ListItemButton.styles.d.ts.map +1 -1
  15. package/dist/widget/ui/src/components/PriceImpact/PriceImpact.styles.d.ts +158 -0
  16. package/dist/widget/ui/src/components/PriceImpact/PriceImpact.styles.d.ts.map +1 -1
  17. package/dist/widget/ui/src/components/QuoteCost/QuoteCost.d.ts.map +1 -1
  18. package/dist/widget/ui/src/components/QuoteCost/QuoteCost.styles.d.ts +314 -0
  19. package/dist/widget/ui/src/components/QuoteCost/QuoteCost.styles.d.ts.map +1 -1
  20. package/dist/widget/ui/src/components/SelectableCategoryList/SelectableCategoryList.d.ts.map +1 -1
  21. package/dist/widget/ui/src/components/SelectableCategoryList/SelectableCategoryList.helpers.d.ts +16 -2
  22. package/dist/widget/ui/src/components/SelectableCategoryList/SelectableCategoryList.helpers.d.ts.map +1 -1
  23. package/dist/widget/ui/src/components/SelectableCategoryList/index.d.ts +1 -0
  24. package/dist/widget/ui/src/components/SelectableCategoryList/index.d.ts.map +1 -1
  25. package/dist/widget/ui/src/components/Skeleton/Skeleton.d.ts.map +1 -1
  26. package/dist/widget/ui/src/components/Skeleton/Skeleton.types.d.ts +1 -1
  27. package/dist/widget/ui/src/components/Skeleton/Skeleton.types.d.ts.map +1 -1
  28. package/dist/widget/ui/src/components/StepDetails/StepDetails.d.ts.map +1 -1
  29. package/dist/widget/ui/src/components/StepDetails/StepDetails.styles.d.ts +6 -0
  30. package/dist/widget/ui/src/components/StepDetails/StepDetails.styles.d.ts.map +1 -1
  31. package/dist/widget/ui/src/components/SwapListItem/mock.d.ts +1 -1
  32. package/dist/widget/ui/src/components/SwapListItem/mock.d.ts.map +1 -1
  33. package/dist/widget/ui/src/components/Switch/Switch.styles.d.ts.map +1 -1
  34. package/dist/widget/ui/src/components/TextField/TextField.d.ts.map +1 -1
  35. package/dist/widget/ui/src/components/TokenAmount/TokenAmount.d.ts.map +1 -1
  36. package/dist/widget/ui/src/components/TokenAmount/TokenAmount.styles.d.ts +471 -1
  37. package/dist/widget/ui/src/components/TokenAmount/TokenAmount.styles.d.ts.map +1 -1
  38. package/dist/widget/ui/src/components/Tooltip/Tooltip.d.ts.map +1 -1
  39. package/dist/widget/ui/src/components/Tooltip/Tooltip.styles.d.ts +2 -2
  40. package/dist/widget/ui/src/components/Tooltip/Tooltip.styles.d.ts.map +1 -1
  41. package/dist/widget/ui/src/components/Wallet/Wallet.types.d.ts +3 -17
  42. package/dist/widget/ui/src/components/Wallet/Wallet.types.d.ts.map +1 -1
  43. package/dist/widget/ui/src/components/common/Image.d.ts +157 -0
  44. package/dist/widget/ui/src/components/common/Image.d.ts.map +1 -1
  45. package/dist/widget/ui/src/components/common/index.d.ts +1 -1
  46. package/dist/widget/ui/src/components/common/index.d.ts.map +1 -1
  47. package/dist/widget/ui/src/containers/SwapHistory/SwapHistory.d.ts +1 -1
  48. package/dist/widget/ui/src/containers/SwapHistory/SwapHistory.d.ts.map +1 -1
  49. package/dist/widget/ui/src/containers/SwapHistory/SwapHistory.stories.d.ts +2 -2
  50. package/dist/widget/ui/src/containers/SwapHistory/SwapHistory.stories.d.ts.map +1 -1
  51. package/dist/widget/ui/src/containers/SwapHistory/mock.d.ts +1 -1
  52. package/dist/widget/ui/src/containers/SwapHistory/mock.d.ts.map +1 -1
  53. package/dist/widget/ui/src/containers/SwapInput/SwapInput.d.ts.map +1 -1
  54. package/dist/widget/ui/src/containers/SwapInput/SwapInput.styles.d.ts +1154 -54
  55. package/dist/widget/ui/src/containers/SwapInput/SwapInput.styles.d.ts.map +1 -1
  56. package/dist/widget/ui/src/containers/SwapInput/SwapInput.types.d.ts +2 -0
  57. package/dist/widget/ui/src/containers/SwapInput/SwapInput.types.d.ts.map +1 -1
  58. package/dist/widget/ui/src/containers/SwapInput/TokenSection.d.ts.map +1 -1
  59. package/dist/widget/ui/src/containers/SwapInput/TokenSection.styles.d.ts +525 -54
  60. package/dist/widget/ui/src/containers/SwapInput/TokenSection.styles.d.ts.map +1 -1
  61. package/dist/widget/ui/src/icons/CosmosCategory.d.ts +5 -0
  62. package/dist/widget/ui/src/icons/CosmosCategory.d.ts.map +1 -0
  63. package/dist/widget/ui/src/icons/EvmCategory.d.ts +5 -0
  64. package/dist/widget/ui/src/icons/EvmCategory.d.ts.map +1 -0
  65. package/dist/widget/ui/src/icons/Icons.stories.d.ts +1 -1
  66. package/dist/widget/ui/src/icons/OtherCategory.d.ts +5 -0
  67. package/dist/widget/ui/src/icons/OtherCategory.d.ts.map +1 -0
  68. package/dist/widget/ui/src/icons/UtxoCategory.d.ts +5 -0
  69. package/dist/widget/ui/src/icons/UtxoCategory.d.ts.map +1 -0
  70. package/dist/widget/ui/src/icons/index.d.ts +4 -0
  71. package/dist/widget/ui/src/icons/index.d.ts.map +1 -1
  72. package/dist/widget/ui/src/types/index.d.ts +0 -1
  73. package/dist/widget/ui/src/types/index.d.ts.map +1 -1
  74. package/dist/widget/ui/src/types/swaps.d.ts +1 -27
  75. package/dist/widget/ui/src/types/swaps.d.ts.map +1 -1
  76. package/package.json +6 -5
  77. package/src/components/Alert/Alert.styles.ts +8 -7
  78. package/src/components/Alert/Alert.tsx +2 -2
  79. package/src/components/BlockchainsChip/BlockchainsChip.styles.ts +2 -1
  80. package/src/components/Button/Button.styles.tsx +1 -0
  81. package/src/components/ListItem/ListItem.styles.ts +2 -0
  82. package/src/components/ListItemButton/ListItemButton.styles.ts +1 -0
  83. package/src/components/PriceImpact/PriceImpact.styles.ts +9 -1
  84. package/src/components/PriceImpact/PriceImpact.tsx +3 -3
  85. package/src/components/QuoteCost/QuoteCost.styles.ts +14 -12
  86. package/src/components/QuoteCost/QuoteCost.tsx +12 -7
  87. package/src/components/SelectableCategoryList/SelectableCategoryList.helpers.ts +40 -13
  88. package/src/components/SelectableCategoryList/SelectableCategoryList.tsx +47 -46
  89. package/src/components/SelectableCategoryList/index.ts +1 -0
  90. package/src/components/Skeleton/Skeleton.tsx +3 -2
  91. package/src/components/Skeleton/Skeleton.types.ts +1 -1
  92. package/src/components/StepDetails/StepDetails.styles.ts +34 -26
  93. package/src/components/StepDetails/StepDetails.tsx +8 -4
  94. package/src/components/SwapListItem/mock.ts +21 -6
  95. package/src/components/Switch/Switch.styles.tsx +3 -5
  96. package/src/components/TextField/TextField.tsx +3 -5
  97. package/src/components/TokenAmount/TokenAmount.styles.ts +12 -10
  98. package/src/components/TokenAmount/TokenAmount.tsx +23 -17
  99. package/src/components/Tooltip/Tooltip.styles.ts +8 -5
  100. package/src/components/Tooltip/Tooltip.tsx +2 -3
  101. package/src/components/Wallet/Wallet.styles.ts +1 -1
  102. package/src/components/Wallet/Wallet.types.ts +3 -23
  103. package/src/components/common/Image.tsx +1 -2
  104. package/src/components/common/index.ts +1 -1
  105. package/src/containers/SwapHistory/SwapHistory.stories.tsx +5 -2
  106. package/src/containers/SwapHistory/SwapHistory.tsx +1 -1
  107. package/src/containers/SwapHistory/mock.ts +24 -8
  108. package/src/containers/SwapInput/SwapInput.styles.ts +48 -30
  109. package/src/containers/SwapInput/SwapInput.tsx +26 -15
  110. package/src/containers/SwapInput/SwapInput.types.ts +2 -0
  111. package/src/containers/SwapInput/TokenSection.styles.ts +22 -14
  112. package/src/containers/SwapInput/TokenSection.tsx +12 -6
  113. package/src/icons/CosmosCategory.tsx +137 -0
  114. package/src/icons/EvmCategory.tsx +74 -0
  115. package/src/icons/OtherCategory.tsx +72 -0
  116. package/src/icons/UtxoCategory.tsx +44 -0
  117. package/src/icons/index.ts +4 -0
  118. package/src/types/index.ts +0 -1
  119. package/src/types/swaps.ts +0 -38
  120. package/dist/widget/ui/src/containers/History/types.d.ts +0 -2
  121. package/dist/widget/ui/src/containers/History/types.d.ts.map +0 -1
  122. package/src/containers/History/types.tsx +0 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,92 @@
1
+ # 0.23.0 (2023-12-24)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * add presets from v1 ([c7d75df](https://github.com/yeager-eren/rango-client/commit/c7d75dff53f02d6df0a399bb0e58462af707a73e))
7
+ * adding lingui to ui and embedded packages ([efed0d6](https://github.com/yeager-eren/rango-client/commit/efed0d6da437bfd472f26a280adc55da1151966a))
8
+ * address sub setting issues ([e5ee97d](https://github.com/yeager-eren/rango-client/commit/e5ee97dbcf78eb59534b21e84e8785223b8a658d))
9
+ * build error in alpha ([e2ef0e9](https://github.com/yeager-eren/rango-client/commit/e2ef0e919a84a818938089614e4bd97fd34c0d9c))
10
+ * convert string to i18n function ([fc52b8f](https://github.com/yeager-eren/rango-client/commit/fc52b8f92ea1071a3dc1cb9c7691854854ba9a80))
11
+ * deleted consoles ([5fef4b9](https://github.com/yeager-eren/rango-client/commit/5fef4b912510ee2e1f0b4fe107140761e63c3ca8))
12
+ * fix dynamic content issue in crowdin ([481ce06](https://github.com/yeager-eren/rango-client/commit/481ce06496353fce094496da21edc98dac61e1b2))
13
+ * fix HMR for widget and playground ([8524820](https://github.com/yeager-eren/rango-client/commit/8524820f10cf0b8921f3db0c4f620ff98daa4103))
14
+ * fix lingui version ([b7de08b](https://github.com/yeager-eren/rango-client/commit/b7de08b457314192665b9d3afa809e63ecd311a8))
15
+ * fix minor bugs ([932dbcc](https://github.com/yeager-eren/rango-client/commit/932dbcc19d648f0e409a2404f29bf1077b58cfe3))
16
+ * fix quote info bugs ([3668d84](https://github.com/yeager-eren/rango-client/commit/3668d84a43e3d6055b8ff133f546aabce6fcf616))
17
+ * fix settings page issues ([c7aa12f](https://github.com/yeager-eren/rango-client/commit/c7aa12fa1731ad9a50dd6ea2fa362e6d4f2ccdb8))
18
+ * fix wallet adapter demo build ([43a3beb](https://github.com/yeager-eren/rango-client/commit/43a3bebb50ce10e7e72944f5465c0c66d01e265d))
19
+ * fix wallet button state in swap details page ([ad57603](https://github.com/yeager-eren/rango-client/commit/ad57603885968b2792ed382dc80a3862dc0eebde))
20
+ * fix widget ui build ([c3b5900](https://github.com/yeager-eren/rango-client/commit/c3b590058d3bd35b58ac053d1eb25b55e7e1b107))
21
+ * Fixed colorpicker ([d821340](https://github.com/yeager-eren/rango-client/commit/d821340fc3f5df07ccbfc3555ae4d7dba0cad49b))
22
+ * fixed onMouseLeave in tooltip ([13dc667](https://github.com/yeager-eren/rango-client/commit/13dc6673f4f6504abb1de2c277ae6559f0dfbb2c))
23
+ * images and preview of confirm swap, completed ([5da81f4](https://github.com/yeager-eren/rango-client/commit/5da81f4a76dda4d76f794d7042c9e39d8846e3ba))
24
+ * import bugs ([fffe059](https://github.com/yeager-eren/rango-client/commit/fffe059fb5d58e358d84e01d31c4469eb9f77ad0))
25
+ * improve widget for smaller screens ([75a3107](https://github.com/yeager-eren/rango-client/commit/75a310770ece2969833dda2789bee5b8ccda166e))
26
+ * input outlines & blockchains displayNames ([079afc1](https://github.com/yeager-eren/rango-client/commit/079afc1c9e84d35de078a87121a83777176c3bd4))
27
+ * reading and showing blockchains/tokens based on config ([94e3107](https://github.com/yeager-eren/rango-client/commit/94e31071c872b751de2e91ccb6580365dc79402a))
28
+ * Some functions were transferred to helper ([7d5756f](https://github.com/yeager-eren/rango-client/commit/7d5756fc476728e84b16300102918542520983a7))
29
+ * some polishment on playground ([cf17f9e](https://github.com/yeager-eren/rango-client/commit/cf17f9e2ac2efc9467c4f550e09eaf19170bbbf0))
30
+ * theme.ts was broken on some build tools like webpack ([8577d21](https://github.com/yeager-eren/rango-client/commit/8577d218b5b6a1e91aef40d0671578e72f396b03))
31
+ * update blockchain category icons ([5ffd1ac](https://github.com/yeager-eren/rango-client/commit/5ffd1ac9bbe4cee26500c010718f4f530b1349f6))
32
+ * update classNames to new pattern for conflict prevention ([3c89278](https://github.com/yeager-eren/rango-client/commit/3c8927893381774f8bc8dc5b049ffdfccea1ffe4))
33
+ * update playground export code ui ([34a8de9](https://github.com/yeager-eren/rango-client/commit/34a8de9d3c200988d322e9a421cf04d1fbd1f604))
34
+ * update rango-types and fix notification bugs ([993f185](https://github.com/yeager-eren/rango-client/commit/993f185e0b8c5e5e15a2c65ba2d85d1f9c8daa90))
35
+ * updating query params ([79cacb2](https://github.com/yeager-eren/rango-client/commit/79cacb2fe88cd05c4bc6bcd755cf31e31f4ac4c1))
36
+
37
+
38
+ ### Features
39
+
40
+ * add animation for modal ([ca69ab6](https://github.com/yeager-eren/rango-client/commit/ca69ab60d68a3844b031556e5f30502c5c752dd9))
41
+ * add dark/light theme to playground ([01c4c45](https://github.com/yeager-eren/rango-client/commit/01c4c45cf42a5b9a945e687fbaf3cb141ca19d13))
42
+ * add langugage section to Playground ([c2deaec](https://github.com/yeager-eren/rango-client/commit/c2deaec91813f7e5cc4bccc2be78f5c297cc1a2d))
43
+ * add notification to widget ([5ca2b63](https://github.com/yeager-eren/rango-client/commit/5ca2b63b87f7941a4b347af596fd5786ea32ba42))
44
+ * add project id as a external value ([0c80404](https://github.com/yeager-eren/rango-client/commit/0c80404a8cacb6c5b0338dea1e416b0b11db254b))
45
+ * add route skeleton component ([5cbdc3d](https://github.com/yeager-eren/rango-client/commit/5cbdc3d186caf88da9ddf0a83d27e0dcae628340))
46
+ * add skeleton for wallet-page & showing its error ([ea922d6](https://github.com/yeager-eren/rango-client/commit/ea922d6291210b6dec569d20f0f623b7449cc7c0))
47
+ * add state wallet modal ([eced597](https://github.com/yeager-eren/rango-client/commit/eced59790314c2180c5677e9de6c21dfd0dd7129))
48
+ * add svgr to build icons ([6d5b812](https://github.com/yeager-eren/rango-client/commit/6d5b81213c2b6b2c0b239f91e6d08869d227595e))
49
+ * add swap input component ([42aba22](https://github.com/yeager-eren/rango-client/commit/42aba22c97ac2533a8aef77d3b3efeeb96f8b841))
50
+ * change colors theme ([007261e](https://github.com/yeager-eren/rango-client/commit/007261e8ad5f86dd72698ec0826cdcffbf74dbb0))
51
+ * custom colors for presets (style sidebar) ([5268162](https://github.com/yeager-eren/rango-client/commit/52681624732e542f9841f5963d61e7f9778c78cd))
52
+ * design history item page ([547f0b2](https://github.com/yeager-eren/rango-client/commit/547f0b2ade03a31f00a88faf4659f97a9f037abd))
53
+ * Header redesign ([4679400](https://github.com/yeager-eren/rango-client/commit/46794001b75f86e7dcce3eade305b54f7a18a320))
54
+ * history list page loading ([fd1e888](https://github.com/yeager-eren/rango-client/commit/fd1e88832c828b89ceca25096551c308044ef4ae))
55
+ * implement default chain/token/amount section to playground ([5649fb9](https://github.com/yeager-eren/rango-client/commit/5649fb96f6bdd7de1f78386b7960cdf1c83fb8ad))
56
+ * implement general style options for playground ([237c4b6](https://github.com/yeager-eren/rango-client/commit/237c4b65eccd725372e4fbd8e9ec0cd50496c471))
57
+ * implement mobile version of playground ([2737ecd](https://github.com/yeager-eren/rango-client/commit/2737ecd7ea273f1d31a6a949d398922c42edaf42))
58
+ * implement playgroud wallet section ([8cf0ecf](https://github.com/yeager-eren/rango-client/commit/8cf0ecfacfe0444e961366a8b3d201c5b245a555))
59
+ * implement route errors/warnings ([6f6d1d7](https://github.com/yeager-eren/rango-client/commit/6f6d1d7e5723d680b44b6248795407deab5ec656))
60
+ * implement Themes section in Style for playground ([c32bf10](https://github.com/yeager-eren/rango-client/commit/c32bf10ee0dded5a92a33305a06202435eb55b6b))
61
+ * implemnting Wallet & Tooltip ([b7d28f9](https://github.com/yeager-eren/rango-client/commit/b7d28f9fb2f8b3648f9e88b812002a33768570de))
62
+ * re-design modal & drawer & add message box ([cb9751e](https://github.com/yeager-eren/rango-client/commit/cb9751ee3959576cf3a3f14bbe7798926dd74360))
63
+ * re-design switch & radio component ([03357b6](https://github.com/yeager-eren/rango-client/commit/03357b65dd1406414f25d0b94ce3c90abd51ceb4))
64
+ * re-implement history list page ([9f2753e](https://github.com/yeager-eren/rango-client/commit/9f2753e43acc56a750daeb95095a9bcc2ed1642c))
65
+ * redesign alert component ([031eeb9](https://github.com/yeager-eren/rango-client/commit/031eeb976822b24a41f7f6cc68c6b12bd05a8b5c))
66
+ * redesign best route component ([048977d](https://github.com/yeager-eren/rango-client/commit/048977dfe2e986481d7ac0c688cbc4b407f81403))
67
+ * redesign checkbox component ([41f1c3e](https://github.com/yeager-eren/rango-client/commit/41f1c3ed7e4bda10cf0ad1cad8193756ee8f4e8f))
68
+ * redesign of connect wallet page ([7b83f9d](https://github.com/yeager-eren/rango-client/commit/7b83f9d5e4660198f27043d03322a86af131b88c))
69
+ * redesign Radio and RadioGroup ([0dc3249](https://github.com/yeager-eren/rango-client/commit/0dc3249a2e42d4f9d75c05df615508e891b13c0d))
70
+ * redesign setting page ([77cf408](https://github.com/yeager-eren/rango-client/commit/77cf40835c423aa992bf2adb7a2af5e997027121))
71
+ * redesign skeleton & add swap to/from swap page ([b529e98](https://github.com/yeager-eren/rango-client/commit/b529e9859175bb9bf76b84e7885d00d2a1e3c21a))
72
+ * redesign sub setting page ([c028003](https://github.com/yeager-eren/rango-client/commit/c028003900b1aac8ae6e687a3f42a8519231bb01))
73
+ * refinement home page ([2009955](https://github.com/yeager-eren/rango-client/commit/2009955f117395f5cfdbc297b57b0f6a7a62d813))
74
+ * setup crowdin localization ([4642e6a](https://github.com/yeager-eren/rango-client/commit/4642e6a60e647dfc0953e6f7aaf519b59d415d2e))
75
+ * setup lingui for multi-language in widget ([a3f1331](https://github.com/yeager-eren/rango-client/commit/a3f1331def487989a5717335b062dd9ef45876ad))
76
+ * Support for WalletConnect 2 ([faedef0](https://github.com/yeager-eren/rango-client/commit/faedef0b5e6fc3c5ef881cbbe4ec05334cc1c910))
77
+ * support multi languages ([551e8ef](https://github.com/yeager-eren/rango-client/commit/551e8ef93786a92a950bd54a2b8af24bad0259a1))
78
+ * swap-input loading ([12a77d5](https://github.com/yeager-eren/rango-client/commit/12a77d52ae6f5ec2937d6023080593a3df73dbfc))
79
+ * token/chain selector problems ([52ac45e](https://github.com/yeager-eren/rango-client/commit/52ac45e8471f18c96277366d1ce29eb0b4492b5e))
80
+ * update confirm swap and confirm wallets components ([08c0f62](https://github.com/yeager-eren/rango-client/commit/08c0f622d0e691868848084d46a8df110bc9fc37))
81
+ * update playground design layout ([e904ee1](https://github.com/yeager-eren/rango-client/commit/e904ee1d1a4bd326d032ae739f5121dff88231ed))
82
+ * widget colors! ([285b1ca](https://github.com/yeager-eren/rango-client/commit/285b1ca4811ada950a3dbcf581b0c915ba6d9c6e))
83
+ * **widget-v2:** List, ListItem, ListItemButton components ([5dd7fcd](https://github.com/yeager-eren/rango-client/commit/5dd7fcd8f830c423cef92db8aa477f736076b948))
84
+ * **widget-v2:** redesign button ([db4f8e8](https://github.com/yeager-eren/rango-client/commit/db4f8e8f3984319534a83864ef9ce7394da959f1))
85
+ * **widget-v2:** redesign text-field ([870e8f5](https://github.com/yeager-eren/rango-client/commit/870e8f555bf18941f3d05e0bf7226ad2d13562dc))
86
+ * **widget-v2:** redesign typography ([7608499](https://github.com/yeager-eren/rango-client/commit/7608499122805e83aac55c28dfbd76008eef02cc))
87
+
88
+
89
+
1
90
  # [0.14.0](https://github.com/rango-exchange/rango-client/compare/ui@0.13.0...ui@0.14.0) (2023-08-03)
2
91
 
3
92