@rango-dev/ui 0.1.15 → 0.1.16-next.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 (266) hide show
  1. package/CHANGELOG.md +0 -4
  2. package/dist/components/Alert/Alert.d.ts +7 -7
  3. package/dist/components/Alert/Alert.stories.d.ts +7 -5
  4. package/dist/components/Alert/LoadingFailedAlert.d.ts +2 -2
  5. package/dist/components/Alert/NotFoundAlert.d.ts +7 -7
  6. package/dist/components/Alert/index.d.ts +2 -2
  7. package/dist/components/BestRoute/BestRoute.d.ts +15 -12
  8. package/dist/components/BestRoute/BestRoute.stories.d.ts +10 -8
  9. package/dist/components/BestRoute/index.d.ts +1 -1
  10. package/dist/components/BestRoute/mock.d.ts +4 -4
  11. package/dist/components/BlockchainsList/BlockchainsList.d.ts +10 -10
  12. package/dist/components/BlockchainsList/BlockchainsList.stories.d.ts +5 -5
  13. package/dist/components/BlockchainsList/index.d.ts +1 -1
  14. package/dist/components/BlockchainsList/mockData.d.ts +2 -2
  15. package/dist/components/Button/Button.d.ts +17 -17
  16. package/dist/components/Button/Button.stories.d.ts +10 -8
  17. package/dist/components/Button/index.d.ts +1 -1
  18. package/dist/components/Checkbox/Checkbox.d.ts +11 -11
  19. package/dist/components/Checkbox/Checkbox.stories.d.ts +7 -5
  20. package/dist/components/Checkbox/index.d.ts +1 -1
  21. package/dist/components/Chip/Chip.d.ts +12 -12
  22. package/dist/components/Chip/Chip.stories.d.ts +7 -7
  23. package/dist/components/Chip/index.d.ts +1 -1
  24. package/dist/components/ColorPicker/ColorPicker.d.ts +9 -9
  25. package/dist/components/ColorPicker/ColorPicker.stories.d.ts +5 -5
  26. package/dist/components/ColorPicker/index.d.ts +1 -1
  27. package/dist/components/Divider/Divider.d.ts +6 -6
  28. package/dist/components/Divider/index.d.ts +1 -1
  29. package/dist/components/Drawer/Drawer.d.ts +13 -13
  30. package/dist/components/Drawer/Drawer.stories.d.ts +8 -8
  31. package/dist/components/Drawer/index.d.ts +1 -1
  32. package/dist/components/Header/Header.d.ts +9 -9
  33. package/dist/components/Header/index.d.ts +1 -1
  34. package/dist/components/Icon/AddCircleIcon.d.ts +3 -3
  35. package/dist/components/Icon/AddIcon.d.ts +3 -3
  36. package/dist/components/Icon/AddWalletIcon.d.ts +3 -3
  37. package/dist/components/Icon/AngleDownIcon.d.ts +3 -3
  38. package/dist/components/Icon/AngleLeftIcon.d.ts +3 -3
  39. package/dist/components/Icon/AngleRightIcon.d.ts +3 -3
  40. package/dist/components/Icon/AngleUpIcon.d.ts +3 -3
  41. package/dist/components/Icon/ArrowRightIcon.d.ts +3 -3
  42. package/dist/components/Icon/BagIcon.d.ts +3 -3
  43. package/dist/components/Icon/BanIcon.d.ts +3 -3
  44. package/dist/components/Icon/CheckCircleIcon.d.ts +3 -3
  45. package/dist/components/Icon/CheckIcon.d.ts +3 -3
  46. package/dist/components/Icon/CheckSquareIcon.d.ts +3 -3
  47. package/dist/components/Icon/CheckWalletIcon.d.ts +3 -3
  48. package/dist/components/Icon/ChevronRightIcon.d.ts +3 -3
  49. package/dist/components/Icon/CloseIcon.d.ts +112 -1
  50. package/dist/components/Icon/CopyIcon.d.ts +3 -3
  51. package/dist/components/Icon/DeleteCircleIcon.d.ts +3 -3
  52. package/dist/components/Icon/DeleteWalletIcon.d.ts +3 -3
  53. package/dist/components/Icon/DisconnectIcon.d.ts +3 -3
  54. package/dist/components/Icon/DownloadIcon.d.ts +3 -3
  55. package/dist/components/Icon/GasIcon.d.ts +3 -3
  56. package/dist/components/Icon/HistoryIcon.d.ts +3 -3
  57. package/dist/components/Icon/HorizontalSwapIcon.d.ts +3 -3
  58. package/dist/components/Icon/Icons.stories.d.ts +5 -5
  59. package/dist/components/Icon/InfoCircleIcon.d.ts +3 -3
  60. package/dist/components/Icon/MinusCircleIcon.d.ts +3 -3
  61. package/dist/components/Icon/RetryIcon.d.ts +3 -3
  62. package/dist/components/Icon/RetryLeftIcon.d.ts +3 -3
  63. package/dist/components/Icon/RetryRightIcon.d.ts +3 -3
  64. package/dist/components/Icon/SearchIcon.d.ts +3 -3
  65. package/dist/components/Icon/SearchMinusIcon.d.ts +3 -3
  66. package/dist/components/Icon/SettingIcon.d.ts +3 -3
  67. package/dist/components/Icon/SignatureIcon.d.ts +3 -3
  68. package/dist/components/Icon/SwapWalletIcon.d.ts +3 -3
  69. package/dist/components/Icon/TimeIcon.d.ts +3 -3
  70. package/dist/components/Icon/TrashIcon.d.ts +3 -3
  71. package/dist/components/Icon/TryAgainIcon.d.ts +3 -3
  72. package/dist/components/Icon/VerticalSwapIcon.d.ts +3 -3
  73. package/dist/components/Icon/WalletIconIcon.d.ts +3 -3
  74. package/dist/components/Icon/WarningIcon.d.ts +3 -3
  75. package/dist/components/Icon/common.d.ts +228 -2
  76. package/dist/components/Icon/index.d.ts +40 -40
  77. package/dist/components/Icon/types.d.ts +7 -7
  78. package/dist/components/LiquiditySourceList/LiquiditySource.stories.d.ts +5 -5
  79. package/dist/components/LiquiditySourceList/LiquiditySourceList.d.ts +11 -11
  80. package/dist/components/LiquiditySourceList/index.d.ts +1 -1
  81. package/dist/components/LiquiditySourceList/mockData.d.ts +2 -2
  82. package/dist/components/Modal/Modal.d.ts +11 -11
  83. package/dist/components/Modal/Modal.stories.d.ts +5 -5
  84. package/dist/components/Modal/index.d.ts +1 -1
  85. package/dist/components/Radio/Radio.d.ts +13 -13
  86. package/dist/components/Radio/Radio.stories.d.ts +5 -5
  87. package/dist/components/Radio/index.d.ts +1 -1
  88. package/dist/components/SecondaryPage/SecondaryPage.d.ts +16 -16
  89. package/dist/components/SecondaryPage/SecondaryPage.stories.d.ts +5 -2
  90. package/dist/components/SecondaryPage/index.d.ts +1 -1
  91. package/dist/components/SelectableWalletList/SelectableWalletList.d.ts +7 -7
  92. package/dist/components/SelectableWalletList/SelectableWalletList.stories.d.ts +7 -5
  93. package/dist/components/SelectableWalletList/index.d.ts +1 -1
  94. package/dist/components/SelectableWalletList/mock.d.ts +2 -2
  95. package/dist/components/Skeleton/Skeleton.d.ts +6 -6
  96. package/dist/components/Skeleton/Skeleton.stories.d.ts +5 -5
  97. package/dist/components/Skeleton/index.d.ts +1 -1
  98. package/dist/components/Spinner/Spinner.d.ts +6 -6
  99. package/dist/components/Spinner/Spinner.stories.d.ts +5 -5
  100. package/dist/components/Spinner/index.d.ts +1 -1
  101. package/dist/components/StatusDrawer/StatusDrawer.d.ts +11 -11
  102. package/dist/components/StatusDrawer/StatusDrawer.stories.d.ts +5 -5
  103. package/dist/components/StatusDrawer/index.d.ts +1 -1
  104. package/dist/components/StepDetail/StepDetail.d.ts +12 -12
  105. package/dist/components/StepDetail/StepDetail.stories.d.ts +7 -5
  106. package/dist/components/StepDetail/index.d.ts +1 -1
  107. package/dist/components/SwapContainer/SwapContainer.d.ts +7 -7
  108. package/dist/components/SwapContainer/index.d.ts +1 -1
  109. package/dist/components/SwapDetail/SwapDetail.d.ts +8 -8
  110. package/dist/components/SwapDetail/SwapDetail.stories.d.ts +7 -5
  111. package/dist/components/SwapDetail/Token.d.ts +17 -17
  112. package/dist/components/SwapDetail/index.d.ts +1 -1
  113. package/dist/components/SwapDetail/mock.d.ts +2 -2
  114. package/dist/components/Switch/Switch.d.ts +6 -6
  115. package/dist/components/Switch/Switch.stories.d.ts +5 -5
  116. package/dist/components/Switch/index.d.ts +1 -1
  117. package/dist/components/TextField/TextField.d.ts +10 -10
  118. package/dist/components/TextField/TextField.stories.d.ts +7 -7
  119. package/dist/components/TextField/index.d.ts +1 -1
  120. package/dist/components/TokenList/TokenItem.d.ts +11 -11
  121. package/dist/components/TokenList/TokenList.d.ts +17 -17
  122. package/dist/components/TokenList/TokenList.stories.d.ts +5 -5
  123. package/dist/components/TokenList/index.d.ts +1 -1
  124. package/dist/components/TokenList/mockData.d.ts +2 -2
  125. package/dist/components/Tooltip/Tooltip.d.ts +7 -7
  126. package/dist/components/Tooltip/Tooltip.stories.d.ts +7 -5
  127. package/dist/components/Tooltip/index.d.ts +1 -1
  128. package/dist/components/Typography/Typography.d.ts +18 -18
  129. package/dist/components/Typography/Typography.stories.d.ts +7 -5
  130. package/dist/components/Typography/index.d.ts +1 -1
  131. package/dist/components/VirtualizedList/VirtualizedList.d.ts +17 -17
  132. package/dist/components/Wallet/State.d.ts +7 -7
  133. package/dist/components/Wallet/Wallet.d.ts +7 -7
  134. package/dist/components/Wallet/Wallet.stories.d.ts +7 -5
  135. package/dist/components/Wallet/index.d.ts +1 -1
  136. package/dist/components/common/FilledCircle.d.ts +111 -1
  137. package/dist/components/common/Image.d.ts +6 -6
  138. package/dist/components/common/index.d.ts +2 -2
  139. package/dist/components/index.d.ts +25 -31
  140. package/dist/{components → containers}/BlockchainSelector/BlockchainSelector.d.ts +17 -17
  141. package/dist/{components → containers}/BlockchainSelector/BlockchainSelector.stories.d.ts +5 -5
  142. package/dist/containers/ConfirmSwap/ConfirmSwap.d.ts +22 -22
  143. package/dist/containers/ConfirmSwap/ConfirmSwap.stories.d.ts +8 -6
  144. package/dist/containers/ConfirmSwap/index.d.ts +1 -1
  145. package/dist/containers/ConfirmSwap/mock.d.ts +5 -5
  146. package/dist/{components → containers}/ConnectWalletsModal/ConnectWallets.stories.d.ts +5 -5
  147. package/dist/{components → containers}/ConnectWalletsModal/ConnectWalletsModal.d.ts +11 -11
  148. package/dist/{components → containers}/ConnectWalletsModal/mockData.d.ts +2 -2
  149. package/dist/containers/History/History.d.ts +6 -6
  150. package/dist/containers/History/History.stories.d.ts +9 -5
  151. package/dist/containers/History/SwapsGroup.d.ts +13 -13
  152. package/dist/containers/History/index.d.ts +3 -2
  153. package/dist/containers/History/mock.d.ts +2 -2
  154. package/dist/containers/History/types.d.ts +39 -39
  155. package/dist/{components → containers}/LiquiditySourcesSelector/LiquiditySourcesSelector.d.ts +13 -13
  156. package/dist/{components → containers}/LiquiditySourcesSelector/LiquiditySourcesSelector.stories.d.ts +5 -5
  157. package/dist/{components → containers}/Settings/Settings.d.ts +24 -24
  158. package/dist/{components → containers}/Settings/Settings.stories.d.ts +5 -5
  159. package/dist/containers/SwapHistory/SwapHistory.d.ts +1128 -24
  160. package/dist/containers/SwapHistory/SwapHistory.stories.d.ts +14 -5
  161. package/dist/containers/SwapHistory/SwapMessages.d.ts +17 -17
  162. package/dist/containers/SwapHistory/index.d.ts +1 -1
  163. package/dist/containers/SwapHistory/mock.d.ts +2 -2
  164. package/dist/containers/TokenSelector/TokenSelector.d.ts +124 -0
  165. package/dist/{components → containers}/TokenSelector/TokenSelector.stories.d.ts +5 -5
  166. package/dist/containers/index.d.ts +8 -3
  167. package/dist/helper/index.d.ts +6 -6
  168. package/dist/hooks/index.d.ts +1 -1
  169. package/dist/hooks/useCopyToClipboard.d.ts +1 -1
  170. package/dist/index.d.ts +6 -6
  171. package/dist/index.js +20 -8
  172. package/dist/index.js.map +7 -0
  173. package/dist/theme.d.ts +928 -8
  174. package/dist/types/index.d.ts +2 -2
  175. package/dist/types/meta.d.ts +23 -23
  176. package/dist/types/swaps.d.ts +29 -29
  177. package/dist/types/wallet.d.ts +23 -23
  178. package/package.json +17 -37
  179. package/src/components/Alert/Alert.stories.tsx +19 -6
  180. package/src/components/Alert/Alert.tsx +3 -3
  181. package/src/components/BestRoute/BestRoute.stories.tsx +15 -5
  182. package/src/components/BestRoute/mock.ts +1 -1
  183. package/src/components/BlockchainsList/BlockchainsList.stories.tsx +9 -3
  184. package/src/components/BlockchainsList/mockData.ts +603 -108
  185. package/src/components/Button/Button.stories.tsx +8 -3
  186. package/src/components/Checkbox/Checkbox.stories.tsx +6 -2
  187. package/src/components/Chip/Chip.stories.tsx +23 -7
  188. package/src/components/ColorPicker/ColorPicker.stories.tsx +6 -3
  189. package/src/components/Divider/Divider.tsx +113 -11
  190. package/src/components/Drawer/Drawer.stories.tsx +8 -11
  191. package/src/components/Icon/Icons.stories.tsx +8 -4
  192. package/src/components/LiquiditySourceList/LiquiditySource.stories.tsx +6 -3
  193. package/src/components/LiquiditySourceList/LiquiditySourceList.tsx +3 -3
  194. package/src/components/Modal/Modal.stories.tsx +9 -10
  195. package/src/components/Radio/Radio.stories.tsx +12 -7
  196. package/src/components/SecondaryPage/SecondaryPage.stories.tsx +12 -3
  197. package/src/components/SelectableWalletList/SelectableWalletList.stories.tsx +2 -2
  198. package/src/components/SelectableWalletList/mock.ts +2 -2
  199. package/src/components/Skeleton/Skeleton.stories.tsx +6 -2
  200. package/src/components/Spinner/Spinner.stories.tsx +6 -2
  201. package/src/components/StatusDrawer/StatusDrawer.stories.tsx +7 -2
  202. package/src/components/StatusDrawer/StatusDrawer.tsx +2 -2
  203. package/src/components/StepDetail/StepDetail.stories.tsx +9 -2
  204. package/src/components/SwapDetail/SwapDetail.stories.tsx +5 -2
  205. package/src/components/SwapDetail/SwapDetail.tsx +3 -3
  206. package/src/components/SwapDetail/Token.tsx +4 -4
  207. package/src/components/Switch/Switch.stories.tsx +2 -2
  208. package/src/components/TextField/TextField.stories.tsx +3 -2
  209. package/src/components/TokenList/TokenList.stories.tsx +3 -3
  210. package/src/components/Tooltip/Tooltip.stories.tsx +7 -2
  211. package/src/components/Typography/Typography.stories.tsx +2 -2
  212. package/src/components/Wallet/Wallet.stories.tsx +7 -13
  213. package/src/components/index.ts +0 -6
  214. package/src/containers/BlockchainSelector/BlockchainSelector.stories.tsx +41 -0
  215. package/src/{components → containers}/BlockchainSelector/BlockchainSelector.tsx +5 -5
  216. package/{dist/components/BlockchainSelector/index.d.ts → src/containers/BlockchainSelector/index.ts} +1 -1
  217. package/src/containers/ConfirmSwap/ConfirmSwap.stories.tsx +223 -10
  218. package/src/containers/ConfirmSwap/ConfirmSwap.tsx +21 -12
  219. package/src/containers/ConfirmSwap/mock.ts +12 -15
  220. package/src/containers/ConnectWalletsModal/ConnectWallets.stories.tsx +24 -0
  221. package/src/{components → containers}/ConnectWalletsModal/ConnectWalletsModal.tsx +3 -3
  222. package/{dist/components/ConnectWalletsModal/index.d.ts → src/containers/ConnectWalletsModal/index.ts} +1 -1
  223. package/src/{components → containers}/ConnectWalletsModal/mockData.ts +17 -17
  224. package/src/containers/History/History.stories.tsx +2 -2
  225. package/src/containers/History/History.tsx +1 -1
  226. package/src/containers/History/index.ts +2 -1
  227. package/src/containers/History/mock.ts +3 -3
  228. package/src/containers/History/types.tsx +1 -1
  229. package/src/{components → containers}/LiquiditySourcesSelector/LiquiditySourcesSelector.stories.tsx +7 -4
  230. package/src/{components → containers}/LiquiditySourcesSelector/LiquiditySourcesSelector.tsx +2 -3
  231. package/{dist/components/LiquiditySourcesSelector/index.d.ts → src/containers/LiquiditySourcesSelector/index.ts} +1 -1
  232. package/src/containers/Settings/Settings.stories.tsx +27 -0
  233. package/src/{components → containers}/Settings/Settings.tsx +11 -8
  234. package/{dist/components/Settings/index.d.ts → src/containers/Settings/index.ts} +1 -1
  235. package/src/containers/SwapHistory/SwapHistory.stories.tsx +3 -3
  236. package/src/containers/SwapHistory/SwapHistory.tsx +4 -5
  237. package/src/containers/SwapHistory/mock.ts +2 -2
  238. package/src/{components → containers}/TokenSelector/TokenSelector.stories.tsx +7 -8
  239. package/src/{components → containers}/TokenSelector/TokenSelector.tsx +7 -6
  240. package/{dist/components/TokenSelector/index.d.ts → src/containers/TokenSelector/index.ts} +1 -1
  241. package/src/containers/index.ts +5 -0
  242. package/src/theme.ts +14 -22
  243. package/src/types/index.ts +1 -1
  244. package/dist/components/Spacer/Spacer.d.ts +0 -6
  245. package/dist/components/Spacer/Spacer.stories.d.ts +0 -5
  246. package/dist/components/Spacer/index.d.ts +0 -1
  247. package/dist/components/SwapContainer/SwapContainer.stories.d.ts +0 -5
  248. package/dist/components/TokenSelector/TokenSelector.d.ts +0 -14
  249. package/dist/ui.cjs.development.js +0 -5181
  250. package/dist/ui.cjs.development.js.map +0 -1
  251. package/dist/ui.cjs.production.min.js +0 -2
  252. package/dist/ui.cjs.production.min.js.map +0 -1
  253. package/dist/ui.esm.js +0 -5091
  254. package/dist/ui.esm.js.map +0 -1
  255. package/src/components/BlockchainSelector/BlockchainSelector.stories.tsx +0 -25
  256. package/src/components/ConnectWalletsModal/ConnectWallets.stories.tsx +0 -13
  257. package/src/components/Settings/Settings.stories.tsx +0 -34
  258. package/src/components/Spacer/Spacer.stories.tsx +0 -31
  259. package/src/components/Spacer/Spacer.tsx +0 -128
  260. package/src/components/Spacer/index.ts +0 -1
  261. package/src/components/SwapContainer/SwapContainer.stories.tsx +0 -13
  262. /package/{src/components/BlockchainSelector/index.ts → dist/containers/BlockchainSelector/index.d.ts} +0 -0
  263. /package/{src/components/ConnectWalletsModal/index.ts → dist/containers/ConnectWalletsModal/index.d.ts} +0 -0
  264. /package/{src/components/LiquiditySourcesSelector/index.ts → dist/containers/LiquiditySourcesSelector/index.d.ts} +0 -0
  265. /package/{src/components/Settings/index.ts → dist/containers/Settings/index.d.ts} +0 -0
  266. /package/{src/components/TokenSelector/index.ts → dist/containers/TokenSelector/index.d.ts} +0 -0
@@ -1,17 +1,17 @@
1
- /// <reference types="react" />
2
- import { Asset, Token } from 'rango-sdk';
3
- export interface TokenWithAmount extends Token {
4
- balance?: {
5
- amount: string;
6
- usdValue: string;
7
- };
8
- }
9
- export interface PropTypes {
10
- list: TokenWithAmount[];
11
- selected?: TokenWithAmount | null;
12
- searchedText: string;
13
- onChange: (token: TokenWithAmount) => void;
14
- multiSelect?: boolean;
15
- selectedList?: Asset[];
16
- }
17
- export declare function TokenList(props: PropTypes): JSX.Element;
1
+ /// <reference types="react" />
2
+ import { Asset, Token } from 'rango-sdk';
3
+ export interface TokenWithAmount extends Token {
4
+ balance?: {
5
+ amount: string;
6
+ usdValue: string;
7
+ };
8
+ }
9
+ export interface PropTypes {
10
+ list: TokenWithAmount[];
11
+ selected?: TokenWithAmount | null;
12
+ searchedText: string;
13
+ onChange: (token: TokenWithAmount) => void;
14
+ multiSelect?: boolean;
15
+ selectedList?: Asset[];
16
+ }
17
+ export declare function TokenList(props: PropTypes): JSX.Element;
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
- import { PropTypes } from './TokenList';
3
- declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react").ReactFramework, PropTypes>;
4
- export default _default;
5
- export declare const Main: (args: PropTypes) => JSX.Element;
1
+ /// <reference types="react" />
2
+ import { PropTypes } from './TokenList';
3
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, PropTypes>;
4
+ export default _default;
5
+ export declare const Main: (args: PropTypes) => JSX.Element;
@@ -1 +1 @@
1
- export { TokenList } from './TokenList';
1
+ export { TokenList } from './TokenList';
@@ -1,2 +1,2 @@
1
- import { TokenWithAmount } from './TokenList';
2
- export declare const tokensMeta: TokenWithAmount[];
1
+ import { TokenWithAmount } from './TokenList';
2
+ export declare const tokensMeta: TokenWithAmount[];
@@ -1,7 +1,7 @@
1
- import { PropsWithChildren } from 'react';
2
- export interface PropTypes {
3
- content: string;
4
- side?: 'top' | 'right' | 'bottom' | 'left';
5
- color?: 'primary' | 'error' | 'warning' | 'success' | 'gray' | 'white' | 'black';
6
- }
7
- export declare function Tooltip({ children, content, side, color, }: PropsWithChildren<PropTypes>): JSX.Element;
1
+ import { PropsWithChildren } from 'react';
2
+ export interface PropTypes {
3
+ content: string;
4
+ side?: 'top' | 'right' | 'bottom' | 'left';
5
+ color?: 'primary' | 'error' | 'warning' | 'success' | 'gray' | 'white' | 'black';
6
+ }
7
+ export declare function Tooltip({ children, content, side, color, }: PropsWithChildren<PropTypes>): JSX.Element;
@@ -1,5 +1,7 @@
1
- import React from 'react';
2
- import { PropTypes } from './Tooltip';
3
- declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react").ReactFramework, React.PropsWithChildren<PropTypes>>;
4
- export default _default;
5
- export declare const Main: (props: PropTypes) => JSX.Element;
1
+ import React from 'react';
2
+ import { PropTypes } from './Tooltip';
3
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, PropTypes & {
4
+ children?: React.ReactNode;
5
+ }>;
6
+ export default _default;
7
+ export declare const Main: (props: PropTypes) => JSX.Element;
@@ -1 +1 @@
1
- export { Tooltip } from './Tooltip';
1
+ export { Tooltip } from './Tooltip';
@@ -1,18 +1,18 @@
1
- import { CSSProperties } from '@stitches/react';
2
- import { PropsWithChildren } from 'react';
3
- export interface PropTypes {
4
- variant: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'title' | 'body1' | 'body2' | 'body3' | 'caption';
5
- align?: 'center' | 'left' | 'right';
6
- noWrap?: boolean;
7
- mt?: 2 | 4 | 8 | 12;
8
- mb?: 2 | 4 | 8 | 12;
9
- ml?: 2 | 4 | 8 | 12;
10
- mr?: 2 | 4 | 8 | 12;
11
- className?: string;
12
- style?: CSSProperties;
13
- color?: string;
14
- }
15
- export declare function Typography({ children, className, color, ...props }: PropsWithChildren<PropTypes>): JSX.Element;
16
- export declare namespace Typography {
17
- var toString: () => string;
18
- }
1
+ import { CSSProperties } from '@stitches/react';
2
+ import { PropsWithChildren } from 'react';
3
+ export interface PropTypes {
4
+ variant: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'title' | 'body1' | 'body2' | 'body3' | 'caption';
5
+ align?: 'center' | 'left' | 'right';
6
+ noWrap?: boolean;
7
+ mt?: 2 | 4 | 8 | 12;
8
+ mb?: 2 | 4 | 8 | 12;
9
+ ml?: 2 | 4 | 8 | 12;
10
+ mr?: 2 | 4 | 8 | 12;
11
+ className?: string;
12
+ style?: CSSProperties;
13
+ color?: string;
14
+ }
15
+ export declare function Typography({ children, className, color, ...props }: PropsWithChildren<PropTypes>): JSX.Element;
16
+ export declare namespace Typography {
17
+ var toString: () => string;
18
+ }
@@ -1,5 +1,7 @@
1
- import React from 'react';
2
- import { PropTypes } from './Typography';
3
- declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react").ReactFramework, React.PropsWithChildren<PropTypes>>;
4
- export default _default;
5
- export declare const Main: (props: PropTypes) => JSX.Element;
1
+ import React from 'react';
2
+ import { PropTypes } from './Typography';
3
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, PropTypes & {
4
+ children?: React.ReactNode;
5
+ }>;
6
+ export default _default;
7
+ export declare const Main: (props: PropTypes) => JSX.Element;
@@ -1 +1 @@
1
- export { Typography } from './Typography';
1
+ export { Typography } from './Typography';
@@ -1,17 +1,17 @@
1
- import { PropsWithChildren } from 'react';
2
- import { ReactElementType } from 'react-window';
3
- import { CSSProperties } from '@stitches/react';
4
- export declare type VirtualizedListItem = ({ index, style, }: {
5
- index: number;
6
- style: CSSProperties | undefined;
7
- }) => JSX.Element | null;
8
- declare type PropTypes = {
9
- itemCount: number;
10
- hasNextPage: boolean;
11
- loadNextPage: () => void;
12
- Item: VirtualizedListItem;
13
- innerElementType: ReactElementType | undefined;
14
- size: number;
15
- };
16
- export declare function VirtualizedList(props: PropsWithChildren<PropTypes>): JSX.Element;
17
- export {};
1
+ import { PropsWithChildren } from 'react';
2
+ import { ReactElementType } from 'react-window';
3
+ import { CSSProperties } from '@stitches/react';
4
+ export type VirtualizedListItem = ({ index, style, }: {
5
+ index: number;
6
+ style: CSSProperties | undefined;
7
+ }) => JSX.Element | null;
8
+ type PropTypes = {
9
+ itemCount: number;
10
+ hasNextPage: boolean;
11
+ loadNextPage: () => void;
12
+ Item: VirtualizedListItem;
13
+ innerElementType: ReactElementType | undefined;
14
+ size: number;
15
+ };
16
+ export declare function VirtualizedList(props: PropsWithChildren<PropTypes>): JSX.Element;
17
+ export {};
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
2
- import { WalletState } from '../../types/wallet';
3
- import { InstallObjects } from '@rango-dev/wallets-shared';
4
- export declare const State: ({ walletState, installLink, }: {
5
- walletState: WalletState;
6
- installLink: InstallObjects | string;
7
- }) => JSX.Element;
1
+ /// <reference types="react" />
2
+ import { WalletState } from '../../types/wallet';
3
+ import { InstallObjects } from '@rango-dev/wallets-shared';
4
+ export declare const State: ({ walletState, installLink, }: {
5
+ walletState: WalletState;
6
+ installLink: InstallObjects | string;
7
+ }) => JSX.Element;
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
2
- import { WalletType } from '@rango-dev/wallets-shared';
3
- import { WalletInfo } from '../../types/wallet';
4
- export declare type PropTypes = WalletInfo & {
5
- onClick: (walletType: WalletType) => void;
6
- };
7
- export declare function Wallet(props: PropTypes): JSX.Element;
1
+ /// <reference types="react" />
2
+ import { WalletType } from '@rango-dev/wallets-shared';
3
+ import { WalletInfo } from '../../types/wallet';
4
+ export type PropTypes = WalletInfo & {
5
+ onClick: (walletType: WalletType) => void;
6
+ };
7
+ export declare function Wallet(props: PropTypes): JSX.Element;
@@ -1,5 +1,7 @@
1
- /// <reference types="react" />
2
- import { PropTypes } from './Wallet';
3
- declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react").ReactFramework, PropTypes>;
4
- export default _default;
5
- export declare const Main: (args: PropTypes) => JSX.Element;
1
+ /// <reference types="react" />
2
+ import { PropTypes } from './Wallet';
3
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("../../types/wallet").WalletInfo & {
4
+ onClick: (walletType: string) => void;
5
+ }>;
6
+ export default _default;
7
+ export declare const Main: (args: PropTypes) => JSX.Element;
@@ -1 +1 @@
1
- export * from './Wallet';
1
+ export * from './Wallet';
@@ -1 +1,111 @@
1
- export declare const FilledCircle: any;
1
+ export declare const FilledCircle: import("@stitches/react/types/styled-component").StyledComponent<"span", {}, {
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
+ primary100: string;
13
+ primary200: string;
14
+ primary300: string;
15
+ primary400: string;
16
+ primary500: string;
17
+ primary600: string;
18
+ primary700: string;
19
+ primary800: string;
20
+ primary900: string;
21
+ surface: string;
22
+ neutral100: string;
23
+ neutral200: string;
24
+ neutral300: string;
25
+ neutral400: string;
26
+ neutral500: string;
27
+ neutral600: string;
28
+ neutral700: string;
29
+ neutral800: string;
30
+ neutral900: string;
31
+ background: string;
32
+ foreground: string;
33
+ success: string;
34
+ success100: string;
35
+ success300: string;
36
+ success500: string;
37
+ success700: string;
38
+ warning: string;
39
+ warning100: string;
40
+ warning300: string;
41
+ warning500: string;
42
+ warning700: string;
43
+ error: string;
44
+ error100: string;
45
+ error300: string;
46
+ error500: string;
47
+ error700: string;
48
+ white: string;
49
+ };
50
+ space: {
51
+ 2: string;
52
+ 4: string;
53
+ 6: string;
54
+ 8: string;
55
+ 10: string;
56
+ 12: string;
57
+ 16: string;
58
+ 20: string;
59
+ 24: string;
60
+ 28: string;
61
+ 30: string;
62
+ 32: string;
63
+ };
64
+ fontSizes: {
65
+ 10: string;
66
+ 12: string;
67
+ 14: string;
68
+ 16: string;
69
+ 18: string;
70
+ 20: string;
71
+ 24: string;
72
+ 32: string;
73
+ 36: string;
74
+ 40: string;
75
+ 48: string;
76
+ };
77
+ fonts: {};
78
+ fontWeights: {
79
+ 400: string;
80
+ 500: string;
81
+ 600: string;
82
+ 700: string;
83
+ };
84
+ lineHeights: {};
85
+ letterSpacings: {};
86
+ sizes: {
87
+ 4: string;
88
+ 6: string;
89
+ 8: string;
90
+ 12: string;
91
+ 16: string;
92
+ 20: string;
93
+ 24: string;
94
+ 28: string;
95
+ 32: string;
96
+ 36: string;
97
+ 40: string;
98
+ 48: string;
99
+ };
100
+ borderWidths: {};
101
+ borderStyles: {};
102
+ radii: {
103
+ 5: string;
104
+ 10: string;
105
+ };
106
+ shadows: {
107
+ s: string;
108
+ };
109
+ zIndices: {};
110
+ transitions: {};
111
+ }, import("@stitches/react/types/config").DefaultThemeMap, {}>>;
@@ -1,6 +1,6 @@
1
- import React from 'react';
2
- declare type PropTypes = {
3
- size: number;
4
- } & React.ImgHTMLAttributes<HTMLImageElement>;
5
- export declare function Image(props: PropTypes): JSX.Element;
6
- export {};
1
+ import React from 'react';
2
+ type PropTypes = {
3
+ size: number;
4
+ } & React.ImgHTMLAttributes<HTMLImageElement>;
5
+ export declare function Image(props: PropTypes): JSX.Element;
6
+ export {};
@@ -1,2 +1,2 @@
1
- export { FilledCircle } from './FilledCircle';
2
- export { Image } from './Image';
1
+ export { FilledCircle } from './FilledCircle';
2
+ export { Image } from './Image';
@@ -1,31 +1,25 @@
1
- export * from './BestRoute';
2
- export * from './BlockchainSelector';
3
- export * from './Button';
4
- export * from './Checkbox';
5
- export * from './Chip';
6
- export * from './ConnectWalletsModal';
7
- export * from './Icon';
8
- export * from './LiquiditySourcesSelector';
9
- export * from './Modal';
10
- export * from './SecondaryPage';
11
- export * from './SelectableWalletList';
12
- export * from './Settings';
13
- export * from './Spacer';
14
- export * from './Spinner';
15
- export * from './StepDetail';
16
- export * from './SwapContainer';
17
- export * from './SwapDetail';
18
- export * from './Switch';
19
- export * from './TextField';
20
- export * from './TokenSelector';
21
- export * from './Tooltip';
22
- export * from './Typography';
23
- export * from './Wallet';
24
- export * from './Alert';
25
- export * from './ColorPicker';
26
- export * from './Radio';
27
- export * from './TokenList';
28
- export * from './common';
29
- export * from './Drawer';
30
- export * from './Header';
31
- export * from './Divider';
1
+ export * from './BestRoute';
2
+ export * from './Button';
3
+ export * from './Checkbox';
4
+ export * from './Chip';
5
+ export * from './Icon';
6
+ export * from './Modal';
7
+ export * from './SecondaryPage';
8
+ export * from './SelectableWalletList';
9
+ export * from './Spinner';
10
+ export * from './StepDetail';
11
+ export * from './SwapContainer';
12
+ export * from './SwapDetail';
13
+ export * from './Switch';
14
+ export * from './TextField';
15
+ export * from './Tooltip';
16
+ export * from './Typography';
17
+ export * from './Wallet';
18
+ export * from './Alert';
19
+ export * from './ColorPicker';
20
+ export * from './Radio';
21
+ export * from './TokenList';
22
+ export * from './common';
23
+ export * from './Drawer';
24
+ export * from './Header';
25
+ export * from './Divider';
@@ -1,17 +1,17 @@
1
- /// <reference types="react" />
2
- import { BlockchainMeta } from 'rango-sdk';
3
- import { CSSProperties } from '@stitches/react';
4
- import { LoadingStatus } from '../../types/meta';
5
- export interface PropTypes {
6
- type?: 'Source' | 'Destination';
7
- list: BlockchainMeta[];
8
- selected?: BlockchainMeta | null;
9
- onChange: (blockchain: BlockchainMeta) => void;
10
- onBack?: () => void;
11
- loadingStatus: LoadingStatus;
12
- hasHeader?: boolean;
13
- listContainerStyle?: CSSProperties;
14
- multiSelect?: boolean;
15
- selectedList?: BlockchainMeta[] | 'all';
16
- }
17
- export declare function BlockchainSelector(props: PropTypes): JSX.Element;
1
+ /// <reference types="react" />
2
+ import { BlockchainMeta } from 'rango-sdk';
3
+ import { CSSProperties } from '@stitches/react';
4
+ import { LoadingStatus } from '../../types/meta';
5
+ export interface PropTypes {
6
+ type?: 'Source' | 'Destination';
7
+ list: BlockchainMeta[];
8
+ selected?: BlockchainMeta | null;
9
+ onChange: (blockchain: BlockchainMeta) => void;
10
+ onBack?: () => void;
11
+ loadingStatus: LoadingStatus;
12
+ hasHeader?: boolean;
13
+ listContainerStyle?: CSSProperties;
14
+ multiSelect?: boolean;
15
+ selectedList?: BlockchainMeta[] | 'all';
16
+ }
17
+ export declare function BlockchainSelector(props: PropTypes): JSX.Element;
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
- import { PropTypes } from './BlockchainSelector';
3
- declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react").ReactFramework, PropTypes>;
4
- export default _default;
5
- export declare const Main: (args: PropTypes) => JSX.Element;
1
+ /// <reference types="react" />
2
+ import { PropTypes } from './BlockchainSelector';
3
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, PropTypes>;
4
+ export default _default;
5
+ export declare const Main: (args: PropTypes) => JSX.Element;
@@ -1,22 +1,22 @@
1
- import React, { PropsWithChildren, ReactNode } from 'react';
2
- import { SelectableWallet } from '../../types';
3
- declare type Message = string | ReactNode;
4
- export interface PropTypes {
5
- onBack: () => void;
6
- onConfirm?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
7
- confirmDisabled?: boolean;
8
- loading?: boolean;
9
- requiredWallets: string[];
10
- selectableWallets: SelectableWallet[];
11
- onChange: (w: SelectableWallet) => void;
12
- isExperimentalChain?: (wallet: string) => boolean;
13
- handleConnectChain?: (wallet: string) => void;
14
- previewInputs?: ReactNode;
15
- previewRoutes?: ReactNode;
16
- confirmButtonTitle: string;
17
- errors?: Message[];
18
- warnings?: Message[];
19
- extraMessages?: ReactNode;
20
- }
21
- export declare function ConfirmSwap(props: PropsWithChildren<PropTypes>): JSX.Element;
22
- export {};
1
+ import React, { PropsWithChildren, ReactNode } from 'react';
2
+ import { SelectableWallet } from '../../types';
3
+ type Message = string | ReactNode;
4
+ export interface PropTypes {
5
+ onBack: () => void;
6
+ onConfirm?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
7
+ confirmDisabled?: boolean;
8
+ loading?: boolean;
9
+ requiredWallets: string[];
10
+ selectableWallets: SelectableWallet[];
11
+ onChange: (w: SelectableWallet) => void;
12
+ isExperimentalChain?: (wallet: string) => boolean;
13
+ handleConnectChain?: (wallet: string) => void;
14
+ previewInputs?: ReactNode;
15
+ previewRoutes?: ReactNode;
16
+ confirmButtonTitle: string;
17
+ errors?: Message[];
18
+ warnings?: Message[];
19
+ extraMessages?: ReactNode;
20
+ }
21
+ export declare function ConfirmSwap(props: PropsWithChildren<PropTypes>): JSX.Element;
22
+ export {};
@@ -1,6 +1,8 @@
1
- import React from 'react';
2
- import { PropTypes } from './ConfirmSwap';
3
- declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react").ReactFramework, React.PropsWithChildren<PropTypes>>;
4
- export default _default;
5
- export declare const Main: (props: PropTypes) => JSX.Element;
6
- export declare const With5Wallets: (props: PropTypes) => JSX.Element;
1
+ import { PropTypes } from './ConfirmSwap';
2
+ import React from 'react';
3
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, PropTypes & {
4
+ children?: React.ReactNode;
5
+ }>;
6
+ export default _default;
7
+ export declare const Main: (props: PropTypes) => JSX.Element;
8
+ export declare const With5Wallets: (props: PropTypes) => JSX.Element;
@@ -1 +1 @@
1
- export { ConfirmSwap } from './ConfirmSwap';
1
+ export { ConfirmSwap } from './ConfirmSwap';
@@ -1,5 +1,5 @@
1
- import { BestRouteType } from '../../types/swaps';
2
- import { SelectableWallet } from '../../types';
3
- export declare const bestRoute: BestRouteType;
4
- export declare const wallets: SelectableWallet[];
5
- export declare const exampleFor5Wallets: SelectableWallet[];
1
+ import { BestRouteType } from '../../types/swaps';
2
+ import { SelectableWallet } from '../../types';
3
+ export declare const bestRoute: BestRouteType;
4
+ export declare const wallets: SelectableWallet[];
5
+ export declare const exampleFor5Wallets: SelectableWallet[];
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
- import { PropTypes } from './ConnectWalletsModal';
3
- declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react").ReactFramework, PropTypes>;
4
- export default _default;
5
- export declare const Main: (args: PropTypes) => JSX.Element;
1
+ /// <reference types="react" />
2
+ import { PropTypes } from './ConnectWalletsModal';
3
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, PropTypes>;
4
+ export default _default;
5
+ export declare const Main: (args: PropTypes) => JSX.Element;
@@ -1,11 +1,11 @@
1
- /// <reference types="react" />
2
- import { WalletInfo } from '../../types/wallet';
3
- import { WalletType } from '@rango-dev/wallets-shared';
4
- export interface PropTypes {
5
- open: boolean;
6
- list: WalletInfo[];
7
- onSelect: (walletType: WalletType) => void;
8
- onClose: () => void;
9
- error?: string;
10
- }
11
- export declare function ConnectWalletsModal(props: PropTypes): JSX.Element;
1
+ /// <reference types="react" />
2
+ import { WalletInfo } from '../../types/wallet';
3
+ import { WalletType } from '@rango-dev/wallets-shared';
4
+ export interface PropTypes {
5
+ open: boolean;
6
+ list: WalletInfo[];
7
+ onSelect: (walletType: WalletType) => void;
8
+ onClose: () => void;
9
+ error?: string;
10
+ }
11
+ export declare function ConnectWalletsModal(props: PropTypes): JSX.Element;
@@ -1,2 +1,2 @@
1
- import { WalletInfo } from '../../types/wallet';
2
- export declare const walletsInfo: WalletInfo[];
1
+ import { WalletInfo } from '../../types/wallet';
2
+ export declare const walletsInfo: WalletInfo[];
@@ -1,6 +1,6 @@
1
- import { PropsWithChildren } from 'react';
2
- import { PropTypes as SwapsGroupPropTypes } from './SwapsGroup';
3
- export declare type PropTypes = SwapsGroupPropTypes & {
4
- loading: boolean;
5
- };
6
- export declare function History(props: PropsWithChildren<PropTypes>): JSX.Element;
1
+ import { PropsWithChildren } from 'react';
2
+ import { PropTypes as SwapsGroupPropTypes } from './SwapsGroup';
3
+ export type PropTypes = SwapsGroupPropTypes & {
4
+ loading: boolean;
5
+ };
6
+ export declare function History(props: PropsWithChildren<PropTypes>): JSX.Element;
@@ -1,5 +1,9 @@
1
- import React from 'react';
2
- import { PropTypes } from './History';
3
- declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react").ReactFramework, React.PropsWithChildren<PropTypes>>;
4
- export default _default;
5
- export declare const Main: (props: PropTypes) => JSX.Element;
1
+ import React from 'react';
2
+ import { PropTypes } from './History';
3
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("./SwapsGroup").PropTypes & {
4
+ loading: boolean;
5
+ } & {
6
+ children?: React.ReactNode;
7
+ }>;
8
+ export default _default;
9
+ export declare const Main: (props: PropTypes) => JSX.Element;