@rango-dev/ui 0.33.1-next.0 → 0.33.1-next.2
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/dist/index.js +1 -1
- package/dist/index.js.map +4 -4
- package/dist/widget/ui/src/components/Alert/Alert.d.ts +2 -2
- package/dist/widget/ui/src/components/Alert/Alert.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Alert/Alert.helpers.d.ts +3 -3
- package/dist/widget/ui/src/components/Alert/Alert.helpers.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Alert/Alert.icon.d.ts +2 -2
- package/dist/widget/ui/src/components/Alert/Alert.icon.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Alert/Alert.types.d.ts +1 -1
- package/dist/widget/ui/src/components/Alert/Alert.types.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Alert/index.d.ts +1 -0
- package/dist/widget/ui/src/components/Alert/index.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Button/Button.types.d.ts +1 -1
- package/dist/widget/ui/src/components/Button/Button.types.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Button/index.d.ts +1 -0
- package/dist/widget/ui/src/components/Button/index.d.ts.map +1 -1
- package/dist/widget/ui/src/components/ChainToken/ChainToken.constants.d.ts +2 -2
- package/dist/widget/ui/src/components/ChainToken/ChainToken.constants.d.ts.map +1 -1
- package/dist/widget/ui/src/components/ChainToken/ChainToken.d.ts +2 -2
- package/dist/widget/ui/src/components/ChainToken/ChainToken.d.ts.map +1 -1
- package/dist/widget/ui/src/components/ChainToken/ChainToken.types.d.ts +1 -1
- package/dist/widget/ui/src/components/ChainToken/ChainToken.types.d.ts.map +1 -1
- package/dist/widget/ui/src/components/ChainToken/index.d.ts +1 -0
- package/dist/widget/ui/src/components/ChainToken/index.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Checkbox/Checkbox.d.ts +2 -2
- package/dist/widget/ui/src/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Checkbox/Checkbox.types.d.ts +1 -1
- package/dist/widget/ui/src/components/Checkbox/Checkbox.types.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Checkbox/index.d.ts +1 -0
- package/dist/widget/ui/src/components/Checkbox/index.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Chip/Chip.d.ts +2 -2
- package/dist/widget/ui/src/components/Chip/Chip.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Chip/Chip.types.d.ts +1 -1
- package/dist/widget/ui/src/components/Chip/Chip.types.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Chip/index.d.ts +1 -0
- package/dist/widget/ui/src/components/Chip/index.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Collapsible/Collapsible.d.ts +2 -2
- package/dist/widget/ui/src/components/Collapsible/Collapsible.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Collapsible/Collapsible.types.d.ts +1 -1
- package/dist/widget/ui/src/components/Collapsible/Collapsible.types.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Collapsible/index.d.ts +1 -0
- package/dist/widget/ui/src/components/Collapsible/index.d.ts.map +1 -1
- package/dist/widget/ui/src/components/FullExpandedQuote/FullExpandedQuote.types.d.ts +7 -7
- package/dist/widget/ui/src/components/FullExpandedQuote/FullExpandedQuote.types.d.ts.map +1 -1
- package/dist/widget/ui/src/components/IconButton/IconButton.d.ts +2 -2
- package/dist/widget/ui/src/components/IconButton/IconButton.d.ts.map +1 -1
- package/dist/widget/ui/src/components/IconButton/IconButton.types.d.ts +2 -2
- package/dist/widget/ui/src/components/IconButton/IconButton.types.d.ts.map +1 -1
- package/dist/widget/ui/src/components/IconButton/index.d.ts +1 -0
- package/dist/widget/ui/src/components/IconButton/index.d.ts.map +1 -1
- package/dist/widget/ui/src/components/List/List.types.d.ts +2 -2
- package/dist/widget/ui/src/components/List/List.types.d.ts.map +1 -1
- package/dist/widget/ui/src/components/ListItem/ListItem.d.ts +2 -2
- package/dist/widget/ui/src/components/ListItem/ListItem.d.ts.map +1 -1
- package/dist/widget/ui/src/components/ListItem/ListItem.types.d.ts +1 -1
- package/dist/widget/ui/src/components/ListItem/ListItem.types.d.ts.map +1 -1
- package/dist/widget/ui/src/components/ListItem/index.d.ts +1 -1
- package/dist/widget/ui/src/components/ListItem/index.d.ts.map +1 -1
- package/dist/widget/ui/src/components/ListItemButton/ListItemButton.types.d.ts +2 -2
- package/dist/widget/ui/src/components/ListItemButton/ListItemButton.types.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Modal/Modal.d.ts +2 -2
- package/dist/widget/ui/src/components/Modal/Modal.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Modal/Modal.types.d.ts +1 -1
- package/dist/widget/ui/src/components/Modal/Modal.types.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Modal/index.d.ts +1 -1
- package/dist/widget/ui/src/components/Modal/index.d.ts.map +1 -1
- package/dist/widget/ui/src/components/NotFound/NotFound.d.ts +2 -2
- package/dist/widget/ui/src/components/NotFound/NotFound.d.ts.map +1 -1
- package/dist/widget/ui/src/components/NotFound/NotFound.types.d.ts +1 -1
- package/dist/widget/ui/src/components/NotFound/NotFound.types.d.ts.map +1 -1
- package/dist/widget/ui/src/components/NotFound/index.d.ts +1 -0
- package/dist/widget/ui/src/components/NotFound/index.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Popover/Popover.d.ts +2 -2
- package/dist/widget/ui/src/components/Popover/Popover.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Popover/Popover.types.d.ts +1 -1
- package/dist/widget/ui/src/components/Popover/Popover.types.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Popover/index.d.ts +1 -0
- package/dist/widget/ui/src/components/Popover/index.d.ts.map +1 -1
- package/dist/widget/ui/src/components/PriceImpact/PriceImpact.d.ts +2 -2
- package/dist/widget/ui/src/components/PriceImpact/PriceImpact.d.ts.map +1 -1
- package/dist/widget/ui/src/components/PriceImpact/PriceImpact.types.d.ts +2 -2
- package/dist/widget/ui/src/components/PriceImpact/PriceImpact.types.d.ts.map +1 -1
- package/dist/widget/ui/src/components/PriceImpact/index.d.ts +1 -1
- package/dist/widget/ui/src/components/PriceImpact/index.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Radio/Radio.d.ts +2 -2
- package/dist/widget/ui/src/components/Radio/Radio.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Radio/Radio.types.d.ts +1 -1
- package/dist/widget/ui/src/components/Radio/Radio.types.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Radio/index.d.ts +1 -0
- package/dist/widget/ui/src/components/Radio/index.d.ts.map +1 -1
- package/dist/widget/ui/src/components/RadioGroup/RadioGroup.d.ts +2 -2
- package/dist/widget/ui/src/components/RadioGroup/RadioGroup.d.ts.map +1 -1
- package/dist/widget/ui/src/components/RadioGroup/RadioGroup.types.d.ts +4 -4
- package/dist/widget/ui/src/components/RadioGroup/RadioGroup.types.d.ts.map +1 -1
- package/dist/widget/ui/src/components/RadioGroup/index.d.ts +1 -0
- package/dist/widget/ui/src/components/RadioGroup/index.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Select/Select.d.ts +2 -2
- package/dist/widget/ui/src/components/Select/Select.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Select/Select.types.d.ts +1 -1
- package/dist/widget/ui/src/components/Select/Select.types.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Select/index.d.ts +1 -0
- package/dist/widget/ui/src/components/Select/index.d.ts.map +1 -1
- package/dist/widget/ui/src/components/SelectableCategoryList/SelectableCategoryList.d.ts +2 -2
- package/dist/widget/ui/src/components/SelectableCategoryList/SelectableCategoryList.d.ts.map +1 -1
- package/dist/widget/ui/src/components/SelectableCategoryList/SelectableCategoryList.types.d.ts +1 -1
- package/dist/widget/ui/src/components/SelectableCategoryList/SelectableCategoryList.types.d.ts.map +1 -1
- package/dist/widget/ui/src/components/SelectableCategoryList/index.d.ts +1 -0
- package/dist/widget/ui/src/components/SelectableCategoryList/index.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Skeleton/Skeleton.d.ts +2 -2
- package/dist/widget/ui/src/components/Skeleton/Skeleton.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Skeleton/Skeleton.types.d.ts +1 -1
- package/dist/widget/ui/src/components/Skeleton/Skeleton.types.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Skeleton/index.d.ts +1 -0
- package/dist/widget/ui/src/components/Skeleton/index.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Spinner/Spinner.d.ts +2 -2
- package/dist/widget/ui/src/components/Spinner/Spinner.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Spinner/Spinner.types.d.ts +1 -1
- package/dist/widget/ui/src/components/Spinner/Spinner.types.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Spinner/index.d.ts +1 -0
- package/dist/widget/ui/src/components/Spinner/index.d.ts.map +1 -1
- package/dist/widget/ui/src/components/StepDetails/StepDetails.types.d.ts +3 -3
- package/dist/widget/ui/src/components/StepDetails/StepDetails.types.d.ts.map +1 -1
- package/dist/widget/ui/src/components/SwapListItem/SwapListItem.d.ts +2 -2
- package/dist/widget/ui/src/components/SwapListItem/SwapListItem.d.ts.map +1 -1
- package/dist/widget/ui/src/components/SwapListItem/SwapListItem.types.d.ts +1 -1
- package/dist/widget/ui/src/components/SwapListItem/SwapListItem.types.d.ts.map +1 -1
- package/dist/widget/ui/src/components/SwapListItem/index.d.ts +1 -0
- package/dist/widget/ui/src/components/SwapListItem/index.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Switch/Switch.d.ts +2 -2
- package/dist/widget/ui/src/components/Switch/Switch.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Switch/Switch.types.d.ts +1 -1
- package/dist/widget/ui/src/components/Switch/Switch.types.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Switch/index.d.ts +1 -0
- package/dist/widget/ui/src/components/Switch/index.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Tabs/Tabs.d.ts +2 -2
- package/dist/widget/ui/src/components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Tabs/Tabs.types.d.ts +1 -1
- package/dist/widget/ui/src/components/Tabs/Tabs.types.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Tabs/index.d.ts +1 -0
- package/dist/widget/ui/src/components/Tabs/index.d.ts.map +1 -1
- package/dist/widget/ui/src/components/TextField/TextField.d.ts.map +1 -1
- package/dist/widget/ui/src/components/TextField/TextField.types.d.ts +3 -3
- package/dist/widget/ui/src/components/TextField/TextField.types.d.ts.map +1 -1
- package/dist/widget/ui/src/components/TextField/index.d.ts +1 -0
- package/dist/widget/ui/src/components/TextField/index.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Toast/Toast.Provider.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Toast/Toast.d.ts +2 -2
- package/dist/widget/ui/src/components/Toast/Toast.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Toast/Toast.styles.d.ts +0 -162
- package/dist/widget/ui/src/components/Toast/Toast.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Toast/Toast.types.d.ts +1 -1
- package/dist/widget/ui/src/components/Toast/Toast.types.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Toast/index.d.ts +1 -0
- package/dist/widget/ui/src/components/Toast/index.d.ts.map +1 -1
- package/dist/widget/ui/src/components/TokenAmount/TokenAmount.types.d.ts +5 -5
- package/dist/widget/ui/src/components/TokenAmount/TokenAmount.types.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Tooltip/Tooltip.d.ts +2 -2
- package/dist/widget/ui/src/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Tooltip/Tooltip.types.d.ts +1 -1
- package/dist/widget/ui/src/components/Tooltip/Tooltip.types.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Tooltip/index.d.ts +1 -0
- package/dist/widget/ui/src/components/Tooltip/index.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Typography/Typography.d.ts +2 -2
- package/dist/widget/ui/src/components/Typography/Typography.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Typography/Typography.types.d.ts +1 -1
- package/dist/widget/ui/src/components/Typography/Typography.types.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Typography/index.d.ts +1 -1
- package/dist/widget/ui/src/components/Typography/index.d.ts.map +1 -1
- package/dist/widget/ui/src/components/index.d.ts +1 -1
- package/dist/widget/ui/src/components/index.d.ts.map +1 -1
- package/dist/widget/ui/src/containers/ConnectWalletsModal/ConnectWalletsModal.d.ts +2 -10
- package/dist/widget/ui/src/containers/ConnectWalletsModal/ConnectWalletsModal.d.ts.map +1 -1
- package/dist/widget/ui/src/{components/Tabs/Tabs.stories.d.ts → containers/ConnectWalletsModal/ConnectWalletsModal.styles.d.ts} +2 -7
- package/dist/widget/ui/src/containers/ConnectWalletsModal/ConnectWalletsModal.styles.d.ts.map +1 -0
- package/dist/widget/ui/src/containers/ConnectWalletsModal/ConnectWalletsModal.types.d.ts +10 -0
- package/dist/widget/ui/src/containers/ConnectWalletsModal/ConnectWalletsModal.types.d.ts.map +1 -0
- package/dist/widget/ui/src/containers/ConnectWalletsModal/index.d.ts +1 -0
- package/dist/widget/ui/src/containers/ConnectWalletsModal/index.d.ts.map +1 -1
- package/dist/widget/ui/src/containers/ConnectWalletsModal/mockData.d.ts.map +1 -1
- package/dist/widget/ui/src/containers/SwapInput/SwapInput.d.ts +2 -2
- package/dist/widget/ui/src/containers/SwapInput/SwapInput.d.ts.map +1 -1
- package/dist/widget/ui/src/containers/SwapInput/SwapInput.types.d.ts +1 -1
- package/dist/widget/ui/src/containers/SwapInput/SwapInput.types.d.ts.map +1 -1
- package/dist/widget/ui/src/containers/SwapInput/index.d.ts +1 -0
- package/dist/widget/ui/src/containers/SwapInput/index.d.ts.map +1 -1
- package/package.json +3 -13
- package/src/components/Alert/Alert.helpers.ts +3 -3
- package/src/components/Alert/Alert.icon.tsx +2 -2
- package/src/components/Alert/Alert.tsx +2 -2
- package/src/components/Alert/Alert.types.ts +1 -1
- package/src/components/Alert/index.ts +1 -0
- package/src/components/Button/Button.tsx +2 -2
- package/src/components/Button/Button.types.tsx +1 -1
- package/src/components/Button/index.ts +1 -0
- package/src/components/ChainToken/ChainToken.constants.ts +2 -2
- package/src/components/ChainToken/ChainToken.tsx +2 -2
- package/src/components/ChainToken/ChainToken.types.ts +1 -1
- package/src/components/ChainToken/index.ts +1 -0
- package/src/components/Checkbox/Checkbox.tsx +2 -2
- package/src/components/Checkbox/Checkbox.types.ts +2 -1
- package/src/components/Checkbox/index.ts +1 -0
- package/src/components/Chip/Chip.tsx +2 -2
- package/src/components/Chip/Chip.types.ts +1 -1
- package/src/components/Chip/index.ts +1 -0
- package/src/components/Collapsible/Collapsible.tsx +2 -2
- package/src/components/Collapsible/Collapsible.types.ts +1 -1
- package/src/components/Collapsible/index.ts +1 -0
- package/src/components/FullExpandedQuote/FullExpandedQuote.types.ts +7 -7
- package/src/components/IconButton/IconButton.tsx +2 -2
- package/src/components/IconButton/IconButton.types.ts +2 -2
- package/src/components/IconButton/index.ts +1 -0
- package/src/components/List/List.types.ts +2 -2
- package/src/components/ListItem/ListItem.tsx +2 -2
- package/src/components/ListItem/ListItem.types.ts +1 -1
- package/src/components/ListItem/index.ts +1 -1
- package/src/components/ListItemButton/ListItemButton.types.ts +2 -2
- package/src/components/Modal/Modal.tsx +2 -2
- package/src/components/Modal/Modal.types.ts +1 -1
- package/src/components/Modal/index.ts +1 -1
- package/src/components/NotFound/NotFound.tsx +2 -2
- package/src/components/NotFound/NotFound.types.ts +1 -1
- package/src/components/NotFound/index.tsx +1 -0
- package/src/components/Popover/Popover.tsx +2 -2
- package/src/components/Popover/Popover.types.ts +1 -1
- package/src/components/Popover/index.ts +1 -0
- package/src/components/PriceImpact/PriceImpact.tsx +2 -2
- package/src/components/PriceImpact/PriceImpact.types.ts +2 -2
- package/src/components/PriceImpact/index.ts +4 -1
- package/src/components/Radio/Radio.tsx +2 -2
- package/src/components/Radio/Radio.types.tsx +1 -1
- package/src/components/Radio/index.ts +1 -0
- package/src/components/RadioGroup/RadioGroup.tsx +2 -2
- package/src/components/RadioGroup/RadioGroup.types.tsx +4 -4
- package/src/components/RadioGroup/index.ts +1 -0
- package/src/components/Select/Select.tsx +2 -2
- package/src/components/Select/Select.types.ts +1 -1
- package/src/components/Select/index.ts +1 -0
- package/src/components/SelectableCategoryList/SelectableCategoryList.tsx +2 -2
- package/src/components/SelectableCategoryList/SelectableCategoryList.types.ts +1 -1
- package/src/components/SelectableCategoryList/index.ts +1 -0
- package/src/components/Skeleton/Skeleton.tsx +2 -2
- package/src/components/Skeleton/Skeleton.types.ts +1 -1
- package/src/components/Skeleton/index.ts +1 -0
- package/src/components/Spinner/Spinner.tsx +2 -2
- package/src/components/Spinner/Spinner.types.ts +1 -1
- package/src/components/Spinner/index.ts +1 -0
- package/src/components/StepDetails/StepDetails.types.ts +3 -3
- package/src/components/SwapListItem/SwapListItem.tsx +2 -2
- package/src/components/SwapListItem/SwapListItem.types.ts +1 -1
- package/src/components/SwapListItem/index.ts +4 -0
- package/src/components/Switch/Switch.tsx +2 -2
- package/src/components/Switch/Switch.types.tsx +1 -1
- package/src/components/Switch/index.ts +1 -0
- package/src/components/Tabs/Tabs.tsx +2 -2
- package/src/components/Tabs/Tabs.types.tsx +1 -1
- package/src/components/Tabs/index.ts +1 -0
- package/src/components/TextField/TextField.tsx +5 -2
- package/src/components/TextField/TextField.types.tsx +3 -3
- package/src/components/TextField/index.ts +1 -0
- package/src/components/Toast/Toast.Provider.tsx +12 -8
- package/src/components/Toast/Toast.styles.ts +0 -5
- package/src/components/Toast/Toast.tsx +2 -2
- package/src/components/Toast/Toast.types.ts +1 -1
- package/src/components/Toast/index.ts +1 -0
- package/src/components/TokenAmount/TokenAmount.types.ts +5 -5
- package/src/components/Tooltip/Tooltip.tsx +2 -2
- package/src/components/Tooltip/Tooltip.types.ts +1 -1
- package/src/components/Tooltip/index.ts +1 -0
- package/src/components/Typography/Typography.tsx +2 -2
- package/src/components/Typography/Typography.types.tsx +1 -1
- package/src/components/Typography/index.ts +1 -1
- package/src/components/index.ts +1 -1
- package/src/containers/ConnectWalletsModal/ConnectWalletsModal.styles.ts +8 -0
- package/src/containers/ConnectWalletsModal/ConnectWalletsModal.tsx +3 -18
- package/src/containers/ConnectWalletsModal/ConnectWalletsModal.types.ts +10 -0
- package/src/containers/ConnectWalletsModal/index.ts +1 -0
- package/src/containers/ConnectWalletsModal/mockData.ts +32 -16
- package/src/containers/SwapInput/SwapInput.tsx +2 -2
- package/src/containers/SwapInput/SwapInput.types.ts +1 -1
- package/src/containers/SwapInput/index.ts +1 -0
- package/dist/widget/ui/src/components/Alert/Alert.stories.d.ts +0 -9
- package/dist/widget/ui/src/components/Alert/Alert.stories.d.ts.map +0 -1
- package/dist/widget/ui/src/components/Button/Button.stories.d.ts +0 -10
- package/dist/widget/ui/src/components/Button/Button.stories.d.ts.map +0 -1
- package/dist/widget/ui/src/components/ChainToken/ChainToken.stories.d.ts +0 -8
- package/dist/widget/ui/src/components/ChainToken/ChainToken.stories.d.ts.map +0 -1
- package/dist/widget/ui/src/components/Checkbox/Checkbox.stories.d.ts +0 -8
- package/dist/widget/ui/src/components/Checkbox/Checkbox.stories.d.ts.map +0 -1
- package/dist/widget/ui/src/components/Chip/Chip.stories.d.ts +0 -32
- package/dist/widget/ui/src/components/Chip/Chip.stories.d.ts.map +0 -1
- package/dist/widget/ui/src/components/Collapsible/Collapsible.stories.d.ts +0 -22
- package/dist/widget/ui/src/components/Collapsible/Collapsible.stories.d.ts.map +0 -1
- package/dist/widget/ui/src/components/Flags/flags.stories.d.ts +0 -6
- package/dist/widget/ui/src/components/Flags/flags.stories.d.ts.map +0 -1
- package/dist/widget/ui/src/components/FullExpandedQuote/FullExpandedQuote.stories.d.ts +0 -7
- package/dist/widget/ui/src/components/FullExpandedQuote/FullExpandedQuote.stories.d.ts.map +0 -1
- package/dist/widget/ui/src/components/FullExpandedQuote/mock.d.ts +0 -7
- package/dist/widget/ui/src/components/FullExpandedQuote/mock.d.ts.map +0 -1
- package/dist/widget/ui/src/components/IconButton/IconButton.stories.d.ts +0 -8
- package/dist/widget/ui/src/components/IconButton/IconButton.stories.d.ts.map +0 -1
- package/dist/widget/ui/src/components/List/List.stories.d.ts +0 -12
- package/dist/widget/ui/src/components/List/List.stories.d.ts.map +0 -1
- package/dist/widget/ui/src/components/MessageBox/CollapsibleMessageBox.stories.d.ts +0 -7
- package/dist/widget/ui/src/components/MessageBox/CollapsibleMessageBox.stories.d.ts.map +0 -1
- package/dist/widget/ui/src/components/MessageBox/MessageBox.stories.d.ts +0 -7
- package/dist/widget/ui/src/components/MessageBox/MessageBox.stories.d.ts.map +0 -1
- package/dist/widget/ui/src/components/Modal/Modal.stories.d.ts +0 -8
- package/dist/widget/ui/src/components/Modal/Modal.stories.d.ts.map +0 -1
- package/dist/widget/ui/src/components/NotFound/NotFound.stories.d.ts +0 -6
- package/dist/widget/ui/src/components/NotFound/NotFound.stories.d.ts.map +0 -1
- package/dist/widget/ui/src/components/Popover/Popover.stories.d.ts +0 -10
- package/dist/widget/ui/src/components/Popover/Popover.stories.d.ts.map +0 -1
- package/dist/widget/ui/src/components/PriceImpact/PriceImpact.stories.d.ts +0 -8
- package/dist/widget/ui/src/components/PriceImpact/PriceImpact.stories.d.ts.map +0 -1
- package/dist/widget/ui/src/components/Radio/Radio.stories.d.ts +0 -6
- package/dist/widget/ui/src/components/Radio/Radio.stories.d.ts.map +0 -1
- package/dist/widget/ui/src/components/RadioGroup/RadioGroup.stories.d.ts +0 -6
- package/dist/widget/ui/src/components/RadioGroup/RadioGroup.stories.d.ts.map +0 -1
- package/dist/widget/ui/src/components/RefreshProgressButton/RefreshProgressButton.stories.d.ts +0 -12
- package/dist/widget/ui/src/components/RefreshProgressButton/RefreshProgressButton.stories.d.ts.map +0 -1
- package/dist/widget/ui/src/components/Select/Select.stories.d.ts +0 -6
- package/dist/widget/ui/src/components/Select/Select.stories.d.ts.map +0 -1
- package/dist/widget/ui/src/components/SelectableCategoryList/SelectableCategoryList.stories.d.ts +0 -6
- package/dist/widget/ui/src/components/SelectableCategoryList/SelectableCategoryList.stories.d.ts.map +0 -1
- package/dist/widget/ui/src/components/SelectableCategoryList/mock.d.ts +0 -139
- package/dist/widget/ui/src/components/SelectableCategoryList/mock.d.ts.map +0 -1
- package/dist/widget/ui/src/components/Skeleton/Skeleton.stories.d.ts +0 -6
- package/dist/widget/ui/src/components/Skeleton/Skeleton.stories.d.ts.map +0 -1
- package/dist/widget/ui/src/components/Spinner/Spinner.stories.d.ts +0 -6
- package/dist/widget/ui/src/components/Spinner/Spinner.stories.d.ts.map +0 -1
- package/dist/widget/ui/src/components/StepDetails/StepDetails.stories.d.ts +0 -7
- package/dist/widget/ui/src/components/StepDetails/StepDetails.stories.d.ts.map +0 -1
- package/dist/widget/ui/src/components/StepDetails/mock.d.ts +0 -3
- package/dist/widget/ui/src/components/StepDetails/mock.d.ts.map +0 -1
- package/dist/widget/ui/src/components/SwapListItem/SwapListItem.stories.d.ts +0 -6
- package/dist/widget/ui/src/components/SwapListItem/SwapListItem.stories.d.ts.map +0 -1
- package/dist/widget/ui/src/components/SwapListItem/mock.d.ts +0 -5
- package/dist/widget/ui/src/components/SwapListItem/mock.d.ts.map +0 -1
- package/dist/widget/ui/src/components/Switch/Switch.stories.d.ts +0 -6
- package/dist/widget/ui/src/components/Switch/Switch.stories.d.ts.map +0 -1
- package/dist/widget/ui/src/components/Tabs/Tabs.stories.d.ts.map +0 -1
- package/dist/widget/ui/src/components/Tabs/mock.d.ts +0 -7
- package/dist/widget/ui/src/components/Tabs/mock.d.ts.map +0 -1
- package/dist/widget/ui/src/components/TextField/TextField.stories.d.ts +0 -18
- package/dist/widget/ui/src/components/TextField/TextField.stories.d.ts.map +0 -1
- package/dist/widget/ui/src/components/Toast/Toast.stories.d.ts +0 -8
- package/dist/widget/ui/src/components/Toast/Toast.stories.d.ts.map +0 -1
- package/dist/widget/ui/src/components/TokenAmount/TokenAmount.stories.d.ts +0 -7
- package/dist/widget/ui/src/components/TokenAmount/TokenAmount.stories.d.ts.map +0 -1
- package/dist/widget/ui/src/components/Tooltip/Tooltip.stories.d.ts +0 -8
- package/dist/widget/ui/src/components/Tooltip/Tooltip.stories.d.ts.map +0 -1
- package/dist/widget/ui/src/components/Typography/Typography.stories.d.ts +0 -33
- package/dist/widget/ui/src/components/Typography/Typography.stories.d.ts.map +0 -1
- package/dist/widget/ui/src/components/Wallet/ClickableWallet.stories.d.ts +0 -7
- package/dist/widget/ui/src/components/Wallet/ClickableWallet.stories.d.ts.map +0 -1
- package/dist/widget/ui/src/components/Wallet/SelectableWallet.stories.d.ts +0 -7
- package/dist/widget/ui/src/components/Wallet/SelectableWallet.stories.d.ts.map +0 -1
- package/dist/widget/ui/src/containers/ConnectWalletsModal/ConnectWallets.stories.d.ts +0 -6
- package/dist/widget/ui/src/containers/ConnectWalletsModal/ConnectWallets.stories.d.ts.map +0 -1
- package/dist/widget/ui/src/containers/SwapInput/SwapInput.stories.d.ts +0 -9
- package/dist/widget/ui/src/containers/SwapInput/SwapInput.stories.d.ts.map +0 -1
- package/dist/widget/ui/src/icons/Icons.stories.d.ts +0 -6
- package/dist/widget/ui/src/icons/Icons.stories.d.ts.map +0 -1
- package/src/components/Alert/Alert.stories.tsx +0 -47
- package/src/components/Button/Button.stories.tsx +0 -36
- package/src/components/ChainToken/ChainToken.stories.tsx +0 -20
- package/src/components/Checkbox/Checkbox.stories.tsx +0 -33
- package/src/components/Chip/Chip.stories.tsx +0 -54
- package/src/components/Collapsible/Collapsible.stories.tsx +0 -47
- package/src/components/Flags/flags.stories.tsx +0 -67
- package/src/components/FullExpandedQuote/FullExpandedQuote.stories.tsx +0 -29
- package/src/components/FullExpandedQuote/mock.tsx +0 -449
- package/src/components/IconButton/IconButton.stories.tsx +0 -20
- package/src/components/List/List.stories.tsx +0 -181
- package/src/components/MessageBox/CollapsibleMessageBox.stories.tsx +0 -27
- package/src/components/MessageBox/MessageBox.stories.tsx +0 -18
- package/src/components/Modal/Modal.stories.tsx +0 -33
- package/src/components/NotFound/NotFound.stories.tsx +0 -17
- package/src/components/Popover/Popover.stories.tsx +0 -63
- package/src/components/PriceImpact/PriceImpact.stories.tsx +0 -21
- package/src/components/Radio/Radio.stories.tsx +0 -21
- package/src/components/RadioGroup/RadioGroup.stories.tsx +0 -31
- package/src/components/RefreshProgressButton/RefreshProgressButton.stories.tsx +0 -20
- package/src/components/Select/Select.stories.tsx +0 -41
- package/src/components/SelectableCategoryList/SelectableCategoryList.stories.tsx +0 -27
- package/src/components/SelectableCategoryList/mock.ts +0 -235
- package/src/components/Skeleton/Skeleton.stories.tsx +0 -52
- package/src/components/Spinner/Spinner.stories.tsx +0 -33
- package/src/components/StepDetails/StepDetails.stories.tsx +0 -23
- package/src/components/StepDetails/mock.ts +0 -35
- package/src/components/SwapListItem/SwapListItem.stories.tsx +0 -32
- package/src/components/SwapListItem/mock.ts +0 -321
- package/src/components/Switch/Switch.stories.tsx +0 -12
- package/src/components/Tabs/Tabs.stories.tsx +0 -40
- package/src/components/Tabs/mock.tsx +0 -34
- package/src/components/TextField/TextField.stories.tsx +0 -40
- package/src/components/Toast/Toast.stories.tsx +0 -68
- package/src/components/TokenAmount/TokenAmount.stories.tsx +0 -24
- package/src/components/Tooltip/Tooltip.stories.tsx +0 -43
- package/src/components/Typography/Typography.stories.tsx +0 -125
- package/src/components/Wallet/ClickableWallet.stories.tsx +0 -23
- package/src/components/Wallet/SelectableWallet.stories.tsx +0 -23
- package/src/containers/ConnectWalletsModal/ConnectWallets.stories.tsx +0 -24
- package/src/containers/SwapInput/SwapInput.stories.tsx +0 -40
- package/src/icons/Icons.stories.tsx +0 -68
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ChainTokenPropTypes } from './ChainToken.types';
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
|
|
@@ -8,7 +8,7 @@ import { Skeleton } from '../Skeleton';
|
|
|
8
8
|
import { tokenChainSizeMap } from './ChainToken.constants';
|
|
9
9
|
import { ChainImageContainer, Container } from './ChainToken.styles';
|
|
10
10
|
|
|
11
|
-
export const ChainToken: React.FC<
|
|
11
|
+
export const ChainToken: React.FC<ChainTokenPropTypes> = (props) => {
|
|
12
12
|
const {
|
|
13
13
|
tokenImage,
|
|
14
14
|
chainImage,
|
|
@@ -4,7 +4,7 @@ import type * as Stitches from '@stitches/react';
|
|
|
4
4
|
type BaseProps = Stitches.VariantProps<typeof ChainImageContainer>;
|
|
5
5
|
type BaseSizes = Exclude<BaseProps['size'], object>;
|
|
6
6
|
|
|
7
|
-
export type
|
|
7
|
+
export type ChainTokenPropTypes = {
|
|
8
8
|
tokenImage: string;
|
|
9
9
|
chainImage: string;
|
|
10
10
|
chianImageId?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { CheckboxPropTypes } from './Checkbox.types';
|
|
2
2
|
import type { PropsWithChildren } from 'react';
|
|
3
3
|
|
|
4
4
|
import React from 'react';
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
Label,
|
|
14
14
|
} from './Checkbox.styles';
|
|
15
15
|
|
|
16
|
-
export function Checkbox(props: PropsWithChildren<
|
|
16
|
+
export function Checkbox(props: PropsWithChildren<CheckboxPropTypes>) {
|
|
17
17
|
const { id, label, ...otherProps } = props;
|
|
18
18
|
const hasLabel = id && label;
|
|
19
19
|
return (
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ChipPropTypes } from './Chip.types';
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
|
|
@@ -6,7 +6,7 @@ import { Typography } from '../Typography';
|
|
|
6
6
|
|
|
7
7
|
import { ChipContainer } from './Chip.styles';
|
|
8
8
|
|
|
9
|
-
export function Chip(props:
|
|
9
|
+
export function Chip(props: ChipPropTypes) {
|
|
10
10
|
const { label, selected, prefix, suffix, ...otherProps } = props;
|
|
11
11
|
return (
|
|
12
12
|
<ChipContainer selected={selected} {...otherProps}>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { CollapsiblePropTypes } from './Collapsible.types';
|
|
2
2
|
import type { PropsWithChildren } from 'react';
|
|
3
3
|
|
|
4
4
|
import * as Collapsible from '@radix-ui/react-collapsible';
|
|
@@ -9,7 +9,7 @@ import { CollapsibleContent } from '../common/styles';
|
|
|
9
9
|
import { Trigger } from './Collapsible.styles';
|
|
10
10
|
|
|
11
11
|
export function CollapsibleComponent(
|
|
12
|
-
props: PropsWithChildren<
|
|
12
|
+
props: PropsWithChildren<CollapsiblePropTypes>
|
|
13
13
|
) {
|
|
14
14
|
const { open, onOpenChange, trigger, children, ...otherProps } = props;
|
|
15
15
|
return (
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
1
|
+
import type { SwapInputPropTypes } from '../../containers/SwapInput/SwapInput.types';
|
|
2
|
+
import type { ChainTokenPropTypes } from '../ChainToken';
|
|
3
|
+
import type { PriceImpactPropTypes } from '../PriceImpact/PriceImpact.types';
|
|
4
4
|
import type { PropTypes as QuoteCostProps } from '../QuoteCost/QuoteCost.types';
|
|
5
5
|
import type { InternalSwap, Step } from '../StepDetails/StepDetails.types';
|
|
6
|
-
import type {
|
|
6
|
+
import type { TooltipPropTypes } from '../Tooltip/Tooltip.types';
|
|
7
7
|
import type { CSSProperties } from '@stitches/react';
|
|
8
8
|
import type { RouteTag } from 'rango-sdk';
|
|
9
9
|
|
|
10
10
|
type BaseProps = {
|
|
11
|
-
percentageChange?:
|
|
12
|
-
warningLevel?:
|
|
11
|
+
percentageChange?: PriceImpactPropTypes['percentageChange'];
|
|
12
|
+
warningLevel?: PriceImpactPropTypes['warningLevel'];
|
|
13
13
|
tooltipContainer?: HTMLElement;
|
|
14
14
|
onClick?: () => void;
|
|
15
15
|
selected?: boolean;
|
|
@@ -21,7 +21,7 @@ export type DataLoadedProps = {
|
|
|
21
21
|
tags: RouteTag[];
|
|
22
22
|
time: QuoteCostProps['time'];
|
|
23
23
|
fee: QuoteCostProps['fee'];
|
|
24
|
-
outputPrice:
|
|
24
|
+
outputPrice: SwapInputPropTypes['price'];
|
|
25
25
|
loading?: false;
|
|
26
26
|
};
|
|
27
27
|
type LoadingProps = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { IconButtonPropTypes } from './IconButton.types';
|
|
2
2
|
import type { PropsWithChildren, Ref } from 'react';
|
|
3
3
|
|
|
4
4
|
import React from 'react';
|
|
@@ -7,7 +7,7 @@ import { Button } from '../Button';
|
|
|
7
7
|
|
|
8
8
|
// border-radius: 100% + overflow: hidden
|
|
9
9
|
function IconButtonComponent(
|
|
10
|
-
props: PropsWithChildren<
|
|
10
|
+
props: PropsWithChildren<IconButtonPropTypes>,
|
|
11
11
|
ref: Ref<HTMLButtonElement>
|
|
12
12
|
) {
|
|
13
13
|
const { style, ...otherProps } = props;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ButtonPropTypes } from '../Button/Button.types';
|
|
2
2
|
import type { CSSProperties } from 'react';
|
|
3
3
|
|
|
4
|
-
export type
|
|
4
|
+
export type IconButtonPropTypes = {
|
|
5
5
|
size?: ButtonPropTypes['size'];
|
|
6
6
|
type?: ButtonPropTypes['type'];
|
|
7
7
|
variant?: ButtonPropTypes['variant'];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ListItemPropTypes } from '../ListItem';
|
|
2
2
|
import type * as Stitches from '@stitches/react';
|
|
3
3
|
import type React from 'react';
|
|
4
4
|
|
|
5
5
|
export interface ListPropTypes {
|
|
6
6
|
type?: React.ReactElement;
|
|
7
|
-
items: (
|
|
7
|
+
items: (ListItemPropTypes & {
|
|
8
8
|
id: string;
|
|
9
9
|
type?: React.ReactElement;
|
|
10
10
|
})[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ListItemPropTypes } from './ListItem.types';
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
|
|
@@ -6,7 +6,7 @@ import { Typography } from '../Typography';
|
|
|
6
6
|
|
|
7
7
|
import { BaseListItem } from './ListItem.styles';
|
|
8
8
|
|
|
9
|
-
function ListItem(props:
|
|
9
|
+
function ListItem(props: ListItemPropTypes) {
|
|
10
10
|
const { start, title, description, end, onClick, hasDivider, ...restProps } =
|
|
11
11
|
props;
|
|
12
12
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type {
|
|
1
|
+
export type { ListItemPropTypes } from './ListItem.types';
|
|
2
2
|
export { ListItem } from './ListItem';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ListItemPropTypes } from '../ListItem';
|
|
2
2
|
import type { CSSProperties } from '@stitches/react';
|
|
3
3
|
|
|
4
|
-
export type ListItemButtonProps = Omit<
|
|
4
|
+
export type ListItemButtonProps = Omit<ListItemPropTypes, 'onClick'> & {
|
|
5
5
|
id: string;
|
|
6
6
|
onClick: (id: string) => void;
|
|
7
7
|
style?: CSSProperties;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ModalPropTypes } from './Modal.types';
|
|
2
2
|
import type { PropsWithChildren } from 'react';
|
|
3
3
|
|
|
4
4
|
import React, { useEffect, useRef, useState } from 'react';
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
const CLOSED_DELAY = 600;
|
|
23
23
|
const OPEN_DELAY = 100;
|
|
24
24
|
|
|
25
|
-
export function Modal(props: PropsWithChildren<
|
|
25
|
+
export function Modal(props: PropsWithChildren<ModalPropTypes>) {
|
|
26
26
|
const {
|
|
27
27
|
title,
|
|
28
28
|
open,
|
|
@@ -5,7 +5,7 @@ import type * as Stitches from '@stitches/react';
|
|
|
5
5
|
type BaseProps = Stitches.VariantProps<typeof BackDrop>;
|
|
6
6
|
type BaseAnchor = Exclude<BaseProps['anchor'], object>;
|
|
7
7
|
|
|
8
|
-
export interface
|
|
8
|
+
export interface ModalPropTypes {
|
|
9
9
|
title?: string;
|
|
10
10
|
open: boolean;
|
|
11
11
|
onClose: () => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NotFoundPropTypes } from './NotFound.types';
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
|
|
@@ -8,7 +8,7 @@ import { Typography } from '../Typography';
|
|
|
8
8
|
|
|
9
9
|
import { Container } from './NotFound.styles';
|
|
10
10
|
|
|
11
|
-
export function NotFound(props:
|
|
11
|
+
export function NotFound(props: NotFoundPropTypes) {
|
|
12
12
|
return (
|
|
13
13
|
<Container>
|
|
14
14
|
<SearchIcon color="secondary" size={26} />
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ContentType,
|
|
1
|
+
import type { ContentType, PopoverPropTypes, Ref } from './Popover.types';
|
|
2
2
|
import type { PropsWithChildren } from 'react';
|
|
3
3
|
|
|
4
4
|
import * as RadixPopover from '@radix-ui/react-popover';
|
|
@@ -27,7 +27,7 @@ export const PopoverContentComponent = (
|
|
|
27
27
|
const PopoverContent = React.forwardRef(PopoverContentComponent);
|
|
28
28
|
PopoverContent.displayName = 'PopoverContent';
|
|
29
29
|
|
|
30
|
-
export function Popover(props: PropsWithChildren<
|
|
30
|
+
export function Popover(props: PropsWithChildren<PopoverPropTypes>) {
|
|
31
31
|
const {
|
|
32
32
|
children,
|
|
33
33
|
content,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { PriceImpactPropTypes } from './PriceImpact.types';
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
|
|
@@ -6,7 +6,7 @@ import { Divider, Tooltip, Typography } from '..';
|
|
|
6
6
|
|
|
7
7
|
import { Container, OutputUsdValue } from './PriceImpact.styles';
|
|
8
8
|
|
|
9
|
-
export function PriceImpact(props:
|
|
9
|
+
export function PriceImpact(props: PriceImpactPropTypes) {
|
|
10
10
|
const {
|
|
11
11
|
size = 'medium',
|
|
12
12
|
outputUsdValue,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { TooltipPropTypes } from '../Tooltip/Tooltip.types';
|
|
2
2
|
import type { TypographyPropTypes } from '../Typography';
|
|
3
3
|
|
|
4
4
|
export type PriceImpactWarningLevel = 'low' | 'high' | undefined;
|
|
5
5
|
|
|
6
|
-
export type
|
|
6
|
+
export type PriceImpactPropTypes = {
|
|
7
7
|
size: TypographyPropTypes['size'];
|
|
8
8
|
outputUsdValue?: string;
|
|
9
9
|
outputColor?: string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { RadioPropTypes } from './Radio.types';
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
|
|
5
5
|
import { StyledIndicator, StyledItem } from './Radio.styles';
|
|
6
6
|
|
|
7
|
-
export function Radio(props:
|
|
7
|
+
export function Radio(props: RadioPropTypes) {
|
|
8
8
|
const { value } = props;
|
|
9
9
|
return (
|
|
10
10
|
<StyledItem value={value} id={value}>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { RadioGroupPropTypes } from './RadioGroup.types';
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
RadioRoot,
|
|
13
13
|
} from './RadioGroup.styles';
|
|
14
14
|
|
|
15
|
-
export function RadioGroup(props:
|
|
15
|
+
export function RadioGroup(props: RadioGroupPropTypes) {
|
|
16
16
|
const { value, onChange, direction = 'vertical', style, options } = props;
|
|
17
17
|
return (
|
|
18
18
|
<Container>
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { RadioPropTypes } from '../Radio';
|
|
2
2
|
import type { CSSProperties } from '@stitches/react';
|
|
3
3
|
|
|
4
|
-
export interface
|
|
4
|
+
export interface RadioGroupPropTypes {
|
|
5
5
|
options: {
|
|
6
6
|
label: string;
|
|
7
|
-
value:
|
|
7
|
+
value: RadioPropTypes['value'];
|
|
8
8
|
}[];
|
|
9
|
-
value:
|
|
9
|
+
value: RadioPropTypes['value'];
|
|
10
10
|
onChange: (value: string) => void;
|
|
11
11
|
direction?: 'vertical' | 'horizontal';
|
|
12
12
|
style?: CSSProperties;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { SelectPropTypes } from './Select.types';
|
|
2
2
|
|
|
3
3
|
import * as Select from '@radix-ui/react-select';
|
|
4
4
|
import React, { useEffect, useRef, useState } from 'react';
|
|
@@ -8,7 +8,7 @@ import { Typography } from '../Typography';
|
|
|
8
8
|
|
|
9
9
|
import { SelectContent, SelectItem, SelectTrigger } from './Select.styles';
|
|
10
10
|
|
|
11
|
-
export function SelectComponent<T extends string>(props:
|
|
11
|
+
export function SelectComponent<T extends string>(props: SelectPropTypes<T>) {
|
|
12
12
|
const [open, setOpen] = useState(false);
|
|
13
13
|
const selectRef = useRef<HTMLDivElement>(null);
|
|
14
14
|
const { options, value, container, handleItemClick, variant } = props;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-magic-numbers */
|
|
2
|
-
import type {
|
|
2
|
+
import type { SelectableCategoryListPropTypes } from './SelectableCategoryList.types';
|
|
3
3
|
|
|
4
4
|
import { i18n } from '@lingui/core';
|
|
5
5
|
import React from 'react';
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
import { Container } from './SelectableCategoryList.styles';
|
|
16
16
|
import { BlockchainCategories } from './SelectableCategoryList.types';
|
|
17
17
|
|
|
18
|
-
export function SelectableCategoryList(props:
|
|
18
|
+
export function SelectableCategoryList(props: SelectableCategoryListPropTypes) {
|
|
19
19
|
const { setCategory, category, isLoading, blockchains } = props;
|
|
20
20
|
const categories = Object.keys(
|
|
21
21
|
BlockchainCategories
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { SelectableCategoryList } from './SelectableCategoryList';
|
|
2
|
+
export type { SelectableCategoryListPropTypes } from './SelectableCategoryList.types';
|
|
2
3
|
export { BlockchainCategories } from './SelectableCategoryList.types';
|
|
3
4
|
export { getCountCategories } from './SelectableCategoryList.helpers';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { SkeletonPropTypes } from './Skeleton.types';
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
|
|
5
5
|
import { SkeletonContainer } from './Skeleton.styles';
|
|
6
6
|
|
|
7
|
-
export function Skeleton(props:
|
|
7
|
+
export function Skeleton(props: SkeletonPropTypes) {
|
|
8
8
|
const { width = '100%' } = props;
|
|
9
9
|
const customCss =
|
|
10
10
|
props.variant !== 'text'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { SpinnerPropTypes } from './Spinner.types';
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
|
|
@@ -6,7 +6,7 @@ import { LoadingIcon } from '../../icons';
|
|
|
6
6
|
|
|
7
7
|
import { SpinnerContainer } from './Spinner.styles';
|
|
8
8
|
|
|
9
|
-
export function Spinner(props:
|
|
9
|
+
export function Spinner(props: SpinnerPropTypes) {
|
|
10
10
|
const { size, color, css = {} } = props;
|
|
11
11
|
return (
|
|
12
12
|
<SpinnerContainer css={css}>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { SvgIconProps } from '../SvgIcon';
|
|
2
2
|
import type * as Stitches from '@stitches/react';
|
|
3
3
|
|
|
4
|
-
export interface
|
|
4
|
+
export interface SpinnerPropTypes {
|
|
5
5
|
// eslint-disable-next-line @typescript-eslint/no-magic-numbers
|
|
6
6
|
size?: 12 | 16 | 20 | 24 | 30;
|
|
7
7
|
color?: SvgIconProps['color'];
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { SwapperType } from 'rango-sdk';
|
|
2
2
|
import type { ReactNode } from 'react';
|
|
3
|
-
import type {
|
|
3
|
+
import type { SwapInputPropTypes } from 'src/containers/SwapInput/SwapInput.types';
|
|
4
4
|
|
|
5
|
-
type BaseStep = Pick<
|
|
5
|
+
type BaseStep = Pick<SwapInputPropTypes, 'chain' | 'token' | 'price'>;
|
|
6
6
|
type BaseInternalStep = {
|
|
7
7
|
chain: BaseStep['chain'];
|
|
8
8
|
} & Partial<Pick<BaseStep, 'token' | 'price'>>;
|
|
9
9
|
|
|
10
|
-
type SwapperInfo =
|
|
10
|
+
type SwapperInfo = SwapInputPropTypes['chain'] & {
|
|
11
11
|
type?: SwapperType;
|
|
12
12
|
};
|
|
13
13
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { SwapListItemPropTypes } from './SwapListItem.types';
|
|
2
2
|
import type { PropsWithChildren } from 'react';
|
|
3
3
|
|
|
4
4
|
import React from 'react';
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
import { StatusColors } from './SwapListItem.types';
|
|
19
19
|
import { SwapToken } from './SwapToken';
|
|
20
20
|
|
|
21
|
-
export function SwapListItem(props: PropsWithChildren<
|
|
21
|
+
export function SwapListItem(props: PropsWithChildren<SwapListItemPropTypes>) {
|
|
22
22
|
if ('isLoading' in props) {
|
|
23
23
|
return (
|
|
24
24
|
<LoadingMain>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { SwitchPropTypes } from './Switch.types';
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
|
|
5
5
|
import { StyledSwitchRoot, StyledSwitchThumb } from './Switch.styles';
|
|
6
6
|
|
|
7
|
-
export function Switch(props:
|
|
7
|
+
export function Switch(props: SwitchPropTypes) {
|
|
8
8
|
const { checked, onChange } = props;
|
|
9
9
|
return (
|
|
10
10
|
<StyledSwitchRoot checked={checked} onCheckedChange={onChange}>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { TabsPropTypes } from './Tabs.types';
|
|
2
2
|
|
|
3
3
|
import React, { useEffect, useRef, useState } from 'react';
|
|
4
4
|
|
|
@@ -8,7 +8,7 @@ import { Tooltip } from '../Tooltip';
|
|
|
8
8
|
import { BackdropTab, Tab, Tabs } from './Tabs.styles';
|
|
9
9
|
|
|
10
10
|
const INITIAL_RENDER_DELAY = 100;
|
|
11
|
-
export function TabsComponent(props:
|
|
11
|
+
export function TabsComponent(props: TabsPropTypes) {
|
|
12
12
|
const {
|
|
13
13
|
items: tabItems,
|
|
14
14
|
onChange,
|