@automattic/charts 4.12.0 → 4.13.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 +11 -0
- package/dist/index.cjs +641 -636
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +40 -12
- package/dist/index.d.cts +26 -121
- package/dist/index.d.ts +26 -121
- package/dist/index.js +630 -613
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/charts/area-chart/area-chart.tsx +16 -6
- package/src/charts/area-chart/test/area-chart.test.tsx +42 -9
- package/src/charts/bar-chart/bar-chart.tsx +17 -12
- package/src/charts/bar-chart/private/index.ts +1 -1
- package/src/charts/bar-chart/private/slot-tooltip-members.tsx +4 -5
- package/src/charts/bar-chart/private/use-bar-stops.ts +1 -3
- package/src/charts/bar-chart/private/use-overlap-slots.ts +35 -16
- package/src/charts/bar-chart/test/bar-chart.test.tsx +115 -0
- package/src/charts/conversion-funnel-chart/conversion-funnel-chart.module.scss +24 -11
- package/src/charts/conversion-funnel-chart/conversion-funnel-chart.tsx +235 -182
- package/src/charts/conversion-funnel-chart/index.ts +2 -0
- package/src/charts/conversion-funnel-chart/private/index.ts +1 -0
- package/src/charts/conversion-funnel-chart/private/use-funnel-selection.ts +9 -47
- package/src/charts/conversion-funnel-chart/private/use-roving-step-focus.ts +83 -0
- package/src/charts/conversion-funnel-chart/test/conversion-funnel-chart.test.tsx +312 -92
- package/src/charts/conversion-funnel-chart/test/use-funnel-selection.test.ts +23 -188
- package/src/charts/conversion-funnel-chart/types.ts +22 -0
- package/src/charts/leaderboard-chart/leaderboard-chart.module.scss +41 -1
- package/src/charts/leaderboard-chart/leaderboard-chart.tsx +101 -30
- package/src/charts/leaderboard-chart/test/leaderboard-chart.test.tsx +47 -0
- package/src/charts/line-chart/line-chart.tsx +10 -8
- package/src/charts/line-chart/test/line-chart.test.tsx +75 -0
- package/src/components/tooltip/private/at-nearest-date.ts +49 -0
- package/src/components/tooltip/private/keyboard-stops.ts +67 -0
- package/src/components/tooltip/private/xy-chart-tooltip-overlay.tsx +10 -2
- package/src/components/tooltip/test/keyboard-stops.test.ts +36 -0
- package/src/components/tooltip/test/xy-chart-tooltip.test.tsx +135 -1
- package/src/components/tooltip/xy-chart-tooltip.tsx +8 -12
- package/src/index.ts +2 -0
- package/src/types.ts +4 -3
package/dist/index.css
CHANGED
|
@@ -421,14 +421,18 @@
|
|
|
421
421
|
height: 100%;
|
|
422
422
|
}
|
|
423
423
|
|
|
424
|
-
.a8ccharts-mGEVca-funnel-step--animated {
|
|
425
|
-
transition: opacity var(--wpds-motion-duration-lg, .3s) var(--wpds-motion-easing-subtle, cubic-bezier(.15, 0, .15, 1));
|
|
424
|
+
.a8ccharts-mGEVca-funnel-step--animated .a8ccharts-mGEVca-step-text, .a8ccharts-mGEVca-funnel-step--animated .a8ccharts-mGEVca-funnel-bar, .a8ccharts-mGEVca-funnel-step--animated .a8ccharts-mGEVca-bar-container {
|
|
425
|
+
transition: opacity var(--wpds-motion-duration-lg, .3s) var(--wpds-motion-easing-subtle, cubic-bezier(.15, 0, .15, 1)), background-color var(--wpds-motion-duration-lg, .3s) var(--wpds-motion-easing-subtle, cubic-bezier(.15, 0, .15, 1));
|
|
426
426
|
}
|
|
427
427
|
|
|
428
|
-
.a8ccharts-mGEVca-funnel-step--blurred {
|
|
428
|
+
.a8ccharts-mGEVca-funnel-step--blurred .a8ccharts-mGEVca-step-text, .a8ccharts-mGEVca-funnel-step--blurred .a8ccharts-mGEVca-funnel-bar {
|
|
429
429
|
opacity: .3;
|
|
430
430
|
}
|
|
431
431
|
|
|
432
|
+
.a8ccharts-mGEVca-funnel-step--blurred .a8ccharts-mGEVca-bar-container {
|
|
433
|
+
background-color: color-mix(in sRGB, var(--a8c-charts-color-surface-secondary) 30%, transparent);
|
|
434
|
+
}
|
|
435
|
+
|
|
432
436
|
.a8ccharts-mGEVca-step-label {
|
|
433
437
|
color: var(--a8c-charts-color-label-secondary);
|
|
434
438
|
font-size: var(--wpds-typography-font-size-sm, 12px);
|
|
@@ -481,20 +485,16 @@
|
|
|
481
485
|
}
|
|
482
486
|
}
|
|
483
487
|
|
|
484
|
-
.a8ccharts-mGEVca-tooltip-title {
|
|
488
|
+
.a8ccharts-mGEVca-tooltip-title, .a8ccharts-mGEVca-tooltip-label, .a8ccharts-mGEVca-tooltip-value {
|
|
485
489
|
color: var(--a8c-charts-color-label);
|
|
486
490
|
font-size: var(--wpds-typography-font-size-sm, 12px);
|
|
487
491
|
font-style: normal;
|
|
488
492
|
font-weight: var(--wpds-typography-font-weight-default, 400);
|
|
489
|
-
line-height: var(--wpds-typography-line-height-
|
|
493
|
+
line-height: var(--wpds-typography-line-height-sm, 20px);
|
|
490
494
|
}
|
|
491
495
|
|
|
492
|
-
.a8ccharts-mGEVca-tooltip-
|
|
493
|
-
color: var(--a8c-charts-color-label);
|
|
494
|
-
font-size: var(--wpds-typography-font-size-md, 13px);
|
|
495
|
-
font-style: normal;
|
|
496
|
+
.a8ccharts-mGEVca-tooltip-value {
|
|
496
497
|
font-weight: var(--wpds-typography-font-weight-emphasis, 600);
|
|
497
|
-
line-height: var(--wpds-typography-line-height-sm, 20px);
|
|
498
498
|
}
|
|
499
499
|
|
|
500
500
|
.a8ccharts-mGEVca-empty-state {
|
|
@@ -765,6 +765,10 @@
|
|
|
765
765
|
padding-left: var(--wpds-dimension-padding-sm, 8px);
|
|
766
766
|
}
|
|
767
767
|
|
|
768
|
+
.a8ccharts-GovfoW-barWithLabelContainer.a8ccharts-GovfoW-is-overlay .a8ccharts-GovfoW-barTrack {
|
|
769
|
+
align-self: stretch;
|
|
770
|
+
}
|
|
771
|
+
|
|
768
772
|
.a8ccharts-GovfoW-barWithLabelContainer .a8ccharts-GovfoW-bar {
|
|
769
773
|
height: 100%;
|
|
770
774
|
min-height: 6px;
|
|
@@ -779,6 +783,14 @@
|
|
|
779
783
|
animation: a8ccharts-GovfoW-stretch var(--a8c-charts-motion-duration-entrance) var(--a8c-charts-motion-easing-entrance) both;
|
|
780
784
|
}
|
|
781
785
|
|
|
786
|
+
.a8ccharts-GovfoW-barWithLabelContainer .a8ccharts-GovfoW-bar--negative, [dir="rtl"] .a8ccharts-GovfoW-barWithLabelContainer .a8ccharts-GovfoW-bar--animated {
|
|
787
|
+
transform-origin: 100%;
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
[dir="rtl"] .a8ccharts-GovfoW-barWithLabelContainer .a8ccharts-GovfoW-bar--negative {
|
|
791
|
+
transform-origin: 0;
|
|
792
|
+
}
|
|
793
|
+
|
|
782
794
|
@keyframes a8ccharts-GovfoW-stretch {
|
|
783
795
|
from {
|
|
784
796
|
transform: scaleX(0);
|
|
@@ -789,9 +801,25 @@
|
|
|
789
801
|
}
|
|
790
802
|
}
|
|
791
803
|
|
|
804
|
+
.a8ccharts-GovfoW-barWithLabelContainer .a8ccharts-GovfoW-barTrack {
|
|
805
|
+
display: grid;
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
.a8ccharts-GovfoW-barWithLabelContainer .a8ccharts-GovfoW-barTrack .a8ccharts-GovfoW-bar {
|
|
809
|
+
grid-column: 2;
|
|
810
|
+
justify-self: start;
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
.a8ccharts-GovfoW-barWithLabelContainer .a8ccharts-GovfoW-barTrack .a8ccharts-GovfoW-bar--negative {
|
|
814
|
+
grid-column: 1;
|
|
815
|
+
justify-self: end;
|
|
816
|
+
}
|
|
817
|
+
|
|
792
818
|
.a8ccharts-GovfoW-valueContainer {
|
|
793
|
-
|
|
794
|
-
|
|
819
|
+
grid-column: 2 / -1;
|
|
820
|
+
grid-template-columns: subgrid;
|
|
821
|
+
place-items: center end;
|
|
822
|
+
display: grid;
|
|
795
823
|
}
|
|
796
824
|
|
|
797
825
|
.a8ccharts-GovfoW-deltaValue {
|
package/dist/index.d.cts
CHANGED
|
@@ -7,7 +7,6 @@ import { EventHandlerParams, EventHandlerParams as EventHandlerParams$1, GlyphPr
|
|
|
7
7
|
import { CSSProperties, ComponentClass, ComponentProps, ComponentType, FC, HTMLAttributes, JSX, MouseEvent, PointerEvent, PropsWithChildren, ReactElement, ReactNode, SVGProps } from "react";
|
|
8
8
|
import { TooltipProps as TooltipProps$1, UseTooltipPortalOptions } from "@visx/tooltip";
|
|
9
9
|
import { PieProvidedProps } from "@visx/shape";
|
|
10
|
-
//#region src/types.d.ts
|
|
11
10
|
type ValueOf<T> = T[keyof T];
|
|
12
11
|
type Optional<T, K extends keyof T> = Pick<Partial<T>, K> & Omit<T, K>;
|
|
13
12
|
/**
|
|
@@ -164,12 +163,13 @@ type LeaderboardEntryFields = {
|
|
|
164
163
|
*/
|
|
165
164
|
previousValue?: number;
|
|
166
165
|
/**
|
|
167
|
-
* Width of current bar, as % of the
|
|
166
|
+
* Width of current bar, as % of the largest absolute value across rows. A negative share
|
|
167
|
+
* extends the bar from a shared zero point toward the inline start, for every row.
|
|
168
168
|
*/
|
|
169
169
|
currentShare: number;
|
|
170
170
|
/**
|
|
171
|
-
* Width of previous bar, as % of the
|
|
172
|
-
* no matching comparison-period value.
|
|
171
|
+
* Width of previous bar, as % of the largest absolute value across rows. Omit when this
|
|
172
|
+
* row has no matching comparison-period value.
|
|
173
173
|
*/
|
|
174
174
|
previousShare?: number;
|
|
175
175
|
/**
|
|
@@ -734,8 +734,6 @@ type BaseChartProps<T = DataPoint | DataPointDate | LeaderboardEntry> = {
|
|
|
734
734
|
};
|
|
735
735
|
};
|
|
736
736
|
};
|
|
737
|
-
//#endregion
|
|
738
|
-
//#region src/components/legend/types.d.ts
|
|
739
737
|
type VisxLegendProps = Pick<ComponentProps<typeof LegendOrdinal>, 'className' | 'shape' | 'fill' | 'size' | 'labelFormat' | 'labelTransform'>;
|
|
740
738
|
type BaseLegendProps = VisxLegendProps & {
|
|
741
739
|
items: BaseLegendItem[];
|
|
@@ -788,14 +786,10 @@ type BaseLegendItem = {
|
|
|
788
786
|
/** Label of the series this static item describes; the item is left out while it is hidden. */
|
|
789
787
|
describesSeries?: string;
|
|
790
788
|
};
|
|
791
|
-
//#endregion
|
|
792
|
-
//#region src/components/legend/legend.d.ts
|
|
793
789
|
export declare const Legend: import("react").ForwardRefExoticComponent<Omit<BaseLegendProps, "items"> & {
|
|
794
790
|
items?: BaseLegendItem[];
|
|
795
791
|
chartId?: string;
|
|
796
792
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
797
|
-
//#endregion
|
|
798
|
-
//#region src/components/legend/hooks/use-chart-legend-items.d.ts
|
|
799
793
|
type LegendValueDisplay = 'percentage' | 'value' | 'valueDisplay' | 'none';
|
|
800
794
|
interface ChartLegendOptions {
|
|
801
795
|
withGlyph?: boolean;
|
|
@@ -828,8 +822,6 @@ interface ChartLegendOptions {
|
|
|
828
822
|
* @return Array of legend items ready for display
|
|
829
823
|
*/
|
|
830
824
|
export declare function useChartLegendItems<T extends SeriesData[] | DataPointDate[] | DataPointPercentageCalculated[]>(data: T, options?: ChartLegendOptions, legendShape?: LegendShape<SeriesData[], number>): BaseLegendItem[];
|
|
831
|
-
//#endregion
|
|
832
|
-
//#region src/charts/private/chart-instance-context/chart-instance-context.d.ts
|
|
833
825
|
interface ChartInstanceRef {
|
|
834
826
|
getScales: () => {
|
|
835
827
|
xScale: unknown;
|
|
@@ -846,8 +838,6 @@ interface ChartInstanceRef {
|
|
|
846
838
|
};
|
|
847
839
|
};
|
|
848
840
|
}
|
|
849
|
-
//#endregion
|
|
850
|
-
//#region src/visx/types.d.ts
|
|
851
841
|
type RenderTooltipParams<Datum extends object> = TooltipContextType<Datum> & {
|
|
852
842
|
colorScale?: PickD3Scale<'ordinal', string, string>;
|
|
853
843
|
};
|
|
@@ -914,8 +904,6 @@ type XyChartTooltipProps<Datum extends object> = {
|
|
|
914
904
|
*/
|
|
915
905
|
resizeObserverPolyfill?: UseTooltipPortalOptions['polyfill'];
|
|
916
906
|
} & Omit<TooltipProps$1, 'left' | 'top' | 'children' | 'applyPositionStyle'>;
|
|
917
|
-
//#endregion
|
|
918
|
-
//#region src/charts/line-chart/types.d.ts
|
|
919
907
|
type LineChartAnnotationProps = {
|
|
920
908
|
datum: DataPointDate;
|
|
921
909
|
title: string;
|
|
@@ -990,8 +978,6 @@ type TooltipDatum = {
|
|
|
990
978
|
/** The series' reading, or null when the bucket has none. */
|
|
991
979
|
value: number | null;
|
|
992
980
|
};
|
|
993
|
-
//#endregion
|
|
994
|
-
//#region src/charts/area-chart/types.d.ts
|
|
995
981
|
interface AreaChartProps extends BaseChartProps<SeriesData[]>, SeriesVisibilityProps {
|
|
996
982
|
/**
|
|
997
983
|
* Legend configuration. Supports `collapseGroups` on top of the shared options.
|
|
@@ -1058,8 +1044,6 @@ interface AreaChartProps extends BaseChartProps<SeriesData[]>, SeriesVisibilityP
|
|
|
1058
1044
|
rescaleYOnVisibilityChange?: boolean;
|
|
1059
1045
|
children?: ReactNode;
|
|
1060
1046
|
}
|
|
1061
|
-
//#endregion
|
|
1062
|
-
//#region src/charts/private/with-responsive/with-responsive.d.ts
|
|
1063
1047
|
type ResponsiveConfig = {
|
|
1064
1048
|
/**
|
|
1065
1049
|
* The maximum width of the chart. Defaults to 1200.
|
|
@@ -1080,8 +1064,6 @@ type ResponsiveConfig = {
|
|
|
1080
1064
|
*/
|
|
1081
1065
|
resizeDebounceTime?: number;
|
|
1082
1066
|
};
|
|
1083
|
-
//#endregion
|
|
1084
|
-
//#region src/charts/area-chart/area-chart.d.ts
|
|
1085
1067
|
type AreaChartSubComponents = {
|
|
1086
1068
|
Legend: typeof Legend;
|
|
1087
1069
|
};
|
|
@@ -1090,8 +1072,6 @@ type AreaChartComponent = React.ForwardRefExoticComponent<AreaChartBaseProps & R
|
|
|
1090
1072
|
type AreaChartResponsiveComponent = React.ForwardRefExoticComponent<AreaChartBaseProps & ResponsiveConfig & React.RefAttributes<ChartInstanceRef>> & AreaChartSubComponents;
|
|
1091
1073
|
declare const AreaChart: AreaChartComponent;
|
|
1092
1074
|
declare const AreaChartResponsive: AreaChartResponsiveComponent;
|
|
1093
|
-
//#endregion
|
|
1094
|
-
//#region src/charts/bar-chart/types.d.ts
|
|
1095
1075
|
type BandHighlightSelection = {
|
|
1096
1076
|
datum: DataPointDate;
|
|
1097
1077
|
key: string;
|
|
@@ -1126,8 +1106,6 @@ interface BarChartProps extends BaseChartProps<SeriesData[]>, SeriesVisibilityPr
|
|
|
1126
1106
|
onBandHighlightChange?: (selection: BandHighlightSelection | null) => void;
|
|
1127
1107
|
children?: ReactNode;
|
|
1128
1108
|
}
|
|
1129
|
-
//#endregion
|
|
1130
|
-
//#region src/charts/bar-chart/bar-chart.d.ts
|
|
1131
1109
|
type BarChartBaseProps = Optional<BarChartProps, 'width' | 'height' | 'size'>;
|
|
1132
1110
|
interface BarChartSubComponents {
|
|
1133
1111
|
Legend: ComponentType<React.ComponentProps<typeof Legend>>;
|
|
@@ -1136,8 +1114,6 @@ type BarChartComponent = FC<BarChartBaseProps> & BarChartSubComponents;
|
|
|
1136
1114
|
type BarChartResponsiveComponent = FC<BarChartBaseProps & ResponsiveConfig> & BarChartSubComponents;
|
|
1137
1115
|
declare const BarChart: BarChartComponent;
|
|
1138
1116
|
declare const BarChartResponsive: BarChartResponsiveComponent;
|
|
1139
|
-
//#endregion
|
|
1140
|
-
//#region src/charts/bar-chart/use-bar-colors.d.ts
|
|
1141
1117
|
type GetBarColors = (series: SeriesData[], options?: {
|
|
1142
1118
|
layout?: BarChartLayout;
|
|
1143
1119
|
}) => string[];
|
|
@@ -1147,8 +1123,6 @@ type GetBarColors = (series: SeriesData[], options?: {
|
|
|
1147
1123
|
* @return A function from series and a layout to each series' bar color, by index.
|
|
1148
1124
|
*/
|
|
1149
1125
|
export declare function useBarColors(): GetBarColors;
|
|
1150
|
-
//#endregion
|
|
1151
|
-
//#region src/charts/bar-chart/use-bar-legend-items.d.ts
|
|
1152
1126
|
type BarLegendOptions = Omit<ChartLegendOptions, 'seriesColors'> & {
|
|
1153
1127
|
/** The layout the bars are drawn in. Unset, the items are the chart legend's own. */
|
|
1154
1128
|
layout?: BarChartLayout;
|
|
@@ -1162,8 +1136,6 @@ type BarLegendOptions = Omit<ChartLegendOptions, 'seriesColors'> & {
|
|
|
1162
1136
|
* @return The legend items.
|
|
1163
1137
|
*/
|
|
1164
1138
|
export declare function useBarLegendItems(data: SeriesData[], options?: BarLegendOptions, legendShape?: LegendShape<SeriesData[], number>): BaseLegendItem[];
|
|
1165
|
-
//#endregion
|
|
1166
|
-
//#region src/charts/bar-list-chart/bar-list-chart.d.ts
|
|
1167
1139
|
interface BarListChartProps extends Exclude<BarChartProps, 'orientation' | 'size' | 'gridVisibility'> {
|
|
1168
1140
|
options?: {
|
|
1169
1141
|
/**
|
|
@@ -1232,8 +1204,6 @@ declare const BarListChartResponsive: ({ resizeDebounceTime, maxWidth, aspectRat
|
|
|
1232
1204
|
height?: number;
|
|
1233
1205
|
size?: number;
|
|
1234
1206
|
} & ResponsiveConfig) => import("react").JSX.Element;
|
|
1235
|
-
//#endregion
|
|
1236
|
-
//#region src/charts/conversion-funnel-chart/types.d.ts
|
|
1237
1207
|
/**
|
|
1238
1208
|
* Represents a single step in the conversion funnel
|
|
1239
1209
|
*/
|
|
@@ -1272,12 +1242,30 @@ interface MainMetricRenderProps {
|
|
|
1272
1242
|
className?: string;
|
|
1273
1243
|
changeColor?: string;
|
|
1274
1244
|
}
|
|
1245
|
+
/**
|
|
1246
|
+
* A labeled line in a funnel step's tooltip
|
|
1247
|
+
*/
|
|
1248
|
+
interface FunnelTooltipRow {
|
|
1249
|
+
label: string;
|
|
1250
|
+
value: string;
|
|
1251
|
+
}
|
|
1252
|
+
/**
|
|
1253
|
+
* What a funnel step's tooltip shows below or beside the step's name. Screen readers read the same content after the name.
|
|
1254
|
+
*/
|
|
1255
|
+
interface FunnelTooltipContent {
|
|
1256
|
+
/** Shown on the name's line, e.g. the step's count */
|
|
1257
|
+
value?: string;
|
|
1258
|
+
/** Labeled lines below the name */
|
|
1259
|
+
rows?: FunnelTooltipRow[];
|
|
1260
|
+
}
|
|
1275
1261
|
/**
|
|
1276
1262
|
* Render prop for customizing tooltip content
|
|
1277
1263
|
*/
|
|
1278
1264
|
interface TooltipRenderProps {
|
|
1279
1265
|
step: FunnelStep;
|
|
1280
1266
|
index: number;
|
|
1267
|
+
/** The step's tooltip content. Screen readers read the whole rendered tooltip as the step's description. */
|
|
1268
|
+
content: FunnelTooltipContent;
|
|
1281
1269
|
top: number;
|
|
1282
1270
|
left: number;
|
|
1283
1271
|
/** @deprecated The tooltip box draws the package surface; this is no longer set. */
|
|
@@ -1307,11 +1295,11 @@ interface ConversionFunnelChartProps extends Pick<BaseChartProps, 'className' |
|
|
|
1307
1295
|
renderMainMetric?: (props: MainMetricRenderProps) => React.ReactNode;
|
|
1308
1296
|
/** Custom render function for tooltip content */
|
|
1309
1297
|
renderTooltip?: (props: TooltipRenderProps) => React.ReactNode;
|
|
1298
|
+
/** What each step's tooltip shows, which screen readers also read after the step's name. Defaults to the count and the conversion rate. */
|
|
1299
|
+
getTooltipContent?: (step: FunnelStep, index: number) => FunnelTooltipContent;
|
|
1310
1300
|
/** Inline styles merged over the tooltip box defaults. */
|
|
1311
1301
|
tooltipStyle?: React.CSSProperties;
|
|
1312
1302
|
}
|
|
1313
|
-
//#endregion
|
|
1314
|
-
//#region src/charts/conversion-funnel-chart/conversion-funnel-chart.d.ts
|
|
1315
1303
|
/**
|
|
1316
1304
|
* ConversionFunnelChart component with provider wrapper
|
|
1317
1305
|
*
|
|
@@ -1319,8 +1307,6 @@ interface ConversionFunnelChartProps extends Pick<BaseChartProps, 'className' |
|
|
|
1319
1307
|
* @return JSX element representing the conversion funnel chart
|
|
1320
1308
|
*/
|
|
1321
1309
|
declare const ConversionFunnelChartWithProvider: FC<ConversionFunnelChartProps>;
|
|
1322
|
-
//#endregion
|
|
1323
|
-
//#region src/charts/geo-chart/types.d.ts
|
|
1324
1310
|
/**
|
|
1325
1311
|
* Region to display on the map.
|
|
1326
1312
|
* Use 'world' for global view or any ISO 3166-1 alpha-2 country code
|
|
@@ -1389,16 +1375,12 @@ interface GeoChartProps extends Pick<BaseChartProps, 'className' | 'chartId' | '
|
|
|
1389
1375
|
*/
|
|
1390
1376
|
renderPlaceholder?: () => React.ReactNode;
|
|
1391
1377
|
}
|
|
1392
|
-
//#endregion
|
|
1393
|
-
//#region src/charts/geo-chart/geo-chart.d.ts
|
|
1394
1378
|
declare const GeoChartWithProvider: FC<GeoChartProps>;
|
|
1395
1379
|
declare const GeoChartResponsive: ({ resizeDebounceTime, maxWidth, aspectRatio, size, width, height, ...chartProps }: Omit<GeoChartProps, "height" | "size" | "width"> & {
|
|
1396
1380
|
width?: number;
|
|
1397
1381
|
height?: number;
|
|
1398
1382
|
size?: number;
|
|
1399
1383
|
} & ResponsiveConfig) => import("react").JSX.Element;
|
|
1400
|
-
//#endregion
|
|
1401
|
-
//#region src/charts/heatmap-chart/types.d.ts
|
|
1402
1384
|
/** A single heatmap cell. `value: null` marks an empty cell, as does a zero when no value is negative. */
|
|
1403
1385
|
type HeatmapCell = {
|
|
1404
1386
|
/** Per-cell label used in the tooltip / accessible name. */
|
|
@@ -1553,8 +1535,6 @@ type MonthCalendarHeatmapResult = {
|
|
|
1553
1535
|
/** For `HeatmapChart`'s `columnGroups`: one per month, in order. */
|
|
1554
1536
|
columnGroups: HeatmapColumnGroup[];
|
|
1555
1537
|
};
|
|
1556
|
-
//#endregion
|
|
1557
|
-
//#region src/charts/heatmap-chart/private/heatmap-legend.d.ts
|
|
1558
1538
|
interface HeatmapLegendProps {
|
|
1559
1539
|
/** Number of color swatches in the scale, not counting the empty-cell swatch. Default 5. */
|
|
1560
1540
|
steps?: number;
|
|
@@ -1567,15 +1547,11 @@ interface HeatmapLegendProps {
|
|
|
1567
1547
|
moreLabel?: string;
|
|
1568
1548
|
}
|
|
1569
1549
|
declare const HeatmapLegend: FC<HeatmapLegendProps>;
|
|
1570
|
-
//#endregion
|
|
1571
|
-
//#region src/charts/heatmap-chart/heatmap-chart.d.ts
|
|
1572
1550
|
interface HeatmapChartSubComponents {
|
|
1573
1551
|
Legend: typeof HeatmapLegend;
|
|
1574
1552
|
}
|
|
1575
1553
|
declare const HeatmapChart: FC<HeatmapChartProps> & HeatmapChartSubComponents;
|
|
1576
1554
|
declare const HeatmapChartResponsive: FC<HeatmapChartProps & ResponsiveConfig> & HeatmapChartSubComponents;
|
|
1577
|
-
//#endregion
|
|
1578
|
-
//#region src/charts/heatmap-chart/build-calendar-data.d.ts
|
|
1579
1555
|
/**
|
|
1580
1556
|
* Lay a day-bucketed series out as calendar columns.
|
|
1581
1557
|
*
|
|
@@ -1584,8 +1560,6 @@ declare const HeatmapChartResponsive: FC<HeatmapChartProps & ResponsiveConfig> &
|
|
|
1584
1560
|
* @return Columns and row labels for `HeatmapChart`.
|
|
1585
1561
|
*/
|
|
1586
1562
|
export declare const buildCalendarHeatmapData: (series: DataPointDate[], options?: CalendarHeatmapOptions) => CalendarHeatmapResult;
|
|
1587
|
-
//#endregion
|
|
1588
|
-
//#region src/charts/heatmap-chart/build-month-calendar-data.d.ts
|
|
1589
1563
|
/**
|
|
1590
1564
|
* Lay a day-keyed map out as one month calendar per month, weekdays across and
|
|
1591
1565
|
* weeks down, for `HeatmapChart` with `columnGroups`.
|
|
@@ -1596,8 +1570,6 @@ export declare const buildCalendarHeatmapData: (series: DataPointDate[], options
|
|
|
1596
1570
|
* @return Columns and one group per month; empty for an invalid or reversed range.
|
|
1597
1571
|
*/
|
|
1598
1572
|
export declare const buildMonthCalendarHeatmapData: (valueByDay: Record<string, number | null>, range: MonthCalendarHeatmapRange, options?: MonthCalendarHeatmapOptions) => MonthCalendarHeatmapResult;
|
|
1599
|
-
//#endregion
|
|
1600
|
-
//#region src/charts/heatmap-chart/use-calendar-heatmap-data.d.ts
|
|
1601
1573
|
/**
|
|
1602
1574
|
* `buildCalendarHeatmapData` with the locale and zone taken from
|
|
1603
1575
|
* `GlobalChartsProvider` where the caller names neither.
|
|
@@ -1607,8 +1579,6 @@ export declare const buildMonthCalendarHeatmapData: (valueByDay: Record<string,
|
|
|
1607
1579
|
* @return Columns and row labels for `HeatmapChart`.
|
|
1608
1580
|
*/
|
|
1609
1581
|
export declare const useCalendarHeatmapData: (series: DataPointDate[], options?: CalendarHeatmapOptions) => CalendarHeatmapResult;
|
|
1610
|
-
//#endregion
|
|
1611
|
-
//#region src/charts/heatmap-chart/use-month-calendar-heatmap-data.d.ts
|
|
1612
1582
|
/**
|
|
1613
1583
|
* `buildMonthCalendarHeatmapData` with the locale taken from `GlobalChartsProvider`
|
|
1614
1584
|
* where the caller names none.
|
|
@@ -1619,8 +1589,6 @@ export declare const useCalendarHeatmapData: (series: DataPointDate[], options?:
|
|
|
1619
1589
|
* @return Columns and groups for `HeatmapChart`.
|
|
1620
1590
|
*/
|
|
1621
1591
|
export declare const useMonthCalendarHeatmapData: (valueByDay: Record<string, number | null>, range: MonthCalendarHeatmapRange, options?: MonthCalendarHeatmapOptions) => MonthCalendarHeatmapResult;
|
|
1622
|
-
//#endregion
|
|
1623
|
-
//#region src/charts/leaderboard-chart/types.d.ts
|
|
1624
1592
|
interface LeaderboardChartProps extends Pick<BaseChartProps<LeaderboardEntry>, 'className' | 'showLegend' | 'legend' | 'chartId' | 'width' | 'height' | 'size' | 'gap' | 'animation' | 'ariaLabel'> {
|
|
1625
1593
|
/**
|
|
1626
1594
|
* Entries to display. Declared here rather than picked, since the base type
|
|
@@ -1688,8 +1656,6 @@ interface LeaderboardChartProps extends Pick<BaseChartProps<LeaderboardEntry>, '
|
|
|
1688
1656
|
*/
|
|
1689
1657
|
children?: ReactNode;
|
|
1690
1658
|
}
|
|
1691
|
-
//#endregion
|
|
1692
|
-
//#region src/charts/leaderboard-chart/leaderboard-chart.d.ts
|
|
1693
1659
|
declare const LeaderboardChart: FC<LeaderboardChartProps> & {
|
|
1694
1660
|
Legend: import("react").ForwardRefExoticComponent<Omit<BaseLegendProps, "items"> & {
|
|
1695
1661
|
items?: BaseLegendItem[];
|
|
@@ -1706,8 +1672,6 @@ declare const LeaderboardChartResponsive: (({ resizeDebounceTime, maxWidth, aspe
|
|
|
1706
1672
|
chartId?: string;
|
|
1707
1673
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
1708
1674
|
};
|
|
1709
|
-
//#endregion
|
|
1710
|
-
//#region src/utils/bucket-info.d.ts
|
|
1711
1675
|
/**
|
|
1712
1676
|
* How this data was classified, for consumers that render their own labels.
|
|
1713
1677
|
*
|
|
@@ -1716,8 +1680,6 @@ declare const LeaderboardChartResponsive: (({ resizeDebounceTime, maxWidth, aspe
|
|
|
1716
1680
|
* @return The declared or inferred bucket, and the resolution formats key on.
|
|
1717
1681
|
*/
|
|
1718
1682
|
export declare const getBucketInfo: (data: SeriesData[], tickResolution?: TickResolution) => BucketInfo;
|
|
1719
|
-
//#endregion
|
|
1720
|
-
//#region src/utils/date-parsing.d.ts
|
|
1721
1683
|
/**
|
|
1722
1684
|
* Parses any supported date string format into an instant, dated in `timeZone` or the runtime's own
|
|
1723
1685
|
*
|
|
@@ -1735,8 +1697,6 @@ export declare const getBucketInfo: (data: SeriesData[], tickResolution?: TickRe
|
|
|
1735
1697
|
* @return {Date} A Date object representing the parsed instant, or an invalid Date if parsing fails
|
|
1736
1698
|
*/
|
|
1737
1699
|
export declare const parseAsLocalDate: (dateString: string, timeZone?: string) => Date;
|
|
1738
|
-
//#endregion
|
|
1739
|
-
//#region src/utils/format-metric-value.d.ts
|
|
1740
1700
|
/**
|
|
1741
1701
|
* Types for formatMetricValue
|
|
1742
1702
|
*/
|
|
@@ -1759,8 +1719,6 @@ type FormatMetricValueOptions = {
|
|
|
1759
1719
|
* @return Formatted string
|
|
1760
1720
|
*/
|
|
1761
1721
|
export declare const formatMetricValue: (value: string | number, type?: MetricValueType, { decimals, useMultipliers, signDisplay }?: FormatMetricValueOptions) => string;
|
|
1762
|
-
//#endregion
|
|
1763
|
-
//#region src/utils/format-percentage.d.ts
|
|
1764
1722
|
/**
|
|
1765
1723
|
* Format a percentage value with smart decimal handling.
|
|
1766
1724
|
* Uses `@automattic/number-formatters` for consistent formatting.
|
|
@@ -1770,8 +1728,6 @@ export declare const formatMetricValue: (value: string | number, type?: MetricVa
|
|
|
1770
1728
|
* @return Formatted percentage string (e.g., "30%", "30.1%", "30.25%")
|
|
1771
1729
|
*/
|
|
1772
1730
|
export declare const formatPercentage: (value: number) => string;
|
|
1773
|
-
//#endregion
|
|
1774
|
-
//#region src/utils/merge-themes.d.ts
|
|
1775
1731
|
/**
|
|
1776
1732
|
* Merges chart themes with proper precedence.
|
|
1777
1733
|
* The second theme (override) takes precedence over the first theme (base).
|
|
@@ -1782,8 +1738,6 @@ export declare const formatPercentage: (value: number) => string;
|
|
|
1782
1738
|
*/
|
|
1783
1739
|
export declare function mergeThemes(baseTheme: CompleteChartTheme, overrideTheme: Partial<ChartTheme>): CompleteChartTheme;
|
|
1784
1740
|
export declare function mergeThemes(baseTheme: ChartTheme, overrideTheme: Partial<ChartTheme>): ChartTheme;
|
|
1785
|
-
//#endregion
|
|
1786
|
-
//#region src/utils/color-utils.d.ts
|
|
1787
1741
|
/**
|
|
1788
1742
|
* Check if a value is a valid 6-digit hex color
|
|
1789
1743
|
* @param hex - The value to check
|
|
@@ -1869,8 +1823,6 @@ export declare const relativeLuminance: (hex: string) => number;
|
|
|
1869
1823
|
* @return true if light text should be used; false (dark text) for malformed colors
|
|
1870
1824
|
*/
|
|
1871
1825
|
export declare const prefersLightText: (backgroundHex: string) => boolean;
|
|
1872
|
-
//#endregion
|
|
1873
|
-
//#region src/utils/resolve-css-var.d.ts
|
|
1874
1826
|
/**
|
|
1875
1827
|
* Resolves a CSS custom property (variable) to its computed value.
|
|
1876
1828
|
* Handles multiple formats:
|
|
@@ -1884,8 +1836,6 @@ export declare const prefersLightText: (backgroundHex: string) => boolean;
|
|
|
1884
1836
|
* @return The resolved value, fallback value, or null if unresolvable
|
|
1885
1837
|
*/
|
|
1886
1838
|
export declare const resolveCssVariable: (value: string, element?: HTMLElement | null) => string | null;
|
|
1887
|
-
//#endregion
|
|
1888
|
-
//#region src/charts/leaderboard-chart/hooks/use-leaderboard-legend-items.d.ts
|
|
1889
1839
|
/**
|
|
1890
1840
|
* Hook to create legend items from leaderboard data
|
|
1891
1841
|
* @param root0 - Configuration object
|
|
@@ -1910,17 +1860,11 @@ export declare function useLeaderboardLegendItems({ data, primaryColor, secondar
|
|
|
1910
1860
|
comparison?: string;
|
|
1911
1861
|
};
|
|
1912
1862
|
}): BaseLegendItem[];
|
|
1913
|
-
//#endregion
|
|
1914
|
-
//#region src/charts/line-chart/private/line-chart-annotations-overlay.d.ts
|
|
1915
1863
|
interface LineChartAnnotationsProps {
|
|
1916
1864
|
children?: ReactNode;
|
|
1917
1865
|
}
|
|
1918
1866
|
declare const LineChartAnnotationsOverlay: FC<LineChartAnnotationsProps>;
|
|
1919
|
-
//#endregion
|
|
1920
|
-
//#region src/charts/line-chart/private/line-chart-annotation.d.ts
|
|
1921
1867
|
declare const LineChartAnnotation: FC<LineChartAnnotationProps>;
|
|
1922
|
-
//#endregion
|
|
1923
|
-
//#region src/charts/line-chart/line-chart.d.ts
|
|
1924
1868
|
type LineChartAnnotationComponents = {
|
|
1925
1869
|
AnnotationsOverlay: typeof LineChartAnnotationsOverlay;
|
|
1926
1870
|
Annotation: typeof LineChartAnnotation;
|
|
@@ -1931,8 +1875,6 @@ type LineChartComponent = React.ForwardRefExoticComponent<LineChartBaseProps & R
|
|
|
1931
1875
|
type LineChartResponsiveComponent = React.ForwardRefExoticComponent<LineChartBaseProps & ResponsiveConfig & React.RefAttributes<ChartInstanceRef>> & LineChartAnnotationComponents;
|
|
1932
1876
|
declare const LineChart: LineChartComponent;
|
|
1933
1877
|
declare const LineChartResponsive: LineChartResponsiveComponent;
|
|
1934
|
-
//#endregion
|
|
1935
|
-
//#region src/charts/private/chart-composition/types.d.ts
|
|
1936
1878
|
/**
|
|
1937
1879
|
* Base interface for chart subcomponents in the composition API
|
|
1938
1880
|
*/
|
|
@@ -1947,8 +1889,6 @@ interface BaseChartSubComponents {
|
|
|
1947
1889
|
* @template TSubComponents - Additional subcomponents beyond the base ones
|
|
1948
1890
|
*/
|
|
1949
1891
|
type ChartComponentWithComposition<TProps, TSubComponents extends BaseChartSubComponents = BaseChartSubComponents> = FC<TProps> & TSubComponents;
|
|
1950
|
-
//#endregion
|
|
1951
|
-
//#region src/charts/pie-chart/pie-chart.d.ts
|
|
1952
1892
|
/**
|
|
1953
1893
|
* Parameters passed to the renderTooltip function for pie charts.
|
|
1954
1894
|
*/
|
|
@@ -2018,8 +1958,6 @@ type PieChartComponent = ChartComponentWithComposition<PieChartBaseProps>;
|
|
|
2018
1958
|
type PieChartResponsiveComponent = ChartComponentWithComposition<PieChartBaseProps & ResponsiveConfig>;
|
|
2019
1959
|
declare const PieChart: PieChartComponent;
|
|
2020
1960
|
declare const PieChartResponsive: PieChartResponsiveComponent;
|
|
2021
|
-
//#endregion
|
|
2022
|
-
//#region src/charts/pie-semi-circle-chart/pie-semi-circle-chart.d.ts
|
|
2023
1961
|
/**
|
|
2024
1962
|
* Parameters passed to the renderTooltip function for semi-circle charts.
|
|
2025
1963
|
*/
|
|
@@ -2085,8 +2023,6 @@ type PieSemiCircleChartResponsiveComponent = ChartComponentWithComposition<PieSe
|
|
|
2085
2023
|
type ArcData = PieProvidedProps<DataPointPercentageCalculated>['arcs'][number];
|
|
2086
2024
|
declare const PieSemiCircleChart: PieSemiCircleChartComponent;
|
|
2087
2025
|
declare const PieSemiCircleChartResponsive: PieSemiCircleChartResponsiveComponent;
|
|
2088
|
-
//#endregion
|
|
2089
|
-
//#region src/charts/sparkline/types.d.ts
|
|
2090
2026
|
type SparklineDataPoint = number;
|
|
2091
2027
|
type GradientConfig = {
|
|
2092
2028
|
/**
|
|
@@ -2174,8 +2110,6 @@ interface SparklineProps {
|
|
|
2174
2110
|
*/
|
|
2175
2111
|
animation?: boolean;
|
|
2176
2112
|
}
|
|
2177
|
-
//#endregion
|
|
2178
|
-
//#region src/charts/sparkline/sparkline.d.ts
|
|
2179
2113
|
/**
|
|
2180
2114
|
* Sparkline - A minimal line chart for inline data visualization.
|
|
2181
2115
|
*
|
|
@@ -2195,8 +2129,6 @@ declare const Sparkline: ({ resizeDebounceTime, maxWidth, aspectRatio, size, wid
|
|
|
2195
2129
|
height?: number;
|
|
2196
2130
|
size?: number;
|
|
2197
2131
|
} & ResponsiveConfig) => import("react").JSX.Element;
|
|
2198
|
-
//#endregion
|
|
2199
|
-
//#region src/components/tooltip/types.d.ts
|
|
2200
2132
|
type TooltipProps = {
|
|
2201
2133
|
data: {
|
|
2202
2134
|
label: string;
|
|
@@ -2208,8 +2140,6 @@ type TooltipData = {
|
|
|
2208
2140
|
value: number;
|
|
2209
2141
|
valueDisplay?: string;
|
|
2210
2142
|
};
|
|
2211
|
-
//#endregion
|
|
2212
|
-
//#region src/components/tooltip/base-tooltip.d.ts
|
|
2213
2143
|
type TooltipComponentProps = {
|
|
2214
2144
|
data: TooltipData;
|
|
2215
2145
|
className?: string;
|
|
@@ -2256,8 +2186,6 @@ type BaseTooltipProps = TooltipCommonProps & (DefaultDataTooltip | CustomTooltip
|
|
|
2256
2186
|
* @return The tooltip.
|
|
2257
2187
|
*/
|
|
2258
2188
|
export declare const BaseTooltip: ({ data, top, left, component: Component, children, className, style, renderContainer }: BaseTooltipProps) => string | number | bigint | true | import("react").JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | Iterable<ReactNode> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ReactPortal>;
|
|
2259
|
-
//#endregion
|
|
2260
|
-
//#region src/components/tooltip/xy-chart-tooltip.d.ts
|
|
2261
2189
|
type FlattenedTooltipData = {
|
|
2262
2190
|
datum: DataPointDate;
|
|
2263
2191
|
seriesLabel: string;
|
|
@@ -2276,7 +2204,7 @@ interface XYChartTooltipProps extends Omit<XyChartTooltipProps<DataPointDate>, '
|
|
|
2276
2204
|
*/
|
|
2277
2205
|
tooltipData?: FlattenedTooltipData[];
|
|
2278
2206
|
/**
|
|
2279
|
-
* For line charts: series data to show
|
|
2207
|
+
* For line charts: series data to show every series at the selected date
|
|
2280
2208
|
* When provided, shows all series instead of individual tooltips
|
|
2281
2209
|
*/
|
|
2282
2210
|
series?: SeriesData[];
|
|
@@ -2289,8 +2217,6 @@ interface XYChartTooltipProps extends Omit<XyChartTooltipProps<DataPointDate>, '
|
|
|
2289
2217
|
export declare const XYChartTooltip: React.FC<XYChartTooltipProps>;
|
|
2290
2218
|
/** @deprecated Use `XYChartTooltip`. */
|
|
2291
2219
|
export declare const AccessibleTooltip: import("react").FC<XYChartTooltipProps>;
|
|
2292
|
-
//#endregion
|
|
2293
|
-
//#region src/components/tooltip/tooltip-box.d.ts
|
|
2294
2220
|
type TooltipBoxProps = HTMLAttributes<HTMLDivElement> & {
|
|
2295
2221
|
/** Drop the chart surface, scope class and dark theme, leaving a bare box. */
|
|
2296
2222
|
unstyled?: boolean;
|
|
@@ -2307,8 +2233,6 @@ export declare const TooltipBox: import("react").ForwardRefExoticComponent<HTMLA
|
|
|
2307
2233
|
/** Drop the chart surface, scope class and dark theme, leaving a bare box. */
|
|
2308
2234
|
unstyled?: boolean;
|
|
2309
2235
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
2310
|
-
//#endregion
|
|
2311
|
-
//#region src/components/trend-indicator/types.d.ts
|
|
2312
2236
|
/**
|
|
2313
2237
|
* The direction of the trend
|
|
2314
2238
|
*/
|
|
@@ -2339,8 +2263,6 @@ type TrendIndicatorProps = {
|
|
|
2339
2263
|
*/
|
|
2340
2264
|
showIcon?: boolean;
|
|
2341
2265
|
};
|
|
2342
|
-
//#endregion
|
|
2343
|
-
//#region src/components/trend-indicator/trend-indicator.d.ts
|
|
2344
2266
|
/**
|
|
2345
2267
|
* TrendIndicator displays a directional trend with a value.
|
|
2346
2268
|
* Used to show percentage changes or growth metrics.
|
|
@@ -2349,8 +2271,6 @@ type TrendIndicatorProps = {
|
|
|
2349
2271
|
* @return {JSX.Element} The rendered trend indicator
|
|
2350
2272
|
*/
|
|
2351
2273
|
export declare function TrendIndicator({ direction, value, className, style, showIcon }: TrendIndicatorProps): JSX.Element;
|
|
2352
|
-
//#endregion
|
|
2353
|
-
//#region src/providers/chart-context/types.d.ts
|
|
2354
2274
|
interface ChartRegistration {
|
|
2355
2275
|
legendItems: BaseLegendItem[];
|
|
2356
2276
|
chartType: ChartType;
|
|
@@ -2391,8 +2311,6 @@ interface GlobalChartsContextValue {
|
|
|
2391
2311
|
getHiddenSeries: (chartId: string) => Set<string>;
|
|
2392
2312
|
isColorPaletteResolved: boolean;
|
|
2393
2313
|
}
|
|
2394
|
-
//#endregion
|
|
2395
|
-
//#region src/providers/chart-context/global-charts-provider.d.ts
|
|
2396
2314
|
export declare const GlobalChartsContext: import("react").Context<GlobalChartsContextValue>;
|
|
2397
2315
|
interface GlobalChartsProviderProps {
|
|
2398
2316
|
children: ReactNode;
|
|
@@ -2409,11 +2327,7 @@ interface GlobalChartsProviderProps {
|
|
|
2409
2327
|
timeZone?: string;
|
|
2410
2328
|
}
|
|
2411
2329
|
export declare const GlobalChartsProvider: FC<GlobalChartsProviderProps>;
|
|
2412
|
-
//#endregion
|
|
2413
|
-
//#region src/providers/chart-context/hooks/use-global-charts-context.d.ts
|
|
2414
2330
|
export declare const useGlobalChartsContext: () => GlobalChartsContextValue;
|
|
2415
|
-
//#endregion
|
|
2416
|
-
//#region src/providers/chart-context/hooks/use-chart-registration.d.ts
|
|
2417
2331
|
export declare const useChartRegistration: ({ chartId, legendItems, chartType, isDataValid, metadata }: {
|
|
2418
2332
|
chartId: string;
|
|
2419
2333
|
legendItems: BaseLegendItem[];
|
|
@@ -2421,16 +2335,12 @@ export declare const useChartRegistration: ({ chartId, legendItems, chartType, i
|
|
|
2421
2335
|
isDataValid: boolean;
|
|
2422
2336
|
metadata?: Record<string, unknown>;
|
|
2423
2337
|
}) => void;
|
|
2424
|
-
//#endregion
|
|
2425
|
-
//#region src/providers/chart-context/hooks/use-global-charts-theme.d.ts
|
|
2426
2338
|
/**
|
|
2427
2339
|
* Hook to get the global chart theme from GlobalChartsProvider
|
|
2428
2340
|
*
|
|
2429
2341
|
* @return The global chart theme
|
|
2430
2342
|
*/
|
|
2431
2343
|
export declare const useGlobalChartsTheme: () => CompleteChartTheme;
|
|
2432
|
-
//#endregion
|
|
2433
|
-
//#region src/providers/chart-context/hooks/use-chart-formatting.d.ts
|
|
2434
2344
|
/**
|
|
2435
2345
|
* The locale and time zone dates are rendered in, as set on `GlobalChartsProvider`.
|
|
2436
2346
|
*
|
|
@@ -2441,8 +2351,6 @@ export declare const useGlobalChartsTheme: () => CompleteChartTheme;
|
|
|
2441
2351
|
* @return The host's formatting context.
|
|
2442
2352
|
*/
|
|
2443
2353
|
export declare const useChartFormatting: () => ChartFormatting;
|
|
2444
|
-
//#endregion
|
|
2445
|
-
//#region src/providers/chart-context/themes.d.ts
|
|
2446
2354
|
/**
|
|
2447
2355
|
* Default theme configuration: the shape and spacing a consumer can override.
|
|
2448
2356
|
*
|
|
@@ -2450,14 +2358,11 @@ export declare const useChartFormatting: () => ChartFormatting;
|
|
|
2450
2358
|
* chains that deliver those live in `private/catalog-pointers.ts`.
|
|
2451
2359
|
*/
|
|
2452
2360
|
declare const defaultTheme: CompleteChartTheme;
|
|
2453
|
-
//#endregion
|
|
2454
|
-
//#region src/providers/chart-scope/use-chart-scope-element.d.ts
|
|
2455
2361
|
/**
|
|
2456
2362
|
* Returns the nearest chart scope element, or `null` when rendered outside any scope (and during SSR, before the ref is attached).
|
|
2457
2363
|
*
|
|
2458
2364
|
* @return {HTMLElement | null} The nearest chart scope element, or `null`.
|
|
2459
2365
|
*/
|
|
2460
2366
|
export declare const useChartScopeElement: () => HTMLElement | null;
|
|
2461
|
-
|
|
2462
|
-
export { type AnnotationStyles, type ArcData, AreaChartResponsive as AreaChart, type AreaChartProps, AreaChart as AreaChartUnresponsive, type AxisOptions, type BandHighlightSelection, BarChartResponsive as BarChart, type BarChartLayout, type BarChartProps, BarChart as BarChartUnresponsive, type BarLegendOptions, BarListChartResponsive as BarListChart, type BarListChartProps, BarListChart as BarListChartUnresponsive, type BaseChartProps, type BaseLegendItem, type BaseLegendProps, type BaseTooltipProps, type BucketInfo, type CalendarHeatmapOptions, type CalendarHeatmapResult, type ChartFormatting, type ChartLegendConfig, type ChartLegendOptions, type ChartTheme, type ComparisonItemLabel, 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, GlobalChartsProvider as ThemeProvider, type GoogleDataTableColumn, 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, 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 TooltipBoxProps, type TooltipData, type TooltipDatum, type TooltipPlacement, type TooltipProps, type TooltipRenderProps, type TrendDirection, type TrendIndicatorProps, type XyChartTooltipProps, defaultTheme };
|
|
2367
|
+
export { type AnnotationStyles, type ArcData, AreaChartResponsive as AreaChart, type AreaChartProps, AreaChart as AreaChartUnresponsive, type AxisOptions, type BandHighlightSelection, BarChartResponsive as BarChart, type BarChartLayout, type BarChartProps, BarChart as BarChartUnresponsive, type BarLegendOptions, BarListChartResponsive as BarListChart, type BarListChartProps, BarListChart as BarListChartUnresponsive, type BaseChartProps, type BaseLegendItem, type BaseLegendProps, type BaseTooltipProps, type BucketInfo, type CalendarHeatmapOptions, type CalendarHeatmapResult, type ChartFormatting, type ChartLegendConfig, type ChartLegendOptions, type ChartTheme, type ComparisonItemLabel, type CompleteChartTheme, ConversionFunnelChartWithProvider as ConversionFunnelChart, type ConversionFunnelChartProps, type CrosshairStyle, type CurveType, type DataPoint, type DataPointDate, type DataPointPercentage, type EventHandlerParams, type FunnelStep, type FunnelTooltipContent, type FunnelTooltipRow, GeoChartResponsive as GeoChart, type GeoChartError, type GeoChartProps, GeoChartWithProvider as GeoChartUnresponsive, type GeoData, type GeoDisplayMode, type GeoRegion, type GeoResolution, GlobalChartsProvider as ThemeProvider, type GoogleDataTableColumn, 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, 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 TooltipBoxProps, type TooltipData, type TooltipDatum, type TooltipPlacement, type TooltipProps, type TooltipRenderProps, type TrendDirection, type TrendIndicatorProps, type XyChartTooltipProps, defaultTheme };
|
|
2463
2368
|
//# sourceMappingURL=index.d.cts.map
|