@rango-dev/ui 0.1.10-next.102
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.
- package/README.md +181 -0
- package/dist/components/Alert/Alert.d.ts +7 -0
- package/dist/components/Alert/Alert.stories.d.ts +5 -0
- package/dist/components/Alert/LoadingFailedAlert.d.ts +2 -0
- package/dist/components/Alert/NotFoundAlert.d.ts +7 -0
- package/dist/components/Alert/index.d.ts +2 -0
- package/dist/components/BestRoute/BestRoute.d.ts +12 -0
- package/dist/components/BestRoute/BestRoute.stories.d.ts +8 -0
- package/dist/components/BestRoute/index.d.ts +1 -0
- package/dist/components/BestRoute/mock.d.ts +4 -0
- package/dist/components/BlockchainSelector/BlockchainSelector.d.ts +17 -0
- package/dist/components/BlockchainSelector/BlockchainSelector.stories.d.ts +5 -0
- package/dist/components/BlockchainSelector/index.d.ts +1 -0
- package/dist/components/BlockchainsList/BlockchainsList.d.ts +10 -0
- package/dist/components/BlockchainsList/BlockchainsList.stories.d.ts +5 -0
- package/dist/components/BlockchainsList/index.d.ts +1 -0
- package/dist/components/BlockchainsList/mockData.d.ts +2 -0
- package/dist/components/Button/Button.d.ts +17 -0
- package/dist/components/Button/Button.stories.d.ts +8 -0
- package/dist/components/Button/index.d.ts +1 -0
- package/dist/components/Checkbox/Checkbox.d.ts +11 -0
- package/dist/components/Checkbox/Checkbox.stories.d.ts +5 -0
- package/dist/components/Checkbox/index.d.ts +1 -0
- package/dist/components/Chip/Chip.d.ts +12 -0
- package/dist/components/Chip/Chip.stories.d.ts +7 -0
- package/dist/components/Chip/index.d.ts +1 -0
- package/dist/components/ColorPicker/ColorPicker.d.ts +9 -0
- package/dist/components/ColorPicker/ColorPicker.stories.d.ts +5 -0
- package/dist/components/ColorPicker/index.d.ts +1 -0
- package/dist/components/ConnectWalletsModal/ConnectWallets.stories.d.ts +5 -0
- package/dist/components/ConnectWalletsModal/ConnectWalletsModal.d.ts +11 -0
- package/dist/components/ConnectWalletsModal/index.d.ts +1 -0
- package/dist/components/ConnectWalletsModal/mockData.d.ts +2 -0
- package/dist/components/Divider/Divider.d.ts +6 -0
- package/dist/components/Divider/index.d.ts +1 -0
- package/dist/components/Drawer/Drawer.d.ts +13 -0
- package/dist/components/Drawer/Drawer.stories.d.ts +8 -0
- package/dist/components/Drawer/index.d.ts +1 -0
- package/dist/components/Header/Header.d.ts +9 -0
- package/dist/components/Header/index.d.ts +1 -0
- package/dist/components/Icon/AddCircleIcon.d.ts +3 -0
- package/dist/components/Icon/AddIcon.d.ts +3 -0
- package/dist/components/Icon/AddWalletIcon.d.ts +3 -0
- package/dist/components/Icon/AngleDownIcon.d.ts +3 -0
- package/dist/components/Icon/AngleLeftIcon.d.ts +3 -0
- package/dist/components/Icon/AngleRightIcon.d.ts +3 -0
- package/dist/components/Icon/AngleUpIcon.d.ts +3 -0
- package/dist/components/Icon/ArrowRightIcon.d.ts +3 -0
- package/dist/components/Icon/BagIcon.d.ts +3 -0
- package/dist/components/Icon/BanIcon.d.ts +3 -0
- package/dist/components/Icon/CheckCircleIcon.d.ts +3 -0
- package/dist/components/Icon/CheckIcon.d.ts +3 -0
- package/dist/components/Icon/CheckSquareIcon.d.ts +3 -0
- package/dist/components/Icon/CheckWalletIcon.d.ts +3 -0
- package/dist/components/Icon/ChevronRightIcon.d.ts +3 -0
- package/dist/components/Icon/CloseIcon.d.ts +1 -0
- package/dist/components/Icon/CopyIcon.d.ts +3 -0
- package/dist/components/Icon/DeleteCircleIcon.d.ts +3 -0
- package/dist/components/Icon/DeleteWalletIcon.d.ts +3 -0
- package/dist/components/Icon/DisconnectIcon.d.ts +3 -0
- package/dist/components/Icon/DownloadIcon.d.ts +3 -0
- package/dist/components/Icon/GasIcon.d.ts +3 -0
- package/dist/components/Icon/HistoryIcon.d.ts +3 -0
- package/dist/components/Icon/HorizontalSwapIcon.d.ts +3 -0
- package/dist/components/Icon/Icons.stories.d.ts +5 -0
- package/dist/components/Icon/InfoCircleIcon.d.ts +3 -0
- package/dist/components/Icon/MinusCircleIcon.d.ts +3 -0
- package/dist/components/Icon/RetryIcon.d.ts +3 -0
- package/dist/components/Icon/RetryLeftIcon.d.ts +3 -0
- package/dist/components/Icon/RetryRightIcon.d.ts +3 -0
- package/dist/components/Icon/SearchIcon.d.ts +3 -0
- package/dist/components/Icon/SearchMinusIcon.d.ts +3 -0
- package/dist/components/Icon/SettingIcon.d.ts +3 -0
- package/dist/components/Icon/SignatureIcon.d.ts +3 -0
- package/dist/components/Icon/SwapWalletIcon.d.ts +3 -0
- package/dist/components/Icon/TimeIcon.d.ts +3 -0
- package/dist/components/Icon/TrashIcon.d.ts +3 -0
- package/dist/components/Icon/TryAgainIcon.d.ts +3 -0
- package/dist/components/Icon/VerticalSwapIcon.d.ts +3 -0
- package/dist/components/Icon/WalletIconIcon.d.ts +3 -0
- package/dist/components/Icon/WarningIcon.d.ts +3 -0
- package/dist/components/Icon/common.d.ts +2 -0
- package/dist/components/Icon/index.d.ts +40 -0
- package/dist/components/Icon/types.d.ts +6 -0
- package/dist/components/LiquiditySourceList/LiquiditySource.stories.d.ts +5 -0
- package/dist/components/LiquiditySourceList/LiquiditySourceList.d.ts +11 -0
- package/dist/components/LiquiditySourceList/index.d.ts +1 -0
- package/dist/components/LiquiditySourceList/mockData.d.ts +2 -0
- package/dist/components/LiquiditySourcesSelector/LiquiditySourcesSelector.d.ts +13 -0
- package/dist/components/LiquiditySourcesSelector/LiquiditySourcesSelector.stories.d.ts +5 -0
- package/dist/components/LiquiditySourcesSelector/index.d.ts +1 -0
- package/dist/components/Modal/Modal.d.ts +12 -0
- package/dist/components/Modal/Modal.stories.d.ts +5 -0
- package/dist/components/Modal/index.d.ts +1 -0
- package/dist/components/Radio/Radio.d.ts +13 -0
- package/dist/components/Radio/Radio.stories.d.ts +5 -0
- package/dist/components/Radio/index.d.ts +1 -0
- package/dist/components/SecondaryPage/SecondaryPage.d.ts +16 -0
- package/dist/components/SecondaryPage/SecondaryPage.stories.d.ts +2 -0
- package/dist/components/SecondaryPage/index.d.ts +1 -0
- package/dist/components/SelectableWalletList/SelectableWalletList.d.ts +7 -0
- package/dist/components/SelectableWalletList/SelectableWalletList.stories.d.ts +5 -0
- package/dist/components/SelectableWalletList/index.d.ts +1 -0
- package/dist/components/SelectableWalletList/mock.d.ts +2 -0
- package/dist/components/Settings/Settings.d.ts +23 -0
- package/dist/components/Settings/Settings.stories.d.ts +5 -0
- package/dist/components/Settings/index.d.ts +1 -0
- package/dist/components/Skeleton/Skeleton.d.ts +6 -0
- package/dist/components/Skeleton/Skeleton.stories.d.ts +5 -0
- package/dist/components/Skeleton/index.d.ts +1 -0
- package/dist/components/Spacer/Spacer.d.ts +6 -0
- package/dist/components/Spacer/Spacer.stories.d.ts +5 -0
- package/dist/components/Spacer/index.d.ts +1 -0
- package/dist/components/Spinner/Spinner.d.ts +6 -0
- package/dist/components/Spinner/Spinner.stories.d.ts +5 -0
- package/dist/components/Spinner/index.d.ts +1 -0
- package/dist/components/StatusDrawer/StatusDrawer.d.ts +11 -0
- package/dist/components/StatusDrawer/StatusDrawer.stories.d.ts +5 -0
- package/dist/components/StatusDrawer/index.d.ts +1 -0
- package/dist/components/StepDetail/StepDetail.d.ts +10 -0
- package/dist/components/StepDetail/StepDetail.stories.d.ts +5 -0
- package/dist/components/StepDetail/index.d.ts +1 -0
- package/dist/components/SwapContainer/SwapContainer.d.ts +7 -0
- package/dist/components/SwapContainer/SwapContainer.stories.d.ts +5 -0
- package/dist/components/SwapContainer/index.d.ts +1 -0
- package/dist/components/SwapDetail/SwapDetail.d.ts +8 -0
- package/dist/components/SwapDetail/SwapDetail.stories.d.ts +5 -0
- package/dist/components/SwapDetail/Token.d.ts +16 -0
- package/dist/components/SwapDetail/index.d.ts +1 -0
- package/dist/components/SwapDetail/mock.d.ts +2 -0
- package/dist/components/Switch/Switch.d.ts +6 -0
- package/dist/components/Switch/Switch.stories.d.ts +5 -0
- package/dist/components/Switch/index.d.ts +1 -0
- package/dist/components/TextField/TextField.d.ts +10 -0
- package/dist/components/TextField/TextField.stories.d.ts +7 -0
- package/dist/components/TextField/index.d.ts +1 -0
- package/dist/components/TokenList/TokenItem.d.ts +11 -0
- package/dist/components/TokenList/TokenList.d.ts +17 -0
- package/dist/components/TokenList/TokenList.stories.d.ts +5 -0
- package/dist/components/TokenList/index.d.ts +1 -0
- package/dist/components/TokenList/mockData.d.ts +2 -0
- package/dist/components/TokenSelector/TokenSelector.d.ts +16 -0
- package/dist/components/TokenSelector/TokenSelector.stories.d.ts +5 -0
- package/dist/components/TokenSelector/index.d.ts +1 -0
- package/dist/components/Tooltip/Tooltip.d.ts +7 -0
- package/dist/components/Tooltip/Tooltip.stories.d.ts +5 -0
- package/dist/components/Tooltip/index.d.ts +1 -0
- package/dist/components/Typography/Typography.d.ts +18 -0
- package/dist/components/Typography/Typography.stories.d.ts +5 -0
- package/dist/components/Typography/index.d.ts +1 -0
- package/dist/components/VirtualizedList/VirtualizedList.d.ts +17 -0
- package/dist/components/Wallet/State.d.ts +7 -0
- package/dist/components/Wallet/Wallet.d.ts +7 -0
- package/dist/components/Wallet/Wallet.stories.d.ts +5 -0
- package/dist/components/Wallet/index.d.ts +1 -0
- package/dist/components/common/FilledCircle.d.ts +1 -0
- package/dist/components/common/index.d.ts +1 -0
- package/dist/components/index.d.ts +31 -0
- package/dist/containers/ConfirmSwap/ConfirmSwap.d.ts +20 -0
- package/dist/containers/ConfirmSwap/ConfirmSwap.stories.d.ts +6 -0
- package/dist/containers/ConfirmSwap/index.d.ts +1 -0
- package/dist/containers/ConfirmSwap/mock.d.ts +5 -0
- package/dist/containers/History/History.d.ts +13 -0
- package/dist/containers/History/History.stories.d.ts +5 -0
- package/dist/containers/History/index.d.ts +1 -0
- package/dist/containers/History/mock.d.ts +2 -0
- package/dist/containers/History/types.d.ts +39 -0
- package/dist/containers/SwapHistory/SwapHistory.d.ts +24 -0
- package/dist/containers/SwapHistory/SwapHistory.stories.d.ts +5 -0
- package/dist/containers/SwapHistory/SwapMessages.d.ts +17 -0
- package/dist/containers/SwapHistory/index.d.ts +1 -0
- package/dist/containers/SwapHistory/mock.d.ts +2 -0
- package/dist/containers/index.d.ts +3 -0
- package/dist/helper/index.d.ts +2 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +8 -0
- package/dist/theme.d.ts +8 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/meta.d.ts +23 -0
- package/dist/types/swaps.d.ts +29 -0
- package/dist/types/wallet.d.ts +23 -0
- package/dist/ui.cjs.development.js +4956 -0
- package/dist/ui.cjs.development.js.map +1 -0
- package/dist/ui.cjs.production.min.js +2 -0
- package/dist/ui.cjs.production.min.js.map +1 -0
- package/dist/ui.esm.js +4870 -0
- package/dist/ui.esm.js.map +1 -0
- package/package.json +88 -0
- package/src/components/Alert/Alert.stories.tsx +22 -0
- package/src/components/Alert/Alert.tsx +102 -0
- package/src/components/Alert/LoadingFailedAlert.tsx +11 -0
- package/src/components/Alert/NotFoundAlert.tsx +19 -0
- package/src/components/Alert/index.ts +2 -0
- package/src/components/BestRoute/BestRoute.stories.tsx +31 -0
- package/src/components/BestRoute/BestRoute.tsx +232 -0
- package/src/components/BestRoute/index.ts +1 -0
- package/src/components/BestRoute/mock.ts +554 -0
- package/src/components/BlockchainSelector/BlockchainSelector.stories.tsx +25 -0
- package/src/components/BlockchainSelector/BlockchainSelector.tsx +93 -0
- package/src/components/BlockchainSelector/index.ts +1 -0
- package/src/components/BlockchainsList/BlockchainsList.stories.tsx +25 -0
- package/src/components/BlockchainsList/BlockchainsList.tsx +70 -0
- package/src/components/BlockchainsList/index.ts +1 -0
- package/src/components/BlockchainsList/mockData.ts +2972 -0
- package/src/components/Button/Button.stories.tsx +59 -0
- package/src/components/Button/Button.tsx +421 -0
- package/src/components/Button/index.ts +1 -0
- package/src/components/Checkbox/Checkbox.stories.tsx +22 -0
- package/src/components/Checkbox/Checkbox.tsx +56 -0
- package/src/components/Checkbox/index.ts +1 -0
- package/src/components/Chip/Chip.stories.tsx +37 -0
- package/src/components/Chip/Chip.tsx +48 -0
- package/src/components/Chip/index.ts +1 -0
- package/src/components/ColorPicker/ColorPicker.stories.tsx +36 -0
- package/src/components/ColorPicker/ColorPicker.tsx +85 -0
- package/src/components/ColorPicker/index.ts +1 -0
- package/src/components/ConnectWalletsModal/ConnectWallets.stories.tsx +13 -0
- package/src/components/ConnectWalletsModal/ConnectWalletsModal.tsx +42 -0
- package/src/components/ConnectWalletsModal/index.ts +1 -0
- package/src/components/ConnectWalletsModal/mockData.ts +134 -0
- package/src/components/Divider/Divider.tsx +41 -0
- package/src/components/Divider/index.ts +1 -0
- package/src/components/Drawer/Drawer.stories.tsx +86 -0
- package/src/components/Drawer/Drawer.tsx +124 -0
- package/src/components/Drawer/index.ts +1 -0
- package/src/components/Header/Header.tsx +39 -0
- package/src/components/Header/index.ts +1 -0
- package/src/components/Icon/AddCircleIcon.tsx +31 -0
- package/src/components/Icon/AddIcon.tsx +31 -0
- package/src/components/Icon/AddWalletIcon.tsx +50 -0
- package/src/components/Icon/AngleDownIcon.tsx +30 -0
- package/src/components/Icon/AngleLeftIcon.tsx +33 -0
- package/src/components/Icon/AngleRightIcon.tsx +32 -0
- package/src/components/Icon/AngleUpIcon.tsx +32 -0
- package/src/components/Icon/ArrowRightIcon.tsx +31 -0
- package/src/components/Icon/BagIcon.tsx +39 -0
- package/src/components/Icon/BanIcon.tsx +32 -0
- package/src/components/Icon/CheckCircleIcon.tsx +39 -0
- package/src/components/Icon/CheckIcon.tsx +30 -0
- package/src/components/Icon/CheckSquareIcon.tsx +37 -0
- package/src/components/Icon/CheckWalletIcon.tsx +45 -0
- package/src/components/Icon/ChevronRightIcon.tsx +29 -0
- package/src/components/Icon/CloseIcon.tsx +9 -0
- package/src/components/Icon/CopyIcon.tsx +59 -0
- package/src/components/Icon/DeleteCircleIcon.tsx +31 -0
- package/src/components/Icon/DeleteWalletIcon.tsx +50 -0
- package/src/components/Icon/DisconnectIcon.tsx +31 -0
- package/src/components/Icon/DownloadIcon.tsx +37 -0
- package/src/components/Icon/GasIcon.tsx +37 -0
- package/src/components/Icon/HistoryIcon.tsx +34 -0
- package/src/components/Icon/HorizontalSwapIcon.tsx +38 -0
- package/src/components/Icon/Icons.stories.tsx +44 -0
- package/src/components/Icon/InfoCircleIcon.tsx +39 -0
- package/src/components/Icon/MinusCircleIcon.tsx +31 -0
- package/src/components/Icon/RetryIcon.tsx +30 -0
- package/src/components/Icon/RetryLeftIcon.tsx +31 -0
- package/src/components/Icon/RetryRightIcon.tsx +31 -0
- package/src/components/Icon/SearchIcon.tsx +31 -0
- package/src/components/Icon/SearchMinusIcon.tsx +31 -0
- package/src/components/Icon/SettingIcon.tsx +31 -0
- package/src/components/Icon/SignatureIcon.tsx +32 -0
- package/src/components/Icon/SwapWalletIcon.tsx +50 -0
- package/src/components/Icon/TimeIcon.tsx +29 -0
- package/src/components/Icon/TrashIcon.tsx +31 -0
- package/src/components/Icon/TryAgainIcon.tsx +31 -0
- package/src/components/Icon/VerticalSwapIcon.tsx +38 -0
- package/src/components/Icon/WalletIconIcon.tsx +40 -0
- package/src/components/Icon/WarningIcon.tsx +37 -0
- package/src/components/Icon/common.ts +69 -0
- package/src/components/Icon/index.ts +48 -0
- package/src/components/Icon/types.tsx +45 -0
- package/src/components/LiquiditySourceList/LiquiditySource.stories.tsx +13 -0
- package/src/components/LiquiditySourceList/LiquiditySourceList.tsx +195 -0
- package/src/components/LiquiditySourceList/index.ts +1 -0
- package/src/components/LiquiditySourceList/mockData.ts +316 -0
- package/src/components/LiquiditySourcesSelector/LiquiditySourcesSelector.stories.tsx +16 -0
- package/src/components/LiquiditySourcesSelector/LiquiditySourcesSelector.tsx +61 -0
- package/src/components/LiquiditySourcesSelector/index.ts +1 -0
- package/src/components/Modal/Modal.stories.tsx +22 -0
- package/src/components/Modal/Modal.tsx +93 -0
- package/src/components/Modal/index.ts +1 -0
- package/src/components/Radio/Radio.stories.tsx +23 -0
- package/src/components/Radio/Radio.tsx +100 -0
- package/src/components/Radio/index.ts +1 -0
- package/src/components/SecondaryPage/SecondaryPage.stories.tsx +7 -0
- package/src/components/SecondaryPage/SecondaryPage.tsx +68 -0
- package/src/components/SecondaryPage/index.ts +1 -0
- package/src/components/SelectableWalletList/SelectableWalletList.stories.tsx +14 -0
- package/src/components/SelectableWalletList/SelectableWalletList.tsx +118 -0
- package/src/components/SelectableWalletList/index.ts +1 -0
- package/src/components/SelectableWalletList/mock.ts +13 -0
- package/src/components/Settings/Settings.stories.tsx +34 -0
- package/src/components/Settings/Settings.tsx +208 -0
- package/src/components/Settings/index.ts +1 -0
- package/src/components/Skeleton/Skeleton.stories.tsx +24 -0
- package/src/components/Skeleton/Skeleton.tsx +66 -0
- package/src/components/Skeleton/index.ts +1 -0
- package/src/components/Spacer/Spacer.stories.tsx +31 -0
- package/src/components/Spacer/Spacer.tsx +128 -0
- package/src/components/Spacer/index.ts +1 -0
- package/src/components/Spinner/Spinner.stories.tsx +25 -0
- package/src/components/Spinner/Spinner.tsx +61 -0
- package/src/components/Spinner/index.ts +1 -0
- package/src/components/StatusDrawer/StatusDrawer.stories.tsx +38 -0
- package/src/components/StatusDrawer/StatusDrawer.tsx +82 -0
- package/src/components/StatusDrawer/index.ts +1 -0
- package/src/components/StepDetail/StepDetail.stories.tsx +37 -0
- package/src/components/StepDetail/StepDetail.tsx +109 -0
- package/src/components/StepDetail/index.ts +1 -0
- package/src/components/SwapContainer/SwapContainer.stories.tsx +13 -0
- package/src/components/SwapContainer/SwapContainer.tsx +43 -0
- package/src/components/SwapContainer/index.ts +1 -0
- package/src/components/SwapDetail/SwapDetail.stories.tsx +19 -0
- package/src/components/SwapDetail/SwapDetail.tsx +112 -0
- package/src/components/SwapDetail/Token.tsx +68 -0
- package/src/components/SwapDetail/index.ts +1 -0
- package/src/components/SwapDetail/mock.ts +276 -0
- package/src/components/Switch/Switch.stories.tsx +9 -0
- package/src/components/Switch/Switch.tsx +55 -0
- package/src/components/Switch/index.ts +1 -0
- package/src/components/TextField/TextField.stories.tsx +31 -0
- package/src/components/TextField/TextField.tsx +141 -0
- package/src/components/TextField/index.ts +1 -0
- package/src/components/TokenList/TokenItem.tsx +73 -0
- package/src/components/TokenList/TokenList.stories.tsx +18 -0
- package/src/components/TokenList/TokenList.tsx +95 -0
- package/src/components/TokenList/index.ts +1 -0
- package/src/components/TokenList/mockData.ts +1721 -0
- package/src/components/TokenSelector/TokenSelector.stories.tsx +18 -0
- package/src/components/TokenSelector/TokenSelector.tsx +95 -0
- package/src/components/TokenSelector/index.ts +1 -0
- package/src/components/Tooltip/Tooltip.stories.tsx +52 -0
- package/src/components/Tooltip/Tooltip.tsx +116 -0
- package/src/components/Tooltip/index.ts +1 -0
- package/src/components/Typography/Typography.stories.tsx +72 -0
- package/src/components/Typography/Typography.tsx +216 -0
- package/src/components/Typography/index.ts +1 -0
- package/src/components/VirtualizedList/VirtualizedList.tsx +62 -0
- package/src/components/Wallet/State.tsx +34 -0
- package/src/components/Wallet/Wallet.stories.tsx +36 -0
- package/src/components/Wallet/Wallet.tsx +69 -0
- package/src/components/Wallet/index.ts +1 -0
- package/src/components/common/FilledCircle.tsx +8 -0
- package/src/components/common/index.ts +1 -0
- package/src/components/index.ts +31 -0
- package/src/containers/ConfirmSwap/ConfirmSwap.stories.tsx +22 -0
- package/src/containers/ConfirmSwap/ConfirmSwap.tsx +180 -0
- package/src/containers/ConfirmSwap/index.ts +1 -0
- package/src/containers/ConfirmSwap/mock.ts +223 -0
- package/src/containers/History/History.stories.tsx +14 -0
- package/src/containers/History/History.tsx +115 -0
- package/src/containers/History/index.ts +1 -0
- package/src/containers/History/mock.ts +826 -0
- package/src/containers/History/types.tsx +47 -0
- package/src/containers/SwapHistory/SwapHistory.stories.tsx +13 -0
- package/src/containers/SwapHistory/SwapHistory.tsx +442 -0
- package/src/containers/SwapHistory/SwapMessages.tsx +116 -0
- package/src/containers/SwapHistory/index.ts +1 -0
- package/src/containers/SwapHistory/mock.ts +276 -0
- package/src/containers/index.ts +3 -0
- package/src/helper/index.ts +16 -0
- package/src/index.ts +4 -0
- package/src/theme.ts +163 -0
- package/src/types/index.ts +3 -0
- package/src/types/meta.ts +22 -0
- package/src/types/swaps.ts +44 -0
- package/src/types/wallet.ts +30 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TokenWithAmount } from '../TokenList/TokenList';
|
|
3
|
+
import { LoadingStatus } from '../../types/meta';
|
|
4
|
+
export declare const LoaderContainer: any;
|
|
5
|
+
export interface PropTypes {
|
|
6
|
+
list: TokenWithAmount[];
|
|
7
|
+
type?: 'Source' | 'Destination';
|
|
8
|
+
selected: TokenWithAmount | null;
|
|
9
|
+
onChange: (token: TokenWithAmount) => void;
|
|
10
|
+
hasHeader?: boolean;
|
|
11
|
+
multiSelect?: boolean;
|
|
12
|
+
onBack?: () => void;
|
|
13
|
+
selectedList?: TokenWithAmount[] | 'all';
|
|
14
|
+
loadingStatus: LoadingStatus;
|
|
15
|
+
}
|
|
16
|
+
export declare function TokenSelector(props: PropTypes): JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { PropTypes } from './TokenSelector';
|
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TokenSelector } from './TokenSelector';
|
|
@@ -0,0 +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;
|
|
@@ -0,0 +1,5 @@
|
|
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Tooltip } from './Tooltip';
|
|
@@ -0,0 +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' | '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
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Typography } from './Typography';
|
|
@@ -0,0 +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 {};
|
|
@@ -0,0 +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;
|
|
@@ -0,0 +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;
|
|
@@ -0,0 +1,5 @@
|
|
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Wallet';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const FilledCircle: any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { FilledCircle } from './FilledCircle';
|
|
@@ -0,0 +1,31 @@
|
|
|
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';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React, { PropsWithChildren, ReactNode } from 'react';
|
|
2
|
+
import { SelectableWallet } from '../../types';
|
|
3
|
+
export interface PropTypes {
|
|
4
|
+
onBack: () => void;
|
|
5
|
+
onConfirm?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
6
|
+
confirmDisabled?: boolean;
|
|
7
|
+
loading?: boolean;
|
|
8
|
+
requiredWallets: string[];
|
|
9
|
+
selectableWallets: SelectableWallet[];
|
|
10
|
+
onChange: (w: SelectableWallet) => void;
|
|
11
|
+
isExperimentalChain?: (wallet: string) => boolean;
|
|
12
|
+
handleConnectChain?: (wallet: string) => void;
|
|
13
|
+
previewInputs?: ReactNode;
|
|
14
|
+
previewRoutes?: ReactNode;
|
|
15
|
+
confirmButtonTitle: string;
|
|
16
|
+
errors?: ReactNode[];
|
|
17
|
+
warnings?: ReactNode[];
|
|
18
|
+
extraMessages?: ReactNode;
|
|
19
|
+
}
|
|
20
|
+
export declare function ConfirmSwap(props: PropsWithChildren<PropTypes>): JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ConfirmSwap } from './ConfirmSwap';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { PendingSwap } from './types';
|
|
3
|
+
export declare type GroupBy = (list: PendingSwap[]) => {
|
|
4
|
+
title: string;
|
|
5
|
+
swaps: PendingSwap[];
|
|
6
|
+
}[];
|
|
7
|
+
export interface PropTypes {
|
|
8
|
+
list: PendingSwap[];
|
|
9
|
+
onBack: () => void;
|
|
10
|
+
onSwapClick: (requestId: string) => void;
|
|
11
|
+
groupBy?: GroupBy;
|
|
12
|
+
}
|
|
13
|
+
export declare function History({ list, onBack, onSwapClick, groupBy, }: PropsWithChildren<PropTypes>): JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { History, GroupBy } from './History';
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { CosmosTransaction, EvmTransaction, SolanaTransaction, SwapExplorerUrl, SwapperStatusStep, Transfer } from 'rango-sdk';
|
|
2
|
+
import { PendingSwapNetworkStatus, StepStatus } from '../../types/swaps';
|
|
3
|
+
export { PendingSwap } from '@rango-dev/queue-manager-rango-preset';
|
|
4
|
+
export declare type PendingSwapStep = {
|
|
5
|
+
id: number;
|
|
6
|
+
fromBlockchain: string;
|
|
7
|
+
fromSymbol: string;
|
|
8
|
+
fromSymbolAddress: string | null;
|
|
9
|
+
fromDecimals: number;
|
|
10
|
+
fromAmountPrecision: string | null;
|
|
11
|
+
fromAmountMinValue: string | null;
|
|
12
|
+
fromAmountMaxValue: string | null;
|
|
13
|
+
fromLogo: string;
|
|
14
|
+
fromBlockchainLogo: string;
|
|
15
|
+
toBlockchainLogo: string;
|
|
16
|
+
toBlockchain: string;
|
|
17
|
+
toSymbol: string;
|
|
18
|
+
toSymbolAddress: string | null;
|
|
19
|
+
toDecimals: number;
|
|
20
|
+
toLogo: string;
|
|
21
|
+
swapperId: string;
|
|
22
|
+
swapperLogo: string;
|
|
23
|
+
swapperType: string;
|
|
24
|
+
feeInUsd: string;
|
|
25
|
+
expectedOutputAmountHumanReadable: string | null;
|
|
26
|
+
startTransactionTime: number;
|
|
27
|
+
outputAmount: string;
|
|
28
|
+
status: StepStatus;
|
|
29
|
+
networkStatus: PendingSwapNetworkStatus | null;
|
|
30
|
+
executedTransactionId: string | null;
|
|
31
|
+
explorerUrl: SwapExplorerUrl[] | null;
|
|
32
|
+
evmApprovalTransaction: EvmTransaction | null;
|
|
33
|
+
evmTransaction: EvmTransaction | null;
|
|
34
|
+
cosmosTransaction: CosmosTransaction | null;
|
|
35
|
+
transferTransaction: Transfer | null;
|
|
36
|
+
solanaTransaction: SolanaTransaction | null;
|
|
37
|
+
diagnosisUrl: string | null;
|
|
38
|
+
internalSteps: SwapperStatusStep[] | null;
|
|
39
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PendingSwap } from '../History/types';
|
|
3
|
+
import { PropTypes as SwapMessagesPropTypes } from './SwapMessages';
|
|
4
|
+
export declare const SwapperContainer: any;
|
|
5
|
+
export declare const BodyError: any;
|
|
6
|
+
export declare const ErrorMsg: any;
|
|
7
|
+
export declare const Fee: any;
|
|
8
|
+
export declare const SwapperLogo: any;
|
|
9
|
+
export declare const RelativeContainer: any;
|
|
10
|
+
export declare const Footer: any;
|
|
11
|
+
export declare const Dot: any;
|
|
12
|
+
export declare const ArrowDown: any;
|
|
13
|
+
export declare const Line: any;
|
|
14
|
+
export declare type PropTypes = {
|
|
15
|
+
pendingSwap: PendingSwap;
|
|
16
|
+
onCopy: (requestId: string) => void;
|
|
17
|
+
onBack: () => void;
|
|
18
|
+
isCopied: boolean;
|
|
19
|
+
onCancel: (requestId: string) => void;
|
|
20
|
+
onRetry?: () => void;
|
|
21
|
+
date: string;
|
|
22
|
+
previewInputs?: React.ReactNode;
|
|
23
|
+
} & SwapMessagesPropTypes;
|
|
24
|
+
export declare function SwapHistory(props: PropTypes): JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { PropTypes } from './SwapHistory';
|
|
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;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare type PropTypes = {
|
|
3
|
+
currentStepBlockchain: string;
|
|
4
|
+
switchNetwork?: () => Promise<any>;
|
|
5
|
+
shortMessage: string;
|
|
6
|
+
detailedMessage: {
|
|
7
|
+
content: string;
|
|
8
|
+
long: boolean;
|
|
9
|
+
};
|
|
10
|
+
type?: 'success' | 'error' | 'warning' | 'info';
|
|
11
|
+
lastConvertedTokenInFailedSwap?: {
|
|
12
|
+
symbol: string;
|
|
13
|
+
blockchain: string;
|
|
14
|
+
outputAmount: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export declare const SwapMessages: React.FC<PropTypes>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SwapHistory } from './SwapHistory';
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
package/dist/theme.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const styled: any, css: any, createTheme: any, keyframes: any, globalCss: <Styles extends {
|
|
2
|
+
[K: string]: any;
|
|
3
|
+
}>(...styles: {
|
|
4
|
+
'@import'?: unknown;
|
|
5
|
+
'@font-face'?: unknown;
|
|
6
|
+
} & { [K in keyof Styles]: K extends "@import" ? string | string[] : K extends "@font-face" ? import("@stitches/react/types/css").AtRule.FontFace | import("@stitches/react/types/css").AtRule.FontFace[] : K extends any ? any : any; }) => any;
|
|
7
|
+
export declare const lightTheme: any;
|
|
8
|
+
export declare const darkTheme: any;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare type TokenMeta = {
|
|
2
|
+
blockchain: string;
|
|
3
|
+
symbol: string;
|
|
4
|
+
image: string;
|
|
5
|
+
address: string | null;
|
|
6
|
+
usdPrice: number | null;
|
|
7
|
+
isSecondaryCoin: boolean;
|
|
8
|
+
coinSource: string | null;
|
|
9
|
+
coinSourceUrl: string | null;
|
|
10
|
+
name: string | null;
|
|
11
|
+
decimals: number;
|
|
12
|
+
balance?: {
|
|
13
|
+
amount: string;
|
|
14
|
+
usdPrice: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export interface LiquiditySource {
|
|
18
|
+
title: string;
|
|
19
|
+
logo: string;
|
|
20
|
+
type: 'BRIDGE' | 'AGGREGATOR' | 'DEX';
|
|
21
|
+
selected: boolean;
|
|
22
|
+
}
|
|
23
|
+
export declare type LoadingStatus = 'loading' | 'success' | 'failed';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { BestRouteResponse, BlockchainValidationStatus, SimulationResult, SwapResult, WalletRequiredAssets } from 'rango-sdk';
|
|
2
|
+
export declare type SwapStatus = 'running' | 'failed' | 'success';
|
|
3
|
+
export declare type MessageSeverity = 'error' | 'warning' | 'info' | 'success';
|
|
4
|
+
export declare type StepStatus = 'created' | 'running' | 'failed' | 'success' | 'waitingForApproval' | 'approved';
|
|
5
|
+
export declare enum PendingSwapNetworkStatus {
|
|
6
|
+
WaitingForConnectingWallet = "waitingForConnectingWallet",
|
|
7
|
+
WaitingForQueue = "waitingForQueue",
|
|
8
|
+
WaitingForNetworkChange = "waitingForNetworkChange",
|
|
9
|
+
NetworkChanged = "networkChanged"
|
|
10
|
+
}
|
|
11
|
+
export declare type WalletTypeAndAddress = {
|
|
12
|
+
walletType: string;
|
|
13
|
+
address: string;
|
|
14
|
+
};
|
|
15
|
+
export declare type SwapSavedSettings = {
|
|
16
|
+
slippage: string;
|
|
17
|
+
disabledSwappersIds: string[];
|
|
18
|
+
disabledSwappersGroups: string[];
|
|
19
|
+
};
|
|
20
|
+
export declare type SimulationAssetAndAmount = WalletRequiredAssets;
|
|
21
|
+
export declare type SimulationValidationStatus = BlockchainValidationStatus;
|
|
22
|
+
export declare type BestRouteType = BestRouteResponse;
|
|
23
|
+
export declare type BestRouteWithFee = Omit<BestRouteResponse, 'result'> & {
|
|
24
|
+
result: Omit<SimulationResult, 'swaps'> & {
|
|
25
|
+
swaps: (SwapResult & {
|
|
26
|
+
feeInUsd?: string;
|
|
27
|
+
})[];
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { InstallObjects, WalletType } from '@rango-dev/wallets-shared';
|
|
2
|
+
export declare enum WalletState {
|
|
3
|
+
NOT_INSTALLED = "not installed",
|
|
4
|
+
DISCONNECTED = "disconnected",
|
|
5
|
+
CONNECTING = "connecting",
|
|
6
|
+
CONNECTED = "connected"
|
|
7
|
+
}
|
|
8
|
+
export declare type WalletInfo = {
|
|
9
|
+
state: WalletState.CONNECTED | WalletState.DISCONNECTED | WalletState.CONNECTING | WalletState.NOT_INSTALLED;
|
|
10
|
+
installLink: InstallObjects | string;
|
|
11
|
+
name: string;
|
|
12
|
+
image: string;
|
|
13
|
+
type: WalletType;
|
|
14
|
+
showOnMobile: boolean;
|
|
15
|
+
};
|
|
16
|
+
export interface SelectableWallet {
|
|
17
|
+
chain: string;
|
|
18
|
+
walletType: WalletType;
|
|
19
|
+
address: string;
|
|
20
|
+
image: string;
|
|
21
|
+
selected: boolean;
|
|
22
|
+
name: string;
|
|
23
|
+
}
|