@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.
- package/CHANGELOG.md +30 -0
- package/TOKENS.md +6 -3
- package/dist/index.cjs +834 -321
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +68 -17
- package/dist/index.d.cts +102 -28
- package/dist/index.d.ts +102 -28
- package/dist/index.js +838 -327
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/charts/area-chart/area-chart.tsx +7 -4
- package/src/charts/area-chart/test/area-chart.test.tsx +24 -15
- package/src/charts/area-chart/test/tooltip-resolution-branches.test.tsx +1 -1
- package/src/charts/area-chart/test/tooltip-resolution.test.tsx +2 -2
- package/src/charts/area-chart/types.ts +2 -0
- package/src/charts/bar-chart/bar-chart.module.scss +7 -0
- package/src/charts/bar-chart/bar-chart.tsx +25 -16
- package/src/charts/bar-chart/private/comparison-bars.tsx +1 -0
- package/src/charts/bar-chart/test/bar-chart.test.tsx +106 -62
- package/src/charts/bar-chart/types.ts +2 -0
- package/src/charts/bar-list-chart/test/bar-list-chart.test.tsx +3 -1
- package/src/charts/conversion-funnel-chart/conversion-funnel-chart.tsx +1 -1
- package/src/charts/conversion-funnel-chart/test/conversion-funnel-chart.test.tsx +9 -0
- package/src/charts/heatmap-chart/heatmap-chart.module.scss +16 -8
- package/src/charts/heatmap-chart/heatmap-chart.tsx +183 -66
- package/src/charts/heatmap-chart/private/column-groups.ts +79 -8
- package/src/charts/heatmap-chart/private/fit-compact-cells.ts +72 -0
- package/src/charts/heatmap-chart/private/heatmap-context.ts +2 -2
- package/src/charts/heatmap-chart/private/heatmap-legend.tsx +15 -3
- package/src/charts/heatmap-chart/private/heatmap-scale.ts +74 -0
- package/src/charts/heatmap-chart/private/index.ts +6 -3
- package/src/charts/heatmap-chart/private/use-heatmap-colors.ts +24 -6
- package/src/charts/heatmap-chart/test/column-groups.test.ts +41 -4
- package/src/charts/heatmap-chart/test/fit-compact-cells.test.ts +59 -0
- package/src/charts/heatmap-chart/test/heatmap-chart.test.tsx +231 -8
- package/src/charts/heatmap-chart/test/heatmap-scale.test.ts +78 -0
- package/src/charts/heatmap-chart/test/use-heatmap-colors.test.ts +18 -6
- package/src/charts/heatmap-chart/types.ts +6 -3
- package/src/charts/leaderboard-chart/leaderboard-chart.module.scss +46 -4
- package/src/charts/leaderboard-chart/leaderboard-chart.tsx +37 -1
- package/src/charts/leaderboard-chart/test/leaderboard-chart.test.tsx +53 -0
- package/src/charts/leaderboard-chart/types.ts +6 -1
- package/src/charts/line-chart/line-chart.tsx +7 -4
- package/src/charts/line-chart/private/line-chart-annotation-label-popover.tsx +19 -9
- package/src/charts/line-chart/test/default-tooltip-formatting.test.tsx +1 -1
- package/src/charts/line-chart/test/line-chart.test.tsx +45 -35
- package/src/charts/line-chart/test/tooltip-resolution.test.tsx +2 -2
- package/src/charts/line-chart/types.ts +5 -3
- package/src/charts/pie-chart/pie-chart.tsx +153 -143
- package/src/charts/pie-chart/test/pie-chart.test.tsx +171 -0
- package/src/charts/pie-semi-circle-chart/pie-semi-circle-chart.tsx +126 -124
- package/src/charts/pie-semi-circle-chart/test/pie-semi-circle-chart.test.tsx +55 -1
- package/src/charts/private/chart-composition/use-chart-children.ts +11 -6
- package/src/charts/private/pie-keyboard-navigation/index.ts +4 -0
- package/src/charts/private/pie-keyboard-navigation/order-arcs-for-navigation.ts +10 -0
- package/src/charts/private/pie-keyboard-navigation/pie-keyboard-navigation.module.scss +16 -0
- package/src/charts/private/pie-keyboard-navigation/pie-selection-announcement.tsx +14 -0
- package/src/charts/private/pie-keyboard-navigation/pie-selection-output.tsx +82 -0
- package/src/charts/private/pie-keyboard-navigation/pie-tooltip.tsx +44 -0
- package/src/charts/private/pie-keyboard-navigation/selected-segment-ring.tsx +47 -0
- package/src/charts/private/pie-keyboard-navigation/test/order-arcs-for-navigation.test.ts +34 -0
- package/src/charts/private/pie-keyboard-navigation/test/selected-segment-ring.test.ts +14 -0
- package/src/charts/private/pie-keyboard-navigation/use-pie-keyboard-navigation.ts +139 -0
- package/src/charts/private/test/label-text-color.test.ts +6 -8
- package/src/charts/private/x-zoom/test/x-zoom.test.tsx +3 -2
- package/src/components/tooltip/base-tooltip.tsx +31 -32
- package/src/components/tooltip/index.ts +3 -1
- package/src/components/tooltip/private/bounded-tooltip.tsx +15 -15
- package/src/components/tooltip/private/label-value-content.tsx +8 -0
- package/src/components/tooltip/private/xy-chart-tooltip-overlay.tsx +336 -0
- package/src/components/tooltip/test/tool-tip.test.tsx +8 -6
- package/src/components/tooltip/test/tooltip-box.test.tsx +53 -0
- package/src/components/tooltip/test/xy-chart-tooltip-overlay.test.tsx +445 -0
- package/src/components/tooltip/test/xy-chart-tooltip.test.tsx +283 -365
- package/src/components/tooltip/{base-tooltip.module.scss → tooltip-box.module.scss} +5 -8
- package/src/components/tooltip/tooltip-box.tsx +43 -0
- package/src/components/tooltip/types.ts +7 -1
- package/src/components/tooltip/xy-chart-tooltip.tsx +410 -300
- package/src/hooks/test/use-chart-margin.test.tsx +8 -4
- package/src/hooks/use-chart-margin.tsx +21 -18
- package/src/index.ts +8 -3
- package/src/providers/chart-context/global-charts-provider.tsx +5 -14
- package/src/providers/chart-context/hooks/use-default-hidden-series.ts +1 -1
- package/src/providers/chart-context/private/catalog-pointers.ts +1 -0
- package/src/providers/chart-context/private/resolve-opaque-hex.ts +16 -0
- package/src/providers/chart-context/test/use-default-hidden-series.test.tsx +1 -1
- package/src/styles/chart-scope.scss +1 -0
- package/src/test-utils/zoned-parsing-suite.ts +0 -10
- package/src/types.ts +18 -2
- package/src/utils/test/date-formatting.test.ts +0 -10
- package/src/components/tooltip/accessible-tooltip.tsx +0 -433
- package/src/components/tooltip/test/accessible-tooltip.test.tsx +0 -331
package/dist/index.css
CHANGED
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
--a8c-charts-motion-duration-entrance: var(--wpds-motion-duration-xl, .4s);
|
|
33
33
|
--a8c-charts-motion-easing-entrance: var(--wpds-motion-easing-expressive, cubic-bezier(.25, 0, 0, 1));
|
|
34
34
|
--a8c-charts-border-radius-bar: var(--wpds-border-radius-md, 4px);
|
|
35
|
+
--a8c-charts-border-radius-bar-chart: 0;
|
|
35
36
|
--a8c-charts-border-radius-cell: var(--wpds-border-radius-sm, 2px);
|
|
36
37
|
--a8c-charts-border-radius-leaderboard-bar: 9999px;
|
|
37
38
|
--a8c-charts-dimension-leaderboard-row-gap: var(--wpds-dimension-gap-md, 12px);
|
|
@@ -104,7 +105,7 @@
|
|
|
104
105
|
font-weight: var(--wpds-typography-font-weight-emphasis, 600);
|
|
105
106
|
flex-shrink: 0;
|
|
106
107
|
}
|
|
107
|
-
.a8ccharts
|
|
108
|
+
.a8ccharts-ddpU1W-surface {
|
|
108
109
|
padding: var(--wpds-dimension-padding-xs, 4px) var(--wpds-dimension-padding-sm, 8px);
|
|
109
110
|
background-color: var(--a8c-charts-color-surface);
|
|
110
111
|
color: var(--a8c-charts-color-label);
|
|
@@ -113,19 +114,15 @@
|
|
|
113
114
|
font-size: var(--wpds-typography-font-size-sm, 12px);
|
|
114
115
|
box-shadow: var(--a8c-charts-elevation-sm, 0 1px 2px 0 #0000000d, 0 2px 3px 0 #0000000a, 0 6px 6px 0 #00000008, 0 8px 8px 0 #00000005);
|
|
115
116
|
pointer-events: none;
|
|
117
|
+
min-width: fit-content;
|
|
116
118
|
line-height: 1.4;
|
|
117
119
|
}
|
|
118
120
|
|
|
119
121
|
@media (forced-colors: active) {
|
|
120
|
-
.a8ccharts
|
|
122
|
+
.a8ccharts-ddpU1W-surface {
|
|
121
123
|
border: var(--wpds-border-width-xs, 1px) solid CanvasText;
|
|
122
124
|
}
|
|
123
125
|
}
|
|
124
|
-
|
|
125
|
-
.a8ccharts--zY0xG-tooltip {
|
|
126
|
-
position: absolute;
|
|
127
|
-
transform: translate(-50%, -100%);
|
|
128
|
-
}
|
|
129
126
|
.a8ccharts-fpNVAq-chart-layout__content {
|
|
130
127
|
flex: 1;
|
|
131
128
|
min-width: 0;
|
|
@@ -309,6 +306,10 @@
|
|
|
309
306
|
overflow: visible;
|
|
310
307
|
}
|
|
311
308
|
|
|
309
|
+
.a8ccharts-97yN9W-bar-chart .visx-bar, .a8ccharts-97yN9W-bar-chart .bar-chart__comparison-bar {
|
|
310
|
+
rx: var(--a8c-charts-border-radius-bar-chart);
|
|
311
|
+
}
|
|
312
|
+
|
|
312
313
|
.a8ccharts-97yN9W-bar-chart--animated rect {
|
|
313
314
|
transform-origin: bottom;
|
|
314
315
|
transform-box: fill-box;
|
|
@@ -546,9 +547,9 @@
|
|
|
546
547
|
}
|
|
547
548
|
|
|
548
549
|
.a8ccharts-O3YMOW-heatmap-chart__group-label {
|
|
549
|
-
color: var(--a8c-charts-color-label
|
|
550
|
-
font-size: var(--wpds-typography-font-size-
|
|
551
|
-
line-height: var(--wpds-typography-line-height-
|
|
550
|
+
color: var(--a8c-charts-color-label);
|
|
551
|
+
font-size: var(--wpds-typography-font-size-md, 13px);
|
|
552
|
+
line-height: var(--wpds-typography-line-height-sm, 20px);
|
|
552
553
|
white-space: nowrap;
|
|
553
554
|
text-align: center;
|
|
554
555
|
padding-block-start: var(--wpds-dimension-padding-xs, 4px);
|
|
@@ -602,7 +603,7 @@
|
|
|
602
603
|
}
|
|
603
604
|
|
|
604
605
|
.a8ccharts-O3YMOW-heatmap-chart__cell--filled {
|
|
605
|
-
background: color-mix(in sRGB, var(--a8c-charts-color-heatmap-primary) calc(
|
|
606
|
+
background: color-mix(in sRGB, var(--a8c-charts-color-heatmap-high, var(--a8c-charts-color-heatmap-primary)) calc(var(--a8c-charts-heatmap-cell-intensity) * 100%), var(--a8c-charts-color-heatmap-low, color-mix(in sRGB, var(--a8c-charts-color-heatmap-primary) 15%, var(--a8c-charts-color-background, #fff))));
|
|
606
607
|
}
|
|
607
608
|
|
|
608
609
|
.a8ccharts-O3YMOW-heatmap-chart__cell--selected {
|
|
@@ -635,7 +636,11 @@
|
|
|
635
636
|
width: var(--wpds-dimension-size-3xs, 12px);
|
|
636
637
|
height: var(--wpds-dimension-size-3xs, 12px);
|
|
637
638
|
border-radius: var(--a8c-charts-border-radius-cell);
|
|
638
|
-
background: color-mix(in sRGB, var(--a8c-charts-color-heatmap-primary) calc(
|
|
639
|
+
background: color-mix(in sRGB, var(--a8c-charts-color-heatmap-high, var(--a8c-charts-color-heatmap-primary)) calc(var(--a8c-charts-heatmap-cell-intensity) * 100%), var(--a8c-charts-color-heatmap-low, color-mix(in sRGB, var(--a8c-charts-color-heatmap-primary) 15%, var(--a8c-charts-color-background, #fff))));
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
.a8ccharts-O3YMOW-heatmap-chart__legend-swatch--empty {
|
|
643
|
+
background: var(--a8c-charts-color-track);
|
|
639
644
|
}
|
|
640
645
|
|
|
641
646
|
.a8ccharts-O3YMOW-heatmap-chart__legend-scale--bar {
|
|
@@ -792,23 +797,23 @@
|
|
|
792
797
|
transition: transform var(--wpds-motion-duration-sm, .1s) var(--wpds-motion-easing-subtle, cubic-bezier(.15, 0, .15, 1));
|
|
793
798
|
}
|
|
794
799
|
|
|
795
|
-
.a8ccharts-GovfoW-interactiveRow:hover, .a8ccharts-GovfoW-interactiveRow:focus-visible {
|
|
800
|
+
.a8ccharts-GovfoW-interactiveRow:hover:not(:has(:is(a, button):not(.a8ccharts-GovfoW-rowButton):hover)), .a8ccharts-GovfoW-interactiveRow:focus-visible, .a8ccharts-GovfoW-interactiveRow:has( > .a8ccharts-GovfoW-rowButton:focus-visible) {
|
|
796
801
|
--a8c-charts-dimension-leaderboard-bar-hover-inset: var(--wpds-dimension-gap-2xl, 32px);
|
|
797
802
|
}
|
|
798
803
|
|
|
799
|
-
.a8ccharts-GovfoW-interactiveRow:hover .a8ccharts-GovfoW-bar, .a8ccharts-GovfoW-interactiveRow:focus-visible .a8ccharts-GovfoW-bar {
|
|
804
|
+
.a8ccharts-GovfoW-interactiveRow:hover:not(:has(:is(a, button):not(.a8ccharts-GovfoW-rowButton):hover)) .a8ccharts-GovfoW-bar, .a8ccharts-GovfoW-interactiveRow:focus-visible .a8ccharts-GovfoW-bar, .a8ccharts-GovfoW-interactiveRow:has( > .a8ccharts-GovfoW-rowButton:focus-visible) .a8ccharts-GovfoW-bar {
|
|
800
805
|
opacity: .5;
|
|
801
806
|
}
|
|
802
807
|
|
|
803
|
-
.a8ccharts-GovfoW-interactiveRow:hover .a8ccharts-GovfoW-valueContainer, .a8ccharts-GovfoW-interactiveRow:focus-visible .a8ccharts-GovfoW-valueContainer {
|
|
808
|
+
.a8ccharts-GovfoW-interactiveRow:hover:not(:has(:is(a, button):not(.a8ccharts-GovfoW-rowButton):hover)) .a8ccharts-GovfoW-valueContainer, .a8ccharts-GovfoW-interactiveRow:focus-visible .a8ccharts-GovfoW-valueContainer, .a8ccharts-GovfoW-interactiveRow:has( > .a8ccharts-GovfoW-rowButton:focus-visible) .a8ccharts-GovfoW-valueContainer {
|
|
804
809
|
transform: translateX(calc(var(--a8c-charts-dimension-leaderboard-bar-hover-inset) * -1));
|
|
805
810
|
}
|
|
806
811
|
|
|
807
|
-
.a8ccharts-GovfoW-interactiveRow:hover .a8ccharts-GovfoW-chevron, .a8ccharts-GovfoW-interactiveRow:focus-visible .a8ccharts-GovfoW-chevron {
|
|
812
|
+
.a8ccharts-GovfoW-interactiveRow:hover:not(:has(:is(a, button):not(.a8ccharts-GovfoW-rowButton):hover)) .a8ccharts-GovfoW-chevron, .a8ccharts-GovfoW-interactiveRow:focus-visible .a8ccharts-GovfoW-chevron, .a8ccharts-GovfoW-interactiveRow:has( > .a8ccharts-GovfoW-rowButton:focus-visible) .a8ccharts-GovfoW-chevron {
|
|
808
813
|
opacity: 1;
|
|
809
814
|
}
|
|
810
815
|
|
|
811
|
-
[dir="rtl"] .a8ccharts-GovfoW-interactiveRow:hover .a8ccharts-GovfoW-valueContainer, [dir="rtl"] .a8ccharts-GovfoW-interactiveRow:focus-visible .a8ccharts-GovfoW-valueContainer {
|
|
816
|
+
[dir="rtl"] .a8ccharts-GovfoW-interactiveRow:hover:not(:has(:is(a, button):not(.a8ccharts-GovfoW-rowButton):hover)) .a8ccharts-GovfoW-valueContainer, [dir="rtl"] .a8ccharts-GovfoW-interactiveRow:focus-visible .a8ccharts-GovfoW-valueContainer, [dir="rtl"] .a8ccharts-GovfoW-interactiveRow:has( > .a8ccharts-GovfoW-rowButton:focus-visible) .a8ccharts-GovfoW-valueContainer {
|
|
812
817
|
transform: translateX(var(--a8c-charts-dimension-leaderboard-bar-hover-inset));
|
|
813
818
|
}
|
|
814
819
|
|
|
@@ -818,6 +823,39 @@
|
|
|
818
823
|
outline-offset: calc(-1 * var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)));
|
|
819
824
|
}
|
|
820
825
|
|
|
826
|
+
.a8ccharts-GovfoW-layeredRow {
|
|
827
|
+
isolation: isolate;
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
.a8ccharts-GovfoW-layeredRow > :not(.a8ccharts-GovfoW-rowButton, .a8ccharts-GovfoW-chevron) {
|
|
831
|
+
z-index: 1;
|
|
832
|
+
pointer-events: none;
|
|
833
|
+
position: relative;
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
.a8ccharts-GovfoW-layeredRow :is(a, button):not(.a8ccharts-GovfoW-rowButton) {
|
|
837
|
+
z-index: 1;
|
|
838
|
+
pointer-events: auto;
|
|
839
|
+
position: relative;
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
.a8ccharts-GovfoW-rowButton {
|
|
843
|
+
appearance: none;
|
|
844
|
+
cursor: pointer;
|
|
845
|
+
z-index: 0;
|
|
846
|
+
background: none;
|
|
847
|
+
border: 0;
|
|
848
|
+
padding: 0;
|
|
849
|
+
position: absolute;
|
|
850
|
+
inset: 0;
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
.a8ccharts-GovfoW-rowButton:focus-visible {
|
|
854
|
+
border-radius: var(--wpds-border-radius-sm, 2px);
|
|
855
|
+
outline: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)) solid var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9));
|
|
856
|
+
outline-offset: calc(-1 * var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)));
|
|
857
|
+
}
|
|
858
|
+
|
|
821
859
|
.a8ccharts-GovfoW-chevron {
|
|
822
860
|
inset-inline-end: var(--wpds-dimension-padding-xs, 4px);
|
|
823
861
|
opacity: 0;
|
|
@@ -839,6 +877,19 @@
|
|
|
839
877
|
transition: none;
|
|
840
878
|
}
|
|
841
879
|
}
|
|
880
|
+
.a8ccharts-V2HDKq-selected-ring__contrast, .a8ccharts-V2HDKq-selected-ring__focus {
|
|
881
|
+
fill: none;
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
.a8ccharts-V2HDKq-selected-ring__contrast {
|
|
885
|
+
stroke: var(--a8c-charts-color-background, #fff);
|
|
886
|
+
stroke-width: calc(4 * var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)));
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
.a8ccharts-V2HDKq-selected-ring__focus {
|
|
890
|
+
stroke: var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9));
|
|
891
|
+
stroke-width: calc(2 * var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)));
|
|
892
|
+
}
|
|
842
893
|
.a8ccharts-gnszbG-pie-chart__plot {
|
|
843
894
|
position: relative;
|
|
844
895
|
}
|
package/dist/index.d.cts
CHANGED
|
@@ -4,7 +4,7 @@ import { AxisRendererProps, AxisScale, Orientation, TickFormatter } from "@visx/
|
|
|
4
4
|
import { PickD3Scale, ScaleInput, ScaleType } from "@visx/scale";
|
|
5
5
|
import { TextProps } from "@visx/text";
|
|
6
6
|
import { EventHandlerParams, EventHandlerParams as EventHandlerParams$1, GlyphProps, GridStyles, GridStyles as GridStyles$1, LineStyles, LineStyles as LineStyles$1, TooltipContextType } from "@visx/xychart";
|
|
7
|
-
import { CSSProperties, ComponentClass, ComponentProps, ComponentType, FC, JSX, MouseEvent, PointerEvent, PropsWithChildren, ReactElement, ReactNode, SVGProps } from "react";
|
|
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
10
|
//#region src/types.d.ts
|
|
@@ -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
|
|
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?:
|
|
896
|
+
renderLabel?: (props: {
|
|
884
897
|
title: string;
|
|
885
898
|
subtitle?: string;
|
|
886
|
-
}
|
|
887
|
-
renderLabelPopover?:
|
|
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
|
|
1426
|
-
* first series palette slot,
|
|
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' | '
|
|
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
|
|
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
|
|
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/
|
|
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
|
-
|
|
2134
|
-
|
|
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
|
-
*
|
|
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/
|
|
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
|
-
|
|
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
|
|
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/
|
|
2188
|
-
type
|
|
2189
|
-
|
|
2190
|
-
|
|
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.cts.map
|