@coinbase/cds-web 0.0.0 → 8.13.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/CHANGELOG.md +45 -0
- package/README.md +1 -0
- package/dts/AccessibilityAnnouncer/AccessibilityAnnouncer.d.ts +32 -0
- package/dts/AccessibilityAnnouncer/AccessibilityAnnouncer.d.ts.map +1 -0
- package/dts/accordion/Accordion.d.ts +17 -0
- package/dts/accordion/Accordion.d.ts.map +1 -0
- package/dts/accordion/AccordionHeader.d.ts +69 -0
- package/dts/accordion/AccordionHeader.d.ts.map +1 -0
- package/dts/accordion/AccordionItem.d.ts +31 -0
- package/dts/accordion/AccordionItem.d.ts.map +1 -0
- package/dts/accordion/AccordionPanel.d.ts +33 -0
- package/dts/accordion/AccordionPanel.d.ts.map +1 -0
- package/dts/accordion/__figma__/Accordion.figma.d.ts +2 -0
- package/dts/accordion/__figma__/Accordion.figma.d.ts.map +1 -0
- package/dts/accordion/index.d.ts +3 -0
- package/dts/accordion/index.d.ts.map +1 -0
- package/dts/accordion/utils.d.ts +3 -0
- package/dts/accordion/utils.d.ts.map +1 -0
- package/dts/animation/Lottie.d.ts +20 -0
- package/dts/animation/Lottie.d.ts.map +1 -0
- package/dts/animation/LottieStatusAnimation.d.ts +11 -0
- package/dts/animation/LottieStatusAnimation.d.ts.map +1 -0
- package/dts/animation/NewAnimatePresence.d.ts +7 -0
- package/dts/animation/NewAnimatePresence.d.ts.map +1 -0
- package/dts/animation/convertMotionConfig.d.ts +33 -0
- package/dts/animation/convertMotionConfig.d.ts.map +1 -0
- package/dts/animation/index.d.ts +3 -0
- package/dts/animation/index.d.ts.map +1 -0
- package/dts/animation/types.d.ts +55 -0
- package/dts/animation/types.d.ts.map +1 -0
- package/dts/animation/useLottieHandlers.d.ts +3 -0
- package/dts/animation/useLottieHandlers.d.ts.map +1 -0
- package/dts/animation/useLottieListeners.d.ts +6 -0
- package/dts/animation/useLottieListeners.d.ts.map +1 -0
- package/dts/animation/useLottieLoader.d.ts +15 -0
- package/dts/animation/useLottieLoader.d.ts.map +1 -0
- package/dts/banner/Banner.d.ts +63 -0
- package/dts/banner/Banner.d.ts.map +1 -0
- package/dts/buttons/AvatarButton.d.ts +26 -0
- package/dts/buttons/AvatarButton.d.ts.map +1 -0
- package/dts/buttons/Button.d.ts +72 -0
- package/dts/buttons/Button.d.ts.map +1 -0
- package/dts/buttons/ButtonGroup.d.ts +23 -0
- package/dts/buttons/ButtonGroup.d.ts.map +1 -0
- package/dts/buttons/IconButton.d.ts +32 -0
- package/dts/buttons/IconButton.d.ts.map +1 -0
- package/dts/buttons/IconCounterButton.d.ts +31 -0
- package/dts/buttons/IconCounterButton.d.ts.map +1 -0
- package/dts/buttons/Tile.d.ts +17 -0
- package/dts/buttons/Tile.d.ts.map +1 -0
- package/dts/buttons/TileButton.d.ts +25 -0
- package/dts/buttons/TileButton.d.ts.map +1 -0
- package/dts/buttons/__figma__/AvatarButton.figma.d.ts +2 -0
- package/dts/buttons/__figma__/AvatarButton.figma.d.ts.map +1 -0
- package/dts/buttons/__figma__/Button.figma.d.ts +2 -0
- package/dts/buttons/__figma__/Button.figma.d.ts.map +1 -0
- package/dts/buttons/__figma__/ButtonGroup.figma.d.ts +2 -0
- package/dts/buttons/__figma__/ButtonGroup.figma.d.ts.map +1 -0
- package/dts/buttons/__figma__/IconButton.figma.d.ts +2 -0
- package/dts/buttons/__figma__/IconButton.figma.d.ts.map +1 -0
- package/dts/buttons/__figma__/TileButton.figma.d.ts +2 -0
- package/dts/buttons/__figma__/TileButton.figma.d.ts.map +1 -0
- package/dts/buttons/index.d.ts +7 -0
- package/dts/buttons/index.d.ts.map +1 -0
- package/dts/cards/AnnouncementCard.d.ts +8 -0
- package/dts/cards/AnnouncementCard.d.ts.map +1 -0
- package/dts/cards/Card.d.ts +18 -0
- package/dts/cards/Card.d.ts.map +1 -0
- package/dts/cards/CardBody.d.ts +55 -0
- package/dts/cards/CardBody.d.ts.map +1 -0
- package/dts/cards/CardFooter.d.ts +11 -0
- package/dts/cards/CardFooter.d.ts.map +1 -0
- package/dts/cards/CardGroup.d.ts +11 -0
- package/dts/cards/CardGroup.d.ts.map +1 -0
- package/dts/cards/CardHeader.d.ts +4 -0
- package/dts/cards/CardHeader.d.ts.map +1 -0
- package/dts/cards/CardMedia.d.ts +4 -0
- package/dts/cards/CardMedia.d.ts.map +1 -0
- package/dts/cards/CardRemoteImage.d.ts +8 -0
- package/dts/cards/CardRemoteImage.d.ts.map +1 -0
- package/dts/cards/ContainedAssetCard.d.ts +38 -0
- package/dts/cards/ContainedAssetCard.d.ts.map +1 -0
- package/dts/cards/ContentCard/ContentCard.d.ts +17 -0
- package/dts/cards/ContentCard/ContentCard.d.ts.map +1 -0
- package/dts/cards/ContentCard/ContentCardBody.d.ts +36 -0
- package/dts/cards/ContentCard/ContentCardBody.d.ts.map +1 -0
- package/dts/cards/ContentCard/ContentCardFooter.d.ts +19 -0
- package/dts/cards/ContentCard/ContentCardFooter.d.ts.map +1 -0
- package/dts/cards/ContentCard/ContentCardHeader.d.ts +32 -0
- package/dts/cards/ContentCard/ContentCardHeader.d.ts.map +1 -0
- package/dts/cards/ContentCard/__figma__/ContentCard.figma.d.ts +2 -0
- package/dts/cards/ContentCard/__figma__/ContentCard.figma.d.ts.map +1 -0
- package/dts/cards/ContentCard/__figma__/ContentCardBody.figma.d.ts +2 -0
- package/dts/cards/ContentCard/__figma__/ContentCardBody.figma.d.ts.map +1 -0
- package/dts/cards/ContentCard/__figma__/ContentCardFooter.figma.d.ts +2 -0
- package/dts/cards/ContentCard/__figma__/ContentCardFooter.figma.d.ts.map +1 -0
- package/dts/cards/ContentCard/__figma__/ContentCardHeader.figma.d.ts +2 -0
- package/dts/cards/ContentCard/__figma__/ContentCardHeader.figma.d.ts.map +1 -0
- package/dts/cards/ContentCard/index.d.ts +5 -0
- package/dts/cards/ContentCard/index.d.ts.map +1 -0
- package/dts/cards/DataCard.d.ts +20 -0
- package/dts/cards/DataCard.d.ts.map +1 -0
- package/dts/cards/FeatureEntryCard.d.ts +9 -0
- package/dts/cards/FeatureEntryCard.d.ts.map +1 -0
- package/dts/cards/FeedCard.d.ts +37 -0
- package/dts/cards/FeedCard.d.ts.map +1 -0
- package/dts/cards/FloatingAssetCard.d.ts +37 -0
- package/dts/cards/FloatingAssetCard.d.ts.map +1 -0
- package/dts/cards/LikeButton.d.ts +21 -0
- package/dts/cards/LikeButton.d.ts.map +1 -0
- package/dts/cards/NudgeCard.d.ts +72 -0
- package/dts/cards/NudgeCard.d.ts.map +1 -0
- package/dts/cards/UpsellCard.d.ts +55 -0
- package/dts/cards/UpsellCard.d.ts.map +1 -0
- package/dts/cards/__figma__/AnnouncementCard.figma.d.ts +2 -0
- package/dts/cards/__figma__/AnnouncementCard.figma.d.ts.map +1 -0
- package/dts/cards/__figma__/ContainedAssetCard.figma.d.ts +2 -0
- package/dts/cards/__figma__/ContainedAssetCard.figma.d.ts.map +1 -0
- package/dts/cards/__figma__/FloatingAssetCard.figma.d.ts +2 -0
- package/dts/cards/__figma__/FloatingAssetCard.figma.d.ts.map +1 -0
- package/dts/cards/__figma__/NudgeCard.figma.d.ts +2 -0
- package/dts/cards/__figma__/NudgeCard.figma.d.ts.map +1 -0
- package/dts/cards/__figma__/UpsellCard.figma.d.ts +2 -0
- package/dts/cards/__figma__/UpsellCard.figma.d.ts.map +1 -0
- package/dts/cards/index.d.ts +15 -0
- package/dts/cards/index.d.ts.map +1 -0
- package/dts/carousel/Carousel.d.ts +259 -0
- package/dts/carousel/Carousel.d.ts.map +1 -0
- package/dts/carousel/CarouselItem.d.ts +15 -0
- package/dts/carousel/CarouselItem.d.ts.map +1 -0
- package/dts/carousel/DefaultCarouselNavigation.d.ts +75 -0
- package/dts/carousel/DefaultCarouselNavigation.d.ts.map +1 -0
- package/dts/carousel/DefaultCarouselPagination.d.ts +34 -0
- package/dts/carousel/DefaultCarouselPagination.d.ts.map +1 -0
- package/dts/carousel/index.d.ts +5 -0
- package/dts/carousel/index.d.ts.map +1 -0
- package/dts/cells/Cell.d.ts +67 -0
- package/dts/cells/Cell.d.ts.map +1 -0
- package/dts/cells/CellAccessory.d.ts +20 -0
- package/dts/cells/CellAccessory.d.ts.map +1 -0
- package/dts/cells/CellDetail.d.ts +18 -0
- package/dts/cells/CellDetail.d.ts.map +1 -0
- package/dts/cells/CellHelperText.d.ts +13 -0
- package/dts/cells/CellHelperText.d.ts.map +1 -0
- package/dts/cells/CellMedia.d.ts +34 -0
- package/dts/cells/CellMedia.d.ts.map +1 -0
- package/dts/cells/ContentCell.d.ts +34 -0
- package/dts/cells/ContentCell.d.ts.map +1 -0
- package/dts/cells/ContentCellFallback.d.ts +17 -0
- package/dts/cells/ContentCellFallback.d.ts.map +1 -0
- package/dts/cells/ListCell.d.ts +51 -0
- package/dts/cells/ListCell.d.ts.map +1 -0
- package/dts/cells/ListCellFallback.d.ts +50 -0
- package/dts/cells/ListCellFallback.d.ts.map +1 -0
- package/dts/cells/MediaFallback.d.ts +8 -0
- package/dts/cells/MediaFallback.d.ts.map +1 -0
- package/dts/cells/__figma__/ContentCell.figma.d.ts +2 -0
- package/dts/cells/__figma__/ContentCell.figma.d.ts.map +1 -0
- package/dts/cells/__figma__/ListCell.figma.d.ts +2 -0
- package/dts/cells/__figma__/ListCell.figma.d.ts.map +1 -0
- package/dts/cells/index.d.ts +7 -0
- package/dts/cells/index.d.ts.map +1 -0
- package/dts/chips/Chip.d.ts +10 -0
- package/dts/chips/Chip.d.ts.map +1 -0
- package/dts/chips/ChipProps.d.ts +51 -0
- package/dts/chips/ChipProps.d.ts.map +1 -0
- package/dts/chips/InputChip.d.ts +8 -0
- package/dts/chips/InputChip.d.ts.map +1 -0
- package/dts/chips/SelectChip.d.ts +19 -0
- package/dts/chips/SelectChip.d.ts.map +1 -0
- package/dts/chips/TabbedChips.d.ts +14 -0
- package/dts/chips/TabbedChips.d.ts.map +1 -0
- package/dts/chips/__figma__/InputChip.figma.d.ts +2 -0
- package/dts/chips/__figma__/InputChip.figma.d.ts.map +1 -0
- package/dts/chips/__figma__/SelectChip.figma.d.ts +2 -0
- package/dts/chips/__figma__/SelectChip.figma.d.ts.map +1 -0
- package/dts/chips/__figma__/TabbedChips.figma.d.ts +2 -0
- package/dts/chips/__figma__/TabbedChips.figma.d.ts.map +1 -0
- package/dts/chips/index.d.ts +6 -0
- package/dts/chips/index.d.ts.map +1 -0
- package/dts/coachmark/Coachmark.d.ts +44 -0
- package/dts/coachmark/Coachmark.d.ts.map +1 -0
- package/dts/coachmark/__figma__/Coachmark.figma.d.ts +2 -0
- package/dts/coachmark/__figma__/Coachmark.figma.d.ts.map +1 -0
- package/dts/collapsible/Collapsible.d.ts +71 -0
- package/dts/collapsible/Collapsible.d.ts.map +1 -0
- package/dts/collapsible/index.d.ts +2 -0
- package/dts/collapsible/index.d.ts.map +1 -0
- package/dts/collapsible/useCollapsibleMotionProps.d.ts +5565 -0
- package/dts/collapsible/useCollapsibleMotionProps.d.ts.map +1 -0
- package/dts/controls/Checkbox.d.ts +23 -0
- package/dts/controls/Checkbox.d.ts.map +1 -0
- package/dts/controls/CheckboxCell.d.ts +49 -0
- package/dts/controls/CheckboxCell.d.ts.map +1 -0
- package/dts/controls/CheckboxGroup.d.ts +60 -0
- package/dts/controls/CheckboxGroup.d.ts.map +1 -0
- package/dts/controls/Control.d.ts +47 -0
- package/dts/controls/Control.d.ts.map +1 -0
- package/dts/controls/ControlGroup.d.ts +44 -0
- package/dts/controls/ControlGroup.d.ts.map +1 -0
- package/dts/controls/HelperText.d.ts +15 -0
- package/dts/controls/HelperText.d.ts.map +1 -0
- package/dts/controls/InputIcon.d.ts +18 -0
- package/dts/controls/InputIcon.d.ts.map +1 -0
- package/dts/controls/InputIconButton.d.ts +17 -0
- package/dts/controls/InputIconButton.d.ts.map +1 -0
- package/dts/controls/InputLabel.d.ts +5 -0
- package/dts/controls/InputLabel.d.ts.map +1 -0
- package/dts/controls/InputStack.d.ts +77 -0
- package/dts/controls/InputStack.d.ts.map +1 -0
- package/dts/controls/NativeInput.d.ts +48 -0
- package/dts/controls/NativeInput.d.ts.map +1 -0
- package/dts/controls/NativeTextArea.d.ts +20 -0
- package/dts/controls/NativeTextArea.d.ts.map +1 -0
- package/dts/controls/Radio.d.ts +17 -0
- package/dts/controls/Radio.d.ts.map +1 -0
- package/dts/controls/RadioCell.d.ts +49 -0
- package/dts/controls/RadioCell.d.ts.map +1 -0
- package/dts/controls/RadioGroup.d.ts +65 -0
- package/dts/controls/RadioGroup.d.ts.map +1 -0
- package/dts/controls/SearchInput.d.ts +146 -0
- package/dts/controls/SearchInput.d.ts.map +1 -0
- package/dts/controls/SegmentedControl.d.ts +49 -0
- package/dts/controls/SegmentedControl.d.ts.map +1 -0
- package/dts/controls/Select.d.ts +54 -0
- package/dts/controls/Select.d.ts.map +1 -0
- package/dts/controls/SelectOption.d.ts +39 -0
- package/dts/controls/SelectOption.d.ts.map +1 -0
- package/dts/controls/SelectStack.d.ts +25 -0
- package/dts/controls/SelectStack.d.ts.map +1 -0
- package/dts/controls/SelectTrigger.d.ts +24 -0
- package/dts/controls/SelectTrigger.d.ts.map +1 -0
- package/dts/controls/Switch.d.ts +40 -0
- package/dts/controls/Switch.d.ts.map +1 -0
- package/dts/controls/TextInput.d.ts +139 -0
- package/dts/controls/TextInput.d.ts.map +1 -0
- package/dts/controls/__figma__/Checkbox.figma.d.ts +2 -0
- package/dts/controls/__figma__/Checkbox.figma.d.ts.map +1 -0
- package/dts/controls/__figma__/CheckboxCell.figma.d.ts +2 -0
- package/dts/controls/__figma__/CheckboxCell.figma.d.ts.map +1 -0
- package/dts/controls/__figma__/CheckboxGroup.figma.d.ts +2 -0
- package/dts/controls/__figma__/CheckboxGroup.figma.d.ts.map +1 -0
- package/dts/controls/__figma__/NativeTextArea.figma.d.ts +2 -0
- package/dts/controls/__figma__/NativeTextArea.figma.d.ts.map +1 -0
- package/dts/controls/__figma__/RadioCell.figma.d.ts +2 -0
- package/dts/controls/__figma__/RadioCell.figma.d.ts.map +1 -0
- package/dts/controls/__figma__/RadioGroup.figma.d.ts +2 -0
- package/dts/controls/__figma__/RadioGroup.figma.d.ts.map +1 -0
- package/dts/controls/__figma__/SearchInput.figma.d.ts +2 -0
- package/dts/controls/__figma__/SearchInput.figma.d.ts.map +1 -0
- package/dts/controls/__figma__/Select.figma.d.ts +2 -0
- package/dts/controls/__figma__/Select.figma.d.ts.map +1 -0
- package/dts/controls/__figma__/SelectOption.figma.d.ts +2 -0
- package/dts/controls/__figma__/SelectOption.figma.d.ts.map +1 -0
- package/dts/controls/__figma__/Switch.figma.d.ts +2 -0
- package/dts/controls/__figma__/Switch.figma.d.ts.map +1 -0
- package/dts/controls/__figma__/TextInput.figma.d.ts +2 -0
- package/dts/controls/__figma__/TextInput.figma.d.ts.map +1 -0
- package/dts/controls/context.d.ts +6 -0
- package/dts/controls/context.d.ts.map +1 -0
- package/dts/controls/index.d.ts +16 -0
- package/dts/controls/index.d.ts.map +1 -0
- package/dts/controls/selectContext.d.ts +13 -0
- package/dts/controls/selectContext.d.ts.map +1 -0
- package/dts/controls/useHandleRadioSelect.d.ts +4 -0
- package/dts/controls/useHandleRadioSelect.d.ts.map +1 -0
- package/dts/controls/useRefocusTrigger.d.ts +5 -0
- package/dts/controls/useRefocusTrigger.d.ts.map +1 -0
- package/dts/controls/useSelectionCellControlHeight.d.ts +15 -0
- package/dts/controls/useSelectionCellControlHeight.d.ts.map +1 -0
- package/dts/core/createThemeCssVars.d.ts +4 -0
- package/dts/core/createThemeCssVars.d.ts.map +1 -0
- package/dts/core/polymorphism.d.ts +27 -0
- package/dts/core/polymorphism.d.ts.map +1 -0
- package/dts/core/theme.d.ts +162 -0
- package/dts/core/theme.d.ts.map +1 -0
- package/dts/cx.d.ts +30 -0
- package/dts/cx.d.ts.map +1 -0
- package/dts/dates/Calendar.d.ts +109 -0
- package/dts/dates/Calendar.d.ts.map +1 -0
- package/dts/dates/DateInput.d.ts +23 -0
- package/dts/dates/DateInput.d.ts.map +1 -0
- package/dts/dates/DatePicker.d.ts +155 -0
- package/dts/dates/DatePicker.d.ts.map +1 -0
- package/dts/dates/__figma__/DatePicker.figma.d.ts +2 -0
- package/dts/dates/__figma__/DatePicker.figma.d.ts.map +1 -0
- package/dts/defaultFontStyles.d.ts +2 -0
- package/dts/defaultFontStyles.d.ts.map +1 -0
- package/dts/dots/DotCount.d.ts +96 -0
- package/dts/dots/DotCount.d.ts.map +1 -0
- package/dts/dots/DotStatusColor.d.ts +39 -0
- package/dts/dots/DotStatusColor.d.ts.map +1 -0
- package/dts/dots/DotSymbol.d.ts +69 -0
- package/dts/dots/DotSymbol.d.ts.map +1 -0
- package/dts/dots/__figma__/DotCount.figma.d.ts +2 -0
- package/dts/dots/__figma__/DotCount.figma.d.ts.map +1 -0
- package/dts/dots/__figma__/DotStatusColor.figma.d.ts +2 -0
- package/dts/dots/__figma__/DotStatusColor.figma.d.ts.map +1 -0
- package/dts/dots/__figma__/DotSymbol.figma.d.ts +2 -0
- package/dts/dots/__figma__/DotSymbol.figma.d.ts.map +1 -0
- package/dts/dots/dotStyles.d.ts +20 -0
- package/dts/dots/dotStyles.d.ts.map +1 -0
- package/dts/dots/index.d.ts +4 -0
- package/dts/dots/index.d.ts.map +1 -0
- package/dts/dropdown/Dropdown.d.ts +40 -0
- package/dts/dropdown/Dropdown.d.ts.map +1 -0
- package/dts/dropdown/DropdownContent.d.ts +18 -0
- package/dts/dropdown/DropdownContent.d.ts.map +1 -0
- package/dts/dropdown/DropdownProps.d.ts +77 -0
- package/dts/dropdown/DropdownProps.d.ts.map +1 -0
- package/dts/dropdown/MenuItem.d.ts +23 -0
- package/dts/dropdown/MenuItem.d.ts.map +1 -0
- package/dts/dropdown/__figma__/Dropdown.figma.d.ts +2 -0
- package/dts/dropdown/__figma__/Dropdown.figma.d.ts.map +1 -0
- package/dts/dropdown/index.d.ts +4 -0
- package/dts/dropdown/index.d.ts.map +1 -0
- package/dts/dropdown/useResponsiveHeight.d.ts +22 -0
- package/dts/dropdown/useResponsiveHeight.d.ts.map +1 -0
- package/dts/globalStyles.d.ts +2 -0
- package/dts/globalStyles.d.ts.map +1 -0
- package/dts/hooks/useA11yControlledVisibility.d.ts +22 -0
- package/dts/hooks/useA11yControlledVisibility.d.ts.map +1 -0
- package/dts/hooks/useA11yLabels.d.ts +45 -0
- package/dts/hooks/useA11yLabels.d.ts.map +1 -0
- package/dts/hooks/useBreakpoints.d.ts +19 -0
- package/dts/hooks/useBreakpoints.d.ts.map +1 -0
- package/dts/hooks/useCellSpacing.d.ts +298 -0
- package/dts/hooks/useCellSpacing.d.ts.map +1 -0
- package/dts/hooks/useCheckboxGroupState.d.ts +27 -0
- package/dts/hooks/useCheckboxGroupState.d.ts.map +1 -0
- package/dts/hooks/useDimensions.d.ts +73 -0
- package/dts/hooks/useDimensions.d.ts.map +1 -0
- package/dts/hooks/useEventHandler.d.ts +7 -0
- package/dts/hooks/useEventHandler.d.ts.map +1 -0
- package/dts/hooks/useHasMounted.d.ts +2 -0
- package/dts/hooks/useHasMounted.d.ts.map +1 -0
- package/dts/hooks/useIsBrowser.d.ts +3 -0
- package/dts/hooks/useIsBrowser.d.ts.map +1 -0
- package/dts/hooks/useIsoEffect.d.ts +3 -0
- package/dts/hooks/useIsoEffect.d.ts.map +1 -0
- package/dts/hooks/useMediaQuery.d.ts +2 -0
- package/dts/hooks/useMediaQuery.d.ts.map +1 -0
- package/dts/hooks/useScrollBlocker.d.ts +2 -0
- package/dts/hooks/useScrollBlocker.d.ts.map +1 -0
- package/dts/hooks/useTheme.d.ts +4 -0
- package/dts/hooks/useTheme.d.ts.map +1 -0
- package/dts/hooks/useThemeContext.d.ts +8 -0
- package/dts/hooks/useThemeContext.d.ts.map +1 -0
- package/dts/icons/Icon.d.ts +56 -0
- package/dts/icons/Icon.d.ts.map +1 -0
- package/dts/icons/LogoMark.d.ts +9 -0
- package/dts/icons/LogoMark.d.ts.map +1 -0
- package/dts/icons/LogoWordmark.d.ts +8 -0
- package/dts/icons/LogoWordmark.d.ts.map +1 -0
- package/dts/icons/SubBrandLogoMark.d.ts +9 -0
- package/dts/icons/SubBrandLogoMark.d.ts.map +1 -0
- package/dts/icons/SubBrandLogoWordmark.d.ts +8 -0
- package/dts/icons/SubBrandLogoWordmark.d.ts.map +1 -0
- package/dts/icons/__figma__/Icon.figma.d.ts +2 -0
- package/dts/icons/__figma__/Icon.figma.d.ts.map +1 -0
- package/dts/icons/__figma__/LogoMark.figma.d.ts +2 -0
- package/dts/icons/__figma__/LogoMark.figma.d.ts.map +1 -0
- package/dts/icons/__figma__/LogoWordmark.figma.d.ts +2 -0
- package/dts/icons/__figma__/LogoWordmark.figma.d.ts.map +1 -0
- package/dts/icons/__figma__/SubBrandLogoMark.figma.d.ts +2 -0
- package/dts/icons/__figma__/SubBrandLogoMark.figma.d.ts.map +1 -0
- package/dts/icons/__figma__/SubBrandLogoWordmark.figma.d.ts +2 -0
- package/dts/icons/__figma__/SubBrandLogoWordmark.figma.d.ts.map +1 -0
- package/dts/icons/index.d.ts +6 -0
- package/dts/icons/index.d.ts.map +1 -0
- package/dts/illustrations/HeroSquare.d.ts +19 -0
- package/dts/illustrations/HeroSquare.d.ts.map +1 -0
- package/dts/illustrations/Pictogram.d.ts +18 -0
- package/dts/illustrations/Pictogram.d.ts.map +1 -0
- package/dts/illustrations/SpotIcon.d.ts +18 -0
- package/dts/illustrations/SpotIcon.d.ts.map +1 -0
- package/dts/illustrations/SpotRectangle.d.ts +19 -0
- package/dts/illustrations/SpotRectangle.d.ts.map +1 -0
- package/dts/illustrations/SpotSquare.d.ts +18 -0
- package/dts/illustrations/SpotSquare.d.ts.map +1 -0
- package/dts/illustrations/__figma__/HeroSquare.figma.d.ts +2 -0
- package/dts/illustrations/__figma__/HeroSquare.figma.d.ts.map +1 -0
- package/dts/illustrations/__figma__/Pictogram.figma.d.ts +2 -0
- package/dts/illustrations/__figma__/Pictogram.figma.d.ts.map +1 -0
- package/dts/illustrations/__figma__/SpotIcon.figma.d.ts +2 -0
- package/dts/illustrations/__figma__/SpotIcon.figma.d.ts.map +1 -0
- package/dts/illustrations/__figma__/SpotRectangle.figma.d.ts +2 -0
- package/dts/illustrations/__figma__/SpotRectangle.figma.d.ts.map +1 -0
- package/dts/illustrations/__figma__/SpotSquare.figma.d.ts +2 -0
- package/dts/illustrations/__figma__/SpotSquare.figma.d.ts.map +1 -0
- package/dts/illustrations/createIllustration.d.ts +68 -0
- package/dts/illustrations/createIllustration.d.ts.map +1 -0
- package/dts/illustrations/index.d.ts +6 -0
- package/dts/illustrations/index.d.ts.map +1 -0
- package/dts/index.d.ts +7 -0
- package/dts/index.d.ts.map +1 -0
- package/dts/layout/Box.d.ts +69 -0
- package/dts/layout/Box.d.ts.map +1 -0
- package/dts/layout/Divider.d.ts +19 -0
- package/dts/layout/Divider.d.ts.map +1 -0
- package/dts/layout/Fallback.d.ts +49 -0
- package/dts/layout/Fallback.d.ts.map +1 -0
- package/dts/layout/Grid.d.ts +55 -0
- package/dts/layout/Grid.d.ts.map +1 -0
- package/dts/layout/GridColumn.d.ts +60 -0
- package/dts/layout/GridColumn.d.ts.map +1 -0
- package/dts/layout/Group.d.ts +44 -0
- package/dts/layout/Group.d.ts.map +1 -0
- package/dts/layout/HStack.d.ts +17 -0
- package/dts/layout/HStack.d.ts.map +1 -0
- package/dts/layout/Spacer.d.ts +34 -0
- package/dts/layout/Spacer.d.ts.map +1 -0
- package/dts/layout/VStack.d.ts +17 -0
- package/dts/layout/VStack.d.ts.map +1 -0
- package/dts/layout/__figma__/Divider.figma.d.ts +2 -0
- package/dts/layout/__figma__/Divider.figma.d.ts.map +1 -0
- package/dts/layout/__figma__/Fallback.figma.d.ts +2 -0
- package/dts/layout/__figma__/Fallback.figma.d.ts.map +1 -0
- package/dts/layout/index.d.ts +10 -0
- package/dts/layout/index.d.ts.map +1 -0
- package/dts/loaders/CircularProgress.d.ts +30 -0
- package/dts/loaders/CircularProgress.d.ts.map +1 -0
- package/dts/loaders/MaterialSpinner.d.ts +16 -0
- package/dts/loaders/MaterialSpinner.d.ts.map +1 -0
- package/dts/loaders/Spinner.d.ts +21 -0
- package/dts/loaders/Spinner.d.ts.map +1 -0
- package/dts/loaders/index.d.ts +2 -0
- package/dts/loaders/index.d.ts.map +1 -0
- package/dts/media/Avatar.d.ts +55 -0
- package/dts/media/Avatar.d.ts.map +1 -0
- package/dts/media/Hexagon.d.ts +90 -0
- package/dts/media/Hexagon.d.ts.map +1 -0
- package/dts/media/RemoteImage.d.ts +46 -0
- package/dts/media/RemoteImage.d.ts.map +1 -0
- package/dts/media/RemoteImageGroup.d.ts +37 -0
- package/dts/media/RemoteImageGroup.d.ts.map +1 -0
- package/dts/media/__figma__/Avatar.figma.d.ts +2 -0
- package/dts/media/__figma__/Avatar.figma.d.ts.map +1 -0
- package/dts/media/index.d.ts +4 -0
- package/dts/media/index.d.ts.map +1 -0
- package/dts/motion/AnimatedCaret.d.ts +9 -0
- package/dts/motion/AnimatedCaret.d.ts.map +1 -0
- package/dts/motion/ColorSurge.d.ts +29 -0
- package/dts/motion/ColorSurge.d.ts.map +1 -0
- package/dts/motion/Pulse.d.ts +57 -0
- package/dts/motion/Pulse.d.ts.map +1 -0
- package/dts/motion/Shake.d.ts +20 -0
- package/dts/motion/Shake.d.ts.map +1 -0
- package/dts/motion/types.d.ts +29 -0
- package/dts/motion/types.d.ts.map +1 -0
- package/dts/motion/useMotionProps.d.ts +11128 -0
- package/dts/motion/useMotionProps.d.ts.map +1 -0
- package/dts/motion/utils.d.ts +5396 -0
- package/dts/motion/utils.d.ts.map +1 -0
- package/dts/multi-content-module/MultiContentModule.d.ts +40 -0
- package/dts/multi-content-module/MultiContentModule.d.ts.map +1 -0
- package/dts/multi-content-module/__figma__/MultiContentModule.figma.d.ts +2 -0
- package/dts/multi-content-module/__figma__/MultiContentModule.figma.d.ts.map +1 -0
- package/dts/navigation/NavLink.d.ts +14 -0
- package/dts/navigation/NavLink.d.ts.map +1 -0
- package/dts/navigation/NavigationBar.d.ts +68 -0
- package/dts/navigation/NavigationBar.d.ts.map +1 -0
- package/dts/navigation/NavigationTitle.d.ts +7 -0
- package/dts/navigation/NavigationTitle.d.ts.map +1 -0
- package/dts/navigation/NavigationTitleSelect.d.ts +23 -0
- package/dts/navigation/NavigationTitleSelect.d.ts.map +1 -0
- package/dts/navigation/Sidebar.d.ts +36 -0
- package/dts/navigation/Sidebar.d.ts.map +1 -0
- package/dts/navigation/SidebarContext.d.ts +8 -0
- package/dts/navigation/SidebarContext.d.ts.map +1 -0
- package/dts/navigation/SidebarItem.d.ts +55 -0
- package/dts/navigation/SidebarItem.d.ts.map +1 -0
- package/dts/navigation/SidebarMoreMenu.d.ts +16 -0
- package/dts/navigation/SidebarMoreMenu.d.ts.map +1 -0
- package/dts/navigation/__figma__/NavLink.figma.d.ts +2 -0
- package/dts/navigation/__figma__/NavLink.figma.d.ts.map +1 -0
- package/dts/navigation/__figma__/NavigationBar.figma.d.ts +2 -0
- package/dts/navigation/__figma__/NavigationBar.figma.d.ts.map +1 -0
- package/dts/navigation/__figma__/NavigationTitle.figma.d.ts +2 -0
- package/dts/navigation/__figma__/NavigationTitle.figma.d.ts.map +1 -0
- package/dts/navigation/__figma__/Sidebar.figma.d.ts +2 -0
- package/dts/navigation/__figma__/Sidebar.figma.d.ts.map +1 -0
- package/dts/navigation/__figma__/SidebarItem.figma.d.ts +2 -0
- package/dts/navigation/__figma__/SidebarItem.figma.d.ts.map +1 -0
- package/dts/navigation/index.d.ts +8 -0
- package/dts/navigation/index.d.ts.map +1 -0
- package/dts/numbers/RollingNumber/DefaultRollingNumberAffixSection.d.ts +3 -0
- package/dts/numbers/RollingNumber/DefaultRollingNumberAffixSection.d.ts.map +1 -0
- package/dts/numbers/RollingNumber/DefaultRollingNumberDigit.d.ts +8 -0
- package/dts/numbers/RollingNumber/DefaultRollingNumberDigit.d.ts.map +1 -0
- package/dts/numbers/RollingNumber/DefaultRollingNumberMask.d.ts +3 -0
- package/dts/numbers/RollingNumber/DefaultRollingNumberMask.d.ts.map +1 -0
- package/dts/numbers/RollingNumber/DefaultRollingNumberSymbol.d.ts +3 -0
- package/dts/numbers/RollingNumber/DefaultRollingNumberSymbol.d.ts.map +1 -0
- package/dts/numbers/RollingNumber/DefaultRollingNumberValueSection.d.ts +3 -0
- package/dts/numbers/RollingNumber/DefaultRollingNumberValueSection.d.ts.map +1 -0
- package/dts/numbers/RollingNumber/RollingNumber.d.ts +415 -0
- package/dts/numbers/RollingNumber/RollingNumber.d.ts.map +1 -0
- package/dts/numbers/RollingNumber/index.d.ts +7 -0
- package/dts/numbers/RollingNumber/index.d.ts.map +1 -0
- package/dts/numbers/RollingNumber/useColorPulse.d.ts +17 -0
- package/dts/numbers/RollingNumber/useColorPulse.d.ts.map +1 -0
- package/dts/numbers/index.d.ts +2 -0
- package/dts/numbers/index.d.ts.map +1 -0
- package/dts/overlays/Alert.d.ts +122 -0
- package/dts/overlays/Alert.d.ts.map +1 -0
- package/dts/overlays/FocusTrap.d.ts +42 -0
- package/dts/overlays/FocusTrap.d.ts.map +1 -0
- package/dts/overlays/FullscreenAlert.d.ts +43 -0
- package/dts/overlays/FullscreenAlert.d.ts.map +1 -0
- package/dts/overlays/Portal.d.ts +14 -0
- package/dts/overlays/Portal.d.ts.map +1 -0
- package/dts/overlays/PortalProvider.d.ts +19 -0
- package/dts/overlays/PortalProvider.d.ts.map +1 -0
- package/dts/overlays/Toast.d.ts +28 -0
- package/dts/overlays/Toast.d.ts.map +1 -0
- package/dts/overlays/__figma__/Alert.figma.d.ts +2 -0
- package/dts/overlays/__figma__/Alert.figma.d.ts.map +1 -0
- package/dts/overlays/__figma__/Toast.figma.d.ts +2 -0
- package/dts/overlays/__figma__/Toast.figma.d.ts.map +1 -0
- package/dts/overlays/index.d.ts +18 -0
- package/dts/overlays/index.d.ts.map +1 -0
- package/dts/overlays/modal/FullscreenModal.d.ts +65 -0
- package/dts/overlays/modal/FullscreenModal.d.ts.map +1 -0
- package/dts/overlays/modal/FullscreenModalHeader.d.ts +21 -0
- package/dts/overlays/modal/FullscreenModalHeader.d.ts.map +1 -0
- package/dts/overlays/modal/FullscreenModalLayout.d.ts +47 -0
- package/dts/overlays/modal/FullscreenModalLayout.d.ts.map +1 -0
- package/dts/overlays/modal/Modal.d.ts +57 -0
- package/dts/overlays/modal/Modal.d.ts.map +1 -0
- package/dts/overlays/modal/ModalBody.d.ts +7 -0
- package/dts/overlays/modal/ModalBody.d.ts.map +1 -0
- package/dts/overlays/modal/ModalFooter.d.ts +32 -0
- package/dts/overlays/modal/ModalFooter.d.ts.map +1 -0
- package/dts/overlays/modal/ModalHeader.d.ts +57 -0
- package/dts/overlays/modal/ModalHeader.d.ts.map +1 -0
- package/dts/overlays/modal/ModalWrapper.d.ts +46 -0
- package/dts/overlays/modal/ModalWrapper.d.ts.map +1 -0
- package/dts/overlays/modal/__figma__/FullscreenModal.figma.d.ts +2 -0
- package/dts/overlays/modal/__figma__/FullscreenModal.figma.d.ts.map +1 -0
- package/dts/overlays/modal/__figma__/Modal.figma.d.ts +2 -0
- package/dts/overlays/modal/__figma__/Modal.figma.d.ts.map +1 -0
- package/dts/overlays/overlay/Overlay.d.ts +6 -0
- package/dts/overlays/overlay/Overlay.d.ts.map +1 -0
- package/dts/overlays/overlay/OverlayContent.d.ts +15 -0
- package/dts/overlays/overlay/OverlayContent.d.ts.map +1 -0
- package/dts/overlays/popover/Popover.d.ts +37 -0
- package/dts/overlays/popover/Popover.d.ts.map +1 -0
- package/dts/overlays/popover/PopoverProps.d.ts +83 -0
- package/dts/overlays/popover/PopoverProps.d.ts.map +1 -0
- package/dts/overlays/popover/usePopper.d.ts +24 -0
- package/dts/overlays/popover/usePopper.d.ts.map +1 -0
- package/dts/overlays/tooltip/Tooltip.d.ts +21 -0
- package/dts/overlays/tooltip/Tooltip.d.ts.map +1 -0
- package/dts/overlays/tooltip/TooltipContent.d.ts +14 -0
- package/dts/overlays/tooltip/TooltipContent.d.ts.map +1 -0
- package/dts/overlays/tooltip/TooltipProps.d.ts +60 -0
- package/dts/overlays/tooltip/TooltipProps.d.ts.map +1 -0
- package/dts/overlays/tooltip/__figma__/Tooltip.figma.d.ts +2 -0
- package/dts/overlays/tooltip/__figma__/Tooltip.figma.d.ts.map +1 -0
- package/dts/overlays/tooltip/useTooltipState.d.ts +9 -0
- package/dts/overlays/tooltip/useTooltipState.d.ts.map +1 -0
- package/dts/overlays/tray/Tray.d.ts +145 -0
- package/dts/overlays/tray/Tray.d.ts.map +1 -0
- package/dts/overlays/useModal.d.ts +6 -0
- package/dts/overlays/useModal.d.ts.map +1 -0
- package/dts/overlays/usePortal.d.ts +3 -0
- package/dts/overlays/usePortal.d.ts.map +1 -0
- package/dts/overlays/useToast.d.ts +9 -0
- package/dts/overlays/useToast.d.ts.map +1 -0
- package/dts/page/PageFooter.d.ts +28 -0
- package/dts/page/PageFooter.d.ts.map +1 -0
- package/dts/page/PageHeader.d.ts +81 -0
- package/dts/page/PageHeader.d.ts.map +1 -0
- package/dts/page/__figma__/PageFooter.figma.d.ts +2 -0
- package/dts/page/__figma__/PageFooter.figma.d.ts.map +1 -0
- package/dts/page/__figma__/PageHeader.figma.d.ts +2 -0
- package/dts/page/__figma__/PageHeader.figma.d.ts.map +1 -0
- package/dts/pagination/DefaultPaginationEllipsis.d.ts +6 -0
- package/dts/pagination/DefaultPaginationEllipsis.d.ts.map +1 -0
- package/dts/pagination/DefaultPaginationNavigationButton.d.ts +11 -0
- package/dts/pagination/DefaultPaginationNavigationButton.d.ts.map +1 -0
- package/dts/pagination/DefaultPaginationNavigationTextButton.d.ts +15 -0
- package/dts/pagination/DefaultPaginationNavigationTextButton.d.ts.map +1 -0
- package/dts/pagination/DefaultPaginationPageButton.d.ts +5 -0
- package/dts/pagination/DefaultPaginationPageButton.d.ts.map +1 -0
- package/dts/pagination/Pagination.d.ts +101 -0
- package/dts/pagination/Pagination.d.ts.map +1 -0
- package/dts/pagination/__figma__/Pagination.figma.d.ts +2 -0
- package/dts/pagination/__figma__/Pagination.figma.d.ts.map +1 -0
- package/dts/pagination/usePagination.d.ts +49 -0
- package/dts/pagination/usePagination.d.ts.map +1 -0
- package/dts/section-header/SectionHeader.d.ts +27 -0
- package/dts/section-header/SectionHeader.d.ts.map +1 -0
- package/dts/section-header/__figma__/SectionHeader.figma.d.ts +2 -0
- package/dts/section-header/__figma__/SectionHeader.figma.d.ts.map +1 -0
- package/dts/stepper/DefaultStepperHeaderHorizontal.d.ts +3 -0
- package/dts/stepper/DefaultStepperHeaderHorizontal.d.ts.map +1 -0
- package/dts/stepper/DefaultStepperIconVertical.d.ts +3 -0
- package/dts/stepper/DefaultStepperIconVertical.d.ts.map +1 -0
- package/dts/stepper/DefaultStepperLabelHorizontal.d.ts +3 -0
- package/dts/stepper/DefaultStepperLabelHorizontal.d.ts.map +1 -0
- package/dts/stepper/DefaultStepperLabelVertical.d.ts +3 -0
- package/dts/stepper/DefaultStepperLabelVertical.d.ts.map +1 -0
- package/dts/stepper/DefaultStepperProgressHorizontal.d.ts +3 -0
- package/dts/stepper/DefaultStepperProgressHorizontal.d.ts.map +1 -0
- package/dts/stepper/DefaultStepperProgressVertical.d.ts +3 -0
- package/dts/stepper/DefaultStepperProgressVertical.d.ts.map +1 -0
- package/dts/stepper/DefaultStepperStepHorizontal.d.ts +3 -0
- package/dts/stepper/DefaultStepperStepHorizontal.d.ts.map +1 -0
- package/dts/stepper/DefaultStepperStepVertical.d.ts +3 -0
- package/dts/stepper/DefaultStepperStepVertical.d.ts.map +1 -0
- package/dts/stepper/DefaultStepperSubstepContainerHorizontal.d.ts +3 -0
- package/dts/stepper/DefaultStepperSubstepContainerHorizontal.d.ts.map +1 -0
- package/dts/stepper/DefaultStepperSubstepContainerVertical.d.ts +3 -0
- package/dts/stepper/DefaultStepperSubstepContainerVertical.d.ts.map +1 -0
- package/dts/stepper/Stepper.d.ts +259 -0
- package/dts/stepper/Stepper.d.ts.map +1 -0
- package/dts/stepper/index.d.ts +12 -0
- package/dts/stepper/index.d.ts.map +1 -0
- package/dts/styles/booleanStyles.d.ts +18 -0
- package/dts/styles/booleanStyles.d.ts.map +1 -0
- package/dts/styles/config.d.ts +133 -0
- package/dts/styles/config.d.ts.map +1 -0
- package/dts/styles/defaultFont.d.ts +2 -0
- package/dts/styles/defaultFont.d.ts.map +1 -0
- package/dts/styles/global.d.ts +2 -0
- package/dts/styles/global.d.ts.map +1 -0
- package/dts/styles/media.d.ts +33 -0
- package/dts/styles/media.d.ts.map +1 -0
- package/dts/styles/responsive/base.d.ts +178 -0
- package/dts/styles/responsive/base.d.ts.map +1 -0
- package/dts/styles/responsive/desktop.d.ts +226 -0
- package/dts/styles/responsive/desktop.d.ts.map +1 -0
- package/dts/styles/responsive/phone.d.ts +226 -0
- package/dts/styles/responsive/phone.d.ts.map +1 -0
- package/dts/styles/responsive/tablet.d.ts +226 -0
- package/dts/styles/responsive/tablet.d.ts.map +1 -0
- package/dts/styles/styleProps.d.ts +153 -0
- package/dts/styles/styleProps.d.ts.map +1 -0
- package/dts/system/BrowserOnly.d.ts +14 -0
- package/dts/system/BrowserOnly.d.ts.map +1 -0
- package/dts/system/ButtonOrLink.d.ts +17 -0
- package/dts/system/ButtonOrLink.d.ts.map +1 -0
- package/dts/system/EventHandlerProvider.d.ts +8 -0
- package/dts/system/EventHandlerProvider.d.ts.map +1 -0
- package/dts/system/FramerMotionProvider.d.ts +9 -0
- package/dts/system/FramerMotionProvider.d.ts.map +1 -0
- package/dts/system/Interactable.d.ts +112 -0
- package/dts/system/Interactable.d.ts.map +1 -0
- package/dts/system/MediaQueryProvider.d.ts +46 -0
- package/dts/system/MediaQueryProvider.d.ts.map +1 -0
- package/dts/system/Pressable.d.ts +25 -0
- package/dts/system/Pressable.d.ts.map +1 -0
- package/dts/system/PressableOpacity.d.ts +25 -0
- package/dts/system/PressableOpacity.d.ts.map +1 -0
- package/dts/system/ThemeProvider.d.ts +37 -0
- package/dts/system/ThemeProvider.d.ts.map +1 -0
- package/dts/system/index.d.ts +7 -0
- package/dts/system/index.d.ts.map +1 -0
- package/dts/system/interactableCSSProperties.d.ts +12 -0
- package/dts/system/interactableCSSProperties.d.ts.map +1 -0
- package/dts/system/reakit-utils.d.ts +26 -0
- package/dts/system/reakit-utils.d.ts.map +1 -0
- package/dts/tables/Table.d.ts +95 -0
- package/dts/tables/Table.d.ts.map +1 -0
- package/dts/tables/TableBody.d.ts +7 -0
- package/dts/tables/TableBody.d.ts.map +1 -0
- package/dts/tables/TableCaption.d.ts +81 -0
- package/dts/tables/TableCaption.d.ts.map +1 -0
- package/dts/tables/TableCell.d.ts +152 -0
- package/dts/tables/TableCell.d.ts.map +1 -0
- package/dts/tables/TableCellFallback.d.ts +33 -0
- package/dts/tables/TableCellFallback.d.ts.map +1 -0
- package/dts/tables/TableCellSortIcon.d.ts +8 -0
- package/dts/tables/TableCellSortIcon.d.ts.map +1 -0
- package/dts/tables/TableFooter.d.ts +7 -0
- package/dts/tables/TableFooter.d.ts.map +1 -0
- package/dts/tables/TableHeader.d.ts +20 -0
- package/dts/tables/TableHeader.d.ts.map +1 -0
- package/dts/tables/TableRow.d.ts +67 -0
- package/dts/tables/TableRow.d.ts.map +1 -0
- package/dts/tables/TableSection.d.ts +22 -0
- package/dts/tables/TableSection.d.ts.map +1 -0
- package/dts/tables/__figma__/TableCell.figma.d.ts +2 -0
- package/dts/tables/__figma__/TableCell.figma.d.ts.map +1 -0
- package/dts/tables/context/TableContext.d.ts +4 -0
- package/dts/tables/context/TableContext.d.ts.map +1 -0
- package/dts/tables/context/TableSectionContext.d.ts +6 -0
- package/dts/tables/context/TableSectionContext.d.ts.map +1 -0
- package/dts/tables/hooks/useSortableCell.d.ts +17 -0
- package/dts/tables/hooks/useSortableCell.d.ts.map +1 -0
- package/dts/tables/hooks/useTable.d.ts +27 -0
- package/dts/tables/hooks/useTable.d.ts.map +1 -0
- package/dts/tables/hooks/useTableRowListener.d.ts +4 -0
- package/dts/tables/hooks/useTableRowListener.d.ts.map +1 -0
- package/dts/tables/hooks/useTableVariant.d.ts +2 -0
- package/dts/tables/hooks/useTableVariant.d.ts.map +1 -0
- package/dts/tables/index.d.ts +9 -0
- package/dts/tables/index.d.ts.map +1 -0
- package/dts/tabs/Paddle.d.ts +33 -0
- package/dts/tabs/Paddle.d.ts.map +1 -0
- package/dts/tabs/SegmentedTab.d.ts +52 -0
- package/dts/tabs/SegmentedTab.d.ts.map +1 -0
- package/dts/tabs/SegmentedTabs.d.ts +14 -0
- package/dts/tabs/SegmentedTabs.d.ts.map +1 -0
- package/dts/tabs/SegmentedTabsActiveIndicator.d.ts +7 -0
- package/dts/tabs/SegmentedTabsActiveIndicator.d.ts.map +1 -0
- package/dts/tabs/TabIndicator.d.ts +28 -0
- package/dts/tabs/TabIndicator.d.ts.map +1 -0
- package/dts/tabs/TabLabel.d.ts +31 -0
- package/dts/tabs/TabLabel.d.ts.map +1 -0
- package/dts/tabs/TabNavigation.d.ts +86 -0
- package/dts/tabs/TabNavigation.d.ts.map +1 -0
- package/dts/tabs/Tabs.d.ts +46 -0
- package/dts/tabs/Tabs.d.ts.map +1 -0
- package/dts/tabs/__figma__/SegmentedTabs.figma.d.ts +2 -0
- package/dts/tabs/__figma__/SegmentedTabs.figma.d.ts.map +1 -0
- package/dts/tabs/__figma__/TabNavigation.figma.d.ts +2 -0
- package/dts/tabs/__figma__/TabNavigation.figma.d.ts.map +1 -0
- package/dts/tabs/hooks/useAnimateTabIndicator.d.ts +11160 -0
- package/dts/tabs/hooks/useAnimateTabIndicator.d.ts.map +1 -0
- package/dts/tabs/index.d.ts +8 -0
- package/dts/tabs/index.d.ts.map +1 -0
- package/dts/tag/Tag.d.ts +37 -0
- package/dts/tag/Tag.d.ts.map +1 -0
- package/dts/tag/__figma__/Tag.figma.d.ts +2 -0
- package/dts/tag/__figma__/Tag.figma.d.ts.map +1 -0
- package/dts/themes/coinbaseDenseTheme.d.ts +540 -0
- package/dts/themes/coinbaseDenseTheme.d.ts.map +1 -0
- package/dts/themes/coinbaseHighContrastTheme.d.ts +539 -0
- package/dts/themes/coinbaseHighContrastTheme.d.ts.map +1 -0
- package/dts/themes/coinbaseTheme.d.ts +539 -0
- package/dts/themes/coinbaseTheme.d.ts.map +1 -0
- package/dts/themes/defaultHighContrastTheme.d.ts +539 -0
- package/dts/themes/defaultHighContrastTheme.d.ts.map +1 -0
- package/dts/themes/defaultTheme.d.ts +539 -0
- package/dts/themes/defaultTheme.d.ts.map +1 -0
- package/dts/tour/DefaultTourMask.d.ts +10 -0
- package/dts/tour/DefaultTourMask.d.ts.map +1 -0
- package/dts/tour/DefaultTourStepArrow.d.ts +6 -0
- package/dts/tour/DefaultTourStepArrow.d.ts.map +1 -0
- package/dts/tour/Tour.d.ts +85 -0
- package/dts/tour/Tour.d.ts.map +1 -0
- package/dts/tour/TourStep.d.ts +17 -0
- package/dts/tour/TourStep.d.ts.map +1 -0
- package/dts/tour/index.d.ts +5 -0
- package/dts/tour/index.d.ts.map +1 -0
- package/dts/types.d.ts +5 -0
- package/dts/types.d.ts.map +1 -0
- package/dts/typography/Link.d.ts +37 -0
- package/dts/typography/Link.d.ts.map +1 -0
- package/dts/typography/Text.d.ts +60 -0
- package/dts/typography/Text.d.ts.map +1 -0
- package/dts/typography/TextBody.d.ts +17 -0
- package/dts/typography/TextBody.d.ts.map +1 -0
- package/dts/typography/TextCaption.d.ts +17 -0
- package/dts/typography/TextCaption.d.ts.map +1 -0
- package/dts/typography/TextDisplay1.d.ts +17 -0
- package/dts/typography/TextDisplay1.d.ts.map +1 -0
- package/dts/typography/TextDisplay2.d.ts +17 -0
- package/dts/typography/TextDisplay2.d.ts.map +1 -0
- package/dts/typography/TextDisplay3.d.ts +17 -0
- package/dts/typography/TextDisplay3.d.ts.map +1 -0
- package/dts/typography/TextHeadline.d.ts +17 -0
- package/dts/typography/TextHeadline.d.ts.map +1 -0
- package/dts/typography/TextInherited.d.ts +17 -0
- package/dts/typography/TextInherited.d.ts.map +1 -0
- package/dts/typography/TextLabel1.d.ts +17 -0
- package/dts/typography/TextLabel1.d.ts.map +1 -0
- package/dts/typography/TextLabel2.d.ts +17 -0
- package/dts/typography/TextLabel2.d.ts.map +1 -0
- package/dts/typography/TextLegal.d.ts +17 -0
- package/dts/typography/TextLegal.d.ts.map +1 -0
- package/dts/typography/TextTitle1.d.ts +17 -0
- package/dts/typography/TextTitle1.d.ts.map +1 -0
- package/dts/typography/TextTitle2.d.ts +17 -0
- package/dts/typography/TextTitle2.d.ts.map +1 -0
- package/dts/typography/TextTitle3.d.ts +17 -0
- package/dts/typography/TextTitle3.d.ts.map +1 -0
- package/dts/typography/TextTitle4.d.ts +17 -0
- package/dts/typography/TextTitle4.d.ts.map +1 -0
- package/dts/typography/__figma__/Link.figma.d.ts +2 -0
- package/dts/typography/__figma__/Link.figma.d.ts.map +1 -0
- package/dts/typography/index.d.ts +17 -0
- package/dts/typography/index.d.ts.map +1 -0
- package/dts/utils/browser.d.ts +21 -0
- package/dts/utils/browser.d.ts.map +1 -0
- package/dts/utils/eventHandlers.d.ts +2 -0
- package/dts/utils/eventHandlers.d.ts.map +1 -0
- package/dts/utils/flattenAndJoinNodes.d.ts +24 -0
- package/dts/utils/flattenAndJoinNodes.d.ts.map +1 -0
- package/dts/utils/isRtl.d.ts +2 -0
- package/dts/utils/isRtl.d.ts.map +1 -0
- package/dts/utils/mediaQueryListener.d.ts +11 -0
- package/dts/utils/mediaQueryListener.d.ts.map +1 -0
- package/dts/utils/storybook.d.ts +6 -0
- package/dts/utils/storybook.d.ts.map +1 -0
- package/dts/utils/test.d.ts +20 -0
- package/dts/utils/test.d.ts.map +1 -0
- package/dts/visualizations/Counter.d.ts +18 -0
- package/dts/visualizations/Counter.d.ts.map +1 -0
- package/dts/visualizations/DefaultProgressCircleContent.d.ts +10 -0
- package/dts/visualizations/DefaultProgressCircleContent.d.ts.map +1 -0
- package/dts/visualizations/ProgressBar.d.ts +136 -0
- package/dts/visualizations/ProgressBar.d.ts.map +1 -0
- package/dts/visualizations/ProgressBarWithFixedLabels.d.ts +89 -0
- package/dts/visualizations/ProgressBarWithFixedLabels.d.ts.map +1 -0
- package/dts/visualizations/ProgressBarWithFloatLabel.d.ts +66 -0
- package/dts/visualizations/ProgressBarWithFloatLabel.d.ts.map +1 -0
- package/dts/visualizations/ProgressCircle.d.ts +171 -0
- package/dts/visualizations/ProgressCircle.d.ts.map +1 -0
- package/dts/visualizations/ProgressContainerWithButtons.d.ts +6 -0
- package/dts/visualizations/ProgressContainerWithButtons.d.ts.map +1 -0
- package/dts/visualizations/ProgressTextLabel.d.ts +27 -0
- package/dts/visualizations/ProgressTextLabel.d.ts.map +1 -0
- package/dts/visualizations/VisualizationContainer.d.ts +16 -0
- package/dts/visualizations/VisualizationContainer.d.ts.map +1 -0
- package/dts/visualizations/__figma__/ProgressBar.figma.d.ts +2 -0
- package/dts/visualizations/__figma__/ProgressBar.figma.d.ts.map +1 -0
- package/dts/visualizations/__figma__/ProgressCircle.figma.d.ts +2 -0
- package/dts/visualizations/__figma__/ProgressCircle.figma.d.ts.map +1 -0
- package/dts/visualizations/getProgressBarLabelParts.d.ts +16 -0
- package/dts/visualizations/getProgressBarLabelParts.d.ts.map +1 -0
- package/dts/visualizations/index.d.ts +8 -0
- package/dts/visualizations/index.d.ts.map +1 -0
- package/esm/AccessibilityAnnouncer/AccessibilityAnnouncer.css +1 -0
- package/esm/AccessibilityAnnouncer/AccessibilityAnnouncer.js +46 -0
- package/esm/accordion/Accordion.js +35 -0
- package/esm/accordion/AccordionHeader.css +3 -0
- package/esm/accordion/AccordionHeader.js +125 -0
- package/esm/accordion/AccordionItem.js +53 -0
- package/esm/accordion/AccordionPanel.js +36 -0
- package/esm/accordion/__figma__/Accordion.figma.js +47 -0
- package/esm/accordion/index.js +2 -0
- package/esm/accordion/utils.js +2 -0
- package/esm/animation/Lottie.css +1 -0
- package/esm/animation/Lottie.js +83 -0
- package/esm/animation/LottieStatusAnimation.js +41 -0
- package/esm/animation/NewAnimatePresence.js +5 -0
- package/esm/animation/convertMotionConfig.js +35 -0
- package/esm/animation/index.js +2 -0
- package/esm/animation/types.js +1 -0
- package/esm/animation/useLottieHandlers.js +15 -0
- package/esm/animation/useLottieListeners.js +24 -0
- package/esm/animation/useLottieLoader.js +94 -0
- package/esm/banner/Banner.css +1 -0
- package/esm/banner/Banner.js +226 -0
- package/esm/buttons/AvatarButton.css +1 -0
- package/esm/buttons/AvatarButton.js +55 -0
- package/esm/buttons/Button.css +13 -0
- package/esm/buttons/Button.js +136 -0
- package/esm/buttons/ButtonGroup.css +3 -0
- package/esm/buttons/ButtonGroup.js +34 -0
- package/esm/buttons/IconButton.css +4 -0
- package/esm/buttons/IconButton.js +94 -0
- package/esm/buttons/IconCounterButton.js +50 -0
- package/esm/buttons/Tile.css +2 -0
- package/esm/buttons/Tile.js +56 -0
- package/esm/buttons/TileButton.js +58 -0
- package/esm/buttons/__figma__/AvatarButton.figma.js +30 -0
- package/esm/buttons/__figma__/Button.figma.js +63 -0
- package/esm/buttons/__figma__/ButtonGroup.figma.js +54 -0
- package/esm/buttons/__figma__/IconButton.figma.js +35 -0
- package/esm/buttons/__figma__/TileButton.figma.js +29 -0
- package/esm/buttons/index.js +6 -0
- package/esm/cards/AnnouncementCard.js +45 -0
- package/esm/cards/Card.js +97 -0
- package/esm/cards/CardBody.js +162 -0
- package/esm/cards/CardFooter.js +28 -0
- package/esm/cards/CardGroup.js +30 -0
- package/esm/cards/CardHeader.js +43 -0
- package/esm/cards/CardMedia.js +55 -0
- package/esm/cards/CardRemoteImage.js +26 -0
- package/esm/cards/ContainedAssetCard.css +2 -0
- package/esm/cards/ContainedAssetCard.js +96 -0
- package/esm/cards/ContentCard/ContentCard.js +38 -0
- package/esm/cards/ContentCard/ContentCardBody.js +59 -0
- package/esm/cards/ContentCard/ContentCardFooter.js +29 -0
- package/esm/cards/ContentCard/ContentCardHeader.js +57 -0
- package/esm/cards/ContentCard/__figma__/ContentCard.figma.js +37 -0
- package/esm/cards/ContentCard/__figma__/ContentCardBody.figma.js +55 -0
- package/esm/cards/ContentCard/__figma__/ContentCardFooter.figma.js +150 -0
- package/esm/cards/ContentCard/__figma__/ContentCardHeader.figma.js +29 -0
- package/esm/cards/ContentCard/index.js +4 -0
- package/esm/cards/DataCard.js +72 -0
- package/esm/cards/FeatureEntryCard.js +42 -0
- package/esm/cards/FeedCard.js +104 -0
- package/esm/cards/FloatingAssetCard.css +2 -0
- package/esm/cards/FloatingAssetCard.js +76 -0
- package/esm/cards/LikeButton.js +62 -0
- package/esm/cards/NudgeCard.css +2 -0
- package/esm/cards/NudgeCard.js +162 -0
- package/esm/cards/UpsellCard.js +99 -0
- package/esm/cards/__figma__/AnnouncementCard.figma.js +19 -0
- package/esm/cards/__figma__/ContainedAssetCard.figma.js +45 -0
- package/esm/cards/__figma__/FloatingAssetCard.figma.js +36 -0
- package/esm/cards/__figma__/NudgeCard.figma.js +60 -0
- package/esm/cards/__figma__/UpsellCard.figma.js +57 -0
- package/esm/cards/index.js +17 -0
- package/esm/carousel/Carousel.css +1 -0
- package/esm/carousel/Carousel.js +424 -0
- package/esm/carousel/CarouselItem.js +52 -0
- package/esm/carousel/DefaultCarouselNavigation.css +1 -0
- package/esm/carousel/DefaultCarouselNavigation.js +60 -0
- package/esm/carousel/DefaultCarouselPagination.css +2 -0
- package/esm/carousel/DefaultCarouselPagination.js +119 -0
- package/esm/carousel/index.js +4 -0
- package/esm/cells/Cell.css +4 -0
- package/esm/cells/Cell.js +201 -0
- package/esm/cells/CellAccessory.js +50 -0
- package/esm/cells/CellDetail.js +34 -0
- package/esm/cells/CellHelperText.js +40 -0
- package/esm/cells/CellMedia.js +54 -0
- package/esm/cells/ContentCell.css +2 -0
- package/esm/cells/ContentCell.js +111 -0
- package/esm/cells/ContentCellFallback.js +69 -0
- package/esm/cells/ListCell.css +1 -0
- package/esm/cells/ListCell.js +102 -0
- package/esm/cells/ListCellFallback.js +127 -0
- package/esm/cells/MediaFallback.js +24 -0
- package/esm/cells/__figma__/ContentCell.figma.js +40 -0
- package/esm/cells/__figma__/ListCell.figma.js +79 -0
- package/esm/cells/index.js +6 -0
- package/esm/chips/Chip.css +2 -0
- package/esm/chips/Chip.js +79 -0
- package/esm/chips/ChipProps.js +1 -0
- package/esm/chips/InputChip.js +33 -0
- package/esm/chips/SelectChip.js +94 -0
- package/esm/chips/TabbedChips.css +1 -0
- package/esm/chips/TabbedChips.js +156 -0
- package/esm/chips/__figma__/InputChip.figma.js +29 -0
- package/esm/chips/__figma__/SelectChip.figma.js +47 -0
- package/esm/chips/__figma__/TabbedChips.figma.js +55 -0
- package/esm/chips/index.js +5 -0
- package/esm/coachmark/Coachmark.js +73 -0
- package/esm/coachmark/__figma__/Coachmark.figma.js +49 -0
- package/esm/collapsible/Collapsible.js +99 -0
- package/esm/collapsible/index.js +1 -0
- package/esm/collapsible/useCollapsibleMotionProps.js +34 -0
- package/esm/controls/Checkbox.css +1 -0
- package/esm/controls/Checkbox.js +84 -0
- package/esm/controls/CheckboxCell.css +1 -0
- package/esm/controls/CheckboxCell.js +120 -0
- package/esm/controls/CheckboxGroup.css +1 -0
- package/esm/controls/CheckboxGroup.js +112 -0
- package/esm/controls/Control.css +3 -0
- package/esm/controls/Control.js +118 -0
- package/esm/controls/ControlGroup.css +1 -0
- package/esm/controls/ControlGroup.js +72 -0
- package/esm/controls/HelperText.css +1 -0
- package/esm/controls/HelperText.js +49 -0
- package/esm/controls/InputIcon.js +41 -0
- package/esm/controls/InputIconButton.js +41 -0
- package/esm/controls/InputLabel.js +26 -0
- package/esm/controls/InputStack.css +3 -0
- package/esm/controls/InputStack.js +137 -0
- package/esm/controls/NativeInput.css +3 -0
- package/esm/controls/NativeInput.js +56 -0
- package/esm/controls/NativeTextArea.css +2 -0
- package/esm/controls/NativeTextArea.js +46 -0
- package/esm/controls/Radio.css +1 -0
- package/esm/controls/Radio.js +84 -0
- package/esm/controls/RadioCell.css +1 -0
- package/esm/controls/RadioCell.js +118 -0
- package/esm/controls/RadioGroup.js +85 -0
- package/esm/controls/SearchInput.css +2 -0
- package/esm/controls/SearchInput.js +90 -0
- package/esm/controls/SegmentedControl.css +6 -0
- package/esm/controls/SegmentedControl.js +109 -0
- package/esm/controls/Select.js +94 -0
- package/esm/controls/SelectOption.css +5 -0
- package/esm/controls/SelectOption.js +106 -0
- package/esm/controls/SelectStack.js +64 -0
- package/esm/controls/SelectTrigger.css +1 -0
- package/esm/controls/SelectTrigger.js +133 -0
- package/esm/controls/Switch.css +2 -0
- package/esm/controls/Switch.js +88 -0
- package/esm/controls/TextInput.css +3 -0
- package/esm/controls/TextInput.js +206 -0
- package/esm/controls/__figma__/Checkbox.figma.js +32 -0
- package/esm/controls/__figma__/CheckboxCell.figma.js +43 -0
- package/esm/controls/__figma__/CheckboxGroup.figma.js +27 -0
- package/esm/controls/__figma__/NativeTextArea.figma.js +30 -0
- package/esm/controls/__figma__/RadioCell.figma.js +43 -0
- package/esm/controls/__figma__/RadioGroup.figma.js +47 -0
- package/esm/controls/__figma__/SearchInput.figma.js +44 -0
- package/esm/controls/__figma__/Select.figma.js +47 -0
- package/esm/controls/__figma__/SelectOption.figma.js +38 -0
- package/esm/controls/__figma__/Switch.figma.js +20 -0
- package/esm/controls/__figma__/TextInput.figma.js +130 -0
- package/esm/controls/context.js +3 -0
- package/esm/controls/index.js +15 -0
- package/esm/controls/selectContext.js +9 -0
- package/esm/controls/useHandleRadioSelect.js +6 -0
- package/esm/controls/useRefocusTrigger.js +19 -0
- package/esm/controls/useSelectionCellControlHeight.js +35 -0
- package/esm/core/createThemeCssVars.js +33 -0
- package/esm/core/polymorphism.js +6 -0
- package/esm/core/theme.js +26 -0
- package/esm/cx.js +49 -0
- package/esm/dates/Calendar.css +1 -0
- package/esm/dates/Calendar.js +271 -0
- package/esm/dates/DateInput.js +108 -0
- package/esm/dates/DatePicker.js +188 -0
- package/esm/dates/__figma__/DatePicker.figma.js +46 -0
- package/esm/defaultFontStyles.js +1 -0
- package/esm/dots/DotCount.css +2 -0
- package/esm/dots/DotCount.js +84 -0
- package/esm/dots/DotStatusColor.css +1 -0
- package/esm/dots/DotStatusColor.js +60 -0
- package/esm/dots/DotSymbol.css +3 -0
- package/esm/dots/DotSymbol.js +86 -0
- package/esm/dots/__figma__/DotCount.figma.js +19 -0
- package/esm/dots/__figma__/DotStatusColor.figma.js +27 -0
- package/esm/dots/__figma__/DotSymbol.figma.js +49 -0
- package/esm/dots/dotStyles.js +31 -0
- package/esm/dots/index.js +3 -0
- package/esm/dropdown/Dropdown.js +213 -0
- package/esm/dropdown/DropdownContent.js +51 -0
- package/esm/dropdown/DropdownProps.js +1 -0
- package/esm/dropdown/MenuItem.css +1 -0
- package/esm/dropdown/MenuItem.js +51 -0
- package/esm/dropdown/__figma__/Dropdown.figma.js +20 -0
- package/esm/dropdown/index.js +3 -0
- package/esm/dropdown/useResponsiveHeight.js +74 -0
- package/esm/globalStyles.js +1 -0
- package/esm/hooks/useA11yControlledVisibility.js +27 -0
- package/esm/hooks/useA11yLabels.js +51 -0
- package/esm/hooks/useBreakpoints.js +79 -0
- package/esm/hooks/useCellSpacing.js +31 -0
- package/esm/hooks/useCheckboxGroupState.js +43 -0
- package/esm/hooks/useDimensions.js +169 -0
- package/esm/hooks/useEventHandler.js +6 -0
- package/esm/hooks/useHasMounted.js +8 -0
- package/esm/hooks/useIsBrowser.js +8 -0
- package/esm/hooks/useIsoEffect.js +3 -0
- package/esm/hooks/useMediaQuery.js +20 -0
- package/esm/hooks/useScrollBlocker.js +32 -0
- package/esm/hooks/useTheme.js +9 -0
- package/esm/hooks/useThemeContext.js +13 -0
- package/esm/icons/Icon.css +5 -0
- package/esm/icons/Icon.js +83 -0
- package/esm/icons/LogoMark.css +2 -0
- package/esm/icons/LogoMark.js +43 -0
- package/esm/icons/LogoWordmark.css +2 -0
- package/esm/icons/LogoWordmark.js +39 -0
- package/esm/icons/SubBrandLogoMark.css +2 -0
- package/esm/icons/SubBrandLogoMark.js +49 -0
- package/esm/icons/SubBrandLogoWordmark.css +2 -0
- package/esm/icons/SubBrandLogoWordmark.js +52 -0
- package/esm/icons/__figma__/Icon.figma.js +3000 -0
- package/esm/icons/__figma__/LogoMark.figma.js +23 -0
- package/esm/icons/__figma__/LogoWordmark.figma.js +35 -0
- package/esm/icons/__figma__/SubBrandLogoMark.figma.js +51 -0
- package/esm/icons/__figma__/SubBrandLogoWordmark.figma.js +52 -0
- package/esm/icons/index.js +5 -0
- package/esm/illustrations/HeroSquare.js +3 -0
- package/esm/illustrations/Pictogram.js +3 -0
- package/esm/illustrations/SpotIcon.js +3 -0
- package/esm/illustrations/SpotRectangle.js +3 -0
- package/esm/illustrations/SpotSquare.js +3 -0
- package/esm/illustrations/__figma__/HeroSquare.figma.js +2103 -0
- package/esm/illustrations/__figma__/Pictogram.figma.js +1773 -0
- package/esm/illustrations/__figma__/SpotIcon.figma.js +339 -0
- package/esm/illustrations/__figma__/SpotRectangle.figma.js +1101 -0
- package/esm/illustrations/__figma__/SpotSquare.figma.js +1191 -0
- package/esm/illustrations/createIllustration.js +53 -0
- package/esm/illustrations/index.js +5 -0
- package/esm/index.js +6 -0
- package/esm/layout/Box.js +239 -0
- package/esm/layout/Divider.css +2 -0
- package/esm/layout/Divider.js +39 -0
- package/esm/layout/Fallback.css +1 -0
- package/esm/layout/Fallback.js +83 -0
- package/esm/layout/Grid.js +40 -0
- package/esm/layout/GridColumn.js +32 -0
- package/esm/layout/Group.js +68 -0
- package/esm/layout/HStack.js +26 -0
- package/esm/layout/Spacer.js +45 -0
- package/esm/layout/VStack.js +26 -0
- package/esm/layout/__figma__/Divider.figma.js +31 -0
- package/esm/layout/__figma__/Fallback.figma.js +25 -0
- package/esm/layout/index.js +9 -0
- package/esm/loaders/CircularProgress.js +51 -0
- package/esm/loaders/MaterialSpinner.css +1 -0
- package/esm/loaders/MaterialSpinner.js +68 -0
- package/esm/loaders/Spinner.css +2 -0
- package/esm/loaders/Spinner.js +45 -0
- package/esm/loaders/index.js +1 -0
- package/esm/media/Avatar.css +5 -0
- package/esm/media/Avatar.js +130 -0
- package/esm/media/Hexagon.css +1 -0
- package/esm/media/Hexagon.js +158 -0
- package/esm/media/RemoteImage.css +10 -0
- package/esm/media/RemoteImage.js +63 -0
- package/esm/media/RemoteImageGroup.css +5 -0
- package/esm/media/RemoteImageGroup.js +93 -0
- package/esm/media/__figma__/Avatar.figma.js +61 -0
- package/esm/media/index.js +3 -0
- package/esm/motion/AnimatedCaret.js +72 -0
- package/esm/motion/ColorSurge.js +46 -0
- package/esm/motion/Pulse.js +60 -0
- package/esm/motion/Shake.js +31 -0
- package/esm/motion/types.js +1 -0
- package/esm/motion/useMotionProps.js +46 -0
- package/esm/motion/utils.js +80 -0
- package/esm/multi-content-module/MultiContentModule.js +81 -0
- package/esm/multi-content-module/__figma__/MultiContentModule.figma.js +39 -0
- package/esm/navigation/NavLink.css +1 -0
- package/esm/navigation/NavLink.js +29 -0
- package/esm/navigation/NavigationBar.js +73 -0
- package/esm/navigation/NavigationTitle.js +24 -0
- package/esm/navigation/NavigationTitleSelect.js +81 -0
- package/esm/navigation/Sidebar.css +3 -0
- package/esm/navigation/Sidebar.js +122 -0
- package/esm/navigation/SidebarContext.js +10 -0
- package/esm/navigation/SidebarItem.css +1 -0
- package/esm/navigation/SidebarItem.js +87 -0
- package/esm/navigation/SidebarMoreMenu.js +85 -0
- package/esm/navigation/__figma__/NavLink.figma.js +58 -0
- package/esm/navigation/__figma__/NavigationBar.figma.js +284 -0
- package/esm/navigation/__figma__/NavigationTitle.figma.js +18 -0
- package/esm/navigation/__figma__/Sidebar.figma.js +40 -0
- package/esm/navigation/__figma__/SidebarItem.figma.js +25 -0
- package/esm/navigation/index.js +7 -0
- package/esm/numbers/RollingNumber/DefaultRollingNumberAffixSection.css +1 -0
- package/esm/numbers/RollingNumber/DefaultRollingNumberAffixSection.js +37 -0
- package/esm/numbers/RollingNumber/DefaultRollingNumberDigit.css +5 -0
- package/esm/numbers/RollingNumber/DefaultRollingNumberDigit.js +83 -0
- package/esm/numbers/RollingNumber/DefaultRollingNumberMask.css +1 -0
- package/esm/numbers/RollingNumber/DefaultRollingNumberMask.js +31 -0
- package/esm/numbers/RollingNumber/DefaultRollingNumberSymbol.css +1 -0
- package/esm/numbers/RollingNumber/DefaultRollingNumberSymbol.js +35 -0
- package/esm/numbers/RollingNumber/DefaultRollingNumberValueSection.css +1 -0
- package/esm/numbers/RollingNumber/DefaultRollingNumberValueSection.js +90 -0
- package/esm/numbers/RollingNumber/RollingNumber.css +3 -0
- package/esm/numbers/RollingNumber/RollingNumber.js +261 -0
- package/esm/numbers/RollingNumber/index.js +6 -0
- package/esm/numbers/RollingNumber/useColorPulse.js +35 -0
- package/esm/numbers/index.js +1 -0
- package/esm/overlays/Alert.js +146 -0
- package/esm/overlays/FocusTrap.js +201 -0
- package/esm/overlays/FullscreenAlert.css +3 -0
- package/esm/overlays/FullscreenAlert.js +96 -0
- package/esm/overlays/Portal.js +24 -0
- package/esm/overlays/PortalProvider.js +109 -0
- package/esm/overlays/Toast.css +2 -0
- package/esm/overlays/Toast.js +135 -0
- package/esm/overlays/__figma__/Alert.figma.js +37 -0
- package/esm/overlays/__figma__/Toast.figma.js +51 -0
- package/esm/overlays/index.js +17 -0
- package/esm/overlays/modal/FullscreenModal.css +5 -0
- package/esm/overlays/modal/FullscreenModal.js +103 -0
- package/esm/overlays/modal/FullscreenModalHeader.css +2 -0
- package/esm/overlays/modal/FullscreenModalHeader.js +74 -0
- package/esm/overlays/modal/FullscreenModalLayout.css +1 -0
- package/esm/overlays/modal/FullscreenModalLayout.js +74 -0
- package/esm/overlays/modal/Modal.css +3 -0
- package/esm/overlays/modal/Modal.js +134 -0
- package/esm/overlays/modal/ModalBody.js +38 -0
- package/esm/overlays/modal/ModalFooter.css +1 -0
- package/esm/overlays/modal/ModalFooter.js +46 -0
- package/esm/overlays/modal/ModalHeader.js +83 -0
- package/esm/overlays/modal/ModalWrapper.css +1 -0
- package/esm/overlays/modal/ModalWrapper.js +77 -0
- package/esm/overlays/modal/__figma__/FullscreenModal.figma.css +1 -0
- package/esm/overlays/modal/__figma__/FullscreenModal.figma.js +104 -0
- package/esm/overlays/modal/__figma__/Modal.figma.js +81 -0
- package/esm/overlays/overlay/Overlay.js +21 -0
- package/esm/overlays/overlay/OverlayContent.js +38 -0
- package/esm/overlays/popover/Popover.css +2 -0
- package/esm/overlays/popover/Popover.js +147 -0
- package/esm/overlays/popover/PopoverProps.js +1 -0
- package/esm/overlays/popover/usePopper.js +40 -0
- package/esm/overlays/tooltip/Tooltip.js +87 -0
- package/esm/overlays/tooltip/TooltipContent.css +1 -0
- package/esm/overlays/tooltip/TooltipContent.js +65 -0
- package/esm/overlays/tooltip/TooltipProps.js +1 -0
- package/esm/overlays/tooltip/__figma__/Tooltip.figma.js +91 -0
- package/esm/overlays/tooltip/useTooltipState.js +27 -0
- package/esm/overlays/tray/Tray.js +208 -0
- package/esm/overlays/useModal.js +6 -0
- package/esm/overlays/usePortal.js +2 -0
- package/esm/overlays/useToast.js +44 -0
- package/esm/page/PageFooter.js +43 -0
- package/esm/page/PageHeader.css +2 -0
- package/esm/page/PageHeader.js +131 -0
- package/esm/page/__figma__/PageFooter.figma.js +17 -0
- package/esm/page/__figma__/PageHeader.figma.js +57 -0
- package/esm/pagination/DefaultPaginationEllipsis.js +16 -0
- package/esm/pagination/DefaultPaginationNavigationButton.js +30 -0
- package/esm/pagination/DefaultPaginationNavigationTextButton.js +35 -0
- package/esm/pagination/DefaultPaginationPageButton.css +1 -0
- package/esm/pagination/DefaultPaginationPageButton.js +41 -0
- package/esm/pagination/Pagination.js +141 -0
- package/esm/pagination/__figma__/Pagination.figma.js +22 -0
- package/esm/pagination/usePagination.js +122 -0
- package/esm/section-header/SectionHeader.js +70 -0
- package/esm/section-header/__figma__/SectionHeader.figma.js +58 -0
- package/esm/stepper/DefaultStepperHeaderHorizontal.js +87 -0
- package/esm/stepper/DefaultStepperIconVertical.js +51 -0
- package/esm/stepper/DefaultStepperLabelHorizontal.js +114 -0
- package/esm/stepper/DefaultStepperLabelVertical.js +72 -0
- package/esm/stepper/DefaultStepperProgressHorizontal.js +65 -0
- package/esm/stepper/DefaultStepperProgressVertical.js +111 -0
- package/esm/stepper/DefaultStepperStepHorizontal.js +173 -0
- package/esm/stepper/DefaultStepperStepVertical.js +179 -0
- package/esm/stepper/DefaultStepperSubstepContainerHorizontal.js +37 -0
- package/esm/stepper/DefaultStepperSubstepContainerVertical.js +35 -0
- package/esm/stepper/Stepper.js +238 -0
- package/esm/stepper/index.js +13 -0
- package/esm/styles/booleanStyles.css +12 -0
- package/esm/styles/booleanStyles.js +25 -0
- package/esm/styles/config.js +47 -0
- package/esm/styles/defaultFont.css +1 -0
- package/esm/styles/defaultFont.js +3 -0
- package/esm/styles/global.css +1 -0
- package/esm/styles/global.js +3 -0
- package/esm/styles/media.js +21 -0
- package/esm/styles/responsive/base.css +659 -0
- package/esm/styles/responsive/base.js +786 -0
- package/esm/styles/responsive/desktop.css +1 -0
- package/esm/styles/responsive/desktop.js +787 -0
- package/esm/styles/responsive/phone.css +1 -0
- package/esm/styles/responsive/phone.js +787 -0
- package/esm/styles/responsive/tablet.css +1 -0
- package/esm/styles/responsive/tablet.js +787 -0
- package/esm/styles/styleProps.js +187 -0
- package/esm/system/BrowserOnly.js +13 -0
- package/esm/system/ButtonOrLink.css +1 -0
- package/esm/system/ButtonOrLink.js +167 -0
- package/esm/system/EventHandlerProvider.js +7 -0
- package/esm/system/FramerMotionProvider.js +14 -0
- package/esm/system/Interactable.css +4 -0
- package/esm/system/Interactable.js +114 -0
- package/esm/system/MediaQueryProvider.js +164 -0
- package/esm/system/Pressable.css +3 -0
- package/esm/system/Pressable.js +148 -0
- package/esm/system/PressableOpacity.js +33 -0
- package/esm/system/ThemeProvider.js +87 -0
- package/esm/system/index.js +6 -0
- package/esm/system/interactableCSSProperties.js +14 -0
- package/esm/system/reakit-utils.js +151 -0
- package/esm/tables/Table.css +7 -0
- package/esm/tables/Table.js +76 -0
- package/esm/tables/TableBody.js +25 -0
- package/esm/tables/TableCaption.js +68 -0
- package/esm/tables/TableCell.css +5 -0
- package/esm/tables/TableCell.js +187 -0
- package/esm/tables/TableCellFallback.css +1 -0
- package/esm/tables/TableCellFallback.js +79 -0
- package/esm/tables/TableCellSortIcon.js +37 -0
- package/esm/tables/TableFooter.js +25 -0
- package/esm/tables/TableHeader.css +1 -0
- package/esm/tables/TableHeader.js +32 -0
- package/esm/tables/TableRow.css +2 -0
- package/esm/tables/TableRow.js +68 -0
- package/esm/tables/TableSection.js +41 -0
- package/esm/tables/__figma__/TableCell.figma.js +116 -0
- package/esm/tables/context/TableContext.js +5 -0
- package/esm/tables/context/TableSectionContext.js +2 -0
- package/esm/tables/hooks/useSortableCell.js +21 -0
- package/esm/tables/hooks/useTable.js +77 -0
- package/esm/tables/hooks/useTableRowListener.js +25 -0
- package/esm/tables/hooks/useTableVariant.js +7 -0
- package/esm/tables/index.js +8 -0
- package/esm/tabs/Paddle.css +7 -0
- package/esm/tabs/Paddle.js +87 -0
- package/esm/tabs/SegmentedTab.css +4 -0
- package/esm/tabs/SegmentedTab.js +78 -0
- package/esm/tabs/SegmentedTabs.js +34 -0
- package/esm/tabs/SegmentedTabsActiveIndicator.js +20 -0
- package/esm/tabs/TabIndicator.js +55 -0
- package/esm/tabs/TabLabel.css +3 -0
- package/esm/tabs/TabLabel.js +125 -0
- package/esm/tabs/TabNavigation.css +5 -0
- package/esm/tabs/TabNavigation.js +319 -0
- package/esm/tabs/Tabs.js +142 -0
- package/esm/tabs/__figma__/SegmentedTabs.figma.js +82 -0
- package/esm/tabs/__figma__/TabNavigation.figma.js +82 -0
- package/esm/tabs/hooks/useAnimateTabIndicator.js +47 -0
- package/esm/tabs/index.js +7 -0
- package/esm/tag/Tag.js +63 -0
- package/esm/tag/__figma__/Tag.figma.js +82 -0
- package/esm/themes/coinbaseDenseTheme.js +135 -0
- package/esm/themes/coinbaseHighContrastTheme.js +576 -0
- package/esm/themes/coinbaseTheme.js +576 -0
- package/esm/themes/defaultHighContrastTheme.js +576 -0
- package/esm/themes/defaultTheme.js +576 -0
- package/esm/tour/DefaultTourMask.js +39 -0
- package/esm/tour/DefaultTourStepArrow.js +42 -0
- package/esm/tour/Tour.css +1 -0
- package/esm/tour/Tour.js +204 -0
- package/esm/tour/TourStep.js +22 -0
- package/esm/tour/index.js +4 -0
- package/esm/types.js +1 -0
- package/esm/typography/Link.css +1 -0
- package/esm/typography/Link.js +62 -0
- package/esm/typography/Text.css +11 -0
- package/esm/typography/Text.js +77 -0
- package/esm/typography/TextBody.js +26 -0
- package/esm/typography/TextCaption.js +26 -0
- package/esm/typography/TextDisplay1.js +26 -0
- package/esm/typography/TextDisplay2.js +26 -0
- package/esm/typography/TextDisplay3.js +26 -0
- package/esm/typography/TextHeadline.js +26 -0
- package/esm/typography/TextInherited.js +26 -0
- package/esm/typography/TextLabel1.js +26 -0
- package/esm/typography/TextLabel2.js +26 -0
- package/esm/typography/TextLegal.js +26 -0
- package/esm/typography/TextTitle1.js +26 -0
- package/esm/typography/TextTitle2.js +26 -0
- package/esm/typography/TextTitle3.js +26 -0
- package/esm/typography/TextTitle4.js +26 -0
- package/esm/typography/__figma__/Link.figma.js +32 -0
- package/esm/typography/index.js +16 -0
- package/esm/utils/browser.js +29 -0
- package/esm/utils/eventHandlers.js +1 -0
- package/esm/utils/flattenAndJoinNodes.js +47 -0
- package/esm/utils/isRtl.js +7 -0
- package/esm/utils/mediaQueryListener.js +16 -0
- package/esm/utils/storybook.js +5 -0
- package/esm/utils/test.js +30 -0
- package/esm/visualizations/Counter.css +3 -0
- package/esm/visualizations/Counter.js +38 -0
- package/esm/visualizations/DefaultProgressCircleContent.js +15 -0
- package/esm/visualizations/ProgressBar.css +1 -0
- package/esm/visualizations/ProgressBar.js +96 -0
- package/esm/visualizations/ProgressBarWithFixedLabels.js +166 -0
- package/esm/visualizations/ProgressBarWithFloatLabel.css +1 -0
- package/esm/visualizations/ProgressBarWithFloatLabel.js +126 -0
- package/esm/visualizations/ProgressCircle.css +1 -0
- package/esm/visualizations/ProgressCircle.js +162 -0
- package/esm/visualizations/ProgressContainerWithButtons.js +39 -0
- package/esm/visualizations/ProgressTextLabel.js +48 -0
- package/esm/visualizations/VisualizationContainer.js +32 -0
- package/esm/visualizations/__figma__/ProgressBar.figma.js +103 -0
- package/esm/visualizations/__figma__/ProgressCircle.figma.js +29 -0
- package/esm/visualizations/getProgressBarLabelParts.js +11 -0
- package/esm/visualizations/index.js +7 -0
- package/package.json +186 -6
- package/index.js +0 -1
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
const _excluded = ["as", "variant", "transparent", "compact", "background", "color", "borderColor", "borderRadius", "borderWidth", "alignItems", "justifyContent", "height", "width", "className", "name", "active", "flush", "loading", "accessibilityLabel", "accessibilityHint"];
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
8
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
9
|
+
import React, { forwardRef, memo, useMemo } from 'react';
|
|
10
|
+
import { transparentVariants, variants } from '@coinbase/cds-common/tokens/button';
|
|
11
|
+
import { cx } from '../cx';
|
|
12
|
+
import { useTheme } from '../hooks/useTheme';
|
|
13
|
+
import { Icon } from '../icons/Icon';
|
|
14
|
+
import { Spinner } from '../loaders/Spinner';
|
|
15
|
+
import { Pressable } from '../system/Pressable';
|
|
16
|
+
import { spinnerHeight } from './Button';
|
|
17
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
18
|
+
const baseSpinnerCss = "baseSpinnerCss-b1po8mo6";
|
|
19
|
+
export const iconButtonDefaultElement = 'button';
|
|
20
|
+
const flushSpaceCss = "flushSpaceCss-fqg7x6g";
|
|
21
|
+
const flushStartCss = "flushStartCss-f18p387c";
|
|
22
|
+
const flushEndCss = "flushEndCss-f10uyuq9";
|
|
23
|
+
export const IconButton = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref, ref) => {
|
|
24
|
+
let {
|
|
25
|
+
as,
|
|
26
|
+
variant = 'secondary',
|
|
27
|
+
transparent,
|
|
28
|
+
compact = true,
|
|
29
|
+
background,
|
|
30
|
+
color,
|
|
31
|
+
borderColor,
|
|
32
|
+
borderRadius = 1000,
|
|
33
|
+
borderWidth = 100,
|
|
34
|
+
alignItems = 'center',
|
|
35
|
+
justifyContent = 'center',
|
|
36
|
+
// TO DO: fix this when removing interactableHeight
|
|
37
|
+
height = compact ? 40 : 56,
|
|
38
|
+
width = compact ? 40 : 56,
|
|
39
|
+
className,
|
|
40
|
+
name,
|
|
41
|
+
active,
|
|
42
|
+
flush,
|
|
43
|
+
loading,
|
|
44
|
+
accessibilityLabel,
|
|
45
|
+
accessibilityHint
|
|
46
|
+
} = _ref,
|
|
47
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
48
|
+
const Component = as !== null && as !== void 0 ? as : iconButtonDefaultElement;
|
|
49
|
+
const theme = useTheme();
|
|
50
|
+
const iconSize = compact ? 's' : 'm';
|
|
51
|
+
const iconSizeValue = theme.iconSize[iconSize];
|
|
52
|
+
const spinnerSizeStyles = useMemo(() => ({
|
|
53
|
+
width: iconSizeValue,
|
|
54
|
+
height: iconSizeValue
|
|
55
|
+
}), [iconSizeValue]);
|
|
56
|
+
const variantMap = transparent ? transparentVariants : variants;
|
|
57
|
+
const variantStyle = variantMap[variant];
|
|
58
|
+
const colorValue = color !== null && color !== void 0 ? color : variantStyle.color;
|
|
59
|
+
const backgroundValue = background !== null && background !== void 0 ? background : variantStyle.background;
|
|
60
|
+
const borderColorValue = borderColor !== null && borderColor !== void 0 ? borderColor : variantStyle.borderColor;
|
|
61
|
+
return /*#__PURE__*/_jsx(Pressable, _objectSpread(_objectSpread({
|
|
62
|
+
ref: ref,
|
|
63
|
+
accessibilityHint: accessibilityHint,
|
|
64
|
+
accessibilityLabel: loading ? "".concat(accessibilityLabel !== null && accessibilityLabel !== void 0 ? accessibilityLabel : '', ", loading") : accessibilityLabel,
|
|
65
|
+
alignItems: alignItems,
|
|
66
|
+
as: Component,
|
|
67
|
+
background: backgroundValue,
|
|
68
|
+
borderColor: borderColorValue,
|
|
69
|
+
borderRadius: borderRadius,
|
|
70
|
+
borderWidth: borderWidth,
|
|
71
|
+
className: cx(flush && flushSpaceCss, flush === 'start' && flushStartCss, flush === 'end' && flushEndCss, className),
|
|
72
|
+
color: colorValue,
|
|
73
|
+
height: height,
|
|
74
|
+
justifyContent: justifyContent,
|
|
75
|
+
loading: loading,
|
|
76
|
+
transparentWhileInactive: transparent,
|
|
77
|
+
width: width
|
|
78
|
+
}, props), {}, {
|
|
79
|
+
children: loading ? /*#__PURE__*/_jsx(Spinner, {
|
|
80
|
+
className: baseSpinnerCss,
|
|
81
|
+
color: "currentColor",
|
|
82
|
+
size: spinnerHeight,
|
|
83
|
+
style: spinnerSizeStyles,
|
|
84
|
+
testID: props.testID ? "".concat(props.testID, "-spinner") : undefined
|
|
85
|
+
}) : /*#__PURE__*/_jsx(Icon, {
|
|
86
|
+
active: active,
|
|
87
|
+
color: "currentColor",
|
|
88
|
+
name: name,
|
|
89
|
+
size: iconSize
|
|
90
|
+
})
|
|
91
|
+
}));
|
|
92
|
+
}));
|
|
93
|
+
IconButton.displayName = 'IconButton';
|
|
94
|
+
import "./IconButton.css";
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
const _excluded = ["icon", "iconSize", "size", "active", "count", "color", "dangerouslySetColor", "background"];
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
8
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
9
|
+
import React, { forwardRef, memo } from 'react';
|
|
10
|
+
import { formatCount } from '@coinbase/cds-common/utils/formatCount';
|
|
11
|
+
import { Icon } from '../icons/Icon';
|
|
12
|
+
import { HStack } from '../layout/HStack';
|
|
13
|
+
import { Pressable } from '../system/Pressable';
|
|
14
|
+
import { Text } from '../typography/Text';
|
|
15
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
|
+
export const IconCounterButton = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function IconCounterButton(_ref, ref) {
|
|
17
|
+
let {
|
|
18
|
+
icon,
|
|
19
|
+
iconSize = 's',
|
|
20
|
+
size = iconSize,
|
|
21
|
+
active,
|
|
22
|
+
count = 0,
|
|
23
|
+
color = 'fg',
|
|
24
|
+
dangerouslySetColor,
|
|
25
|
+
background = 'transparent'
|
|
26
|
+
} = _ref,
|
|
27
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
28
|
+
return /*#__PURE__*/_jsx(Pressable, _objectSpread(_objectSpread({
|
|
29
|
+
ref: ref,
|
|
30
|
+
background: background
|
|
31
|
+
}, props), {}, {
|
|
32
|
+
children: /*#__PURE__*/_jsxs(HStack, {
|
|
33
|
+
alignItems: "center",
|
|
34
|
+
gap: 1,
|
|
35
|
+
children: [typeof icon === 'string' ? /*#__PURE__*/_jsx(Icon, {
|
|
36
|
+
active: active,
|
|
37
|
+
color: color,
|
|
38
|
+
dangerouslySetColor: dangerouslySetColor,
|
|
39
|
+
name: icon,
|
|
40
|
+
size: size
|
|
41
|
+
}) : icon, count > 0 ? /*#__PURE__*/_jsx(Text, {
|
|
42
|
+
mono: true,
|
|
43
|
+
as: "p",
|
|
44
|
+
display: "block",
|
|
45
|
+
font: "label1",
|
|
46
|
+
children: formatCount(count)
|
|
47
|
+
}) : null]
|
|
48
|
+
})
|
|
49
|
+
}));
|
|
50
|
+
}));
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import React, { memo, useCallback, useMemo, useState } from 'react';
|
|
2
|
+
import { DotCount } from '../dots/DotCount';
|
|
3
|
+
import { VStack } from '../layout/VStack';
|
|
4
|
+
import { Text } from '../typography/Text';
|
|
5
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
|
+
const truncatedCss = "truncatedCss-te0139g";
|
|
7
|
+
const visibleCss = "visibleCss-v1axtw2j";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @danger this component is for internal use only
|
|
11
|
+
*/
|
|
12
|
+
export const Tile = /*#__PURE__*/memo(_ref => {
|
|
13
|
+
let {
|
|
14
|
+
title,
|
|
15
|
+
count,
|
|
16
|
+
showOverflow,
|
|
17
|
+
children
|
|
18
|
+
} = _ref;
|
|
19
|
+
const [shouldOverflow, setShouldOverflow] = useState(false);
|
|
20
|
+
const overflowTextStyles = (showOverflow !== null && showOverflow !== void 0 ? showOverflow : shouldOverflow) ? visibleCss : truncatedCss;
|
|
21
|
+
const handleShowOverflow = useCallback(() => {
|
|
22
|
+
if (showOverflow === undefined) setShouldOverflow(true);
|
|
23
|
+
}, [showOverflow]);
|
|
24
|
+
const handleHideOverflow = useCallback(() => {
|
|
25
|
+
if (showOverflow === undefined) setShouldOverflow(false);
|
|
26
|
+
}, [showOverflow]);
|
|
27
|
+
|
|
28
|
+
/* If count is provided, wrap the children in a DotCount */
|
|
29
|
+
const renderContent = useMemo(() => count ? /*#__PURE__*/_jsx(DotCount, {
|
|
30
|
+
count: count,
|
|
31
|
+
pin: "top-end",
|
|
32
|
+
children: children
|
|
33
|
+
}) : children, [children, count]);
|
|
34
|
+
return /*#__PURE__*/_jsxs(VStack, {
|
|
35
|
+
alignItems: "center",
|
|
36
|
+
gap: 1,
|
|
37
|
+
justifyContent: "center",
|
|
38
|
+
onMouseEnter: handleShowOverflow,
|
|
39
|
+
onMouseLeave: handleHideOverflow,
|
|
40
|
+
padding: 1,
|
|
41
|
+
width: "var(--controlSize-tileSize)",
|
|
42
|
+
children: [/*#__PURE__*/_jsx(VStack, {
|
|
43
|
+
alignItems: "center",
|
|
44
|
+
justifyContent: "center",
|
|
45
|
+
children: renderContent
|
|
46
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
47
|
+
as: "p",
|
|
48
|
+
className: overflowTextStyles,
|
|
49
|
+
display: "block",
|
|
50
|
+
font: "label2",
|
|
51
|
+
textAlign: "center",
|
|
52
|
+
children: title
|
|
53
|
+
})]
|
|
54
|
+
});
|
|
55
|
+
});
|
|
56
|
+
import "./Tile.css";
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
const _excluded = ["as", "pictogram", "title", "count", "children", "showOverflow"];
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
8
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
9
|
+
import React, { forwardRef, memo, useMemo } from 'react';
|
|
10
|
+
import { gutter } from '@coinbase/cds-common/tokens/sizing';
|
|
11
|
+
import { pictogramScaleMultiplier } from '@coinbase/cds-common/tokens/tile';
|
|
12
|
+
import { isDevelopment } from '@coinbase/cds-utils';
|
|
13
|
+
import { Pictogram } from '../illustrations/Pictogram';
|
|
14
|
+
import { Pressable } from '../system/Pressable';
|
|
15
|
+
import { Tile } from './Tile';
|
|
16
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
|
+
export const tileButtonDefaultElement = 'button';
|
|
18
|
+
export const TileButton = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref, ref) => {
|
|
19
|
+
let {
|
|
20
|
+
as,
|
|
21
|
+
pictogram,
|
|
22
|
+
title,
|
|
23
|
+
count,
|
|
24
|
+
children,
|
|
25
|
+
showOverflow
|
|
26
|
+
} = _ref,
|
|
27
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
28
|
+
const Component = as !== null && as !== void 0 ? as : tileButtonDefaultElement;
|
|
29
|
+
if (isDevelopment() && title.trim() === '') {
|
|
30
|
+
console.warn('Setting an empty title in TileButton violates accessibility and CDS usage guidelines.');
|
|
31
|
+
}
|
|
32
|
+
const content = useMemo(() => children || /*#__PURE__*/_jsx(Pictogram, {
|
|
33
|
+
name: pictogram,
|
|
34
|
+
scaleMultiplier: pictogramScaleMultiplier
|
|
35
|
+
}), [children, pictogram]);
|
|
36
|
+
return /*#__PURE__*/_jsx("div", {
|
|
37
|
+
style: {
|
|
38
|
+
height: 'var(--controlSize-tileSize)',
|
|
39
|
+
/* add gutter to account for the border added by Pressable */
|
|
40
|
+
width: "calc(var(--controlSize-tileSize) + ".concat(gutter, "px)")
|
|
41
|
+
},
|
|
42
|
+
children: /*#__PURE__*/_jsx(Pressable, _objectSpread(_objectSpread({
|
|
43
|
+
ref: ref,
|
|
44
|
+
noScaleOnPress: true,
|
|
45
|
+
transparentWhileInactive: true,
|
|
46
|
+
as: Component,
|
|
47
|
+
background: "bg",
|
|
48
|
+
borderRadius: 400
|
|
49
|
+
}, props), {}, {
|
|
50
|
+
children: /*#__PURE__*/_jsx(Tile, {
|
|
51
|
+
count: count,
|
|
52
|
+
showOverflow: showOverflow,
|
|
53
|
+
title: title,
|
|
54
|
+
children: content
|
|
55
|
+
})
|
|
56
|
+
}))
|
|
57
|
+
});
|
|
58
|
+
}));
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
3
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
4
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
5
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import { figma } from '@figma/code-connect';
|
|
8
|
+
import { AvatarButton } from '../AvatarButton';
|
|
9
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
+
figma.connect(AvatarButton, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=276-23400&m=dev', {
|
|
11
|
+
imports: ["import {AvatarButton} from '@coinbase/cds-web/buttons/AvatarButton';"],
|
|
12
|
+
props: {
|
|
13
|
+
// state: figma.enum('state', {
|
|
14
|
+
// active: 'active',
|
|
15
|
+
// focus: 'focus',
|
|
16
|
+
// hover: 'hover',
|
|
17
|
+
// pressed: 'pressed',
|
|
18
|
+
// selected: 'selected',
|
|
19
|
+
// }),
|
|
20
|
+
selected: figma.enum('state', {
|
|
21
|
+
selected: true
|
|
22
|
+
}),
|
|
23
|
+
compact: figma.boolean('compact'),
|
|
24
|
+
loading: figma.boolean('disabled')
|
|
25
|
+
},
|
|
26
|
+
example: props => /*#__PURE__*/_jsx(AvatarButton, _objectSpread(_objectSpread({}, props), {}, {
|
|
27
|
+
accessibilityLabel: "Avatar button",
|
|
28
|
+
name: "A"
|
|
29
|
+
}))
|
|
30
|
+
});
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
3
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
4
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
5
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
6
|
+
function _objectDestructuringEmpty(t) { if (null == t) throw new TypeError("Cannot destructure " + t); }
|
|
7
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
8
|
+
import React from 'react';
|
|
9
|
+
import { figma } from '@figma/code-connect';
|
|
10
|
+
import { Button } from '../Button';
|
|
11
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
|
+
figma.connect(Button, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=89-3096&m=dev', {
|
|
13
|
+
imports: ["import { Button } from '@coinbase/cds-web/buttons/Button';"],
|
|
14
|
+
props: {
|
|
15
|
+
variant: figma.enum('variant', {
|
|
16
|
+
primary: 'primary',
|
|
17
|
+
secondary: 'secondary',
|
|
18
|
+
negative: 'negative'
|
|
19
|
+
}),
|
|
20
|
+
transparent: figma.boolean('transparent'),
|
|
21
|
+
loading: figma.enum('state', {
|
|
22
|
+
loading: true,
|
|
23
|
+
default: false,
|
|
24
|
+
hover: false,
|
|
25
|
+
pressed: false,
|
|
26
|
+
disabled: false
|
|
27
|
+
}),
|
|
28
|
+
disabled: figma.enum('state', {
|
|
29
|
+
disabled: true,
|
|
30
|
+
default: false,
|
|
31
|
+
hover: false,
|
|
32
|
+
pressed: false,
|
|
33
|
+
loading: false
|
|
34
|
+
}),
|
|
35
|
+
compact: figma.boolean('compact'),
|
|
36
|
+
block: figma.enum('width', {
|
|
37
|
+
hug: false,
|
|
38
|
+
full: true,
|
|
39
|
+
flush: false
|
|
40
|
+
}),
|
|
41
|
+
startIcon: figma.enum('icon', {
|
|
42
|
+
leading: figma.instance('↳ icon'),
|
|
43
|
+
trailing: undefined,
|
|
44
|
+
none: undefined
|
|
45
|
+
}),
|
|
46
|
+
endIcon: figma.enum('icon', {
|
|
47
|
+
trailing: figma.instance('↳ icon'),
|
|
48
|
+
leading: undefined,
|
|
49
|
+
none: undefined
|
|
50
|
+
}),
|
|
51
|
+
flush: figma.enum('width', {
|
|
52
|
+
hug: undefined,
|
|
53
|
+
full: undefined,
|
|
54
|
+
flush: 'start'
|
|
55
|
+
})
|
|
56
|
+
},
|
|
57
|
+
example: _ref => {
|
|
58
|
+
let props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
59
|
+
return /*#__PURE__*/_jsx(Button, _objectSpread(_objectSpread({}, props), {}, {
|
|
60
|
+
children: "Button"
|
|
61
|
+
}));
|
|
62
|
+
}
|
|
63
|
+
});
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
const _excluded = ["children"];
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
8
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
9
|
+
import React from 'react';
|
|
10
|
+
import { figma } from '@figma/code-connect';
|
|
11
|
+
import { Button } from '../Button';
|
|
12
|
+
import { ButtonGroup } from '../ButtonGroup';
|
|
13
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
+
figma.connect(ButtonGroup, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=283-19617&m=dev', {
|
|
15
|
+
imports: ["import {ButtonGroup} from '@coinbase/cds-web/buttons/ButtonGroup'"],
|
|
16
|
+
props: {
|
|
17
|
+
direction: figma.enum('orientation', {
|
|
18
|
+
stacked: 'vertical',
|
|
19
|
+
'side-by-side': 'horizontal'
|
|
20
|
+
}),
|
|
21
|
+
children: figma.enum('# of actions', {
|
|
22
|
+
'2': /*#__PURE__*/_jsxs(_Fragment, {
|
|
23
|
+
children: [/*#__PURE__*/_jsx(Button, {
|
|
24
|
+
variant: "primary",
|
|
25
|
+
children: "Button"
|
|
26
|
+
}), /*#__PURE__*/_jsx(Button, {
|
|
27
|
+
variant: "secondary",
|
|
28
|
+
children: "Button"
|
|
29
|
+
})]
|
|
30
|
+
}),
|
|
31
|
+
'3': /*#__PURE__*/_jsxs(_Fragment, {
|
|
32
|
+
children: [/*#__PURE__*/_jsx(Button, {
|
|
33
|
+
variant: "primary",
|
|
34
|
+
children: "Button"
|
|
35
|
+
}), /*#__PURE__*/_jsx(Button, {
|
|
36
|
+
variant: "secondary",
|
|
37
|
+
children: "Button"
|
|
38
|
+
}), /*#__PURE__*/_jsx(Button, {
|
|
39
|
+
variant: "negative",
|
|
40
|
+
children: "Button"
|
|
41
|
+
})]
|
|
42
|
+
})
|
|
43
|
+
})
|
|
44
|
+
},
|
|
45
|
+
example: _ref => {
|
|
46
|
+
let {
|
|
47
|
+
children
|
|
48
|
+
} = _ref,
|
|
49
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
50
|
+
return /*#__PURE__*/_jsx(ButtonGroup, _objectSpread(_objectSpread({}, props), {}, {
|
|
51
|
+
children: children
|
|
52
|
+
}));
|
|
53
|
+
}
|
|
54
|
+
});
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
3
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
4
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
5
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
6
|
+
function _objectDestructuringEmpty(t) { if (null == t) throw new TypeError("Cannot destructure " + t); }
|
|
7
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
8
|
+
import React from 'react';
|
|
9
|
+
import { figma } from '@figma/code-connect';
|
|
10
|
+
import { IconButton } from '../IconButton';
|
|
11
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
|
+
figma.connect(IconButton, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=47-358&m=dev', {
|
|
13
|
+
imports: ["import {IconButton} from '@coinbase/cds-web/buttons/IconButton';"],
|
|
14
|
+
props: {
|
|
15
|
+
variant: figma.enum('variant', {
|
|
16
|
+
primary: 'primary',
|
|
17
|
+
secondary: 'secondary'
|
|
18
|
+
}),
|
|
19
|
+
disabled: figma.enum('state', {
|
|
20
|
+
disabled: true,
|
|
21
|
+
default: false,
|
|
22
|
+
hover: false,
|
|
23
|
+
pressed: false,
|
|
24
|
+
loading: false
|
|
25
|
+
}),
|
|
26
|
+
compact: figma.boolean('compact'),
|
|
27
|
+
transparent: figma.boolean('transparent')
|
|
28
|
+
},
|
|
29
|
+
example: _ref => {
|
|
30
|
+
let props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
31
|
+
return /*#__PURE__*/_jsx(IconButton, _objectSpread({
|
|
32
|
+
name: "add"
|
|
33
|
+
}, props));
|
|
34
|
+
}
|
|
35
|
+
});
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
const _excluded = ["children"];
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
8
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
9
|
+
import React from 'react';
|
|
10
|
+
import { figma } from '@figma/code-connect';
|
|
11
|
+
import { TileButton } from '../TileButton';
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
figma.connect(TileButton, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=286%3A18370', {
|
|
14
|
+
imports: ["import { TileButton } from '@coinbase/cds-web/buttons/TileButton';"],
|
|
15
|
+
props: {
|
|
16
|
+
title: figma.string('product text'),
|
|
17
|
+
children: figma.instance('product logo'),
|
|
18
|
+
disabled: figma.boolean('disabled')
|
|
19
|
+
},
|
|
20
|
+
example: _ref => {
|
|
21
|
+
let {
|
|
22
|
+
children
|
|
23
|
+
} = _ref,
|
|
24
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
25
|
+
return /*#__PURE__*/_jsx(TileButton, _objectSpread(_objectSpread({}, props), {}, {
|
|
26
|
+
children: children
|
|
27
|
+
}));
|
|
28
|
+
}
|
|
29
|
+
});
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
const _excluded = ["width", "title", "description", "testID", "accessibilityLabel", "accessibilityHint", "elevation", "borderRadius", "onClick"];
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
8
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
9
|
+
import React, { memo } from 'react';
|
|
10
|
+
import { Card } from './Card';
|
|
11
|
+
import { CardBody } from './CardBody';
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
/** @deprecated will be removed in v7.0.0 use NudgeCard or UpsellCard instead */
|
|
14
|
+
export const AnnouncementCard = /*#__PURE__*/memo(function AnnouncementCard(_ref) {
|
|
15
|
+
let {
|
|
16
|
+
width,
|
|
17
|
+
title,
|
|
18
|
+
description,
|
|
19
|
+
testID,
|
|
20
|
+
accessibilityLabel,
|
|
21
|
+
accessibilityHint,
|
|
22
|
+
elevation = 0,
|
|
23
|
+
borderRadius = 0,
|
|
24
|
+
onClick
|
|
25
|
+
// TODO this is only spread on the CardBody - are we sure that there are no CardBaseProps trapped in here that never make it to that element?
|
|
26
|
+
} = _ref,
|
|
27
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
28
|
+
const accessibilityLabelValue = typeof title === 'string' && accessibilityLabel === undefined ? title : accessibilityLabel;
|
|
29
|
+
const accessibilityHintValue = typeof description === 'string' && accessibilityHint === undefined ? description : accessibilityHint;
|
|
30
|
+
return /*#__PURE__*/_jsx(Card, {
|
|
31
|
+
accessibilityHint: accessibilityHintValue,
|
|
32
|
+
accessibilityLabel: accessibilityLabelValue,
|
|
33
|
+
borderRadius: borderRadius,
|
|
34
|
+
elevation: elevation,
|
|
35
|
+
flexShrink: 0,
|
|
36
|
+
onClick: onClick,
|
|
37
|
+
testID: testID,
|
|
38
|
+
width: width,
|
|
39
|
+
children: /*#__PURE__*/_jsx(CardBody, _objectSpread({
|
|
40
|
+
alignItems: "flex-start",
|
|
41
|
+
description: description,
|
|
42
|
+
title: title
|
|
43
|
+
}, props))
|
|
44
|
+
});
|
|
45
|
+
});
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
const _excluded = ["children", "background", "size", "onClick", "onKeyDown", "onKeyUp", "href", "target", "pin", "width", "height", "accessibilityLabel", "accessibilityLabelledBy", "accessibilityHint", "testID", "borderRadius", "elevation", "noScaleOnPress"];
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
8
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
9
|
+
import React, { memo, useMemo } from 'react';
|
|
10
|
+
import { cardSizes } from '@coinbase/cds-common/tokens/card';
|
|
11
|
+
import { VStack } from '../layout/VStack';
|
|
12
|
+
import { Pressable } from '../system/Pressable';
|
|
13
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
+
export const Card = /*#__PURE__*/memo(function Card(_ref) {
|
|
15
|
+
var _ref2;
|
|
16
|
+
let {
|
|
17
|
+
children,
|
|
18
|
+
background = 'bg',
|
|
19
|
+
size = 'large',
|
|
20
|
+
onClick,
|
|
21
|
+
onKeyDown,
|
|
22
|
+
onKeyUp,
|
|
23
|
+
href,
|
|
24
|
+
target,
|
|
25
|
+
pin,
|
|
26
|
+
width: widthProps,
|
|
27
|
+
height: heightProps,
|
|
28
|
+
accessibilityLabel,
|
|
29
|
+
accessibilityLabelledBy,
|
|
30
|
+
accessibilityHint,
|
|
31
|
+
testID,
|
|
32
|
+
borderRadius,
|
|
33
|
+
elevation,
|
|
34
|
+
noScaleOnPress
|
|
35
|
+
} = _ref,
|
|
36
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
37
|
+
const width = widthProps !== null && widthProps !== void 0 ? widthProps : cardSizes[size].width;
|
|
38
|
+
const height = heightProps !== null && heightProps !== void 0 ? heightProps : cardSizes[size].height;
|
|
39
|
+
const isAnchor = Boolean(href);
|
|
40
|
+
const isButton = Boolean((_ref2 = onClick !== null && onClick !== void 0 ? onClick : onKeyDown) !== null && _ref2 !== void 0 ? _ref2 : onKeyUp);
|
|
41
|
+
const linkable = isAnchor || isButton;
|
|
42
|
+
const content = useMemo(() => /*#__PURE__*/_jsx(VStack, _objectSpread(_objectSpread({
|
|
43
|
+
background: linkable ? undefined : background,
|
|
44
|
+
borderRadius: borderRadius,
|
|
45
|
+
elevation: linkable ? undefined : elevation,
|
|
46
|
+
height: linkable ? undefined : height,
|
|
47
|
+
overflow: "hidden",
|
|
48
|
+
pin: linkable ? undefined : pin,
|
|
49
|
+
testID: linkable ? undefined : testID,
|
|
50
|
+
width: linkable ? undefined : width
|
|
51
|
+
}, props), {}, {
|
|
52
|
+
children: children
|
|
53
|
+
})), [background, borderRadius, children, elevation, height, linkable, pin, props, testID, width]);
|
|
54
|
+
if (isAnchor) {
|
|
55
|
+
return /*#__PURE__*/_jsx(Pressable, {
|
|
56
|
+
accessibilityHint: accessibilityHint,
|
|
57
|
+
accessibilityLabel: accessibilityLabel,
|
|
58
|
+
accessibilityLabelledBy: accessibilityLabelledBy,
|
|
59
|
+
as: "a",
|
|
60
|
+
background: background,
|
|
61
|
+
borderRadius: borderRadius,
|
|
62
|
+
elevation: elevation,
|
|
63
|
+
height: height,
|
|
64
|
+
href: href,
|
|
65
|
+
noScaleOnPress: noScaleOnPress,
|
|
66
|
+
onClick: onClick,
|
|
67
|
+
onKeyDown: onKeyDown,
|
|
68
|
+
onKeyUp: onKeyUp,
|
|
69
|
+
pin: pin,
|
|
70
|
+
target: target,
|
|
71
|
+
testID: testID,
|
|
72
|
+
width: width,
|
|
73
|
+
children: content
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
if (isButton) {
|
|
77
|
+
return /*#__PURE__*/_jsx(Pressable, {
|
|
78
|
+
accessibilityHint: accessibilityHint,
|
|
79
|
+
accessibilityLabel: accessibilityLabel,
|
|
80
|
+
accessibilityLabelledBy: accessibilityLabelledBy,
|
|
81
|
+
background: background,
|
|
82
|
+
borderRadius: borderRadius,
|
|
83
|
+
elevation: elevation,
|
|
84
|
+
height: height,
|
|
85
|
+
noScaleOnPress: noScaleOnPress,
|
|
86
|
+
onClick: onClick,
|
|
87
|
+
onKeyDown: onKeyDown,
|
|
88
|
+
onKeyUp: onKeyUp,
|
|
89
|
+
pin: pin,
|
|
90
|
+
testID: testID,
|
|
91
|
+
width: width,
|
|
92
|
+
children: content
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
return content;
|
|
96
|
+
});
|
|
97
|
+
Card.displayName = 'Card';
|