@sproutsocial/seeds-react-data-viz 0.24.2 → 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.
Files changed (52) hide show
  1. package/dist/{axis-B61qI-nm.d.mts → axis-3XKa6pW7.d.mts} +1 -1
  2. package/dist/{axis-B78FtYLh.d.ts → axis-BWvZqdQr.d.ts} +1 -1
  3. package/dist/bar/index.d.mts +2 -2
  4. package/dist/bar/index.d.ts +2 -2
  5. package/dist/bar/index.js +11 -11
  6. package/dist/bubble/index.d.mts +1 -1
  7. package/dist/bubble/index.d.ts +1 -1
  8. package/dist/bubble/index.js +5 -5
  9. package/dist/chart-styles.css +10 -1
  10. package/dist/{chartBase-Nl6mcTB7.d.ts → chartBase-BM97OBBE.d.ts} +2 -0
  11. package/dist/{chartBase-CptOt3V0.d.mts → chartBase-D6WI2icR.d.mts} +2 -0
  12. package/dist/charts.css +10 -1
  13. package/dist/{chunk-3P6MPBSZ.js → chunk-5JQXDK23.js} +37 -28
  14. package/dist/chunk-5JQXDK23.js.map +1 -0
  15. package/dist/{chunk-MTGYEUZN.js → chunk-GHZHRFE6.js} +3 -3
  16. package/dist/{chunk-MTGYEUZN.js.map → chunk-GHZHRFE6.js.map} +1 -1
  17. package/dist/{chunk-OP6K5NDR.js → chunk-LKUL4EFZ.js} +8 -4
  18. package/dist/chunk-LKUL4EFZ.js.map +1 -0
  19. package/dist/{chunk-2H2Z7PKZ.js → chunk-W57R2V23.js} +2 -19
  20. package/dist/chunk-W57R2V23.js.map +1 -0
  21. package/dist/donut/index.d.mts +1 -1
  22. package/dist/donut/index.d.ts +1 -1
  23. package/dist/donut/index.js +5 -5
  24. package/dist/esm/bar/index.js +4 -4
  25. package/dist/esm/bubble/index.js +2 -2
  26. package/dist/esm/{chunk-NZX3WPXT.js → chunk-32QLJDP2.js} +1 -18
  27. package/dist/esm/chunk-32QLJDP2.js.map +1 -0
  28. package/dist/esm/{chunk-MQDI7D54.js → chunk-AUU3KROF.js} +2 -2
  29. package/dist/esm/{chunk-Y4RJJBJQ.js → chunk-DF5PVRXT.js} +7 -3
  30. package/dist/esm/{chunk-Y4RJJBJQ.js.map → chunk-DF5PVRXT.js.map} +1 -1
  31. package/dist/esm/{chunk-ISP4A622.js → chunk-EWAD675C.js} +57 -48
  32. package/dist/esm/chunk-EWAD675C.js.map +1 -0
  33. package/dist/esm/donut/index.js +2 -2
  34. package/dist/esm/index.js +105 -90
  35. package/dist/esm/index.js.map +1 -1
  36. package/dist/esm/line-area/index.js +4 -4
  37. package/dist/esm/sparkline/index.js +3 -3
  38. package/dist/index.js +67 -52
  39. package/dist/index.js.map +1 -1
  40. package/dist/line-area/index.d.mts +2 -2
  41. package/dist/line-area/index.d.ts +2 -2
  42. package/dist/line-area/index.js +11 -11
  43. package/dist/sparkline/index.d.mts +3 -3
  44. package/dist/sparkline/index.d.ts +3 -3
  45. package/dist/sparkline/index.js +7 -7
  46. package/package.json +2 -2
  47. package/dist/chunk-2H2Z7PKZ.js.map +0 -1
  48. package/dist/chunk-3P6MPBSZ.js.map +0 -1
  49. package/dist/chunk-OP6K5NDR.js.map +0 -1
  50. package/dist/esm/chunk-ISP4A622.js.map +0 -1
  51. package/dist/esm/chunk-NZX3WPXT.js.map +0 -1
  52. /package/dist/esm/{chunk-MQDI7D54.js.map → chunk-AUU3KROF.js.map} +0 -0
package/dist/esm/index.js CHANGED
@@ -18,7 +18,6 @@ import {
18
18
  import {
19
19
  ChartLegend,
20
20
  ChartLegendLabel,
21
- ChartLegendLabelContentWithIcon,
22
21
  ChartTable,
23
22
  ChartTooltip,
24
23
  ChartTooltipFooter,
@@ -35,19 +34,19 @@ import {
35
34
  lineChartStyles,
36
35
  timeSeriesChartStyles,
37
36
  transformTimeSeriesTooltipData
38
- } from "./chunk-NZX3WPXT.js";
37
+ } from "./chunk-32QLJDP2.js";
39
38
 
40
39
  // src/components/AreaChart/AreaChart.tsx
41
- import { memo as memo4 } from "react";
40
+ import { memo as memo5 } from "react";
42
41
  import Highcharts from "highcharts";
43
42
  import { HighchartsReact } from "highcharts-react-official";
44
43
  import highchartsAccessibility from "highcharts/modules/accessibility";
45
44
  import highchartsAnnotations from "highcharts/modules/annotations";
46
45
  import styled2 from "styled-components";
47
- import { Box as Box2 } from "@sproutsocial/seeds-react-box";
46
+ import { Box as Box3 } from "@sproutsocial/seeds-react-box";
48
47
 
49
48
  // src/components/AreaChart/components/AreaChartLegend.tsx
50
- import { memo } from "react";
49
+ import { memo as memo2 } from "react";
51
50
  import { theme as theme2 } from "@sproutsocial/seeds-react-theme";
52
51
 
53
52
  // src/components/ColorBox/DatavizColorBox.tsx
@@ -86,6 +85,22 @@ var NetworkColorBox = ({
86
85
  return /* @__PURE__ */ jsx(ColorBox, { ...props, bg: NETWORK_COLORS[networkColor] });
87
86
  };
88
87
 
88
+ // src/components/ChartLegend/components/ChartLegendLabelContentWithIcon.tsx
89
+ import { memo } from "react";
90
+ import { Box } from "@sproutsocial/seeds-react-box";
91
+ import { jsxs } from "react/jsx-runtime";
92
+ var ChartLegendLabelContentWithIcon = memo(
93
+ function ChartLegendLabelContentWithIcon2({
94
+ children,
95
+ icon
96
+ }) {
97
+ return icon ? /* @__PURE__ */ jsxs(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
  import { jsx as jsx2 } from "react/jsx-runtime";
91
106
  var getAreaChartLegendLabels = ({
@@ -96,21 +111,21 @@ var getAreaChartLegendLabels = ({
96
111
  color: series.styles?.color || theme2.colors.DATAVIZ_COLORS_LIST[index]
97
112
  }));
98
113
  };
99
- var AreaChartLegend = memo(
114
+ var AreaChartLegend = memo2(
100
115
  function AreaChartLegend2({ data }) {
101
116
  return /* @__PURE__ */ jsx2(ChartLegend, { legendLabels: getAreaChartLegendLabels({ data }) });
102
117
  }
103
118
  );
104
119
 
105
120
  // src/components/AreaChart/components/AreaChartTooltip.tsx
106
- import { memo as memo2 } from "react";
107
- import { Box } from "@sproutsocial/seeds-react-box";
121
+ import { memo as memo3 } from "react";
122
+ import { Box as Box2 } from "@sproutsocial/seeds-react-box";
108
123
  import { Duration } from "@sproutsocial/seeds-react-duration";
109
124
  import { Icon } from "@sproutsocial/seeds-react-icon";
110
125
  import { Numeral } from "@sproutsocial/seeds-react-numeral";
111
126
  import { Text } from "@sproutsocial/seeds-react-text";
112
- import { jsx as jsx3, jsxs } from "react/jsx-runtime";
113
- var AreaChartTooltip = memo2(
127
+ import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
128
+ var AreaChartTooltip = memo3(
114
129
  function AreaChartTooltip2({
115
130
  data,
116
131
  invalidNumberLabel,
@@ -179,7 +194,7 @@ var AreaChartTooltip = memo2(
179
194
  isAppendedRow: true
180
195
  }
181
196
  ] : [];
182
- return /* @__PURE__ */ jsxs(ChartTooltip, { children: [
197
+ return /* @__PURE__ */ jsxs2(ChartTooltip, { children: [
183
198
  xAnnotationDetails ? xAnnotationDetails() : void 0,
184
199
  /* @__PURE__ */ jsx3(ChartTooltipTitle, { children: tooltipDateFormatter({ x }) }),
185
200
  /* @__PURE__ */ jsx3(
@@ -188,7 +203,7 @@ var AreaChartTooltip = memo2(
188
203
  rows: [...rows, ...appendedRows]
189
204
  }
190
205
  ),
191
- onClick && tooltipClickLabel ? /* @__PURE__ */ jsx3(ChartTooltipFooter, { children: typeof tooltipClickLabel === "string" ? /* @__PURE__ */ jsxs(Box, { display: "flex", alignItems: "center", gap: 300, children: [
206
+ onClick && tooltipClickLabel ? /* @__PURE__ */ jsx3(ChartTooltipFooter, { children: typeof tooltipClickLabel === "string" ? /* @__PURE__ */ jsxs2(Box2, { display: "flex", alignItems: "center", gap: 300, children: [
192
207
  /* @__PURE__ */ jsx3(Icon, { name: "hand-pointer-clicking-outline", color: "icon.base" }),
193
208
  /* @__PURE__ */ jsx3(Text, { color: "text.subtext", fontSize: 200, children: tooltipClickLabel })
194
209
  ] }) : tooltipClickLabel }) : null
@@ -197,11 +212,11 @@ var AreaChartTooltip = memo2(
197
212
  );
198
213
 
199
214
  // src/components/ChartXAnnotationMarker/components/ChartXAnnotationMarkerPortal.tsx
200
- import { memo as memo3, useEffect, useState, useRef } from "react";
215
+ import { memo as memo4, useEffect, useState, useRef } from "react";
201
216
  import { createPortal } from "react-dom";
202
217
  import "highcharts";
203
218
  import { Fragment, jsx as jsx4 } from "react/jsx-runtime";
204
- var ChartXAnnotationMarkerPortal = memo3(
219
+ var ChartXAnnotationMarkerPortal = memo4(
205
220
  function ChartXAnnotationMarkerPortal2({
206
221
  xAnnotations,
207
222
  annotationContext,
@@ -883,17 +898,17 @@ var xAxisLabelFormatterDefault = xAxisLabelFormatter;
883
898
 
884
899
  // src/components/AreaChart/AreaChart.tsx
885
900
  import { theme as theme3 } from "@sproutsocial/seeds-react-theme";
886
- import { Fragment as Fragment2, jsx as jsx5, jsxs as jsxs2 } from "react/jsx-runtime";
901
+ import { Fragment as Fragment2, jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
887
902
  highchartsAccessibility(Highcharts);
888
903
  highchartsAnnotations(Highcharts);
889
- var StyledBox = styled2(Box2)`
904
+ var StyledBox = styled2(Box3)`
890
905
  ${areaChartStyles}
891
906
  `;
892
- var AreaChart = memo4(function AreaChart2(props) {
907
+ var AreaChart = memo5(function AreaChart2(props) {
893
908
  const { data } = props;
894
909
  return data.length === 0 ? null : /* @__PURE__ */ jsx5(AreaChartWithData, { ...props });
895
910
  });
896
- var AreaChartWithData = memo4(function AreaChartWithData2({
911
+ var AreaChartWithData = memo5(function AreaChartWithData2({
897
912
  data,
898
913
  invalidNumberLabel,
899
914
  numberLocale = "en-us",
@@ -929,9 +944,9 @@ var AreaChartWithData = memo4(function AreaChartWithData2({
929
944
  const colors = data.map(
930
945
  (series, index) => series.styles?.color ?? theme3.colors.DATAVIZ_COLORS_LIST[index]
931
946
  );
932
- return /* @__PURE__ */ jsxs2(Fragment2, { children: [
947
+ return /* @__PURE__ */ jsxs3(Fragment2, { children: [
933
948
  /* @__PURE__ */ jsx5(GlobalChartStyleOverrides, {}),
934
- /* @__PURE__ */ jsxs2(
949
+ /* @__PURE__ */ jsxs3(
935
950
  StyledBox,
936
951
  {
937
952
  $colors: colors,
@@ -987,7 +1002,7 @@ var AreaChartWithData = memo4(function AreaChartWithData2({
987
1002
  }
988
1003
  }
989
1004
  ) : null,
990
- /* @__PURE__ */ jsx5(Box2, { mt: 350, children: /* @__PURE__ */ jsx5(AreaChartLegend, { data }) })
1005
+ /* @__PURE__ */ jsx5(Box3, { mt: 350, children: /* @__PURE__ */ jsx5(AreaChartLegend, { data }) })
991
1006
  ]
992
1007
  }
993
1008
  )
@@ -995,14 +1010,14 @@ var AreaChartWithData = memo4(function AreaChartWithData2({
995
1010
  });
996
1011
 
997
1012
  // src/components/ChartXAnnotationDetails/ChartXAnnotationDetails.tsx
998
- import { memo as memo5 } from "react";
999
- import { Box as Box3 } from "@sproutsocial/seeds-react-box";
1013
+ import { memo as memo6 } from "react";
1014
+ import { Box as Box4 } from "@sproutsocial/seeds-react-box";
1000
1015
  import { Icon as Icon2 } from "@sproutsocial/seeds-react-icon";
1001
1016
  import { Text as Text2 } from "@sproutsocial/seeds-react-text";
1002
- import { jsx as jsx6, jsxs as jsxs3 } from "react/jsx-runtime";
1003
- var ChartXAnnotationDetails = memo5(
1017
+ import { jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
1018
+ var ChartXAnnotationDetails = memo6(
1004
1019
  function ChartXAnnotationDetails2({ iconName, text }) {
1005
- return /* @__PURE__ */ jsx6(ChartTooltipHeader, { children: /* @__PURE__ */ jsxs3(Box3, { display: "flex", alignItems: "center", gap: 300, children: [
1020
+ return /* @__PURE__ */ jsx6(ChartTooltipHeader, { children: /* @__PURE__ */ jsxs4(Box4, { display: "flex", alignItems: "center", gap: 300, children: [
1006
1021
  /* @__PURE__ */ jsx6(Icon2, { name: iconName, size: "mini", color: "icon.base" }),
1007
1022
  /* @__PURE__ */ jsx6(Text2, { color: "text.body", fontSize: 200, children: text })
1008
1023
  ] }) });
@@ -1010,15 +1025,15 @@ var ChartXAnnotationDetails = memo5(
1010
1025
  );
1011
1026
 
1012
1027
  // src/components/ChartXAnnotationMarker/ChartXAnnotationMarker.tsx
1013
- import { memo as memo6 } from "react";
1014
- import { Box as Box4 } from "@sproutsocial/seeds-react-box";
1028
+ import { memo as memo7 } from "react";
1029
+ import { Box as Box5 } from "@sproutsocial/seeds-react-box";
1015
1030
  import { Icon as Icon3 } from "@sproutsocial/seeds-react-icon";
1016
- import { jsx as jsx7, jsxs as jsxs4 } from "react/jsx-runtime";
1017
- var ChartXAnnotationMarker = memo6(
1031
+ import { jsx as jsx7, jsxs as jsxs5 } from "react/jsx-runtime";
1032
+ var ChartXAnnotationMarker = memo7(
1018
1033
  function ChartXAnnotationMarker2({ iconName }) {
1019
- return /* @__PURE__ */ jsxs4(Box4, { display: "flex", flexDirection: "column", alignItems: "center", gap: 200, children: [
1034
+ return /* @__PURE__ */ jsxs5(Box5, { display: "flex", flexDirection: "column", alignItems: "center", gap: 200, children: [
1020
1035
  /* @__PURE__ */ jsx7(
1021
- Box4,
1036
+ Box5,
1022
1037
  {
1023
1038
  display: "flex",
1024
1039
  alignItems: "center",
@@ -1030,21 +1045,21 @@ var ChartXAnnotationMarker = memo6(
1030
1045
  children: /* @__PURE__ */ jsx7(Icon3, { name: iconName, size: "mini", color: "icon.inverse" })
1031
1046
  }
1032
1047
  ),
1033
- /* @__PURE__ */ jsx7(Box4, { height: `199px`, width: "0.5px", bg: "neutral.200" })
1048
+ /* @__PURE__ */ jsx7(Box5, { height: `199px`, width: "0.5px", bg: "neutral.200" })
1034
1049
  ] });
1035
1050
  }
1036
1051
  );
1037
1052
 
1038
1053
  // src/components/DonutChart/DonutChart.tsx
1039
- import { memo as memo9, useState as useState3, useEffect as useEffect2, useCallback as useCallback2 } from "react";
1054
+ import { memo as memo10, useState as useState3, useEffect as useEffect2, useCallback as useCallback2 } from "react";
1040
1055
  import Highcharts2 from "highcharts";
1041
1056
  import { HighchartsReact as HighchartsReact2 } from "highcharts-react-official";
1042
1057
  import highchartsAccessibility2 from "highcharts/modules/accessibility";
1043
1058
  import styled3 from "styled-components";
1044
- import { Box as Box6 } from "@sproutsocial/seeds-react-box";
1059
+ import { Box as Box7 } from "@sproutsocial/seeds-react-box";
1045
1060
 
1046
1061
  // src/components/DonutChart/components/DonutChartLegend.tsx
1047
- import { memo as memo7 } from "react";
1062
+ import { memo as memo8 } from "react";
1048
1063
  import { theme as theme4 } from "@sproutsocial/seeds-react-theme";
1049
1064
  import { jsx as jsx8 } from "react/jsx-runtime";
1050
1065
  var getDonutChartLegendLabels = ({
@@ -1055,21 +1070,21 @@ var getDonutChartLegendLabels = ({
1055
1070
  color: slice.styles?.color || theme4.colors.DATAVIZ_COLORS_LIST[index]
1056
1071
  }));
1057
1072
  };
1058
- var DonutChartLegend = memo7(
1073
+ var DonutChartLegend = memo8(
1059
1074
  function DonutChartLegend2({ data }) {
1060
1075
  return /* @__PURE__ */ jsx8(ChartLegend, { legendLabels: getDonutChartLegendLabels({ data }) });
1061
1076
  }
1062
1077
  );
1063
1078
 
1064
1079
  // src/components/DonutChart/components/DonutChartTooltip.tsx
1065
- import { memo as memo8 } from "react";
1066
- import { Box as Box5 } from "@sproutsocial/seeds-react-box";
1080
+ import { memo as memo9 } from "react";
1081
+ import { Box as Box6 } from "@sproutsocial/seeds-react-box";
1067
1082
  import { Duration as Duration2 } from "@sproutsocial/seeds-react-duration";
1068
1083
  import { Icon as Icon4 } from "@sproutsocial/seeds-react-icon";
1069
1084
  import { Numeral as Numeral2 } from "@sproutsocial/seeds-react-numeral";
1070
1085
  import { Text as Text3 } from "@sproutsocial/seeds-react-text";
1071
- import { jsx as jsx9, jsxs as jsxs5 } from "react/jsx-runtime";
1072
- var DonutChartTooltip = memo8(
1086
+ import { jsx as jsx9, jsxs as jsxs6 } from "react/jsx-runtime";
1087
+ var DonutChartTooltip = memo9(
1073
1088
  function DonutChartTooltip2({
1074
1089
  color,
1075
1090
  name,
@@ -1090,7 +1105,7 @@ var DonutChartTooltip = memo8(
1090
1105
  content: /* @__PURE__ */ jsx9(ChartLegendLabel, { color, children: /* @__PURE__ */ jsx9(ChartLegendLabelContentWithIcon, { icon, children: /* @__PURE__ */ jsx9(Text3, { "aria-label": `${name}: `, children: name }) }) })
1091
1106
  },
1092
1107
  {
1093
- content: /* @__PURE__ */ jsxs5(Box5, { display: "inline-flex", alignItems: "center", gap: 350, children: [
1108
+ content: /* @__PURE__ */ jsxs6(Box6, { display: "inline-flex", alignItems: "center", gap: 350, children: [
1094
1109
  /* @__PURE__ */ jsx9(
1095
1110
  Numeral2,
1096
1111
  {
@@ -1116,9 +1131,9 @@ var DonutChartTooltip = memo8(
1116
1131
  ]
1117
1132
  }
1118
1133
  ];
1119
- return /* @__PURE__ */ jsxs5(ChartTooltip, { children: [
1134
+ return /* @__PURE__ */ jsxs6(ChartTooltip, { children: [
1120
1135
  /* @__PURE__ */ jsx9(ChartTooltipTable, { rows }),
1121
- onClick && tooltipClickLabel ? /* @__PURE__ */ jsx9(ChartTooltipFooter, { children: typeof tooltipClickLabel === "string" ? /* @__PURE__ */ jsxs5(Box5, { display: "flex", alignItems: "center", gap: 300, children: [
1136
+ onClick && tooltipClickLabel ? /* @__PURE__ */ jsx9(ChartTooltipFooter, { children: typeof tooltipClickLabel === "string" ? /* @__PURE__ */ jsxs6(Box6, { display: "flex", alignItems: "center", gap: 300, children: [
1122
1137
  /* @__PURE__ */ jsx9(Icon4, { name: "hand-pointer-clicking-outline", color: "icon.base" }),
1123
1138
  /* @__PURE__ */ jsx9(Text3, { color: "text.subtext", fontSize: 200, children: tooltipClickLabel })
1124
1139
  ] }) : tooltipClickLabel }) : null
@@ -1144,16 +1159,16 @@ var transformDonutChartTooltipData = ({
1144
1159
 
1145
1160
  // src/components/DonutChart/DonutChart.tsx
1146
1161
  import { theme as theme6 } from "@sproutsocial/seeds-react-theme";
1147
- import { Fragment as Fragment3, jsx as jsx10, jsxs as jsxs6 } from "react/jsx-runtime";
1162
+ import { Fragment as Fragment3, jsx as jsx10, jsxs as jsxs7 } from "react/jsx-runtime";
1148
1163
  highchartsAccessibility2(Highcharts2);
1149
- var StyledBox2 = styled3(Box6)`
1164
+ var StyledBox2 = styled3(Box7)`
1150
1165
  ${donutChartStyles}
1151
1166
  `;
1152
- var DonutChart = memo9(function DonutChart2(props) {
1167
+ var DonutChart = memo10(function DonutChart2(props) {
1153
1168
  const { data } = props;
1154
1169
  return data.length === 0 ? null : /* @__PURE__ */ jsx10(DonutChartWithData, { ...props });
1155
1170
  });
1156
- var DonutChartWithData = memo9(
1171
+ var DonutChartWithData = memo10(
1157
1172
  function DonutChartWithData2({
1158
1173
  data,
1159
1174
  numberLocale = "en-us",
@@ -1224,9 +1239,9 @@ var DonutChartWithData = memo9(
1224
1239
  const colors = data.map(
1225
1240
  (series, index) => series.styles?.color ?? theme6.colors.DATAVIZ_COLORS_LIST[index] ?? ""
1226
1241
  );
1227
- return /* @__PURE__ */ jsxs6(Fragment3, { children: [
1242
+ return /* @__PURE__ */ jsxs7(Fragment3, { children: [
1228
1243
  /* @__PURE__ */ jsx10(GlobalChartStyleOverrides, {}),
1229
- /* @__PURE__ */ jsxs6(
1244
+ /* @__PURE__ */ jsxs7(
1230
1245
  StyledBox2,
1231
1246
  {
1232
1247
  $colors: colors,
@@ -1266,7 +1281,7 @@ var DonutChartWithData = memo9(
1266
1281
  }
1267
1282
  }
1268
1283
  ) : null,
1269
- hideLegend ? null : /* @__PURE__ */ jsx10(Box6, { mt: 350, children: /* @__PURE__ */ jsx10(DonutChartLegend, { data }) })
1284
+ hideLegend ? null : /* @__PURE__ */ jsx10(Box7, { mt: 350, children: /* @__PURE__ */ jsx10(DonutChartLegend, { data }) })
1270
1285
  ]
1271
1286
  }
1272
1287
  )
@@ -1275,14 +1290,14 @@ var DonutChartWithData = memo9(
1275
1290
  );
1276
1291
 
1277
1292
  // src/components/DonutChart/components/DonutChartLegendTable.tsx
1278
- import { memo as memo10 } from "react";
1279
- import { Box as Box7 } from "@sproutsocial/seeds-react-box";
1293
+ import { memo as memo11 } from "react";
1294
+ import { Box as Box8 } from "@sproutsocial/seeds-react-box";
1280
1295
  import { Duration as Duration3 } from "@sproutsocial/seeds-react-duration";
1281
1296
  import { Numeral as Numeral3 } from "@sproutsocial/seeds-react-numeral";
1282
1297
  import { Text as Text4 } from "@sproutsocial/seeds-react-text";
1283
1298
  import { theme as theme7 } from "@sproutsocial/seeds-react-theme";
1284
- import { jsx as jsx11, jsxs as jsxs7 } from "react/jsx-runtime";
1285
- var DonutChartLegendTable = memo10(
1299
+ import { jsx as jsx11, jsxs as jsxs8 } from "react/jsx-runtime";
1300
+ var DonutChartLegendTable = memo11(
1286
1301
  function DonutChartLegendTable2({
1287
1302
  data,
1288
1303
  numberLocale = "en-us",
@@ -1305,7 +1320,7 @@ var DonutChartLegendTable = memo10(
1305
1320
  content: /* @__PURE__ */ jsx11(ChartLegendLabel, { color, children: /* @__PURE__ */ jsx11(ChartLegendLabelContentWithIcon, { icon, children: name }) })
1306
1321
  },
1307
1322
  {
1308
- content: /* @__PURE__ */ jsxs7(Box7, { display: "inline-flex", alignItems: "center", gap: 350, children: [
1323
+ content: /* @__PURE__ */ jsxs8(Box8, { display: "inline-flex", alignItems: "center", gap: 350, children: [
1309
1324
  /* @__PURE__ */ jsx11(Text4, { color: "text.body", children: /* @__PURE__ */ jsx11(
1310
1325
  Numeral3,
1311
1326
  {
@@ -1364,16 +1379,16 @@ var DonutChartLegendTable = memo10(
1364
1379
  );
1365
1380
 
1366
1381
  // src/components/LineChart/LineChart.tsx
1367
- import { memo as memo13 } from "react";
1382
+ import { memo as memo14 } from "react";
1368
1383
  import Highcharts3 from "highcharts";
1369
1384
  import { HighchartsReact as HighchartsReact3 } from "highcharts-react-official";
1370
1385
  import highchartsAccessibility3 from "highcharts/modules/accessibility";
1371
1386
  import highchartsAnnotations2 from "highcharts/modules/annotations";
1372
1387
  import styled4 from "styled-components";
1373
- import { Box as Box9 } from "@sproutsocial/seeds-react-box";
1388
+ import { Box as Box10 } from "@sproutsocial/seeds-react-box";
1374
1389
 
1375
1390
  // src/components/LineChart/components/LineChartLegend.tsx
1376
- import { memo as memo11 } from "react";
1391
+ import { memo as memo12 } from "react";
1377
1392
  import { theme as theme8 } from "@sproutsocial/seeds-react-theme";
1378
1393
  import { jsx as jsx12 } from "react/jsx-runtime";
1379
1394
  var getLineChartLegendLabels = ({
@@ -1384,21 +1399,21 @@ var getLineChartLegendLabels = ({
1384
1399
  color: series.styles?.color || theme8.colors.DATAVIZ_COLORS_LIST[index]
1385
1400
  }));
1386
1401
  };
1387
- var LineChartLegend = memo11(
1402
+ var LineChartLegend = memo12(
1388
1403
  function LineChartLegend2({ data }) {
1389
1404
  return /* @__PURE__ */ jsx12(ChartLegend, { legendLabels: getLineChartLegendLabels({ data }) });
1390
1405
  }
1391
1406
  );
1392
1407
 
1393
1408
  // src/components/LineChart/components/LineChartTooltip.tsx
1394
- import { memo as memo12 } from "react";
1395
- import { Box as Box8 } from "@sproutsocial/seeds-react-box";
1409
+ import { memo as memo13 } from "react";
1410
+ import { Box as Box9 } from "@sproutsocial/seeds-react-box";
1396
1411
  import { Duration as Duration4 } from "@sproutsocial/seeds-react-duration";
1397
1412
  import { Icon as Icon5 } from "@sproutsocial/seeds-react-icon";
1398
1413
  import { Numeral as Numeral4 } from "@sproutsocial/seeds-react-numeral";
1399
1414
  import { Text as Text5 } from "@sproutsocial/seeds-react-text";
1400
- import { jsx as jsx13, jsxs as jsxs8 } from "react/jsx-runtime";
1401
- var LineChartTooltip = memo12(
1415
+ import { jsx as jsx13, jsxs as jsxs9 } from "react/jsx-runtime";
1416
+ var LineChartTooltip = memo13(
1402
1417
  function LineChartTooltip2({
1403
1418
  data,
1404
1419
  invalidNumberLabel,
@@ -1435,11 +1450,11 @@ var LineChartTooltip = memo12(
1435
1450
  ]
1436
1451
  };
1437
1452
  });
1438
- return /* @__PURE__ */ jsxs8(ChartTooltip, { children: [
1453
+ return /* @__PURE__ */ jsxs9(ChartTooltip, { children: [
1439
1454
  xAnnotationDetails ? xAnnotationDetails() : void 0,
1440
1455
  /* @__PURE__ */ jsx13(ChartTooltipTitle, { children: tooltipDateFormatter({ x }) }),
1441
1456
  /* @__PURE__ */ jsx13(ChartTooltipTable, { rows }),
1442
- onClick && tooltipClickLabel ? /* @__PURE__ */ jsx13(ChartTooltipFooter, { children: typeof tooltipClickLabel === "string" ? /* @__PURE__ */ jsxs8(Box8, { display: "flex", alignItems: "center", gap: 300, children: [
1457
+ onClick && tooltipClickLabel ? /* @__PURE__ */ jsx13(ChartTooltipFooter, { children: typeof tooltipClickLabel === "string" ? /* @__PURE__ */ jsxs9(Box9, { display: "flex", alignItems: "center", gap: 300, children: [
1443
1458
  /* @__PURE__ */ jsx13(Icon5, { name: "hand-pointer-clicking-outline", color: "icon.base" }),
1444
1459
  /* @__PURE__ */ jsx13(Text5, { color: "text.subtext", fontSize: 200, children: tooltipClickLabel })
1445
1460
  ] }) : tooltipClickLabel }) : null
@@ -1449,17 +1464,17 @@ var LineChartTooltip = memo12(
1449
1464
 
1450
1465
  // src/components/LineChart/LineChart.tsx
1451
1466
  import { theme as theme9 } from "@sproutsocial/seeds-react-theme";
1452
- import { Fragment as Fragment4, jsx as jsx14, jsxs as jsxs9 } from "react/jsx-runtime";
1467
+ import { Fragment as Fragment4, jsx as jsx14, jsxs as jsxs10 } from "react/jsx-runtime";
1453
1468
  highchartsAccessibility3(Highcharts3);
1454
1469
  highchartsAnnotations2(Highcharts3);
1455
- var StyledBox3 = styled4(Box9)`
1470
+ var StyledBox3 = styled4(Box10)`
1456
1471
  ${lineChartStyles}
1457
1472
  `;
1458
- var LineChart = memo13(function LineChart2(props) {
1473
+ var LineChart = memo14(function LineChart2(props) {
1459
1474
  const { data } = props;
1460
1475
  return data.length === 0 ? null : /* @__PURE__ */ jsx14(LineChartWithData, { ...props });
1461
1476
  });
1462
- var LineChartWithData = memo13(function LineChartWithData2({
1477
+ var LineChartWithData = memo14(function LineChartWithData2({
1463
1478
  data,
1464
1479
  invalidNumberLabel,
1465
1480
  numberLocale = "en-us",
@@ -1506,9 +1521,9 @@ var LineChartWithData = memo13(function LineChartWithData2({
1506
1521
  patterns: []
1507
1522
  }
1508
1523
  );
1509
- return /* @__PURE__ */ jsxs9(Fragment4, { children: [
1524
+ return /* @__PURE__ */ jsxs10(Fragment4, { children: [
1510
1525
  /* @__PURE__ */ jsx14(GlobalChartStyleOverrides, {}),
1511
- /* @__PURE__ */ jsxs9(
1526
+ /* @__PURE__ */ jsxs10(
1512
1527
  StyledBox3,
1513
1528
  {
1514
1529
  $colors: colors,
@@ -1562,7 +1577,7 @@ var LineChartWithData = memo13(function LineChartWithData2({
1562
1577
  }
1563
1578
  }
1564
1579
  ) : null,
1565
- /* @__PURE__ */ jsx14(Box9, { mt: 350, children: /* @__PURE__ */ jsx14(LineChartLegend, { data }) })
1580
+ /* @__PURE__ */ jsx14(Box10, { mt: 350, children: /* @__PURE__ */ jsx14(LineChartLegend, { data }) })
1566
1581
  ]
1567
1582
  }
1568
1583
  )
@@ -1570,16 +1585,16 @@ var LineChartWithData = memo13(function LineChartWithData2({
1570
1585
  });
1571
1586
 
1572
1587
  // src/components/VerticalBarChart/VerticalBarChart.tsx
1573
- import { memo as memo16 } from "react";
1588
+ import { memo as memo17 } from "react";
1574
1589
  import Highcharts4 from "highcharts";
1575
1590
  import { HighchartsReact as HighchartsReact4 } from "highcharts-react-official";
1576
1591
  import highchartsAccessibility4 from "highcharts/modules/accessibility";
1577
1592
  import highchartsAnnotations3 from "highcharts/modules/annotations";
1578
1593
  import styled5 from "styled-components";
1579
- import { Box as Box11 } from "@sproutsocial/seeds-react-box";
1594
+ import { Box as Box12 } from "@sproutsocial/seeds-react-box";
1580
1595
 
1581
1596
  // src/components/VerticalBarChart/components/VerticalBarChartLegend.tsx
1582
- import { memo as memo14 } from "react";
1597
+ import { memo as memo15 } from "react";
1583
1598
  import { theme as theme10 } from "@sproutsocial/seeds-react-theme";
1584
1599
  import { jsx as jsx15 } from "react/jsx-runtime";
1585
1600
  var getVerticalBarChartLegendLabels = ({
@@ -1590,21 +1605,21 @@ var getVerticalBarChartLegendLabels = ({
1590
1605
  color: series.styles?.color || theme10.colors.DATAVIZ_COLORS_LIST[index]
1591
1606
  }));
1592
1607
  };
1593
- var VerticalBarChartLegend = memo14(
1608
+ var VerticalBarChartLegend = memo15(
1594
1609
  function VerticalbarChartLegend({ data }) {
1595
1610
  return /* @__PURE__ */ jsx15(ChartLegend, { legendLabels: getVerticalBarChartLegendLabels({ data }) });
1596
1611
  }
1597
1612
  );
1598
1613
 
1599
1614
  // src/components/VerticalBarChart/components/VerticalBarChartTooltip.tsx
1600
- import { memo as memo15 } from "react";
1601
- import { Box as Box10 } from "@sproutsocial/seeds-react-box";
1615
+ import { memo as memo16 } from "react";
1616
+ import { Box as Box11 } from "@sproutsocial/seeds-react-box";
1602
1617
  import { Duration as Duration5 } from "@sproutsocial/seeds-react-duration";
1603
1618
  import { Icon as Icon6 } from "@sproutsocial/seeds-react-icon";
1604
1619
  import { Numeral as Numeral5 } from "@sproutsocial/seeds-react-numeral";
1605
1620
  import { Text as Text6 } from "@sproutsocial/seeds-react-text";
1606
- import { jsx as jsx16, jsxs as jsxs10 } from "react/jsx-runtime";
1607
- var VerticalBarChartTooltip = memo15(
1621
+ import { jsx as jsx16, jsxs as jsxs11 } from "react/jsx-runtime";
1622
+ var VerticalBarChartTooltip = memo16(
1608
1623
  function VerticalBarChartTooltip2({
1609
1624
  data,
1610
1625
  invalidNumberLabel,
@@ -1641,11 +1656,11 @@ var VerticalBarChartTooltip = memo15(
1641
1656
  ]
1642
1657
  };
1643
1658
  });
1644
- return /* @__PURE__ */ jsxs10(ChartTooltip, { children: [
1659
+ return /* @__PURE__ */ jsxs11(ChartTooltip, { children: [
1645
1660
  xAnnotationDetails ? xAnnotationDetails() : void 0,
1646
1661
  /* @__PURE__ */ jsx16(ChartTooltipTitle, { children: tooltipDateFormatter({ x }) }),
1647
1662
  /* @__PURE__ */ jsx16(ChartTooltipTable, { rows }),
1648
- onClick && tooltipClickLabel ? /* @__PURE__ */ jsx16(ChartTooltipFooter, { children: typeof tooltipClickLabel === "string" ? /* @__PURE__ */ jsxs10(Box10, { display: "flex", alignItems: "center", gap: 300, children: [
1663
+ onClick && tooltipClickLabel ? /* @__PURE__ */ jsx16(ChartTooltipFooter, { children: typeof tooltipClickLabel === "string" ? /* @__PURE__ */ jsxs11(Box11, { display: "flex", alignItems: "center", gap: 300, children: [
1649
1664
  /* @__PURE__ */ jsx16(Icon6, { name: "hand-pointer-clicking-outline", color: "icon.base" }),
1650
1665
  /* @__PURE__ */ jsx16(Text6, { color: "text.subtext", fontSize: 200, children: tooltipClickLabel })
1651
1666
  ] }) : tooltipClickLabel }) : null
@@ -1676,13 +1691,13 @@ var verticalBarChartStyles = css`
1676
1691
  `;
1677
1692
 
1678
1693
  // src/components/VerticalBarChart/VerticalBarChart.tsx
1679
- import { Fragment as Fragment5, jsx as jsx17, jsxs as jsxs11 } from "react/jsx-runtime";
1694
+ import { Fragment as Fragment5, jsx as jsx17, jsxs as jsxs12 } from "react/jsx-runtime";
1680
1695
  highchartsAccessibility4(Highcharts4);
1681
1696
  highchartsAnnotations3(Highcharts4);
1682
- var StyledBox4 = styled5(Box11)`
1697
+ var StyledBox4 = styled5(Box12)`
1683
1698
  ${verticalBarChartStyles}
1684
1699
  `;
1685
- var VerticalBarChart = memo16(
1700
+ var VerticalBarChart = memo17(
1686
1701
  function VerticalBarChart2(props) {
1687
1702
  const { data, showSeriesLimitWarning = true } = props;
1688
1703
  const seriesLimit = props.seriesLimit ?? VERTICAL_BAR_CHART_DEFAULT_SERIES_LIMIT;
@@ -1702,7 +1717,7 @@ var VerticalBarChart = memo16(
1702
1717
  return /* @__PURE__ */ jsx17(VerticalBarChartWithData, { ...props, data: chartData });
1703
1718
  }
1704
1719
  );
1705
- var VerticalBarChartWithData = memo16(
1720
+ var VerticalBarChartWithData = memo17(
1706
1721
  function VerticalBarChartWithData2({
1707
1722
  data,
1708
1723
  invalidNumberLabel,
@@ -1786,9 +1801,9 @@ var VerticalBarChartWithData = memo16(
1786
1801
  patterns: []
1787
1802
  }
1788
1803
  );
1789
- return /* @__PURE__ */ jsxs11(Fragment5, { children: [
1804
+ return /* @__PURE__ */ jsxs12(Fragment5, { children: [
1790
1805
  /* @__PURE__ */ jsx17(GlobalChartStyleOverrides, {}),
1791
- /* @__PURE__ */ jsxs11(
1806
+ /* @__PURE__ */ jsxs12(
1792
1807
  StyledBox4,
1793
1808
  {
1794
1809
  $colors: colors,
@@ -1841,7 +1856,7 @@ var VerticalBarChartWithData = memo16(
1841
1856
  }
1842
1857
  }
1843
1858
  ) : null,
1844
- /* @__PURE__ */ jsx17(Box11, { mt: 350, children: /* @__PURE__ */ jsx17(VerticalBarChartLegend, { data }) })
1859
+ /* @__PURE__ */ jsx17(Box12, { mt: 350, children: /* @__PURE__ */ jsx17(VerticalBarChartLegend, { data }) })
1845
1860
  ]
1846
1861
  }
1847
1862
  )