@0xsquid/ui 0.26.0 → 0.27.1
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 +3 -3
- package/dist/cjs/index.js +2027 -1729
- package/dist/cjs/types/components/badges/BadgeImage.d.ts +1 -1
- package/dist/cjs/types/components/badges/IconLabel.d.ts +3 -3
- package/dist/cjs/types/components/badges/Image.d.ts +9 -0
- package/dist/cjs/types/components/badges/LoadingSkeleton.d.ts +3 -3
- package/dist/cjs/types/components/badges/TransactionState.d.ts +2 -2
- package/dist/cjs/types/components/badges/index.d.ts +7 -7
- package/dist/cjs/types/components/buttons/AssetsButton.d.ts +3 -3
- package/dist/cjs/types/components/buttons/BoostButton.d.ts +1 -1
- package/dist/cjs/types/components/buttons/Button.d.ts +2 -2
- package/dist/cjs/types/components/buttons/FeeButton.d.ts +2 -2
- package/dist/cjs/types/components/buttons/IconButton.d.ts +2 -2
- package/dist/cjs/types/components/buttons/StopsButton.d.ts +13 -0
- package/dist/cjs/types/components/buttons/index.d.ts +11 -11
- package/dist/cjs/types/components/controls/Input.d.ts +1 -1
- package/dist/cjs/types/components/controls/NumericInput.d.ts +5 -5
- package/dist/cjs/types/components/controls/SettingsSlider.d.ts +1 -1
- package/dist/cjs/types/components/controls/Switch.d.ts +5 -4
- package/dist/cjs/types/components/controls/Tooltip.d.ts +3 -3
- package/dist/cjs/types/components/controls/index.d.ts +6 -6
- package/dist/cjs/types/components/icons/Arrow.d.ts +16 -1
- package/dist/cjs/types/components/icons/Clock.d.ts +1 -1
- package/dist/cjs/types/components/icons/Coins.d.ts +5 -1
- package/dist/cjs/types/components/icons/CompassRound.d.ts +5 -1
- package/dist/cjs/types/components/icons/Copy.d.ts +2 -2
- package/dist/cjs/types/components/icons/CrossAnimatedIcon.d.ts +1 -1
- package/dist/cjs/types/components/icons/Generic.d.ts +40 -0
- package/dist/cjs/types/components/icons/Link.d.ts +2 -2
- package/dist/cjs/types/components/icons/Loader.d.ts +2 -2
- package/dist/cjs/types/components/icons/Search.d.ts +4 -1
- package/dist/cjs/types/components/icons/Timeline.d.ts +2 -2
- package/dist/cjs/types/components/icons/index.d.ts +55 -54
- package/dist/cjs/types/components/index.d.ts +8 -8
- package/dist/cjs/types/components/layout/AppContainer.d.ts +2 -2
- package/dist/cjs/types/components/layout/Boost.d.ts +3 -3
- package/dist/cjs/types/components/layout/Breadcrumb.d.ts +1 -1
- package/dist/cjs/types/components/layout/Collapse.d.ts +3 -3
- package/dist/cjs/types/components/layout/CollapsibleMenu.d.ts +1 -1
- package/dist/cjs/types/components/layout/DescriptionBlocks.d.ts +4 -4
- package/dist/cjs/types/components/layout/DetailsToolbar.d.ts +6 -14
- package/dist/cjs/types/components/layout/DropdownMenu.d.ts +6 -3
- package/dist/cjs/types/components/layout/HashLink.d.ts +1 -1
- package/dist/cjs/types/components/layout/Join.d.ts +1 -1
- package/dist/cjs/types/components/layout/Menu.d.ts +5 -5
- package/dist/cjs/types/components/layout/Modal.d.ts +1 -1
- package/dist/cjs/types/components/layout/ModalContent.d.ts +1 -1
- package/dist/cjs/types/components/layout/NavigationBar.d.ts +4 -4
- package/dist/cjs/types/components/layout/PipeSeparator.d.ts +2 -2
- package/dist/cjs/types/components/layout/SwapConfiguration.d.ts +7 -7
- package/dist/cjs/types/components/layout/SwapStepsCollapsed.d.ts +1 -1
- package/dist/cjs/types/components/layout/TokenPair.d.ts +1 -1
- package/dist/cjs/types/components/layout/TransactionFilters.d.ts +2 -2
- package/dist/cjs/types/components/layout/TransactionHeader/BridgeHeader.d.ts +1 -1
- package/dist/cjs/types/components/layout/TransactionHeader/BuyNFTHeader.d.ts +1 -1
- package/dist/cjs/types/components/layout/TransactionHeader/InteractionHeader.d.ts +2 -2
- package/dist/cjs/types/components/layout/TransactionHeader/SwapHeader.d.ts +1 -1
- package/dist/cjs/types/components/layout/TransactionHeader/TransactionHeader.d.ts +6 -6
- package/dist/cjs/types/components/layout/TransactionHeader/TransactionHeaderLayout.d.ts +2 -2
- package/dist/cjs/types/components/layout/TransactionHeader/index.d.ts +1 -1
- package/dist/cjs/types/components/layout/TransactionProperties/PropertiesLayout.d.ts +1 -1
- package/dist/cjs/types/components/layout/TransactionProperties/TransactionProperties.d.ts +5 -5
- package/dist/cjs/types/components/layout/TransactionProperties/index.d.ts +6 -6
- package/dist/cjs/types/components/layout/TransactionSearch.d.ts +1 -1
- package/dist/cjs/types/components/layout/Transfer.d.ts +1 -1
- package/dist/cjs/types/components/layout/index.d.ts +41 -41
- package/dist/cjs/types/components/lists/DropdownMenuItem.d.ts +18 -2
- package/dist/cjs/types/components/lists/DropdownMenuTitle.d.ts +3 -0
- package/dist/cjs/types/components/lists/HistoryItem.d.ts +3 -4
- package/dist/cjs/types/components/lists/ListItem.d.ts +7 -2
- package/dist/cjs/types/components/lists/PropertyListItem.d.ts +8 -4
- package/dist/cjs/types/components/lists/RouteStep.d.ts +9 -0
- package/dist/cjs/types/components/lists/SettingsItem.d.ts +7 -7
- package/dist/cjs/types/components/lists/SwapStepItem.d.ts +1 -1
- package/dist/cjs/types/components/lists/TransactionAction/ActionLayout.d.ts +3 -3
- package/dist/cjs/types/components/lists/TransactionAction/ApproveAction.d.ts +1 -1
- package/dist/cjs/types/components/lists/TransactionAction/BaseActionProps.d.ts +1 -1
- package/dist/cjs/types/components/lists/TransactionAction/BridgeAction.d.ts +1 -1
- package/dist/cjs/types/components/lists/TransactionAction/FeesAction.d.ts +2 -2
- package/dist/cjs/types/components/lists/TransactionAction/IncompleteAction.d.ts +2 -2
- package/dist/cjs/types/components/lists/TransactionAction/ReceiveNFTAction.d.ts +1 -1
- package/dist/cjs/types/components/lists/TransactionAction/ReceiveTokensAction.d.ts +1 -1
- package/dist/cjs/types/components/lists/TransactionAction/SendTokensAction.d.ts +1 -1
- package/dist/cjs/types/components/lists/TransactionAction/StakeAction.d.ts +1 -1
- package/dist/cjs/types/components/lists/TransactionAction/StartAction.d.ts +1 -1
- package/dist/cjs/types/components/lists/TransactionAction/SuccessAction.d.ts +1 -1
- package/dist/cjs/types/components/lists/TransactionAction/SwapAction.d.ts +1 -1
- package/dist/cjs/types/components/lists/TransactionAction/TransactionAction.d.ts +13 -13
- package/dist/cjs/types/components/lists/TransactionAction/WrapAction.d.ts +1 -1
- package/dist/cjs/types/components/lists/TransactionAction/index.d.ts +14 -14
- package/dist/cjs/types/components/lists/TransactionAction/linkActionTimelineProps.d.ts +1 -1
- package/dist/cjs/types/components/lists/TransactionItem.d.ts +3 -3
- package/dist/cjs/types/components/lists/index.d.ts +27 -25
- package/dist/cjs/types/components/typography/BodyText.d.ts +2 -2
- package/dist/cjs/types/components/typography/HeadingText.d.ts +2 -2
- package/dist/cjs/types/components/typography/index.d.ts +3 -3
- package/dist/cjs/types/components/views/AssetsView.d.ts +1 -1
- package/dist/cjs/types/components/views/RecipientView.d.ts +1 -1
- package/dist/cjs/types/components/views/SwapProgressView.d.ts +2 -2
- package/dist/cjs/types/components/views/TransactionView/BaseTransactionViewProps.d.ts +2 -2
- package/dist/cjs/types/components/views/TransactionView/BridgeTransactionView.d.ts +1 -1
- package/dist/cjs/types/components/views/TransactionView/BuyNFTTransactionView.d.ts +1 -1
- package/dist/cjs/types/components/views/TransactionView/InteractionTransactionView.d.ts +2 -2
- package/dist/cjs/types/components/views/TransactionView/SwapTransactionView.d.ts +1 -1
- package/dist/cjs/types/components/views/TransactionView/TransactionView.d.ts +5 -5
- package/dist/cjs/types/components/views/TransactionView/TransactionViewLayout.d.ts +3 -3
- package/dist/cjs/types/components/views/TransactionView/index.d.ts +6 -6
- package/dist/cjs/types/components/views/index.d.ts +13 -13
- package/dist/cjs/types/core/constants.d.ts +1 -1
- package/dist/cjs/types/core/design-system.d.ts +1 -1
- package/dist/cjs/types/core/index.d.ts +4 -4
- package/dist/cjs/types/core/themes.d.ts +2 -2
- package/dist/cjs/types/core/utils.d.ts +12 -3
- package/dist/cjs/types/hooks/index.d.ts +6 -6
- package/dist/cjs/types/hooks/useDropdownMenu.d.ts +14 -3
- package/dist/cjs/types/index.d.ts +5 -5
- package/dist/cjs/types/providers/SquidConfigProvider.d.ts +3 -3
- package/dist/cjs/types/providers/index.d.ts +1 -1
- package/dist/cjs/types/services/internal/colorService.d.ts +1 -1
- package/dist/cjs/types/stories/badges/BadgeImage.stories.d.ts +2 -2
- package/dist/cjs/types/stories/badges/IconLabel.stories.d.ts +2 -2
- package/dist/cjs/types/stories/badges/ImageIcon.stories.d.ts +3 -3
- package/dist/cjs/types/stories/badges/Loader.stories.d.ts +2 -2
- package/dist/cjs/types/stories/badges/LoadingSkeleton.stories.d.ts +2 -2
- package/dist/cjs/types/stories/badges/TransactionState.stories.d.ts +2 -2
- package/dist/cjs/types/stories/badges/UsdAmount.stories.d.ts +2 -2
- package/dist/cjs/types/stories/badges/WalletLink.stories.d.ts +2 -2
- package/dist/cjs/types/stories/buttons/AddressButton.stories.d.ts +2 -2
- package/dist/cjs/types/stories/buttons/ArrowButton.stories.d.ts +2 -2
- package/dist/cjs/types/stories/buttons/AssetsButton.stories.d.ts +2 -2
- package/dist/cjs/types/stories/buttons/BoostButton.stories.d.ts +2 -2
- package/dist/cjs/types/stories/buttons/Button.stories.d.ts +2 -2
- package/dist/cjs/types/stories/buttons/Chip.stories.d.ts +2 -2
- package/dist/cjs/types/stories/buttons/FeeButton.stories.d.ts +2 -2
- package/dist/cjs/types/stories/buttons/FilterButton.stories.d.ts +2 -2
- package/dist/cjs/types/stories/buttons/IconButon.stories.d.ts +2 -2
- package/dist/cjs/types/stories/buttons/SettingsButton.stories.d.ts +2 -2
- package/dist/cjs/types/stories/buttons/StopsButton.stories.d.ts +10 -0
- package/dist/cjs/types/stories/controls/Input.stories.d.ts +2 -2
- package/dist/cjs/types/stories/controls/RangeInput.stories.d.ts +2 -2
- package/dist/cjs/types/stories/controls/SettingsSlider.stories.d.ts +2 -2
- package/dist/cjs/types/stories/controls/Switch.stories.d.ts +2 -2
- package/dist/cjs/types/stories/controls/Tooltip.stories.d.ts +2 -2
- package/dist/cjs/types/stories/layout/AppContainer.stories.d.ts +1 -1
- package/dist/cjs/types/stories/layout/Boost.stories.d.ts +2 -2
- package/dist/cjs/types/stories/layout/DetailsToolbar.stories.d.ts +5 -5
- package/dist/cjs/types/stories/layout/DropdownMenu.stories.d.ts +6 -3
- package/dist/cjs/types/stories/layout/ErrorMessage.stories.d.ts +2 -2
- package/dist/cjs/types/stories/layout/HashLink.stories.d.ts +2 -2
- package/dist/cjs/types/stories/layout/InfoBox.stories.d.ts +2 -2
- package/dist/cjs/types/stories/layout/Menu.stories.d.ts +2 -2
- package/dist/cjs/types/stories/layout/ModalContent.stories.d.ts +2 -2
- package/dist/cjs/types/stories/layout/NavigationBar.stories.d.ts +2 -2
- package/dist/cjs/types/stories/layout/ProductCard.stories.d.ts +2 -2
- package/dist/cjs/types/stories/layout/SwapConfiguration.stories.d.ts +2 -2
- package/dist/cjs/types/stories/layout/SwapProgressViewHeader.stories.d.ts +2 -2
- package/dist/cjs/types/stories/layout/SwapStepsCollapsed.stories.d.ts +2 -2
- package/dist/cjs/types/stories/layout/Toast.stories.d.ts +2 -2
- package/dist/cjs/types/stories/layout/TokenPair.stories.d.ts +2 -2
- package/dist/cjs/types/stories/layout/TransactionFilters.stories.d.ts +1 -1
- package/dist/cjs/types/stories/layout/TransactionHeader.stories.d.ts +2 -2
- package/dist/cjs/types/stories/layout/TransactionProperties.stories.d.ts +2 -2
- package/dist/cjs/types/stories/layout/TransactionSearch.stories.d.ts +2 -2
- package/dist/cjs/types/stories/layout/Transfer.stories.d.ts +2 -2
- package/dist/cjs/types/stories/lists/DropdownMenuItem.stories.d.ts +9 -3
- package/dist/cjs/types/stories/lists/DropdownMenuTitle.stories.d.ts +6 -0
- package/dist/cjs/types/stories/lists/HistoryItem.stories.d.ts +3 -2
- package/dist/cjs/types/stories/lists/ListItem.stories.d.ts +3 -2
- package/dist/cjs/types/stories/lists/MenuItem.stories.d.ts +2 -2
- package/dist/cjs/types/stories/lists/PropertyListItem.stories.d.ts +4 -2
- package/dist/cjs/types/stories/lists/RouteStep.stories.d.ts +7 -0
- package/dist/cjs/types/stories/lists/SectionTitle.stories.d.ts +2 -2
- package/dist/cjs/types/stories/lists/SettingsItem.stories.d.ts +2 -2
- package/dist/cjs/types/stories/lists/SwapStepItem.stories.d.ts +2 -2
- package/dist/cjs/types/stories/lists/TransactionAction.stories.d.ts +2 -2
- package/dist/cjs/types/stories/lists/TransactionItem.stories.d.ts +2 -2
- package/dist/cjs/types/stories/typography/BodyText.stories.d.ts +2 -2
- package/dist/cjs/types/stories/typography/CaptionText.stories.d.ts +2 -2
- package/dist/cjs/types/stories/typography/HeadingText.stories.d.ts +2 -2
- package/dist/cjs/types/stories/views/AssetsView.stories.d.ts +2 -2
- package/dist/cjs/types/stories/views/HistoryView.stories.d.ts +2 -2
- package/dist/cjs/types/stories/views/MainView.stories.d.ts +2 -2
- package/dist/cjs/types/stories/views/RecipientView.stories.d.ts +2 -2
- package/dist/cjs/types/stories/views/SettingsView.stories.d.ts +2 -2
- package/dist/cjs/types/stories/views/SwapDetailsView.stories.d.ts +2 -2
- package/dist/cjs/types/stories/views/SwapProgressView.stories.d.ts +2 -2
- package/dist/cjs/types/stories/views/TransactionView.stories.d.ts +2 -2
- package/dist/cjs/types/stories/views/WalletsView.stories.d.ts +2 -2
- package/dist/cjs/types/tests/utils.test.d.ts +1 -0
- package/dist/cjs/types/types/components.d.ts +23 -22
- package/dist/cjs/types/types/config.d.ts +18 -18
- package/dist/cjs/types/types/index.d.ts +3 -2
- package/dist/cjs/types/types/utils.d.ts +11 -0
- package/dist/esm/index.js +2007 -1727
- package/dist/esm/types/components/badges/BadgeImage.d.ts +1 -1
- package/dist/esm/types/components/badges/IconLabel.d.ts +3 -3
- package/dist/esm/types/components/badges/Image.d.ts +9 -0
- package/dist/esm/types/components/badges/LoadingSkeleton.d.ts +3 -3
- package/dist/esm/types/components/badges/TransactionState.d.ts +2 -2
- package/dist/esm/types/components/badges/index.d.ts +7 -7
- package/dist/esm/types/components/buttons/AssetsButton.d.ts +3 -3
- package/dist/esm/types/components/buttons/BoostButton.d.ts +1 -1
- package/dist/esm/types/components/buttons/Button.d.ts +2 -2
- package/dist/esm/types/components/buttons/FeeButton.d.ts +2 -2
- package/dist/esm/types/components/buttons/IconButton.d.ts +2 -2
- package/dist/esm/types/components/buttons/StopsButton.d.ts +13 -0
- package/dist/esm/types/components/buttons/index.d.ts +11 -11
- package/dist/esm/types/components/controls/Input.d.ts +1 -1
- package/dist/esm/types/components/controls/NumericInput.d.ts +5 -5
- package/dist/esm/types/components/controls/SettingsSlider.d.ts +1 -1
- package/dist/esm/types/components/controls/Switch.d.ts +5 -4
- package/dist/esm/types/components/controls/Tooltip.d.ts +3 -3
- package/dist/esm/types/components/controls/index.d.ts +6 -6
- package/dist/esm/types/components/icons/Arrow.d.ts +16 -1
- package/dist/esm/types/components/icons/Clock.d.ts +1 -1
- package/dist/esm/types/components/icons/Coins.d.ts +5 -1
- package/dist/esm/types/components/icons/CompassRound.d.ts +5 -1
- package/dist/esm/types/components/icons/Copy.d.ts +2 -2
- package/dist/esm/types/components/icons/CrossAnimatedIcon.d.ts +1 -1
- package/dist/esm/types/components/icons/Generic.d.ts +40 -0
- package/dist/esm/types/components/icons/Link.d.ts +2 -2
- package/dist/esm/types/components/icons/Loader.d.ts +2 -2
- package/dist/esm/types/components/icons/Search.d.ts +4 -1
- package/dist/esm/types/components/icons/Timeline.d.ts +2 -2
- package/dist/esm/types/components/icons/index.d.ts +55 -54
- package/dist/esm/types/components/index.d.ts +8 -8
- package/dist/esm/types/components/layout/AppContainer.d.ts +2 -2
- package/dist/esm/types/components/layout/Boost.d.ts +3 -3
- package/dist/esm/types/components/layout/Breadcrumb.d.ts +1 -1
- package/dist/esm/types/components/layout/Collapse.d.ts +3 -3
- package/dist/esm/types/components/layout/CollapsibleMenu.d.ts +1 -1
- package/dist/esm/types/components/layout/DescriptionBlocks.d.ts +4 -4
- package/dist/esm/types/components/layout/DetailsToolbar.d.ts +6 -14
- package/dist/esm/types/components/layout/DropdownMenu.d.ts +6 -3
- package/dist/esm/types/components/layout/HashLink.d.ts +1 -1
- package/dist/esm/types/components/layout/Join.d.ts +1 -1
- package/dist/esm/types/components/layout/Menu.d.ts +5 -5
- package/dist/esm/types/components/layout/Modal.d.ts +1 -1
- package/dist/esm/types/components/layout/ModalContent.d.ts +1 -1
- package/dist/esm/types/components/layout/NavigationBar.d.ts +4 -4
- package/dist/esm/types/components/layout/PipeSeparator.d.ts +2 -2
- package/dist/esm/types/components/layout/SwapConfiguration.d.ts +7 -7
- package/dist/esm/types/components/layout/SwapStepsCollapsed.d.ts +1 -1
- package/dist/esm/types/components/layout/TokenPair.d.ts +1 -1
- package/dist/esm/types/components/layout/TransactionFilters.d.ts +2 -2
- package/dist/esm/types/components/layout/TransactionHeader/BridgeHeader.d.ts +1 -1
- package/dist/esm/types/components/layout/TransactionHeader/BuyNFTHeader.d.ts +1 -1
- package/dist/esm/types/components/layout/TransactionHeader/InteractionHeader.d.ts +2 -2
- package/dist/esm/types/components/layout/TransactionHeader/SwapHeader.d.ts +1 -1
- package/dist/esm/types/components/layout/TransactionHeader/TransactionHeader.d.ts +6 -6
- package/dist/esm/types/components/layout/TransactionHeader/TransactionHeaderLayout.d.ts +2 -2
- package/dist/esm/types/components/layout/TransactionHeader/index.d.ts +1 -1
- package/dist/esm/types/components/layout/TransactionProperties/PropertiesLayout.d.ts +1 -1
- package/dist/esm/types/components/layout/TransactionProperties/TransactionProperties.d.ts +5 -5
- package/dist/esm/types/components/layout/TransactionProperties/index.d.ts +6 -6
- package/dist/esm/types/components/layout/TransactionSearch.d.ts +1 -1
- package/dist/esm/types/components/layout/Transfer.d.ts +1 -1
- package/dist/esm/types/components/layout/index.d.ts +41 -41
- package/dist/esm/types/components/lists/DropdownMenuItem.d.ts +18 -2
- package/dist/esm/types/components/lists/DropdownMenuTitle.d.ts +3 -0
- package/dist/esm/types/components/lists/HistoryItem.d.ts +3 -4
- package/dist/esm/types/components/lists/ListItem.d.ts +7 -2
- package/dist/esm/types/components/lists/PropertyListItem.d.ts +8 -4
- package/dist/esm/types/components/lists/RouteStep.d.ts +9 -0
- package/dist/esm/types/components/lists/SettingsItem.d.ts +7 -7
- package/dist/esm/types/components/lists/SwapStepItem.d.ts +1 -1
- package/dist/esm/types/components/lists/TransactionAction/ActionLayout.d.ts +3 -3
- package/dist/esm/types/components/lists/TransactionAction/ApproveAction.d.ts +1 -1
- package/dist/esm/types/components/lists/TransactionAction/BaseActionProps.d.ts +1 -1
- package/dist/esm/types/components/lists/TransactionAction/BridgeAction.d.ts +1 -1
- package/dist/esm/types/components/lists/TransactionAction/FeesAction.d.ts +2 -2
- package/dist/esm/types/components/lists/TransactionAction/IncompleteAction.d.ts +2 -2
- package/dist/esm/types/components/lists/TransactionAction/ReceiveNFTAction.d.ts +1 -1
- package/dist/esm/types/components/lists/TransactionAction/ReceiveTokensAction.d.ts +1 -1
- package/dist/esm/types/components/lists/TransactionAction/SendTokensAction.d.ts +1 -1
- package/dist/esm/types/components/lists/TransactionAction/StakeAction.d.ts +1 -1
- package/dist/esm/types/components/lists/TransactionAction/StartAction.d.ts +1 -1
- package/dist/esm/types/components/lists/TransactionAction/SuccessAction.d.ts +1 -1
- package/dist/esm/types/components/lists/TransactionAction/SwapAction.d.ts +1 -1
- package/dist/esm/types/components/lists/TransactionAction/TransactionAction.d.ts +13 -13
- package/dist/esm/types/components/lists/TransactionAction/WrapAction.d.ts +1 -1
- package/dist/esm/types/components/lists/TransactionAction/index.d.ts +14 -14
- package/dist/esm/types/components/lists/TransactionAction/linkActionTimelineProps.d.ts +1 -1
- package/dist/esm/types/components/lists/TransactionItem.d.ts +3 -3
- package/dist/esm/types/components/lists/index.d.ts +27 -25
- package/dist/esm/types/components/typography/BodyText.d.ts +2 -2
- package/dist/esm/types/components/typography/HeadingText.d.ts +2 -2
- package/dist/esm/types/components/typography/index.d.ts +3 -3
- package/dist/esm/types/components/views/AssetsView.d.ts +1 -1
- package/dist/esm/types/components/views/RecipientView.d.ts +1 -1
- package/dist/esm/types/components/views/SwapProgressView.d.ts +2 -2
- package/dist/esm/types/components/views/TransactionView/BaseTransactionViewProps.d.ts +2 -2
- package/dist/esm/types/components/views/TransactionView/BridgeTransactionView.d.ts +1 -1
- package/dist/esm/types/components/views/TransactionView/BuyNFTTransactionView.d.ts +1 -1
- package/dist/esm/types/components/views/TransactionView/InteractionTransactionView.d.ts +2 -2
- package/dist/esm/types/components/views/TransactionView/SwapTransactionView.d.ts +1 -1
- package/dist/esm/types/components/views/TransactionView/TransactionView.d.ts +5 -5
- package/dist/esm/types/components/views/TransactionView/TransactionViewLayout.d.ts +3 -3
- package/dist/esm/types/components/views/TransactionView/index.d.ts +6 -6
- package/dist/esm/types/components/views/index.d.ts +13 -13
- package/dist/esm/types/core/constants.d.ts +1 -1
- package/dist/esm/types/core/design-system.d.ts +1 -1
- package/dist/esm/types/core/index.d.ts +4 -4
- package/dist/esm/types/core/themes.d.ts +2 -2
- package/dist/esm/types/core/utils.d.ts +12 -3
- package/dist/esm/types/hooks/index.d.ts +6 -6
- package/dist/esm/types/hooks/useDropdownMenu.d.ts +14 -3
- package/dist/esm/types/index.d.ts +5 -5
- package/dist/esm/types/providers/SquidConfigProvider.d.ts +3 -3
- package/dist/esm/types/providers/index.d.ts +1 -1
- package/dist/esm/types/services/internal/colorService.d.ts +1 -1
- package/dist/esm/types/stories/badges/BadgeImage.stories.d.ts +2 -2
- package/dist/esm/types/stories/badges/IconLabel.stories.d.ts +2 -2
- package/dist/esm/types/stories/badges/ImageIcon.stories.d.ts +3 -3
- package/dist/esm/types/stories/badges/Loader.stories.d.ts +2 -2
- package/dist/esm/types/stories/badges/LoadingSkeleton.stories.d.ts +2 -2
- package/dist/esm/types/stories/badges/TransactionState.stories.d.ts +2 -2
- package/dist/esm/types/stories/badges/UsdAmount.stories.d.ts +2 -2
- package/dist/esm/types/stories/badges/WalletLink.stories.d.ts +2 -2
- package/dist/esm/types/stories/buttons/AddressButton.stories.d.ts +2 -2
- package/dist/esm/types/stories/buttons/ArrowButton.stories.d.ts +2 -2
- package/dist/esm/types/stories/buttons/AssetsButton.stories.d.ts +2 -2
- package/dist/esm/types/stories/buttons/BoostButton.stories.d.ts +2 -2
- package/dist/esm/types/stories/buttons/Button.stories.d.ts +2 -2
- package/dist/esm/types/stories/buttons/Chip.stories.d.ts +2 -2
- package/dist/esm/types/stories/buttons/FeeButton.stories.d.ts +2 -2
- package/dist/esm/types/stories/buttons/FilterButton.stories.d.ts +2 -2
- package/dist/esm/types/stories/buttons/IconButon.stories.d.ts +2 -2
- package/dist/esm/types/stories/buttons/SettingsButton.stories.d.ts +2 -2
- package/dist/esm/types/stories/buttons/StopsButton.stories.d.ts +10 -0
- package/dist/esm/types/stories/controls/Input.stories.d.ts +2 -2
- package/dist/esm/types/stories/controls/RangeInput.stories.d.ts +2 -2
- package/dist/esm/types/stories/controls/SettingsSlider.stories.d.ts +2 -2
- package/dist/esm/types/stories/controls/Switch.stories.d.ts +2 -2
- package/dist/esm/types/stories/controls/Tooltip.stories.d.ts +2 -2
- package/dist/esm/types/stories/layout/AppContainer.stories.d.ts +1 -1
- package/dist/esm/types/stories/layout/Boost.stories.d.ts +2 -2
- package/dist/esm/types/stories/layout/DetailsToolbar.stories.d.ts +5 -5
- package/dist/esm/types/stories/layout/DropdownMenu.stories.d.ts +6 -3
- package/dist/esm/types/stories/layout/ErrorMessage.stories.d.ts +2 -2
- package/dist/esm/types/stories/layout/HashLink.stories.d.ts +2 -2
- package/dist/esm/types/stories/layout/InfoBox.stories.d.ts +2 -2
- package/dist/esm/types/stories/layout/Menu.stories.d.ts +2 -2
- package/dist/esm/types/stories/layout/ModalContent.stories.d.ts +2 -2
- package/dist/esm/types/stories/layout/NavigationBar.stories.d.ts +2 -2
- package/dist/esm/types/stories/layout/ProductCard.stories.d.ts +2 -2
- package/dist/esm/types/stories/layout/SwapConfiguration.stories.d.ts +2 -2
- package/dist/esm/types/stories/layout/SwapProgressViewHeader.stories.d.ts +2 -2
- package/dist/esm/types/stories/layout/SwapStepsCollapsed.stories.d.ts +2 -2
- package/dist/esm/types/stories/layout/Toast.stories.d.ts +2 -2
- package/dist/esm/types/stories/layout/TokenPair.stories.d.ts +2 -2
- package/dist/esm/types/stories/layout/TransactionFilters.stories.d.ts +1 -1
- package/dist/esm/types/stories/layout/TransactionHeader.stories.d.ts +2 -2
- package/dist/esm/types/stories/layout/TransactionProperties.stories.d.ts +2 -2
- package/dist/esm/types/stories/layout/TransactionSearch.stories.d.ts +2 -2
- package/dist/esm/types/stories/layout/Transfer.stories.d.ts +2 -2
- package/dist/esm/types/stories/lists/DropdownMenuItem.stories.d.ts +9 -3
- package/dist/esm/types/stories/lists/DropdownMenuTitle.stories.d.ts +6 -0
- package/dist/esm/types/stories/lists/HistoryItem.stories.d.ts +3 -2
- package/dist/esm/types/stories/lists/ListItem.stories.d.ts +3 -2
- package/dist/esm/types/stories/lists/MenuItem.stories.d.ts +2 -2
- package/dist/esm/types/stories/lists/PropertyListItem.stories.d.ts +4 -2
- package/dist/esm/types/stories/lists/RouteStep.stories.d.ts +7 -0
- package/dist/esm/types/stories/lists/SectionTitle.stories.d.ts +2 -2
- package/dist/esm/types/stories/lists/SettingsItem.stories.d.ts +2 -2
- package/dist/esm/types/stories/lists/SwapStepItem.stories.d.ts +2 -2
- package/dist/esm/types/stories/lists/TransactionAction.stories.d.ts +2 -2
- package/dist/esm/types/stories/lists/TransactionItem.stories.d.ts +2 -2
- package/dist/esm/types/stories/typography/BodyText.stories.d.ts +2 -2
- package/dist/esm/types/stories/typography/CaptionText.stories.d.ts +2 -2
- package/dist/esm/types/stories/typography/HeadingText.stories.d.ts +2 -2
- package/dist/esm/types/stories/views/AssetsView.stories.d.ts +2 -2
- package/dist/esm/types/stories/views/HistoryView.stories.d.ts +2 -2
- package/dist/esm/types/stories/views/MainView.stories.d.ts +2 -2
- package/dist/esm/types/stories/views/RecipientView.stories.d.ts +2 -2
- package/dist/esm/types/stories/views/SettingsView.stories.d.ts +2 -2
- package/dist/esm/types/stories/views/SwapDetailsView.stories.d.ts +2 -2
- package/dist/esm/types/stories/views/SwapProgressView.stories.d.ts +2 -2
- package/dist/esm/types/stories/views/TransactionView.stories.d.ts +2 -2
- package/dist/esm/types/stories/views/WalletsView.stories.d.ts +2 -2
- package/dist/esm/types/tests/utils.test.d.ts +1 -0
- package/dist/esm/types/types/components.d.ts +23 -22
- package/dist/esm/types/types/config.d.ts +18 -18
- package/dist/esm/types/types/index.d.ts +3 -2
- package/dist/esm/types/types/utils.d.ts +11 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +894 -764
- package/package.json +7 -5
- package/dist/cjs/types/components/badges/ImageIcon.d.ts +0 -9
- package/dist/esm/types/components/badges/ImageIcon.d.ts +0 -9
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
2
|
-
import { BaseActionProps } from
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { BaseActionProps } from "./BaseActionProps";
|
|
3
3
|
interface IncompleteActionProps extends BaseActionProps {
|
|
4
4
|
message: string;
|
|
5
5
|
buttons: ReactNode;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { ComponentProps } from
|
|
2
|
-
import { ApproveAction } from
|
|
3
|
-
import { BridgeAction } from
|
|
4
|
-
import { FeesAction } from
|
|
5
|
-
import { IncompleteAction } from
|
|
6
|
-
import { ReceiveNFTAction } from
|
|
7
|
-
import { ReceiveTokensAction } from
|
|
8
|
-
import { SendTokensAction } from
|
|
9
|
-
import { StakeAction } from
|
|
10
|
-
import { StartAction } from
|
|
11
|
-
import { SuccessAction } from
|
|
12
|
-
import { SwapAction } from
|
|
13
|
-
import { WrapAction } from
|
|
1
|
+
import { ComponentProps } from "react";
|
|
2
|
+
import { ApproveAction } from "./ApproveAction";
|
|
3
|
+
import { BridgeAction } from "./BridgeAction";
|
|
4
|
+
import { FeesAction } from "./FeesAction";
|
|
5
|
+
import { IncompleteAction } from "./IncompleteAction";
|
|
6
|
+
import { ReceiveNFTAction } from "./ReceiveNFTAction";
|
|
7
|
+
import { ReceiveTokensAction } from "./ReceiveTokensAction";
|
|
8
|
+
import { SendTokensAction } from "./SendTokensAction";
|
|
9
|
+
import { StakeAction } from "./StakeAction";
|
|
10
|
+
import { StartAction } from "./StartAction";
|
|
11
|
+
import { SuccessAction } from "./SuccessAction";
|
|
12
|
+
import { SwapAction } from "./SwapAction";
|
|
13
|
+
import { WrapAction } from "./WrapAction";
|
|
14
14
|
declare const actionComponentMap: {
|
|
15
15
|
readonly success: typeof SuccessAction;
|
|
16
16
|
readonly receive_tokens: typeof ReceiveTokensAction;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
export * from
|
|
13
|
-
export * from
|
|
14
|
-
export * from
|
|
1
|
+
export * from "./ActionLayout";
|
|
2
|
+
export * from "./ApproveAction";
|
|
3
|
+
export * from "./BaseActionProps";
|
|
4
|
+
export * from "./BridgeAction";
|
|
5
|
+
export * from "./FeesAction";
|
|
6
|
+
export * from "./ReceiveNFTAction";
|
|
7
|
+
export * from "./ReceiveTokensAction";
|
|
8
|
+
export * from "./SendTokensAction";
|
|
9
|
+
export * from "./StakeAction";
|
|
10
|
+
export * from "./StartAction";
|
|
11
|
+
export * from "./SuccessAction";
|
|
12
|
+
export * from "./SwapAction";
|
|
13
|
+
export * from "./TransactionAction";
|
|
14
|
+
export * from "./WrapAction";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TransactionActionProps } from
|
|
1
|
+
import { TransactionActionProps } from "./TransactionAction";
|
|
2
2
|
export declare function linkActionTimelineProps(actions: TransactionActionProps[], collapsed: boolean): TransactionActionProps[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
2
|
-
import { ActionStatus } from
|
|
3
|
-
type TransactionItemVariant =
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { ActionStatus } from "../../types/components";
|
|
3
|
+
type TransactionItemVariant = "compact" | "full";
|
|
4
4
|
type TransactionItemType = {
|
|
5
5
|
icon?: ReactNode;
|
|
6
6
|
name: string;
|
|
@@ -1,25 +1,27 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
export * from
|
|
13
|
-
export * from
|
|
14
|
-
export * from
|
|
15
|
-
export * from
|
|
16
|
-
export * from
|
|
17
|
-
export * from
|
|
18
|
-
export * from
|
|
19
|
-
export * from
|
|
20
|
-
export * from
|
|
21
|
-
export * from
|
|
22
|
-
export * from
|
|
23
|
-
export * from
|
|
24
|
-
export * from
|
|
25
|
-
export * from
|
|
1
|
+
export * from "./DropdownMenuItem";
|
|
2
|
+
export * from "./HistoryItem";
|
|
3
|
+
export * from "./ListItem";
|
|
4
|
+
export * from "./MenuItem";
|
|
5
|
+
export * from "./PropertyListItem";
|
|
6
|
+
export * from "./SectionTitle";
|
|
7
|
+
export * from "./SettingsItem";
|
|
8
|
+
export * from "./SwapStepItem";
|
|
9
|
+
export * from "./TransactionAction/ActionLayout";
|
|
10
|
+
export * from "./TransactionAction/ApproveAction";
|
|
11
|
+
export * from "./TransactionAction/BaseActionProps";
|
|
12
|
+
export * from "./TransactionAction/BridgeAction";
|
|
13
|
+
export * from "./TransactionAction/FeesAction";
|
|
14
|
+
export * from "./TransactionAction/IncompleteAction";
|
|
15
|
+
export * from "./TransactionAction/linkActionTimelineProps";
|
|
16
|
+
export * from "./TransactionAction/ReceiveNFTAction";
|
|
17
|
+
export * from "./TransactionAction/ReceiveTokensAction";
|
|
18
|
+
export * from "./TransactionAction/SendTokensAction";
|
|
19
|
+
export * from "./TransactionAction/StakeAction";
|
|
20
|
+
export * from "./TransactionAction/StartAction";
|
|
21
|
+
export * from "./TransactionAction/SuccessAction";
|
|
22
|
+
export * from "./TransactionAction/SwapAction";
|
|
23
|
+
export * from "./TransactionAction/TransactionAction";
|
|
24
|
+
export * from "./TransactionAction/WrapAction";
|
|
25
|
+
export * from "./TransactionItem";
|
|
26
|
+
export * from "./RouteStep";
|
|
27
|
+
export * from "./DropdownMenuTitle";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
2
|
-
import { TextSize } from
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { TextSize } from "../../types/components";
|
|
3
3
|
interface BodyTextProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
size: TextSize;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
1
|
+
export * from "./BodyText";
|
|
2
|
+
export * from "./CaptionText";
|
|
3
|
+
export * from "./HeadingText";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
type WalletViewType =
|
|
1
|
+
type WalletViewType = "paymentMethod" | "recipientEmpty" | "recipientTypingEns" | "recipientTypingAddress";
|
|
2
2
|
interface WalletsViewProps {
|
|
3
3
|
type: WalletViewType;
|
|
4
4
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SwapState, SwapStep } from
|
|
2
|
-
import { SwapStepsCollapsedFooterButton } from
|
|
1
|
+
import { SwapState, SwapStep } from "../../types/components";
|
|
2
|
+
import { SwapStepsCollapsedFooterButton } from "../layout/SwapStepsCollapsed";
|
|
3
3
|
type ChainData = {
|
|
4
4
|
networkName: string;
|
|
5
5
|
logoUrl: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ActionStatus } from
|
|
2
|
-
import { FeesActionProps, TransactionActionProps } from
|
|
1
|
+
import { ActionStatus } from "../../../types/components";
|
|
2
|
+
import { FeesActionProps, TransactionActionProps } from "../../lists/TransactionAction";
|
|
3
3
|
export interface BaseTransactionViewProps {
|
|
4
4
|
title?: string;
|
|
5
5
|
hash: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
2
|
-
import { BaseTransactionViewProps } from
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { BaseTransactionViewProps } from "./BaseTransactionViewProps";
|
|
3
3
|
interface InteractionTTransactionViewProps extends BaseTransactionViewProps {
|
|
4
4
|
image?: ReactNode;
|
|
5
5
|
chain: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ComponentProps } from
|
|
2
|
-
import { BridgeTransactionView } from
|
|
3
|
-
import { BuyNFTTransactionView } from
|
|
4
|
-
import { InteractionTransactionView } from
|
|
5
|
-
import { SwapTransactionView } from
|
|
1
|
+
import { ComponentProps } from "react";
|
|
2
|
+
import { BridgeTransactionView } from "./BridgeTransactionView";
|
|
3
|
+
import { BuyNFTTransactionView } from "./BuyNFTTransactionView";
|
|
4
|
+
import { InteractionTransactionView } from "./InteractionTransactionView";
|
|
5
|
+
import { SwapTransactionView } from "./SwapTransactionView";
|
|
6
6
|
declare const componentMap: {
|
|
7
7
|
readonly swap: typeof SwapTransactionView;
|
|
8
8
|
readonly buy_nft: typeof BuyNFTTransactionView;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ComponentProps, ReactNode } from
|
|
2
|
-
import { FeesActionProps, TransactionActionProps } from
|
|
3
|
-
interface TransactionViewLayoutProps extends ComponentProps<
|
|
1
|
+
import { ComponentProps, ReactNode } from "react";
|
|
2
|
+
import { FeesActionProps, TransactionActionProps } from "../../lists/TransactionAction";
|
|
3
|
+
interface TransactionViewLayoutProps extends ComponentProps<"div"> {
|
|
4
4
|
isLoading?: boolean;
|
|
5
5
|
header?: ReactNode;
|
|
6
6
|
properties?: ReactNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
1
|
+
export * from "./BaseTransactionViewProps";
|
|
2
|
+
export * from "./BuyNFTTransactionView";
|
|
3
|
+
export * from "./InteractionTransactionView";
|
|
4
|
+
export * from "./SwapTransactionView";
|
|
5
|
+
export * from "./TransactionView";
|
|
6
|
+
export * from "./TransactionViewLayout";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
export * from
|
|
13
|
-
export * from
|
|
1
|
+
export * from "./AssetsView";
|
|
2
|
+
export * from "./MainView";
|
|
3
|
+
export * from "./RecipientView";
|
|
4
|
+
export * from "./SwapDetailsView";
|
|
5
|
+
export * from "./SwapProgressView";
|
|
6
|
+
export * from "./TransactionView/BaseTransactionViewProps";
|
|
7
|
+
export * from "./TransactionView/BridgeTransactionView";
|
|
8
|
+
export * from "./TransactionView/BuyNFTTransactionView";
|
|
9
|
+
export * from "./TransactionView/InteractionTransactionView";
|
|
10
|
+
export * from "./TransactionView/SwapTransactionView";
|
|
11
|
+
export * from "./TransactionView/TransactionView";
|
|
12
|
+
export * from "./TransactionView/TransactionViewLayout";
|
|
13
|
+
export * from "./WalletsView";
|
|
@@ -34,7 +34,7 @@ export declare const ANIMATION_TIMINGS: {
|
|
|
34
34
|
SHOW_ROUTE: string;
|
|
35
35
|
HIDE_ROUTE: string;
|
|
36
36
|
};
|
|
37
|
-
type MediaQuery =
|
|
37
|
+
type MediaQuery = "MOBILE_LG" | "MOBILE_SM_HEIGHT" | "MOBILE_XS" | "MOBILE_XS_HEIGHT";
|
|
38
38
|
export declare const MEDIA_QUERIES: Record<MediaQuery, {
|
|
39
39
|
media: string;
|
|
40
40
|
key: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Config } from
|
|
1
|
+
import type { Config } from "tailwindcss";
|
|
2
2
|
export declare const baseTailwindConfig: Config;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { MEDIA_QUERIES, CSS_VARS } from
|
|
2
|
-
export { darkTheme, lightTheme } from
|
|
3
|
-
export { baseTailwindConfig } from
|
|
4
|
-
export { cn } from
|
|
1
|
+
export { MEDIA_QUERIES, CSS_VARS } from "./constants";
|
|
2
|
+
export { darkTheme, lightTheme } from "./themes";
|
|
3
|
+
export { baseTailwindConfig } from "./design-system";
|
|
4
|
+
export { cn } from "./utils";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ClassValue } from
|
|
2
|
-
import { ComponentProps, ElementType } from
|
|
1
|
+
import { ClassValue } from "clsx";
|
|
2
|
+
import { ComponentProps, ElementType } from "react";
|
|
3
3
|
/**
|
|
4
4
|
* Combines multiple class names into a single string
|
|
5
5
|
*
|
|
@@ -20,10 +20,19 @@ export declare const formatTime: (timestampSeconds: number) => string;
|
|
|
20
20
|
export declare const formatRelativeTime: (timestampSeconds: number) => string;
|
|
21
21
|
export declare const formatRelativeDate: (timestampSeconds: number) => string;
|
|
22
22
|
export declare function capitalize(text: string): string;
|
|
23
|
-
type Falsy = false | null | undefined | 0 |
|
|
23
|
+
type Falsy = false | null | undefined | 0 | "";
|
|
24
24
|
export declare function truthy<T>(value: T): value is Exclude<T, Falsy>;
|
|
25
25
|
export declare function truncateHash(hash: string): string;
|
|
26
26
|
export declare const styled: <Tag extends keyof JSX.IntrinsicElements>(tag: Tag, className: string) => import("react").ForwardRefExoticComponent<import("react").PropsWithoutRef<ComponentProps<Tag>> & import("react").RefAttributes<ElementType<Tag>>>;
|
|
27
27
|
export declare const mergeProps: <Tag extends keyof JSX.IntrinsicElements = any>(a: ComponentProps<Tag>, b: ComponentProps<Tag>) => ComponentProps<Tag>;
|
|
28
28
|
export declare const calcLerp: (a: string, b: string, t: string | number) => string;
|
|
29
|
+
/**
|
|
30
|
+
* Returns an array including the first `count` unique values of the array
|
|
31
|
+
* If not enough unique values are found, the array is returned as is, up to `count` items
|
|
32
|
+
* @param arr - The array to filter
|
|
33
|
+
* @param key - The key to use for uniqueness
|
|
34
|
+
* @param count - The number of unique values to return
|
|
35
|
+
* @returns The filtered array
|
|
36
|
+
*/
|
|
37
|
+
export declare const getFirstUniques: <T>(array: T[], key: keyof T, count: number) => T[];
|
|
29
38
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
1
|
+
export * from "./useDropdownMenu";
|
|
2
|
+
export * from "./useMediaQuery";
|
|
3
|
+
export * from "./useCollapsibleMenu";
|
|
4
|
+
export * from "./useRect";
|
|
5
|
+
export * from "./useVersion";
|
|
6
|
+
export * from "./useTimer";
|
|
@@ -1,10 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type DropdownPosition = "top" | "bottom" | "center";
|
|
3
|
+
export type DropdownStyles = {
|
|
4
|
+
position: DropdownPosition;
|
|
5
|
+
maxHeight: number | null;
|
|
6
|
+
};
|
|
7
|
+
interface UseDropdownMenuParams {
|
|
3
8
|
initialIsModalOpen?: boolean;
|
|
4
|
-
|
|
9
|
+
itemsContainerRef?: React.RefObject<HTMLElement>;
|
|
10
|
+
}
|
|
11
|
+
export declare function useDropdownMenu(props?: UseDropdownMenuParams): {
|
|
5
12
|
isDropdownOpen: boolean;
|
|
6
13
|
openDropdown: () => void;
|
|
7
14
|
closeDropdown: () => void;
|
|
8
15
|
dropdownRef: React.RefObject<HTMLDivElement>;
|
|
9
16
|
openDropdownButtonRef: React.RefObject<HTMLButtonElement>;
|
|
17
|
+
dropdownStyles: DropdownStyles | null;
|
|
18
|
+
itemRef: React.RefObject<HTMLLIElement>;
|
|
19
|
+
menuRef: React.RefObject<HTMLDivElement>;
|
|
10
20
|
};
|
|
21
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
1
|
+
export * from "./components";
|
|
2
|
+
export * from "./providers";
|
|
3
|
+
export * from "./hooks";
|
|
4
|
+
export * from "./types";
|
|
5
|
+
export * from "./core";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import
|
|
3
|
-
import { ThemeType } from
|
|
4
|
-
import { SquidTheme } from
|
|
2
|
+
import "../styles/compiled-tailwind.css";
|
|
3
|
+
import { ThemeType } from "../types/components";
|
|
4
|
+
import { SquidTheme } from "../types/config";
|
|
5
5
|
export declare function SquidConfigProvider({ theme, children, themeType, }: {
|
|
6
6
|
theme?: SquidTheme;
|
|
7
7
|
children?: React.ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./SquidConfigProvider";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Meta, StoryObj } from
|
|
2
|
-
import { BadgeImage } from
|
|
1
|
+
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { BadgeImage } from "../../components/badges/BadgeImage";
|
|
3
3
|
declare const meta: Meta<typeof BadgeImage>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof meta>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Meta, StoryObj } from
|
|
2
|
-
import { IconLabel } from
|
|
1
|
+
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { IconLabel } from "../../components/badges/IconLabel";
|
|
3
3
|
declare const meta: Meta<typeof IconLabel>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof meta>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Meta, StoryObj } from
|
|
2
|
-
import {
|
|
3
|
-
declare const meta: Meta<typeof
|
|
1
|
+
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { Image } from "../../components/badges/Image";
|
|
3
|
+
declare const meta: Meta<typeof Image>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof meta>;
|
|
6
6
|
export declare const Square: Story;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Meta, StoryObj } from
|
|
2
|
-
import { Loader } from
|
|
1
|
+
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { Loader } from "../../components/icons/Loader";
|
|
3
3
|
declare const meta: Meta<typeof Loader>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof meta>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Meta, StoryObj } from
|
|
2
|
-
import { LoadingSkeleton } from
|
|
1
|
+
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { LoadingSkeleton } from "../../components/badges/LoadingSkeleton";
|
|
3
3
|
declare const meta: Meta<typeof LoadingSkeleton>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof meta>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Meta, StoryObj } from
|
|
2
|
-
import { TransactionState } from
|
|
1
|
+
import { Meta, StoryObj } from "@storybook/react/*";
|
|
2
|
+
import { TransactionState } from "../../components/badges/TransactionState";
|
|
3
3
|
declare const meta: Meta<typeof TransactionState>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof meta>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Meta, StoryObj } from
|
|
2
|
-
import { UsdAmount } from
|
|
1
|
+
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { UsdAmount } from "../../components/badges/UsdAmount";
|
|
3
3
|
declare const meta: Meta<typeof UsdAmount>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof meta>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Meta, StoryObj } from
|
|
2
|
-
import { WalletLink } from
|
|
1
|
+
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { WalletLink } from "../../components/badges/WalletLink";
|
|
3
3
|
declare const meta: Meta<typeof WalletLink>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof meta>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Meta, StoryObj } from
|
|
2
|
-
import { AddressButton } from
|
|
1
|
+
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { AddressButton } from "../../components/buttons/AddressButton";
|
|
3
3
|
declare const meta: Meta<typeof AddressButton>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof meta>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Meta, StoryObj } from
|
|
2
|
-
import { ArrowButton } from
|
|
1
|
+
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { ArrowButton } from "../../components/buttons/ArrowButton";
|
|
3
3
|
declare const meta: Meta<typeof ArrowButton>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof meta>;
|