@automattic/charts 4.7.0 → 4.9.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 (92) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/TOKENS.md +6 -3
  3. package/dist/index.cjs +834 -321
  4. package/dist/index.cjs.map +1 -1
  5. package/dist/index.css +68 -17
  6. package/dist/index.d.cts +102 -28
  7. package/dist/index.d.ts +102 -28
  8. package/dist/index.js +838 -327
  9. package/dist/index.js.map +1 -1
  10. package/package.json +1 -1
  11. package/src/charts/area-chart/area-chart.tsx +7 -4
  12. package/src/charts/area-chart/test/area-chart.test.tsx +24 -15
  13. package/src/charts/area-chart/test/tooltip-resolution-branches.test.tsx +1 -1
  14. package/src/charts/area-chart/test/tooltip-resolution.test.tsx +2 -2
  15. package/src/charts/area-chart/types.ts +2 -0
  16. package/src/charts/bar-chart/bar-chart.module.scss +7 -0
  17. package/src/charts/bar-chart/bar-chart.tsx +25 -16
  18. package/src/charts/bar-chart/private/comparison-bars.tsx +1 -0
  19. package/src/charts/bar-chart/test/bar-chart.test.tsx +106 -62
  20. package/src/charts/bar-chart/types.ts +2 -0
  21. package/src/charts/bar-list-chart/test/bar-list-chart.test.tsx +3 -1
  22. package/src/charts/conversion-funnel-chart/conversion-funnel-chart.tsx +1 -1
  23. package/src/charts/conversion-funnel-chart/test/conversion-funnel-chart.test.tsx +9 -0
  24. package/src/charts/heatmap-chart/heatmap-chart.module.scss +16 -8
  25. package/src/charts/heatmap-chart/heatmap-chart.tsx +183 -66
  26. package/src/charts/heatmap-chart/private/column-groups.ts +79 -8
  27. package/src/charts/heatmap-chart/private/fit-compact-cells.ts +72 -0
  28. package/src/charts/heatmap-chart/private/heatmap-context.ts +2 -2
  29. package/src/charts/heatmap-chart/private/heatmap-legend.tsx +15 -3
  30. package/src/charts/heatmap-chart/private/heatmap-scale.ts +74 -0
  31. package/src/charts/heatmap-chart/private/index.ts +6 -3
  32. package/src/charts/heatmap-chart/private/use-heatmap-colors.ts +24 -6
  33. package/src/charts/heatmap-chart/test/column-groups.test.ts +41 -4
  34. package/src/charts/heatmap-chart/test/fit-compact-cells.test.ts +59 -0
  35. package/src/charts/heatmap-chart/test/heatmap-chart.test.tsx +231 -8
  36. package/src/charts/heatmap-chart/test/heatmap-scale.test.ts +78 -0
  37. package/src/charts/heatmap-chart/test/use-heatmap-colors.test.ts +18 -6
  38. package/src/charts/heatmap-chart/types.ts +6 -3
  39. package/src/charts/leaderboard-chart/leaderboard-chart.module.scss +46 -4
  40. package/src/charts/leaderboard-chart/leaderboard-chart.tsx +37 -1
  41. package/src/charts/leaderboard-chart/test/leaderboard-chart.test.tsx +53 -0
  42. package/src/charts/leaderboard-chart/types.ts +6 -1
  43. package/src/charts/line-chart/line-chart.tsx +7 -4
  44. package/src/charts/line-chart/private/line-chart-annotation-label-popover.tsx +19 -9
  45. package/src/charts/line-chart/test/default-tooltip-formatting.test.tsx +1 -1
  46. package/src/charts/line-chart/test/line-chart.test.tsx +45 -35
  47. package/src/charts/line-chart/test/tooltip-resolution.test.tsx +2 -2
  48. package/src/charts/line-chart/types.ts +5 -3
  49. package/src/charts/pie-chart/pie-chart.tsx +153 -143
  50. package/src/charts/pie-chart/test/pie-chart.test.tsx +171 -0
  51. package/src/charts/pie-semi-circle-chart/pie-semi-circle-chart.tsx +126 -124
  52. package/src/charts/pie-semi-circle-chart/test/pie-semi-circle-chart.test.tsx +55 -1
  53. package/src/charts/private/chart-composition/use-chart-children.ts +11 -6
  54. package/src/charts/private/pie-keyboard-navigation/index.ts +4 -0
  55. package/src/charts/private/pie-keyboard-navigation/order-arcs-for-navigation.ts +10 -0
  56. package/src/charts/private/pie-keyboard-navigation/pie-keyboard-navigation.module.scss +16 -0
  57. package/src/charts/private/pie-keyboard-navigation/pie-selection-announcement.tsx +14 -0
  58. package/src/charts/private/pie-keyboard-navigation/pie-selection-output.tsx +82 -0
  59. package/src/charts/private/pie-keyboard-navigation/pie-tooltip.tsx +44 -0
  60. package/src/charts/private/pie-keyboard-navigation/selected-segment-ring.tsx +47 -0
  61. package/src/charts/private/pie-keyboard-navigation/test/order-arcs-for-navigation.test.ts +34 -0
  62. package/src/charts/private/pie-keyboard-navigation/test/selected-segment-ring.test.ts +14 -0
  63. package/src/charts/private/pie-keyboard-navigation/use-pie-keyboard-navigation.ts +139 -0
  64. package/src/charts/private/test/label-text-color.test.ts +6 -8
  65. package/src/charts/private/x-zoom/test/x-zoom.test.tsx +3 -2
  66. package/src/components/tooltip/base-tooltip.tsx +31 -32
  67. package/src/components/tooltip/index.ts +3 -1
  68. package/src/components/tooltip/private/bounded-tooltip.tsx +15 -15
  69. package/src/components/tooltip/private/label-value-content.tsx +8 -0
  70. package/src/components/tooltip/private/xy-chart-tooltip-overlay.tsx +336 -0
  71. package/src/components/tooltip/test/tool-tip.test.tsx +8 -6
  72. package/src/components/tooltip/test/tooltip-box.test.tsx +53 -0
  73. package/src/components/tooltip/test/xy-chart-tooltip-overlay.test.tsx +445 -0
  74. package/src/components/tooltip/test/xy-chart-tooltip.test.tsx +283 -365
  75. package/src/components/tooltip/{base-tooltip.module.scss → tooltip-box.module.scss} +5 -8
  76. package/src/components/tooltip/tooltip-box.tsx +43 -0
  77. package/src/components/tooltip/types.ts +7 -1
  78. package/src/components/tooltip/xy-chart-tooltip.tsx +410 -300
  79. package/src/hooks/test/use-chart-margin.test.tsx +8 -4
  80. package/src/hooks/use-chart-margin.tsx +21 -18
  81. package/src/index.ts +8 -3
  82. package/src/providers/chart-context/global-charts-provider.tsx +5 -14
  83. package/src/providers/chart-context/hooks/use-default-hidden-series.ts +1 -1
  84. package/src/providers/chart-context/private/catalog-pointers.ts +1 -0
  85. package/src/providers/chart-context/private/resolve-opaque-hex.ts +16 -0
  86. package/src/providers/chart-context/test/use-default-hidden-series.test.tsx +1 -1
  87. package/src/styles/chart-scope.scss +1 -0
  88. package/src/test-utils/zoned-parsing-suite.ts +0 -10
  89. package/src/types.ts +18 -2
  90. package/src/utils/test/date-formatting.test.ts +0 -10
  91. package/src/components/tooltip/accessible-tooltip.tsx +0 -433
  92. package/src/components/tooltip/test/accessible-tooltip.test.tsx +0 -331
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { EventHandlerParams, EventHandlerParams as EventHandlerParams$1, GlyphProps, GridStyles, GridStyles as GridStyles$1, LineStyles, LineStyles as LineStyles$1, TooltipContextType } from "@visx/xychart";
2
- import { CSSProperties, ComponentClass, ComponentProps, ComponentType, FC, JSX, MouseEvent, PointerEvent, PropsWithChildren, ReactElement, ReactNode, SVGProps } from "react";
2
+ import { CSSProperties, ComponentClass, ComponentProps, ComponentType, FC, HTMLAttributes, JSX, MouseEvent, PointerEvent, PropsWithChildren, ReactElement, ReactNode, SVGProps } from "react";
3
3
  import { TextProps } from "@visx/text";
4
4
  import { TooltipProps as TooltipProps$1, UseTooltipPortalOptions } from "@visx/tooltip";
5
5
  import { PickD3Scale, ScaleInput, ScaleType } from "@visx/scale";
@@ -145,7 +145,7 @@ type DataPointDate = {
145
145
  /** Per-point fill override for BarChart; other built-in charts ignore it. */
146
146
  color?: string;
147
147
  };
148
- type LeaderboardEntry = {
148
+ type LeaderboardEntryFields = {
149
149
  /**
150
150
  * Unique internal key (e.g., 'key-direct')
151
151
  */
@@ -191,7 +191,8 @@ type LeaderboardEntry = {
191
191
  * For links or other interactive affordances (external-link icons, info
192
192
  * tooltips), put them in the `label` render prop instead of using onClick —
193
193
  * a row is either a button (onClick) or carries interactive label content,
194
- * never both, since interactive elements cannot be nested in HTML.
194
+ * never both, since interactive elements cannot be nested in HTML. The
195
+ * exception is a row that sets `hasInteractiveLabel`.
195
196
  */
196
197
  onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
197
198
  /**
@@ -205,6 +206,18 @@ type LeaderboardEntry = {
205
206
  */
206
207
  ariaLabel?: string;
207
208
  };
209
+ type LeaderboardEntry = LeaderboardEntryFields & ({
210
+ hasInteractiveLabel?: false;
211
+ } | {
212
+ /**
213
+ * Set when the `label` holds its own link or button. The row's button
214
+ * then sits behind the row instead of around it, so both stay operable.
215
+ * Requires `onClick`, and `ariaLabel` since the button wraps no text.
216
+ */
217
+ hasInteractiveLabel: true;
218
+ onClick: (event: MouseEvent<HTMLButtonElement>) => void;
219
+ ariaLabel: string;
220
+ });
208
221
  type GradientStop = {
209
222
  offset: string;
210
223
  color?: string;
@@ -880,14 +893,14 @@ type LineChartAnnotationProps = {
880
893
  subjectType?: 'circle' | 'line-vertical' | 'line-horizontal';
881
894
  styles?: AnnotationStyles;
882
895
  testId?: string;
883
- renderLabel?: FC<{
896
+ renderLabel?: (props: {
884
897
  title: string;
885
898
  subtitle?: string;
886
- }>;
887
- renderLabelPopover?: FC<{
899
+ }) => ReactNode;
900
+ renderLabelPopover?: (props: {
888
901
  title: string;
889
902
  subtitle?: string;
890
- }>;
903
+ }) => ReactNode;
891
904
  };
892
905
  type CurveType = 'smooth' | 'linear' | 'monotone';
893
906
  type RenderLineGlyphProps<Datum extends object> = GlyphProps<Datum> & {
@@ -895,6 +908,8 @@ type RenderLineGlyphProps<Datum extends object> = GlyphProps<Datum> & {
895
908
  position?: 'start' | 'end';
896
909
  };
897
910
  interface LineChartProps extends BaseChartProps<SeriesData[]>, SeriesVisibilityProps {
911
+ /** Accessible name of the chart. Defaults to a localized "Line chart". */
912
+ ariaLabel?: string;
898
913
  /**
899
914
  * Legend configuration. Supports `collapseGroups` on top of the shared options.
900
915
  */
@@ -950,6 +965,8 @@ type TooltipDatum = {
950
965
  //#endregion
951
966
  //#region src/charts/area-chart/types.d.ts
952
967
  interface AreaChartProps extends BaseChartProps<SeriesData[]>, SeriesVisibilityProps {
968
+ /** Accessible name of the chart. Defaults to a localized "Area chart". */
969
+ ariaLabel?: string;
953
970
  /**
954
971
  * Legend configuration. Supports `collapseGroups` on top of the shared options.
955
972
  */
@@ -1059,6 +1076,8 @@ type BandHighlightSelection = {
1059
1076
  height: number;
1060
1077
  };
1061
1078
  interface BarChartProps extends BaseChartProps<SeriesData[]>, SeriesVisibilityProps {
1079
+ /** Accessible name of the chart. Defaults to a localized "Bar chart". */
1080
+ ariaLabel?: string;
1062
1081
  /**
1063
1082
  * Legend configuration. Supports `collapseGroups` on top of the shared options.
1064
1083
  */
@@ -1328,7 +1347,7 @@ declare const GeoChartResponsive: ({ resizeDebounceTime, maxWidth, aspectRatio,
1328
1347
  } & ResponsiveConfig) => import("react").JSX.Element;
1329
1348
  //#endregion
1330
1349
  //#region src/charts/heatmap-chart/types.d.ts
1331
- /** A single heatmap cell. `value: null` marks an empty cell. */
1350
+ /** A single heatmap cell. `value: null` marks an empty cell, as does a zero when no value is negative. */
1332
1351
  type HeatmapCell = {
1333
1352
  /** Per-cell label used in the tooltip / accessible name. */
1334
1353
  label?: string;
@@ -1398,6 +1417,8 @@ interface HeatmapChartProps extends Omit<BaseChartProps<HeatmapColumn[]>, 'showL
1398
1417
  ariaLabel?: string;
1399
1418
  /** Compact mode: hide in-cell values, tighten gap, thin axis labels. Default false. */
1400
1419
  compact?: boolean;
1420
+ /** Compact mode only: grow the cells to fill the chart's box, wrapping the column groups onto more rows when that makes them larger. Default false. */
1421
+ fitCells?: boolean;
1401
1422
  /** Render the numeric value inside each cell. Default `! compact`. */
1402
1423
  showValues?: boolean;
1403
1424
  /**
@@ -1422,8 +1443,9 @@ interface HeatmapChartProps extends Omit<BaseChartProps<HeatmapColumn[]>, 'showL
1422
1443
  /** Floor a cell's height (px) in non-compact mode; see `minCellWidth`. */
1423
1444
  minCellHeight?: number;
1424
1445
  /**
1425
- * Color the cell scale interpolates toward at the highest value. Defaults to the
1426
- * first series palette slot, `--a8c-charts-color-series-1`.
1446
+ * Color the cell scale is built from, deepened at the highest value toward 9:1
1447
+ * against the background. Defaults to the first series palette slot,
1448
+ * `--a8c-charts-color-series-1`.
1427
1449
  */
1428
1450
  primaryColor?: string;
1429
1451
  renderTooltip?: (data: HeatmapTooltipData) => ReactNode;
@@ -1484,7 +1506,7 @@ type MonthCalendarHeatmapResult = {
1484
1506
  //#endregion
1485
1507
  //#region src/charts/heatmap-chart/private/heatmap-legend.d.ts
1486
1508
  interface HeatmapLegendProps {
1487
- /** Number of swatches in the scale. Default 5. */
1509
+ /** Number of color swatches in the scale, not counting the empty-cell swatch. Default 5. */
1488
1510
  steps?: number;
1489
1511
  /**
1490
1512
  * `swatches` spaces the steps out as cell-sized squares; `bar` joins them
@@ -1549,7 +1571,12 @@ declare const useCalendarHeatmapData: (series: DataPointDate[], options?: Calend
1549
1571
  declare const useMonthCalendarHeatmapData: (valueByDay: Record<string, number | null>, range: MonthCalendarHeatmapRange, options?: MonthCalendarHeatmapOptions) => MonthCalendarHeatmapResult;
1550
1572
  //#endregion
1551
1573
  //#region src/charts/leaderboard-chart/types.d.ts
1552
- interface LeaderboardChartProps extends Pick<BaseChartProps<LeaderboardEntry>, 'className' | 'data' | 'showLegend' | 'legend' | 'chartId' | 'width' | 'height' | 'size' | 'gap' | 'animation'> {
1574
+ interface LeaderboardChartProps extends Pick<BaseChartProps<LeaderboardEntry>, 'className' | 'showLegend' | 'legend' | 'chartId' | 'width' | 'height' | 'size' | 'gap' | 'animation'> {
1575
+ /**
1576
+ * Entries to display. Declared here rather than picked, since the base type
1577
+ * would split the entry union into one array type per member.
1578
+ */
1579
+ data: LeaderboardEntry[];
1553
1580
  /**
1554
1581
  * Whether to show comparison data
1555
1582
  */
@@ -1932,9 +1959,13 @@ interface PieChartProps extends BaseChartProps<DataPointPercentage[]> {
1932
1959
  tooltipOffsetY?: number;
1933
1960
  /**
1934
1961
  * Custom render function for tooltip content.
1935
- * When provided, replaces the default BaseTooltip with custom content.
1962
+ * When provided, replaces the default `label: value` tooltip with custom content.
1936
1963
  */
1937
1964
  renderTooltip?: (params: PieChartRenderTooltipParams) => ReactNode;
1965
+ /**
1966
+ * Accessible name of the chart. Defaults to a localized "Pie chart".
1967
+ */
1968
+ ariaLabel?: string;
1938
1969
  }
1939
1970
  type PieChartBaseProps = Optional<PieChartProps, 'size'>;
1940
1971
  type PieChartComponent = ChartComponentWithComposition<PieChartBaseProps>;
@@ -1998,9 +2029,13 @@ interface PieSemiCircleChartProps extends BaseChartProps<DataPointPercentage[]>
1998
2029
  tooltipOffsetY?: number;
1999
2030
  /**
2000
2031
  * Custom render function for tooltip content.
2001
- * When provided, replaces the default BaseTooltip with custom content.
2032
+ * When provided, replaces the default `label: value` tooltip with custom content.
2002
2033
  */
2003
2034
  renderTooltip?: (params: PieSemiCircleChartRenderTooltipParams) => ReactNode;
2035
+ /**
2036
+ * Accessible name of the chart. Defaults to a localized "Semi-circle chart".
2037
+ */
2038
+ ariaLabel?: string;
2004
2039
  }
2005
2040
  type PieSemiCircleChartBaseProps = Optional<PieSemiCircleChartProps, 'width'>;
2006
2041
  type PieSemiCircleChartComponent = ChartComponentWithComposition<PieSemiCircleChartBaseProps>;
@@ -2119,30 +2154,42 @@ declare const Sparkline: ({ resizeDebounceTime, maxWidth, aspectRatio, size, wid
2119
2154
  size?: number;
2120
2155
  } & ResponsiveConfig) => import("react").JSX.Element;
2121
2156
  //#endregion
2122
- //#region src/components/tooltip/base-tooltip.d.ts
2157
+ //#region src/components/tooltip/types.d.ts
2158
+ type TooltipProps = {
2159
+ data: {
2160
+ label: string;
2161
+ value: number;
2162
+ };
2163
+ };
2123
2164
  type TooltipData = {
2124
2165
  label: string;
2125
2166
  value: number;
2126
2167
  valueDisplay?: string;
2127
2168
  };
2169
+ //#endregion
2170
+ //#region src/components/tooltip/base-tooltip.d.ts
2128
2171
  type TooltipComponentProps = {
2129
2172
  data: TooltipData;
2130
2173
  className?: string;
2131
2174
  };
2132
2175
  type TooltipCommonProps = {
2133
- top: number;
2134
- left: number;
2176
+ /** @deprecated Position the box with `style`, or use `TooltipBox`. */
2177
+ top?: number;
2178
+ /** @deprecated Position the box with `style`, or use `TooltipBox`. */
2179
+ left?: number;
2135
2180
  style?: CSSProperties;
2136
2181
  className?: string;
2137
2182
  /**
2138
2183
  * Whether to render the tooltip container div. When false, only renders the content.
2139
- * Useful when the tooltip is rendered inside a portal or custom container.
2184
+ * @deprecated Render the content directly; `TooltipBox` draws the box.
2140
2185
  * @default true
2141
2186
  */
2142
2187
  renderContainer?: boolean;
2143
2188
  };
2144
2189
  type DefaultDataTooltip = {
2190
+ /** @deprecated Pass the content as children, or use `TooltipBox`. */
2145
2191
  data: TooltipData;
2192
+ /** @deprecated Pass the content as children, or use `TooltipBox`. */
2146
2193
  component?: ComponentType<TooltipComponentProps>;
2147
2194
  children?: never;
2148
2195
  };
@@ -2152,16 +2199,31 @@ type CustomTooltip = {
2152
2199
  component?: never;
2153
2200
  };
2154
2201
  type BaseTooltipProps = TooltipCommonProps & (DefaultDataTooltip | CustomTooltip);
2202
+ /**
2203
+ * A tooltip box with children or `label: value` content. Prefer `TooltipBox`.
2204
+ *
2205
+ * @param props - Tooltip props.
2206
+ * @param props.data - Data for the default content.
2207
+ * @param props.top - Deprecated vertical position.
2208
+ * @param props.left - Deprecated horizontal position.
2209
+ * @param props.component - Deprecated content component.
2210
+ * @param props.children - Tooltip content.
2211
+ * @param props.className - Class name passed to the content component.
2212
+ * @param props.style - Styles for the box.
2213
+ * @param props.renderContainer - Deprecated; render the content alone when false.
2214
+ * @return The tooltip.
2215
+ */
2155
2216
  declare const BaseTooltip: ({ data, top, left, component: Component, children, className, style, renderContainer }: BaseTooltipProps) => string | number | true | import("react").JSX.Element | Iterable<ReactNode>;
2156
2217
  //#endregion
2157
- //#region src/components/tooltip/accessible-tooltip.d.ts
2218
+ //#region src/components/tooltip/xy-chart-tooltip.d.ts
2158
2219
  type FlattenedTooltipData = {
2159
2220
  datum: DataPointDate;
2160
2221
  seriesLabel: string;
2161
2222
  seriesIndex: number;
2162
2223
  dataPointIndex: number;
2163
2224
  };
2164
- interface AccessibleTooltipProps extends Omit<XyChartTooltipProps<DataPointDate>, 'renderTooltip'> {
2225
+ /** The XY chart tooltip that LineChart, AreaChart and BarChart render; place it inside a visx `XYChart`. */
2226
+ interface XYChartTooltipProps extends Omit<XyChartTooltipProps<DataPointDate>, 'renderTooltip'> {
2165
2227
  renderTooltip?: (params: RenderTooltipParams<DataPointDate>) => ReactNode;
2166
2228
  selectedIndex?: number | undefined;
2167
2229
  tooltipRef?: (element: HTMLDivElement | null) => void;
@@ -2182,15 +2244,27 @@ interface AccessibleTooltipProps extends Omit<XyChartTooltipProps<DataPointDate>
2182
2244
  */
2183
2245
  mode?: 'individual' | 'group';
2184
2246
  }
2185
- declare const AccessibleTooltip: React.FC<AccessibleTooltipProps>;
2247
+ declare const XYChartTooltip: React.FC<XYChartTooltipProps>;
2248
+ /** @deprecated Use `XYChartTooltip`. */
2249
+ declare const AccessibleTooltip: import("react").FC<XYChartTooltipProps>;
2186
2250
  //#endregion
2187
- //#region src/components/tooltip/types.d.ts
2188
- type TooltipProps = {
2189
- data: {
2190
- label: string;
2191
- value: number;
2192
- };
2251
+ //#region src/components/tooltip/tooltip-box.d.ts
2252
+ type TooltipBoxProps = HTMLAttributes<HTMLDivElement> & {
2253
+ /** Drop the chart surface, scope class and dark theme, leaving a bare box. */
2254
+ unstyled?: boolean;
2193
2255
  };
2256
+ /**
2257
+ * The chart tooltip box: the dark surface every chart tooltip draws. It does not position itself; place it with `style` or a wrapper.
2258
+ *
2259
+ * @param props - Div attributes, plus `unstyled`.
2260
+ * @param props.unstyled - Drop the surface, scope class and theme.
2261
+ * @param ref - Forwarded to the box element.
2262
+ * @return The tooltip box.
2263
+ */
2264
+ declare const TooltipBox: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
2265
+ /** Drop the chart surface, scope class and dark theme, leaving a bare box. */
2266
+ unstyled?: boolean;
2267
+ } & import("react").RefAttributes<HTMLDivElement>>;
2194
2268
  //#endregion
2195
2269
  //#region src/components/trend-indicator/types.d.ts
2196
2270
  /**
@@ -2341,5 +2415,5 @@ declare const defaultTheme: CompleteChartTheme;
2341
2415
  */
2342
2416
  declare const useChartScopeElement: () => HTMLElement | null;
2343
2417
  //#endregion
2344
- export { AccessibleTooltip, type AnnotationStyles, type ArcData, AreaChartResponsive as AreaChart, type AreaChartProps, AreaChart as AreaChartUnresponsive, type AxisOptions, type BandHighlightSelection, 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 BucketInfo, type CalendarHeatmapOptions, type CalendarHeatmapResult, type ChartFormatting, type ChartLegendConfig, type ChartLegendOptions, type ChartTheme, type CompleteChartTheme, ConversionFunnelChartWithProvider as ConversionFunnelChart, type ConversionFunnelChartProps, type CrosshairStyle, type CurveType, type DataPoint, type DataPointDate, type DataPointPercentage, type EventHandlerParams, type FunnelStep, GeoChartResponsive as GeoChart, type GeoChartError, type GeoChartProps, GeoChartWithProvider as GeoChartUnresponsive, type GeoData, type GeoDisplayMode, type GeoRegion, type GeoResolution, GlobalChartsContext, GlobalChartsProvider, GlobalChartsProvider as ThemeProvider, type GoogleDataTableColumn, GoogleDataTableColumnRoleType, type GoogleDataTableRow, type GradientConfig, type GradientStop, type GridStyles, type HeatmapCell, HeatmapChartResponsive as HeatmapChart, type HeatmapChartProps, HeatmapChart as HeatmapChartUnresponsive, type HeatmapColumn, type HeatmapColumnGroup, type HeatmapTooltipData, 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 MonthCalendarHeatmapOptions, type MonthCalendarHeatmapRange, type MonthCalendarHeatmapResult, 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 SeriesChartLegendConfig, type SeriesData, type SeriesDataOptions, type SeriesVisibilityProps, Sparkline, type SparklineDataPoint, type SparklineProps, SparklineUnresponsive, type StepLabelRenderProps, type StepRateRenderProps, type TickResolution, type TooltipData, type TooltipDatum, type TooltipPlacement, type TooltipProps, type TooltipRenderProps, type TrendDirection, TrendIndicator, type TrendIndicatorProps, type XyChartTooltipProps, buildCalendarHeatmapData, buildMonthCalendarHeatmapData, defaultTheme, formatMetricValue, formatPercentage, getBucketInfo, getColorDistance, hexToRgba, isValidHexColor, lightenHexColor, mergeThemes, mixHexColors, normalizeColorToHex, parseAsLocalDate, parseHslString, prefersLightText, relativeLuminance, resolveCssVariable, useCalendarHeatmapData, useChartFormatting, useChartLegendItems, useChartRegistration, useChartScopeElement, useGlobalChartsContext, useGlobalChartsTheme, useLeaderboardLegendItems, useMonthCalendarHeatmapData, validateHexColor };
2418
+ export { AccessibleTooltip, type AnnotationStyles, type ArcData, AreaChartResponsive as AreaChart, type AreaChartProps, AreaChart as AreaChartUnresponsive, type AxisOptions, type BandHighlightSelection, 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 BucketInfo, type CalendarHeatmapOptions, type CalendarHeatmapResult, type ChartFormatting, type ChartLegendConfig, type ChartLegendOptions, type ChartTheme, type CompleteChartTheme, ConversionFunnelChartWithProvider as ConversionFunnelChart, type ConversionFunnelChartProps, type CrosshairStyle, type CurveType, type DataPoint, type DataPointDate, type DataPointPercentage, type EventHandlerParams, type FunnelStep, GeoChartResponsive as GeoChart, type GeoChartError, type GeoChartProps, GeoChartWithProvider as GeoChartUnresponsive, type GeoData, type GeoDisplayMode, type GeoRegion, type GeoResolution, GlobalChartsContext, GlobalChartsProvider, GlobalChartsProvider as ThemeProvider, type GoogleDataTableColumn, GoogleDataTableColumnRoleType, type GoogleDataTableRow, type GradientConfig, type GradientStop, type GridStyles, type HeatmapCell, HeatmapChartResponsive as HeatmapChart, type HeatmapChartProps, HeatmapChart as HeatmapChartUnresponsive, type HeatmapColumn, type HeatmapColumnGroup, type HeatmapTooltipData, 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 MonthCalendarHeatmapOptions, type MonthCalendarHeatmapRange, type MonthCalendarHeatmapResult, 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 SeriesChartLegendConfig, type SeriesData, type SeriesDataOptions, type SeriesVisibilityProps, Sparkline, type SparklineDataPoint, type SparklineProps, SparklineUnresponsive, type StepLabelRenderProps, type StepRateRenderProps, type TickResolution, TooltipBox, type TooltipBoxProps, type TooltipData, type TooltipDatum, type TooltipPlacement, type TooltipProps, type TooltipRenderProps, type TrendDirection, TrendIndicator, type TrendIndicatorProps, XYChartTooltip, type XyChartTooltipProps, buildCalendarHeatmapData, buildMonthCalendarHeatmapData, defaultTheme, formatMetricValue, formatPercentage, getBucketInfo, getColorDistance, hexToRgba, isValidHexColor, lightenHexColor, mergeThemes, mixHexColors, normalizeColorToHex, parseAsLocalDate, parseHslString, prefersLightText, relativeLuminance, resolveCssVariable, useCalendarHeatmapData, useChartFormatting, useChartLegendItems, useChartRegistration, useChartScopeElement, useGlobalChartsContext, useGlobalChartsTheme, useLeaderboardLegendItems, useMonthCalendarHeatmapData, validateHexColor };
2345
2419
  //# sourceMappingURL=index.d.ts.map