@coinbase/cds-web 9.3.0 → 9.4.0
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 +12 -0
- package/dts/accordion/Accordion.d.ts +1 -1
- package/dts/accordion/Accordion.d.ts.map +1 -1
- package/dts/accordion/AccordionHeader.d.ts +2 -2
- package/dts/accordion/AccordionHeader.d.ts.map +1 -1
- package/dts/accordion/AccordionPanel.d.ts +2 -2
- package/dts/accordion/AccordionPanel.d.ts.map +1 -1
- package/dts/alpha/combobox/Combobox.d.ts +1 -1
- package/dts/alpha/combobox/Combobox.d.ts.map +1 -1
- package/dts/alpha/data-card/DataCardLayout.d.ts.map +1 -1
- package/dts/alpha/select/types.d.ts +2 -2
- package/dts/alpha/select/types.d.ts.map +1 -1
- package/dts/alpha/select-chip/SelectChip.d.ts +1 -1
- package/dts/alpha/select-chip/SelectChip.d.ts.map +1 -1
- package/dts/alpha/select-chip/SelectChipControl.d.ts +1 -1
- package/dts/alpha/select-chip/SelectChipControl.d.ts.map +1 -1
- package/dts/alpha/tabbed-chips/TabbedChips.d.ts +5 -3
- package/dts/alpha/tabbed-chips/TabbedChips.d.ts.map +1 -1
- package/dts/animation/LottieStatusAnimation.d.ts.map +1 -1
- package/dts/animation/types.d.ts +1 -1
- package/dts/animation/types.d.ts.map +1 -1
- package/dts/animation/useLottieLoader.d.ts +1 -1
- package/dts/animation/useLottieLoader.d.ts.map +1 -1
- package/dts/banner/Banner.d.ts +4 -7
- package/dts/banner/Banner.d.ts.map +1 -1
- package/dts/buttons/AvatarButton.d.ts +2 -2
- package/dts/buttons/AvatarButton.d.ts.map +1 -1
- package/dts/buttons/Button.d.ts +4 -6
- package/dts/buttons/Button.d.ts.map +1 -1
- package/dts/buttons/ButtonGroup.d.ts +4 -6
- package/dts/buttons/ButtonGroup.d.ts.map +1 -1
- package/dts/buttons/IconButton.d.ts +3 -1
- package/dts/buttons/IconButton.d.ts.map +1 -1
- package/dts/buttons/IconCounterButton.d.ts +1 -1
- package/dts/buttons/IconCounterButton.d.ts.map +1 -1
- package/dts/buttons/TileButton.d.ts +1 -1
- package/dts/buttons/TileButton.d.ts.map +1 -1
- package/dts/cards/Card.d.ts +1 -1
- package/dts/cards/Card.d.ts.map +1 -1
- package/dts/cards/CardBody.d.ts +1 -1
- package/dts/cards/CardBody.d.ts.map +1 -1
- package/dts/cards/CardFooter.d.ts +2 -2
- package/dts/cards/CardFooter.d.ts.map +1 -1
- package/dts/cards/CardHeader.d.ts +1 -1
- package/dts/cards/CardHeader.d.ts.map +1 -1
- package/dts/cards/CardMedia.d.ts +1 -1
- package/dts/cards/CardMedia.d.ts.map +1 -1
- package/dts/cards/ContainedAssetCard.d.ts +1 -1
- package/dts/cards/ContainedAssetCard.d.ts.map +1 -1
- package/dts/cards/ContentCard/ContentCard.d.ts +1 -1
- package/dts/cards/ContentCard/ContentCard.d.ts.map +1 -1
- package/dts/cards/ContentCard/ContentCardBody.d.ts +2 -2
- package/dts/cards/ContentCard/ContentCardBody.d.ts.map +1 -1
- package/dts/cards/ContentCard/ContentCardFooter.d.ts +1 -1
- package/dts/cards/ContentCard/ContentCardFooter.d.ts.map +1 -1
- package/dts/cards/ContentCard/ContentCardHeader.d.ts +2 -2
- package/dts/cards/ContentCard/ContentCardHeader.d.ts.map +1 -1
- package/dts/cards/DataCard.d.ts +1 -1
- package/dts/cards/DataCard.d.ts.map +1 -1
- package/dts/cards/FloatingAssetCard.d.ts +1 -1
- package/dts/cards/FloatingAssetCard.d.ts.map +1 -1
- package/dts/cards/LikeButton.d.ts +2 -1
- package/dts/cards/LikeButton.d.ts.map +1 -1
- package/dts/cards/MessagingCard/MessagingCardLayout.d.ts.map +1 -1
- package/dts/cards/NudgeCard.d.ts.map +1 -1
- package/dts/cards/UpsellCard.d.ts +5 -7
- package/dts/cards/UpsellCard.d.ts.map +1 -1
- package/dts/carousel/Carousel.d.ts +2 -1
- package/dts/carousel/Carousel.d.ts.map +1 -1
- package/dts/carousel/CarouselContext.d.ts +1 -1
- package/dts/carousel/CarouselContext.d.ts.map +1 -1
- package/dts/carousel/DefaultCarouselPagination.d.ts +1 -1
- package/dts/carousel/DefaultCarouselPagination.d.ts.map +1 -1
- package/dts/cells/Cell.d.ts +1 -1
- package/dts/cells/Cell.d.ts.map +1 -1
- package/dts/cells/CellAccessory.d.ts +1 -1
- package/dts/cells/CellAccessory.d.ts.map +1 -1
- package/dts/cells/CellMedia.d.ts +3 -1
- package/dts/cells/CellMedia.d.ts.map +1 -1
- package/dts/cells/ContentCellFallback.d.ts +1 -1
- package/dts/cells/ContentCellFallback.d.ts.map +1 -1
- package/dts/cells/ListCellFallback.d.ts +2 -1
- package/dts/cells/ListCellFallback.d.ts.map +1 -1
- package/dts/chips/Chip.d.ts.map +1 -1
- package/dts/chips/ChipProps.d.ts +2 -1
- package/dts/chips/ChipProps.d.ts.map +1 -1
- package/dts/chips/SelectChip.d.ts +1 -1
- package/dts/chips/SelectChip.d.ts.map +1 -1
- package/dts/chips/TabbedChips.d.ts +2 -2
- package/dts/chips/TabbedChips.d.ts.map +1 -1
- package/dts/coachmark/Coachmark.d.ts +2 -2
- package/dts/coachmark/Coachmark.d.ts.map +1 -1
- package/dts/collapsible/Collapsible.d.ts +3 -1
- package/dts/collapsible/Collapsible.d.ts.map +1 -1
- package/dts/controls/CheckboxCell.d.ts.map +1 -1
- package/dts/controls/CheckboxGroup.d.ts +1 -1
- package/dts/controls/CheckboxGroup.d.ts.map +1 -1
- package/dts/controls/ControlGroup.d.ts +2 -2
- package/dts/controls/ControlGroup.d.ts.map +1 -1
- package/dts/controls/InputIconButton.d.ts +2 -1
- package/dts/controls/InputIconButton.d.ts.map +1 -1
- package/dts/controls/NativeInput.d.ts +1 -1
- package/dts/controls/NativeInput.d.ts.map +1 -1
- package/dts/controls/RadioCell.d.ts +1 -1
- package/dts/controls/RadioCell.d.ts.map +1 -1
- package/dts/controls/RadioGroup.d.ts +4 -2
- package/dts/controls/RadioGroup.d.ts.map +1 -1
- package/dts/controls/SearchInput.d.ts +1 -1
- package/dts/controls/SearchInput.d.ts.map +1 -1
- package/dts/controls/SegmentedControl.d.ts +4 -6
- package/dts/controls/SegmentedControl.d.ts.map +1 -1
- package/dts/controls/Select.d.ts +3 -5
- package/dts/controls/Select.d.ts.map +1 -1
- package/dts/controls/SelectOption.d.ts +1 -1
- package/dts/controls/SelectOption.d.ts.map +1 -1
- package/dts/controls/SelectStack.d.ts +1 -1
- package/dts/controls/SelectStack.d.ts.map +1 -1
- package/dts/core/componentConfig.d.ts +1 -1
- package/dts/core/componentConfig.d.ts.map +1 -1
- package/dts/core/theme.d.ts +6 -6
- package/dts/core/theme.d.ts.map +1 -1
- package/dts/dates/DatePicker.d.ts.map +1 -1
- package/dts/dots/DotCount.d.ts +4 -4
- package/dts/dots/DotCount.d.ts.map +1 -1
- package/dts/dots/DotStatusColor.d.ts +4 -8
- package/dts/dots/DotStatusColor.d.ts.map +1 -1
- package/dts/dots/DotSymbol.d.ts +5 -8
- package/dts/dots/DotSymbol.d.ts.map +1 -1
- package/dts/dropdown/DropdownProps.d.ts +2 -1
- package/dts/dropdown/DropdownProps.d.ts.map +1 -1
- package/dts/icons/Icon.d.ts +2 -1
- package/dts/icons/Icon.d.ts.map +1 -1
- package/dts/layout/Fallback.d.ts +1 -1
- package/dts/layout/Fallback.d.ts.map +1 -1
- package/dts/media/Avatar.d.ts +3 -2
- package/dts/media/Avatar.d.ts.map +1 -1
- package/dts/media/Hexagon.d.ts +1 -1
- package/dts/media/Hexagon.d.ts.map +1 -1
- package/dts/media/RemoteImageGroup.d.ts +4 -6
- package/dts/media/RemoteImageGroup.d.ts.map +1 -1
- package/dts/motion/AnimatedCaret.d.ts +1 -1
- package/dts/motion/AnimatedCaret.d.ts.map +1 -1
- package/dts/motion/Pulse.d.ts +2 -1
- package/dts/motion/Pulse.d.ts.map +1 -1
- package/dts/multi-content-module/MultiContentModule.d.ts +1 -1
- package/dts/multi-content-module/MultiContentModule.d.ts.map +1 -1
- package/dts/navigation/NavigationBar.d.ts +1 -1
- package/dts/navigation/NavigationBar.d.ts.map +1 -1
- package/dts/navigation/Sidebar.d.ts +1 -1
- package/dts/navigation/Sidebar.d.ts.map +1 -1
- package/dts/navigation/SidebarItem.d.ts +1 -1
- package/dts/navigation/SidebarItem.d.ts.map +1 -1
- package/dts/navigation/SidebarMoreMenu.d.ts +2 -2
- package/dts/navigation/SidebarMoreMenu.d.ts.map +1 -1
- package/dts/overlays/Alert.d.ts +3 -5
- package/dts/overlays/Alert.d.ts.map +1 -1
- package/dts/overlays/FullscreenAlert.d.ts +2 -1
- package/dts/overlays/FullscreenAlert.d.ts.map +1 -1
- package/dts/overlays/Toast.d.ts +1 -1
- package/dts/overlays/Toast.d.ts.map +1 -1
- package/dts/overlays/handlebar/HandleBar.d.ts +1 -1
- package/dts/overlays/handlebar/HandleBar.d.ts.map +1 -1
- package/dts/overlays/modal/FullscreenModalHeader.d.ts +1 -1
- package/dts/overlays/modal/FullscreenModalHeader.d.ts.map +1 -1
- package/dts/overlays/modal/Modal.d.ts +1 -1
- package/dts/overlays/modal/Modal.d.ts.map +1 -1
- package/dts/overlays/modal/ModalHeader.d.ts +1 -1
- package/dts/overlays/modal/ModalHeader.d.ts.map +1 -1
- package/dts/overlays/modal/ModalWrapper.d.ts.map +1 -1
- package/dts/overlays/overlay/OverlayContent.d.ts +1 -1
- package/dts/overlays/overlay/OverlayContent.d.ts.map +1 -1
- package/dts/overlays/popover/PopoverPanel.d.ts +2 -1
- package/dts/overlays/popover/PopoverPanel.d.ts.map +1 -1
- package/dts/overlays/tooltip/TooltipProps.d.ts +3 -1
- package/dts/overlays/tooltip/TooltipProps.d.ts.map +1 -1
- package/dts/overlays/tray/Tray.d.ts +2 -1
- package/dts/overlays/tray/Tray.d.ts.map +1 -1
- package/dts/page/PageFooter.d.ts +1 -1
- package/dts/page/PageFooter.d.ts.map +1 -1
- package/dts/page/PageHeader.d.ts +1 -1
- package/dts/page/PageHeader.d.ts.map +1 -1
- package/dts/stepper/DefaultStepperStepHorizontal.d.ts.map +1 -1
- package/dts/stepper/DefaultStepperStepVertical.d.ts.map +1 -1
- package/dts/stepper/Stepper.d.ts +1 -1
- package/dts/stepper/Stepper.d.ts.map +1 -1
- package/dts/system/ThemeProvider.d.ts.map +1 -1
- package/dts/tables/TableCaption.d.ts +2 -1
- package/dts/tables/TableCaption.d.ts.map +1 -1
- package/dts/tables/TableSection.d.ts +1 -1
- package/dts/tables/TableSection.d.ts.map +1 -1
- package/dts/tabs/DefaultTab.d.ts +1 -1
- package/dts/tabs/DefaultTab.d.ts.map +1 -1
- package/dts/tabs/Paddle.d.ts +2 -1
- package/dts/tabs/Paddle.d.ts.map +1 -1
- package/dts/tabs/TabIndicator.d.ts +1 -1
- package/dts/tabs/TabIndicator.d.ts.map +1 -1
- package/dts/tabs/TabLabel.d.ts +1 -1
- package/dts/tabs/TabLabel.d.ts.map +1 -1
- package/dts/tabs/TabNavigation.d.ts +1 -1
- package/dts/tabs/TabNavigation.d.ts.map +1 -1
- package/dts/tag/Tag.d.ts +4 -4
- package/dts/tag/Tag.d.ts.map +1 -1
- package/dts/themes/coinbaseDenseTheme.d.ts +2 -0
- package/dts/themes/coinbaseDenseTheme.d.ts.map +1 -1
- package/dts/themes/coinbaseHighContrastTheme.d.ts +2 -0
- package/dts/themes/coinbaseHighContrastTheme.d.ts.map +1 -1
- package/dts/themes/coinbaseTheme.d.ts +2 -0
- package/dts/themes/coinbaseTheme.d.ts.map +1 -1
- package/dts/themes/defaultHighContrastTheme.d.ts +2 -0
- package/dts/themes/defaultHighContrastTheme.d.ts.map +1 -1
- package/dts/themes/defaultTheme.d.ts +2 -0
- package/dts/themes/defaultTheme.d.ts.map +1 -1
- package/dts/tour/Tour.d.ts +2 -1
- package/dts/tour/Tour.d.ts.map +1 -1
- package/dts/utils/flattenAndJoinNodes.d.ts +1 -1
- package/dts/utils/flattenAndJoinNodes.d.ts.map +1 -1
- package/dts/visualizations/ProgressBar.d.ts +3 -1
- package/dts/visualizations/ProgressBar.d.ts.map +1 -1
- package/dts/visualizations/ProgressBarWithFixedLabels.d.ts +2 -1
- package/dts/visualizations/ProgressBarWithFixedLabels.d.ts.map +1 -1
- package/dts/visualizations/ProgressBarWithFloatLabel.d.ts +1 -1
- package/dts/visualizations/ProgressBarWithFloatLabel.d.ts.map +1 -1
- package/dts/visualizations/ProgressCircle.d.ts +1 -1
- package/dts/visualizations/ProgressCircle.d.ts.map +1 -1
- package/dts/visualizations/chart/CartesianChart.d.ts +4 -8
- package/dts/visualizations/chart/CartesianChart.d.ts.map +1 -1
- package/dts/visualizations/chart/Path.d.ts +2 -1
- package/dts/visualizations/chart/Path.d.ts.map +1 -1
- package/dts/visualizations/chart/PeriodSelector.d.ts +3 -2
- package/dts/visualizations/chart/PeriodSelector.d.ts.map +1 -1
- package/dts/visualizations/chart/area/Area.d.ts +2 -1
- package/dts/visualizations/chart/area/Area.d.ts.map +1 -1
- package/dts/visualizations/chart/area/AreaChart.d.ts +4 -2
- package/dts/visualizations/chart/area/AreaChart.d.ts.map +1 -1
- package/dts/visualizations/chart/axis/Axis.d.ts +3 -3
- package/dts/visualizations/chart/axis/Axis.d.ts.map +1 -1
- package/dts/visualizations/chart/axis/XAxis.d.ts.map +1 -1
- package/dts/visualizations/chart/axis/YAxis.d.ts.map +1 -1
- package/dts/visualizations/chart/bar/Bar.d.ts +2 -2
- package/dts/visualizations/chart/bar/Bar.d.ts.map +1 -1
- package/dts/visualizations/chart/bar/BarChart.d.ts +3 -2
- package/dts/visualizations/chart/bar/BarChart.d.ts.map +1 -1
- package/dts/visualizations/chart/bar/BarPlot.d.ts.map +1 -1
- package/dts/visualizations/chart/bar/BarStack.d.ts +3 -2
- package/dts/visualizations/chart/bar/BarStack.d.ts.map +1 -1
- package/dts/visualizations/chart/bar/DefaultBar.d.ts.map +1 -1
- package/dts/visualizations/chart/bar/DefaultBarStack.d.ts.map +1 -1
- package/dts/visualizations/chart/gradient/Gradient.d.ts +1 -1
- package/dts/visualizations/chart/gradient/Gradient.d.ts.map +1 -1
- package/dts/visualizations/chart/legend/DefaultLegendEntry.d.ts +1 -1
- package/dts/visualizations/chart/legend/DefaultLegendEntry.d.ts.map +1 -1
- package/dts/visualizations/chart/legend/DefaultLegendShape.d.ts +1 -1
- package/dts/visualizations/chart/legend/DefaultLegendShape.d.ts.map +1 -1
- package/dts/visualizations/chart/legend/Legend.d.ts +2 -2
- package/dts/visualizations/chart/legend/Legend.d.ts.map +1 -1
- package/dts/visualizations/chart/line/DottedLine.d.ts +1 -1
- package/dts/visualizations/chart/line/DottedLine.d.ts.map +1 -1
- package/dts/visualizations/chart/line/Line.d.ts +4 -3
- package/dts/visualizations/chart/line/Line.d.ts.map +1 -1
- package/dts/visualizations/chart/line/LineChart.d.ts +2 -1
- package/dts/visualizations/chart/line/LineChart.d.ts.map +1 -1
- package/dts/visualizations/chart/line/ReferenceLine.d.ts +2 -2
- package/dts/visualizations/chart/line/ReferenceLine.d.ts.map +1 -1
- package/dts/visualizations/chart/line/SolidLine.d.ts +1 -1
- package/dts/visualizations/chart/line/SolidLine.d.ts.map +1 -1
- package/dts/visualizations/chart/point/DefaultPointLabel.d.ts +1 -1
- package/dts/visualizations/chart/point/DefaultPointLabel.d.ts.map +1 -1
- package/dts/visualizations/chart/point/Point.d.ts +2 -2
- package/dts/visualizations/chart/point/Point.d.ts.map +1 -1
- package/dts/visualizations/chart/scrubber/DefaultScrubberBeacon.d.ts.map +1 -1
- package/dts/visualizations/chart/scrubber/DefaultScrubberBeaconLabel.d.ts +1 -1
- package/dts/visualizations/chart/scrubber/DefaultScrubberBeaconLabel.d.ts.map +1 -1
- package/dts/visualizations/chart/scrubber/Scrubber.d.ts +7 -4
- package/dts/visualizations/chart/scrubber/Scrubber.d.ts.map +1 -1
- package/dts/visualizations/chart/scrubber/ScrubberBeaconGroup.d.ts +1 -1
- package/dts/visualizations/chart/scrubber/ScrubberBeaconGroup.d.ts.map +1 -1
- package/dts/visualizations/chart/scrubber/ScrubberBeaconLabelGroup.d.ts +2 -2
- package/dts/visualizations/chart/scrubber/ScrubberBeaconLabelGroup.d.ts.map +1 -1
- package/dts/visualizations/chart/scrubber/ScrubberProvider.d.ts +1 -1
- package/dts/visualizations/chart/scrubber/ScrubberProvider.d.ts.map +1 -1
- package/dts/visualizations/chart/text/ChartText.d.ts +4 -3
- package/dts/visualizations/chart/text/ChartText.d.ts.map +1 -1
- package/dts/visualizations/chart/utils/axis.d.ts +1 -1
- package/dts/visualizations/chart/utils/axis.d.ts.map +1 -1
- package/dts/visualizations/chart/utils/bar.d.ts +1 -1
- package/dts/visualizations/chart/utils/bar.d.ts.map +1 -1
- package/dts/visualizations/chart/utils/context.d.ts +1 -1
- package/dts/visualizations/chart/utils/context.d.ts.map +1 -1
- package/dts/visualizations/chart/utils/point.d.ts +1 -1
- package/dts/visualizations/chart/utils/point.d.ts.map +1 -1
- package/dts/visualizations/chart/utils/scrubber.d.ts +1 -1
- package/dts/visualizations/chart/utils/scrubber.d.ts.map +1 -1
- package/dts/visualizations/sparkline/Sparkline.d.ts +2 -1
- package/dts/visualizations/sparkline/Sparkline.d.ts.map +1 -1
- package/dts/visualizations/sparkline/generateSparklineWithId.d.ts +1 -1
- package/dts/visualizations/sparkline/generateSparklineWithId.d.ts.map +1 -1
- package/dts/visualizations/sparkline/sparkline-interactive/SparklineInteractive.d.ts +2 -2
- package/dts/visualizations/sparkline/sparkline-interactive/SparklineInteractive.d.ts.map +1 -1
- package/dts/visualizations/sparkline/sparkline-interactive/SparklineInteractivePeriodSelector.d.ts.map +1 -1
- package/dts/visualizations/sparkline/sparkline-interactive/SparklineInteractiveScrubHandler.d.ts +1 -1
- package/dts/visualizations/sparkline/sparkline-interactive/SparklineInteractiveScrubHandler.d.ts.map +1 -1
- package/dts/visualizations/sparkline/sparkline-interactive/SparklineInteractiveTimeseriesPaths.d.ts +1 -1
- package/dts/visualizations/sparkline/sparkline-interactive/SparklineInteractiveTimeseriesPaths.d.ts.map +1 -1
- package/dts/visualizations/sparkline/sparkline-interactive-header/SparklineInteractiveHeader.d.ts +2 -2
- package/dts/visualizations/sparkline/sparkline-interactive-header/SparklineInteractiveHeader.d.ts.map +1 -1
- package/esm/accordion/Accordion.js +2 -1
- package/esm/accordion/AccordionHeader.js +3 -1
- package/esm/accordion/AccordionPanel.js +1 -1
- package/esm/alpha/combobox/DefaultComboboxControl.js +2 -2
- package/esm/alpha/data-card/DataCardLayout.js +4 -2
- package/esm/alpha/select/DefaultSelectDropdown.js +1 -1
- package/esm/alpha/select/DefaultSelectOptionGroup.js +1 -1
- package/esm/alpha/select-chip/SelectChipControl.js +1 -1
- package/esm/alpha/tabbed-chips/TabbedChips.js +3 -2
- package/esm/animation/LottieStatusAnimation.js +4 -0
- package/esm/banner/Banner.js +4 -2
- package/esm/buttons/AvatarButton.js +2 -2
- package/esm/buttons/Button.js +1 -1
- package/esm/buttons/ButtonGroup.js +1 -1
- package/esm/cards/ContentCard/ContentCard.js +1 -1
- package/esm/cards/ContentCard/ContentCardBody.js +2 -1
- package/esm/cards/ContentCard/ContentCardFooter.js +1 -1
- package/esm/cards/ContentCard/ContentCardHeader.js +3 -2
- package/esm/cards/MediaCard/MediaCardLayout.js +1 -1
- package/esm/cards/MessagingCard/MessagingCardLayout.js +2 -1
- package/esm/cards/NudgeCard.js +1 -1
- package/esm/cards/UpsellCard.js +5 -3
- package/esm/carousel/Carousel.js +1 -1
- package/esm/cells/ListCellFallback.js +1 -1
- package/esm/chips/Chip.js +4 -2
- package/esm/chips/SelectChip.js +1 -1
- package/esm/chips/TabbedChips.js +3 -2
- package/esm/coachmark/Coachmark.js +4 -2
- package/esm/controls/Checkbox.js +1 -1
- package/esm/controls/CheckboxCell.js +3 -1
- package/esm/controls/ControlGroup.js +2 -2
- package/esm/controls/NativeInput.js +1 -1
- package/esm/controls/Radio.js +1 -1
- package/esm/controls/RadioCell.js +4 -2
- package/esm/controls/SelectTrigger.js +1 -1
- package/esm/dates/DatePicker.js +2 -1
- package/esm/multi-content-module/MultiContentModule.js +4 -3
- package/esm/navigation/NavigationBar.js +2 -1
- package/esm/navigation/NavigationTitleSelect.js +2 -2
- package/esm/navigation/Sidebar.js +2 -1
- package/esm/navigation/SidebarItem.js +3 -3
- package/esm/navigation/SidebarMoreMenu.js +1 -1
- package/esm/numbers/RollingNumber/DefaultRollingNumberDigit.js +1 -1
- package/esm/overlays/Alert.js +2 -2
- package/esm/overlays/FullscreenAlert.js +2 -2
- package/esm/overlays/handlebar/HandleBar.js +1 -1
- package/esm/overlays/modal/FullscreenModal.js +1 -1
- package/esm/overlays/modal/FullscreenModalHeader.js +3 -2
- package/esm/overlays/modal/Modal.js +1 -1
- package/esm/overlays/modal/ModalWrapper.js +1 -1
- package/esm/overlays/tray/Tray.js +3 -2
- package/esm/section-header/SectionHeader.js +1 -1
- package/esm/stepper/DefaultStepperStepHorizontal.js +2 -1
- package/esm/stepper/DefaultStepperStepVertical.js +2 -1
- package/esm/stepper/DefaultStepperSubstepContainerHorizontal.js +1 -1
- package/esm/stepper/DefaultStepperSubstepContainerVertical.js +1 -1
- package/esm/system/ThemeProvider.js +6 -1
- package/esm/tables/TableCellFallback.js +1 -1
- package/esm/tabs/DefaultTab.js +1 -1
- package/esm/tabs/TabLabel.js +2 -2
- package/esm/themes/coinbaseHighContrastTheme.js +2 -0
- package/esm/themes/coinbaseTheme.js +2 -0
- package/esm/themes/defaultHighContrastTheme.js +2 -0
- package/esm/themes/defaultTheme.js +2 -0
- package/esm/visualizations/ProgressBar.js +2 -1
- package/esm/visualizations/chart/CartesianChart.js +5 -4
- package/esm/visualizations/chart/PeriodSelector.js +5 -4
- package/esm/visualizations/chart/area/Area.js +1 -1
- package/esm/visualizations/chart/area/AreaChart.js +4 -2
- package/esm/visualizations/chart/area/DottedArea.js +2 -2
- package/esm/visualizations/chart/area/GradientArea.js +2 -2
- package/esm/visualizations/chart/area/SolidArea.js +1 -1
- package/esm/visualizations/chart/axis/Axis.js +1 -1
- package/esm/visualizations/chart/axis/DefaultAxisTickLabel.js +1 -1
- package/esm/visualizations/chart/axis/XAxis.js +5 -2
- package/esm/visualizations/chart/axis/YAxis.js +5 -2
- package/esm/visualizations/chart/bar/Bar.js +2 -2
- package/esm/visualizations/chart/bar/BarChart.js +4 -2
- package/esm/visualizations/chart/bar/BarPlot.js +2 -1
- package/esm/visualizations/chart/bar/DefaultBar.js +3 -1
- package/esm/visualizations/chart/bar/DefaultBarStack.js +3 -2
- package/esm/visualizations/chart/gradient/Gradient.js +1 -1
- package/esm/visualizations/chart/legend/DefaultLegendEntry.js +3 -3
- package/esm/visualizations/chart/legend/DefaultLegendShape.js +2 -2
- package/esm/visualizations/chart/legend/Legend.js +1 -1
- package/esm/visualizations/chart/line/DefaultReferenceLineLabel.js +2 -2
- package/esm/visualizations/chart/line/DottedLine.js +1 -1
- package/esm/visualizations/chart/line/Line.js +4 -2
- package/esm/visualizations/chart/line/ReferenceLine.js +2 -2
- package/esm/visualizations/chart/line/SolidLine.js +1 -1
- package/esm/visualizations/chart/point/DefaultPointLabel.js +1 -1
- package/esm/visualizations/chart/point/Point.js +3 -2
- package/esm/visualizations/chart/scrubber/DefaultScrubberBeacon.js +2 -1
- package/esm/visualizations/chart/scrubber/DefaultScrubberBeaconLabel.js +1 -1
- package/esm/visualizations/chart/scrubber/DefaultScrubberLabel.js +1 -1
- package/esm/visualizations/chart/scrubber/Scrubber.js +4 -2
- package/esm/visualizations/chart/scrubber/ScrubberBeaconGroup.js +2 -1
- package/esm/visualizations/chart/scrubber/ScrubberBeaconLabelGroup.js +3 -1
- package/esm/visualizations/chart/scrubber/ScrubberProvider.js +2 -1
- package/esm/visualizations/chart/text/ChartText.js +4 -4
- package/esm/visualizations/sparkline/sparkline-interactive/SparklineInteractive.js +6 -3
- package/esm/visualizations/sparkline/sparkline-interactive/SparklineInteractiveHoverDate.js +1 -1
- package/esm/visualizations/sparkline/sparkline-interactive/SparklineInteractiveHoverPrice.js +1 -1
- package/esm/visualizations/sparkline/sparkline-interactive/SparklineInteractiveLineVertical.js +1 -1
- package/esm/visualizations/sparkline/sparkline-interactive/SparklineInteractiveMarkerDates.js +1 -1
- package/esm/visualizations/sparkline/sparkline-interactive/SparklineInteractivePeriodSelector.js +2 -1
- package/esm/visualizations/sparkline/sparkline-interactive/SparklineInteractiveScrubHandler.js +1 -1
- package/esm/visualizations/sparkline/sparkline-interactive-header/SparklineInteractiveHeader.js +1 -1
- package/package.json +3 -3
|
@@ -580,6 +580,7 @@ export const coinbaseTheme = {
|
|
|
580
580
|
gray: "rgb(".concat(lightSpectrum.gray20, ")"),
|
|
581
581
|
gray2: "rgb(10, 11, 15)",
|
|
582
582
|
gray3: "rgb(206, 210, 220)",
|
|
583
|
+
gray4: "rgb(200, 203, 210)",
|
|
583
584
|
positive: "rgb(".concat(lightSpectrum.green30, ")"),
|
|
584
585
|
negative: "rgb(".concat(lightSpectrum.red50, ")"),
|
|
585
586
|
accent1: "rgb(255, 210, 0)",
|
|
@@ -596,6 +597,7 @@ export const coinbaseTheme = {
|
|
|
596
597
|
gray: "rgb(".concat(darkSpectrum.gray30, ")"),
|
|
597
598
|
gray2: "rgb(".concat(darkSpectrum.gray30, ")"),
|
|
598
599
|
gray3: "rgb(".concat(darkSpectrum.gray100, ")"),
|
|
600
|
+
gray4: "rgb(".concat(darkSpectrum.gray100, ")"),
|
|
599
601
|
positive: "rgb(".concat(darkSpectrum.green70, ")"),
|
|
600
602
|
negative: "rgb(".concat(darkSpectrum.red60, ")"),
|
|
601
603
|
accent1: "rgb(236, 208, 105)",
|
|
@@ -576,6 +576,7 @@ export const defaultHighContrastTheme = {
|
|
|
576
576
|
gray: "rgb(".concat(lightSpectrum.gray20, ")"),
|
|
577
577
|
gray2: "rgb(10, 11, 15)",
|
|
578
578
|
gray3: "rgb(206, 210, 220)",
|
|
579
|
+
gray4: "rgb(200, 203, 210)",
|
|
579
580
|
positive: "rgb(".concat(lightSpectrum.green30, ")"),
|
|
580
581
|
negative: "rgb(".concat(lightSpectrum.red50, ")"),
|
|
581
582
|
accent1: "rgb(255, 210, 0)",
|
|
@@ -592,6 +593,7 @@ export const defaultHighContrastTheme = {
|
|
|
592
593
|
gray: "rgb(".concat(darkSpectrum.gray30, ")"),
|
|
593
594
|
gray2: "rgb(".concat(darkSpectrum.gray30, ")"),
|
|
594
595
|
gray3: "rgb(".concat(darkSpectrum.gray100, ")"),
|
|
596
|
+
gray4: "rgb(".concat(darkSpectrum.gray100, ")"),
|
|
595
597
|
positive: "rgb(".concat(darkSpectrum.green70, ")"),
|
|
596
598
|
negative: "rgb(".concat(darkSpectrum.red60, ")"),
|
|
597
599
|
accent1: "rgb(236, 208, 105)",
|
|
@@ -402,6 +402,7 @@ export const defaultTheme = {
|
|
|
402
402
|
gray: "rgb(".concat(lightSpectrum.gray20, ")"),
|
|
403
403
|
gray2: "rgb(10, 11, 15)",
|
|
404
404
|
gray3: "rgb(206, 210, 220)",
|
|
405
|
+
gray4: "rgb(200, 203, 210)",
|
|
405
406
|
positive: "rgb(".concat(lightSpectrum.green30, ")"),
|
|
406
407
|
negative: "rgb(".concat(lightSpectrum.red50, ")"),
|
|
407
408
|
accent1: "rgb(255, 210, 0)",
|
|
@@ -418,6 +419,7 @@ export const defaultTheme = {
|
|
|
418
419
|
gray: "rgb(".concat(darkSpectrum.gray30, ")"),
|
|
419
420
|
gray2: "rgb(".concat(darkSpectrum.gray30, ")"),
|
|
420
421
|
gray3: "rgb(".concat(darkSpectrum.gray100, ")"),
|
|
422
|
+
gray4: "rgb(".concat(darkSpectrum.gray100, ")"),
|
|
421
423
|
positive: "rgb(".concat(darkSpectrum.green70, ")"),
|
|
422
424
|
negative: "rgb(".concat(darkSpectrum.red60, ")"),
|
|
423
425
|
accent1: "rgb(236, 208, 105)",
|
|
@@ -9,7 +9,8 @@ import { getProgressSize } from '@coinbase/cds-common/visualizations/getProgress
|
|
|
9
9
|
import { m as motion } from 'framer-motion';
|
|
10
10
|
import { cx } from '../cx';
|
|
11
11
|
import { useComponentConfig } from '../hooks/useComponentConfig';
|
|
12
|
-
import { Box
|
|
12
|
+
import { Box } from '../layout/Box';
|
|
13
|
+
import { HStack } from '../layout/HStack';
|
|
13
14
|
import { useMotionProps } from '../motion/useMotionProps';
|
|
14
15
|
import { isRtl } from '../utils/isRtl';
|
|
15
16
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -7,13 +7,14 @@ 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, useCallback, useMemo, useRef } from 'react';
|
|
10
|
+
import { cx } from '../../cx';
|
|
10
11
|
import { useDimensions } from '../../hooks/useDimensions';
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
12
|
+
import { Box } from '../../layout/Box';
|
|
13
|
+
import { Legend } from './legend/Legend';
|
|
13
14
|
import { ScrubberProvider } from './scrubber/ScrubberProvider';
|
|
15
|
+
import { defaultAxisId, getAxisConfig, getAxisRange, getCartesianAxisDomain, getCartesianAxisScale, useTotalAxisPadding } from './utils/axis';
|
|
16
|
+
import { defaultHorizontalLayoutChartInset, defaultVerticalLayoutChartInset, getChartInset, getStackedSeriesData as calculateStackedSeriesData } from './utils/chart';
|
|
14
17
|
import { CartesianChartProvider } from './ChartProvider';
|
|
15
|
-
import { Legend } from './legend';
|
|
16
|
-
import { defaultAxisId, defaultHorizontalLayoutChartInset, defaultVerticalLayoutChartInset, getAxisConfig, getAxisRange, getCartesianAxisDomain, getCartesianAxisScale, getChartInset, getStackedSeriesData as calculateStackedSeriesData, useTotalAxisPadding } from './utils';
|
|
17
18
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
18
19
|
const focusStylesCss = "focusStylesCss-fm8hd7g";
|
|
19
20
|
export const CartesianChart = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref, ref) => {
|
|
@@ -10,11 +10,12 @@ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i
|
|
|
10
10
|
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; }
|
|
11
11
|
import React, { forwardRef, memo, useMemo } from 'react';
|
|
12
12
|
import { m as motion } from 'framer-motion';
|
|
13
|
-
import { cx } from '../../
|
|
14
|
-
import { Box } from '../../layout';
|
|
15
|
-
import { SegmentedTabs, tabsTransitionConfig } from '../../tabs';
|
|
13
|
+
import { cx } from '../../cx';
|
|
14
|
+
import { Box } from '../../layout/Box';
|
|
16
15
|
import { SegmentedTab } from '../../tabs/SegmentedTab';
|
|
17
|
-
import {
|
|
16
|
+
import { SegmentedTabs } from '../../tabs/SegmentedTabs';
|
|
17
|
+
import { tabsTransitionConfig } from '../../tabs/Tabs';
|
|
18
|
+
import { Text } from '../../typography/Text';
|
|
18
19
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
19
20
|
const MotionBox = motion(Box);
|
|
20
21
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { memo, useMemo } from 'react';
|
|
2
2
|
import { useCartesianChartContext } from '../ChartProvider';
|
|
3
|
-
import { getAreaPath } from '../utils';
|
|
3
|
+
import { getAreaPath } from '../utils/path';
|
|
4
4
|
import { DottedArea } from './DottedArea';
|
|
5
5
|
import { GradientArea } from './GradientArea';
|
|
6
6
|
import { SolidArea } from './SolidArea';
|
|
@@ -11,10 +11,12 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
|
|
|
11
11
|
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; }
|
|
12
12
|
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; }
|
|
13
13
|
import { forwardRef, memo, useMemo } from 'react';
|
|
14
|
-
import { XAxis
|
|
14
|
+
import { XAxis } from '../axis/XAxis';
|
|
15
|
+
import { YAxis } from '../axis/YAxis';
|
|
15
16
|
import { CartesianChart } from '../CartesianChart';
|
|
16
17
|
import { Line } from '../line/Line';
|
|
17
|
-
import {
|
|
18
|
+
import { withBaselineDomain } from '../utils/axis';
|
|
19
|
+
import { defaultStackId } from '../utils/chart';
|
|
18
20
|
import { Area } from './Area';
|
|
19
21
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
20
22
|
export const AreaChart = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref, ref) => {
|
|
@@ -8,9 +8,9 @@ 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 { memo, useId, useMemo } from 'react';
|
|
10
10
|
import { useCartesianChartContext } from '../ChartProvider';
|
|
11
|
-
import { Gradient } from '../gradient';
|
|
11
|
+
import { Gradient } from '../gradient/Gradient';
|
|
12
12
|
import { Path } from '../Path';
|
|
13
|
-
import { createGradient, getBaseline } from '../utils';
|
|
13
|
+
import { createGradient, getBaseline } from '../utils/gradient';
|
|
14
14
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
15
|
/**
|
|
16
16
|
* A customizable dotted area gradient component.
|
|
@@ -8,9 +8,9 @@ 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 { memo, useId, useMemo } from 'react';
|
|
10
10
|
import { useCartesianChartContext } from '../ChartProvider';
|
|
11
|
-
import { Gradient } from '../gradient';
|
|
11
|
+
import { Gradient } from '../gradient/Gradient';
|
|
12
12
|
import { Path } from '../Path';
|
|
13
|
-
import { createGradient, getBaseline } from '../utils';
|
|
13
|
+
import { createGradient, getBaseline } from '../utils/gradient';
|
|
14
14
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
15
|
/**
|
|
16
16
|
* A customizable gradient area component which uses Path with SVG linearGradient.
|
|
@@ -7,7 +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 { memo, useId } from 'react';
|
|
10
|
-
import { Gradient } from '../gradient';
|
|
10
|
+
import { Gradient } from '../gradient/Gradient';
|
|
11
11
|
import { Path } from '../Path';
|
|
12
12
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { accessoryFadeTransitionDuration } from '../utils';
|
|
1
|
+
import { accessoryFadeTransitionDuration } from '../utils/transition';
|
|
2
2
|
export const axisLineStyles = "\n stroke: var(--color-fg);\n stroke-linecap: square;\n stroke-width: 1px;\n";
|
|
3
3
|
export const axisTickMarkStyles = "\n stroke: var(--color-fg);\n stroke-linecap: square;\n stroke-width: 1px;\n";
|
|
4
4
|
|
|
@@ -4,7 +4,7 @@ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object
|
|
|
4
4
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
5
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
6
|
import { memo } from 'react';
|
|
7
|
-
import { ChartText } from '../text';
|
|
7
|
+
import { ChartText } from '../text/ChartText';
|
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
9
|
/**
|
|
10
10
|
* DefaultAxisTickLabel is the default label component for axis tick labels.
|
|
@@ -8,13 +8,16 @@ 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 { memo, useCallback, useEffect, useId, useMemo } from 'react';
|
|
10
10
|
import { m as motion } from 'framer-motion';
|
|
11
|
-
import { cx } from '../../../
|
|
11
|
+
import { cx } from '../../../cx';
|
|
12
12
|
import { useCartesianChartContext } from '../ChartProvider';
|
|
13
13
|
import { DottedLine } from '../line/DottedLine';
|
|
14
14
|
import { SolidLine } from '../line/SolidLine';
|
|
15
15
|
import { ChartText } from '../text/ChartText';
|
|
16
16
|
import { ChartTextGroup } from '../text/ChartTextGroup';
|
|
17
|
-
import { getAxisTicksData,
|
|
17
|
+
import { getAxisTicksData, toPointAnchor } from '../utils/axis';
|
|
18
|
+
import { lineToPath } from '../utils/path';
|
|
19
|
+
import { getPointOnScale } from '../utils/point';
|
|
20
|
+
import { isCategoricalScale } from '../utils/scale';
|
|
18
21
|
import { axisLineStyles, axisTickMarkStyles, axisUpdateAnimationTransition } from './Axis';
|
|
19
22
|
import { DefaultAxisTickLabel } from './DefaultAxisTickLabel';
|
|
20
23
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -8,13 +8,16 @@ 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 { memo, useCallback, useEffect, useId, useMemo } from 'react';
|
|
10
10
|
import { m as motion } from 'framer-motion';
|
|
11
|
-
import { cx } from '../../../
|
|
11
|
+
import { cx } from '../../../cx';
|
|
12
12
|
import { useCartesianChartContext } from '../ChartProvider';
|
|
13
13
|
import { DottedLine } from '../line/DottedLine';
|
|
14
14
|
import { SolidLine } from '../line/SolidLine';
|
|
15
15
|
import { ChartText } from '../text/ChartText';
|
|
16
16
|
import { ChartTextGroup } from '../text/ChartTextGroup';
|
|
17
|
-
import { getAxisTicksData,
|
|
17
|
+
import { getAxisTicksData, toPointAnchor } from '../utils/axis';
|
|
18
|
+
import { lineToPath } from '../utils/path';
|
|
19
|
+
import { getPointOnScale } from '../utils/point';
|
|
20
|
+
import { isCategoricalScale } from '../utils/scale';
|
|
18
21
|
import { axisLineStyles, axisTickMarkStyles, axisUpdateAnimationTransition } from './Axis';
|
|
19
22
|
import { DefaultAxisTickLabel } from './DefaultAxisTickLabel';
|
|
20
23
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { memo, useMemo } from 'react';
|
|
2
2
|
import { useCartesianChartContext } from '../ChartProvider';
|
|
3
|
-
import { getBarPath } from '../utils';
|
|
4
|
-
import { DefaultBar } from './';
|
|
3
|
+
import { getBarPath } from '../utils/path';
|
|
4
|
+
import { DefaultBar } from './DefaultBar';
|
|
5
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
6
|
/**
|
|
7
7
|
* Simple bar component that renders a single bar at the specified position.
|
|
@@ -9,9 +9,11 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
|
|
|
9
9
|
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; }
|
|
10
10
|
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; }
|
|
11
11
|
import { forwardRef, memo, useMemo } from 'react';
|
|
12
|
-
import { XAxis
|
|
12
|
+
import { XAxis } from '../axis/XAxis';
|
|
13
|
+
import { YAxis } from '../axis/YAxis';
|
|
13
14
|
import { CartesianChart } from '../CartesianChart';
|
|
14
|
-
import {
|
|
15
|
+
import { withBaselineDomain } from '../utils/axis';
|
|
16
|
+
import { defaultStackId } from '../utils/chart';
|
|
15
17
|
import { BarPlot } from './BarPlot';
|
|
16
18
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
19
|
export const BarChart = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref, ref) => {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { memo, useId, useMemo } from 'react';
|
|
2
2
|
import { m as motion } from 'framer-motion';
|
|
3
3
|
import { useCartesianChartContext } from '../ChartProvider';
|
|
4
|
-
import { getStackGroups
|
|
4
|
+
import { getStackGroups } from '../utils/bar';
|
|
5
|
+
import { instantTransition } from '../utils/transition';
|
|
5
6
|
import { BarStackGroup } from './BarStackGroup';
|
|
6
7
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
8
|
/**
|
|
@@ -9,8 +9,10 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
|
|
|
9
9
|
import React, { memo, useMemo } from 'react';
|
|
10
10
|
import { useCartesianChartContext } from '../ChartProvider';
|
|
11
11
|
import { Path } from '../Path';
|
|
12
|
-
import { defaultBarEnterOpacityTransition, defaultBarEnterTransition,
|
|
12
|
+
import { defaultBarEnterOpacityTransition, defaultBarEnterTransition, withStaggerDelayTransition } from '../utils/bar';
|
|
13
13
|
import { getNormalizedStagger } from '../utils/bar';
|
|
14
|
+
import { getBarPath } from '../utils/path';
|
|
15
|
+
import { defaultTransition, getTransition } from '../utils/transition';
|
|
14
16
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
17
|
/**
|
|
16
18
|
* Default bar component that renders a solid bar with animation.
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { memo, useId, useMemo } from 'react';
|
|
2
2
|
import { m as motion } from 'framer-motion';
|
|
3
3
|
import { useCartesianChartContext } from '../ChartProvider';
|
|
4
|
-
import { defaultBarEnterTransition,
|
|
5
|
-
import {
|
|
4
|
+
import { defaultBarEnterTransition, getNormalizedStagger, getStackInitialClipRect, withStaggerDelayTransition } from '../utils/bar';
|
|
5
|
+
import { getBarPath } from '../utils/path';
|
|
6
|
+
import { defaultTransition, getTransition, usePathTransition } from '../utils/transition';
|
|
6
7
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
8
|
/**
|
|
8
9
|
* Default stack component that renders children in a group with animated clip path.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { memo, useMemo } from 'react';
|
|
2
2
|
import { m as motion } from 'framer-motion';
|
|
3
3
|
import { useCartesianChartContext } from '../ChartProvider';
|
|
4
|
-
import { defaultTransition, instantTransition } from '../utils';
|
|
5
4
|
import { getGradientAxis, getGradientConfig } from '../utils/gradient';
|
|
5
|
+
import { defaultTransition, instantTransition } from '../utils/transition';
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
7
|
/**
|
|
8
8
|
* Renders an SVG linearGradient element based on a GradientDefinition.
|
|
@@ -7,9 +7,9 @@ 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 { memo } from 'react';
|
|
10
|
-
import { cx } from '../../../
|
|
11
|
-
import { HStack } from '../../../layout';
|
|
12
|
-
import { Text } from '../../../typography';
|
|
10
|
+
import { cx } from '../../../cx';
|
|
11
|
+
import { HStack } from '../../../layout/HStack';
|
|
12
|
+
import { Text } from '../../../typography/Text';
|
|
13
13
|
import { DefaultLegendShape } from './DefaultLegendShape';
|
|
14
14
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
15
|
const legendEntryCss = "legendEntryCss-l1593xwx";
|
|
@@ -7,8 +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 } from 'react';
|
|
10
|
-
import { cx } from '../../../
|
|
11
|
-
import { Box } from '../../../layout';
|
|
10
|
+
import { cx } from '../../../cx';
|
|
11
|
+
import { Box } from '../../../layout/Box';
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
const containerCss = "containerCss-c4vlres";
|
|
14
14
|
const pillCss = "pillCss-p19f3sqs";
|
|
@@ -7,7 +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 { forwardRef, memo, useMemo } from 'react';
|
|
10
|
-
import { Box } from '../../../layout';
|
|
10
|
+
import { Box } from '../../../layout/Box';
|
|
11
11
|
import { useCartesianChartContext } from '../ChartProvider';
|
|
12
12
|
import { DefaultLegendEntry } from './DefaultLegendEntry';
|
|
13
13
|
import { DefaultLegendShape } from './DefaultLegendShape';
|
|
@@ -8,8 +8,8 @@ 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 { memo, useMemo } from 'react';
|
|
10
10
|
import { useCartesianChartContext } from '../ChartProvider';
|
|
11
|
-
import { ChartText } from '../text';
|
|
12
|
-
import { getChartInset } from '../utils';
|
|
11
|
+
import { ChartText } from '../text/ChartText';
|
|
12
|
+
import { getChartInset } from '../utils/chart';
|
|
13
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
14
|
const elevatedInset = {
|
|
15
15
|
top: 8,
|
|
@@ -7,7 +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 { memo, useId } from 'react';
|
|
10
|
-
import { Gradient } from '../gradient';
|
|
10
|
+
import { Gradient } from '../gradient/Gradient';
|
|
11
11
|
import { Path } from '../Path';
|
|
12
12
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
/**
|
|
@@ -9,8 +9,10 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
|
|
|
9
9
|
import React, { memo, useMemo } from 'react';
|
|
10
10
|
import { Area } from '../area/Area';
|
|
11
11
|
import { useCartesianChartContext } from '../ChartProvider';
|
|
12
|
-
import { Point } from '../point';
|
|
13
|
-
import {
|
|
12
|
+
import { Point } from '../point/Point';
|
|
13
|
+
import { getLineData } from '../utils/chart';
|
|
14
|
+
import { evaluateGradientAtValue, getGradientAxis, getGradientConfig } from '../utils/gradient';
|
|
15
|
+
import { getLinePath } from '../utils/path';
|
|
14
16
|
import { DottedLine } from './DottedLine';
|
|
15
17
|
import { SolidLine } from './SolidLine';
|
|
16
18
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -4,9 +4,9 @@ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object
|
|
|
4
4
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
5
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
6
|
import React, { memo } from 'react';
|
|
7
|
-
import { cx } from '../../../
|
|
7
|
+
import { cx } from '../../../cx';
|
|
8
8
|
import { useCartesianChartContext } from '../ChartProvider';
|
|
9
|
-
import { getPointOnScale } from '../utils';
|
|
9
|
+
import { getPointOnScale } from '../utils/point';
|
|
10
10
|
import { DefaultReferenceLineLabel } from './DefaultReferenceLineLabel';
|
|
11
11
|
import { DottedLine } from './DottedLine';
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -7,7 +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 { memo, useId } from 'react';
|
|
10
|
-
import { Gradient } from '../gradient';
|
|
10
|
+
import { Gradient } from '../gradient/Gradient';
|
|
11
11
|
import { Path } from '../Path';
|
|
12
12
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
/**
|
|
@@ -7,7 +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 { memo, useMemo } from 'react';
|
|
10
|
-
import { ChartText } from '../text';
|
|
10
|
+
import { ChartText } from '../text/ChartText';
|
|
11
11
|
import { getAlignmentFromPosition, getLabelCoordinates } from '../utils/point';
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
/**
|
|
@@ -8,9 +8,10 @@ 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, { memo, useMemo } from 'react';
|
|
10
10
|
import { m as motion } from 'framer-motion';
|
|
11
|
-
import { cx } from '../../../
|
|
11
|
+
import { cx } from '../../../cx';
|
|
12
12
|
import { useCartesianChartContext } from '../ChartProvider';
|
|
13
|
-
import {
|
|
13
|
+
import { projectPoint } from '../utils/point';
|
|
14
|
+
import { defaultAccessoryEnterTransition, defaultTransition, getTransition } from '../utils/transition';
|
|
14
15
|
import { DefaultPointLabel } from './DefaultPointLabel';
|
|
15
16
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
17
|
const containerCss = "containerCss-c1av2uu0";
|
|
@@ -7,7 +7,8 @@ import { forwardRef, memo, useImperativeHandle, useMemo } from 'react';
|
|
|
7
7
|
import { usePreviousValue } from '@coinbase/cds-common/hooks/usePreviousValue';
|
|
8
8
|
import { m as motion, useAnimate } from 'framer-motion';
|
|
9
9
|
import { useCartesianChartContext } from '../ChartProvider';
|
|
10
|
-
import {
|
|
10
|
+
import { projectPoint } from '../utils/point';
|
|
11
|
+
import { defaultTransition, getTransition, instantTransition } from '../utils/transition';
|
|
11
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
13
|
const defaultRadius = 5;
|
|
13
14
|
const defaultStrokeWidth = 2;
|
|
@@ -8,7 +8,7 @@ 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 { memo } from 'react';
|
|
10
10
|
import { m as motion } from 'framer-motion';
|
|
11
|
-
import { ChartText } from '../text';
|
|
11
|
+
import { ChartText } from '../text/ChartText';
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
const labelVerticalInset = 3.5;
|
|
14
14
|
const labelHorizontalInset = 4;
|
|
@@ -8,7 +8,7 @@ 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 { memo, useMemo } from 'react';
|
|
10
10
|
import { useCartesianChartContext } from '../ChartProvider';
|
|
11
|
-
import { DefaultReferenceLineLabel } from '../line';
|
|
11
|
+
import { DefaultReferenceLineLabel } from '../line/DefaultReferenceLineLabel';
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
/**
|
|
14
14
|
* DefaultScrubberLabel is the default label component for the scrubber line.
|
|
@@ -6,8 +6,10 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
|
|
|
6
6
|
import React, { forwardRef, memo, useImperativeHandle, useMemo } from 'react';
|
|
7
7
|
import { m as motion } from 'framer-motion';
|
|
8
8
|
import { useCartesianChartContext } from '../ChartProvider';
|
|
9
|
-
import { ReferenceLine } from '../line';
|
|
10
|
-
import {
|
|
9
|
+
import { ReferenceLine } from '../line/ReferenceLine';
|
|
10
|
+
import { useScrubberContext } from '../utils/context';
|
|
11
|
+
import { getPointOnScale } from '../utils/point';
|
|
12
|
+
import { defaultAccessoryEnterTransition, getTransition } from '../utils/transition';
|
|
11
13
|
import { DefaultScrubberBeacon } from './DefaultScrubberBeacon';
|
|
12
14
|
import { DefaultScrubberLabel } from './DefaultScrubberLabel';
|
|
13
15
|
import { ScrubberBeaconGroup } from './ScrubberBeaconGroup';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { forwardRef, memo, useCallback, useImperativeHandle, useMemo } from 'react';
|
|
2
2
|
import { useRefMap } from '@coinbase/cds-common/hooks/useRefMap';
|
|
3
3
|
import { useCartesianChartContext } from '../ChartProvider';
|
|
4
|
-
import {
|
|
4
|
+
import { useScrubberContext } from '../utils/context';
|
|
5
|
+
import { evaluateGradientAtValue, getGradientAxis, getGradientConfig } from '../utils/gradient';
|
|
5
6
|
import { DefaultScrubberBeacon } from './DefaultScrubberBeacon';
|
|
6
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
8
|
// Helper component to calculate beacon data for a specific series
|
|
@@ -6,8 +6,10 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
|
|
|
6
6
|
import { memo, useCallback, useMemo, useState } from 'react';
|
|
7
7
|
import { usePreviousValue } from '@coinbase/cds-common/hooks/usePreviousValue';
|
|
8
8
|
import { useCartesianChartContext } from '../ChartProvider';
|
|
9
|
-
import {
|
|
9
|
+
import { useScrubberContext } from '../utils/context';
|
|
10
|
+
import { getPointOnScale } from '../utils/point';
|
|
10
11
|
import { calculateLabelYPositions, getLabelPosition } from '../utils/scrubber';
|
|
12
|
+
import { defaultTransition, getTransition, instantTransition } from '../utils/transition';
|
|
11
13
|
import { DefaultScrubberBeaconLabel } from './DefaultScrubberBeaconLabel';
|
|
12
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
15
|
const PositionedLabel = /*#__PURE__*/memo(_ref => {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
|
2
2
|
import { useCartesianChartContext } from '../ChartProvider';
|
|
3
|
-
import {
|
|
3
|
+
import { ScrubberContext } from '../utils/context';
|
|
4
|
+
import { isCategoricalScale } from '../utils/scale';
|
|
4
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
6
|
/**
|
|
6
7
|
* A component which encapsulates the ScrubberContext.
|
|
@@ -5,11 +5,11 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
5
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
6
|
import React, { memo, useEffect, useMemo, useRef, useState } from 'react';
|
|
7
7
|
import { m as motion } from 'framer-motion';
|
|
8
|
-
import { cx } from '../../../
|
|
9
|
-
import { Box } from '../../../layout';
|
|
10
|
-
import { Text } from '../../../typography';
|
|
8
|
+
import { cx } from '../../../cx';
|
|
9
|
+
import { Box } from '../../../layout/Box';
|
|
10
|
+
import { Text } from '../../../typography/Text';
|
|
11
11
|
import { useCartesianChartContext } from '../ChartProvider';
|
|
12
|
-
import { getChartInset } from '../utils';
|
|
12
|
+
import { getChartInset } from '../utils/chart';
|
|
13
13
|
import { accessoryFadeTransitionDuration } from '../utils/transition';
|
|
14
14
|
|
|
15
15
|
/**
|
|
@@ -12,15 +12,18 @@ import { chartCompactHeight, chartHeight } from '@coinbase/cds-common/tokens/spa
|
|
|
12
12
|
import { debounce } from '@coinbase/cds-common/utils/debounce';
|
|
13
13
|
import { getAccessibleColor } from '@coinbase/cds-common/utils/getAccessibleColor';
|
|
14
14
|
import { useSparklineCoordinates } from '@coinbase/cds-common/visualizations/useSparklineCoordinates';
|
|
15
|
+
// eslint-disable-next-line internal/no-cds-barrel-imports -- cds-lottie-files subpaths are the deepest available exports
|
|
15
16
|
import { chartFallbackNegative, chartFallbackPositive } from '@coinbase/cds-lottie-files';
|
|
16
17
|
import { emptyArray, isStorybook, noop } from '@coinbase/cds-utils';
|
|
17
18
|
import isEqual from 'lodash/isEqual';
|
|
18
19
|
import isObject from 'lodash/isObject';
|
|
19
|
-
import { Lottie } from '../../../animation';
|
|
20
|
+
import { Lottie } from '../../../animation/Lottie';
|
|
21
|
+
import { cx } from '../../../cx';
|
|
20
22
|
import { useDimensions } from '../../../hooks/useDimensions';
|
|
21
|
-
import {
|
|
22
|
-
import { HStack, VStack } from '../../../layout';
|
|
23
|
+
import { useTheme } from '../../../hooks/useTheme';
|
|
23
24
|
import { Box } from '../../../layout/Box';
|
|
25
|
+
import { HStack } from '../../../layout/HStack';
|
|
26
|
+
import { VStack } from '../../../layout/VStack';
|
|
24
27
|
import { getBrowserGlobals } from '../../../utils/browser';
|
|
25
28
|
import { VisualizationContainer } from '../../VisualizationContainer';
|
|
26
29
|
import { InnerSparklineInteractiveProvider } from './InnerSparklineInteractiveProvider';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { memo, useCallback } from 'react';
|
|
2
|
-
import { cx } from '../../../
|
|
2
|
+
import { cx } from '../../../cx';
|
|
3
3
|
import { Text } from '../../../typography/Text';
|
|
4
4
|
import { useSparklineInteractiveScrubContext } from './SparklineInteractiveScrubProvider';
|
|
5
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
package/esm/visualizations/sparkline/sparkline-interactive/SparklineInteractiveHoverPrice.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { memo, useCallback } from 'react';
|
|
2
|
-
import { cx } from '../../../
|
|
2
|
+
import { cx } from '../../../cx';
|
|
3
3
|
import { Text } from '../../../typography/Text';
|
|
4
4
|
import { useSparklineInteractiveScrubContext } from './SparklineInteractiveScrubProvider';
|
|
5
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
package/esm/visualizations/sparkline/sparkline-interactive/SparklineInteractiveLineVertical.js
CHANGED
|
@@ -5,7 +5,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
5
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
6
|
import React, { memo, useCallback } from 'react';
|
|
7
7
|
import { borderWidth, lineDashArray } from '@coinbase/cds-common/tokens/sparkline';
|
|
8
|
-
import { cx } from '../../../
|
|
8
|
+
import { cx } from '../../../cx';
|
|
9
9
|
import { useSparklineInteractiveContext } from './SparklineInteractiveProvider';
|
|
10
10
|
import { useSparklineInteractiveScrubContext } from './SparklineInteractiveScrubProvider';
|
|
11
11
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
package/esm/visualizations/sparkline/sparkline-interactive/SparklineInteractiveMarkerDates.js
CHANGED
|
@@ -3,7 +3,7 @@ import { fadeDuration } from '@coinbase/cds-common/tokens/sparkline';
|
|
|
3
3
|
import { useDateLookup } from '@coinbase/cds-common/visualizations/useDateLookup';
|
|
4
4
|
import times from 'lodash/times';
|
|
5
5
|
import { cubicBezier } from '../../../animation/convertMotionConfig';
|
|
6
|
-
import { HStack } from '../../../layout';
|
|
6
|
+
import { HStack } from '../../../layout/HStack';
|
|
7
7
|
import { Text } from '../../../typography/Text';
|
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
9
|
const fadeInCss = "fadeInCss-f128m5n3";
|
package/esm/visualizations/sparkline/sparkline-interactive/SparklineInteractivePeriodSelector.js
CHANGED
|
@@ -2,7 +2,8 @@ import React, { memo, useCallback, useMemo } from 'react';
|
|
|
2
2
|
import { periodLabelMap } from '@coinbase/cds-common/tokens/sparkline';
|
|
3
3
|
import { getAccessibleColor } from '@coinbase/cds-common/utils/getAccessibleColor';
|
|
4
4
|
import { useTheme } from '../../../hooks/useTheme';
|
|
5
|
-
import { Box
|
|
5
|
+
import { Box } from '../../../layout/Box';
|
|
6
|
+
import { HStack } from '../../../layout/HStack';
|
|
6
7
|
import { Pressable } from '../../../system/Pressable';
|
|
7
8
|
import { Text } from '../../../typography/Text';
|
|
8
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|