@automattic/charts 1.10.0 → 1.10.1
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 +9 -0
- package/dist/index.cjs +5700 -5584
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +15 -3
- package/dist/index.d.cts +26 -12
- package/dist/index.d.ts +27 -13
- package/dist/index.js +1026 -912
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/charts/heatmap-chart/heatmap-chart.module.scss +4 -4
- package/src/charts/heatmap-chart/heatmap-chart.tsx +37 -36
- package/src/charts/heatmap-chart/private/build-calendar-data.ts +17 -1
- package/src/charts/heatmap-chart/private/heatmap-context.ts +10 -0
- package/src/charts/heatmap-chart/private/heatmap-legend.tsx +3 -2
- package/src/charts/heatmap-chart/private/index.ts +2 -0
- package/src/charts/heatmap-chart/test/build-calendar-data.test.ts +23 -1
- package/src/charts/heatmap-chart/test/heatmap-chart.test.tsx +10 -3
- package/src/charts/leaderboard-chart/leaderboard-chart.module.scss +12 -0
- package/src/charts/leaderboard-chart/leaderboard-chart.tsx +65 -37
- package/src/charts/leaderboard-chart/test/leaderboard-chart.test.tsx +46 -0
- package/src/hooks/test/use-chart-margin.test.tsx +8 -5
- package/src/hooks/use-chart-margin.tsx +11 -1
- package/src/providers/chart-context/global-charts-provider.tsx +7 -0
- package/src/providers/chart-context/test/chart-context.test.tsx +40 -0
- package/src/providers/chart-context/types.ts +3 -0
- package/src/types.ts +9 -6
- package/src/utils/color-utils.ts +28 -0
- package/src/utils/test/color-utils.test.ts +29 -0
package/dist/index.css
CHANGED
|
@@ -416,7 +416,7 @@
|
|
|
416
416
|
gap: var(--heatmap-cell-gap, var(--wpds-dimension-gap-xs, 4px));
|
|
417
417
|
flex: 1 1 0;
|
|
418
418
|
width: 100%;
|
|
419
|
-
min-height:
|
|
419
|
+
min-height: 0;
|
|
420
420
|
display: grid;
|
|
421
421
|
}
|
|
422
422
|
|
|
@@ -466,7 +466,7 @@
|
|
|
466
466
|
}
|
|
467
467
|
|
|
468
468
|
.a8ccharts-O3YMOW-heatmap-chart__cell--filled {
|
|
469
|
-
background: color-mix(in sRGB, var(--heatmap-primary) calc((.15 + .85 * var(--intensity)) * 100%),
|
|
469
|
+
background: color-mix(in sRGB, var(--heatmap-primary) calc((.15 + .85 * var(--intensity)) * 100%), var(--heatmap-bg, #fff));
|
|
470
470
|
}
|
|
471
471
|
|
|
472
472
|
.a8ccharts-O3YMOW-heatmap-chart__cell--selected {
|
|
@@ -487,7 +487,7 @@
|
|
|
487
487
|
width: var(--wpds-dimension-size-3xs, 12px);
|
|
488
488
|
height: var(--wpds-dimension-size-3xs, 12px);
|
|
489
489
|
border-radius: var(--wpds-border-radius-sm, 2px);
|
|
490
|
-
background: color-mix(in sRGB, var(--heatmap-primary) calc((.15 + .85 * var(--intensity)) * 100%),
|
|
490
|
+
background: color-mix(in sRGB, var(--heatmap-primary) calc((.15 + .85 * var(--intensity)) * 100%), var(--heatmap-bg, #fff));
|
|
491
491
|
}
|
|
492
492
|
.a8ccharts-GovfoW-leaderboardChart {
|
|
493
493
|
transition: opacity var(--wpds-motion-duration-lg, .3s) var(--wpds-motion-easing-subtle, cubic-bezier(.15, 0, .15, 1));
|
|
@@ -552,6 +552,18 @@
|
|
|
552
552
|
|
|
553
553
|
.a8ccharts-GovfoW-valueContainer {
|
|
554
554
|
justify-content: flex-end;
|
|
555
|
+
align-items: center;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
.a8ccharts-GovfoW-deltaValue {
|
|
559
|
+
font-variant-numeric: tabular-nums;
|
|
560
|
+
text-align: end;
|
|
561
|
+
min-width: 3ch;
|
|
562
|
+
display: inline-block;
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
.a8ccharts-GovfoW-deltaPlaceholder {
|
|
566
|
+
text-align: center;
|
|
555
567
|
}
|
|
556
568
|
|
|
557
569
|
.a8ccharts-GovfoW-overlayLabel {
|
package/dist/index.d.cts
CHANGED
|
@@ -138,21 +138,24 @@ type LeaderboardEntry = {
|
|
|
138
138
|
*/
|
|
139
139
|
currentValue: number;
|
|
140
140
|
/**
|
|
141
|
-
* Value of the entry in the previous period
|
|
141
|
+
* Value of the entry in the previous period. Omit when this row has no
|
|
142
|
+
* matching comparison-period value.
|
|
142
143
|
*/
|
|
143
|
-
previousValue
|
|
144
|
+
previousValue?: number;
|
|
144
145
|
/**
|
|
145
146
|
* Width of current bar, as % of the current value
|
|
146
147
|
*/
|
|
147
148
|
currentShare: number;
|
|
148
149
|
/**
|
|
149
|
-
* Width of previous bar, as % of the current value
|
|
150
|
+
* Width of previous bar, as % of the current value. Omit when this row has
|
|
151
|
+
* no matching comparison-period value.
|
|
150
152
|
*/
|
|
151
|
-
previousShare
|
|
153
|
+
previousShare?: number;
|
|
152
154
|
/**
|
|
153
|
-
* Delta of the entry
|
|
155
|
+
* Delta of the entry. Omit when this row has no matching comparison-period
|
|
156
|
+
* value.
|
|
154
157
|
*/
|
|
155
|
-
delta
|
|
158
|
+
delta?: number;
|
|
156
159
|
/**
|
|
157
160
|
* Optional color for the entry's image/icon
|
|
158
161
|
*/
|
|
@@ -939,7 +942,7 @@ declare const BarListChartResponsive: ({
|
|
|
939
942
|
width,
|
|
940
943
|
height,
|
|
941
944
|
...chartProps
|
|
942
|
-
}: Omit<BarListChartProps, "
|
|
945
|
+
}: Omit<BarListChartProps, "size" | "width" | "height"> & {
|
|
943
946
|
width?: number;
|
|
944
947
|
height?: number;
|
|
945
948
|
size?: number;
|
|
@@ -1093,7 +1096,7 @@ declare const GeoChartResponsive: ({
|
|
|
1093
1096
|
width,
|
|
1094
1097
|
height,
|
|
1095
1098
|
...chartProps
|
|
1096
|
-
}: Omit<GeoChartProps, "
|
|
1099
|
+
}: Omit<GeoChartProps, "size" | "width" | "height"> & {
|
|
1097
1100
|
width?: number;
|
|
1098
1101
|
height?: number;
|
|
1099
1102
|
size?: number;
|
|
@@ -1229,7 +1232,7 @@ declare const LeaderboardChartResponsive: (({
|
|
|
1229
1232
|
width,
|
|
1230
1233
|
height,
|
|
1231
1234
|
...chartProps
|
|
1232
|
-
}: Omit<LeaderboardChartProps, "
|
|
1235
|
+
}: Omit<LeaderboardChartProps, "size" | "width" | "height"> & {
|
|
1233
1236
|
width?: number;
|
|
1234
1237
|
height?: number;
|
|
1235
1238
|
size?: number;
|
|
@@ -1415,6 +1418,16 @@ declare const normalizeColorToHex: (color: string, element?: HTMLElement | null,
|
|
|
1415
1418
|
* @throws {Error} if hex string is malformed
|
|
1416
1419
|
*/
|
|
1417
1420
|
declare const lightenHexColor: (hex: string, blend: number) => string;
|
|
1421
|
+
/**
|
|
1422
|
+
* Blend one hex color toward another, per-channel in sRGB.
|
|
1423
|
+
*
|
|
1424
|
+
* @param fromHex - Starting hex color, returned when blend is 0
|
|
1425
|
+
* @param toHex - Target hex color, returned when blend is 1
|
|
1426
|
+
* @param blend - Amount toward toHex, clamped to [0, 1]
|
|
1427
|
+
* @return Blended hex color string
|
|
1428
|
+
* @throws {Error} if either hex string is malformed
|
|
1429
|
+
*/
|
|
1430
|
+
declare const mixHexColors: (fromHex: string, toHex: string, blend: number) => string;
|
|
1418
1431
|
/**
|
|
1419
1432
|
* WCAG relative luminance of a hex color (0 = black, 1 = white).
|
|
1420
1433
|
*
|
|
@@ -1752,7 +1765,7 @@ declare const Sparkline: ({
|
|
|
1752
1765
|
width,
|
|
1753
1766
|
height,
|
|
1754
1767
|
...chartProps
|
|
1755
|
-
}: Omit<SparklineProps, "
|
|
1768
|
+
}: Omit<SparklineProps, "size" | "width" | "height"> & {
|
|
1756
1769
|
width?: number;
|
|
1757
1770
|
height?: number;
|
|
1758
1771
|
size?: number;
|
|
@@ -1800,7 +1813,7 @@ declare const BaseTooltip: ({
|
|
|
1800
1813
|
className,
|
|
1801
1814
|
style,
|
|
1802
1815
|
renderContainer
|
|
1803
|
-
}: BaseTooltipProps) => string | number | true | import("react/jsx-runtime").JSX.Element
|
|
1816
|
+
}: BaseTooltipProps) => string | number | true | Iterable<ReactNode> | import("react/jsx-runtime").JSX.Element;
|
|
1804
1817
|
//#endregion
|
|
1805
1818
|
//#region src/components/tooltip/accessible-tooltip.d.ts
|
|
1806
1819
|
type FlattenedTooltipData = {
|
|
@@ -1914,6 +1927,7 @@ interface GlobalChartsContextValue {
|
|
|
1914
1927
|
getChartData: (id: string) => ChartRegistration | undefined;
|
|
1915
1928
|
theme: CompleteChartTheme;
|
|
1916
1929
|
getElementStyles: (params: GetElementStylesParams) => ElementStyles;
|
|
1930
|
+
resolveThemeColor: (value: string) => string;
|
|
1917
1931
|
toggleSeriesVisibility: (chartId: string, seriesLabel: string) => void;
|
|
1918
1932
|
isSeriesVisible: (chartId: string, seriesLabel: string) => boolean;
|
|
1919
1933
|
getHiddenSeries: (chartId: string) => Set<string>;
|
|
@@ -1945,5 +1959,5 @@ declare const useGlobalChartsTheme: () => CompleteChartTheme;
|
|
|
1945
1959
|
*/
|
|
1946
1960
|
declare const defaultTheme: CompleteChartTheme;
|
|
1947
1961
|
//#endregion
|
|
1948
|
-
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 CalendarHeatmapResult, 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 GeoChartError, 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, type HeatmapCell, HeatmapChartResponsive as HeatmapChart, type HeatmapChartProps, HeatmapChart as HeatmapChartUnresponsive, type HeatmapColumn, 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 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, buildCalendarHeatmapData, defaultTheme, formatMetricValue, formatPercentage, getColorDistance, hexToRgba, isValidHexColor, lightenHexColor, mergeThemes, normalizeColorToHex, parseAsLocalDate, parseHslString, parseRgbString, prefersLightText, relativeLuminance, useChartLegendItems, useGlobalChartsContext, useGlobalChartsTheme, useLeaderboardLegendItems, validateHexColor };
|
|
1962
|
+
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 CalendarHeatmapResult, 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 GeoChartError, 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, type HeatmapCell, HeatmapChartResponsive as HeatmapChart, type HeatmapChartProps, HeatmapChart as HeatmapChartUnresponsive, type HeatmapColumn, 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 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, buildCalendarHeatmapData, defaultTheme, formatMetricValue, formatPercentage, getColorDistance, hexToRgba, isValidHexColor, lightenHexColor, mergeThemes, mixHexColors, normalizeColorToHex, parseAsLocalDate, parseHslString, parseRgbString, prefersLightText, relativeLuminance, useChartLegendItems, useGlobalChartsContext, useGlobalChartsTheme, useLeaderboardLegendItems, validateHexColor };
|
|
1949
1963
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { EventHandlerParams, EventHandlerParams as EventHandlerParams$1, GlyphProps, GridStyles, GridStyles as GridStyles$1, LineStyles, LineStyles as LineStyles$1, TooltipContextType } from "@visx/xychart";
|
|
2
2
|
import { CSSProperties, ComponentClass, ComponentProps, ComponentType, FC, MouseEvent, PointerEvent, PropsWithChildren, ReactElement, ReactNode, SVGProps } from "react";
|
|
3
3
|
import { TextProps } from "@visx/text";
|
|
4
|
+
import { TooltipProps as TooltipProps$1, UseTooltipPortalOptions } from "@visx/tooltip";
|
|
4
5
|
import { PickD3Scale, ScaleInput, ScaleType } from "@visx/scale";
|
|
5
6
|
import { LegendOrdinal } from "@visx/legend";
|
|
6
7
|
import { CircleSubjectProps, ConnectorProps, LabelProps, LineSubjectProps } from "@visx/annotation";
|
|
7
|
-
import { TooltipProps as TooltipProps$1, UseTooltipPortalOptions } from "@visx/tooltip";
|
|
8
8
|
import { PieProvidedProps } from "@visx/shape";
|
|
9
9
|
import { AxisRendererProps, AxisScale, Orientation, TickFormatter } from "@visx/axis";
|
|
10
10
|
|
|
@@ -138,21 +138,24 @@ type LeaderboardEntry = {
|
|
|
138
138
|
*/
|
|
139
139
|
currentValue: number;
|
|
140
140
|
/**
|
|
141
|
-
* Value of the entry in the previous period
|
|
141
|
+
* Value of the entry in the previous period. Omit when this row has no
|
|
142
|
+
* matching comparison-period value.
|
|
142
143
|
*/
|
|
143
|
-
previousValue
|
|
144
|
+
previousValue?: number;
|
|
144
145
|
/**
|
|
145
146
|
* Width of current bar, as % of the current value
|
|
146
147
|
*/
|
|
147
148
|
currentShare: number;
|
|
148
149
|
/**
|
|
149
|
-
* Width of previous bar, as % of the current value
|
|
150
|
+
* Width of previous bar, as % of the current value. Omit when this row has
|
|
151
|
+
* no matching comparison-period value.
|
|
150
152
|
*/
|
|
151
|
-
previousShare
|
|
153
|
+
previousShare?: number;
|
|
152
154
|
/**
|
|
153
|
-
* Delta of the entry
|
|
155
|
+
* Delta of the entry. Omit when this row has no matching comparison-period
|
|
156
|
+
* value.
|
|
154
157
|
*/
|
|
155
|
-
delta
|
|
158
|
+
delta?: number;
|
|
156
159
|
/**
|
|
157
160
|
* Optional color for the entry's image/icon
|
|
158
161
|
*/
|
|
@@ -939,7 +942,7 @@ declare const BarListChartResponsive: ({
|
|
|
939
942
|
width,
|
|
940
943
|
height,
|
|
941
944
|
...chartProps
|
|
942
|
-
}: Omit<BarListChartProps, "
|
|
945
|
+
}: Omit<BarListChartProps, "size" | "width" | "height"> & {
|
|
943
946
|
width?: number;
|
|
944
947
|
height?: number;
|
|
945
948
|
size?: number;
|
|
@@ -1093,7 +1096,7 @@ declare const GeoChartResponsive: ({
|
|
|
1093
1096
|
width,
|
|
1094
1097
|
height,
|
|
1095
1098
|
...chartProps
|
|
1096
|
-
}: Omit<GeoChartProps, "
|
|
1099
|
+
}: Omit<GeoChartProps, "size" | "width" | "height"> & {
|
|
1097
1100
|
width?: number;
|
|
1098
1101
|
height?: number;
|
|
1099
1102
|
size?: number;
|
|
@@ -1229,7 +1232,7 @@ declare const LeaderboardChartResponsive: (({
|
|
|
1229
1232
|
width,
|
|
1230
1233
|
height,
|
|
1231
1234
|
...chartProps
|
|
1232
|
-
}: Omit<LeaderboardChartProps, "
|
|
1235
|
+
}: Omit<LeaderboardChartProps, "size" | "width" | "height"> & {
|
|
1233
1236
|
width?: number;
|
|
1234
1237
|
height?: number;
|
|
1235
1238
|
size?: number;
|
|
@@ -1415,6 +1418,16 @@ declare const normalizeColorToHex: (color: string, element?: HTMLElement | null,
|
|
|
1415
1418
|
* @throws {Error} if hex string is malformed
|
|
1416
1419
|
*/
|
|
1417
1420
|
declare const lightenHexColor: (hex: string, blend: number) => string;
|
|
1421
|
+
/**
|
|
1422
|
+
* Blend one hex color toward another, per-channel in sRGB.
|
|
1423
|
+
*
|
|
1424
|
+
* @param fromHex - Starting hex color, returned when blend is 0
|
|
1425
|
+
* @param toHex - Target hex color, returned when blend is 1
|
|
1426
|
+
* @param blend - Amount toward toHex, clamped to [0, 1]
|
|
1427
|
+
* @return Blended hex color string
|
|
1428
|
+
* @throws {Error} if either hex string is malformed
|
|
1429
|
+
*/
|
|
1430
|
+
declare const mixHexColors: (fromHex: string, toHex: string, blend: number) => string;
|
|
1418
1431
|
/**
|
|
1419
1432
|
* WCAG relative luminance of a hex color (0 = black, 1 = white).
|
|
1420
1433
|
*
|
|
@@ -1752,7 +1765,7 @@ declare const Sparkline: ({
|
|
|
1752
1765
|
width,
|
|
1753
1766
|
height,
|
|
1754
1767
|
...chartProps
|
|
1755
|
-
}: Omit<SparklineProps, "
|
|
1768
|
+
}: Omit<SparklineProps, "size" | "width" | "height"> & {
|
|
1756
1769
|
width?: number;
|
|
1757
1770
|
height?: number;
|
|
1758
1771
|
size?: number;
|
|
@@ -1800,7 +1813,7 @@ declare const BaseTooltip: ({
|
|
|
1800
1813
|
className,
|
|
1801
1814
|
style,
|
|
1802
1815
|
renderContainer
|
|
1803
|
-
}: BaseTooltipProps) => string | number | true | import("react/jsx-runtime").JSX.Element
|
|
1816
|
+
}: BaseTooltipProps) => string | number | true | Iterable<ReactNode> | import("react/jsx-runtime").JSX.Element;
|
|
1804
1817
|
//#endregion
|
|
1805
1818
|
//#region src/components/tooltip/accessible-tooltip.d.ts
|
|
1806
1819
|
type FlattenedTooltipData = {
|
|
@@ -1914,6 +1927,7 @@ interface GlobalChartsContextValue {
|
|
|
1914
1927
|
getChartData: (id: string) => ChartRegistration | undefined;
|
|
1915
1928
|
theme: CompleteChartTheme;
|
|
1916
1929
|
getElementStyles: (params: GetElementStylesParams) => ElementStyles;
|
|
1930
|
+
resolveThemeColor: (value: string) => string;
|
|
1917
1931
|
toggleSeriesVisibility: (chartId: string, seriesLabel: string) => void;
|
|
1918
1932
|
isSeriesVisible: (chartId: string, seriesLabel: string) => boolean;
|
|
1919
1933
|
getHiddenSeries: (chartId: string) => Set<string>;
|
|
@@ -1945,5 +1959,5 @@ declare const useGlobalChartsTheme: () => CompleteChartTheme;
|
|
|
1945
1959
|
*/
|
|
1946
1960
|
declare const defaultTheme: CompleteChartTheme;
|
|
1947
1961
|
//#endregion
|
|
1948
|
-
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 CalendarHeatmapResult, 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 GeoChartError, 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, type HeatmapCell, HeatmapChartResponsive as HeatmapChart, type HeatmapChartProps, HeatmapChart as HeatmapChartUnresponsive, type HeatmapColumn, 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 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, buildCalendarHeatmapData, defaultTheme, formatMetricValue, formatPercentage, getColorDistance, hexToRgba, isValidHexColor, lightenHexColor, mergeThemes, normalizeColorToHex, parseAsLocalDate, parseHslString, parseRgbString, prefersLightText, relativeLuminance, useChartLegendItems, useGlobalChartsContext, useGlobalChartsTheme, useLeaderboardLegendItems, validateHexColor };
|
|
1962
|
+
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 CalendarHeatmapResult, 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 GeoChartError, 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, type HeatmapCell, HeatmapChartResponsive as HeatmapChart, type HeatmapChartProps, HeatmapChart as HeatmapChartUnresponsive, type HeatmapColumn, 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 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, buildCalendarHeatmapData, defaultTheme, formatMetricValue, formatPercentage, getColorDistance, hexToRgba, isValidHexColor, lightenHexColor, mergeThemes, mixHexColors, normalizeColorToHex, parseAsLocalDate, parseHslString, parseRgbString, prefersLightText, relativeLuminance, useChartLegendItems, useGlobalChartsContext, useGlobalChartsTheme, useLeaderboardLegendItems, validateHexColor };
|
|
1949
1963
|
//# sourceMappingURL=index.d.ts.map
|