@automattic/charts 1.6.0 → 1.8.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.
Files changed (54) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +2 -2
  3. package/dist/index.cjs +380 -60
  4. package/dist/index.cjs.map +1 -1
  5. package/dist/index.css +12 -7
  6. package/dist/index.d.cts +119 -30
  7. package/dist/index.d.ts +122 -33
  8. package/dist/index.js +380 -60
  9. package/dist/index.js.map +1 -1
  10. package/package.json +22 -21
  11. package/src/charts/area-chart/types.ts +1 -1
  12. package/src/charts/bar-chart/bar-chart.tsx +197 -43
  13. package/src/charts/bar-chart/private/comparison-bars-geometry.ts +70 -0
  14. package/src/charts/bar-chart/private/comparison-bars.tsx +154 -0
  15. package/src/charts/bar-chart/private/comparison-constants.ts +33 -0
  16. package/src/charts/bar-chart/private/index.ts +9 -0
  17. package/src/charts/bar-chart/private/test/comparison-bars-geometry.test.ts +47 -0
  18. package/src/charts/bar-chart/private/test/comparison-bars.test.tsx +183 -0
  19. package/src/charts/bar-chart/private/use-bar-chart-options.ts +46 -5
  20. package/src/charts/bar-chart/test/bar-chart.test.tsx +191 -1
  21. package/src/charts/geo-chart/geo-chart.tsx +8 -10
  22. package/src/charts/leaderboard-chart/leaderboard-chart.module.scss +27 -14
  23. package/src/charts/leaderboard-chart/leaderboard-chart.tsx +7 -4
  24. package/src/charts/leaderboard-chart/test/leaderboard-chart.test.tsx +51 -4
  25. package/src/charts/line-chart/line-chart.tsx +1 -1
  26. package/src/charts/line-chart/private/line-chart-annotation-label-popover.tsx +18 -2
  27. package/src/charts/line-chart/private/line-chart-annotation.tsx +1 -1
  28. package/src/charts/line-chart/types.ts +1 -1
  29. package/src/charts/pie-chart/pie-chart.module.scss +0 -4
  30. package/src/charts/pie-chart/pie-chart.tsx +3 -8
  31. package/src/charts/pie-semi-circle-chart/pie-semi-circle-chart.module.scss +0 -5
  32. package/src/charts/pie-semi-circle-chart/pie-semi-circle-chart.tsx +5 -10
  33. package/src/charts/private/center/center.module.scss +4 -0
  34. package/src/charts/private/center/center.tsx +33 -0
  35. package/src/charts/private/center/index.ts +2 -0
  36. package/src/charts/private/center/test/center.test.tsx +60 -0
  37. package/src/charts/private/chart-layout/chart-layout.tsx +1 -2
  38. package/src/charts/private/svg-empty-state/svg-empty-state.module.scss +0 -2
  39. package/src/charts/private/svg-empty-state/svg-empty-state.tsx +2 -4
  40. package/src/charts/private/x-zoom.tsx +2 -2
  41. package/src/components/legend/hooks/use-chart-legend-items.ts +6 -2
  42. package/src/components/legend/legend.tsx +1 -2
  43. package/src/components/legend/utils/label-transform-factory.ts +1 -1
  44. package/src/components/tooltip/accessible-tooltip.tsx +2 -6
  45. package/src/index.ts +6 -5
  46. package/src/providers/chart-context/global-charts-provider.tsx +2 -0
  47. package/src/providers/chart-context/test/chart-context.test.tsx +13 -1
  48. package/src/providers/chart-context/themes.ts +9 -1
  49. package/src/providers/chart-context/types.ts +9 -2
  50. package/src/types.ts +120 -11
  51. package/src/utils/get-styles.ts +36 -14
  52. package/src/utils/index.ts +6 -1
  53. package/src/utils/test/get-styles.test.ts +47 -1
  54. package/src/visx/types.ts +30 -1
package/dist/index.css CHANGED
@@ -72,10 +72,12 @@
72
72
  .a8ccharts-fpNVAq-chart-layout__content svg {
73
73
  display: block;
74
74
  }
75
- .a8ccharts-udGPVq-svg-empty-state {
76
- text-align: center;
75
+ .a8ccharts-w3qxlG-center {
77
76
  width: 100%;
78
77
  height: 100%;
78
+ }
79
+ .a8ccharts-udGPVq-svg-empty-state {
80
+ text-align: center;
79
81
  font-size: var(--wpds-typography-font-size-md, 13px);
80
82
  color: var(--wpds-color-fg-content-neutral-weak, #6d6d6d);
81
83
  }
@@ -477,10 +479,13 @@
477
479
  }
478
480
 
479
481
  .a8ccharts-GovfoW-interactiveRow {
482
+ --focus-ring-width: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px));
480
483
  grid-column: 1 / -1;
481
484
  grid-template-columns: subgrid;
485
+ box-sizing: border-box;
482
486
  appearance: none;
483
487
  width: 100%;
488
+ padding: var(--focus-ring-width);
484
489
  color: inherit;
485
490
  font: inherit;
486
491
  text-align: inherit;
@@ -489,7 +494,6 @@
489
494
  border: 0;
490
495
  align-items: center;
491
496
  margin: 0;
492
- padding: 0;
493
497
  display: grid;
494
498
  position: relative;
495
499
  }
@@ -523,8 +527,9 @@
523
527
  }
524
528
 
525
529
  .a8ccharts-GovfoW-interactiveRow:focus-visible {
526
- outline: 2px solid var(--wpds-color-fg-interactive-brand, var(--wp-admin-theme-color, #3858e9));
527
- outline-offset: -2px;
530
+ border-radius: var(--wpds-border-radius-sm, 2px);
531
+ outline: var(--focus-ring-width) solid var(--wpds-color-stroke-focus-brand, var(--wp-admin-theme-color, #3858e9));
532
+ outline-offset: calc(-1 * var(--focus-ring-width));
528
533
  }
529
534
 
530
535
  .a8ccharts-GovfoW-chevron {
@@ -552,11 +557,11 @@
552
557
  overflow: hidden;
553
558
  }
554
559
 
555
- .a8ccharts-gnszbG-pie-chart--responsive, .a8ccharts-gnszbG-pie-chart__centering {
560
+ .a8ccharts-gnszbG-pie-chart--responsive {
556
561
  width: 100%;
557
562
  height: 100%;
558
563
  }
559
- .a8ccharts-YtTOxW-pie-semi-circle-chart--responsive, .a8ccharts-YtTOxW-pie-semi-circle-chart__centering {
564
+ .a8ccharts-YtTOxW-pie-semi-circle-chart--responsive {
560
565
  width: 100%;
561
566
  height: 100%;
562
567
  }
package/dist/index.d.cts CHANGED
@@ -1,23 +1,63 @@
1
1
  import { LegendOrdinal } from "@visx/legend";
2
- import { CircleSubjectProps } from "@visx/annotation/lib/components/CircleSubject.js";
3
- import { ConnectorProps } from "@visx/annotation/lib/components/Connector.js";
4
- import { LabelProps } from "@visx/annotation/lib/components/Label.js";
5
- import { LineSubjectProps } from "@visx/annotation/lib/components/LineSubject.js";
2
+ import { CircleSubjectProps, ConnectorProps, LabelProps, LineSubjectProps } from "@visx/annotation";
6
3
  import { AxisRendererProps, AxisScale, Orientation, TickFormatter } from "@visx/axis";
7
- import { LegendShape } from "@visx/legend/lib/types/index.js";
8
- import { ScaleInput, ScaleType } from "@visx/scale";
9
- import { TextProps } from "@visx/text/lib/Text.js";
10
- import { EventHandlerParams, EventHandlerParams as EventHandlerParams$1, GlyphProps, GridStyles, GridStyles as GridStyles$1, LineStyles, LineStyles as LineStyles$1 } from "@visx/xychart";
11
- import { GapSize } from "@wordpress/theme";
12
- import { CSSProperties, ComponentProps, ComponentType, FC, MouseEvent, PointerEvent, PropsWithChildren, ReactNode, SVGProps } from "react";
13
- import { GoogleDataTableColumn, GoogleDataTableColumn as GoogleDataTableColumn$1, GoogleDataTableColumnRoleType, GoogleDataTableRow, GoogleDataTableRow as GoogleDataTableRow$1 } from "react-google-charts";
14
- import { RenderTooltipParams, RenderTooltipParams as RenderTooltipParams$1, TooltipProps as BaseTooltipProps$1 } from "@visx/xychart/lib/components/Tooltip.js";
15
- import { TextProps as TextProps$1 } from "@visx/text";
16
- import { PieArcDatum } from "@visx/shape/lib/shapes/Pie.js";
4
+ import { PickD3Scale, ScaleInput, ScaleType } from "@visx/scale";
5
+ import { TextProps } from "@visx/text";
6
+ import { EventHandlerParams, EventHandlerParams as EventHandlerParams$1, GlyphProps, GridStyles, GridStyles as GridStyles$1, LineStyles, LineStyles as LineStyles$1, TooltipContextType } from "@visx/xychart";
7
+ import { CSSProperties, ComponentClass, ComponentProps, ComponentType, FC, MouseEvent, PointerEvent, PropsWithChildren, ReactElement, ReactNode, SVGProps } from "react";
8
+ import { TooltipProps as TooltipProps$1, UseTooltipPortalOptions } from "@visx/tooltip";
9
+ import { PieProvidedProps } from "@visx/shape";
17
10
 
18
11
  //#region src/types.d.ts
19
12
  type ValueOf<T> = T[keyof T];
20
13
  type Optional<T, K extends keyof T> = Pick<Partial<T>, K> & Omit<T, K>;
14
+ /**
15
+ * Mirrors the WordPress Design System gap token scale used by the WordPress UI Stack.
16
+ */
17
+ type GapSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl';
18
+ type LegendShapeLabel<Data, Output, ExtraAttributes = object> = {
19
+ datum: Data;
20
+ index: number;
21
+ text: string;
22
+ value?: Output;
23
+ } & ExtraAttributes;
24
+ type LegendShapeRenderProps<Data, Output> = {
25
+ width?: string | number;
26
+ height?: string | number;
27
+ label: LegendShapeLabel<Data, Output>;
28
+ item: Data;
29
+ itemIndex: number;
30
+ fill?: string;
31
+ size?: string | number;
32
+ style?: CSSProperties;
33
+ };
34
+ type LegendShape<Data, Output> = 'rect' | 'circle' | 'line' | FC<LegendShapeRenderProps<Data, Output>> | ComponentClass<LegendShapeRenderProps<Data, Output>>;
35
+ type GoogleDataTableColumnType = 'string' | 'number' | 'boolean' | 'date' | 'datetime' | 'timeofday';
36
+ declare enum GoogleDataTableColumnRoleType {
37
+ annotation = "annotation",
38
+ annotationText = "annotationText",
39
+ certainty = "certainty",
40
+ emphasis = "emphasis",
41
+ interval = "interval",
42
+ scope = "scope",
43
+ style = "style",
44
+ tooltip = "tooltip",
45
+ domain = "domain"
46
+ }
47
+ type GoogleDataTableColumn = {
48
+ type: GoogleDataTableColumnType;
49
+ label?: string;
50
+ role?: GoogleDataTableColumnRoleType;
51
+ pattern?: string;
52
+ p?: Record<string, unknown>;
53
+ id?: string;
54
+ } | string;
55
+ type GoogleDataTableCell = {
56
+ v?: unknown;
57
+ f?: string;
58
+ p?: Record<string, unknown>;
59
+ } | string | number | boolean | Date | null;
60
+ type GoogleDataTableRow = GoogleDataTableCell[];
21
61
  type ChartType = 'area' | 'bar' | 'conversion-funnel' | 'leaderboard' | 'line' | 'pie' | 'pie-semi-circle';
22
62
  type OrientationType = ValueOf<typeof Orientation>;
23
63
  type AnnotationStyles = {
@@ -66,7 +106,7 @@ type DataPoint = {
66
106
  * ['Canada', 38000000, 9985000]
67
107
  * ]
68
108
  */
69
- type GeoData = [GoogleDataTableColumn$1[], ...GoogleDataTableRow$1[]];
109
+ type GeoData = [GoogleDataTableColumn[], ...GoogleDataTableRow[]];
70
110
  type DataPointDate = {
71
111
  date?: Date;
72
112
  /**
@@ -92,7 +132,7 @@ type LeaderboardEntry = {
92
132
  /**
93
133
  * Human-readable name (e.g., 'Direct') or a JSX element (e.g., <h4>Direct</h4>)
94
134
  */
95
- label: string | JSX.Element;
135
+ label: string | ReactElement;
96
136
  /**
97
137
  * Value of the entry
98
138
  */
@@ -130,6 +170,16 @@ type LeaderboardEntry = {
130
170
  * never both, since interactive elements cannot be nested in HTML.
131
171
  */
132
172
  onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
173
+ /**
174
+ * Optional accessible name for the interactive row's `<button>`. Only applies
175
+ * when `onClick` is set — without it the row renders as a Fragment with no
176
+ * element to receive `aria-label`. By default the button derives its name from
177
+ * its rendered content (label text plus the formatted value), which is the
178
+ * right outcome for plain-text labels. Set this when the `label` is JSX whose
179
+ * text content does not yield a clean name on its own — e.g. an image-only
180
+ * label — to give assistive tech a deterministic, human-readable name.
181
+ */
182
+ ariaLabel?: string;
133
183
  };
134
184
  type GradientStop = {
135
185
  offset: string;
@@ -155,6 +205,15 @@ type SeriesData = {
155
205
  data: DataPointDate[] | DataPoint[];
156
206
  options?: SeriesDataOptions;
157
207
  };
208
+ /**
209
+ * Visual styling for a bar series of a given semantic type (e.g. 'comparison').
210
+ * `widthFactor` is the bar width relative to the primary bar slot (1.5 = 150%);
211
+ * `opacity` sets the shadow translucency.
212
+ */
213
+ type BarStyles = {
214
+ widthFactor?: number;
215
+ opacity?: number;
216
+ };
158
217
  type MultipleDataPointsDate = {
159
218
  label: string;
160
219
  data: DataPointDate[];
@@ -226,7 +285,7 @@ type ChartTheme = {
226
285
  leaderboardChart?: {
227
286
  /** Gap between rows in the leaderboard grid */rowGap?: number; /** Gap between columns in the leaderboard grid */
228
287
  columnGap?: number; /** Spacing between label and progress bars */
229
- labelSpacing?: number; /** Primary color for current period bars */
288
+ labelSpacing?: GapSize; /** Primary color for current period bars */
230
289
  primaryColor?: string; /** Secondary color for comparison period bars */
231
290
  secondaryColor?: string; /** Delta colors: [negative, neutral, positive] */
232
291
  deltaColors?: [string, string, string];
@@ -239,6 +298,9 @@ type ChartTheme = {
239
298
  };
240
299
  lineChart?: {
241
300
  lineStyles?: Partial<Record<NonNullable<SeriesDataOptions['type']>, LineStyles$1>>;
301
+ };
302
+ barChart?: {
303
+ barStyles?: Partial<Record<NonNullable<SeriesDataOptions['type']>, BarStyles>>;
242
304
  }; /** Sparkline specific settings */
243
305
  sparkline?: {
244
306
  /** Margin around the sparkline chart */margin?: {
@@ -260,6 +322,9 @@ type CompleteChartTheme = Required<ChartTheme> & {
260
322
  lineChart: {
261
323
  lineStyles: Record<NonNullable<SeriesDataOptions['type']>, LineStyles$1>;
262
324
  };
325
+ barChart: {
326
+ barStyles: Record<NonNullable<SeriesDataOptions['type']>, BarStyles>;
327
+ };
263
328
  legend: Required<NonNullable<ChartTheme['legend']>>;
264
329
  sparkline: Required<NonNullable<ChartTheme['sparkline']>> & {
265
330
  margin: Required<NonNullable<ChartTheme['sparkline']>['margin']>;
@@ -608,6 +673,29 @@ interface ChartInstanceRef {
608
673
  }
609
674
  type SingleChartRef = ChartInstanceRef;
610
675
  //#endregion
676
+ //#region src/visx/types.d.ts
677
+ type RenderTooltipParams<Datum extends object> = TooltipContextType<Datum> & {
678
+ colorScale?: PickD3Scale<'ordinal', string, string>;
679
+ };
680
+ interface RenderTooltipGlyphProps<Datum extends object> extends GlyphProps<Datum> {
681
+ glyphStyle?: SVGProps<SVGCircleElement>;
682
+ isNearestDatum: boolean;
683
+ }
684
+ type XyChartTooltipProps<Datum extends object> = {
685
+ renderTooltip: (params: RenderTooltipParams<Datum>) => ReactNode;
686
+ renderGlyph?: (params: RenderTooltipGlyphProps<Datum>) => ReactNode;
687
+ snapTooltipToDatumX?: boolean;
688
+ snapTooltipToDatumY?: boolean;
689
+ showVerticalCrosshair?: boolean;
690
+ showHorizontalCrosshair?: boolean;
691
+ showDatumGlyph?: boolean;
692
+ showSeriesGlyphs?: boolean;
693
+ verticalCrosshairStyle?: SVGProps<SVGLineElement>;
694
+ horizontalCrosshairStyle?: SVGProps<SVGLineElement>;
695
+ glyphStyle?: SVGProps<SVGCircleElement>;
696
+ resizeObserverPolyfill?: UseTooltipPortalOptions['polyfill'];
697
+ } & Omit<TooltipProps$1, 'left' | 'top' | 'children'> & Pick<UseTooltipPortalOptions, 'debounce' | 'detectBounds' | 'scroll' | 'zIndex'>;
698
+ //#endregion
611
699
  //#region src/charts/line-chart/types.d.ts
612
700
  type LineChartAnnotationProps = {
613
701
  datum: DataPointDate;
@@ -634,7 +722,7 @@ interface LineChartProps extends BaseChartProps<SeriesData[]> {
634
722
  withGradientFill: boolean;
635
723
  smoothing?: boolean;
636
724
  curveType?: CurveType;
637
- renderTooltip?: (params: RenderTooltipParams$1<DataPointDate>) => ReactNode;
725
+ renderTooltip?: (params: RenderTooltipParams<DataPointDate>) => ReactNode;
638
726
  withStartGlyphs?: boolean;
639
727
  withEndGlyphs?: boolean;
640
728
  renderGlyph?: <Datum extends object>(props: GlyphProps<Datum>) => ReactNode;
@@ -684,7 +772,7 @@ interface AreaChartProps extends BaseChartProps<SeriesData[]> {
684
772
  /**
685
773
  * Custom tooltip renderer.
686
774
  */
687
- renderTooltip?: (params: RenderTooltipParams$1<DataPointDate>) => ReactNode;
775
+ renderTooltip?: (params: RenderTooltipParams<DataPointDate>) => ReactNode;
688
776
  /**
689
777
  * Whether to show crosshair lines in the tooltip.
690
778
  */
@@ -750,7 +838,7 @@ declare const AreaChartResponsive: AreaChartResponsiveComponent;
750
838
  //#endregion
751
839
  //#region src/charts/bar-chart/bar-chart.d.ts
752
840
  interface BarChartProps extends BaseChartProps<SeriesData[]> {
753
- renderTooltip?: (params: RenderTooltipParams$1<DataPointDate>) => ReactNode;
841
+ renderTooltip?: (params: RenderTooltipParams<DataPointDate>) => ReactNode;
754
842
  orientation?: 'horizontal' | 'vertical';
755
843
  withPatterns?: boolean;
756
844
  showZeroValues?: boolean;
@@ -807,14 +895,14 @@ interface BarListChartProps extends Exclude<BarChartProps, 'orientation' | 'size
807
895
  };
808
896
  }
809
897
  interface RenderLabelProps {
810
- textProps: TextProps$1;
898
+ textProps: TextProps;
811
899
  x: number;
812
900
  y: number;
813
901
  label: string;
814
902
  formatter: (value: string) => string;
815
903
  }
816
904
  interface RenderValueProps {
817
- textProps: TextProps$1;
905
+ textProps: TextProps;
818
906
  x: number;
819
907
  y: number;
820
908
  value: number;
@@ -837,7 +925,7 @@ declare const BarListChartResponsive: ({
837
925
  width,
838
926
  height,
839
927
  ...chartProps
840
- }: Omit<BarListChartProps, "size" | "width" | "height"> & {
928
+ }: Omit<BarListChartProps, "width" | "height" | "size"> & {
841
929
  width?: number;
842
930
  height?: number;
843
931
  size?: number;
@@ -981,7 +1069,7 @@ declare const GeoChartResponsive: ({
981
1069
  width,
982
1070
  height,
983
1071
  ...chartProps
984
- }: Omit<GeoChartProps, "size" | "width" | "height"> & {
1072
+ }: Omit<GeoChartProps, "width" | "height" | "size"> & {
985
1073
  width?: number;
986
1074
  height?: number;
987
1075
  size?: number;
@@ -1057,7 +1145,7 @@ declare const LeaderboardChartResponsive: (({
1057
1145
  width,
1058
1146
  height,
1059
1147
  ...chartProps
1060
- }: Omit<LeaderboardChartProps, "size" | "width" | "height"> & {
1148
+ }: Omit<LeaderboardChartProps, "width" | "height" | "size"> & {
1061
1149
  width?: number;
1062
1150
  height?: number;
1063
1151
  size?: number;
@@ -1448,7 +1536,7 @@ interface PieSemiCircleChartProps extends BaseChartProps<DataPointPercentage[]>
1448
1536
  type PieSemiCircleChartBaseProps = Optional<PieSemiCircleChartProps, 'width'>;
1449
1537
  type PieSemiCircleChartComponent = ChartComponentWithComposition<PieSemiCircleChartBaseProps>;
1450
1538
  type PieSemiCircleChartResponsiveComponent = ChartComponentWithComposition<PieSemiCircleChartBaseProps & ResponsiveConfig>;
1451
- type ArcData = PieArcDatum<DataPointPercentageCalculated>;
1539
+ type ArcData = PieProvidedProps<DataPointPercentageCalculated>['arcs'][number];
1452
1540
  declare const PieSemiCircleChart: PieSemiCircleChartComponent;
1453
1541
  declare const PieSemiCircleChartResponsive: PieSemiCircleChartResponsiveComponent;
1454
1542
  //#endregion
@@ -1564,7 +1652,7 @@ declare const Sparkline: ({
1564
1652
  width,
1565
1653
  height,
1566
1654
  ...chartProps
1567
- }: Omit<SparklineProps, "size" | "width" | "height"> & {
1655
+ }: Omit<SparklineProps, "width" | "height" | "size"> & {
1568
1656
  width?: number;
1569
1657
  height?: number;
1570
1658
  size?: number;
@@ -1621,8 +1709,8 @@ type FlattenedTooltipData = {
1621
1709
  seriesIndex: number;
1622
1710
  dataPointIndex: number;
1623
1711
  };
1624
- interface AccessibleTooltipProps extends Omit<BaseTooltipProps$1<DataPointDate>, 'renderTooltip'> {
1625
- renderTooltip?: (params: RenderTooltipParams$1<DataPointDate>) => ReactNode;
1712
+ interface AccessibleTooltipProps extends Omit<XyChartTooltipProps<DataPointDate>, 'renderTooltip'> {
1713
+ renderTooltip?: (params: RenderTooltipParams<DataPointDate>) => ReactNode;
1626
1714
  selectedIndex?: number | undefined;
1627
1715
  tooltipRef?: (element: HTMLDivElement | null) => void;
1628
1716
  keyboardFocusedClassName?: string;
@@ -1715,6 +1803,7 @@ type GetElementStylesParams = {
1715
1803
  type ElementStyles = {
1716
1804
  color: string;
1717
1805
  lineStyles: LineStyles$1;
1806
+ barStyles: BarStyles;
1718
1807
  glyph: <Datum extends object>(props: GlyphProps<Datum>) => ReactNode;
1719
1808
  shapeStyles: CSSProperties & LineStyles$1;
1720
1809
  };
@@ -1756,5 +1845,5 @@ declare const useGlobalChartsTheme: () => CompleteChartTheme;
1756
1845
  */
1757
1846
  declare const defaultTheme: CompleteChartTheme;
1758
1847
  //#endregion
1759
- export { AccessibleTooltip, type AnnotationStyles, type ArcData, AreaChartResponsive as AreaChart, type AreaChartProps, AreaChart as AreaChartUnresponsive, type AxisOptions, BarChartResponsive as BarChart, type BarChartProps, BarChart as BarChartUnresponsive, BarListChartResponsive as BarListChart, type BarListChartProps, BarListChart as BarListChartUnresponsive, type BaseChartProps, type BaseLegendItem, type BaseLegendProps, BaseTooltip, type BaseTooltipProps, type ChartLegendConfig, type ChartLegendOptions, type ChartTheme, type CompleteChartTheme, ConversionFunnelChartWithProvider as ConversionFunnelChart, type ConversionFunnelChartProps, type CurveType, type DataPoint, type DataPointDate, type DataPointPercentage, type EventHandlerParams, type FunnelStep, GeoChartResponsive as GeoChart, type GeoChartProps, GeoChartWithProvider as GeoChartUnresponsive, type GeoData, type GeoRegion, type GeoResolution, GlobalChartsContext, GlobalChartsProvider, GlobalChartsProvider as ThemeProvider, type GoogleDataTableColumn, type GoogleDataTableColumnRoleType, type GoogleDataTableRow, type GradientConfig, type GradientStop, type GridProps, type GridStyles, LeaderboardChartResponsive as LeaderboardChart, type LeaderboardChartProps, LeaderboardChart as LeaderboardChartUnresponsive, type LeaderboardEntry, Legend, type LegendItemStyles, type LegendLabelStyles, type LegendPosition, type LegendProps, type LegendShapeStyles, type LegendValueDisplay, LineChartResponsive as LineChart, type LineChartAnnotationProps, type LineChartProps, LineChart as LineChartUnresponsive, type LineStyles, type MainMetricRenderProps, type MetricValueType, type MultipleDataPointsDate, type Optional, type OrientationType, PieChartResponsive as PieChart, type PieChartProps, type PieChartRenderTooltipParams, PieChart as PieChartUnresponsive, PieSemiCircleChartResponsive as PieSemiCircleChart, type PieSemiCircleChartProps, type PieSemiCircleChartRenderTooltipParams, PieSemiCircleChart as PieSemiCircleChartUnresponsive, type RenderLabelProps, type RenderLineGlyphProps, type RenderTooltipParams, type RenderValueProps, type ScaleOptions, type SeriesData, type SeriesDataOptions, Sparkline, type SparklineDataPoint, type SparklineProps, SparklineUnresponsive, type StepLabelRenderProps, type StepRateRenderProps, type TooltipData, type TooltipDatum, type TooltipProps, type TooltipRenderProps, type TrendDirection, TrendIndicator, type TrendIndicatorProps, defaultTheme, formatMetricValue, formatPercentage, getColorDistance, hexToRgba, isValidHexColor, lightenHexColor, mergeThemes, normalizeColorToHex, parseAsLocalDate, parseHslString, parseRgbString, useChartLegendItems, useGlobalChartsContext, useGlobalChartsTheme, useLeaderboardLegendItems, validateHexColor };
1848
+ export { AccessibleTooltip, type AnnotationStyles, type ArcData, AreaChartResponsive as AreaChart, type AreaChartProps, AreaChart as AreaChartUnresponsive, type AxisOptions, BarChartResponsive as BarChart, type BarChartProps, BarChart as BarChartUnresponsive, BarListChartResponsive as BarListChart, type BarListChartProps, BarListChart as BarListChartUnresponsive, type BaseChartProps, type BaseLegendItem, type BaseLegendProps, BaseTooltip, type BaseTooltipProps, type ChartLegendConfig, type ChartLegendOptions, type ChartTheme, type CompleteChartTheme, ConversionFunnelChartWithProvider as ConversionFunnelChart, type ConversionFunnelChartProps, type CurveType, type DataPoint, type DataPointDate, type DataPointPercentage, type EventHandlerParams, type FunnelStep, GeoChartResponsive as GeoChart, type GeoChartProps, GeoChartWithProvider as GeoChartUnresponsive, type GeoData, type GeoRegion, type GeoResolution, GlobalChartsContext, GlobalChartsProvider, GlobalChartsProvider as ThemeProvider, type GoogleDataTableColumn, type GoogleDataTableColumnRoleType, type GoogleDataTableRow, type GradientConfig, type GradientStop, type GridProps, type GridStyles, LeaderboardChartResponsive as LeaderboardChart, type LeaderboardChartProps, LeaderboardChart as LeaderboardChartUnresponsive, type LeaderboardEntry, Legend, type LegendItemStyles, type LegendLabelStyles, type LegendPosition, type LegendProps, type LegendShape, type LegendShapeLabel, type LegendShapeRenderProps, type LegendShapeStyles, type LegendValueDisplay, LineChartResponsive as LineChart, type LineChartAnnotationProps, type LineChartProps, LineChart as LineChartUnresponsive, type LineStyles, type MainMetricRenderProps, type MetricValueType, type MultipleDataPointsDate, type Optional, type OrientationType, PieChartResponsive as PieChart, type PieChartProps, type PieChartRenderTooltipParams, PieChart as PieChartUnresponsive, PieSemiCircleChartResponsive as PieSemiCircleChart, type PieSemiCircleChartProps, type PieSemiCircleChartRenderTooltipParams, PieSemiCircleChart as PieSemiCircleChartUnresponsive, type RenderLabelProps, type RenderLineGlyphProps, type RenderTooltipGlyphProps, type RenderTooltipParams, type RenderValueProps, type ScaleOptions, type SeriesData, type SeriesDataOptions, Sparkline, type SparklineDataPoint, type SparklineProps, SparklineUnresponsive, type StepLabelRenderProps, type StepRateRenderProps, type TooltipData, type TooltipDatum, type TooltipProps, type TooltipRenderProps, type TrendDirection, TrendIndicator, type TrendIndicatorProps, type XyChartTooltipProps, defaultTheme, formatMetricValue, formatPercentage, getColorDistance, hexToRgba, isValidHexColor, lightenHexColor, mergeThemes, normalizeColorToHex, parseAsLocalDate, parseHslString, parseRgbString, useChartLegendItems, useGlobalChartsContext, useGlobalChartsTheme, useLeaderboardLegendItems, validateHexColor };
1760
1849
  //# sourceMappingURL=index.d.cts.map