@coinbase/cds-web 8.66.2 → 9.0.0-rc.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 +10 -0
- package/dts/AccessibilityAnnouncer/AccessibilityAnnouncer.d.ts +14 -16
- package/dts/AccessibilityAnnouncer/AccessibilityAnnouncer.d.ts.map +1 -1
- package/dts/accordion/AccordionHeader.d.ts +16 -18
- package/dts/accordion/AccordionHeader.d.ts.map +1 -1
- package/dts/accordion/AccordionItem.d.ts +2 -2
- package/dts/accordion/AccordionItem.d.ts.map +1 -1
- package/dts/accordion/AccordionPanel.d.ts +11 -13
- package/dts/accordion/AccordionPanel.d.ts.map +1 -1
- package/dts/alpha/combobox/DefaultComboboxControl.d.ts.map +1 -1
- package/dts/alpha/select/DefaultSelectControl.d.ts.map +1 -1
- package/dts/alpha/select/DefaultSelectDropdown.d.ts.map +1 -1
- package/dts/alpha/select/DefaultSelectOption.d.ts.map +1 -1
- package/dts/alpha/select/DefaultSelectOptionGroup.d.ts.map +1 -1
- package/dts/alpha/select/types.d.ts +6 -1
- package/dts/alpha/select/types.d.ts.map +1 -1
- package/dts/animation/Lottie.d.ts +3 -5
- package/dts/animation/Lottie.d.ts.map +1 -1
- package/dts/animation/LottieStatusAnimation.d.ts +2 -3
- package/dts/animation/LottieStatusAnimation.d.ts.map +1 -1
- package/dts/animation/useLottieLoader.d.ts +1 -1
- package/dts/banner/Banner.d.ts +26 -2
- package/dts/banner/Banner.d.ts.map +1 -1
- package/dts/buttons/AvatarButton.d.ts +89 -1
- package/dts/buttons/AvatarButton.d.ts.map +1 -1
- package/dts/buttons/Button.d.ts.map +1 -1
- package/dts/buttons/IconButton.d.ts.map +1 -1
- package/dts/buttons/IconCounterButton.d.ts +22 -11
- package/dts/buttons/IconCounterButton.d.ts.map +1 -1
- package/dts/buttons/Tile.d.ts +1 -1
- package/dts/buttons/Tile.d.ts.map +1 -1
- package/dts/cards/AnnouncementCard.d.ts +2 -2
- package/dts/cards/AnnouncementCard.d.ts.map +1 -1
- package/dts/cards/Card.d.ts +4 -0
- package/dts/cards/Card.d.ts.map +1 -1
- package/dts/cards/CardGroup.d.ts +2 -4
- package/dts/cards/CardGroup.d.ts.map +1 -1
- package/dts/cards/CardMedia.d.ts.map +1 -1
- package/dts/cards/FeatureEntryCard.d.ts +2 -6
- package/dts/cards/FeatureEntryCard.d.ts.map +1 -1
- package/dts/cards/FeedCard.d.ts +2 -6
- package/dts/cards/FeedCard.d.ts.map +1 -1
- package/dts/cards/LikeButton.d.ts +2 -3
- package/dts/cards/LikeButton.d.ts.map +1 -1
- package/dts/cards/UpsellCard.d.ts +7 -2
- package/dts/cards/UpsellCard.d.ts.map +1 -1
- package/dts/carousel/Carousel.d.ts +12 -19
- package/dts/carousel/Carousel.d.ts.map +1 -1
- package/dts/carousel/DefaultCarouselPagination.d.ts.map +1 -1
- package/dts/cells/Cell.d.ts.map +1 -1
- package/dts/cells/CellAccessory.d.ts +2 -4
- package/dts/cells/CellAccessory.d.ts.map +1 -1
- package/dts/cells/CellHelperText.d.ts +2 -4
- package/dts/cells/CellHelperText.d.ts.map +1 -1
- package/dts/cells/ContentCellFallback.d.ts +4 -0
- package/dts/cells/ContentCellFallback.d.ts.map +1 -1
- package/dts/cells/ListCell.d.ts.map +1 -1
- package/dts/cells/MediaFallback.d.ts +1 -2
- package/dts/cells/MediaFallback.d.ts.map +1 -1
- package/dts/chips/Chip.d.ts +3 -5
- package/dts/chips/Chip.d.ts.map +1 -1
- package/dts/chips/ChipProps.d.ts.map +1 -1
- package/dts/chips/InputChip.d.ts +2 -4
- package/dts/chips/InputChip.d.ts.map +1 -1
- package/dts/chips/MediaChip.d.ts +2 -4
- package/dts/chips/MediaChip.d.ts.map +1 -1
- package/dts/chips/SelectChip.d.ts +2 -2
- package/dts/chips/SelectChip.d.ts.map +1 -1
- package/dts/coachmark/Coachmark.d.ts +4 -4
- package/dts/coachmark/Coachmark.d.ts.map +1 -1
- package/dts/collapsible/Collapsible.d.ts +32 -34
- package/dts/collapsible/Collapsible.d.ts.map +1 -1
- package/dts/collapsible/useCollapsibleMotionProps.d.ts +328 -288
- package/dts/collapsible/useCollapsibleMotionProps.d.ts.map +1 -1
- package/dts/controls/CheckboxGroup.d.ts +2 -26
- package/dts/controls/CheckboxGroup.d.ts.map +1 -1
- package/dts/controls/Control.d.ts +28 -6
- package/dts/controls/Control.d.ts.map +1 -1
- package/dts/controls/HelperText.d.ts +14 -0
- package/dts/controls/HelperText.d.ts.map +1 -1
- package/dts/controls/InputIcon.d.ts +2 -2
- package/dts/controls/InputIcon.d.ts.map +1 -1
- package/dts/controls/InputIconButton.d.ts +2 -4
- package/dts/controls/InputIconButton.d.ts.map +1 -1
- package/dts/controls/InputStack.d.ts +23 -3
- package/dts/controls/InputStack.d.ts.map +1 -1
- package/dts/controls/NativeInput.d.ts +6 -4
- package/dts/controls/NativeInput.d.ts.map +1 -1
- package/dts/controls/NativeTextArea.d.ts +2 -4
- package/dts/controls/NativeTextArea.d.ts.map +1 -1
- package/dts/controls/RadioGroup.d.ts +2 -24
- package/dts/controls/RadioGroup.d.ts.map +1 -1
- package/dts/controls/SearchInput.d.ts +8 -6
- package/dts/controls/SearchInput.d.ts.map +1 -1
- package/dts/controls/SegmentedControl.d.ts +2 -2
- package/dts/controls/SegmentedControl.d.ts.map +1 -1
- package/dts/controls/Select.d.ts +21 -23
- package/dts/controls/Select.d.ts.map +1 -1
- package/dts/controls/SelectOption.d.ts +4 -0
- package/dts/controls/SelectOption.d.ts.map +1 -1
- package/dts/controls/SelectStack.d.ts +10 -12
- package/dts/controls/SelectStack.d.ts.map +1 -1
- package/dts/controls/SelectTrigger.d.ts +8 -10
- package/dts/controls/SelectTrigger.d.ts.map +1 -1
- package/dts/controls/Switch.d.ts +80 -30
- package/dts/controls/Switch.d.ts.map +1 -1
- package/dts/controls/TextInput.d.ts +8 -7
- package/dts/controls/TextInput.d.ts.map +1 -1
- package/dts/controls/selectContext.d.ts +16 -0
- package/dts/controls/selectContext.d.ts.map +1 -1
- package/dts/controls/useRefocusTrigger.d.ts +1 -1
- package/dts/controls/useRefocusTrigger.d.ts.map +1 -1
- package/dts/dates/Calendar.d.ts +58 -60
- package/dts/dates/Calendar.d.ts.map +1 -1
- package/dts/dates/DateInput.d.ts +2 -4
- package/dts/dates/DateInput.d.ts.map +1 -1
- package/dts/dates/DatePicker.d.ts +2 -4
- package/dts/dates/DatePicker.d.ts.map +1 -1
- package/dts/dots/DotCount.d.ts +12 -0
- package/dts/dots/DotCount.d.ts.map +1 -1
- package/dts/dropdown/Dropdown.d.ts +33 -35
- package/dts/dropdown/Dropdown.d.ts.map +1 -1
- package/dts/dropdown/DropdownContent.d.ts +7 -10
- package/dts/dropdown/DropdownContent.d.ts.map +1 -1
- package/dts/dropdown/useResponsiveHeight.d.ts +2 -2
- package/dts/dropdown/useResponsiveHeight.d.ts.map +1 -1
- package/dts/hooks/useCellSpacing.d.ts +48 -164
- package/dts/hooks/useCellSpacing.d.ts.map +1 -1
- package/dts/hooks/useClickOutside.d.ts +1 -3
- package/dts/hooks/useClickOutside.d.ts.map +1 -1
- package/dts/hooks/useDimensions.d.ts +2 -2
- package/dts/hooks/useDimensions.d.ts.map +1 -1
- package/dts/hooks/useHorizontalScrollToTarget.d.ts +1 -1
- package/dts/hooks/useResolveResponsiveProp.d.ts +19 -0
- package/dts/hooks/useResolveResponsiveProp.d.ts.map +1 -0
- package/dts/icons/Icon.d.ts +6 -3
- package/dts/icons/Icon.d.ts.map +1 -1
- package/dts/layout/Box.d.ts +4 -1
- package/dts/layout/Box.d.ts.map +1 -1
- package/dts/layout/Grid.d.ts +2 -3
- package/dts/layout/Grid.d.ts.map +1 -1
- package/dts/layout/Group.d.ts +4 -4
- package/dts/layout/Group.d.ts.map +1 -1
- package/dts/loaders/Spinner.d.ts +2 -1
- package/dts/loaders/Spinner.d.ts.map +1 -1
- package/dts/media/Hexagon.d.ts.map +1 -1
- package/dts/media/RemoteImageGroup.d.ts.map +1 -1
- package/dts/motion/ColorSurge.d.ts +8 -10
- package/dts/motion/ColorSurge.d.ts.map +1 -1
- package/dts/motion/Pulse.d.ts +21 -23
- package/dts/motion/Pulse.d.ts.map +1 -1
- package/dts/motion/Shake.d.ts +4 -6
- package/dts/motion/Shake.d.ts.map +1 -1
- package/dts/motion/useMotionProps.d.ts +710 -630
- package/dts/motion/useMotionProps.d.ts.map +1 -1
- package/dts/motion/utils.d.ts +326 -286
- package/dts/motion/utils.d.ts.map +1 -1
- package/dts/navigation/NavigationTitleSelect.d.ts.map +1 -1
- package/dts/navigation/SidebarItem.d.ts +22 -5
- package/dts/navigation/SidebarItem.d.ts.map +1 -1
- package/dts/numbers/RollingNumber/DefaultRollingNumberDigit.d.ts.map +1 -1
- package/dts/numbers/RollingNumber/RollingNumber.d.ts.map +1 -1
- package/dts/overlays/Alert.d.ts +56 -58
- package/dts/overlays/Alert.d.ts.map +1 -1
- package/dts/overlays/Portal.d.ts +8 -6
- package/dts/overlays/Portal.d.ts.map +1 -1
- package/dts/overlays/PortalProvider.d.ts +17 -0
- package/dts/overlays/PortalProvider.d.ts.map +1 -1
- package/dts/overlays/Toast.d.ts +2 -2
- package/dts/overlays/Toast.d.ts.map +1 -1
- package/dts/overlays/modal/FullscreenModalHeader.d.ts +2 -4
- package/dts/overlays/modal/FullscreenModalHeader.d.ts.map +1 -1
- package/dts/overlays/modal/FullscreenModalLayout.d.ts +20 -22
- package/dts/overlays/modal/FullscreenModalLayout.d.ts.map +1 -1
- package/dts/overlays/modal/Modal.d.ts +6 -8
- package/dts/overlays/modal/Modal.d.ts.map +1 -1
- package/dts/overlays/modal/ModalBody.d.ts +2 -4
- package/dts/overlays/modal/ModalBody.d.ts.map +1 -1
- package/dts/overlays/modal/ModalHeader.d.ts.map +1 -1
- package/dts/overlays/modal/ModalWrapper.d.ts +2 -4
- package/dts/overlays/modal/ModalWrapper.d.ts.map +1 -1
- package/dts/overlays/overlay/Overlay.d.ts +2 -2
- package/dts/overlays/overlay/Overlay.d.ts.map +1 -1
- package/dts/overlays/popover/Popover.d.ts +38 -40
- package/dts/overlays/popover/Popover.d.ts.map +1 -1
- package/dts/overlays/popover/PopoverPanelContent.d.ts +18 -20
- package/dts/overlays/popover/PopoverPanelContent.d.ts.map +1 -1
- package/dts/overlays/popover/usePopper.d.ts +4 -0
- package/dts/overlays/popover/usePopper.d.ts.map +1 -1
- package/dts/overlays/tooltip/Tooltip.d.ts.map +1 -1
- package/dts/overlays/tooltip/TooltipContent.d.ts +10 -12
- package/dts/overlays/tooltip/TooltipContent.d.ts.map +1 -1
- package/dts/overlays/tooltip/TooltipProps.d.ts +1 -2
- package/dts/overlays/tooltip/TooltipProps.d.ts.map +1 -1
- package/dts/overlays/tray/Tray.d.ts +114 -118
- package/dts/overlays/tray/Tray.d.ts.map +1 -1
- package/dts/overlays/useModal.d.ts +1 -1
- package/dts/page/PageFooter.d.ts +4 -6
- package/dts/page/PageFooter.d.ts.map +1 -1
- package/dts/page/PageHeader.d.ts +4 -6
- package/dts/page/PageHeader.d.ts.map +1 -1
- package/dts/section-header/SectionHeader.d.ts +2 -4
- package/dts/section-header/SectionHeader.d.ts.map +1 -1
- package/dts/stepper/DefaultStepperHeaderHorizontal.d.ts.map +1 -1
- package/dts/stepper/DefaultStepperLabelHorizontal.d.ts +1 -1
- package/dts/stepper/DefaultStepperLabelHorizontal.d.ts.map +1 -1
- package/dts/stepper/DefaultStepperProgressHorizontal.d.ts +1 -1
- package/dts/stepper/DefaultStepperProgressHorizontal.d.ts.map +1 -1
- package/dts/stepper/DefaultStepperProgressVertical.d.ts +1 -1
- package/dts/stepper/DefaultStepperProgressVertical.d.ts.map +1 -1
- package/dts/stepper/DefaultStepperStepHorizontal.d.ts.map +1 -1
- package/dts/stepper/Stepper.d.ts +25 -14
- package/dts/stepper/Stepper.d.ts.map +1 -1
- package/dts/styles/styleProps.d.ts +12 -8
- package/dts/styles/styleProps.d.ts.map +1 -1
- package/dts/system/BrowserOnly.d.ts +1 -1
- package/dts/system/BrowserOnly.d.ts.map +1 -1
- package/dts/system/ButtonOrLink.d.ts +5 -7
- package/dts/system/ButtonOrLink.d.ts.map +1 -1
- package/dts/system/Interactable.d.ts +10 -12
- package/dts/system/Interactable.d.ts.map +1 -1
- package/dts/system/ThemeProvider.d.ts +48 -26
- package/dts/system/ThemeProvider.d.ts.map +1 -1
- package/dts/system/interactableCSSProperties.d.ts +11 -11
- package/dts/system/interactableCSSProperties.d.ts.map +1 -1
- package/dts/tables/Table.d.ts +40 -43
- package/dts/tables/Table.d.ts.map +1 -1
- package/dts/tables/TableCell.d.ts +2 -1
- package/dts/tables/TableCell.d.ts.map +1 -1
- package/dts/tabs/DefaultTab.d.ts +17 -19
- package/dts/tabs/DefaultTab.d.ts.map +1 -1
- package/dts/tabs/Paddle.d.ts.map +1 -1
- package/dts/tabs/SegmentedTab.d.ts +25 -27
- package/dts/tabs/SegmentedTab.d.ts.map +1 -1
- package/dts/tabs/TabIndicator.d.ts +11 -13
- package/dts/tabs/TabIndicator.d.ts.map +1 -1
- package/dts/tabs/TabNavigation.d.ts +6 -0
- package/dts/tabs/TabNavigation.d.ts.map +1 -1
- package/dts/tabs/Tabs.d.ts.map +1 -1
- package/dts/tabs/hooks/useAnimateTabIndicator.d.ts +710 -630
- package/dts/tabs/hooks/useAnimateTabIndicator.d.ts.map +1 -1
- package/dts/tag/Tag.d.ts +2 -2
- package/dts/tag/Tag.d.ts.map +1 -1
- package/dts/tour/DefaultTourStepArrow.d.ts +2 -2
- package/dts/tour/DefaultTourStepArrow.d.ts.map +1 -1
- package/dts/tour/Tour.d.ts.map +1 -1
- package/dts/tour/TourStep.d.ts.map +1 -1
- package/dts/typography/Text.d.ts +4 -1
- package/dts/typography/Text.d.ts.map +1 -1
- package/dts/typography/TextBody.d.ts +12 -0
- package/dts/typography/TextBody.d.ts.map +1 -1
- package/dts/typography/TextCaption.d.ts +12 -0
- package/dts/typography/TextCaption.d.ts.map +1 -1
- package/dts/typography/TextDisplay1.d.ts +12 -0
- package/dts/typography/TextDisplay1.d.ts.map +1 -1
- package/dts/typography/TextDisplay2.d.ts +12 -0
- package/dts/typography/TextDisplay2.d.ts.map +1 -1
- package/dts/typography/TextDisplay3.d.ts +12 -0
- package/dts/typography/TextDisplay3.d.ts.map +1 -1
- package/dts/typography/TextHeadline.d.ts +12 -0
- package/dts/typography/TextHeadline.d.ts.map +1 -1
- package/dts/typography/TextInherited.d.ts +12 -0
- package/dts/typography/TextInherited.d.ts.map +1 -1
- package/dts/typography/TextLabel1.d.ts +12 -0
- package/dts/typography/TextLabel1.d.ts.map +1 -1
- package/dts/typography/TextLabel2.d.ts +12 -0
- package/dts/typography/TextLabel2.d.ts.map +1 -1
- package/dts/typography/TextLegal.d.ts +12 -0
- package/dts/typography/TextLegal.d.ts.map +1 -1
- package/dts/typography/TextTitle1.d.ts +12 -0
- package/dts/typography/TextTitle1.d.ts.map +1 -1
- package/dts/typography/TextTitle2.d.ts +12 -0
- package/dts/typography/TextTitle2.d.ts.map +1 -1
- package/dts/typography/TextTitle3.d.ts +12 -0
- package/dts/typography/TextTitle3.d.ts.map +1 -1
- package/dts/typography/TextTitle4.d.ts +12 -0
- package/dts/typography/TextTitle4.d.ts.map +1 -1
- package/dts/utils/flattenAndJoinNodes.d.ts +13 -1
- package/dts/utils/flattenAndJoinNodes.d.ts.map +1 -1
- package/dts/visualizations/ProgressBar.d.ts +45 -47
- package/dts/visualizations/ProgressBar.d.ts.map +1 -1
- package/dts/visualizations/ProgressCircle.d.ts +63 -65
- package/dts/visualizations/ProgressCircle.d.ts.map +1 -1
- package/dts/visualizations/VisualizationContainer.d.ts +3 -4
- package/dts/visualizations/VisualizationContainer.d.ts.map +1 -1
- package/dts/visualizations/chart/CartesianChart.d.ts +104 -0
- package/dts/visualizations/chart/CartesianChart.d.ts.map +1 -0
- package/dts/visualizations/chart/ChartProvider.d.ts +9 -0
- package/dts/visualizations/chart/ChartProvider.d.ts.map +1 -0
- package/dts/visualizations/chart/Path.d.ts +100 -0
- package/dts/visualizations/chart/Path.d.ts.map +1 -0
- package/dts/visualizations/chart/PeriodSelector.d.ts +73 -0
- package/dts/visualizations/chart/PeriodSelector.d.ts.map +1 -0
- package/dts/visualizations/chart/area/Area.d.ts +83 -0
- package/dts/visualizations/chart/area/Area.d.ts.map +1 -0
- package/dts/visualizations/chart/area/AreaChart.d.ts +90 -0
- package/dts/visualizations/chart/area/AreaChart.d.ts.map +1 -0
- package/dts/visualizations/chart/area/DottedArea.d.ts +45 -0
- package/dts/visualizations/chart/area/DottedArea.d.ts.map +1 -0
- package/dts/visualizations/chart/area/GradientArea.d.ts +39 -0
- package/dts/visualizations/chart/area/GradientArea.d.ts.map +1 -0
- package/dts/visualizations/chart/area/SolidArea.d.ts +23 -0
- package/dts/visualizations/chart/area/SolidArea.d.ts.map +1 -0
- package/dts/visualizations/chart/area/index.d.ts +6 -0
- package/dts/visualizations/chart/area/index.d.ts.map +1 -0
- package/dts/visualizations/chart/axis/Axis.d.ts +254 -0
- package/dts/visualizations/chart/axis/Axis.d.ts.map +1 -0
- package/dts/visualizations/chart/axis/DefaultAxisTickLabel.d.ts +8 -0
- package/dts/visualizations/chart/axis/DefaultAxisTickLabel.d.ts.map +1 -0
- package/dts/visualizations/chart/axis/XAxis.d.ts +22 -0
- package/dts/visualizations/chart/axis/XAxis.d.ts.map +1 -0
- package/dts/visualizations/chart/axis/YAxis.d.ts +22 -0
- package/dts/visualizations/chart/axis/YAxis.d.ts.map +1 -0
- package/dts/visualizations/chart/axis/index.d.ts +5 -0
- package/dts/visualizations/chart/axis/index.d.ts.map +1 -0
- package/dts/visualizations/chart/bar/Bar.d.ts +102 -0
- package/dts/visualizations/chart/bar/Bar.d.ts.map +1 -0
- package/dts/visualizations/chart/bar/BarChart.d.ts +83 -0
- package/dts/visualizations/chart/bar/BarChart.d.ts.map +1 -0
- package/dts/visualizations/chart/bar/BarPlot.d.ts +31 -0
- package/dts/visualizations/chart/bar/BarPlot.d.ts.map +1 -0
- package/dts/visualizations/chart/bar/BarStack.d.ts +141 -0
- package/dts/visualizations/chart/bar/BarStack.d.ts.map +1 -0
- package/dts/visualizations/chart/bar/BarStackGroup.d.ts +37 -0
- package/dts/visualizations/chart/bar/BarStackGroup.d.ts.map +1 -0
- package/dts/visualizations/chart/bar/DefaultBar.d.ts +17 -0
- package/dts/visualizations/chart/bar/DefaultBar.d.ts.map +1 -0
- package/dts/visualizations/chart/bar/DefaultBarStack.d.ts +16 -0
- package/dts/visualizations/chart/bar/DefaultBarStack.d.ts.map +1 -0
- package/dts/visualizations/chart/bar/PercentageBarChart.d.ts +61 -0
- package/dts/visualizations/chart/bar/PercentageBarChart.d.ts.map +1 -0
- package/dts/visualizations/chart/bar/index.d.ts +9 -0
- package/dts/visualizations/chart/bar/index.d.ts.map +1 -0
- package/dts/visualizations/chart/gradient/Gradient.d.ts +43 -0
- package/dts/visualizations/chart/gradient/Gradient.d.ts.map +1 -0
- package/dts/visualizations/chart/gradient/index.d.ts +2 -0
- package/dts/visualizations/chart/gradient/index.d.ts.map +1 -0
- package/dts/visualizations/chart/index.d.ts +15 -0
- package/dts/visualizations/chart/index.d.ts.map +1 -0
- package/dts/visualizations/chart/legend/DefaultLegendEntry.d.ts +21 -0
- package/dts/visualizations/chart/legend/DefaultLegendEntry.d.ts.map +1 -0
- package/dts/visualizations/chart/legend/DefaultLegendShape.d.ts +7 -0
- package/dts/visualizations/chart/legend/DefaultLegendShape.d.ts.map +1 -0
- package/dts/visualizations/chart/legend/Legend.d.ts +139 -0
- package/dts/visualizations/chart/legend/Legend.d.ts.map +1 -0
- package/dts/visualizations/chart/legend/index.d.ts +4 -0
- package/dts/visualizations/chart/legend/index.d.ts.map +1 -0
- package/dts/visualizations/chart/line/DefaultReferenceLineLabel.d.ts +9 -0
- package/dts/visualizations/chart/line/DefaultReferenceLineLabel.d.ts.map +1 -0
- package/dts/visualizations/chart/line/DottedLine.d.ts +26 -0
- package/dts/visualizations/chart/line/DottedLine.d.ts.map +1 -0
- package/dts/visualizations/chart/line/Line.d.ts +146 -0
- package/dts/visualizations/chart/line/Line.d.ts.map +1 -0
- package/dts/visualizations/chart/line/LineChart.d.ts +77 -0
- package/dts/visualizations/chart/line/LineChart.d.ts.map +1 -0
- package/dts/visualizations/chart/line/ReferenceLine.d.ts +187 -0
- package/dts/visualizations/chart/line/ReferenceLine.d.ts.map +1 -0
- package/dts/visualizations/chart/line/SolidLine.d.ts +25 -0
- package/dts/visualizations/chart/line/SolidLine.d.ts.map +1 -0
- package/dts/visualizations/chart/line/index.d.ts +7 -0
- package/dts/visualizations/chart/line/index.d.ts.map +1 -0
- package/dts/visualizations/chart/point/DefaultPointLabel.d.ts +10 -0
- package/dts/visualizations/chart/point/DefaultPointLabel.d.ts.map +1 -0
- package/dts/visualizations/chart/point/Point.d.ts +225 -0
- package/dts/visualizations/chart/point/Point.d.ts.map +1 -0
- package/dts/visualizations/chart/point/index.d.ts +3 -0
- package/dts/visualizations/chart/point/index.d.ts.map +1 -0
- package/dts/visualizations/chart/scrubber/DefaultScrubberBeacon.d.ts +39 -0
- package/dts/visualizations/chart/scrubber/DefaultScrubberBeacon.d.ts.map +1 -0
- package/dts/visualizations/chart/scrubber/DefaultScrubberBeaconLabel.d.ts +12 -0
- package/dts/visualizations/chart/scrubber/DefaultScrubberBeaconLabel.d.ts.map +1 -0
- package/dts/visualizations/chart/scrubber/DefaultScrubberLabel.d.ts +11 -0
- package/dts/visualizations/chart/scrubber/DefaultScrubberLabel.d.ts.map +1 -0
- package/dts/visualizations/chart/scrubber/Scrubber.d.ts +390 -0
- package/dts/visualizations/chart/scrubber/Scrubber.d.ts.map +1 -0
- package/dts/visualizations/chart/scrubber/ScrubberBeaconGroup.d.ts +78 -0
- package/dts/visualizations/chart/scrubber/ScrubberBeaconGroup.d.ts.map +1 -0
- package/dts/visualizations/chart/scrubber/ScrubberBeaconLabelGroup.d.ts +56 -0
- package/dts/visualizations/chart/scrubber/ScrubberBeaconLabelGroup.d.ts.map +1 -0
- package/dts/visualizations/chart/scrubber/ScrubberProvider.d.ts +17 -0
- package/dts/visualizations/chart/scrubber/ScrubberProvider.d.ts.map +1 -0
- package/dts/visualizations/chart/scrubber/index.d.ts +5 -0
- package/dts/visualizations/chart/scrubber/index.d.ts.map +1 -0
- package/dts/visualizations/chart/text/ChartText.d.ts +117 -0
- package/dts/visualizations/chart/text/ChartText.d.ts.map +1 -0
- package/dts/visualizations/chart/text/ChartTextGroup.d.ts +61 -0
- package/dts/visualizations/chart/text/ChartTextGroup.d.ts.map +1 -0
- package/dts/visualizations/chart/text/index.d.ts +3 -0
- package/dts/visualizations/chart/text/index.d.ts.map +1 -0
- package/dts/visualizations/chart/utils/axis.d.ts +391 -0
- package/dts/visualizations/chart/utils/axis.d.ts.map +1 -0
- package/dts/visualizations/chart/utils/bar.d.ts +223 -0
- package/dts/visualizations/chart/utils/bar.d.ts.map +1 -0
- package/dts/visualizations/chart/utils/chart.d.ts +158 -0
- package/dts/visualizations/chart/utils/chart.d.ts.map +1 -0
- package/dts/visualizations/chart/utils/context.d.ts +117 -0
- package/dts/visualizations/chart/utils/context.d.ts.map +1 -0
- package/dts/visualizations/chart/utils/gradient.d.ts +116 -0
- package/dts/visualizations/chart/utils/gradient.d.ts.map +1 -0
- package/dts/visualizations/chart/utils/index.d.ts +12 -0
- package/dts/visualizations/chart/utils/index.d.ts.map +1 -0
- package/dts/visualizations/chart/utils/interpolate.d.ts +112 -0
- package/dts/visualizations/chart/utils/interpolate.d.ts.map +1 -0
- package/dts/visualizations/chart/utils/path.d.ts +156 -0
- package/dts/visualizations/chart/utils/path.d.ts.map +1 -0
- package/dts/visualizations/chart/utils/point.d.ts +115 -0
- package/dts/visualizations/chart/utils/point.d.ts.map +1 -0
- package/dts/visualizations/chart/utils/scale.d.ts +54 -0
- package/dts/visualizations/chart/utils/scale.d.ts.map +1 -0
- package/dts/visualizations/chart/utils/scrubber.d.ts +40 -0
- package/dts/visualizations/chart/utils/scrubber.d.ts.map +1 -0
- package/dts/visualizations/chart/utils/transition.d.ts +101 -0
- package/dts/visualizations/chart/utils/transition.d.ts.map +1 -0
- package/dts/visualizations/index.d.ts +2 -0
- package/dts/visualizations/index.d.ts.map +1 -1
- package/dts/visualizations/sparkline/Counter.d.ts +8 -0
- package/dts/visualizations/sparkline/Counter.d.ts.map +1 -0
- package/dts/visualizations/sparkline/Sparkline.d.ts +66 -0
- package/dts/visualizations/sparkline/Sparkline.d.ts.map +1 -0
- package/dts/visualizations/sparkline/SparklineArea.d.ts +14 -0
- package/dts/visualizations/sparkline/SparklineArea.d.ts.map +1 -0
- package/dts/visualizations/sparkline/SparklineAreaPattern.d.ts +14 -0
- package/dts/visualizations/sparkline/SparklineAreaPattern.d.ts.map +1 -0
- package/dts/visualizations/sparkline/SparklineGradient.d.ts +22 -0
- package/dts/visualizations/sparkline/SparklineGradient.d.ts.map +1 -0
- package/dts/visualizations/sparkline/SparklinePath.d.ts +12 -0
- package/dts/visualizations/sparkline/SparklinePath.d.ts.map +1 -0
- package/dts/visualizations/sparkline/__figma__/Sparkline.figma.d.ts +2 -0
- package/dts/visualizations/sparkline/__figma__/Sparkline.figma.d.ts.map +1 -0
- package/dts/visualizations/sparkline/generateSparklineWithId.d.ts +11 -0
- package/dts/visualizations/sparkline/generateSparklineWithId.d.ts.map +1 -0
- package/dts/visualizations/sparkline/index.d.ts +6 -0
- package/dts/visualizations/sparkline/index.d.ts.map +1 -0
- package/dts/visualizations/sparkline/sparkline-interactive/InnerSparklineInteractiveProvider.d.ts +13 -0
- package/dts/visualizations/sparkline/sparkline-interactive/InnerSparklineInteractiveProvider.d.ts.map +1 -0
- package/dts/visualizations/sparkline/sparkline-interactive/SparklineInteractive.d.ts +200 -0
- package/dts/visualizations/sparkline/sparkline-interactive/SparklineInteractive.d.ts.map +1 -0
- package/dts/visualizations/sparkline/sparkline-interactive/SparklineInteractiveAnimatedPath.d.ts +26 -0
- package/dts/visualizations/sparkline/sparkline-interactive/SparklineInteractiveAnimatedPath.d.ts.map +1 -0
- package/dts/visualizations/sparkline/sparkline-interactive/SparklineInteractiveHoverDate.d.ts +5 -0
- package/dts/visualizations/sparkline/sparkline-interactive/SparklineInteractiveHoverDate.d.ts.map +1 -0
- package/dts/visualizations/sparkline/sparkline-interactive/SparklineInteractiveHoverPrice.d.ts +5 -0
- package/dts/visualizations/sparkline/sparkline-interactive/SparklineInteractiveHoverPrice.d.ts.map +1 -0
- package/dts/visualizations/sparkline/sparkline-interactive/SparklineInteractiveLineVertical.d.ts +8 -0
- package/dts/visualizations/sparkline/sparkline-interactive/SparklineInteractiveLineVertical.d.ts.map +1 -0
- package/dts/visualizations/sparkline/sparkline-interactive/SparklineInteractiveMarkerDates.d.ts +17 -0
- package/dts/visualizations/sparkline/sparkline-interactive/SparklineInteractiveMarkerDates.d.ts.map +1 -0
- package/dts/visualizations/sparkline/sparkline-interactive/SparklineInteractivePaths.d.ts +25 -0
- package/dts/visualizations/sparkline/sparkline-interactive/SparklineInteractivePaths.d.ts.map +1 -0
- package/dts/visualizations/sparkline/sparkline-interactive/SparklineInteractivePeriodSelector.d.ts +25 -0
- package/dts/visualizations/sparkline/sparkline-interactive/SparklineInteractivePeriodSelector.d.ts.map +1 -0
- package/dts/visualizations/sparkline/sparkline-interactive/SparklineInteractiveProvider.d.ts +25 -0
- package/dts/visualizations/sparkline/sparkline-interactive/SparklineInteractiveProvider.d.ts.map +1 -0
- package/dts/visualizations/sparkline/sparkline-interactive/SparklineInteractiveScrubHandler.d.ts +30 -0
- package/dts/visualizations/sparkline/sparkline-interactive/SparklineInteractiveScrubHandler.d.ts.map +1 -0
- package/dts/visualizations/sparkline/sparkline-interactive/SparklineInteractiveScrubProvider.d.ts +18 -0
- package/dts/visualizations/sparkline/sparkline-interactive/SparklineInteractiveScrubProvider.d.ts.map +1 -0
- package/dts/visualizations/sparkline/sparkline-interactive/SparklineInteractiveTimeseriesPaths.d.ts +31 -0
- package/dts/visualizations/sparkline/sparkline-interactive/SparklineInteractiveTimeseriesPaths.d.ts.map +1 -0
- package/dts/visualizations/sparkline/sparkline-interactive/__figma__/SparklineInteractive.figma.d.ts +2 -0
- package/dts/visualizations/sparkline/sparkline-interactive/__figma__/SparklineInteractive.figma.d.ts.map +1 -0
- package/dts/visualizations/sparkline/sparkline-interactive/fade.d.ts +3 -0
- package/dts/visualizations/sparkline/sparkline-interactive/fade.d.ts.map +1 -0
- package/dts/visualizations/sparkline/sparkline-interactive/useSparklineInteractiveConstants.d.ts +13 -0
- package/dts/visualizations/sparkline/sparkline-interactive/useSparklineInteractiveConstants.d.ts.map +1 -0
- package/dts/visualizations/sparkline/sparkline-interactive-header/SparklineInteractiveHeader.d.ts +110 -0
- package/dts/visualizations/sparkline/sparkline-interactive-header/SparklineInteractiveHeader.d.ts.map +1 -0
- package/dts/visualizations/sparkline/sparkline-interactive-header/__figma__/SparklineInteractiveHeader.figma.d.ts +2 -0
- package/dts/visualizations/sparkline/sparkline-interactive-header/__figma__/SparklineInteractiveHeader.figma.d.ts.map +1 -0
- package/esm/alpha/combobox/DefaultComboboxControl.js +6 -6
- package/esm/alpha/select/DefaultSelectControl.js +26 -21
- package/esm/alpha/select/DefaultSelectDropdown.js +9 -4
- package/esm/alpha/select/DefaultSelectOption.css +1 -1
- package/esm/alpha/select/DefaultSelectOption.js +0 -1
- package/esm/animation/LottieStatusAnimation.js +1 -1
- package/esm/animation/useLottieLoader.js +1 -1
- package/esm/banner/Banner.js +119 -86
- package/esm/buttons/AvatarButton.css +1 -1
- package/esm/buttons/AvatarButton.js +8 -10
- package/esm/buttons/Button.css +1 -3
- package/esm/buttons/Button.js +26 -12
- package/esm/buttons/IconButton.css +1 -3
- package/esm/buttons/IconButton.js +23 -13
- package/esm/buttons/IconCounterButton.js +14 -6
- package/esm/cards/Card.js +5 -0
- package/esm/cards/CardMedia.js +6 -10
- package/esm/cards/FeatureEntryCard.js +0 -5
- package/esm/cards/FeedCard.js +0 -5
- package/esm/cards/LikeButton.js +14 -8
- package/esm/cards/UpsellCard.js +11 -3
- package/esm/cards/__figma__/UpsellCard.figma.js +3 -1
- package/esm/carousel/Carousel.js +4 -3
- package/esm/carousel/DefaultCarouselPagination.js +10 -4
- package/esm/carousel/__figma__/Carousel.figma.js +0 -1
- package/esm/cells/Cell.js +48 -9
- package/esm/cells/CellAccessory.js +3 -2
- package/esm/cells/ContentCellFallback.js +5 -0
- package/esm/cells/ListCell.js +8 -3
- package/esm/cells/MediaFallback.js +5 -5
- package/esm/coachmark/Coachmark.js +3 -2
- package/esm/collapsible/Collapsible.js +30 -25
- package/esm/controls/CheckboxGroup.js +0 -26
- package/esm/controls/Control.js +36 -12
- package/esm/controls/HelperText.js +18 -2
- package/esm/controls/InputIcon.js +3 -4
- package/esm/controls/InputIconButton.js +1 -1
- package/esm/controls/InputStack.js +15 -5
- package/esm/controls/Radio.css +1 -1
- package/esm/controls/Radio.js +1 -1
- package/esm/controls/RadioGroup.js +0 -25
- package/esm/controls/SearchInput.js +5 -0
- package/esm/controls/SegmentedControl.css +1 -1
- package/esm/controls/SegmentedControl.js +2 -1
- package/esm/controls/SelectOption.js +4 -0
- package/esm/controls/Switch.js +34 -10
- package/esm/controls/TextInput.js +5 -5
- package/esm/controls/selectContext.js +21 -0
- package/esm/dates/DateInput.js +3 -4
- package/esm/dates/DatePicker.js +2 -2
- package/esm/dots/DotCount.css +1 -1
- package/esm/dots/DotCount.js +14 -5
- package/esm/dots/DotSymbol.js +2 -2
- package/esm/hooks/useDimensions.js +1 -1
- package/esm/hooks/useResolveResponsiveProp.js +31 -0
- package/esm/media/Avatar.js +2 -2
- package/esm/media/Hexagon.js +3 -2
- package/esm/navigation/NavigationTitleSelect.js +25 -6
- package/esm/navigation/SidebarItem.js +43 -13
- package/esm/numbers/RollingNumber/DefaultRollingNumberDigit.js +3 -1
- package/esm/numbers/RollingNumber/RollingNumber.js +1 -1
- package/esm/overlays/Alert.js +3 -3
- package/esm/overlays/FocusTrap.js +2 -3
- package/esm/overlays/Portal.js +7 -0
- package/esm/overlays/PortalProvider.js +20 -0
- package/esm/overlays/Toast.js +5 -4
- package/esm/overlays/modal/FullscreenModalLayout.js +3 -2
- package/esm/overlays/modal/ModalHeader.js +10 -5
- package/esm/overlays/overlay/OverlayContent.js +3 -4
- package/esm/overlays/popover/usePopper.js +7 -0
- package/esm/overlays/tooltip/__figma__/Tooltip.figma.js +5 -3
- package/esm/overlays/useModal.js +1 -1
- package/esm/stepper/DefaultStepperHeaderHorizontal.js +20 -16
- package/esm/stepper/DefaultStepperLabelHorizontal.js +18 -14
- package/esm/stepper/DefaultStepperProgressHorizontal.js +19 -7
- package/esm/stepper/DefaultStepperProgressVertical.js +50 -38
- package/esm/stepper/DefaultStepperStepHorizontal.js +6 -4
- package/esm/stepper/DefaultStepperStepVertical.js +5 -5
- package/esm/stepper/Stepper.js +59 -66
- package/esm/styles/styleProps.js +3 -0
- package/esm/system/Interactable.css +1 -1
- package/esm/system/Interactable.js +4 -2
- package/esm/system/Pressable.css +1 -1
- package/esm/system/PressableOpacity.js +2 -2
- package/esm/system/ThemeProvider.js +43 -15
- package/esm/system/interactableCSSProperties.js +11 -11
- package/esm/tabs/Paddle.js +4 -4
- package/esm/tabs/TabLabel.js +7 -9
- package/esm/tabs/TabNavigation.js +8 -7
- package/esm/tabs/Tabs.js +3 -1
- package/esm/tour/Tour.js +4 -1
- package/esm/tour/TourStep.js +5 -1
- package/esm/typography/TextBody.js +15 -0
- package/esm/typography/TextCaption.js +15 -0
- package/esm/typography/TextDisplay1.js +15 -0
- package/esm/typography/TextDisplay2.js +15 -0
- package/esm/typography/TextDisplay3.js +15 -0
- package/esm/typography/TextHeadline.js +15 -0
- package/esm/typography/TextInherited.js +15 -0
- package/esm/typography/TextLabel1.js +15 -0
- package/esm/typography/TextLabel2.js +15 -0
- package/esm/typography/TextLegal.js +15 -0
- package/esm/typography/TextTitle1.js +15 -0
- package/esm/typography/TextTitle2.js +15 -0
- package/esm/typography/TextTitle3.js +15 -0
- package/esm/typography/TextTitle4.js +15 -0
- package/esm/visualizations/chart/CartesianChart.css +1 -0
- package/esm/visualizations/chart/CartesianChart.js +379 -0
- package/esm/visualizations/chart/ChartProvider.js +10 -0
- package/esm/visualizations/chart/Path.js +125 -0
- package/esm/visualizations/chart/PeriodSelector.css +1 -0
- package/esm/visualizations/chart/PeriodSelector.js +130 -0
- package/esm/visualizations/chart/area/Area.js +85 -0
- package/esm/visualizations/chart/area/AreaChart.js +173 -0
- package/esm/visualizations/chart/area/DottedArea.js +95 -0
- package/esm/visualizations/chart/area/GradientArea.js +72 -0
- package/esm/visualizations/chart/area/SolidArea.js +52 -0
- package/esm/visualizations/chart/area/index.js +7 -0
- package/esm/visualizations/chart/axis/Axis.js +11 -0
- package/esm/visualizations/chart/axis/DefaultAxisTickLabel.js +15 -0
- package/esm/visualizations/chart/axis/XAxis.css +2 -0
- package/esm/visualizations/chart/axis/XAxis.js +315 -0
- package/esm/visualizations/chart/axis/YAxis.css +2 -0
- package/esm/visualizations/chart/axis/YAxis.js +316 -0
- package/esm/visualizations/chart/axis/index.js +6 -0
- package/esm/visualizations/chart/bar/Bar.js +69 -0
- package/esm/visualizations/chart/bar/BarChart.js +128 -0
- package/esm/visualizations/chart/bar/BarPlot.js +92 -0
- package/esm/visualizations/chart/bar/BarStack.js +173 -0
- package/esm/visualizations/chart/bar/BarStackGroup.js +95 -0
- package/esm/visualizations/chart/bar/DefaultBar.js +82 -0
- package/esm/visualizations/chart/bar/DefaultBarStack.js +71 -0
- package/esm/visualizations/chart/bar/PercentageBarChart.js +102 -0
- package/esm/visualizations/chart/bar/index.js +10 -0
- package/esm/visualizations/chart/gradient/Gradient.js +106 -0
- package/esm/visualizations/chart/gradient/index.js +1 -0
- package/esm/visualizations/chart/index.js +16 -0
- package/esm/visualizations/chart/legend/DefaultLegendEntry.css +1 -0
- package/esm/visualizations/chart/legend/DefaultLegendEntry.js +50 -0
- package/esm/visualizations/chart/legend/DefaultLegendShape.css +5 -0
- package/esm/visualizations/chart/legend/DefaultLegendShape.js +47 -0
- package/esm/visualizations/chart/legend/Legend.js +76 -0
- package/esm/visualizations/chart/legend/index.js +3 -0
- package/esm/visualizations/chart/line/DefaultReferenceLineLabel.js +81 -0
- package/esm/visualizations/chart/line/DottedLine.js +64 -0
- package/esm/visualizations/chart/line/Line.js +183 -0
- package/esm/visualizations/chart/line/LineChart.js +142 -0
- package/esm/visualizations/chart/line/ReferenceLine.js +144 -0
- package/esm/visualizations/chart/line/SolidLine.js +60 -0
- package/esm/visualizations/chart/line/index.js +8 -0
- package/esm/visualizations/chart/point/DefaultPointLabel.js +45 -0
- package/esm/visualizations/chart/point/Point.css +2 -0
- package/esm/visualizations/chart/point/Point.js +201 -0
- package/esm/visualizations/chart/point/index.js +2 -0
- package/esm/visualizations/chart/scrubber/DefaultScrubberBeacon.js +154 -0
- package/esm/visualizations/chart/scrubber/DefaultScrubberBeaconLabel.js +57 -0
- package/esm/visualizations/chart/scrubber/DefaultScrubberLabel.js +48 -0
- package/esm/visualizations/chart/scrubber/Scrubber.js +200 -0
- package/esm/visualizations/chart/scrubber/ScrubberBeaconGroup.js +190 -0
- package/esm/visualizations/chart/scrubber/ScrubberBeaconLabelGroup.js +209 -0
- package/esm/visualizations/chart/scrubber/ScrubberProvider.js +233 -0
- package/esm/visualizations/chart/scrubber/index.js +4 -0
- package/esm/visualizations/chart/text/ChartText.js +231 -0
- package/esm/visualizations/chart/text/ChartTextGroup.js +227 -0
- package/esm/visualizations/chart/text/index.js +4 -0
- package/esm/visualizations/chart/utils/axis.js +666 -0
- package/esm/visualizations/chart/utils/bar.js +952 -0
- package/esm/visualizations/chart/utils/chart.js +314 -0
- package/esm/visualizations/chart/utils/context.js +22 -0
- package/esm/visualizations/chart/utils/gradient.js +270 -0
- package/esm/visualizations/chart/utils/index.js +13 -0
- package/esm/visualizations/chart/utils/interpolate.js +644 -0
- package/esm/visualizations/chart/utils/path.js +254 -0
- package/esm/visualizations/chart/utils/point.js +214 -0
- package/esm/visualizations/chart/utils/scale.js +59 -0
- package/esm/visualizations/chart/utils/scrubber.js +137 -0
- package/esm/visualizations/chart/utils/transition.js +132 -0
- package/esm/visualizations/index.js +3 -1
- package/esm/visualizations/sparkline/Counter.css +3 -0
- package/esm/visualizations/sparkline/Counter.js +35 -0
- package/esm/visualizations/sparkline/Sparkline.js +165 -0
- package/esm/visualizations/sparkline/SparklineArea.js +19 -0
- package/esm/visualizations/sparkline/SparklineAreaPattern.js +37 -0
- package/esm/visualizations/sparkline/SparklineGradient.js +31 -0
- package/esm/visualizations/sparkline/SparklinePath.js +19 -0
- package/esm/visualizations/sparkline/__figma__/Sparkline.figma.js +24 -0
- package/esm/visualizations/sparkline/generateSparklineWithId.js +7 -0
- package/esm/visualizations/sparkline/index.js +5 -0
- package/esm/visualizations/sparkline/sparkline-interactive/InnerSparklineInteractiveProvider.js +21 -0
- package/esm/visualizations/sparkline/sparkline-interactive/SparklineInteractive.js +318 -0
- package/esm/visualizations/sparkline/sparkline-interactive/SparklineInteractiveAnimatedPath.js +108 -0
- package/esm/visualizations/sparkline/sparkline-interactive/SparklineInteractiveHoverDate.css +2 -0
- package/esm/visualizations/sparkline/sparkline-interactive/SparklineInteractiveHoverDate.js +27 -0
- package/esm/visualizations/sparkline/sparkline-interactive/SparklineInteractiveHoverPrice.css +2 -0
- package/esm/visualizations/sparkline/sparkline-interactive/SparklineInteractiveHoverPrice.js +25 -0
- package/esm/visualizations/sparkline/sparkline-interactive/SparklineInteractiveLineVertical.css +4 -0
- package/esm/visualizations/sparkline/sparkline-interactive/SparklineInteractiveLineVertical.js +65 -0
- package/esm/visualizations/sparkline/sparkline-interactive/SparklineInteractiveMarkerDates.css +1 -0
- package/esm/visualizations/sparkline/sparkline-interactive/SparklineInteractiveMarkerDates.js +85 -0
- package/esm/visualizations/sparkline/sparkline-interactive/SparklineInteractivePaths.js +56 -0
- package/esm/visualizations/sparkline/sparkline-interactive/SparklineInteractivePeriodSelector.js +71 -0
- package/esm/visualizations/sparkline/sparkline-interactive/SparklineInteractiveProvider.js +45 -0
- package/esm/visualizations/sparkline/sparkline-interactive/SparklineInteractiveScrubHandler.css +5 -0
- package/esm/visualizations/sparkline/sparkline-interactive/SparklineInteractiveScrubHandler.js +201 -0
- package/esm/visualizations/sparkline/sparkline-interactive/SparklineInteractiveScrubProvider.js +39 -0
- package/esm/visualizations/sparkline/sparkline-interactive/SparklineInteractiveTimeseriesPaths.js +92 -0
- package/esm/visualizations/sparkline/sparkline-interactive/__figma__/SparklineInteractive.figma.js +89 -0
- package/esm/visualizations/sparkline/sparkline-interactive/fade.css +2 -0
- package/esm/visualizations/sparkline/sparkline-interactive/fade.js +15 -0
- package/esm/visualizations/sparkline/sparkline-interactive/useSparklineInteractiveConstants.js +28 -0
- package/esm/visualizations/sparkline/sparkline-interactive-header/SparklineInteractiveHeader.js +226 -0
- package/esm/visualizations/sparkline/sparkline-interactive-header/__figma__/SparklineInteractiveHeader.figma.js +108 -0
- package/package.json +23 -10
package/esm/dots/DotSymbol.js
CHANGED
|
@@ -54,9 +54,9 @@ export const DotSymbol = /*#__PURE__*/memo(_props => {
|
|
|
54
54
|
return /*#__PURE__*/_jsxs("div", _objectSpread(_objectSpread({
|
|
55
55
|
"aria-label": accessibilityLabel,
|
|
56
56
|
className: cx(baseCss, className),
|
|
57
|
-
"data-testid": testID
|
|
57
|
+
"data-testid": testID,
|
|
58
|
+
style: style
|
|
58
59
|
}, props), {}, {
|
|
59
|
-
style: style,
|
|
60
60
|
children: [children, /*#__PURE__*/_jsxs("div", {
|
|
61
61
|
"data-testid": "dotsymbol-inner-container",
|
|
62
62
|
onClick: handlePreventPropagation,
|
|
@@ -61,7 +61,7 @@ export const useDimensions = function () {
|
|
|
61
61
|
height: 0
|
|
62
62
|
});
|
|
63
63
|
const prevSizeRef = useRef({});
|
|
64
|
-
const prevBreakpointRef = useRef();
|
|
64
|
+
const prevBreakpointRef = useRef(undefined);
|
|
65
65
|
const observerRef = useRef(null);
|
|
66
66
|
const onResizeRef = useRef(null);
|
|
67
67
|
const shouldUpdateRef = useRef(null);
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { useContext } from 'react';
|
|
2
|
+
import { media } from '../styles/media';
|
|
3
|
+
import { MediaQueryContext } from '../system/MediaQueryProvider';
|
|
4
|
+
const isResponsiveValue = value => typeof value === 'object' && value !== null && ('base' in value || 'phone' in value || 'tablet' in value || 'desktop' in value);
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Resolves a ResponsiveProp to a single value based on the current viewport.
|
|
8
|
+
*
|
|
9
|
+
* Use this when you need the resolved value in JavaScript (e.g., passing to a child
|
|
10
|
+
* component or using in conditional logic). For applying responsive styles via CSS,
|
|
11
|
+
* use getStyles from styleProps instead—it handles responsive objects via
|
|
12
|
+
* media-query CSS variables.
|
|
13
|
+
*
|
|
14
|
+
* Reads getSnapshot from MediaQueryContext when within MediaQueryProvider.
|
|
15
|
+
* Without it, returns the first defined value (base ?? phone ?? tablet ?? desktop).
|
|
16
|
+
*
|
|
17
|
+
* @param value - A scalar value or responsive object with base/phone/tablet/desktop keys
|
|
18
|
+
* @returns The resolved value for the current breakpoint
|
|
19
|
+
*/
|
|
20
|
+
export const useResolveResponsiveProp = value => {
|
|
21
|
+
var _ref, _ref2, _value$base;
|
|
22
|
+
const context = useContext(MediaQueryContext);
|
|
23
|
+
const getSnapshot = context === null || context === void 0 ? void 0 : context.getSnapshot;
|
|
24
|
+
if (!value || !isResponsiveValue(value)) return value;
|
|
25
|
+
const fallback = (_ref = (_ref2 = (_value$base = value.base) !== null && _value$base !== void 0 ? _value$base : value.phone) !== null && _ref2 !== void 0 ? _ref2 : value.tablet) !== null && _ref !== void 0 ? _ref : value.desktop;
|
|
26
|
+
if (!getSnapshot) return fallback;
|
|
27
|
+
if (typeof value.phone !== 'undefined' && getSnapshot(media.phone)) return value.phone;
|
|
28
|
+
if (typeof value.tablet !== 'undefined' && getSnapshot(media.tablet)) return value.tablet;
|
|
29
|
+
if (typeof value.desktop !== 'undefined' && getSnapshot(media.desktop)) return value.desktop;
|
|
30
|
+
return fallback;
|
|
31
|
+
};
|
package/esm/media/Avatar.js
CHANGED
|
@@ -56,7 +56,7 @@ export const Avatar = /*#__PURE__*/memo(_props => {
|
|
|
56
56
|
return /*#__PURE__*/_jsx(Text, {
|
|
57
57
|
as: "p",
|
|
58
58
|
color: "fgInverse",
|
|
59
|
-
display: "
|
|
59
|
+
display: "inline",
|
|
60
60
|
font: "title2",
|
|
61
61
|
style: {
|
|
62
62
|
transform: "scale(".concat(dangerouslySetSize * 0.02, ")")
|
|
@@ -71,7 +71,7 @@ export const Avatar = /*#__PURE__*/memo(_props => {
|
|
|
71
71
|
return /*#__PURE__*/_jsx(Text, {
|
|
72
72
|
as: "p",
|
|
73
73
|
color: "fgInverse",
|
|
74
|
-
display: "
|
|
74
|
+
display: "inline",
|
|
75
75
|
font: showLargerFont ? 'title2' : 'body',
|
|
76
76
|
textAlign: "center",
|
|
77
77
|
transform: "uppercase",
|
package/esm/media/Hexagon.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
var _getBrowserGlobals;
|
|
2
2
|
import React, { memo, useEffect, useMemo } from 'react';
|
|
3
3
|
import { createPortal } from 'react-dom';
|
|
4
|
+
import { hexagonShapePath } from '@coinbase/cds-common/svg/shape';
|
|
4
5
|
import { cx } from '../cx';
|
|
5
6
|
import { useIsBrowser } from '../hooks/useIsBrowser';
|
|
6
7
|
import { Box } from '../layout/Box';
|
|
@@ -27,7 +28,7 @@ export const HexagonAvatarClipPath = () => {
|
|
|
27
28
|
id: hexagonAvatarClipId,
|
|
28
29
|
transform: "scale(".concat(1 / viewBoxSize, " ").concat(1 / viewBoxSize, ")"),
|
|
29
30
|
children: /*#__PURE__*/_jsx("path", {
|
|
30
|
-
d:
|
|
31
|
+
d: hexagonShapePath
|
|
31
32
|
})
|
|
32
33
|
})
|
|
33
34
|
})
|
|
@@ -101,7 +102,7 @@ export const HexagonBorder = /*#__PURE__*/memo(_ref => {
|
|
|
101
102
|
viewBox: "0 0 16 16",
|
|
102
103
|
children: /*#__PURE__*/_jsx("path", {
|
|
103
104
|
className: pathElementCss,
|
|
104
|
-
d:
|
|
105
|
+
d: hexagonShapePath,
|
|
105
106
|
"data-testid": "".concat(testID, "-path"),
|
|
106
107
|
stroke: strokeColor,
|
|
107
108
|
strokeWidth: hexagonBorderWidth,
|
|
@@ -7,7 +7,8 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
|
|
|
7
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
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
9
|
import React, { memo, useCallback, useMemo, useRef, useState } from 'react';
|
|
10
|
-
import {
|
|
10
|
+
import { selectCellSpacingConfig } from '@coinbase/cds-common/tokens/select';
|
|
11
|
+
import { Cell } from '../cells/Cell';
|
|
11
12
|
import { Dropdown } from '../dropdown/Dropdown';
|
|
12
13
|
import { useA11yControlledVisibility } from '../hooks/useA11yControlledVisibility';
|
|
13
14
|
import { useComponentConfig } from '../hooks/useComponentConfig';
|
|
@@ -43,12 +44,30 @@ export const NavigationTitleSelect = /*#__PURE__*/memo(_props => {
|
|
|
43
44
|
const handleOpenMenu = useCallback(() => {
|
|
44
45
|
setVisible(true);
|
|
45
46
|
}, []);
|
|
47
|
+
const handleOptionClick = useCallback(id => {
|
|
48
|
+
var _dropdownRef$current;
|
|
49
|
+
onChange(id);
|
|
50
|
+
(_dropdownRef$current = dropdownRef.current) === null || _dropdownRef$current === void 0 || _dropdownRef$current.closeMenu();
|
|
51
|
+
}, [onChange]);
|
|
46
52
|
const dropdownContent = useMemo(() => {
|
|
47
|
-
return options.map(
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
53
|
+
return options.map(_ref => {
|
|
54
|
+
let {
|
|
55
|
+
id,
|
|
56
|
+
label: title
|
|
57
|
+
} = _ref;
|
|
58
|
+
return /*#__PURE__*/_jsx(Cell, _objectSpread(_objectSpread({
|
|
59
|
+
borderRadius: 0,
|
|
60
|
+
onClick: () => handleOptionClick(id),
|
|
61
|
+
selected: value === id
|
|
62
|
+
}, selectCellSpacingConfig), {}, {
|
|
63
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
64
|
+
font: "headline",
|
|
65
|
+
overflow: "truncate",
|
|
66
|
+
children: title
|
|
67
|
+
})
|
|
68
|
+
}));
|
|
69
|
+
});
|
|
70
|
+
}, [handleOptionClick, options, value]);
|
|
52
71
|
const label = useMemo(() => {
|
|
53
72
|
var _options$find;
|
|
54
73
|
return (_options$find = options.find(option => option.id === value)) === null || _options$find === void 0 ? void 0 : _options$find.label;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const _excluded = ["icon", "title", "collapsed", "active", "tooltipContent", "disablePortal", "borderRadius", "accessibilityLabel", "Component"];
|
|
1
|
+
const _excluded = ["icon", "title", "collapsed", "active", "tooltipContent", "disablePortal", "borderRadius", "accessibilityLabel", "Component", "className", "style", "classNames", "styles"];
|
|
2
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
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
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; }
|
|
@@ -7,6 +7,7 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
|
|
|
7
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
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
9
|
import React, { forwardRef, memo, useMemo } from 'react';
|
|
10
|
+
import { cx } from '../cx';
|
|
10
11
|
import { useComponentConfig } from '../hooks/useComponentConfig';
|
|
11
12
|
import { Icon } from '../icons';
|
|
12
13
|
import { Box } from '../layout';
|
|
@@ -16,6 +17,20 @@ import { Text } from '../typography';
|
|
|
16
17
|
import { useSidebarContext } from './SidebarContext';
|
|
17
18
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
18
19
|
const pressableCss = "pressableCss-p1t38snu";
|
|
20
|
+
/**
|
|
21
|
+
* Static class names for SidebarItem component parts.
|
|
22
|
+
* Use these selectors to target specific elements with CSS.
|
|
23
|
+
*/
|
|
24
|
+
export const sidebarItemClassNames = {
|
|
25
|
+
/** Persistent outer wrapper across tooltip/non-tooltip variants. */
|
|
26
|
+
root: 'cds-SidebarItem',
|
|
27
|
+
/** Default content wrapper element. */
|
|
28
|
+
content: 'cds-SidebarItem-content',
|
|
29
|
+
/** Icon wrapper element. */
|
|
30
|
+
icon: 'cds-SidebarItem-icon',
|
|
31
|
+
/** Title text element. */
|
|
32
|
+
title: 'cds-SidebarItem-title'
|
|
33
|
+
};
|
|
19
34
|
export const SidebarItem = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, ref) => {
|
|
20
35
|
const mergedProps = useComponentConfig('SidebarItem', _props);
|
|
21
36
|
const {
|
|
@@ -27,7 +42,11 @@ export const SidebarItem = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, re
|
|
|
27
42
|
disablePortal,
|
|
28
43
|
borderRadius,
|
|
29
44
|
accessibilityLabel = title,
|
|
30
|
-
Component
|
|
45
|
+
Component,
|
|
46
|
+
className,
|
|
47
|
+
style,
|
|
48
|
+
classNames,
|
|
49
|
+
styles
|
|
31
50
|
} = mergedProps,
|
|
32
51
|
pressableProps = _objectWithoutProperties(mergedProps, _excluded);
|
|
33
52
|
const color = active ? 'fgPrimary' : 'fg';
|
|
@@ -39,37 +58,43 @@ export const SidebarItem = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, re
|
|
|
39
58
|
const isDefaultVariant = variant === 'default';
|
|
40
59
|
const defaultComponent = useMemo(() => /*#__PURE__*/_jsxs(Box, {
|
|
41
60
|
alignItems: "center",
|
|
61
|
+
className: cx(sidebarItemClassNames.content, classNames === null || classNames === void 0 ? void 0 : classNames.content),
|
|
42
62
|
flexDirection: isDefaultVariant ? 'row' : 'column',
|
|
43
63
|
gap: isDefaultVariant ? 2 : 0.5,
|
|
44
64
|
paddingX: isDefaultVariant ? 2 : 0.5,
|
|
45
65
|
paddingY: isDefaultVariant ? 2 : 1,
|
|
66
|
+
style: styles === null || styles === void 0 ? void 0 : styles.content,
|
|
46
67
|
testID: "sidebar-item-".concat(variant),
|
|
47
68
|
children: [/*#__PURE__*/_jsx(Icon, {
|
|
48
69
|
active: active,
|
|
70
|
+
className: cx(sidebarItemClassNames.icon, classNames === null || classNames === void 0 ? void 0 : classNames.icon),
|
|
49
71
|
color: color,
|
|
50
72
|
name: icon,
|
|
51
|
-
size: "m"
|
|
73
|
+
size: "m",
|
|
74
|
+
style: styles === null || styles === void 0 ? void 0 : styles.icon
|
|
52
75
|
}), (variant === 'condensed' || !isCollapsed) && /*#__PURE__*/_jsx(Text, {
|
|
76
|
+
className: cx(sidebarItemClassNames.title, classNames === null || classNames === void 0 ? void 0 : classNames.title),
|
|
53
77
|
color: color,
|
|
54
78
|
font: isDefaultVariant ? 'headline' : 'label1',
|
|
55
79
|
fontSize: isDefaultVariant ? 'inherit' : 'legal',
|
|
56
80
|
numberOfLines: isDefaultVariant ? undefined : 1,
|
|
57
81
|
overflow: isDefaultVariant ? undefined : 'break',
|
|
82
|
+
style: styles === null || styles === void 0 ? void 0 : styles.title,
|
|
58
83
|
textAlign: isDefaultVariant ? 'start' : 'center',
|
|
59
84
|
children: title
|
|
60
85
|
})]
|
|
61
|
-
}), [active, color, icon, isCollapsed, isDefaultVariant, title, variant]);
|
|
86
|
+
}), [active, color, icon, isCollapsed, isDefaultVariant, title, variant, classNames === null || classNames === void 0 ? void 0 : classNames.content, classNames === null || classNames === void 0 ? void 0 : classNames.icon, classNames === null || classNames === void 0 ? void 0 : classNames.title, styles === null || styles === void 0 ? void 0 : styles.content, styles === null || styles === void 0 ? void 0 : styles.icon, styles === null || styles === void 0 ? void 0 : styles.title]);
|
|
62
87
|
const content = useMemo(() => /*#__PURE__*/_jsx(Pressable, _objectSpread(_objectSpread({
|
|
63
88
|
ref: ref,
|
|
64
|
-
className: pressableCss
|
|
65
|
-
}, pressableProps), {}, {
|
|
66
89
|
accessibilityLabel: isCollapsed ? accessibilityLabel : undefined,
|
|
67
90
|
"aria-current": active ? 'page' : undefined,
|
|
68
91
|
background: "bgPrimaryWash",
|
|
69
92
|
borderRadius: borderRadius !== null && borderRadius !== void 0 ? borderRadius : isDefaultVariant ? 1000 : 400,
|
|
70
93
|
borderWidth: isDefaultVariant ? undefined : 0,
|
|
94
|
+
className: pressableCss,
|
|
71
95
|
transparentWhileInactive: !active,
|
|
72
|
-
width: "100%"
|
|
96
|
+
width: "100%"
|
|
97
|
+
}, pressableProps), {}, {
|
|
73
98
|
children: Component ? /*#__PURE__*/_jsx(Component, {
|
|
74
99
|
active: active,
|
|
75
100
|
color: color,
|
|
@@ -78,12 +103,17 @@ export const SidebarItem = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, re
|
|
|
78
103
|
title: title
|
|
79
104
|
}) : defaultComponent
|
|
80
105
|
})), [ref, pressableProps, isCollapsed, accessibilityLabel, active, borderRadius, isDefaultVariant, Component, color, icon, title, defaultComponent]);
|
|
81
|
-
return
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
children:
|
|
86
|
-
|
|
106
|
+
return /*#__PURE__*/_jsx(Box, {
|
|
107
|
+
className: cx(sidebarItemClassNames.root, className, classNames === null || classNames === void 0 ? void 0 : classNames.root),
|
|
108
|
+
style: _objectSpread(_objectSpread({}, style), styles === null || styles === void 0 ? void 0 : styles.root),
|
|
109
|
+
width: "100%",
|
|
110
|
+
children: tooltipContent && isCollapsed ? /*#__PURE__*/_jsx(Tooltip, {
|
|
111
|
+
content: tooltipContent,
|
|
112
|
+
disablePortal: disablePortal,
|
|
113
|
+
placement: "right",
|
|
114
|
+
children: content
|
|
115
|
+
}) : content
|
|
116
|
+
});
|
|
87
117
|
}));
|
|
88
118
|
SidebarItem.displayName = 'SidebarItem';
|
|
89
119
|
import "./SidebarItem.css";
|
|
@@ -92,7 +92,9 @@ export const DefaultRollingNumberDigit = /*#__PURE__*/memo(/*#__PURE__*/forwardR
|
|
|
92
92
|
prevValue.current = value;
|
|
93
93
|
}, [isSingleVariant, transitionConfig, value, direction]);
|
|
94
94
|
const renderDigit = useCallback(digit => /*#__PURE__*/_jsx("span", {
|
|
95
|
-
ref: r =>
|
|
95
|
+
ref: r => {
|
|
96
|
+
void (numberRefs.current[digit] = r);
|
|
97
|
+
},
|
|
96
98
|
className: digitSpanCss,
|
|
97
99
|
children: digit
|
|
98
100
|
}, digit), []);
|
|
@@ -276,7 +276,7 @@ export const RollingNumber = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props,
|
|
|
276
276
|
tabularNumbers: tabularNumbers
|
|
277
277
|
}, props), {}, {
|
|
278
278
|
children: [screenReaderOnlySection, /*#__PURE__*/_jsxs(m.span, {
|
|
279
|
-
|
|
279
|
+
'aria-hidden': true,
|
|
280
280
|
animate: colorControls,
|
|
281
281
|
className: cx(tickerCss, classNames === null || classNames === void 0 ? void 0 : classNames.visibleContent),
|
|
282
282
|
style: styles === null || styles === void 0 ? void 0 : styles.visibleContent,
|
package/esm/overlays/Alert.js
CHANGED
|
@@ -137,9 +137,9 @@ export const Alert = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, ref) =>
|
|
|
137
137
|
})]
|
|
138
138
|
}), /*#__PURE__*/_jsxs(Box, {
|
|
139
139
|
flexDirection: actionLayout === 'vertical' ? 'column-reverse' : 'row',
|
|
140
|
-
gap:
|
|
141
|
-
paddingX:
|
|
142
|
-
paddingY:
|
|
140
|
+
gap: 1,
|
|
141
|
+
paddingX: 3,
|
|
142
|
+
paddingY: 2,
|
|
143
143
|
testID: testID && "".concat(testID, "-actions"),
|
|
144
144
|
children: [dismissAction, preferredAction]
|
|
145
145
|
})]
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { memo, useCallback, useEffect, useMemo, useRef } from 'react';
|
|
2
|
-
import { useMergeRefs } from '@coinbase/cds-common/hooks/useMergeRefs';
|
|
3
2
|
import { FOCUSABLE_ELEMENTS } from '@coinbase/cds-common/tokens/overlays';
|
|
4
3
|
import { debounce } from '@coinbase/cds-common/utils/debounce';
|
|
4
|
+
import { mergeReactElementRef } from '@coinbase/cds-common/utils/mergeRefs';
|
|
5
5
|
import { useComponentConfig } from '../hooks/useComponentConfig';
|
|
6
6
|
import { getBrowserGlobals } from '../utils/browser';
|
|
7
7
|
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -210,13 +210,12 @@ export const FocusTrap = /*#__PURE__*/memo(_props => {
|
|
|
210
210
|
|
|
211
211
|
// only works for single child
|
|
212
212
|
const onlyChild = React.Children.only(children);
|
|
213
|
-
const mergedRef = useMergeRefs(childrenRef, children === null || children === void 0 ? void 0 : children.ref);
|
|
214
213
|
if (!onlyChild) {
|
|
215
214
|
return /*#__PURE__*/_jsx(_Fragment, {
|
|
216
215
|
children: children
|
|
217
216
|
});
|
|
218
217
|
}
|
|
219
218
|
return /*#__PURE__*/React.cloneElement(children, {
|
|
220
|
-
ref:
|
|
219
|
+
ref: mergeReactElementRef(children, childrenRef)
|
|
221
220
|
});
|
|
222
221
|
});
|
package/esm/overlays/Portal.js
CHANGED
|
@@ -4,6 +4,12 @@ import { useTheme } from '../hooks/useTheme';
|
|
|
4
4
|
import { ThemeProvider } from '../system/ThemeProvider';
|
|
5
5
|
import { isSSR } from '../utils/browser';
|
|
6
6
|
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
/**
|
|
8
|
+
* Internal component used by CDS overlay components (Modal, Toast, Alert, etc.) to
|
|
9
|
+
* render content into the container elements created by PortalProvider. Wraps
|
|
10
|
+
* `createPortal` and automatically re-establishes the current theme in the portal's
|
|
11
|
+
* DOM tree via an isolated ThemeProvider.
|
|
12
|
+
*/
|
|
7
13
|
export const Portal = /*#__PURE__*/memo(function Portal(_ref) {
|
|
8
14
|
let {
|
|
9
15
|
disablePortal,
|
|
@@ -17,6 +23,7 @@ export const Portal = /*#__PURE__*/memo(function Portal(_ref) {
|
|
|
17
23
|
});
|
|
18
24
|
}
|
|
19
25
|
return /*#__PURE__*/createPortal(/*#__PURE__*/_jsx(ThemeProvider, {
|
|
26
|
+
isolated: true,
|
|
20
27
|
activeColorScheme: theme.activeColorScheme,
|
|
21
28
|
theme: theme,
|
|
22
29
|
children: children
|
|
@@ -17,6 +17,12 @@ export const toastContainerId = 'toastsContainer';
|
|
|
17
17
|
export const tooltipContainerId = 'tooltipContainer';
|
|
18
18
|
export const trayContainerId = 'trayContainer';
|
|
19
19
|
const safeDocument = (_getBrowserGlobals = getBrowserGlobals()) === null || _getBrowserGlobals === void 0 ? void 0 : _getBrowserGlobals.document;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Internal component that creates the DOM container elements for overlay components.
|
|
23
|
+
* Appends a root div to `document.body` containing separate containers for each overlay
|
|
24
|
+
* type (modals, toasts, alerts, tooltips, trays), each with its own z-index layer.
|
|
25
|
+
*/
|
|
20
26
|
export const PortalHost = /*#__PURE__*/memo(() => {
|
|
21
27
|
const portalRoot = useMemo(
|
|
22
28
|
// prevent duplicate portal root
|
|
@@ -78,6 +84,14 @@ export const PortalHost = /*#__PURE__*/memo(() => {
|
|
|
78
84
|
})]
|
|
79
85
|
}), portalRoot);
|
|
80
86
|
});
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Required root-level provider that enables CDS overlay components (Modal, Toast, Alert,
|
|
90
|
+
* Tooltip, Tray). Creates the DOM containers these components render into via React portals
|
|
91
|
+
* and provides the context for managing overlay state and toast queuing.
|
|
92
|
+
*
|
|
93
|
+
* Must be rendered once near the root of your application, alongside ThemeProvider.
|
|
94
|
+
*/
|
|
81
95
|
export const PortalProvider = /*#__PURE__*/memo(_ref => {
|
|
82
96
|
let {
|
|
83
97
|
children,
|
|
@@ -97,6 +111,12 @@ export const PortalProvider = /*#__PURE__*/memo(_ref => {
|
|
|
97
111
|
})
|
|
98
112
|
});
|
|
99
113
|
});
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Renders portal containers and overlay nodes independently from PortalProvider.
|
|
117
|
+
* Use this when `renderPortals={false}` is set on PortalProvider to control
|
|
118
|
+
* where in the component tree the portal DOM containers are created.
|
|
119
|
+
*/
|
|
100
120
|
export const PortalNodes = () => {
|
|
101
121
|
const {
|
|
102
122
|
nodes
|
package/esm/overlays/Toast.js
CHANGED
|
@@ -83,10 +83,11 @@ export const Toast = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, ref) =>
|
|
|
83
83
|
return /*#__PURE__*/_jsx(Portal, {
|
|
84
84
|
containerId: toastContainerId,
|
|
85
85
|
disablePortal: disablePortal,
|
|
86
|
-
children: /*#__PURE__*/_jsx(motion.div, _objectSpread(_objectSpread({}, motionProps), {}, {
|
|
86
|
+
children: /*#__PURE__*/_jsx(motion.div, _objectSpread(_objectSpread({}, _objectSpread(_objectSpread({}, motionProps), {}, {
|
|
87
87
|
className: baseCss,
|
|
88
|
-
|
|
89
|
-
onAnimationComplete: handleAnimationComplete
|
|
88
|
+
'data-testid': "".concat(testID, "-motion"),
|
|
89
|
+
onAnimationComplete: handleAnimationComplete
|
|
90
|
+
})), {}, {
|
|
90
91
|
children: /*#__PURE__*/_jsx(Box, _objectSpread(_objectSpread({
|
|
91
92
|
justifyContent: "center",
|
|
92
93
|
onMouseEnter: pauseTimer // persist toast when hovering
|
|
@@ -134,7 +135,7 @@ export const Toast = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_props, ref) =>
|
|
|
134
135
|
name: "close",
|
|
135
136
|
onClick: handleClose,
|
|
136
137
|
testID: "".concat(testID, "-close-button"),
|
|
137
|
-
variant: "
|
|
138
|
+
variant: "secondary"
|
|
138
139
|
}, closeButtonAccessibilityProps))]
|
|
139
140
|
})]
|
|
140
141
|
})
|
|
@@ -58,8 +58,9 @@ export const FullscreenModalLayout = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(f
|
|
|
58
58
|
zIndex: zIndex,
|
|
59
59
|
children: [/*#__PURE__*/_jsx(motion.div, _objectSpread(_objectSpread({}, overlayMotionProps), {}, {
|
|
60
60
|
children: /*#__PURE__*/_jsx(Overlay, {})
|
|
61
|
-
})), /*#__PURE__*/_jsx(motion.div, _objectSpread(_objectSpread({}, dialogMotionProps), {}, {
|
|
62
|
-
className: pinCss
|
|
61
|
+
})), /*#__PURE__*/_jsx(motion.div, _objectSpread(_objectSpread({}, _objectSpread(_objectSpread({}, dialogMotionProps), {}, {
|
|
62
|
+
className: pinCss
|
|
63
|
+
})), {}, {
|
|
63
64
|
children: /*#__PURE__*/_jsx(FocusTrap, {
|
|
64
65
|
disableFocusTrap: disableFocusTrap,
|
|
65
66
|
focusTabIndexElements: focusTabIndexElements,
|
|
@@ -8,7 +8,6 @@ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i
|
|
|
8
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
9
|
import React from 'react';
|
|
10
10
|
import { useModalContext } from '@coinbase/cds-common/overlays/ModalContext';
|
|
11
|
-
import { interactableHeight } from '@coinbase/cds-common/tokens/interactableHeight';
|
|
12
11
|
import { IconButton } from '../../buttons/IconButton';
|
|
13
12
|
import { useComponentConfig } from '../../hooks/useComponentConfig';
|
|
14
13
|
import { Box } from '../../layout/Box';
|
|
@@ -37,11 +36,17 @@ export const ModalHeader = _props => {
|
|
|
37
36
|
hideDividers
|
|
38
37
|
} = useModalContext();
|
|
39
38
|
if (!title && !onBackButtonClick && !onRequestClose) return null;
|
|
40
|
-
|
|
41
|
-
// use empty placeholder which has the same size as IconButton to maintain horizontal position
|
|
42
39
|
const emptyPlaceholder = /*#__PURE__*/_jsx(Box, {
|
|
43
|
-
|
|
44
|
-
|
|
40
|
+
"aria-hidden": true,
|
|
41
|
+
style: {
|
|
42
|
+
visibility: 'hidden'
|
|
43
|
+
},
|
|
44
|
+
children: /*#__PURE__*/_jsx(IconButton, {
|
|
45
|
+
disabled: true,
|
|
46
|
+
transparent: true,
|
|
47
|
+
name: "close",
|
|
48
|
+
tabIndex: -1
|
|
49
|
+
})
|
|
45
50
|
});
|
|
46
51
|
return /*#__PURE__*/_jsxs(HStack, _objectSpread(_objectSpread({
|
|
47
52
|
alignItems: alignItems,
|
|
@@ -23,13 +23,12 @@ export const OverlayContent = /*#__PURE__*/forwardRef((_ref, forwardedRef) => {
|
|
|
23
23
|
exitConfigs: [animateOutOpacityConfig],
|
|
24
24
|
exit: 'exit'
|
|
25
25
|
});
|
|
26
|
-
const content = /*#__PURE__*/_jsx(VStack, _objectSpread(
|
|
26
|
+
const content = /*#__PURE__*/_jsx(VStack, _objectSpread({
|
|
27
|
+
ref: forwardedRef,
|
|
27
28
|
background: "bgOverlay",
|
|
28
29
|
onClick: onClick,
|
|
29
30
|
pin: "all"
|
|
30
|
-
}, props)
|
|
31
|
-
ref: forwardedRef
|
|
32
|
-
}));
|
|
31
|
+
}, props));
|
|
33
32
|
return animated ? /*#__PURE__*/_jsx(motion.div, _objectSpread(_objectSpread({}, motionProps), {}, {
|
|
34
33
|
"data-testid": "".concat(props.testID, "-motion"),
|
|
35
34
|
children: content
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { useMemo, useState } from 'react';
|
|
2
|
+
// eslint-disable-next-line no-restricted-imports -- Temporary v9 compatibility export; remove with `usePopper` in v10.
|
|
2
3
|
import { usePopper as useExternalPopper } from 'react-popper';
|
|
4
|
+
// eslint-disable-next-line no-restricted-imports -- Temporary v9 compatibility export; remove with `usePopper` in v10.
|
|
5
|
+
|
|
3
6
|
import { useTheme } from '../../hooks/useTheme';
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated Use Floating UI directly. This hook is temporarily supported for compatibility. This will be removed in a future major release.
|
|
9
|
+
* @deprecationExpectedRemoval v10
|
|
10
|
+
*/
|
|
4
11
|
export const usePopper = _ref => {
|
|
5
12
|
let {
|
|
6
13
|
placement,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { figma } from '@figma/code-connect';
|
|
2
2
|
import { Button } from '../../../buttons';
|
|
3
|
-
import {
|
|
3
|
+
import { Text } from '../../../typography';
|
|
4
4
|
import { Tooltip } from '../Tooltip';
|
|
5
5
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
6
|
figma.connect(Tooltip, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=715%3A14162', {
|
|
@@ -75,11 +75,13 @@ figma.connect(Tooltip, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-
|
|
|
75
75
|
} = _ref2;
|
|
76
76
|
return /*#__PURE__*/_jsx(Tooltip, {
|
|
77
77
|
content: /*#__PURE__*/_jsxs(_Fragment, {
|
|
78
|
-
children: [/*#__PURE__*/_jsx(
|
|
78
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
79
79
|
as: "p",
|
|
80
|
+
font: "headline",
|
|
80
81
|
children: content.title
|
|
81
|
-
}), /*#__PURE__*/_jsx(
|
|
82
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
82
83
|
as: "p",
|
|
84
|
+
font: "body",
|
|
83
85
|
children: content.description
|
|
84
86
|
})]
|
|
85
87
|
}),
|
package/esm/overlays/useModal.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useModal } from '@coinbase/cds-common/overlays/useModal';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* @deprecated Use the visible and onRequestClose props as outlined in the docs here https://cds.coinbase.com/components/modal#get-started. This will be removed in a future major release.
|
|
4
|
+
* @deprecated Use the `visible` and `onRequestClose` props as outlined in the docs here https://cds.coinbase.com/components/modal#get-started. This will be removed in a future major release.
|
|
5
5
|
* @deprecationExpectedRemoval v7
|
|
6
6
|
*/
|
|
7
7
|
export { useModal };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const _excluded = ["activeStep", "complete", "flatStepIds", "className", "style", "display", "width", "paddingBottom", "font", "fontFamily", "fontSize", "fontWeight", "lineHeight", "textTransform"];
|
|
1
|
+
const _excluded = ["activeStep", "complete", "flatStepIds", "className", "style", "display", "disableAnimateOnMount", "width", "paddingBottom", "font", "fontFamily", "fontSize", "fontWeight", "lineHeight", "textTransform"];
|
|
2
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
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
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; }
|
|
@@ -6,17 +6,23 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
6
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
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
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 { memo
|
|
10
|
-
import {
|
|
9
|
+
import { memo } from 'react';
|
|
10
|
+
import { curves, durations } from '@coinbase/cds-common/motion/tokens';
|
|
11
|
+
import { m as motion } from 'framer-motion';
|
|
11
12
|
import { HStack } from '../layout/HStack';
|
|
12
13
|
import { Text } from '../typography/Text';
|
|
13
14
|
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
-
const
|
|
15
|
+
const MotionHStack = motion(HStack);
|
|
15
16
|
const displayStyle = {
|
|
16
17
|
phone: 'flex',
|
|
17
18
|
tablet: 'none',
|
|
18
19
|
desktop: 'none'
|
|
19
20
|
};
|
|
21
|
+
const headerTransition = {
|
|
22
|
+
type: 'tween',
|
|
23
|
+
duration: durations.slow2 / 1000,
|
|
24
|
+
ease: curves.global
|
|
25
|
+
};
|
|
20
26
|
export const DefaultStepperHeaderHorizontal = /*#__PURE__*/memo(function DefaultStepperHeaderHorizontal(_ref) {
|
|
21
27
|
let {
|
|
22
28
|
activeStep,
|
|
@@ -25,6 +31,7 @@ export const DefaultStepperHeaderHorizontal = /*#__PURE__*/memo(function Default
|
|
|
25
31
|
className,
|
|
26
32
|
style,
|
|
27
33
|
display = displayStyle,
|
|
34
|
+
disableAnimateOnMount,
|
|
28
35
|
width = '100%',
|
|
29
36
|
paddingBottom = 1.5,
|
|
30
37
|
font = 'caption',
|
|
@@ -35,29 +42,26 @@ export const DefaultStepperHeaderHorizontal = /*#__PURE__*/memo(function Default
|
|
|
35
42
|
textTransform
|
|
36
43
|
} = _ref,
|
|
37
44
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
38
|
-
const spring = useSpring({
|
|
39
|
-
from: {
|
|
40
|
-
opacity: 0
|
|
41
|
-
},
|
|
42
|
-
to: {
|
|
43
|
-
opacity: 1
|
|
44
|
-
},
|
|
45
|
-
reset: true
|
|
46
|
-
});
|
|
47
|
-
const styles = useMemo(() => _objectSpread(_objectSpread({}, style), spring), [style, spring]);
|
|
48
45
|
const flatStepIndex = activeStep ? flatStepIds.indexOf(activeStep.id) : -1;
|
|
49
46
|
const emptyText = /*#__PURE__*/_jsx(_Fragment, {
|
|
50
47
|
children: "\xA0"
|
|
51
48
|
});
|
|
52
|
-
return /*#__PURE__*/_jsx(
|
|
49
|
+
return /*#__PURE__*/_jsx(MotionHStack, _objectSpread(_objectSpread({
|
|
53
50
|
"aria-hidden": true,
|
|
51
|
+
animate: {
|
|
52
|
+
opacity: 1
|
|
53
|
+
},
|
|
54
54
|
className: className,
|
|
55
55
|
display: display,
|
|
56
56
|
font: font,
|
|
57
57
|
fontFamily: fontFamily,
|
|
58
|
+
initial: {
|
|
59
|
+
opacity: disableAnimateOnMount ? 1 : 0
|
|
60
|
+
},
|
|
58
61
|
paddingBottom: paddingBottom,
|
|
59
62
|
position: "relative",
|
|
60
|
-
style:
|
|
63
|
+
style: style,
|
|
64
|
+
transition: headerTransition,
|
|
61
65
|
width: width
|
|
62
66
|
}, props), {}, {
|
|
63
67
|
children: /*#__PURE__*/_jsx(Text, {
|