@coinbase/cds-mobile-visualization 3.8.0 → 4.0.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 +14 -0
- package/dts/chart/index.d.ts +1 -15
- package/dts/chart/index.d.ts.map +1 -1
- package/dts/index.d.ts.map +1 -1
- package/dts/sparkline/index.d.ts +1 -5
- package/dts/sparkline/index.d.ts.map +1 -1
- package/esm/chart/index.js +1 -17
- package/esm/index.js +1 -3
- package/esm/sparkline/index.js +1 -5
- package/package.json +26 -20
- package/dts/chart/CartesianChart.d.ts +0 -206
- package/dts/chart/CartesianChart.d.ts.map +0 -1
- package/dts/chart/ChartContextBridge.d.ts +0 -28
- package/dts/chart/ChartContextBridge.d.ts.map +0 -1
- package/dts/chart/ChartProvider.d.ts +0 -9
- package/dts/chart/ChartProvider.d.ts.map +0 -1
- package/dts/chart/Path.d.ts +0 -121
- package/dts/chart/Path.d.ts.map +0 -1
- package/dts/chart/PeriodSelector.d.ts +0 -100
- package/dts/chart/PeriodSelector.d.ts.map +0 -1
- package/dts/chart/area/Area.d.ts +0 -83
- package/dts/chart/area/Area.d.ts.map +0 -1
- package/dts/chart/area/AreaChart.d.ts +0 -155
- package/dts/chart/area/AreaChart.d.ts.map +0 -1
- package/dts/chart/area/DottedArea.d.ts +0 -46
- package/dts/chart/area/DottedArea.d.ts.map +0 -1
- package/dts/chart/area/GradientArea.d.ts +0 -36
- package/dts/chart/area/GradientArea.d.ts.map +0 -1
- package/dts/chart/area/SolidArea.d.ts +0 -23
- package/dts/chart/area/SolidArea.d.ts.map +0 -1
- package/dts/chart/area/index.d.ts +0 -6
- package/dts/chart/area/index.d.ts.map +0 -1
- package/dts/chart/axis/Axis.d.ts +0 -174
- package/dts/chart/axis/Axis.d.ts.map +0 -1
- package/dts/chart/axis/DefaultAxisTickLabel.d.ts +0 -8
- package/dts/chart/axis/DefaultAxisTickLabel.d.ts.map +0 -1
- package/dts/chart/axis/XAxis.d.ts +0 -22
- package/dts/chart/axis/XAxis.d.ts.map +0 -1
- package/dts/chart/axis/YAxis.d.ts +0 -22
- package/dts/chart/axis/YAxis.d.ts.map +0 -1
- package/dts/chart/axis/index.d.ts +0 -5
- package/dts/chart/axis/index.d.ts.map +0 -1
- package/dts/chart/bar/Bar.d.ts +0 -100
- package/dts/chart/bar/Bar.d.ts.map +0 -1
- package/dts/chart/bar/BarChart.d.ts +0 -158
- package/dts/chart/bar/BarChart.d.ts.map +0 -1
- package/dts/chart/bar/BarPlot.d.ts +0 -31
- package/dts/chart/bar/BarPlot.d.ts.map +0 -1
- package/dts/chart/bar/BarStack.d.ts +0 -127
- package/dts/chart/bar/BarStack.d.ts.map +0 -1
- package/dts/chart/bar/BarStackGroup.d.ts +0 -37
- package/dts/chart/bar/BarStackGroup.d.ts.map +0 -1
- package/dts/chart/bar/DefaultBar.d.ts +0 -7
- package/dts/chart/bar/DefaultBar.d.ts.map +0 -1
- package/dts/chart/bar/DefaultBarStack.d.ts +0 -7
- package/dts/chart/bar/DefaultBarStack.d.ts.map +0 -1
- package/dts/chart/bar/PercentageBarChart.d.ts +0 -106
- package/dts/chart/bar/PercentageBarChart.d.ts.map +0 -1
- package/dts/chart/bar/index.d.ts +0 -9
- package/dts/chart/bar/index.d.ts.map +0 -1
- package/dts/chart/gradient/Gradient.d.ts +0 -41
- package/dts/chart/gradient/Gradient.d.ts.map +0 -1
- package/dts/chart/gradient/index.d.ts +0 -2
- package/dts/chart/gradient/index.d.ts.map +0 -1
- package/dts/chart/legend/DefaultLegendEntry.d.ts +0 -5
- package/dts/chart/legend/DefaultLegendEntry.d.ts.map +0 -1
- package/dts/chart/legend/DefaultLegendShape.d.ts +0 -5
- package/dts/chart/legend/DefaultLegendShape.d.ts.map +0 -1
- package/dts/chart/legend/Legend.d.ts +0 -168
- package/dts/chart/legend/Legend.d.ts.map +0 -1
- package/dts/chart/legend/index.d.ts +0 -4
- package/dts/chart/legend/index.d.ts.map +0 -1
- package/dts/chart/line/DefaultReferenceLineLabel.d.ts +0 -9
- package/dts/chart/line/DefaultReferenceLineLabel.d.ts.map +0 -1
- package/dts/chart/line/DottedLine.d.ts +0 -20
- package/dts/chart/line/DottedLine.d.ts.map +0 -1
- package/dts/chart/line/Line.d.ts +0 -122
- package/dts/chart/line/Line.d.ts.map +0 -1
- package/dts/chart/line/LineChart.d.ts +0 -135
- package/dts/chart/line/LineChart.d.ts.map +0 -1
- package/dts/chart/line/ReferenceLine.d.ts +0 -140
- package/dts/chart/line/ReferenceLine.d.ts.map +0 -1
- package/dts/chart/line/SolidLine.d.ts +0 -15
- package/dts/chart/line/SolidLine.d.ts.map +0 -1
- package/dts/chart/line/index.d.ts +0 -7
- package/dts/chart/line/index.d.ts.map +0 -1
- package/dts/chart/point/DefaultPointLabel.d.ts +0 -10
- package/dts/chart/point/DefaultPointLabel.d.ts.map +0 -1
- package/dts/chart/point/Point.d.ts +0 -144
- package/dts/chart/point/Point.d.ts.map +0 -1
- package/dts/chart/point/index.d.ts +0 -3
- package/dts/chart/point/index.d.ts.map +0 -1
- package/dts/chart/scrubber/DefaultScrubberBeacon.d.ts +0 -38
- package/dts/chart/scrubber/DefaultScrubberBeacon.d.ts.map +0 -1
- package/dts/chart/scrubber/DefaultScrubberBeaconLabel.d.ts +0 -12
- package/dts/chart/scrubber/DefaultScrubberBeaconLabel.d.ts.map +0 -1
- package/dts/chart/scrubber/DefaultScrubberLabel.d.ts +0 -12
- package/dts/chart/scrubber/DefaultScrubberLabel.d.ts.map +0 -1
- package/dts/chart/scrubber/Scrubber.d.ts +0 -302
- package/dts/chart/scrubber/Scrubber.d.ts.map +0 -1
- package/dts/chart/scrubber/ScrubberAccessibilityView.d.ts +0 -12
- package/dts/chart/scrubber/ScrubberAccessibilityView.d.ts.map +0 -1
- package/dts/chart/scrubber/ScrubberBeaconGroup.d.ts +0 -54
- package/dts/chart/scrubber/ScrubberBeaconGroup.d.ts.map +0 -1
- package/dts/chart/scrubber/ScrubberBeaconLabelGroup.d.ts +0 -46
- package/dts/chart/scrubber/ScrubberBeaconLabelGroup.d.ts.map +0 -1
- package/dts/chart/scrubber/ScrubberProvider.d.ts +0 -20
- package/dts/chart/scrubber/ScrubberProvider.d.ts.map +0 -1
- package/dts/chart/scrubber/index.d.ts +0 -5
- package/dts/chart/scrubber/index.d.ts.map +0 -1
- package/dts/chart/text/ChartText.d.ts +0 -164
- package/dts/chart/text/ChartText.d.ts.map +0 -1
- package/dts/chart/text/ChartTextGroup.d.ts +0 -61
- package/dts/chart/text/ChartTextGroup.d.ts.map +0 -1
- package/dts/chart/text/index.d.ts +0 -3
- package/dts/chart/text/index.d.ts.map +0 -1
- package/dts/chart/utils/axis.d.ts +0 -387
- package/dts/chart/utils/axis.d.ts.map +0 -1
- package/dts/chart/utils/bar.d.ts +0 -225
- package/dts/chart/utils/bar.d.ts.map +0 -1
- package/dts/chart/utils/chart.d.ts +0 -165
- package/dts/chart/utils/chart.d.ts.map +0 -1
- package/dts/chart/utils/context.d.ts +0 -131
- package/dts/chart/utils/context.d.ts.map +0 -1
- package/dts/chart/utils/gradient.d.ts +0 -129
- package/dts/chart/utils/gradient.d.ts.map +0 -1
- package/dts/chart/utils/index.d.ts +0 -11
- package/dts/chart/utils/index.d.ts.map +0 -1
- package/dts/chart/utils/path.d.ts +0 -186
- package/dts/chart/utils/path.d.ts.map +0 -1
- package/dts/chart/utils/point.d.ts +0 -146
- package/dts/chart/utils/point.d.ts.map +0 -1
- package/dts/chart/utils/scale.d.ts +0 -145
- package/dts/chart/utils/scale.d.ts.map +0 -1
- package/dts/chart/utils/scrubber.d.ts +0 -40
- package/dts/chart/utils/scrubber.d.ts.map +0 -1
- package/dts/chart/utils/transition.d.ts +0 -181
- package/dts/chart/utils/transition.d.ts.map +0 -1
- package/dts/sparkline/Counter.d.ts +0 -8
- package/dts/sparkline/Counter.d.ts.map +0 -1
- package/dts/sparkline/Sparkline.d.ts +0 -74
- package/dts/sparkline/Sparkline.d.ts.map +0 -1
- package/dts/sparkline/SparklineArea.d.ts +0 -15
- package/dts/sparkline/SparklineArea.d.ts.map +0 -1
- package/dts/sparkline/SparklineAreaPattern.d.ts +0 -14
- package/dts/sparkline/SparklineAreaPattern.d.ts.map +0 -1
- package/dts/sparkline/SparklineGradient.d.ts +0 -24
- package/dts/sparkline/SparklineGradient.d.ts.map +0 -1
- package/dts/sparkline/__figma__/Sparkline.figma.d.ts +0 -2
- package/dts/sparkline/__figma__/Sparkline.figma.d.ts.map +0 -1
- package/dts/sparkline/generateSparklineWithId.d.ts +0 -11
- package/dts/sparkline/generateSparklineWithId.d.ts.map +0 -1
- package/dts/sparkline/sparkline-interactive/SparklineAccessibleView.d.ts +0 -23
- package/dts/sparkline/sparkline-interactive/SparklineAccessibleView.d.ts.map +0 -1
- package/dts/sparkline/sparkline-interactive/SparklineInteractive.d.ts +0 -185
- package/dts/sparkline/sparkline-interactive/SparklineInteractive.d.ts.map +0 -1
- package/dts/sparkline/sparkline-interactive/SparklineInteractiveAnimatedPath.d.ts +0 -25
- package/dts/sparkline/sparkline-interactive/SparklineInteractiveAnimatedPath.d.ts.map +0 -1
- package/dts/sparkline/sparkline-interactive/SparklineInteractiveHoverDate.d.ts +0 -28
- package/dts/sparkline/sparkline-interactive/SparklineInteractiveHoverDate.d.ts.map +0 -1
- package/dts/sparkline/sparkline-interactive/SparklineInteractiveLineVertical.d.ts +0 -13
- package/dts/sparkline/sparkline-interactive/SparklineInteractiveLineVertical.d.ts.map +0 -1
- package/dts/sparkline/sparkline-interactive/SparklineInteractiveMarkerDates.d.ts +0 -17
- package/dts/sparkline/sparkline-interactive/SparklineInteractiveMarkerDates.d.ts.map +0 -1
- package/dts/sparkline/sparkline-interactive/SparklineInteractiveMinMax.d.ts +0 -11
- package/dts/sparkline/sparkline-interactive/SparklineInteractiveMinMax.d.ts.map +0 -1
- package/dts/sparkline/sparkline-interactive/SparklineInteractivePanGestureHandler.d.ts +0 -26
- package/dts/sparkline/sparkline-interactive/SparklineInteractivePanGestureHandler.d.ts.map +0 -1
- package/dts/sparkline/sparkline-interactive/SparklineInteractivePaths.d.ts +0 -25
- package/dts/sparkline/sparkline-interactive/SparklineInteractivePaths.d.ts.map +0 -1
- package/dts/sparkline/sparkline-interactive/SparklineInteractivePeriodSelector.d.ts +0 -25
- package/dts/sparkline/sparkline-interactive/SparklineInteractivePeriodSelector.d.ts.map +0 -1
- package/dts/sparkline/sparkline-interactive/SparklineInteractiveProvider.d.ts +0 -39
- package/dts/sparkline/sparkline-interactive/SparklineInteractiveProvider.d.ts.map +0 -1
- package/dts/sparkline/sparkline-interactive/SparklineInteractiveTimeseriesPaths.d.ts +0 -31
- package/dts/sparkline/sparkline-interactive/SparklineInteractiveTimeseriesPaths.d.ts.map +0 -1
- package/dts/sparkline/sparkline-interactive/__figma__/SparklineInteractive.figma.d.ts +0 -2
- package/dts/sparkline/sparkline-interactive/__figma__/SparklineInteractive.figma.d.ts.map +0 -1
- package/dts/sparkline/sparkline-interactive/useInterruptiblePathAnimation.d.ts +0 -13
- package/dts/sparkline/sparkline-interactive/useInterruptiblePathAnimation.d.ts.map +0 -1
- package/dts/sparkline/sparkline-interactive/useMinMaxTransform.d.ts +0 -16
- package/dts/sparkline/sparkline-interactive/useMinMaxTransform.d.ts.map +0 -1
- package/dts/sparkline/sparkline-interactive/useOpacityAnimation.d.ts +0 -6
- package/dts/sparkline/sparkline-interactive/useOpacityAnimation.d.ts.map +0 -1
- package/dts/sparkline/sparkline-interactive/useSparklineInteractiveConstants.d.ts +0 -22
- package/dts/sparkline/sparkline-interactive/useSparklineInteractiveConstants.d.ts.map +0 -1
- package/dts/sparkline/sparkline-interactive/useSparklineInteractiveLineStyles.d.ts +0 -34
- package/dts/sparkline/sparkline-interactive/useSparklineInteractiveLineStyles.d.ts.map +0 -1
- package/dts/sparkline/sparkline-interactive-header/SparklineInteractiveHeader.d.ts +0 -118
- package/dts/sparkline/sparkline-interactive-header/SparklineInteractiveHeader.d.ts.map +0 -1
- package/dts/sparkline/sparkline-interactive-header/__figma__/SparklineInteractiveHeader.figma.d.ts +0 -2
- package/dts/sparkline/sparkline-interactive-header/__figma__/SparklineInteractiveHeader.figma.d.ts.map +0 -1
- package/dts/sparkline/sparkline-interactive-header/useSparklineInteractiveHeaderStyles.d.ts +0 -29
- package/dts/sparkline/sparkline-interactive-header/useSparklineInteractiveHeaderStyles.d.ts.map +0 -1
- package/esm/chart/CartesianChart.js +0 -431
- package/esm/chart/ChartContextBridge.js +0 -159
- package/esm/chart/ChartProvider.js +0 -10
- package/esm/chart/Path.js +0 -255
- package/esm/chart/PeriodSelector.js +0 -139
- package/esm/chart/__stories__/CartesianChart.stories.js +0 -659
- package/esm/chart/__stories__/ChartAccessibility.stories.js +0 -721
- package/esm/chart/__stories__/ChartTransitions.stories.js +0 -693
- package/esm/chart/__stories__/PeriodSelector.stories.js +0 -420
- package/esm/chart/area/Area.js +0 -85
- package/esm/chart/area/AreaChart.js +0 -152
- package/esm/chart/area/DottedArea.js +0 -92
- package/esm/chart/area/GradientArea.js +0 -63
- package/esm/chart/area/SolidArea.js +0 -45
- package/esm/chart/area/__stories__/AreaChart.stories.js +0 -328
- package/esm/chart/area/index.js +0 -7
- package/esm/chart/axis/Axis.js +0 -9
- package/esm/chart/axis/DefaultAxisTickLabel.js +0 -11
- package/esm/chart/axis/XAxis.js +0 -256
- package/esm/chart/axis/YAxis.js +0 -255
- package/esm/chart/axis/__stories__/Axis.stories.js +0 -552
- package/esm/chart/axis/index.js +0 -6
- package/esm/chart/bar/Bar.js +0 -71
- package/esm/chart/bar/BarChart.js +0 -122
- package/esm/chart/bar/BarPlot.js +0 -106
- package/esm/chart/bar/BarStack.js +0 -173
- package/esm/chart/bar/BarStackGroup.js +0 -89
- package/esm/chart/bar/DefaultBar.js +0 -79
- package/esm/chart/bar/DefaultBarStack.js +0 -68
- package/esm/chart/bar/PercentageBarChart.js +0 -99
- package/esm/chart/bar/__stories__/BarChart.stories.js +0 -1417
- package/esm/chart/bar/__stories__/PercentageBarChart.stories.js +0 -833
- package/esm/chart/bar/index.js +0 -10
- package/esm/chart/gradient/Gradient.js +0 -147
- package/esm/chart/gradient/index.js +0 -1
- package/esm/chart/legend/DefaultLegendEntry.js +0 -42
- package/esm/chart/legend/DefaultLegendShape.js +0 -64
- package/esm/chart/legend/Legend.js +0 -59
- package/esm/chart/legend/__stories__/Legend.stories.js +0 -574
- package/esm/chart/legend/index.js +0 -3
- package/esm/chart/line/DefaultReferenceLineLabel.js +0 -66
- package/esm/chart/line/DottedLine.js +0 -57
- package/esm/chart/line/Line.js +0 -180
- package/esm/chart/line/LineChart.js +0 -149
- package/esm/chart/line/ReferenceLine.js +0 -132
- package/esm/chart/line/SolidLine.js +0 -53
- package/esm/chart/line/__stories__/LineChart.stories.js +0 -2018
- package/esm/chart/line/__stories__/ReferenceLine.stories.js +0 -226
- package/esm/chart/line/index.js +0 -8
- package/esm/chart/point/DefaultPointLabel.js +0 -39
- package/esm/chart/point/Point.js +0 -187
- package/esm/chart/point/index.js +0 -2
- package/esm/chart/scrubber/DefaultScrubberBeacon.js +0 -182
- package/esm/chart/scrubber/DefaultScrubberBeaconLabel.js +0 -43
- package/esm/chart/scrubber/DefaultScrubberLabel.js +0 -44
- package/esm/chart/scrubber/Scrubber.js +0 -198
- package/esm/chart/scrubber/ScrubberAccessibilityView.js +0 -177
- package/esm/chart/scrubber/ScrubberBeaconGroup.js +0 -169
- package/esm/chart/scrubber/ScrubberBeaconLabelGroup.js +0 -212
- package/esm/chart/scrubber/ScrubberProvider.js +0 -140
- package/esm/chart/scrubber/__stories__/Scrubber.stories.js +0 -946
- package/esm/chart/scrubber/index.js +0 -4
- package/esm/chart/text/ChartText.js +0 -305
- package/esm/chart/text/ChartTextGroup.js +0 -211
- package/esm/chart/text/index.js +0 -4
- package/esm/chart/utils/axis.js +0 -664
- package/esm/chart/utils/bar.js +0 -906
- package/esm/chart/utils/chart.js +0 -329
- package/esm/chart/utils/context.js +0 -22
- package/esm/chart/utils/gradient.js +0 -319
- package/esm/chart/utils/index.js +0 -12
- package/esm/chart/utils/path.js +0 -304
- package/esm/chart/utils/point.js +0 -282
- package/esm/chart/utils/scale.js +0 -288
- package/esm/chart/utils/scrubber.js +0 -146
- package/esm/chart/utils/transition.js +0 -241
- package/esm/sparkline/Counter.js +0 -45
- package/esm/sparkline/Sparkline.js +0 -165
- package/esm/sparkline/SparklineArea.js +0 -20
- package/esm/sparkline/SparklineAreaPattern.js +0 -38
- package/esm/sparkline/SparklineGradient.js +0 -77
- package/esm/sparkline/__figma__/Sparkline.figma.js +0 -22
- package/esm/sparkline/__stories__/Sparkline.stories.js +0 -124
- package/esm/sparkline/__stories__/SparklineGradient.stories.js +0 -126
- package/esm/sparkline/generateSparklineWithId.js +0 -7
- package/esm/sparkline/sparkline-interactive/SparklineAccessibleView.js +0 -75
- package/esm/sparkline/sparkline-interactive/SparklineInteractive.js +0 -308
- package/esm/sparkline/sparkline-interactive/SparklineInteractiveAnimatedPath.js +0 -116
- package/esm/sparkline/sparkline-interactive/SparklineInteractiveHoverDate.js +0 -131
- package/esm/sparkline/sparkline-interactive/SparklineInteractiveLineVertical.js +0 -99
- package/esm/sparkline/sparkline-interactive/SparklineInteractiveMarkerDates.js +0 -82
- package/esm/sparkline/sparkline-interactive/SparklineInteractiveMinMax.js +0 -103
- package/esm/sparkline/sparkline-interactive/SparklineInteractivePanGestureHandler.js +0 -104
- package/esm/sparkline/sparkline-interactive/SparklineInteractivePaths.js +0 -57
- package/esm/sparkline/sparkline-interactive/SparklineInteractivePeriodSelector.js +0 -124
- package/esm/sparkline/sparkline-interactive/SparklineInteractiveProvider.js +0 -80
- package/esm/sparkline/sparkline-interactive/SparklineInteractiveTimeseriesPaths.js +0 -109
- package/esm/sparkline/sparkline-interactive/__figma__/SparklineInteractive.figma.js +0 -85
- package/esm/sparkline/sparkline-interactive/__stories__/SparklineInteractive.stories.js +0 -526
- package/esm/sparkline/sparkline-interactive/useInterruptiblePathAnimation.js +0 -58
- package/esm/sparkline/sparkline-interactive/useInterruptiblePathAnimation.test.disable.js +0 -37
- package/esm/sparkline/sparkline-interactive/useMinMaxTransform.js +0 -56
- package/esm/sparkline/sparkline-interactive/useOpacityAnimation.js +0 -23
- package/esm/sparkline/sparkline-interactive/useSparklineInteractiveConstants.js +0 -47
- package/esm/sparkline/sparkline-interactive/useSparklineInteractiveLineStyles.js +0 -34
- package/esm/sparkline/sparkline-interactive-header/SparklineInteractiveHeader.js +0 -233
- package/esm/sparkline/sparkline-interactive-header/__figma__/SparklineInteractiveHeader.figma.js +0 -104
- package/esm/sparkline/sparkline-interactive-header/__stories__/SparklineInteractiveHeader.stories.js +0 -565
- package/esm/sparkline/sparkline-interactive-header/useSparklineInteractiveHeaderStyles.js +0 -117
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,20 @@ All notable changes to this project will be documented in this file.
|
|
|
8
8
|
|
|
9
9
|
<!-- template-start -->
|
|
10
10
|
|
|
11
|
+
## 4.0.0 (5/20/2026 PST)
|
|
12
|
+
|
|
13
|
+
- **DEPRECATED** This package has been deprecated. Please import all visualization/chat components from the cds-mobile package.
|
|
14
|
+
|
|
15
|
+
#### 💥 Breaking
|
|
16
|
+
|
|
17
|
+
- Visualization/chart components have been migrated to cds-mobile and re-exported for backwards compatibility. As a result, deep import paths will not resolve correctly on this version. Please import from the barrel file modules instead or migrate to the same components in cds-mobile.
|
|
18
|
+
|
|
19
|
+
## 3.8.1 (5/18/2026 PST)
|
|
20
|
+
|
|
21
|
+
#### 🐞 Fixes
|
|
22
|
+
|
|
23
|
+
- Fix(CDS-2065): keep Gradient colors in sync with positions on stop count changes. [[#3455](https://github.com/coinbase/cds/pull/3455)]
|
|
24
|
+
|
|
11
25
|
## 3.8.0 (5/8/2026 PST)
|
|
12
26
|
|
|
13
27
|
#### 🚀 Updates
|
package/dts/chart/index.d.ts
CHANGED
|
@@ -1,16 +1,2 @@
|
|
|
1
|
-
export * from '
|
|
2
|
-
export * from './axis';
|
|
3
|
-
export * from './bar';
|
|
4
|
-
export * from './CartesianChart';
|
|
5
|
-
export * from './ChartContextBridge';
|
|
6
|
-
export * from './ChartProvider';
|
|
7
|
-
export * from './gradient';
|
|
8
|
-
export * from './legend';
|
|
9
|
-
export * from './line';
|
|
10
|
-
export * from './Path';
|
|
11
|
-
export * from './PeriodSelector';
|
|
12
|
-
export * from './point';
|
|
13
|
-
export * from './scrubber';
|
|
14
|
-
export * from './text';
|
|
15
|
-
export * from './utils';
|
|
1
|
+
export * from '@coinbase/cds-mobile/visualizations/chart';
|
|
16
2
|
//# sourceMappingURL=index.d.ts.map
|
package/dts/chart/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/chart/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/chart/index.ts"],"names":[],"mappings":"AAAA,cAAc,2CAA2C,CAAC"}
|
package/dts/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC"}
|
package/dts/sparkline/index.d.ts
CHANGED
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
export * from '
|
|
2
|
-
export * from './sparkline-interactive/SparklineInteractive';
|
|
3
|
-
export * from './sparkline-interactive-header/SparklineInteractiveHeader';
|
|
4
|
-
export * from './SparklineArea';
|
|
5
|
-
export * from './SparklineGradient';
|
|
1
|
+
export * from '@coinbase/cds-mobile/visualizations/sparkline';
|
|
6
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sparkline/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sparkline/index.ts"],"names":[],"mappings":"AAAA,cAAc,+CAA+C,CAAC"}
|
package/esm/chart/index.js
CHANGED
|
@@ -1,17 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export * from './area';
|
|
3
|
-
export * from './axis';
|
|
4
|
-
export * from './bar';
|
|
5
|
-
export * from './CartesianChart';
|
|
6
|
-
export * from './ChartContextBridge';
|
|
7
|
-
export * from './ChartProvider';
|
|
8
|
-
export * from './gradient';
|
|
9
|
-
export * from './legend';
|
|
10
|
-
export * from './line';
|
|
11
|
-
export * from './Path';
|
|
12
|
-
export * from './PeriodSelector';
|
|
13
|
-
export * from './point';
|
|
14
|
-
export * from './scrubber';
|
|
15
|
-
export * from './text';
|
|
16
|
-
export * from './utils';
|
|
17
|
-
// codegen:end
|
|
1
|
+
export * from '@coinbase/cds-mobile/visualizations/chart';
|
package/esm/index.js
CHANGED
package/esm/sparkline/index.js
CHANGED
|
@@ -1,5 +1 @@
|
|
|
1
|
-
export * from '
|
|
2
|
-
export * from './sparkline-interactive/SparklineInteractive';
|
|
3
|
-
export * from './sparkline-interactive-header/SparklineInteractiveHeader';
|
|
4
|
-
export * from './SparklineArea';
|
|
5
|
-
export * from './SparklineGradient';
|
|
1
|
+
export * from '@coinbase/cds-mobile/visualizations/sparkline';
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coinbase/cds-mobile-visualization",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "Coinbase Design System - Mobile Visualization Native",
|
|
5
|
+
"deprecated": "Use @coinbase/cds-mobile/visualizations/chart and @coinbase/cds-mobile/visualizations/sparkline instead.",
|
|
5
6
|
"repository": {
|
|
6
7
|
"type": "git",
|
|
7
8
|
"url": "git@github.com:coinbase/cds.git",
|
|
@@ -36,17 +37,18 @@
|
|
|
36
37
|
"CHANGELOG"
|
|
37
38
|
],
|
|
38
39
|
"peerDependencies": {
|
|
39
|
-
"@coinbase/cds-common": "^
|
|
40
|
+
"@coinbase/cds-common": "^9.0.0",
|
|
40
41
|
"@coinbase/cds-lottie-files": "^3.3.4",
|
|
41
|
-
"@coinbase/cds-mobile": "^
|
|
42
|
+
"@coinbase/cds-mobile": "^9.0.0",
|
|
42
43
|
"@coinbase/cds-utils": "^2.3.5",
|
|
43
|
-
"@shopify/react-native-skia": "
|
|
44
|
-
"react": "
|
|
45
|
-
"react-native": "
|
|
46
|
-
"react-native-gesture-handler": "
|
|
47
|
-
"react-native-reanimated": "
|
|
48
|
-
"react-native-safe-area-context": "
|
|
49
|
-
"react-native-svg": "
|
|
44
|
+
"@shopify/react-native-skia": "2.2.12",
|
|
45
|
+
"react": "~19.1.2",
|
|
46
|
+
"react-native": "~0.81.5",
|
|
47
|
+
"react-native-gesture-handler": "2.28.0",
|
|
48
|
+
"react-native-reanimated": "4.1.1",
|
|
49
|
+
"react-native-safe-area-context": "5.6.0",
|
|
50
|
+
"react-native-svg": "15.12.1",
|
|
51
|
+
"react-native-worklets": "0.5.2"
|
|
50
52
|
},
|
|
51
53
|
"dependencies": {
|
|
52
54
|
"d3-interpolate-path": "^2.3.0",
|
|
@@ -55,18 +57,22 @@
|
|
|
55
57
|
"devDependencies": {
|
|
56
58
|
"@babel/core": "^7.28.0",
|
|
57
59
|
"@babel/preset-env": "^7.28.0",
|
|
58
|
-
"@babel/preset-react": "^7.
|
|
60
|
+
"@babel/preset-react": "^7.28.5",
|
|
59
61
|
"@babel/preset-typescript": "^7.27.1",
|
|
60
|
-
"@coinbase/cds-common": "^
|
|
62
|
+
"@coinbase/cds-common": "^9.0.0",
|
|
61
63
|
"@coinbase/cds-lottie-files": "^3.3.4",
|
|
62
|
-
"@coinbase/cds-mobile": "^
|
|
64
|
+
"@coinbase/cds-mobile": "^9.0.0",
|
|
63
65
|
"@coinbase/cds-utils": "^2.3.5",
|
|
64
|
-
"@shopify/react-native-skia": "
|
|
65
|
-
"@
|
|
66
|
-
"react
|
|
67
|
-
"react
|
|
68
|
-
"react-native
|
|
69
|
-
"react-native-
|
|
70
|
-
"react-
|
|
66
|
+
"@shopify/react-native-skia": "2.2.12",
|
|
67
|
+
"@testing-library/react-native": "^13.3.3",
|
|
68
|
+
"@types/react": "19.1.2",
|
|
69
|
+
"react": "19.1.2",
|
|
70
|
+
"react-native": "0.81.5",
|
|
71
|
+
"react-native-gesture-handler": "2.28.0",
|
|
72
|
+
"react-native-reanimated": "4.1.1",
|
|
73
|
+
"react-native-safe-area-context": "5.6.0",
|
|
74
|
+
"react-native-svg": "15.12.1",
|
|
75
|
+
"react-native-worklets": "0.5.2",
|
|
76
|
+
"react-test-renderer": "19.1.2"
|
|
71
77
|
}
|
|
72
78
|
}
|
|
@@ -1,206 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type StyleProp, type View, type ViewStyle } from 'react-native';
|
|
3
|
-
import type { BoxBaseProps, BoxProps } from '@coinbase/cds-mobile/layout';
|
|
4
|
-
import { type SkTypefaceFontProvider } from '@shopify/react-native-skia';
|
|
5
|
-
import { type ScrubberAccessibilityViewProps } from './scrubber/ScrubberAccessibilityView';
|
|
6
|
-
import { type ScrubberProviderProps } from './scrubber/ScrubberProvider';
|
|
7
|
-
import {
|
|
8
|
-
type CartesianAxisConfigProps,
|
|
9
|
-
type CartesianChartLayout,
|
|
10
|
-
type ChartInset,
|
|
11
|
-
type LegendPosition,
|
|
12
|
-
type Series,
|
|
13
|
-
} from './utils';
|
|
14
|
-
export type CartesianChartBaseProps = Omit<BoxBaseProps, 'fontFamily'> &
|
|
15
|
-
Pick<ScrubberProviderProps, 'enableScrubbing' | 'onScrubberPositionChange'> & {
|
|
16
|
-
/**
|
|
17
|
-
* Configuration objects that define how to visualize the data.
|
|
18
|
-
* Each series contains its own data array.
|
|
19
|
-
*/
|
|
20
|
-
series?: Array<Series>;
|
|
21
|
-
/**
|
|
22
|
-
* Chart layout - describes the direction bars/areas grow.
|
|
23
|
-
* - 'vertical' (default): Bars grow vertically. X is category axis, Y is value axis.
|
|
24
|
-
* - 'horizontal': Bars grow horizontally. Y is category axis, X is value axis.
|
|
25
|
-
* @default 'vertical'
|
|
26
|
-
*/
|
|
27
|
-
layout?: CartesianChartLayout;
|
|
28
|
-
/**
|
|
29
|
-
* Whether to animate the chart.
|
|
30
|
-
* @default true
|
|
31
|
-
*/
|
|
32
|
-
animate?: boolean;
|
|
33
|
-
/**
|
|
34
|
-
* Configuration for x-axis(es). Can be a single config or array of configs.
|
|
35
|
-
*
|
|
36
|
-
* @note Multiple x-axis configs are only supported when `layout="horizontal"`.
|
|
37
|
-
*/
|
|
38
|
-
xAxis?: Partial<CartesianAxisConfigProps> | Partial<CartesianAxisConfigProps>[];
|
|
39
|
-
/**
|
|
40
|
-
* Configuration for y-axis(es). Can be a single config or array of configs.
|
|
41
|
-
*
|
|
42
|
-
* @note Multiple y-axis configs are only supported when `layout="vertical"`.
|
|
43
|
-
*/
|
|
44
|
-
yAxis?: Partial<CartesianAxisConfigProps> | Partial<CartesianAxisConfigProps>[];
|
|
45
|
-
/**
|
|
46
|
-
* Inset around the entire chart (outside the axes).
|
|
47
|
-
*/
|
|
48
|
-
inset?: number | Partial<ChartInset>;
|
|
49
|
-
/**
|
|
50
|
-
* Whether to show the legend or a custom legend element.
|
|
51
|
-
* - `true` renders the default Legend component
|
|
52
|
-
* - A React element renders that element as the legend
|
|
53
|
-
* - `false` or omitted hides the legend
|
|
54
|
-
*/
|
|
55
|
-
legend?: boolean | React.ReactNode;
|
|
56
|
-
/**
|
|
57
|
-
* Position of the legend relative to the chart.
|
|
58
|
-
* @default 'bottom'
|
|
59
|
-
*/
|
|
60
|
-
legendPosition?: LegendPosition;
|
|
61
|
-
/**
|
|
62
|
-
* Accessibility label for the legend group.
|
|
63
|
-
* @default 'Legend'
|
|
64
|
-
*/
|
|
65
|
-
legendAccessibilityLabel?: string;
|
|
66
|
-
};
|
|
67
|
-
export type CartesianChartProps = CartesianChartBaseProps &
|
|
68
|
-
Pick<ScrubberProviderProps, 'allowOverflowGestures'> &
|
|
69
|
-
Omit<BoxProps, 'fontFamily'> & {
|
|
70
|
-
/**
|
|
71
|
-
* Default font families to use within ChartText.
|
|
72
|
-
* If not provided, will be the default for the system.
|
|
73
|
-
* @example
|
|
74
|
-
* ['Helvetica', 'sans-serif']
|
|
75
|
-
*/
|
|
76
|
-
fontFamilies?: string[];
|
|
77
|
-
/**
|
|
78
|
-
* Skia font provider to allow for custom fonts.
|
|
79
|
-
* If not provided, the only available fonts will be those defined by the system.
|
|
80
|
-
*/
|
|
81
|
-
fontProvider?: SkTypefaceFontProvider;
|
|
82
|
-
/**
|
|
83
|
-
* Function that returns the accessibility label for each scrubber point.
|
|
84
|
-
* Receives `dataIndex` for each scrubber point label.
|
|
85
|
-
*/
|
|
86
|
-
getScrubberAccessibilityLabel?: ScrubberAccessibilityViewProps['accessibilityLabel'];
|
|
87
|
-
/**
|
|
88
|
-
* Number of data points to move between screen-reader samples.
|
|
89
|
-
*/
|
|
90
|
-
scrubberAccessibilityLabelStep?: number;
|
|
91
|
-
/**
|
|
92
|
-
* Custom styles for the root element.
|
|
93
|
-
*/
|
|
94
|
-
style?: StyleProp<ViewStyle>;
|
|
95
|
-
/**
|
|
96
|
-
* Custom styles for the component.
|
|
97
|
-
*/
|
|
98
|
-
styles?: {
|
|
99
|
-
/**
|
|
100
|
-
* Custom styles for the root element.
|
|
101
|
-
*/
|
|
102
|
-
root?: StyleProp<ViewStyle>;
|
|
103
|
-
/**
|
|
104
|
-
* Custom styles for the chart canvas element.
|
|
105
|
-
*/
|
|
106
|
-
chart?: StyleProp<ViewStyle>;
|
|
107
|
-
};
|
|
108
|
-
};
|
|
109
|
-
export declare const CartesianChart: React.MemoExoticComponent<
|
|
110
|
-
React.ForwardRefExoticComponent<
|
|
111
|
-
Omit<BoxBaseProps, 'fontFamily'> &
|
|
112
|
-
Pick<ScrubberProviderProps, 'enableScrubbing' | 'onScrubberPositionChange'> & {
|
|
113
|
-
/**
|
|
114
|
-
* Configuration objects that define how to visualize the data.
|
|
115
|
-
* Each series contains its own data array.
|
|
116
|
-
*/
|
|
117
|
-
series?: Array<Series>;
|
|
118
|
-
/**
|
|
119
|
-
* Chart layout - describes the direction bars/areas grow.
|
|
120
|
-
* - 'vertical' (default): Bars grow vertically. X is category axis, Y is value axis.
|
|
121
|
-
* - 'horizontal': Bars grow horizontally. Y is category axis, X is value axis.
|
|
122
|
-
* @default 'vertical'
|
|
123
|
-
*/
|
|
124
|
-
layout?: CartesianChartLayout;
|
|
125
|
-
/**
|
|
126
|
-
* Whether to animate the chart.
|
|
127
|
-
* @default true
|
|
128
|
-
*/
|
|
129
|
-
animate?: boolean;
|
|
130
|
-
/**
|
|
131
|
-
* Configuration for x-axis(es). Can be a single config or array of configs.
|
|
132
|
-
*
|
|
133
|
-
* @note Multiple x-axis configs are only supported when `layout="horizontal"`.
|
|
134
|
-
*/
|
|
135
|
-
xAxis?: Partial<CartesianAxisConfigProps> | Partial<CartesianAxisConfigProps>[];
|
|
136
|
-
/**
|
|
137
|
-
* Configuration for y-axis(es). Can be a single config or array of configs.
|
|
138
|
-
*
|
|
139
|
-
* @note Multiple y-axis configs are only supported when `layout="vertical"`.
|
|
140
|
-
*/
|
|
141
|
-
yAxis?: Partial<CartesianAxisConfigProps> | Partial<CartesianAxisConfigProps>[];
|
|
142
|
-
/**
|
|
143
|
-
* Inset around the entire chart (outside the axes).
|
|
144
|
-
*/
|
|
145
|
-
inset?: number | Partial<ChartInset>;
|
|
146
|
-
/**
|
|
147
|
-
* Whether to show the legend or a custom legend element.
|
|
148
|
-
* - `true` renders the default Legend component
|
|
149
|
-
* - A React element renders that element as the legend
|
|
150
|
-
* - `false` or omitted hides the legend
|
|
151
|
-
*/
|
|
152
|
-
legend?: boolean | React.ReactNode;
|
|
153
|
-
/**
|
|
154
|
-
* Position of the legend relative to the chart.
|
|
155
|
-
* @default 'bottom'
|
|
156
|
-
*/
|
|
157
|
-
legendPosition?: LegendPosition;
|
|
158
|
-
/**
|
|
159
|
-
* Accessibility label for the legend group.
|
|
160
|
-
* @default 'Legend'
|
|
161
|
-
*/
|
|
162
|
-
legendAccessibilityLabel?: string;
|
|
163
|
-
} & Pick<ScrubberProviderProps, 'allowOverflowGestures'> &
|
|
164
|
-
Omit<BoxProps, 'fontFamily'> & {
|
|
165
|
-
/**
|
|
166
|
-
* Default font families to use within ChartText.
|
|
167
|
-
* If not provided, will be the default for the system.
|
|
168
|
-
* @example
|
|
169
|
-
* ['Helvetica', 'sans-serif']
|
|
170
|
-
*/
|
|
171
|
-
fontFamilies?: string[];
|
|
172
|
-
/**
|
|
173
|
-
* Skia font provider to allow for custom fonts.
|
|
174
|
-
* If not provided, the only available fonts will be those defined by the system.
|
|
175
|
-
*/
|
|
176
|
-
fontProvider?: SkTypefaceFontProvider;
|
|
177
|
-
/**
|
|
178
|
-
* Function that returns the accessibility label for each scrubber point.
|
|
179
|
-
* Receives `dataIndex` for each scrubber point label.
|
|
180
|
-
*/
|
|
181
|
-
getScrubberAccessibilityLabel?: ScrubberAccessibilityViewProps['accessibilityLabel'];
|
|
182
|
-
/**
|
|
183
|
-
* Number of data points to move between screen-reader samples.
|
|
184
|
-
*/
|
|
185
|
-
scrubberAccessibilityLabelStep?: number;
|
|
186
|
-
/**
|
|
187
|
-
* Custom styles for the root element.
|
|
188
|
-
*/
|
|
189
|
-
style?: StyleProp<ViewStyle>;
|
|
190
|
-
/**
|
|
191
|
-
* Custom styles for the component.
|
|
192
|
-
*/
|
|
193
|
-
styles?: {
|
|
194
|
-
/**
|
|
195
|
-
* Custom styles for the root element.
|
|
196
|
-
*/
|
|
197
|
-
root?: StyleProp<ViewStyle>;
|
|
198
|
-
/**
|
|
199
|
-
* Custom styles for the chart canvas element.
|
|
200
|
-
*/
|
|
201
|
-
chart?: StyleProp<ViewStyle>;
|
|
202
|
-
};
|
|
203
|
-
} & React.RefAttributes<View>
|
|
204
|
-
>
|
|
205
|
-
>;
|
|
206
|
-
//# sourceMappingURL=CartesianChart.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CartesianChart.d.ts","sourceRoot":"","sources":["../../src/chart/CartesianChart.tsx"],"names":[],"mappings":"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"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Simplified context bridge utilities for React Native.
|
|
3
|
-
* Adapted from its-fine to enable context sharing across React renderers
|
|
4
|
-
* https://github.com/pmndrs/its-fine/blob/598b81f02778c22ed21121c2b1a786bdefb14e23/src/index.tsx
|
|
5
|
-
*/
|
|
6
|
-
import * as React from 'react';
|
|
7
|
-
/**
|
|
8
|
-
* A react-internal tree node provider that binds React children to the React tree for chart context bridging.
|
|
9
|
-
*/
|
|
10
|
-
export declare class ChartBridgeProvider extends React.Component<{
|
|
11
|
-
children?: React.ReactNode;
|
|
12
|
-
}> {
|
|
13
|
-
private _reactInternals;
|
|
14
|
-
render(): import('react/jsx-runtime').JSX.Element;
|
|
15
|
-
}
|
|
16
|
-
export type ContextMap = Map<React.Context<any>, any> & {
|
|
17
|
-
get<T>(context: React.Context<T>): T | undefined;
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
* Represents a chart context bridge provider component.
|
|
21
|
-
*/
|
|
22
|
-
export type ChartContextBridge = React.FC<React.PropsWithChildren<object>>;
|
|
23
|
-
/**
|
|
24
|
-
* Returns a ChartContextBridge of live context providers to pierce Context across renderers.
|
|
25
|
-
* Pass ChartContextBridge as a component to a secondary renderer (e.g., Skia Canvas) to enable context-sharing in charts.
|
|
26
|
-
*/
|
|
27
|
-
export declare function useChartContextBridge(): ChartContextBridge;
|
|
28
|
-
//# sourceMappingURL=ChartContextBridge.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChartContextBridge.d.ts","sourceRoot":"","sources":["../../src/chart/ChartContextBridge.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAuF/B;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,KAAK,CAAC,SAAS,CAAC;IAAE,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,CAAC;IACtF,OAAO,CAAC,eAAe,CAAY;IAEnC,MAAM;CAOP;AA4BD,MAAM,MAAM,UAAU,GAAG,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,GAAG;IACtD,GAAG,CAAC,CAAC,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,SAAS,CAAC;CAClD,CAAC;AAmCF;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAC;AAE3E;;;GAGG;AACH,wBAAgB,qBAAqB,IAAI,kBAAkB,CAgB1D"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { CartesianChartContextValue } from './utils';
|
|
2
|
-
export declare const CartesianChartContext: import('react').Context<
|
|
3
|
-
CartesianChartContextValue | undefined
|
|
4
|
-
>;
|
|
5
|
-
export declare const useCartesianChartContext: () => CartesianChartContextValue;
|
|
6
|
-
export declare const CartesianChartProvider: import('react').Provider<
|
|
7
|
-
CartesianChartContextValue | undefined
|
|
8
|
-
>;
|
|
9
|
-
//# sourceMappingURL=ChartProvider.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChartProvider.d.ts","sourceRoot":"","sources":["../../src/chart/ChartProvider.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAC;AAE1D,eAAO,MAAM,qBAAqB,iEAEjC,CAAC;AAEF,eAAO,MAAM,wBAAwB,QAAO,0BAQ3C,CAAC;AAEF,eAAO,MAAM,sBAAsB,kEAAiC,CAAC"}
|
package/dts/chart/Path.d.ts
DELETED
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import type { Rect } from '@coinbase/cds-common/types';
|
|
2
|
-
import { type AnimatedProp, type PathProps as SkiaPathProps } from '@shopify/react-native-skia';
|
|
3
|
-
import { type Transition } from './utils/transition';
|
|
4
|
-
/**
|
|
5
|
-
* Duration in milliseconds for path enter transition.
|
|
6
|
-
*/
|
|
7
|
-
export declare const pathEnterTransitionDuration = 500;
|
|
8
|
-
export type PathBaseProps = {
|
|
9
|
-
/**
|
|
10
|
-
* Whether to animate this path. Overrides the animate prop on the Chart component.
|
|
11
|
-
*/
|
|
12
|
-
animate?: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* Initial path for enter animation.
|
|
15
|
-
* When provided, the first animation will go from initialPath to d.
|
|
16
|
-
* If not provided, defaults to d (no enter animation).
|
|
17
|
-
*/
|
|
18
|
-
initialPath?: string;
|
|
19
|
-
/**
|
|
20
|
-
* Fill color for the path.
|
|
21
|
-
* When provided, will render a fill with the given color.
|
|
22
|
-
* If not provided, will not render a fill.
|
|
23
|
-
*/
|
|
24
|
-
fill?: string;
|
|
25
|
-
/**
|
|
26
|
-
* Opacity for the path fill.
|
|
27
|
-
*/
|
|
28
|
-
fillOpacity?: number;
|
|
29
|
-
/**
|
|
30
|
-
* Stroke color for the path.
|
|
31
|
-
* When provided, will render a fill with the given color.
|
|
32
|
-
* If not provided, will not render a fill.
|
|
33
|
-
*/
|
|
34
|
-
stroke?: string;
|
|
35
|
-
/**
|
|
36
|
-
* Opacity for the path stroke.
|
|
37
|
-
*/
|
|
38
|
-
strokeOpacity?: AnimatedProp<number>;
|
|
39
|
-
};
|
|
40
|
-
export type PathProps = PathBaseProps &
|
|
41
|
-
Pick<
|
|
42
|
-
SkiaPathProps,
|
|
43
|
-
| 'antiAlias'
|
|
44
|
-
| 'blendMode'
|
|
45
|
-
| 'children'
|
|
46
|
-
| 'dither'
|
|
47
|
-
| 'invertClip'
|
|
48
|
-
| 'origin'
|
|
49
|
-
| 'matrix'
|
|
50
|
-
| 'strokeCap'
|
|
51
|
-
| 'strokeJoin'
|
|
52
|
-
| 'strokeMiter'
|
|
53
|
-
| 'strokeWidth'
|
|
54
|
-
| 'style'
|
|
55
|
-
| 'transform'
|
|
56
|
-
> & {
|
|
57
|
-
/**
|
|
58
|
-
* Transition configuration for enter and update animations.
|
|
59
|
-
* @note Disable an animation by passing in null.
|
|
60
|
-
*
|
|
61
|
-
* @default transitions = {{
|
|
62
|
-
* enter: { type: 'timing', duration: 500 },
|
|
63
|
-
* enterOpacity: undefined,
|
|
64
|
-
* update: { type: 'spring', stiffness: 900, damping: 120 }
|
|
65
|
-
* }}
|
|
66
|
-
*
|
|
67
|
-
* @example
|
|
68
|
-
* // Custom enter and update transitions
|
|
69
|
-
* transitions={{ enter: { type: 'timing', duration: 300 }, update: { type: 'spring', damping: 20 } }}
|
|
70
|
-
*
|
|
71
|
-
* @example
|
|
72
|
-
* // Disable enter animation
|
|
73
|
-
* transitions={{ enter: null }}
|
|
74
|
-
*/
|
|
75
|
-
transitions?: {
|
|
76
|
-
/**
|
|
77
|
-
* Transition for the initial enter/reveal animation.
|
|
78
|
-
* Set to `null` to disable.
|
|
79
|
-
*/
|
|
80
|
-
enter?: Transition | null;
|
|
81
|
-
/**
|
|
82
|
-
* Transition for the initial enter opacity animation.
|
|
83
|
-
* When provided, path opacity animates from 0 to 1.
|
|
84
|
-
* Set to `null` to disable.
|
|
85
|
-
*/
|
|
86
|
-
enterOpacity?: Transition | null;
|
|
87
|
-
/**
|
|
88
|
-
* Transition for subsequent data update animations.
|
|
89
|
-
* Set to `null` to disable.
|
|
90
|
-
*/
|
|
91
|
-
update?: Transition | null;
|
|
92
|
-
};
|
|
93
|
-
/**
|
|
94
|
-
* Transition for updates.
|
|
95
|
-
* @deprecated Use `transitions.update` instead. This will be removed in a future major release.
|
|
96
|
-
* @deprecationExpectedRemoval v4
|
|
97
|
-
*/
|
|
98
|
-
transition?: Transition;
|
|
99
|
-
/**
|
|
100
|
-
* The SVG path data string.
|
|
101
|
-
*/
|
|
102
|
-
d?: AnimatedProp<string | undefined>;
|
|
103
|
-
/**
|
|
104
|
-
* Offset added to the clip rect boundaries.
|
|
105
|
-
*/
|
|
106
|
-
clipOffset?: number;
|
|
107
|
-
/**
|
|
108
|
-
* Custom clip path.
|
|
109
|
-
* When set, overrides clipRect.
|
|
110
|
-
* @note pass null to disable clipping.
|
|
111
|
-
*/
|
|
112
|
-
clipPath?: string | null;
|
|
113
|
-
/**
|
|
114
|
-
* Custom clip path rect. If provided, this overrides the default chart rect for clipping.
|
|
115
|
-
* @default drawingArea of chart + clipOffset
|
|
116
|
-
* Will be overridden by clipPath if set.
|
|
117
|
-
*/
|
|
118
|
-
clipRect?: Rect;
|
|
119
|
-
};
|
|
120
|
-
export declare const Path: import('react').NamedExoticComponent<PathProps>;
|
|
121
|
-
//# sourceMappingURL=Path.d.ts.map
|
package/dts/chart/Path.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Path.d.ts","sourceRoot":"","sources":["../../src/chart/Path.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EACL,KAAK,YAAY,EAGjB,KAAK,SAAS,IAAI,aAAa,EAGhC,MAAM,4BAA4B,CAAC;AAGpC,OAAO,EAIL,KAAK,UAAU,EAEhB,MAAM,oBAAoB,CAAC;AAI5B;;GAEG;AACH,eAAO,MAAM,2BAA2B,MAAM,CAAC;AAE/C,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,aAAa,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,aAAa,GACnC,IAAI,CACF,aAAa,EACX,WAAW,GACX,WAAW,GACX,UAAU,GACV,QAAQ,GACR,YAAY,GACZ,QAAQ,GACR,QAAQ,GACR,WAAW,GACX,YAAY,GACZ,aAAa,GACb,aAAa,GACb,OAAO,GACP,WAAW,CACd,GAAG;IACF;;;;;;;;;;;;;;;;;OAiBG;IACH,WAAW,CAAC,EAAE;QACZ;;;WAGG;QACH,KAAK,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;QAC1B;;;;WAIG;QACH,YAAY,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;QACjC;;;WAGG;QACH,MAAM,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;KAC5B,CAAC;IACF;;;;OAIG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;OAEG;IACH,CAAC,CAAC,EAAE,YAAY,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACrC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,IAAI,CAAC;CACjB,CAAC;AAqEJ,eAAO,MAAM,IAAI,iDAwNf,CAAC"}
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { View, type ViewStyle } from 'react-native';
|
|
3
|
-
import { type SegmentedTabsProps, type TabsActiveIndicatorProps } from '@coinbase/cds-mobile/tabs';
|
|
4
|
-
import { type TextBaseProps } from '@coinbase/cds-mobile/typography';
|
|
5
|
-
export declare const PeriodSelectorActiveIndicator: ({
|
|
6
|
-
activeTabRect,
|
|
7
|
-
background,
|
|
8
|
-
position,
|
|
9
|
-
borderRadius,
|
|
10
|
-
}: TabsActiveIndicatorProps) => import('react/jsx-runtime').JSX.Element | undefined;
|
|
11
|
-
export type LiveTabLabelBaseProps = TextBaseProps & {
|
|
12
|
-
/**
|
|
13
|
-
* The label to display.
|
|
14
|
-
* @default 'LIVE'
|
|
15
|
-
*/
|
|
16
|
-
label?: string;
|
|
17
|
-
/**
|
|
18
|
-
* Whether to hide the dot.
|
|
19
|
-
*/
|
|
20
|
-
hideDot?: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* Style prop for customization
|
|
23
|
-
*/
|
|
24
|
-
style?: any;
|
|
25
|
-
};
|
|
26
|
-
export type LiveTabLabelProps = LiveTabLabelBaseProps;
|
|
27
|
-
export declare const LiveTabLabel: React.MemoExoticComponent<
|
|
28
|
-
React.ForwardRefExoticComponent<
|
|
29
|
-
import('@coinbase/cds-mobile/styles/styleProps').StyleProps & {
|
|
30
|
-
children?: React.ReactNode;
|
|
31
|
-
style?: import('react-native').Animated.WithAnimatedValue<
|
|
32
|
-
import('react-native').StyleProp<import('react-native').TextStyle>
|
|
33
|
-
>;
|
|
34
|
-
animated?: boolean;
|
|
35
|
-
align?: 'start' | 'end' | 'center' | 'justify';
|
|
36
|
-
font?: import('@coinbase/cds-common').ThemeVars.FontFamily | 'inherit';
|
|
37
|
-
disabled?: boolean;
|
|
38
|
-
mono?: boolean;
|
|
39
|
-
underline?: boolean;
|
|
40
|
-
tabularNumbers?: boolean;
|
|
41
|
-
numberOfLines?: number;
|
|
42
|
-
ellipsize?: import('react-native').TextProps['ellipsizeMode'];
|
|
43
|
-
noWrap?: boolean;
|
|
44
|
-
dangerouslySetColor?: import('react-native').TextStyle['color'];
|
|
45
|
-
dangerouslySetBackground?: import('react-native').TextStyle['backgroundColor'];
|
|
46
|
-
renderEmptyNode?: boolean;
|
|
47
|
-
testID?: string;
|
|
48
|
-
} & {
|
|
49
|
-
/**
|
|
50
|
-
* The label to display.
|
|
51
|
-
* @default 'LIVE'
|
|
52
|
-
*/
|
|
53
|
-
label?: string;
|
|
54
|
-
/**
|
|
55
|
-
* Whether to hide the dot.
|
|
56
|
-
*/
|
|
57
|
-
hideDot?: boolean;
|
|
58
|
-
/**
|
|
59
|
-
* Style prop for customization
|
|
60
|
-
*/
|
|
61
|
-
style?: any;
|
|
62
|
-
} & React.RefAttributes<View>
|
|
63
|
-
>
|
|
64
|
-
>;
|
|
65
|
-
export type PeriodSelectorProps = SegmentedTabsProps;
|
|
66
|
-
/**
|
|
67
|
-
* PeriodSelector is a specialized version of SegmentedTabs optimized for chart period selection.
|
|
68
|
-
* It provides transparent background, primary wash active state, and full-width layout by default.
|
|
69
|
-
*/
|
|
70
|
-
export declare const PeriodSelector: React.MemoExoticComponent<
|
|
71
|
-
React.ForwardRefExoticComponent<
|
|
72
|
-
Partial<
|
|
73
|
-
Pick<
|
|
74
|
-
import('@coinbase/cds-mobile/tabs').TabsBaseProps<string>,
|
|
75
|
-
'TabComponent' | 'TabsActiveIndicatorComponent'
|
|
76
|
-
>
|
|
77
|
-
> &
|
|
78
|
-
Omit<
|
|
79
|
-
import('@coinbase/cds-mobile/tabs').TabsBaseProps<string>,
|
|
80
|
-
'styles' | 'TabComponent' | 'TabsActiveIndicatorComponent'
|
|
81
|
-
> &
|
|
82
|
-
Partial<
|
|
83
|
-
Pick<
|
|
84
|
-
import('@coinbase/cds-mobile/tabs').TabsProps<string>,
|
|
85
|
-
'TabComponent' | 'TabsActiveIndicatorComponent'
|
|
86
|
-
>
|
|
87
|
-
> &
|
|
88
|
-
Omit<
|
|
89
|
-
import('@coinbase/cds-mobile/tabs').TabsProps<string>,
|
|
90
|
-
'styles' | 'TabComponent' | 'TabsActiveIndicatorComponent'
|
|
91
|
-
> & {
|
|
92
|
-
styles?: {
|
|
93
|
-
root?: import('react-native').StyleProp<ViewStyle>;
|
|
94
|
-
tab?: import('react-native').StyleProp<ViewStyle>;
|
|
95
|
-
activeIndicator?: import('react-native').StyleProp<ViewStyle>;
|
|
96
|
-
};
|
|
97
|
-
} & React.RefAttributes<any>
|
|
98
|
-
>
|
|
99
|
-
>;
|
|
100
|
-
//# sourceMappingURL=PeriodSelector.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PeriodSelector.d.ts","sourceRoot":"","sources":["../../src/chart/PeriodSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAC;AACzD,OAAO,EAAc,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAGhE,OAAO,EAEL,KAAK,kBAAkB,EAEvB,KAAK,wBAAwB,EAC9B,MAAM,2BAA2B,CAAC;AAGnC,OAAO,EAAQ,KAAK,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAG3E,eAAO,MAAM,6BAA6B,GAAI,wDAK3C,wBAAwB,wDAmD1B,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,aAAa,GAAG;IAClD;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,KAAK,CAAC,EAAE,GAAG,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,qBAAqB,CAAC;AAStD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;IAxBvB;;;OAGG;YACK,MAAM;IACd;;OAEG;cACO,OAAO;IACjB;;OAEG;YACK,GAAG;+BAyCZ,CAAC;AAQF,MAAM,MAAM,mBAAmB,GAAG,kBAAkB,CAAC;AAErD;;;GAGG;AACH,eAAO,MAAM,cAAc;;YA7Hd,CAAC;WAGZ,CAAC;uBAGE,CAAC;;8BAmJL,CAAC"}
|