@0xsquid/ui 0.17.0 → 0.17.1-beta.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 (242) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/index.js +6884 -35464
  3. package/dist/cjs/types/components/badges/IconLabel.d.ts +10 -0
  4. package/dist/cjs/types/components/badges/ImageIcon.d.ts +9 -0
  5. package/dist/cjs/types/components/badges/LoadingSkeleton.d.ts +8 -2
  6. package/dist/cjs/types/components/badges/TransactionState.d.ts +15 -0
  7. package/dist/cjs/types/components/badges/WalletLink.d.ts +6 -0
  8. package/dist/cjs/types/components/badges/index.d.ts +4 -0
  9. package/dist/cjs/types/components/buttons/FilterButton.d.ts +6 -0
  10. package/dist/cjs/types/components/buttons/index.d.ts +1 -0
  11. package/dist/cjs/types/components/icons/Approve.d.ts +1 -0
  12. package/dist/cjs/types/components/icons/Arrow.d.ts +12 -2
  13. package/dist/cjs/types/components/icons/ArrowRotate.d.ts +1 -0
  14. package/dist/cjs/types/components/icons/Bag.d.ts +1 -0
  15. package/dist/cjs/types/components/icons/BoostBadge.d.ts +1 -0
  16. package/dist/cjs/types/components/icons/Calendar.d.ts +1 -0
  17. package/dist/cjs/types/components/icons/Collection.d.ts +1 -0
  18. package/dist/cjs/types/components/icons/Copy.d.ts +5 -0
  19. package/dist/cjs/types/components/icons/Filter.d.ts +1 -0
  20. package/dist/cjs/types/components/icons/HomeIcon.d.ts +3 -0
  21. package/dist/cjs/types/components/icons/ImageSparkle.d.ts +1 -0
  22. package/dist/cjs/types/components/icons/Link.d.ts +2 -0
  23. package/dist/cjs/types/components/icons/Loader.d.ts +3 -3
  24. package/dist/cjs/types/components/icons/NotAllowed.d.ts +1 -0
  25. package/dist/cjs/types/components/icons/PieChart.d.ts +1 -0
  26. package/dist/cjs/types/components/icons/Separator.d.ts +3 -0
  27. package/dist/cjs/types/components/icons/SquareArrowCenter.d.ts +1 -0
  28. package/dist/cjs/types/components/icons/Tag.d.ts +4 -0
  29. package/dist/cjs/types/components/icons/ThumbsUp.d.ts +3 -0
  30. package/dist/cjs/types/components/icons/Tick.d.ts +3 -0
  31. package/dist/cjs/types/components/icons/Timeline.d.ts +11 -0
  32. package/dist/cjs/types/components/layout/Breadcrumb.d.ts +5 -0
  33. package/dist/cjs/types/components/layout/Collapse.d.ts +11 -0
  34. package/dist/cjs/types/components/layout/DescriptionBlocks.d.ts +8 -0
  35. package/dist/cjs/types/components/layout/ExploreLayout.d.ts +7 -0
  36. package/dist/cjs/types/components/layout/HashLink.d.ts +10 -0
  37. package/dist/cjs/types/components/layout/Join.d.ts +7 -0
  38. package/dist/cjs/types/components/layout/TokenPair.d.ts +6 -3
  39. package/dist/cjs/types/components/layout/TransactionFilters.d.ts +20 -0
  40. package/dist/cjs/types/components/layout/TransactionHeader/BridgeHeader.d.ts +11 -0
  41. package/dist/cjs/types/components/layout/TransactionHeader/BuyNFTHeader.d.ts +10 -0
  42. package/dist/cjs/types/components/layout/TransactionHeader/InteractionHeader.d.ts +11 -0
  43. package/dist/cjs/types/components/layout/TransactionHeader/ProfileHeader.d.ts +11 -0
  44. package/dist/cjs/types/components/layout/TransactionHeader/SwapHeader.d.ts +16 -0
  45. package/dist/cjs/types/components/layout/TransactionHeader/TransactionHeader.d.ts +23 -0
  46. package/dist/cjs/types/components/layout/TransactionHeader/TransactionHeaderLayout.d.ts +10 -0
  47. package/dist/cjs/types/components/layout/TransactionHeader/index.d.ts +1 -0
  48. package/dist/cjs/types/components/layout/TransactionProperties/BridgeProperties.d.ts +21 -0
  49. package/dist/cjs/types/components/layout/TransactionProperties/BuyNFTProperties.d.ts +33 -0
  50. package/dist/cjs/types/components/layout/TransactionProperties/InteractionProperties.d.ts +11 -0
  51. package/dist/cjs/types/components/layout/TransactionProperties/PropertiesLayout.d.ts +7 -0
  52. package/dist/cjs/types/components/layout/TransactionProperties/SwapProperties.d.ts +28 -0
  53. package/dist/cjs/types/components/layout/TransactionProperties/TransactionProperties.d.ts +21 -0
  54. package/dist/cjs/types/components/layout/TransactionProperties/index.d.ts +6 -0
  55. package/dist/cjs/types/components/layout/TransactionSearch.d.ts +8 -0
  56. package/dist/cjs/types/components/layout/Transfer.d.ts +9 -0
  57. package/dist/cjs/types/components/layout/index.d.ts +23 -0
  58. package/dist/cjs/types/components/lists/PropertyListItem.d.ts +10 -0
  59. package/dist/cjs/types/components/lists/SwapStepItem.d.ts +3 -3
  60. package/dist/cjs/types/components/lists/TransactionAction/ActionLayout.d.ts +40 -0
  61. package/dist/cjs/types/components/lists/TransactionAction/ApproveAction.d.ts +21 -0
  62. package/dist/cjs/types/components/lists/TransactionAction/BaseActionProps.d.ts +10 -0
  63. package/dist/cjs/types/components/lists/TransactionAction/BridgeAction.d.ts +20 -0
  64. package/dist/cjs/types/components/lists/TransactionAction/FeesAction.d.ts +28 -0
  65. package/dist/cjs/types/components/lists/TransactionAction/IncompleteAction.d.ts +8 -0
  66. package/dist/cjs/types/components/lists/TransactionAction/ReceiveNFTAction.d.ts +21 -0
  67. package/dist/cjs/types/components/lists/TransactionAction/ReceiveTokensAction.d.ts +22 -0
  68. package/dist/cjs/types/components/lists/TransactionAction/SendTokensAction.d.ts +22 -0
  69. package/dist/cjs/types/components/lists/TransactionAction/StakeAction.d.ts +16 -0
  70. package/dist/cjs/types/components/lists/TransactionAction/StartAction.d.ts +8 -0
  71. package/dist/cjs/types/components/lists/TransactionAction/SuccessAction.d.ts +9 -0
  72. package/dist/cjs/types/components/lists/TransactionAction/SwapAction.d.ts +20 -0
  73. package/dist/cjs/types/components/lists/TransactionAction/TransactionAction.d.ts +37 -0
  74. package/dist/cjs/types/components/lists/TransactionAction/WrapAction.d.ts +20 -0
  75. package/dist/cjs/types/components/lists/TransactionAction/index.d.ts +14 -0
  76. package/dist/cjs/types/components/lists/TransactionAction/linkActionTimelineProps.d.ts +2 -0
  77. package/dist/cjs/types/components/lists/TransactionItem.d.ts +25 -0
  78. package/dist/cjs/types/components/lists/index.d.ts +18 -1
  79. package/dist/cjs/types/components/typography/BodyText.d.ts +4 -3
  80. package/dist/cjs/types/components/typography/HeadingText.d.ts +2 -1
  81. package/dist/cjs/types/components/views/TransactionView/BaseTransactionViewProps.d.ts +10 -0
  82. package/dist/cjs/types/components/views/TransactionView/BridgeTransactionView.d.ts +22 -0
  83. package/dist/cjs/types/components/views/TransactionView/BuyNFTTransactionView.d.ts +34 -0
  84. package/dist/cjs/types/components/views/TransactionView/InteractionTransactionView.d.ts +14 -0
  85. package/dist/cjs/types/components/views/TransactionView/SwapTransactionView.d.ts +30 -0
  86. package/dist/cjs/types/components/views/TransactionView/TransactionView.d.ts +21 -0
  87. package/dist/cjs/types/components/views/TransactionView/TransactionViewLayout.d.ts +10 -0
  88. package/dist/cjs/types/components/views/TransactionView/index.d.ts +6 -0
  89. package/dist/cjs/types/components/views/index.d.ts +7 -1
  90. package/dist/cjs/types/core/utils.d.ts +7 -1
  91. package/dist/cjs/types/hooks/useRect.d.ts +3 -0
  92. package/dist/cjs/types/providers/SquidConfigProvider.d.ts +1 -0
  93. package/dist/cjs/types/stories/badges/IconLabel.stories.d.ts +7 -0
  94. package/dist/cjs/types/stories/badges/ImageIcon.stories.d.ts +7 -0
  95. package/dist/cjs/types/stories/badges/Loader.stories.d.ts +0 -1
  96. package/dist/cjs/types/stories/badges/LoadingSkeleton.stories.d.ts +3 -1
  97. package/dist/cjs/types/stories/badges/TransactionState.stories.d.ts +15 -0
  98. package/dist/cjs/types/stories/badges/WalletLink.stories.d.ts +6 -0
  99. package/dist/cjs/types/stories/buttons/FilterButton.stories.d.ts +7 -0
  100. package/dist/cjs/types/stories/data/actions.d.ts +223 -0
  101. package/dist/cjs/types/stories/data/network.d.ts +52 -0
  102. package/dist/cjs/types/stories/data/transaction.d.ts +49 -0
  103. package/dist/cjs/types/stories/layout/ExploreLayout.stories.d.ts +6 -0
  104. package/dist/cjs/types/stories/layout/HashLink.stories.d.ts +11 -0
  105. package/dist/cjs/types/stories/layout/TokenPair.stories.d.ts +4 -1
  106. package/dist/cjs/types/stories/layout/TransactionFilters.stories.d.ts +6 -0
  107. package/dist/cjs/types/stories/layout/TransactionHeader.stories.d.ts +10 -0
  108. package/dist/cjs/types/stories/layout/TransactionProperties.stories.d.ts +9 -0
  109. package/dist/cjs/types/stories/layout/TransactionSearch.stories.d.ts +7 -0
  110. package/dist/cjs/types/stories/{lists/SwapDetailListItem.stories.d.ts → layout/Transfer.stories.d.ts} +2 -3
  111. package/dist/cjs/types/stories/lists/ListItem.stories.d.ts +1 -0
  112. package/dist/cjs/types/stories/lists/PropertyListItem.stories.d.ts +9 -0
  113. package/dist/cjs/types/stories/lists/TransactionAction.stories.d.ts +23 -0
  114. package/dist/cjs/types/stories/lists/TransactionItem.stories.d.ts +10 -0
  115. package/dist/cjs/types/stories/views/TransactionView.stories.d.ts +9 -0
  116. package/dist/cjs/types/styles/compiled-tailwind.css +4 -0
  117. package/dist/cjs/types/types/components.d.ts +12 -4
  118. package/dist/cjs/types/types/data.d.ts +155 -0
  119. package/dist/cjs/types/types/index.d.ts +1 -1
  120. package/dist/esm/index.js +6820 -35463
  121. package/dist/esm/types/components/badges/IconLabel.d.ts +10 -0
  122. package/dist/esm/types/components/badges/ImageIcon.d.ts +9 -0
  123. package/dist/esm/types/components/badges/LoadingSkeleton.d.ts +8 -2
  124. package/dist/esm/types/components/badges/TransactionState.d.ts +15 -0
  125. package/dist/esm/types/components/badges/WalletLink.d.ts +6 -0
  126. package/dist/esm/types/components/badges/index.d.ts +4 -0
  127. package/dist/esm/types/components/buttons/FilterButton.d.ts +6 -0
  128. package/dist/esm/types/components/buttons/index.d.ts +1 -0
  129. package/dist/esm/types/components/icons/Approve.d.ts +1 -0
  130. package/dist/esm/types/components/icons/Arrow.d.ts +12 -2
  131. package/dist/esm/types/components/icons/ArrowRotate.d.ts +1 -0
  132. package/dist/esm/types/components/icons/Bag.d.ts +1 -0
  133. package/dist/esm/types/components/icons/BoostBadge.d.ts +1 -0
  134. package/dist/esm/types/components/icons/Calendar.d.ts +1 -0
  135. package/dist/esm/types/components/icons/Collection.d.ts +1 -0
  136. package/dist/esm/types/components/icons/Copy.d.ts +5 -0
  137. package/dist/esm/types/components/icons/Filter.d.ts +1 -0
  138. package/dist/esm/types/components/icons/HomeIcon.d.ts +3 -0
  139. package/dist/esm/types/components/icons/ImageSparkle.d.ts +1 -0
  140. package/dist/esm/types/components/icons/Link.d.ts +2 -0
  141. package/dist/esm/types/components/icons/Loader.d.ts +3 -3
  142. package/dist/esm/types/components/icons/NotAllowed.d.ts +1 -0
  143. package/dist/esm/types/components/icons/PieChart.d.ts +1 -0
  144. package/dist/esm/types/components/icons/Separator.d.ts +3 -0
  145. package/dist/esm/types/components/icons/SquareArrowCenter.d.ts +1 -0
  146. package/dist/esm/types/components/icons/Tag.d.ts +4 -0
  147. package/dist/esm/types/components/icons/ThumbsUp.d.ts +3 -0
  148. package/dist/esm/types/components/icons/Tick.d.ts +3 -0
  149. package/dist/esm/types/components/icons/Timeline.d.ts +11 -0
  150. package/dist/esm/types/components/layout/Breadcrumb.d.ts +5 -0
  151. package/dist/esm/types/components/layout/Collapse.d.ts +11 -0
  152. package/dist/esm/types/components/layout/DescriptionBlocks.d.ts +8 -0
  153. package/dist/esm/types/components/layout/ExploreLayout.d.ts +7 -0
  154. package/dist/esm/types/components/layout/HashLink.d.ts +10 -0
  155. package/dist/esm/types/components/layout/Join.d.ts +7 -0
  156. package/dist/esm/types/components/layout/TokenPair.d.ts +6 -3
  157. package/dist/esm/types/components/layout/TransactionFilters.d.ts +20 -0
  158. package/dist/esm/types/components/layout/TransactionHeader/BridgeHeader.d.ts +11 -0
  159. package/dist/esm/types/components/layout/TransactionHeader/BuyNFTHeader.d.ts +10 -0
  160. package/dist/esm/types/components/layout/TransactionHeader/InteractionHeader.d.ts +11 -0
  161. package/dist/esm/types/components/layout/TransactionHeader/ProfileHeader.d.ts +11 -0
  162. package/dist/esm/types/components/layout/TransactionHeader/SwapHeader.d.ts +16 -0
  163. package/dist/esm/types/components/layout/TransactionHeader/TransactionHeader.d.ts +23 -0
  164. package/dist/esm/types/components/layout/TransactionHeader/TransactionHeaderLayout.d.ts +10 -0
  165. package/dist/esm/types/components/layout/TransactionHeader/index.d.ts +1 -0
  166. package/dist/esm/types/components/layout/TransactionProperties/BridgeProperties.d.ts +21 -0
  167. package/dist/esm/types/components/layout/TransactionProperties/BuyNFTProperties.d.ts +33 -0
  168. package/dist/esm/types/components/layout/TransactionProperties/InteractionProperties.d.ts +11 -0
  169. package/dist/esm/types/components/layout/TransactionProperties/PropertiesLayout.d.ts +7 -0
  170. package/dist/esm/types/components/layout/TransactionProperties/SwapProperties.d.ts +28 -0
  171. package/dist/esm/types/components/layout/TransactionProperties/TransactionProperties.d.ts +21 -0
  172. package/dist/esm/types/components/layout/TransactionProperties/index.d.ts +6 -0
  173. package/dist/esm/types/components/layout/TransactionSearch.d.ts +8 -0
  174. package/dist/esm/types/components/layout/Transfer.d.ts +9 -0
  175. package/dist/esm/types/components/layout/index.d.ts +23 -0
  176. package/dist/esm/types/components/lists/PropertyListItem.d.ts +10 -0
  177. package/dist/esm/types/components/lists/SwapStepItem.d.ts +3 -3
  178. package/dist/esm/types/components/lists/TransactionAction/ActionLayout.d.ts +40 -0
  179. package/dist/esm/types/components/lists/TransactionAction/ApproveAction.d.ts +21 -0
  180. package/dist/esm/types/components/lists/TransactionAction/BaseActionProps.d.ts +10 -0
  181. package/dist/esm/types/components/lists/TransactionAction/BridgeAction.d.ts +20 -0
  182. package/dist/esm/types/components/lists/TransactionAction/FeesAction.d.ts +28 -0
  183. package/dist/esm/types/components/lists/TransactionAction/IncompleteAction.d.ts +8 -0
  184. package/dist/esm/types/components/lists/TransactionAction/ReceiveNFTAction.d.ts +21 -0
  185. package/dist/esm/types/components/lists/TransactionAction/ReceiveTokensAction.d.ts +22 -0
  186. package/dist/esm/types/components/lists/TransactionAction/SendTokensAction.d.ts +22 -0
  187. package/dist/esm/types/components/lists/TransactionAction/StakeAction.d.ts +16 -0
  188. package/dist/esm/types/components/lists/TransactionAction/StartAction.d.ts +8 -0
  189. package/dist/esm/types/components/lists/TransactionAction/SuccessAction.d.ts +9 -0
  190. package/dist/esm/types/components/lists/TransactionAction/SwapAction.d.ts +20 -0
  191. package/dist/esm/types/components/lists/TransactionAction/TransactionAction.d.ts +37 -0
  192. package/dist/esm/types/components/lists/TransactionAction/WrapAction.d.ts +20 -0
  193. package/dist/esm/types/components/lists/TransactionAction/index.d.ts +14 -0
  194. package/dist/esm/types/components/lists/TransactionAction/linkActionTimelineProps.d.ts +2 -0
  195. package/dist/esm/types/components/lists/TransactionItem.d.ts +25 -0
  196. package/dist/esm/types/components/lists/index.d.ts +18 -1
  197. package/dist/esm/types/components/typography/BodyText.d.ts +4 -3
  198. package/dist/esm/types/components/typography/HeadingText.d.ts +2 -1
  199. package/dist/esm/types/components/views/TransactionView/BaseTransactionViewProps.d.ts +10 -0
  200. package/dist/esm/types/components/views/TransactionView/BridgeTransactionView.d.ts +22 -0
  201. package/dist/esm/types/components/views/TransactionView/BuyNFTTransactionView.d.ts +34 -0
  202. package/dist/esm/types/components/views/TransactionView/InteractionTransactionView.d.ts +14 -0
  203. package/dist/esm/types/components/views/TransactionView/SwapTransactionView.d.ts +30 -0
  204. package/dist/esm/types/components/views/TransactionView/TransactionView.d.ts +21 -0
  205. package/dist/esm/types/components/views/TransactionView/TransactionViewLayout.d.ts +10 -0
  206. package/dist/esm/types/components/views/TransactionView/index.d.ts +6 -0
  207. package/dist/esm/types/components/views/index.d.ts +7 -1
  208. package/dist/esm/types/core/utils.d.ts +7 -1
  209. package/dist/esm/types/hooks/useRect.d.ts +3 -0
  210. package/dist/esm/types/providers/SquidConfigProvider.d.ts +1 -0
  211. package/dist/esm/types/stories/badges/IconLabel.stories.d.ts +7 -0
  212. package/dist/esm/types/stories/badges/ImageIcon.stories.d.ts +7 -0
  213. package/dist/esm/types/stories/badges/Loader.stories.d.ts +0 -1
  214. package/dist/esm/types/stories/badges/LoadingSkeleton.stories.d.ts +3 -1
  215. package/dist/esm/types/stories/badges/TransactionState.stories.d.ts +15 -0
  216. package/dist/esm/types/stories/badges/WalletLink.stories.d.ts +6 -0
  217. package/dist/esm/types/stories/buttons/FilterButton.stories.d.ts +7 -0
  218. package/dist/esm/types/stories/data/actions.d.ts +223 -0
  219. package/dist/esm/types/stories/data/network.d.ts +52 -0
  220. package/dist/esm/types/stories/data/transaction.d.ts +49 -0
  221. package/dist/esm/types/stories/layout/ExploreLayout.stories.d.ts +6 -0
  222. package/dist/esm/types/stories/layout/HashLink.stories.d.ts +11 -0
  223. package/dist/esm/types/stories/layout/TokenPair.stories.d.ts +4 -1
  224. package/dist/esm/types/stories/layout/TransactionFilters.stories.d.ts +6 -0
  225. package/dist/esm/types/stories/layout/TransactionHeader.stories.d.ts +10 -0
  226. package/dist/esm/types/stories/layout/TransactionProperties.stories.d.ts +9 -0
  227. package/dist/esm/types/stories/layout/TransactionSearch.stories.d.ts +7 -0
  228. package/dist/esm/types/stories/{lists/SwapDetailListItem.stories.d.ts → layout/Transfer.stories.d.ts} +2 -3
  229. package/dist/esm/types/stories/lists/ListItem.stories.d.ts +1 -0
  230. package/dist/esm/types/stories/lists/PropertyListItem.stories.d.ts +9 -0
  231. package/dist/esm/types/stories/lists/TransactionAction.stories.d.ts +23 -0
  232. package/dist/esm/types/stories/lists/TransactionItem.stories.d.ts +10 -0
  233. package/dist/esm/types/stories/views/TransactionView.stories.d.ts +9 -0
  234. package/dist/esm/types/styles/compiled-tailwind.css +4 -0
  235. package/dist/esm/types/types/components.d.ts +12 -4
  236. package/dist/esm/types/types/data.d.ts +155 -0
  237. package/dist/esm/types/types/index.d.ts +1 -1
  238. package/dist/index.css +485 -18
  239. package/dist/index.d.ts +808 -76
  240. package/package.json +5 -2
  241. package/dist/cjs/types/components/lists/SwapDetailListItem.d.ts +0 -9
  242. package/dist/esm/types/components/lists/SwapDetailListItem.d.ts +0 -9
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import * as react_jsx_runtime from 'react/jsx-runtime';
3
3
  import * as React$1 from 'react';
4
- import React__default from 'react';
4
+ import React__default, { ReactNode, ComponentProps } from 'react';
5
5
 
6
6
  interface BadgeImageProps {
7
7
  imageUrl?: string;
@@ -13,31 +13,6 @@ interface BadgeImageProps {
13
13
  type BadgeSize = 'sm' | 'md';
14
14
  declare function BadgeImage({ imageUrl, badgeUrl, size, extraMarginForBadge, rounded, }: BadgeImageProps): react_jsx_runtime.JSX.Element | null;
15
15
 
16
- declare function LoadingSkeleton({ className, height, width, }: {
17
- className?: string;
18
- height?: string;
19
- width?: string;
20
- }): react_jsx_runtime.JSX.Element;
21
-
22
- interface UsdAmountProps {
23
- usdAmount: string;
24
- }
25
- declare function UsdAmount({ usdAmount }: UsdAmountProps): react_jsx_runtime.JSX.Element;
26
-
27
- interface AddressButtonProps extends React.HTMLAttributes<HTMLButtonElement> {
28
- label: string;
29
- imageUrl?: string;
30
- badgeUrl?: string;
31
- isLoading?: boolean;
32
- }
33
- declare function AddressButton({ label, imageUrl, badgeUrl, isLoading, ...props }: AddressButtonProps): react_jsx_runtime.JSX.Element;
34
-
35
- interface ArrowButtonProps extends React.HTMLAttributes<HTMLButtonElement> {
36
- label: string;
37
- disabled?: boolean;
38
- }
39
- declare function ArrowButton({ label, disabled, ...props }: ArrowButtonProps): react_jsx_runtime.JSX.Element;
40
-
41
16
  type TextSize = 'small' | 'medium' | 'large';
42
17
  type SwitchSize = 'small' | 'large';
43
18
  type ButtonVariant = 'primary' | 'secondary' | 'tertiary';
@@ -45,7 +20,7 @@ type ButtonSize = 'md' | 'lg';
45
20
  type SwapDirection = 'from' | 'to';
46
21
  type BoostMode = 'normal' | 'boost';
47
22
  type HistoryItemStatus = 'completed' | 'pending' | 'failed' | 'warning';
48
- type SwapStepDescriptionBlock = {
23
+ type DescriptionBlock = {
49
24
  type: 'string';
50
25
  value: string;
51
26
  } | {
@@ -54,9 +29,9 @@ type SwapStepDescriptionBlock = {
54
29
  rounded?: boolean;
55
30
  };
56
31
  type SwapStep = {
57
- descriptionBlocks: SwapStepDescriptionBlock[];
32
+ descriptionBlocks: DescriptionBlock[];
58
33
  link?: string;
59
- status: SwapStepItemStatus;
34
+ status: ActionStatus;
60
35
  };
61
36
  declare enum SwapState {
62
37
  CONFIRM = 0,
@@ -69,8 +44,80 @@ declare enum SwapState {
69
44
  NEEDS_GAS = 7
70
45
  }
71
46
  type ThemeType = 'light' | 'dark';
72
- type SwapStepItemStatus = 'pending' | 'waiting' | 'ongoing' | 'executed' | 'success' | 'error' | 'warning';
47
+ type ActionStatus = 'pending' | 'waiting' | 'ongoing' | 'executed' | 'success' | 'error' | 'warning';
48
+ type TransactionStateVariant = 'full' | 'compact';
49
+ type TokenPairVariant = 'horizontal' | 'vertical';
50
+ type TokenPairSize = 'small' | 'medium';
51
+ type ImageIconVariant = 'square' | 'round' | 'proportional';
52
+ type ImageIconSize = 'small' | 'medium' | 'large' | 'xlarge';
53
+ type ChainTypeFilter = 'source' | 'destination';
54
+ type StatusFilter = 'success' | 'ongoing' | 'error';
73
55
  type AssetsButtonVariant = 'primary' | 'accent';
56
+ type PropertyListItemSize = 'small' | 'large';
57
+
58
+ interface IconLabelProps {
59
+ isLoading?: boolean;
60
+ src?: string;
61
+ children?: ReactNode;
62
+ variant?: ImageIconVariant;
63
+ }
64
+ declare function IconLabel({ src, children, variant }: IconLabelProps): react_jsx_runtime.JSX.Element;
65
+
66
+ interface ImageIconProps {
67
+ src?: string;
68
+ variant?: ImageIconVariant;
69
+ size?: ImageIconSize;
70
+ className?: string;
71
+ }
72
+ declare function ImageIcon({ src, variant, size, className: propsClassName, }: ImageIconProps): react_jsx_runtime.JSX.Element;
73
+
74
+ declare const LoadingProvider: React$1.Provider<boolean | null>;
75
+ interface LoadingSkeletonProps {
76
+ className?: string;
77
+ height?: string;
78
+ isLoading?: boolean;
79
+ children?: React.ReactNode;
80
+ width?: string;
81
+ }
82
+ declare function LoadingSkeleton({ className, height, isLoading: isLoadingProp, children, width, }: LoadingSkeletonProps): string | number | boolean | react_jsx_runtime.JSX.Element | Iterable<React$1.ReactNode> | null | undefined;
83
+
84
+ declare const statusBgClassMap: Record<ActionStatus, string>;
85
+ declare const statusTextClassMap: Record<ActionStatus, string>;
86
+ declare const statusColorClassMap: {
87
+ bg: Record<ActionStatus, string>;
88
+ text: Record<ActionStatus, string>;
89
+ };
90
+ interface TransactionStateProps extends React.HTMLAttributes<HTMLDivElement> {
91
+ status: ActionStatus;
92
+ variant?: TransactionStateVariant;
93
+ icon?: ReactNode;
94
+ }
95
+ declare function TransactionState({ status, variant, icon, ...props }: TransactionStateProps): react_jsx_runtime.JSX.Element;
96
+
97
+ interface UsdAmountProps {
98
+ usdAmount: string;
99
+ }
100
+ declare function UsdAmount({ usdAmount }: UsdAmountProps): react_jsx_runtime.JSX.Element;
101
+
102
+ interface WalletLinkProps {
103
+ imageURI: string;
104
+ address: string;
105
+ }
106
+ declare function WalletLink({ imageURI, address }: WalletLinkProps): react_jsx_runtime.JSX.Element;
107
+
108
+ interface AddressButtonProps extends React.HTMLAttributes<HTMLButtonElement> {
109
+ label: string;
110
+ imageUrl?: string;
111
+ badgeUrl?: string;
112
+ isLoading?: boolean;
113
+ }
114
+ declare function AddressButton({ label, imageUrl, badgeUrl, isLoading, ...props }: AddressButtonProps): react_jsx_runtime.JSX.Element;
115
+
116
+ interface ArrowButtonProps extends React.HTMLAttributes<HTMLButtonElement> {
117
+ label: string;
118
+ disabled?: boolean;
119
+ }
120
+ declare function ArrowButton({ label, disabled, ...props }: ArrowButtonProps): react_jsx_runtime.JSX.Element;
74
121
 
75
122
  interface AssetsButtonProps {
76
123
  tokenImageUrl?: string;
@@ -115,6 +162,12 @@ interface FeeButtonProps extends React.HTMLAttributes<HTMLButtonElement> {
115
162
  }
116
163
  declare function FeeButton({ feeInUsd, chipLabel, className, ...props }: FeeButtonProps): react_jsx_runtime.JSX.Element;
117
164
 
165
+ interface FilterButtonProps {
166
+ selected: boolean;
167
+ numApplied?: number;
168
+ }
169
+ declare function FilterButton({ selected, numApplied }: FilterButtonProps): react_jsx_runtime.JSX.Element;
170
+
118
171
  interface SettingsButtonProps {
119
172
  label: string;
120
173
  isSelected?: boolean;
@@ -138,13 +191,13 @@ type InputActionButtonProps = {
138
191
  label?: string;
139
192
  };
140
193
 
141
- interface Token$1 {
194
+ interface Token {
142
195
  price: number;
143
196
  symbol: string;
144
197
  decimals: number;
145
198
  }
146
199
  interface NumericInputProps {
147
- token: Token$1;
200
+ token: Token;
148
201
  onAmountChange: (tokenAmount: string) => void;
149
202
  forcedAmount?: string;
150
203
  maxDecimals?: {
@@ -201,6 +254,13 @@ interface TooltipProps {
201
254
  }
202
255
  declare function Tooltip({ children, tooltipContent, tooltipWidth, threshold, containerClassName, childrenClassName, tooltipClassName, displayDelayMs, }: TooltipProps): react_jsx_runtime.JSX.Element;
203
256
 
257
+ interface Props {
258
+ lottieJsonFile: object;
259
+ animReplacement?: JSX.Element;
260
+ hideAnimations?: boolean;
261
+ }
262
+ declare const AnimationWrapper: ({ lottieJsonFile, animReplacement, hideAnimations, }: Props) => react_jsx_runtime.JSX.Element;
263
+
204
264
  interface BoostProps {
205
265
  boostMode: BoostMode;
206
266
  onToggleBoostMode?: ({ boostMode }: {
@@ -213,6 +273,27 @@ interface BoostProps {
213
273
  }
214
274
  declare function Boost({ boostMode, onToggleBoostMode, estimatedTime, boostDisabledMessage, canToggleBoostMode, boostTooltipDisplayDelayMs, }: BoostProps): react_jsx_runtime.JSX.Element;
215
275
 
276
+ declare function Breadcrumb({ children, className, }: {
277
+ children: ReactNode;
278
+ className?: string;
279
+ }): react_jsx_runtime.JSX.Element;
280
+
281
+ interface CollapseProps extends ComponentProps<'div'> {
282
+ collapsed: boolean;
283
+ collapsedHeight?: number;
284
+ duration?: number;
285
+ }
286
+ declare function Collapse({ collapsed, collapsedHeight, children, className, duration, ...props }: CollapseProps): react_jsx_runtime.JSX.Element;
287
+ interface SizeTransitionProps extends ComponentProps<'div'> {
288
+ }
289
+ declare function SizeTransition({ children, className, ...props }: SizeTransitionProps): react_jsx_runtime.JSX.Element;
290
+
291
+ interface DescriptionBlocksProps extends ComponentProps<'div'> {
292
+ blocks: DescriptionBlock[] | string;
293
+ }
294
+ declare function DescriptionBlocks({ className, blocks: blocksProp, ...props }: DescriptionBlocksProps): react_jsx_runtime.JSX.Element;
295
+ declare function Inline({ className, children, ...props }: ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
296
+
216
297
  interface DetailsToolbarProps {
217
298
  errorMessage?: string;
218
299
  boostMode?: BoostMode;
@@ -296,6 +377,15 @@ interface MenuItemProps {
296
377
  }
297
378
  declare function MenuItem({ label, imageUrl, icon }: MenuItemProps): react_jsx_runtime.JSX.Element;
298
379
 
380
+ interface PropertyListItemProps extends ComponentProps<'li'> {
381
+ label: React.ReactNode;
382
+ icon?: React.ReactNode;
383
+ detail?: React.ReactNode;
384
+ isLoading?: boolean;
385
+ variant?: PropertyListItemSize;
386
+ }
387
+ declare function PropertyListItem({ label, detail, icon, isLoading, className, variant, ...props }: PropertyListItemProps): react_jsx_runtime.JSX.Element;
388
+
299
389
  interface SectionTitleProps extends React.HTMLAttributes<HTMLDivElement> {
300
390
  title: string;
301
391
  icon?: React.ReactNode;
@@ -346,23 +436,313 @@ interface SettingsItemProps {
346
436
  }
347
437
  declare function SettingsItem({ icon, label, control, link, transparent, helpTooltip, }: SettingsItemProps): react_jsx_runtime.JSX.Element;
348
438
 
349
- interface SwapDetailListItemProps {
350
- label: string;
351
- icon: React.ReactNode;
352
- detail?: React.ReactNode;
353
- isLoading?: boolean;
354
- }
355
- declare function SwapDetailListItem({ label, detail, icon, isLoading, }: SwapDetailListItemProps): react_jsx_runtime.JSX.Element;
356
-
357
439
  interface SwapStepItemProps {
358
- descriptionBlocks: SwapStepDescriptionBlock[];
440
+ descriptionBlocks: DescriptionBlock[];
359
441
  showStepSeparator?: boolean;
360
442
  link?: string;
361
- status?: SwapStepItemStatus;
443
+ status?: ActionStatus;
362
444
  }
363
445
  declare const STEP_ITEM_HEIGHT = 52;
364
446
  declare function SwapStepItem({ descriptionBlocks, showStepSeparator, link, status, }: SwapStepItemProps): react_jsx_runtime.JSX.Element;
365
447
 
448
+ interface ActionLayoutProps {
449
+ lineCap?: ReactNode;
450
+ status?: ActionStatus;
451
+ showTimeline?: boolean;
452
+ statusIcon?: ReactNode;
453
+ nextStatus?: ActionStatus;
454
+ description?: ReactNode;
455
+ title?: string;
456
+ icon?: ReactNode;
457
+ children?: ReactNode;
458
+ showBody?: boolean;
459
+ }
460
+ declare function ActionLayout({ lineCap, status, showTimeline, showBody, nextStatus, statusIcon, description, title, icon, children, }: ActionLayoutProps): react_jsx_runtime.JSX.Element;
461
+ interface ActionPropertiesProps {
462
+ timestamp?: number;
463
+ hash?: string;
464
+ url?: string;
465
+ }
466
+ declare function ActionProperties({ timestamp, hash, url, }: ActionPropertiesProps): react_jsx_runtime.JSX.Element;
467
+ declare const ActionLineOutRow: ({ status }: {
468
+ status?: ActionStatus;
469
+ }) => react_jsx_runtime.JSX.Element;
470
+ declare const ActionStatusRow: ({ children, status, icon, }: {
471
+ children?: ReactNode;
472
+ status: ActionStatus;
473
+ icon?: ReactNode;
474
+ }) => react_jsx_runtime.JSX.Element;
475
+ declare function ActionRow({ className, ...props }: ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
476
+ declare function ActionWrapper({ children, status, className, }: {
477
+ children?: ReactNode;
478
+ status?: ActionStatus;
479
+ className?: string;
480
+ }): react_jsx_runtime.JSX.Element;
481
+ interface TimestampProps {
482
+ time: number;
483
+ }
484
+ declare function Timestamp({ time }: TimestampProps): react_jsx_runtime.JSX.Element;
485
+
486
+ interface BaseActionProps {
487
+ status: ActionStatus;
488
+ /** if set, renders a line upwards to the next item in the status color */
489
+ nextStatus?: ActionStatus;
490
+ /** should we render a line down to the previous item? (default true) */
491
+ showTimeline?: boolean;
492
+ /** if false, fades out everything but the status line (for collapsed timeline state) */
493
+ showBody?: boolean;
494
+ }
495
+
496
+ interface ApproveActionProps extends BaseActionProps {
497
+ profile: {
498
+ imageURI: string;
499
+ label: string;
500
+ };
501
+ chain: {
502
+ logoURI: string;
503
+ name: string;
504
+ };
505
+ wallet: {
506
+ imageURI: string;
507
+ address: string;
508
+ url: string;
509
+ };
510
+ timestamp: number;
511
+ hash: string;
512
+ url: string;
513
+ }
514
+ declare function ApproveAction({ status, nextStatus, showTimeline, showBody, profile, chain, wallet, timestamp, hash, url, }: ApproveActionProps): react_jsx_runtime.JSX.Element;
515
+
516
+ interface BridgeActionProps extends BaseActionProps {
517
+ token: {
518
+ logoURI: string;
519
+ symbol: string;
520
+ };
521
+ chain: {
522
+ logoURI: string;
523
+ name: string;
524
+ };
525
+ provider: {
526
+ logoURI: string;
527
+ name: string;
528
+ };
529
+ timestamp: number;
530
+ hash: string;
531
+ url: string;
532
+ }
533
+ declare function BridgeAction({ status, nextStatus, showTimeline, showBody, token, chain, provider, timestamp, hash, url, }: BridgeActionProps): react_jsx_runtime.JSX.Element;
534
+
535
+ interface FeesActionProps extends BaseActionProps {
536
+ total: FeesRowProps;
537
+ lines?: FeesRowProps[];
538
+ }
539
+ declare function FeesAction({ status, nextStatus, showTimeline, total, lines, }: FeesActionProps): react_jsx_runtime.JSX.Element;
540
+ interface FeesTotalProps {
541
+ status: ActionStatus;
542
+ nextStatus?: ActionStatus;
543
+ total: FeesRowProps;
544
+ showTimeline?: boolean;
545
+ collapsed?: boolean;
546
+ }
547
+ declare function FeesTotal({ status, nextStatus, total, showTimeline, collapsed, }: FeesTotalProps): react_jsx_runtime.JSX.Element;
548
+ interface FeesLinesProps {
549
+ status: ActionStatus;
550
+ lines?: FeesRowProps[];
551
+ showTimeline?: boolean;
552
+ }
553
+ declare function FeesLines({ status, lines, showTimeline, }: FeesLinesProps): react_jsx_runtime.JSX.Element;
554
+ interface FeesRowProps {
555
+ label: string;
556
+ usd: string;
557
+ eth: string;
558
+ collapsed?: boolean;
559
+ }
560
+
561
+ interface IncompleteActionProps extends BaseActionProps {
562
+ message: string;
563
+ buttons: ReactNode;
564
+ }
565
+ declare function IncompleteAction({ status, nextStatus, message, buttons, }: IncompleteActionProps): react_jsx_runtime.JSX.Element;
566
+
567
+ interface ReceiveNFTActionProps extends BaseActionProps {
568
+ nft: {
569
+ imageURI: string;
570
+ name: string;
571
+ };
572
+ chain: {
573
+ logoURI: string;
574
+ name: string;
575
+ };
576
+ wallet: {
577
+ imageURI: string;
578
+ address: string;
579
+ url: string;
580
+ };
581
+ timestamp: number;
582
+ hash: string;
583
+ url: string;
584
+ }
585
+ declare function ReceiveNFTAction({ status, nextStatus, showTimeline, showBody, nft, chain, wallet, timestamp, hash, url, }: ReceiveNFTActionProps): react_jsx_runtime.JSX.Element;
586
+
587
+ interface ReceiveTokensActionProps extends BaseActionProps {
588
+ amount: string;
589
+ token: {
590
+ logoURI: string;
591
+ symbol: string;
592
+ };
593
+ chain: {
594
+ logoURI: string;
595
+ name: string;
596
+ };
597
+ wallet: {
598
+ imageURI: string;
599
+ address: string;
600
+ url: string;
601
+ };
602
+ timestamp: number;
603
+ hash: string;
604
+ url: string;
605
+ }
606
+ declare function ReceiveTokensAction({ status, nextStatus, showTimeline, showBody, token, amount, chain, wallet, timestamp, hash, url, }: ReceiveTokensActionProps): react_jsx_runtime.JSX.Element;
607
+
608
+ interface SendTokensActionProps extends BaseActionProps {
609
+ amount: string;
610
+ token: {
611
+ logoURI: string;
612
+ symbol: string;
613
+ };
614
+ chain: {
615
+ logoURI: string;
616
+ name: string;
617
+ };
618
+ wallet: {
619
+ imageURI: string;
620
+ address: string;
621
+ url: string;
622
+ };
623
+ timestamp: number;
624
+ hash: string;
625
+ url: string;
626
+ }
627
+ declare function SendTokensAction({ status, nextStatus, showTimeline, showBody, token, amount, chain, wallet, timestamp, hash, url, }: SendTokensActionProps): react_jsx_runtime.JSX.Element;
628
+
629
+ interface StakeActionProps extends BaseActionProps {
630
+ token: {
631
+ logoURI: string;
632
+ symbol: string;
633
+ };
634
+ provider: {
635
+ logoURI: string;
636
+ name: string;
637
+ };
638
+ timestamp: number;
639
+ hash: string;
640
+ url: string;
641
+ }
642
+ declare function StakeAction({ status, nextStatus, showTimeline, showBody, token, provider, timestamp, hash, url, }: StakeActionProps): react_jsx_runtime.JSX.Element;
643
+
644
+ interface StartActionProps extends BaseActionProps {
645
+ timestamp: number;
646
+ hash: string;
647
+ url: string;
648
+ }
649
+ declare function StartAction({ status, nextStatus, showTimeline, showBody, timestamp, hash, url, }: StartActionProps): react_jsx_runtime.JSX.Element;
650
+
651
+ interface SuccessActionProps extends BaseActionProps {
652
+ description?: string;
653
+ timestamp: number;
654
+ hash: string;
655
+ url: string;
656
+ }
657
+ declare function SuccessAction({ nextStatus, status, description, showTimeline, showBody, timestamp, hash, url, }: SuccessActionProps): react_jsx_runtime.JSX.Element;
658
+
659
+ interface SwapActionProps extends BaseActionProps {
660
+ fromToken: {
661
+ logoURI: string;
662
+ symbol: string;
663
+ };
664
+ toToken: {
665
+ logoURI: string;
666
+ symbol: string;
667
+ };
668
+ provider: {
669
+ logoURI: string;
670
+ name: string;
671
+ };
672
+ timestamp: number;
673
+ hash: string;
674
+ url: string;
675
+ }
676
+ declare function SwapAction({ status, nextStatus, showTimeline, showBody, fromToken, toToken, provider, timestamp, hash, url, }: SwapActionProps): react_jsx_runtime.JSX.Element;
677
+
678
+ interface WrapActionProps extends BaseActionProps {
679
+ fromToken: {
680
+ logoURI: string;
681
+ symbol: string;
682
+ };
683
+ toToken: {
684
+ logoURI: string;
685
+ symbol: string;
686
+ };
687
+ provider: {
688
+ logoURI: string;
689
+ name: string;
690
+ };
691
+ timestamp: number;
692
+ hash: string;
693
+ url: string;
694
+ }
695
+ declare function WrapAction({ status, nextStatus, showTimeline, showBody, fromToken, toToken, provider, timestamp, hash, url, }: WrapActionProps): react_jsx_runtime.JSX.Element;
696
+
697
+ declare const actionComponentMap: {
698
+ readonly success: typeof SuccessAction;
699
+ readonly receive_tokens: typeof ReceiveTokensAction;
700
+ readonly receive_nft: typeof ReceiveNFTAction;
701
+ readonly approve: typeof ApproveAction;
702
+ readonly send_tokens: typeof SendTokensAction;
703
+ readonly swap: typeof SwapAction;
704
+ readonly bridge: typeof BridgeAction;
705
+ readonly wrap: typeof WrapAction;
706
+ readonly stake: typeof StakeAction;
707
+ readonly start: typeof StartAction;
708
+ readonly fees: typeof FeesAction;
709
+ readonly incomplete: typeof IncompleteAction;
710
+ };
711
+ type TransactionActionComponents = typeof actionComponentMap;
712
+ type TransactionActionType = keyof TransactionActionComponents;
713
+ type TransactionActionProps = {
714
+ [Type in TransactionActionType]: {
715
+ type: Type;
716
+ props: ComponentProps<TransactionActionComponents[Type]>;
717
+ };
718
+ }[TransactionActionType];
719
+ declare function TransactionAction({ type, props }: TransactionActionProps): react_jsx_runtime.JSX.Element;
720
+
721
+ declare function linkActionTimelineProps(actions: TransactionActionProps[], collapsed: boolean): TransactionActionProps[];
722
+
723
+ interface TransactionItemProps {
724
+ isLoading?: boolean;
725
+ status?: ActionStatus;
726
+ image?: ReactNode;
727
+ type?: {
728
+ icon?: ReactNode;
729
+ name: string;
730
+ };
731
+ hash?: string;
732
+ fromChain?: {
733
+ logoURI: string;
734
+ name: string;
735
+ };
736
+ toChain?: {
737
+ logoURI: string;
738
+ name: string;
739
+ };
740
+ fromAmount?: string;
741
+ toAmount?: string;
742
+ timestamp?: string;
743
+ }
744
+ declare function TransactionItem({ isLoading, status, image, type, hash, fromChain, toChain, fromAmount, toAmount, timestamp, }: TransactionItemProps): react_jsx_runtime.JSX.Element;
745
+
366
746
  interface DropdownMenuProps {
367
747
  dropdownRef?: React.RefObject<HTMLDivElement>;
368
748
  menuRef?: React.RefObject<HTMLDivElement>;
@@ -379,6 +759,21 @@ type ErrorMessageProps = {
379
759
  };
380
760
  declare function ErrorMessage({ message, showIcon }: ErrorMessageProps): react_jsx_runtime.JSX.Element;
381
761
 
762
+ interface ExploreLayoutProps {
763
+ navigation?: ReactNode;
764
+ children?: ReactNode;
765
+ }
766
+ declare function ExploreLayout({ navigation, children }: ExploreLayoutProps): react_jsx_runtime.JSX.Element;
767
+
768
+ interface HashLinkProps {
769
+ showTx?: boolean;
770
+ hash: string;
771
+ children?: ReactNode;
772
+ showCopyButton?: boolean;
773
+ url?: string;
774
+ }
775
+ declare function HashLink({ showTx, hash, showCopyButton, url, children, }: HashLinkProps): react_jsx_runtime.JSX.Element;
776
+
382
777
  interface InfoBoxProps {
383
778
  title: string;
384
779
  description: string;
@@ -386,6 +781,12 @@ interface InfoBoxProps {
386
781
  }
387
782
  declare function InfoBox({ title, description, icon }: InfoBoxProps): react_jsx_runtime.JSX.Element;
388
783
 
784
+ interface JoinProps {
785
+ children?: ReactNode;
786
+ glue: () => ReactNode;
787
+ }
788
+ declare function Join({ children, glue }: JoinProps): react_jsx_runtime.JSX.Element[] | null | undefined;
789
+
389
790
  type Rounded = 'sm' | 'lg';
390
791
  interface MenuProps extends React__default.ComponentProps<'div'> {
391
792
  containerClassName?: string;
@@ -497,22 +898,254 @@ declare const SwapStepsCollapsed: React$1.ForwardRefExoticComponent<SwapStepsCol
497
898
 
498
899
  interface TokenPairProps {
499
900
  firstToken: {
500
- imageUrl: string;
901
+ logoURI: string;
501
902
  bgColor: string;
502
903
  };
503
904
  secondToken: {
504
- imageUrl: string;
905
+ logoURI: string;
906
+ bgColor: string;
907
+ };
908
+ variant?: TokenPairVariant;
909
+ size?: TokenPairSize;
910
+ }
911
+ declare function TokenPair({ firstToken, secondToken, variant, size, }: TokenPairProps): react_jsx_runtime.JSX.Element;
912
+
913
+ interface TransactionFiltersProps {
914
+ chainType: ChainTypeFilter;
915
+ setChainType: (chainType: ChainTypeFilter) => void;
916
+ chain: string | null;
917
+ setChain: (chain: string | null) => void;
918
+ fromDate: Date | null;
919
+ setFromDate: (fromDate: Date | null) => void;
920
+ toDate: Date | null;
921
+ setToDate: (toDate: Date | null) => void;
922
+ status: StatusFilter[];
923
+ setStatus: (status: StatusFilter[]) => void;
924
+ chains: {
925
+ name: string;
926
+ logoURI: string;
927
+ }[];
928
+ }
929
+ declare function TransactionFilters({ chainType, setChainType, chain, setChain, fromDate, setFromDate, toDate, setToDate, status, setStatus, chains, }: TransactionFiltersProps): react_jsx_runtime.JSX.Element;
930
+
931
+ interface BridgeHeaderProps {
932
+ tokenLogoURI: string;
933
+ chainLogoURI: string;
934
+ title?: string;
935
+ hash: string;
936
+ url?: string;
937
+ status: ActionStatus;
938
+ }
939
+ declare function BridgeHeader({ tokenLogoURI, chainLogoURI, title, hash, url, status, }: BridgeHeaderProps): react_jsx_runtime.JSX.Element;
940
+
941
+ interface BuyNFTHeaderProps {
942
+ imageUrl: string;
943
+ title?: string;
944
+ hash: string;
945
+ url?: string;
946
+ status: ActionStatus;
947
+ }
948
+ declare function BuyNFTHeader({ imageUrl, title, hash, url, status, }: BuyNFTHeaderProps): react_jsx_runtime.JSX.Element;
949
+
950
+ interface InteractionHeaderProps {
951
+ title?: string;
952
+ image?: ReactNode;
953
+ hash: string;
954
+ url?: string;
955
+ status: ActionStatus;
956
+ }
957
+ declare function InteractionHeader({ title, image, hash, url, status, }: InteractionHeaderProps): react_jsx_runtime.JSX.Element;
958
+
959
+ interface ProfileHeaderProps {
960
+ imageUrl: string;
961
+ title: string;
962
+ wallet: {
963
+ imageURI: string;
964
+ address: string;
965
+ };
966
+ amount: string;
967
+ }
968
+ declare function ProfileHeader({ imageUrl, title, wallet, amount, }: ProfileHeaderProps): react_jsx_runtime.JSX.Element;
969
+
970
+ interface SwapHeaderProps {
971
+ fromToken: {
972
+ logoURI: string;
973
+ bgColor: string;
974
+ };
975
+ toToken: {
976
+ logoURI: string;
977
+ bgColor: string;
978
+ };
979
+ title?: string;
980
+ hash: string;
981
+ url?: string;
982
+ status: ActionStatus;
983
+ }
984
+ declare function SwapHeader({ fromToken, toToken, title, hash, url, status, }: SwapHeaderProps): react_jsx_runtime.JSX.Element;
985
+
986
+ declare const headerComponentsMap: {
987
+ readonly swap: typeof SwapHeader;
988
+ readonly buy_nft: typeof BuyNFTHeader;
989
+ readonly interaction: typeof InteractionHeader;
990
+ readonly bridge: typeof BridgeHeader;
991
+ readonly profile: typeof ProfileHeader;
992
+ };
993
+ type TransactionHeaderComponents = typeof headerComponentsMap;
994
+ type TransactionHeaderType = keyof TransactionHeaderComponents;
995
+ type TransactionHeaderProps = {
996
+ [Type in TransactionHeaderType]: {
997
+ type: Type;
998
+ props: ComponentProps<TransactionHeaderComponents[Type]>;
999
+ };
1000
+ }[TransactionHeaderType];
1001
+ declare function TransactionHeader({ type, props }: TransactionHeaderProps): react_jsx_runtime.JSX.Element;
1002
+
1003
+ interface TransactionHeaderLayoutProps {
1004
+ status?: ActionStatus;
1005
+ title: string;
1006
+ image?: ReactNode;
1007
+ children?: ReactNode;
1008
+ }
1009
+ declare function TransactionHeaderLayout({ status, title, image, children, }: TransactionHeaderLayoutProps): react_jsx_runtime.JSX.Element;
1010
+
1011
+ interface BridgePropertiesProps {
1012
+ amount: string;
1013
+ token: {
1014
+ logoURI: string;
505
1015
  bgColor: string;
1016
+ symbol: string;
1017
+ };
1018
+ fromChain: {
1019
+ logoURI: string;
1020
+ name: string;
1021
+ };
1022
+ toChain: {
1023
+ logoURI: string;
1024
+ name: string;
1025
+ };
1026
+ wallet: string;
1027
+ boosted?: boolean;
1028
+ timeToComplete: string;
1029
+ }
1030
+ declare function BridgeProperties({ amount, token, fromChain, toChain, wallet, boosted, timeToComplete, }: BridgePropertiesProps): react_jsx_runtime.JSX.Element;
1031
+
1032
+ interface BuyNFTPropertiesProps {
1033
+ title: string;
1034
+ imageURI: string;
1035
+ collection: {
1036
+ imageURI: string;
1037
+ name: string;
1038
+ };
1039
+ price: string;
1040
+ token: {
1041
+ logoURI: string;
1042
+ symbol: string;
1043
+ };
1044
+ marketplace: {
1045
+ logoURI: string;
1046
+ name: string;
1047
+ };
1048
+ fromChain: {
1049
+ logoURI: string;
1050
+ name: string;
1051
+ };
1052
+ toChain: {
1053
+ logoURI: string;
1054
+ name: string;
506
1055
  };
1056
+ fromAddress: string;
1057
+ toAddress: string;
1058
+ boosted?: boolean;
1059
+ timeToComplete: string;
1060
+ tokenId: string;
1061
+ nftType: string;
507
1062
  }
508
- declare function TokenPair({ firstToken, secondToken }: TokenPairProps): react_jsx_runtime.JSX.Element;
1063
+ declare function BuyNFTProperties({ title, imageURI, collection, price, token, marketplace, fromChain, toChain, fromAddress, toAddress, boosted, timeToComplete, tokenId, nftType, }: BuyNFTPropertiesProps): react_jsx_runtime.JSX.Element;
1064
+
1065
+ interface InteractionPropertiesProps {
1066
+ chain: {
1067
+ logoURI: string;
1068
+ name: string;
1069
+ };
1070
+ wallet: string;
1071
+ boosted?: boolean;
1072
+ timeToComplete: string;
1073
+ }
1074
+ declare function InteractionProperties({ chain, wallet, boosted, timeToComplete, }: InteractionPropertiesProps): react_jsx_runtime.JSX.Element;
1075
+
1076
+ interface PropertiesLayoutProps {
1077
+ children?: ReactNode;
1078
+ className?: string;
1079
+ }
1080
+ declare function PropertiesLayout({ children, className, }: PropertiesLayoutProps): react_jsx_runtime.JSX.Element;
1081
+
1082
+ interface SwapPropertiesProps {
1083
+ fromAmount: string;
1084
+ fromToken: {
1085
+ logoURI: string;
1086
+ bgColor: string;
1087
+ symbol: string;
1088
+ };
1089
+ toAmount: string;
1090
+ toToken: {
1091
+ logoURI: string;
1092
+ bgColor: string;
1093
+ symbol: string;
1094
+ };
1095
+ fromChain: {
1096
+ logoURI: string;
1097
+ name: string;
1098
+ };
1099
+ toChain: {
1100
+ logoURI: string;
1101
+ name: string;
1102
+ };
1103
+ fromAddress: string;
1104
+ toAddress: string;
1105
+ exchangeRate: string;
1106
+ boosted?: boolean;
1107
+ timeToComplete: string;
1108
+ }
1109
+ declare function SwapProperties({ fromAmount, fromToken, toAmount, toToken, fromChain, toChain, fromAddress, toAddress, exchangeRate, boosted, timeToComplete, }: SwapPropertiesProps): react_jsx_runtime.JSX.Element;
1110
+
1111
+ declare const propertiesComponentsMap: {
1112
+ readonly swap: typeof SwapProperties;
1113
+ readonly buy_nft: typeof BuyNFTProperties;
1114
+ readonly interaction: typeof InteractionProperties;
1115
+ readonly bridge: typeof BridgeProperties;
1116
+ };
1117
+ type TransactionPropertiesComponents = typeof propertiesComponentsMap;
1118
+ type TransactionPropertiesType = keyof TransactionPropertiesComponents;
1119
+ type TransactionPropertiesProps = {
1120
+ [Type in TransactionPropertiesType]: {
1121
+ type: Type;
1122
+ props: ComponentProps<TransactionPropertiesComponents[Type]>;
1123
+ };
1124
+ }[TransactionPropertiesType];
1125
+ declare function TransactionProperties({ type, props, }: TransactionPropertiesProps): react_jsx_runtime.JSX.Element;
1126
+
1127
+ interface TransactionSearchProps {
1128
+ query: string;
1129
+ setQuery: (query: string) => void;
1130
+ children?: ReactNode;
1131
+ }
1132
+ declare function TransactionSearch({ query, setQuery, children, }: TransactionSearchProps): react_jsx_runtime.JSX.Element;
1133
+
1134
+ interface FromToProps {
1135
+ isLoading?: boolean;
1136
+ from?: ReactNode;
1137
+ to?: ReactNode;
1138
+ className?: string;
1139
+ }
1140
+ declare function Transfer({ isLoading, from, to, className }: FromToProps): react_jsx_runtime.JSX.Element;
509
1141
 
510
1142
  interface BodyTextProps extends React.HTMLAttributes<HTMLSpanElement> {
511
- children: string | undefined;
1143
+ children: ReactNode;
512
1144
  size: TextSize;
513
1145
  bold?: boolean;
1146
+ tight?: boolean;
514
1147
  }
515
- declare function BodyText({ size, children, bold, ...props }: BodyTextProps): react_jsx_runtime.JSX.Element;
1148
+ declare function BodyText({ size, children, bold, tight, ...props }: BodyTextProps): react_jsx_runtime.JSX.Element;
516
1149
 
517
1150
  interface CaptionProps extends React.HTMLAttributes<HTMLSpanElement> {
518
1151
  bold?: boolean;
@@ -523,38 +1156,137 @@ interface HeadingTextProps {
523
1156
  children: string;
524
1157
  size: TextSize;
525
1158
  bold?: boolean;
1159
+ className?: string;
526
1160
  }
527
- declare function HeadingText({ children, bold, size }: HeadingTextProps): react_jsx_runtime.JSX.Element;
1161
+ declare function HeadingText({ children, bold, size, className, }: HeadingTextProps): react_jsx_runtime.JSX.Element;
528
1162
 
529
- type ChainData = {
530
- networkName: string;
531
- logoUrl: string;
532
- bgColor: string;
533
- };
534
- type Token = {
535
- symbol: string;
536
- logoUrl: string;
537
- bgColor: string;
538
- };
539
- declare function SwapProgressView({ steps, isOpen, handleClose, handleComplete, socialLink, supportLink, fromAmount, fromChain, fromToken, toAmount, toChain, toToken, fromAddressFormatted, toAddressFormatted, swapState, estimatedTimeToComplete, footerButton, }: {
540
- steps: SwapStep[];
541
- handleClose?: () => void;
542
- handleComplete?: () => void;
543
- isOpen?: boolean;
544
- socialLink?: string;
545
- supportLink?: string;
546
- fromToken: Token;
547
- toToken: Token;
1163
+ interface BaseTransactionViewProps {
1164
+ title?: string;
1165
+ hash: string;
1166
+ status: ActionStatus;
1167
+ url?: string;
1168
+ actions: TransactionActionProps[];
1169
+ fees: FeesActionProps;
1170
+ }
1171
+
1172
+ interface BridgeTransactionViewProps extends BaseTransactionViewProps {
1173
+ amount: string;
1174
+ token: {
1175
+ logoURI: string;
1176
+ bgColor: string;
1177
+ symbol: string;
1178
+ };
1179
+ fromChain: {
1180
+ logoURI: string;
1181
+ name: string;
1182
+ };
1183
+ toChain: {
1184
+ logoURI: string;
1185
+ name: string;
1186
+ };
1187
+ address: string;
1188
+ boosted?: boolean;
1189
+ timeToComplete: string;
1190
+ }
1191
+ declare function BridgeTransactionView({ title, hash, status, url, amount, token, fromChain, toChain, address, actions, fees, boosted, timeToComplete, }: BridgeTransactionViewProps): react_jsx_runtime.JSX.Element;
1192
+
1193
+ interface BuyNFTTTransactionViewProps extends BaseTransactionViewProps {
1194
+ title: string;
1195
+ imageURI: string;
1196
+ collection: {
1197
+ imageURI: string;
1198
+ name: string;
1199
+ };
1200
+ price: string;
1201
+ token: {
1202
+ logoURI: string;
1203
+ symbol: string;
1204
+ };
1205
+ marketplace: {
1206
+ logoURI: string;
1207
+ name: string;
1208
+ };
1209
+ fromChain: {
1210
+ logoURI: string;
1211
+ name: string;
1212
+ };
1213
+ toChain: {
1214
+ logoURI: string;
1215
+ name: string;
1216
+ };
1217
+ fromAddress: string;
1218
+ toAddress: string;
1219
+ boosted?: boolean;
1220
+ tokenId: string;
1221
+ nftType: string;
1222
+ timeToComplete: string;
1223
+ }
1224
+ declare function BuyNFTTransactionView({ title, hash, status, url, imageURI, collection, price, token, marketplace, fromChain, toChain, fromAddress, toAddress, boosted, timeToComplete, tokenId, nftType, actions, fees, }: BuyNFTTTransactionViewProps): react_jsx_runtime.JSX.Element;
1225
+
1226
+ interface InteractionTTransactionViewProps extends BaseTransactionViewProps {
1227
+ image?: ReactNode;
1228
+ chain: {
1229
+ logoURI: string;
1230
+ name: string;
1231
+ };
1232
+ address: string;
1233
+ boosted?: boolean;
1234
+ timeToComplete: string;
1235
+ }
1236
+ declare function InteractionTransactionView({ title, hash, status, url, image, chain, address, boosted, timeToComplete, actions, fees, }: InteractionTTransactionViewProps): react_jsx_runtime.JSX.Element;
1237
+
1238
+ interface SwapTransactionViewProps extends BaseTransactionViewProps {
548
1239
  fromAmount: string;
1240
+ fromToken: {
1241
+ logoURI: string;
1242
+ bgColor: string;
1243
+ symbol: string;
1244
+ };
549
1245
  toAmount: string;
550
- fromChain: ChainData;
551
- toChain: ChainData;
552
- fromAddressFormatted: string;
553
- toAddressFormatted: string;
554
- swapState: SwapState;
555
- estimatedTimeToComplete?: string;
556
- footerButton?: SwapStepsCollapsedFooterButton;
557
- }): react_jsx_runtime.JSX.Element;
1246
+ toToken: {
1247
+ logoURI: string;
1248
+ bgColor: string;
1249
+ symbol: string;
1250
+ };
1251
+ fromChain: {
1252
+ logoURI: string;
1253
+ name: string;
1254
+ };
1255
+ toChain: {
1256
+ logoURI: string;
1257
+ name: string;
1258
+ };
1259
+ fromAddress: string;
1260
+ toAddress: string;
1261
+ exchangeRate: string;
1262
+ boosted?: boolean;
1263
+ timeToComplete: string;
1264
+ }
1265
+ declare function SwapTransactionView({ title, hash, status, url, fromAmount, fromToken, toAmount, toToken, fromChain, toChain, fromAddress, toAddress, exchangeRate, boosted, timeToComplete, actions, fees, }: SwapTransactionViewProps): react_jsx_runtime.JSX.Element;
1266
+
1267
+ declare const componentMap: {
1268
+ readonly swap: typeof SwapTransactionView;
1269
+ readonly buy_nft: typeof BuyNFTTransactionView;
1270
+ readonly interaction: typeof InteractionTransactionView;
1271
+ readonly bridge: typeof BridgeTransactionView;
1272
+ };
1273
+ type TransactionViewComponents = typeof componentMap;
1274
+ type TransactionViewType = keyof TransactionViewComponents;
1275
+ type TransactionViewProps = {
1276
+ [Type in TransactionViewType]: {
1277
+ type: Type;
1278
+ props: ComponentProps<TransactionViewComponents[Type]>;
1279
+ };
1280
+ }[TransactionViewType];
1281
+ declare function TransactionView({ type, props }: TransactionViewProps): react_jsx_runtime.JSX.Element;
1282
+
1283
+ interface TransactionViewLayoutProps extends ComponentProps<'div'> {
1284
+ header: ReactNode;
1285
+ properties: ReactNode;
1286
+ actions: TransactionActionProps[];
1287
+ fees: FeesActionProps;
1288
+ }
1289
+ declare function TransactionViewLayout({ header, properties, actions, fees, ...props }: TransactionViewLayoutProps): react_jsx_runtime.JSX.Element;
558
1290
 
559
1291
  type SquidTheme = {
560
1292
  'content-100': string;
@@ -589,4 +1321,4 @@ declare function useDropdownMenu(props?: {
589
1321
  openDropdownButtonRef: React.RefObject<HTMLButtonElement>;
590
1322
  };
591
1323
 
592
- export { AddressButton, ArrowButton, AssetsButton, BadgeImage, BodyText, Boost, BoostButton, BorderedContainer, Button, CaptionText, Chip, DetailsToolbar, DropdownMenu, DropdownMenuItem, type DropdownMenuItemProps, ErrorMessage, FeeButton, HeadingText, HistoryItem, type HistoryItemStatus, InfoBox, Input, ListItem, LoadingSkeleton, Menu, MenuItem, Modal, ModalContent, ModalContentDivider, NavigationBar, NumericInput, ProductCard, ProfileHeaderBackground, STEP_ITEM_HEIGHT, SectionTitle, SettingsButton, type SettingsButtonProps, type SettingsControl, SettingsItem, type SettingsItemProps, SettingsSlider, type SettingsSliderProps, SquidConfigProvider, type SquidTheme, SwapConfiguration, SwapDetailListItem, SwapProgressView, SwapProgressViewHeader, SwapState, type SwapStep, SwapStepItem, type SwapStepItemStatus, SwapStepsCollapsed, type SwapStepsCollapsedFooterButton, Switch, type ThemeType, TokenPair, Tooltip, type TooltipProps, type TooltipThreshold, type TooltipWidth, UsdAmount, useDropdownMenu };
1324
+ export { ActionLayout, ActionLineOutRow, ActionProperties, ActionRow, type ActionStatus, ActionStatusRow, ActionWrapper, AddressButton, AnimationWrapper, ApproveAction, ArrowButton, AssetsButton, BadgeImage, type BaseActionProps, type BaseTransactionViewProps, BodyText, Boost, BoostButton, BorderedContainer, Breadcrumb, BridgeAction, BridgeHeader, BridgeProperties, BridgeTransactionView, Button, BuyNFTHeader, BuyNFTProperties, BuyNFTTransactionView, CaptionText, Chip, Collapse, DescriptionBlocks, DetailsToolbar, DropdownMenu, DropdownMenuItem, type DropdownMenuItemProps, ErrorMessage, ExploreLayout, FeeButton, FeesAction, type FeesActionProps, FeesLines, FeesTotal, FilterButton, HashLink, HeadingText, HistoryItem, type HistoryItemStatus, IconLabel, ImageIcon, IncompleteAction, InfoBox, Inline, Input, InteractionHeader, InteractionProperties, InteractionTransactionView, Join, ListItem, LoadingProvider, LoadingSkeleton, Menu, MenuItem, Modal, ModalContent, ModalContentDivider, NavigationBar, NumericInput, ProductCard, ProfileHeader, ProfileHeaderBackground, PropertiesLayout, PropertyListItem, type PropertyListItemProps, ReceiveNFTAction, ReceiveTokensAction, STEP_ITEM_HEIGHT, SectionTitle, SendTokensAction, SettingsButton, type SettingsButtonProps, type SettingsControl, SettingsItem, type SettingsItemProps, SettingsSlider, type SettingsSliderProps, SizeTransition, SquidConfigProvider, type SquidTheme, StakeAction, StartAction, SuccessAction, SwapAction, SwapConfiguration, SwapHeader, type SwapHeaderProps, SwapProgressViewHeader, SwapProperties, type SwapPropertiesProps, SwapState, type SwapStep, SwapStepItem, SwapStepsCollapsed, type SwapStepsCollapsedFooterButton, SwapTransactionView, Switch, type ThemeType, Timestamp, TokenPair, Tooltip, type TooltipProps, type TooltipThreshold, type TooltipWidth, TransactionAction, type TransactionActionProps, type TransactionActionType, TransactionFilters, TransactionHeader, TransactionHeaderLayout, type TransactionHeaderProps, type TransactionHeaderType, TransactionItem, TransactionProperties, type TransactionPropertiesProps, type TransactionPropertiesType, TransactionSearch, TransactionState, TransactionView, TransactionViewLayout, type TransactionViewProps, type TransactionViewType, Transfer, UsdAmount, WalletLink, WrapAction, linkActionTimelineProps, statusBgClassMap, statusColorClassMap, statusTextClassMap, useDropdownMenu };