@sproutsocial/seeds-react-data-viz 0.24.1 → 0.24.3
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/dist/{axis-B61qI-nm.d.mts → axis-3XKa6pW7.d.mts} +1 -1
- package/dist/{axis-B78FtYLh.d.ts → axis-BWvZqdQr.d.ts} +1 -1
- package/dist/bar/index.d.mts +2 -2
- package/dist/bar/index.d.ts +2 -2
- package/dist/bar/index.js +11 -11
- package/dist/bubble/index.d.mts +1 -1
- package/dist/bubble/index.d.ts +1 -1
- package/dist/bubble/index.js +5 -5
- package/dist/chart-styles.css +10 -1
- package/dist/{chartBase-Nl6mcTB7.d.ts → chartBase-BM97OBBE.d.ts} +2 -0
- package/dist/{chartBase-CptOt3V0.d.mts → chartBase-D6WI2icR.d.mts} +2 -0
- package/dist/charts.css +10 -1
- package/dist/{chunk-3P6MPBSZ.js → chunk-5JQXDK23.js} +37 -28
- package/dist/chunk-5JQXDK23.js.map +1 -0
- package/dist/{chunk-MTGYEUZN.js → chunk-GHZHRFE6.js} +3 -3
- package/dist/{chunk-MTGYEUZN.js.map → chunk-GHZHRFE6.js.map} +1 -1
- package/dist/{chunk-OP6K5NDR.js → chunk-LKUL4EFZ.js} +8 -4
- package/dist/chunk-LKUL4EFZ.js.map +1 -0
- package/dist/{chunk-2H2Z7PKZ.js → chunk-W57R2V23.js} +2 -19
- package/dist/chunk-W57R2V23.js.map +1 -0
- package/dist/donut/index.d.mts +1 -1
- package/dist/donut/index.d.ts +1 -1
- package/dist/donut/index.js +5 -5
- package/dist/esm/bar/index.js +4 -4
- package/dist/esm/bubble/index.js +2 -2
- package/dist/esm/{chunk-NZX3WPXT.js → chunk-32QLJDP2.js} +1 -18
- package/dist/esm/chunk-32QLJDP2.js.map +1 -0
- package/dist/esm/{chunk-MQDI7D54.js → chunk-AUU3KROF.js} +2 -2
- package/dist/esm/{chunk-Y4RJJBJQ.js → chunk-DF5PVRXT.js} +7 -3
- package/dist/esm/{chunk-Y4RJJBJQ.js.map → chunk-DF5PVRXT.js.map} +1 -1
- package/dist/esm/{chunk-ISP4A622.js → chunk-EWAD675C.js} +57 -48
- package/dist/esm/chunk-EWAD675C.js.map +1 -0
- package/dist/esm/donut/index.js +2 -2
- package/dist/esm/index.js +105 -90
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/line-area/index.js +4 -4
- package/dist/esm/sparkline/index.js +3 -3
- package/dist/index.js +67 -52
- package/dist/index.js.map +1 -1
- package/dist/line-area/index.d.mts +2 -2
- package/dist/line-area/index.d.ts +2 -2
- package/dist/line-area/index.js +11 -11
- package/dist/sparkline/index.d.mts +3 -3
- package/dist/sparkline/index.d.ts +3 -3
- package/dist/sparkline/index.js +7 -7
- package/package.json +3 -3
- package/dist/chunk-2H2Z7PKZ.js.map +0 -1
- package/dist/chunk-3P6MPBSZ.js.map +0 -1
- package/dist/chunk-OP6K5NDR.js.map +0 -1
- package/dist/esm/chunk-ISP4A622.js.map +0 -1
- package/dist/esm/chunk-NZX3WPXT.js.map +0 -1
- /package/dist/esm/{chunk-MQDI7D54.js.map → chunk-AUU3KROF.js.map} +0 -0
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
buildAnnotationConfig,
|
|
3
3
|
defaultValueAxisLabelFormatter,
|
|
4
4
|
makeValueAxisLabelFormatter
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-AUU3KROF.js";
|
|
6
6
|
import {
|
|
7
7
|
buildDimensionalAxis,
|
|
8
8
|
resolveTooltipOptions
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-DF5PVRXT.js";
|
|
10
10
|
import {
|
|
11
11
|
getChartContainerProps
|
|
12
12
|
} from "../chunk-P3MVYSHX.js";
|
|
@@ -17,8 +17,8 @@ import {
|
|
|
17
17
|
ChartRenderer,
|
|
18
18
|
buildBaseChartOptions,
|
|
19
19
|
useSeedsChartSetup
|
|
20
|
-
} from "../chunk-
|
|
21
|
-
import "../chunk-
|
|
20
|
+
} from "../chunk-EWAD675C.js";
|
|
21
|
+
import "../chunk-32QLJDP2.js";
|
|
22
22
|
|
|
23
23
|
// src/charts/line-area/LineAreaChart.tsx
|
|
24
24
|
import { memo, useMemo } from "react";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildDimensionalAxis,
|
|
3
3
|
resolveTooltipOptions
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-DF5PVRXT.js";
|
|
5
5
|
import {
|
|
6
6
|
ChartRenderer,
|
|
7
7
|
buildBaseChartOptions
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-
|
|
8
|
+
} from "../chunk-EWAD675C.js";
|
|
9
|
+
import "../chunk-32QLJDP2.js";
|
|
10
10
|
|
|
11
11
|
// src/charts/sparkline/SparklineChart.tsx
|
|
12
12
|
import { memo } from "react";
|
package/dist/index.js
CHANGED
|
@@ -34,8 +34,7 @@ var _chunk33Y5FZTTjs = require('./chunk-33Y5FZTT.js');
|
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
|
|
38
|
-
var _chunk2H2Z7PKZjs = require('./chunk-2H2Z7PKZ.js');
|
|
37
|
+
var _chunkW57R2V23js = require('./chunk-W57R2V23.js');
|
|
39
38
|
|
|
40
39
|
// src/components/AreaChart/AreaChart.tsx
|
|
41
40
|
var _react = require('react');
|
|
@@ -53,7 +52,7 @@ var _seedsreacttheme = require('@sproutsocial/seeds-react-theme');
|
|
|
53
52
|
// src/components/ColorBox/DatavizColorBox.tsx
|
|
54
53
|
|
|
55
54
|
|
|
56
|
-
var DatavizColorBox = _styledcomponents2.default.call(void 0,
|
|
55
|
+
var DatavizColorBox = _styledcomponents2.default.call(void 0, _chunkW57R2V23js.ColorBox).attrs(
|
|
57
56
|
({ colorIndex }) => ({
|
|
58
57
|
style: {
|
|
59
58
|
background: getDatavizColor(colorIndex),
|
|
@@ -83,22 +82,38 @@ var NetworkColorBox = ({
|
|
|
83
82
|
networkColor,
|
|
84
83
|
...props
|
|
85
84
|
}) => {
|
|
86
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
85
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkW57R2V23js.ColorBox, { ...props, bg: _seedsnetworkcolor2.default[networkColor] });
|
|
87
86
|
};
|
|
88
87
|
|
|
88
|
+
// src/components/ChartLegend/components/ChartLegendLabelContentWithIcon.tsx
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
var ChartLegendLabelContentWithIcon = _react.memo.call(void 0,
|
|
93
|
+
function ChartLegendLabelContentWithIcon2({
|
|
94
|
+
children,
|
|
95
|
+
icon
|
|
96
|
+
}) {
|
|
97
|
+
return icon ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _seedsreactbox.Box, { display: "flex", alignItems: "center", gap: 200, children: [
|
|
98
|
+
icon,
|
|
99
|
+
children
|
|
100
|
+
] }) : children;
|
|
101
|
+
}
|
|
102
|
+
);
|
|
103
|
+
|
|
89
104
|
// src/components/AreaChart/components/AreaChartLegend.tsx
|
|
90
105
|
|
|
91
106
|
var getAreaChartLegendLabels = ({
|
|
92
107
|
data
|
|
93
108
|
}) => {
|
|
94
109
|
return data.map((series, index) => ({
|
|
95
|
-
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
110
|
+
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChartLegendLabelContentWithIcon, { icon: series.icon, children: series.name }),
|
|
96
111
|
color: _optionalChain([series, 'access', _ => _.styles, 'optionalAccess', _2 => _2.color]) || _seedsreacttheme.theme.colors.DATAVIZ_COLORS_LIST[index]
|
|
97
112
|
}));
|
|
98
113
|
};
|
|
99
114
|
var AreaChartLegend = _react.memo.call(void 0,
|
|
100
115
|
function AreaChartLegend2({ data }) {
|
|
101
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
116
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkW57R2V23js.ChartLegend, { legendLabels: getAreaChartLegendLabels({ data }) });
|
|
102
117
|
}
|
|
103
118
|
);
|
|
104
119
|
|
|
@@ -131,7 +146,7 @@ var AreaChartTooltip = _react.memo.call(void 0,
|
|
|
131
146
|
return {
|
|
132
147
|
cells: [
|
|
133
148
|
{
|
|
134
|
-
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
149
|
+
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkW57R2V23js.ChartLegendLabel, { color, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChartLegendLabelContentWithIcon, { icon, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacttext.Text, { "aria-label": `${name}: `, children: name }) }) })
|
|
135
150
|
},
|
|
136
151
|
{
|
|
137
152
|
content: value === null && invalidNumberLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacttext.Text, { children: invalidNumberLabel }) : numberFormat === "duration" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreactduration.Duration, { locale: textLocale, milliseconds: value }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -179,16 +194,16 @@ var AreaChartTooltip = _react.memo.call(void 0,
|
|
|
179
194
|
isAppendedRow: true
|
|
180
195
|
}
|
|
181
196
|
] : [];
|
|
182
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
197
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkW57R2V23js.ChartTooltip, { children: [
|
|
183
198
|
xAnnotationDetails ? xAnnotationDetails() : void 0,
|
|
184
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
199
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkW57R2V23js.ChartTooltipTitle, { children: tooltipDateFormatter({ x }) }),
|
|
185
200
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
186
|
-
|
|
201
|
+
_chunkW57R2V23js.ChartTooltipTable,
|
|
187
202
|
{
|
|
188
203
|
rows: [...rows, ...appendedRows]
|
|
189
204
|
}
|
|
190
205
|
),
|
|
191
|
-
onClick && tooltipClickLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
206
|
+
onClick && tooltipClickLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkW57R2V23js.ChartTooltipFooter, { children: typeof tooltipClickLabel === "string" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _seedsreactbox.Box, { display: "flex", alignItems: "center", gap: 300, children: [
|
|
192
207
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacticon.Icon, { name: "hand-pointer-clicking-outline", color: "icon.base" }),
|
|
193
208
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacttext.Text, { color: "text.subtext", fontSize: 200, children: tooltipClickLabel })
|
|
194
209
|
] }) : tooltipClickLabel }) : null
|
|
@@ -721,7 +736,7 @@ var useTimeSeriesChartOptions = ({
|
|
|
721
736
|
return onClick({ x: _optionalChain([this, 'optionalAccess', _28 => _28.hoverPoint, 'optionalAccess', _29 => _29.x]) });
|
|
722
737
|
} : void 0,
|
|
723
738
|
load: function() {
|
|
724
|
-
const tooltipId =
|
|
739
|
+
const tooltipId = _chunkW57R2V23js.generateChartTooltipPortalId.call(void 0, this.index);
|
|
725
740
|
attachTooltipEventListeners(this.series, tooltipId);
|
|
726
741
|
}
|
|
727
742
|
}
|
|
@@ -887,7 +902,7 @@ var xAxisLabelFormatterDefault = xAxisLabelFormatter;
|
|
|
887
902
|
_accessibility2.default.call(void 0, _highcharts2.default);
|
|
888
903
|
_annotations2.default.call(void 0, _highcharts2.default);
|
|
889
904
|
var StyledBox = _styledcomponents2.default.call(void 0, _seedsreactbox.Box)`
|
|
890
|
-
${
|
|
905
|
+
${_chunkW57R2V23js.areaChartStyles}
|
|
891
906
|
`;
|
|
892
907
|
var AreaChart = _react.memo.call(void 0, function AreaChart2(props) {
|
|
893
908
|
const { data } = props;
|
|
@@ -930,7 +945,7 @@ var AreaChartWithData = _react.memo.call(void 0, function AreaChartWithData2({
|
|
|
930
945
|
(series, index) => _nullishCoalesce(_optionalChain([series, 'access', _32 => _32.styles, 'optionalAccess', _33 => _33.color]), () => ( _seedsreacttheme.theme.colors.DATAVIZ_COLORS_LIST[index]))
|
|
931
946
|
);
|
|
932
947
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
933
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
948
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkW57R2V23js.GlobalChartStyleOverrides, {}),
|
|
934
949
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
935
950
|
StyledBox,
|
|
936
951
|
{
|
|
@@ -955,11 +970,11 @@ var AreaChartWithData = _react.memo.call(void 0, function AreaChartWithData2({
|
|
|
955
970
|
}
|
|
956
971
|
) : null,
|
|
957
972
|
chart && !disableTooltips ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
958
|
-
|
|
973
|
+
_chunkW57R2V23js.ChartTooltipPortal,
|
|
959
974
|
{
|
|
960
975
|
chart,
|
|
961
976
|
renderContent: (context) => {
|
|
962
|
-
const tooltipData =
|
|
977
|
+
const tooltipData = _chunkW57R2V23js.transformTimeSeriesTooltipData.call(void 0, {
|
|
963
978
|
context,
|
|
964
979
|
data
|
|
965
980
|
});
|
|
@@ -1002,7 +1017,7 @@ var AreaChartWithData = _react.memo.call(void 0, function AreaChartWithData2({
|
|
|
1002
1017
|
|
|
1003
1018
|
var ChartXAnnotationDetails = _react.memo.call(void 0,
|
|
1004
1019
|
function ChartXAnnotationDetails2({ iconName, text }) {
|
|
1005
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1020
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkW57R2V23js.ChartTooltipHeader, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _seedsreactbox.Box, { display: "flex", alignItems: "center", gap: 300, children: [
|
|
1006
1021
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacticon.Icon, { name: iconName, size: "mini", color: "icon.base" }),
|
|
1007
1022
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacttext.Text, { color: "text.body", fontSize: 200, children: text })
|
|
1008
1023
|
] }) });
|
|
@@ -1051,13 +1066,13 @@ var getDonutChartLegendLabels = ({
|
|
|
1051
1066
|
data
|
|
1052
1067
|
}) => {
|
|
1053
1068
|
return data.map((slice, index) => ({
|
|
1054
|
-
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1069
|
+
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChartLegendLabelContentWithIcon, { icon: slice.icon, children: slice.name }),
|
|
1055
1070
|
color: _optionalChain([slice, 'access', _40 => _40.styles, 'optionalAccess', _41 => _41.color]) || _seedsreacttheme.theme.colors.DATAVIZ_COLORS_LIST[index]
|
|
1056
1071
|
}));
|
|
1057
1072
|
};
|
|
1058
1073
|
var DonutChartLegend = _react.memo.call(void 0,
|
|
1059
1074
|
function DonutChartLegend2({ data }) {
|
|
1060
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1075
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkW57R2V23js.ChartLegend, { legendLabels: getDonutChartLegendLabels({ data }) });
|
|
1061
1076
|
}
|
|
1062
1077
|
);
|
|
1063
1078
|
|
|
@@ -1087,7 +1102,7 @@ var DonutChartTooltip = _react.memo.call(void 0,
|
|
|
1087
1102
|
{
|
|
1088
1103
|
cells: [
|
|
1089
1104
|
{
|
|
1090
|
-
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1105
|
+
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkW57R2V23js.ChartLegendLabel, { color, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChartLegendLabelContentWithIcon, { icon, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacttext.Text, { "aria-label": `${name}: `, children: name }) }) })
|
|
1091
1106
|
},
|
|
1092
1107
|
{
|
|
1093
1108
|
content: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _seedsreactbox.Box, { display: "inline-flex", alignItems: "center", gap: 350, children: [
|
|
@@ -1116,9 +1131,9 @@ var DonutChartTooltip = _react.memo.call(void 0,
|
|
|
1116
1131
|
]
|
|
1117
1132
|
}
|
|
1118
1133
|
];
|
|
1119
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1120
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1121
|
-
onClick && tooltipClickLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1134
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkW57R2V23js.ChartTooltip, { children: [
|
|
1135
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkW57R2V23js.ChartTooltipTable, { rows }),
|
|
1136
|
+
onClick && tooltipClickLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkW57R2V23js.ChartTooltipFooter, { children: typeof tooltipClickLabel === "string" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _seedsreactbox.Box, { display: "flex", alignItems: "center", gap: 300, children: [
|
|
1122
1137
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacticon.Icon, { name: "hand-pointer-clicking-outline", color: "icon.base" }),
|
|
1123
1138
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacttext.Text, { color: "text.subtext", fontSize: 200, children: tooltipClickLabel })
|
|
1124
1139
|
] }) : tooltipClickLabel }) : null
|
|
@@ -1147,7 +1162,7 @@ var transformDonutChartTooltipData = ({
|
|
|
1147
1162
|
|
|
1148
1163
|
_accessibility2.default.call(void 0, _highcharts2.default);
|
|
1149
1164
|
var StyledBox2 = _styledcomponents2.default.call(void 0, _seedsreactbox.Box)`
|
|
1150
|
-
${
|
|
1165
|
+
${_chunkW57R2V23js.donutChartStyles}
|
|
1151
1166
|
`;
|
|
1152
1167
|
var DonutChart = _react.memo.call(void 0, function DonutChart2(props) {
|
|
1153
1168
|
const { data } = props;
|
|
@@ -1185,7 +1200,7 @@ var DonutChartWithData = _react.memo.call(void 0,
|
|
|
1185
1200
|
events: {
|
|
1186
1201
|
render: function() {
|
|
1187
1202
|
const allSlices = _nullishCoalesce(_optionalChain([this, 'access', _49 => _49.series, 'access', _50 => _50[0], 'optionalAccess', _51 => _51.data]), () => ( []));
|
|
1188
|
-
const tooltipId =
|
|
1203
|
+
const tooltipId = _chunkW57R2V23js.generateChartTooltipPortalId.call(void 0, this.index);
|
|
1189
1204
|
allSlices.forEach((slice) => {
|
|
1190
1205
|
const sliceElement = _optionalChain([slice, 'optionalAccess', _52 => _52.graphic, 'optionalAccess', _53 => _53.element]);
|
|
1191
1206
|
_optionalChain([sliceElement, 'optionalAccess', _54 => _54.setAttribute, 'call', _55 => _55("aria-describedby", tooltipId)]);
|
|
@@ -1225,7 +1240,7 @@ var DonutChartWithData = _react.memo.call(void 0,
|
|
|
1225
1240
|
(series, index) => _nullishCoalesce(_nullishCoalesce(_optionalChain([series, 'access', _60 => _60.styles, 'optionalAccess', _61 => _61.color]), () => ( _seedsreacttheme.theme.colors.DATAVIZ_COLORS_LIST[index])), () => ( ""))
|
|
1226
1241
|
);
|
|
1227
1242
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1228
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1243
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkW57R2V23js.GlobalChartStyleOverrides, {}),
|
|
1229
1244
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1230
1245
|
StyledBox2,
|
|
1231
1246
|
{
|
|
@@ -1242,7 +1257,7 @@ var DonutChartWithData = _react.memo.call(void 0,
|
|
|
1242
1257
|
}
|
|
1243
1258
|
),
|
|
1244
1259
|
chart && !disableTooltips ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1245
|
-
|
|
1260
|
+
_chunkW57R2V23js.ChartTooltipPortal,
|
|
1246
1261
|
{
|
|
1247
1262
|
chart,
|
|
1248
1263
|
renderContent: (context) => {
|
|
@@ -1302,7 +1317,7 @@ var DonutChartLegendTable = _react.memo.call(void 0,
|
|
|
1302
1317
|
return {
|
|
1303
1318
|
cells: [
|
|
1304
1319
|
{
|
|
1305
|
-
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1320
|
+
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkW57R2V23js.ChartLegendLabel, { color, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChartLegendLabelContentWithIcon, { icon, children: name }) })
|
|
1306
1321
|
},
|
|
1307
1322
|
{
|
|
1308
1323
|
content: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _seedsreactbox.Box, { display: "inline-flex", alignItems: "center", gap: 350, children: [
|
|
@@ -1355,7 +1370,7 @@ var DonutChartLegendTable = _react.memo.call(void 0,
|
|
|
1355
1370
|
}
|
|
1356
1371
|
];
|
|
1357
1372
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1358
|
-
|
|
1373
|
+
_chunkW57R2V23js.ChartTable,
|
|
1359
1374
|
{
|
|
1360
1375
|
rows: [...rows, ...totalRow]
|
|
1361
1376
|
}
|
|
@@ -1380,13 +1395,13 @@ var getLineChartLegendLabels = ({
|
|
|
1380
1395
|
data
|
|
1381
1396
|
}) => {
|
|
1382
1397
|
return data.map((series, index) => ({
|
|
1383
|
-
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1398
|
+
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChartLegendLabelContentWithIcon, { icon: series.icon, children: series.name }),
|
|
1384
1399
|
color: _optionalChain([series, 'access', _63 => _63.styles, 'optionalAccess', _64 => _64.color]) || _seedsreacttheme.theme.colors.DATAVIZ_COLORS_LIST[index]
|
|
1385
1400
|
}));
|
|
1386
1401
|
};
|
|
1387
1402
|
var LineChartLegend = _react.memo.call(void 0,
|
|
1388
1403
|
function LineChartLegend2({ data }) {
|
|
1389
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1404
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkW57R2V23js.ChartLegend, { legendLabels: getLineChartLegendLabels({ data }) });
|
|
1390
1405
|
}
|
|
1391
1406
|
);
|
|
1392
1407
|
|
|
@@ -1417,7 +1432,7 @@ var LineChartTooltip = _react.memo.call(void 0,
|
|
|
1417
1432
|
return {
|
|
1418
1433
|
cells: [
|
|
1419
1434
|
{
|
|
1420
|
-
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1435
|
+
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkW57R2V23js.ChartLegendLabel, { color, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChartLegendLabelContentWithIcon, { icon, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacttext.Text, { "aria-label": `${name}: `, children: name }) }) })
|
|
1421
1436
|
},
|
|
1422
1437
|
{
|
|
1423
1438
|
content: value === null && invalidNumberLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacttext.Text, { children: invalidNumberLabel }) : numberFormat === "duration" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreactduration.Duration, { locale: textLocale, milliseconds: value }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -1435,11 +1450,11 @@ var LineChartTooltip = _react.memo.call(void 0,
|
|
|
1435
1450
|
]
|
|
1436
1451
|
};
|
|
1437
1452
|
});
|
|
1438
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1453
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkW57R2V23js.ChartTooltip, { children: [
|
|
1439
1454
|
xAnnotationDetails ? xAnnotationDetails() : void 0,
|
|
1440
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1441
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1442
|
-
onClick && tooltipClickLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1455
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkW57R2V23js.ChartTooltipTitle, { children: tooltipDateFormatter({ x }) }),
|
|
1456
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkW57R2V23js.ChartTooltipTable, { rows }),
|
|
1457
|
+
onClick && tooltipClickLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkW57R2V23js.ChartTooltipFooter, { children: typeof tooltipClickLabel === "string" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _seedsreactbox.Box, { display: "flex", alignItems: "center", gap: 300, children: [
|
|
1443
1458
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacticon.Icon, { name: "hand-pointer-clicking-outline", color: "icon.base" }),
|
|
1444
1459
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacttext.Text, { color: "text.subtext", fontSize: 200, children: tooltipClickLabel })
|
|
1445
1460
|
] }) : tooltipClickLabel }) : null
|
|
@@ -1453,7 +1468,7 @@ var LineChartTooltip = _react.memo.call(void 0,
|
|
|
1453
1468
|
_accessibility2.default.call(void 0, _highcharts2.default);
|
|
1454
1469
|
_annotations2.default.call(void 0, _highcharts2.default);
|
|
1455
1470
|
var StyledBox3 = _styledcomponents2.default.call(void 0, _seedsreactbox.Box)`
|
|
1456
|
-
${
|
|
1471
|
+
${_chunkW57R2V23js.lineChartStyles}
|
|
1457
1472
|
`;
|
|
1458
1473
|
var LineChart = _react.memo.call(void 0, function LineChart2(props) {
|
|
1459
1474
|
const { data } = props;
|
|
@@ -1507,7 +1522,7 @@ var LineChartWithData = _react.memo.call(void 0, function LineChartWithData2({
|
|
|
1507
1522
|
}
|
|
1508
1523
|
);
|
|
1509
1524
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1510
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1525
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkW57R2V23js.GlobalChartStyleOverrides, {}),
|
|
1511
1526
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1512
1527
|
StyledBox3,
|
|
1513
1528
|
{
|
|
@@ -1533,11 +1548,11 @@ var LineChartWithData = _react.memo.call(void 0, function LineChartWithData2({
|
|
|
1533
1548
|
}
|
|
1534
1549
|
) : null,
|
|
1535
1550
|
chart && !disableTooltips ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1536
|
-
|
|
1551
|
+
_chunkW57R2V23js.ChartTooltipPortal,
|
|
1537
1552
|
{
|
|
1538
1553
|
chart,
|
|
1539
1554
|
renderContent: (context) => {
|
|
1540
|
-
const tooltipData =
|
|
1555
|
+
const tooltipData = _chunkW57R2V23js.transformTimeSeriesTooltipData.call(void 0, {
|
|
1541
1556
|
context,
|
|
1542
1557
|
data
|
|
1543
1558
|
});
|
|
@@ -1586,13 +1601,13 @@ var getVerticalBarChartLegendLabels = ({
|
|
|
1586
1601
|
data
|
|
1587
1602
|
}) => {
|
|
1588
1603
|
return data.map((series, index) => ({
|
|
1589
|
-
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1604
|
+
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChartLegendLabelContentWithIcon, { icon: series.icon, children: series.name }),
|
|
1590
1605
|
color: _optionalChain([series, 'access', _75 => _75.styles, 'optionalAccess', _76 => _76.color]) || _seedsreacttheme.theme.colors.DATAVIZ_COLORS_LIST[index]
|
|
1591
1606
|
}));
|
|
1592
1607
|
};
|
|
1593
1608
|
var VerticalBarChartLegend = _react.memo.call(void 0,
|
|
1594
1609
|
function VerticalbarChartLegend({ data }) {
|
|
1595
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1610
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkW57R2V23js.ChartLegend, { legendLabels: getVerticalBarChartLegendLabels({ data }) });
|
|
1596
1611
|
}
|
|
1597
1612
|
);
|
|
1598
1613
|
|
|
@@ -1623,7 +1638,7 @@ var VerticalBarChartTooltip = _react.memo.call(void 0,
|
|
|
1623
1638
|
return {
|
|
1624
1639
|
cells: [
|
|
1625
1640
|
{
|
|
1626
|
-
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1641
|
+
content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkW57R2V23js.ChartLegendLabel, { color, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChartLegendLabelContentWithIcon, { icon, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacttext.Text, { "aria-label": `${name}: `, children: name }) }) })
|
|
1627
1642
|
},
|
|
1628
1643
|
{
|
|
1629
1644
|
content: value === null && invalidNumberLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacttext.Text, { children: invalidNumberLabel }) : numberFormat === "duration" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreactduration.Duration, { locale: textLocale, milliseconds: value }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -1641,11 +1656,11 @@ var VerticalBarChartTooltip = _react.memo.call(void 0,
|
|
|
1641
1656
|
]
|
|
1642
1657
|
};
|
|
1643
1658
|
});
|
|
1644
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1659
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkW57R2V23js.ChartTooltip, { children: [
|
|
1645
1660
|
xAnnotationDetails ? xAnnotationDetails() : void 0,
|
|
1646
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1647
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1648
|
-
onClick && tooltipClickLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1661
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkW57R2V23js.ChartTooltipTitle, { children: tooltipDateFormatter({ x }) }),
|
|
1662
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkW57R2V23js.ChartTooltipTable, { rows }),
|
|
1663
|
+
onClick && tooltipClickLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkW57R2V23js.ChartTooltipFooter, { children: typeof tooltipClickLabel === "string" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _seedsreactbox.Box, { display: "flex", alignItems: "center", gap: 300, children: [
|
|
1649
1664
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacticon.Icon, { name: "hand-pointer-clicking-outline", color: "icon.base" }),
|
|
1650
1665
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacttext.Text, { color: "text.subtext", fontSize: 200, children: tooltipClickLabel })
|
|
1651
1666
|
] }) : tooltipClickLabel }) : null
|
|
@@ -1659,7 +1674,7 @@ var VerticalBarChartTooltip = _react.memo.call(void 0,
|
|
|
1659
1674
|
// src/components/VerticalBarChart/styles.ts
|
|
1660
1675
|
|
|
1661
1676
|
var verticalBarChartStyles = _styledcomponents.css`
|
|
1662
|
-
${
|
|
1677
|
+
${_chunkW57R2V23js.timeSeriesChartStyles}
|
|
1663
1678
|
|
|
1664
1679
|
/*
|
|
1665
1680
|
When the chart container is hovered, reduce the opacity of all columns.
|
|
@@ -1787,7 +1802,7 @@ var VerticalBarChartWithData = _react.memo.call(void 0,
|
|
|
1787
1802
|
}
|
|
1788
1803
|
);
|
|
1789
1804
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1790
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1805
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkW57R2V23js.GlobalChartStyleOverrides, {}),
|
|
1791
1806
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1792
1807
|
StyledBox4,
|
|
1793
1808
|
{
|
|
@@ -1812,11 +1827,11 @@ var VerticalBarChartWithData = _react.memo.call(void 0,
|
|
|
1812
1827
|
}
|
|
1813
1828
|
) : null,
|
|
1814
1829
|
chart ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1815
|
-
|
|
1830
|
+
_chunkW57R2V23js.ChartTooltipPortal,
|
|
1816
1831
|
{
|
|
1817
1832
|
chart,
|
|
1818
1833
|
renderContent: (context) => {
|
|
1819
|
-
const tooltipData =
|
|
1834
|
+
const tooltipData = _chunkW57R2V23js.transformTimeSeriesTooltipData.call(void 0, {
|
|
1820
1835
|
context,
|
|
1821
1836
|
data
|
|
1822
1837
|
});
|
|
@@ -1901,5 +1916,5 @@ var VerticalBarChartWithData = _react.memo.call(void 0,
|
|
|
1901
1916
|
|
|
1902
1917
|
|
|
1903
1918
|
|
|
1904
|
-
exports.AreaChart = AreaChart; exports.BUBBLE_CHART_DEFAULT_MAX_SIZE = _chunk33Y5FZTTjs.BUBBLE_CHART_DEFAULT_MAX_SIZE; exports.BUBBLE_CHART_DEFAULT_PADDING = _chunk33Y5FZTTjs.BUBBLE_CHART_DEFAULT_PADDING; exports.BUBBLE_CHART_HEIGHT = _chunk33Y5FZTTjs.BUBBLE_CHART_HEIGHT; exports.ChartLegend =
|
|
1919
|
+
exports.AreaChart = AreaChart; exports.BUBBLE_CHART_DEFAULT_MAX_SIZE = _chunk33Y5FZTTjs.BUBBLE_CHART_DEFAULT_MAX_SIZE; exports.BUBBLE_CHART_DEFAULT_PADDING = _chunk33Y5FZTTjs.BUBBLE_CHART_DEFAULT_PADDING; exports.BUBBLE_CHART_HEIGHT = _chunk33Y5FZTTjs.BUBBLE_CHART_HEIGHT; exports.ChartLegend = _chunkW57R2V23js.ChartLegend; exports.ChartLegendLabel = _chunkW57R2V23js.ChartLegendLabel; exports.ChartTable = _chunkW57R2V23js.ChartTable; exports.ChartTooltip = _chunkW57R2V23js.ChartTooltip; exports.ChartTooltipFooter = _chunkW57R2V23js.ChartTooltipFooter; exports.ChartTooltipHeader = _chunkW57R2V23js.ChartTooltipHeader; exports.ChartTooltipPortal = _chunkW57R2V23js.ChartTooltipPortal; exports.ChartTooltipTable = _chunkW57R2V23js.ChartTooltipTable; exports.ChartTooltipTitle = _chunkW57R2V23js.ChartTooltipTitle; exports.ChartXAnnotationDetails = ChartXAnnotationDetails; exports.ChartXAnnotationMarker = ChartXAnnotationMarker; exports.ColorBox = _chunkW57R2V23js.ColorBox; exports.DONUT_CHART_HALO_SIZE = _chunk33Y5FZTTjs.DONUT_CHART_HALO_SIZE; exports.DONUT_CHART_HEIGHT = _chunk33Y5FZTTjs.DONUT_CHART_HEIGHT; exports.DONUT_CHART_WIDTH = _chunk33Y5FZTTjs.DONUT_CHART_WIDTH; exports.DatavizColorBox = DatavizColorBox; exports.DonutChart = DonutChart; exports.DonutChartLegendTable = DonutChartLegendTable; exports.GlobalChartStyleOverrides = _chunkW57R2V23js.GlobalChartStyleOverrides; exports.LineChart = LineChart; exports.NetworkColorBox = NetworkColorBox; exports.TIME_SERIES_CHART_HEIGHT = _chunk33Y5FZTTjs.TIME_SERIES_CHART_HEIGHT; exports.VERTICAL_BAR_CHART_DEFAULT_SERIES_LIMIT = _chunk33Y5FZTTjs.VERTICAL_BAR_CHART_DEFAULT_SERIES_LIMIT; exports.VerticalBarChart = VerticalBarChart; exports.areaChartOptions = _chunk33Y5FZTTjs.areaChartOptions; exports.areaChartStyles = _chunkW57R2V23js.areaChartStyles; exports.baseChartOptions = _chunk33Y5FZTTjs.baseChartOptions; exports.baseChartStyles = _chunkW57R2V23js.baseChartStyles; exports.columnChartOptions = _chunk33Y5FZTTjs.columnChartOptions; exports.defaultBubbleChartWidth = _chunk33Y5FZTTjs.defaultBubbleChartWidth; exports.donutChartOptions = _chunk33Y5FZTTjs.donutChartOptions; exports.donutChartStyles = _chunkW57R2V23js.donutChartStyles; exports.generateChartTooltipPortalId = _chunkW57R2V23js.generateChartTooltipPortalId; exports.getDatavizColor = getDatavizColor; exports.getDatavizColorWithAlpha = getDatavizColorWithAlpha; exports.getDatavizOpacity = getDatavizOpacity; exports.getStorybookCategoricalData = getStorybookCategoricalData; exports.getStorybookSparseTimelineData = getStorybookSparseTimelineData; exports.isCategoricalHourData = isCategoricalHourData; exports.isHourlyTimeData = isHourlyTimeData; exports.lineChartOptions = _chunk33Y5FZTTjs.lineChartOptions; exports.lineChartStyles = _chunkW57R2V23js.lineChartStyles; exports.timeSeriesChartOptions = _chunk33Y5FZTTjs.timeSeriesChartOptions; exports.timeSeriesChartStyles = _chunkW57R2V23js.timeSeriesChartStyles; exports.transformDataToSeries = transformDataToSeries; exports.transformTimeSeriesTooltipData = _chunkW57R2V23js.transformTimeSeriesTooltipData; exports.xAxisLabelFormatter = xAxisLabelFormatter; exports.yAxisLabelFormatter = yAxisLabelFormatter;
|
|
1905
1920
|
//# sourceMappingURL=index.js.map
|