@sproutsocial/seeds-react-data-viz 0.14.0 → 0.15.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/dist/index.js CHANGED
@@ -11,6 +11,7 @@
11
11
 
12
12
 
13
13
 
14
+ var _chunkJXARPHQEjs = require('./chunk-JXARPHQE.js');
14
15
 
15
16
 
16
17
 
@@ -42,7 +43,8 @@
42
43
 
43
44
 
44
45
 
45
- var _chunkVFBZ7FNKjs = require('./chunk-VFBZ7FNK.js');
46
+
47
+ var _chunkEEVKTTT3js = require('./chunk-EEVKTTT3.js');
46
48
 
47
49
  // src/components/AreaChart/AreaChart.tsx
48
50
  var _react = require('react');
@@ -61,13 +63,13 @@ var getAreaChartLegendLabels = ({
61
63
  data
62
64
  }) => {
63
65
  return data.map((series, index) => ({
64
- content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVFBZ7FNKjs.ChartLegendLabelContentWithIcon, { icon: series.icon, children: series.name }),
66
+ content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEEVKTTT3js.ChartLegendLabelContentWithIcon, { icon: series.icon, children: series.name }),
65
67
  color: _optionalChain([series, 'access', _ => _.styles, 'optionalAccess', _2 => _2.color]) || _seedsreacttheme.theme.colors.DATAVIZ_COLORS_LIST[index]
66
68
  }));
67
69
  };
68
70
  var AreaChartLegend = _react.memo.call(void 0,
69
71
  function AreaChartLegend2({ data }) {
70
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVFBZ7FNKjs.ChartLegend, { legendLabels: getAreaChartLegendLabels({ data }) });
72
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEEVKTTT3js.ChartLegend, { legendLabels: getAreaChartLegendLabels({ data }) });
71
73
  }
72
74
  );
73
75
 
@@ -100,7 +102,7 @@ var AreaChartTooltip = _react.memo.call(void 0,
100
102
  return {
101
103
  cells: [
102
104
  {
103
- content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVFBZ7FNKjs.ChartLegendLabel, { color, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVFBZ7FNKjs.ChartLegendLabelContentWithIcon, { icon, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacttext.Text, { "aria-label": `${name}: `, children: name }) }) })
105
+ content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEEVKTTT3js.ChartLegendLabel, { color, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEEVKTTT3js.ChartLegendLabelContentWithIcon, { icon, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacttext.Text, { "aria-label": `${name}: `, children: name }) }) })
104
106
  },
105
107
  {
106
108
  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,
@@ -148,16 +150,16 @@ var AreaChartTooltip = _react.memo.call(void 0,
148
150
  isAppendedRow: true
149
151
  }
150
152
  ] : [];
151
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkVFBZ7FNKjs.ChartTooltip, { children: [
153
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEEVKTTT3js.ChartTooltip, { children: [
152
154
  xAnnotationDetails ? xAnnotationDetails() : void 0,
153
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVFBZ7FNKjs.ChartTooltipTitle, { children: tooltipDateFormatter({ x }) }),
155
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEEVKTTT3js.ChartTooltipTitle, { children: tooltipDateFormatter({ x }) }),
154
156
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
155
- _chunkVFBZ7FNKjs.ChartTooltipTable,
157
+ _chunkEEVKTTT3js.ChartTooltipTable,
156
158
  {
157
159
  rows: [...rows, ...appendedRows]
158
160
  }
159
161
  ),
160
- onClick && tooltipClickLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVFBZ7FNKjs.ChartTooltipFooter, { children: typeof tooltipClickLabel === "string" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _seedsreactbox.Box, { display: "flex", alignItems: "center", gap: 300, children: [
162
+ onClick && tooltipClickLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEEVKTTT3js.ChartTooltipFooter, { children: typeof tooltipClickLabel === "string" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _seedsreactbox.Box, { display: "flex", alignItems: "center", gap: 300, children: [
161
163
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacticon.Icon, { name: "hand-pointer-clicking-outline", color: "icon.base" }),
162
164
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacttext.Text, { color: "text.subtext", fontSize: 200, children: tooltipClickLabel })
163
165
  ] }) : tooltipClickLabel }) : null
@@ -278,13 +280,13 @@ var useTimeSeriesChartOptions = ({
278
280
  const getBaseChartOptions = (type) => {
279
281
  switch (type) {
280
282
  case "areaspline":
281
- return _chunkVFBZ7FNKjs.areaChartOptions;
283
+ return _chunkJXARPHQEjs.areaChartOptions;
282
284
  case "spline":
283
- return _chunkVFBZ7FNKjs.lineChartOptions;
285
+ return _chunkJXARPHQEjs.lineChartOptions;
284
286
  case "column":
285
- return _chunkVFBZ7FNKjs.columnChartOptions;
287
+ return _chunkJXARPHQEjs.columnChartOptions;
286
288
  default:
287
- return _chunkVFBZ7FNKjs.lineChartOptions;
289
+ return _chunkJXARPHQEjs.lineChartOptions;
288
290
  }
289
291
  };
290
292
  const baseChartOptions2 = getBaseChartOptions(seriesType);
@@ -314,7 +316,7 @@ var useTimeSeriesChartOptions = ({
314
316
  return onClick({ x: _optionalChain([this, 'optionalAccess', _16 => _16.hoverPoint, 'optionalAccess', _17 => _17.x]) });
315
317
  } : void 0,
316
318
  load: function() {
317
- const tooltipId = _chunkVFBZ7FNKjs.generateChartTooltipPortalId.call(void 0, this.index);
319
+ const tooltipId = _chunkEEVKTTT3js.generateChartTooltipPortalId.call(void 0, this.index);
318
320
  attachTooltipEventListeners(this.series, tooltipId);
319
321
  }
320
322
  }
@@ -393,7 +395,7 @@ var useTimeSeriesChartOptions = ({
393
395
  }
394
396
  }
395
397
  },
396
- series: _chunkVFBZ7FNKjs.transformDataToSeries.call(void 0, { data }, seriesType),
398
+ series: _chunkEEVKTTT3js.transformDataToSeries.call(void 0, { data }, seriesType),
397
399
  time: { timezone },
398
400
  tooltip: {
399
401
  enabled: !disableTooltips
@@ -441,7 +443,7 @@ var useTimeSeriesChartOptions = ({
441
443
  return yAxisLabelFormatter2 ? yAxisLabelFormatter2({
442
444
  y: this.value,
443
445
  yValues: this.axis.tickPositions
444
- }) : _chunkVFBZ7FNKjs.yAxisLabelFormatter.call(void 0, {
446
+ }) : _chunkEEVKTTT3js.yAxisLabelFormatter.call(void 0, {
445
447
  currency,
446
448
  numberFormat,
447
449
  numberLocale,
@@ -472,7 +474,7 @@ var useTimeSeriesChartOptions = ({
472
474
  ]);
473
475
  return { options, chart, callback };
474
476
  };
475
- var xAxisLabelFormatterDefault = _chunkVFBZ7FNKjs.xAxisLabelFormatter;
477
+ var xAxisLabelFormatterDefault = _chunkEEVKTTT3js.xAxisLabelFormatter;
476
478
 
477
479
  // src/components/AreaChart/AreaChart.tsx
478
480
 
@@ -480,7 +482,7 @@ var xAxisLabelFormatterDefault = _chunkVFBZ7FNKjs.xAxisLabelFormatter;
480
482
  _accessibility2.default.call(void 0, _highcharts2.default);
481
483
  _annotations2.default.call(void 0, _highcharts2.default);
482
484
  var StyledBox = _styledcomponents2.default.call(void 0, _seedsreactbox.Box)`
483
- ${_chunkVFBZ7FNKjs.areaChartStyles}
485
+ ${_chunkEEVKTTT3js.areaChartStyles}
484
486
  `;
485
487
  var AreaChart = _react.memo.call(void 0, function AreaChart2(props) {
486
488
  const { data } = props;
@@ -523,7 +525,7 @@ var AreaChartWithData = _react.memo.call(void 0, function AreaChartWithData2({
523
525
  (series, index) => _nullishCoalesce(_optionalChain([series, 'access', _20 => _20.styles, 'optionalAccess', _21 => _21.color]), () => ( _seedsreacttheme.theme.colors.DATAVIZ_COLORS_LIST[index]))
524
526
  );
525
527
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
526
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVFBZ7FNKjs.GlobalChartStyleOverrides, {}),
528
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEEVKTTT3js.GlobalChartStyleOverrides, {}),
527
529
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
528
530
  StyledBox,
529
531
  {
@@ -548,11 +550,11 @@ var AreaChartWithData = _react.memo.call(void 0, function AreaChartWithData2({
548
550
  }
549
551
  ) : null,
550
552
  chart && !disableTooltips ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
551
- _chunkVFBZ7FNKjs.ChartTooltipPortal,
553
+ _chunkEEVKTTT3js.ChartTooltipPortal,
552
554
  {
553
555
  chart,
554
556
  renderContent: (context) => {
555
- const tooltipData = _chunkVFBZ7FNKjs.transformTimeSeriesTooltipData.call(void 0, {
557
+ const tooltipData = _chunkEEVKTTT3js.transformTimeSeriesTooltipData.call(void 0, {
556
558
  context,
557
559
  data
558
560
  });
@@ -595,7 +597,7 @@ var AreaChartWithData = _react.memo.call(void 0, function AreaChartWithData2({
595
597
 
596
598
  var ChartXAnnotationDetails = _react.memo.call(void 0,
597
599
  ({ iconName, text }) => {
598
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVFBZ7FNKjs.ChartTooltipHeader, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _seedsreactbox.Box, { display: "flex", alignItems: "center", gap: 300, children: [
600
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEEVKTTT3js.ChartTooltipHeader, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _seedsreactbox.Box, { display: "flex", alignItems: "center", gap: 300, children: [
599
601
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacticon.Icon, { name: iconName, size: "mini", color: "icon.base" }),
600
602
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacttext.Text, { color: "text.body", fontSize: 200, children: text })
601
603
  ] }) });
@@ -644,13 +646,13 @@ var getDonutChartLegendLabels = ({
644
646
  data
645
647
  }) => {
646
648
  return data.map((slice, index) => ({
647
- content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVFBZ7FNKjs.ChartLegendLabelContentWithIcon, { icon: slice.icon, children: slice.name }),
649
+ content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEEVKTTT3js.ChartLegendLabelContentWithIcon, { icon: slice.icon, children: slice.name }),
648
650
  color: _optionalChain([slice, 'access', _28 => _28.styles, 'optionalAccess', _29 => _29.color]) || _seedsreacttheme.theme.colors.DATAVIZ_COLORS_LIST[index]
649
651
  }));
650
652
  };
651
653
  var DonutChartLegend = _react.memo.call(void 0,
652
654
  function DonutChartLegend2({ data }) {
653
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVFBZ7FNKjs.ChartLegend, { legendLabels: getDonutChartLegendLabels({ data }) });
655
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEEVKTTT3js.ChartLegend, { legendLabels: getDonutChartLegendLabels({ data }) });
654
656
  }
655
657
  );
656
658
 
@@ -680,7 +682,7 @@ var DonutChartTooltip = _react.memo.call(void 0,
680
682
  {
681
683
  cells: [
682
684
  {
683
- content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVFBZ7FNKjs.ChartLegendLabel, { color, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVFBZ7FNKjs.ChartLegendLabelContentWithIcon, { icon, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacttext.Text, { "aria-label": `${name}: `, children: name }) }) })
685
+ content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEEVKTTT3js.ChartLegendLabel, { color, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEEVKTTT3js.ChartLegendLabelContentWithIcon, { icon, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacttext.Text, { "aria-label": `${name}: `, children: name }) }) })
684
686
  },
685
687
  {
686
688
  content: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _seedsreactbox.Box, { display: "inline-flex", alignItems: "center", gap: 350, children: [
@@ -709,9 +711,9 @@ var DonutChartTooltip = _react.memo.call(void 0,
709
711
  ]
710
712
  }
711
713
  ];
712
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkVFBZ7FNKjs.ChartTooltip, { children: [
713
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVFBZ7FNKjs.ChartTooltipTable, { rows }),
714
- onClick && tooltipClickLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVFBZ7FNKjs.ChartTooltipFooter, { children: typeof tooltipClickLabel === "string" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _seedsreactbox.Box, { display: "flex", alignItems: "center", gap: 300, children: [
714
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEEVKTTT3js.ChartTooltip, { children: [
715
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEEVKTTT3js.ChartTooltipTable, { rows }),
716
+ onClick && tooltipClickLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEEVKTTT3js.ChartTooltipFooter, { children: typeof tooltipClickLabel === "string" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _seedsreactbox.Box, { display: "flex", alignItems: "center", gap: 300, children: [
715
717
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacticon.Icon, { name: "hand-pointer-clicking-outline", color: "icon.base" }),
716
718
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacttext.Text, { color: "text.subtext", fontSize: 200, children: tooltipClickLabel })
717
719
  ] }) : tooltipClickLabel }) : null
@@ -740,7 +742,7 @@ var transformDonutChartTooltipData = ({
740
742
 
741
743
  _accessibility2.default.call(void 0, _highcharts2.default);
742
744
  var StyledBox2 = _styledcomponents2.default.call(void 0, _seedsreactbox.Box)`
743
- ${_chunkVFBZ7FNKjs.donutChartStyles}
745
+ ${_chunkEEVKTTT3js.donutChartStyles}
744
746
  `;
745
747
  var DonutChart = _react.memo.call(void 0, function DonutChart2(props) {
746
748
  const { data } = props;
@@ -760,7 +762,7 @@ var DonutChartWithData = _react.memo.call(void 0,
760
762
  onClick,
761
763
  tooltipClickLabel
762
764
  }) {
763
- const [options, setOptions] = _react.useState.call(void 0, _chunkVFBZ7FNKjs.donutChartOptions);
765
+ const [options, setOptions] = _react.useState.call(void 0, _chunkJXARPHQEjs.donutChartOptions);
764
766
  const [chart, setChart] = _react.useState.call(void 0, null);
765
767
  const callback = _react.useCallback.call(void 0, (chartInstance) => {
766
768
  setChart(chartInstance);
@@ -778,7 +780,7 @@ var DonutChartWithData = _react.memo.call(void 0,
778
780
  events: {
779
781
  render: function() {
780
782
  const allSlices = _nullishCoalesce(_optionalChain([this, 'access', _37 => _37.series, 'access', _38 => _38[0], 'optionalAccess', _39 => _39.data]), () => ( []));
781
- const tooltipId = _chunkVFBZ7FNKjs.generateChartTooltipPortalId.call(void 0, this.index);
783
+ const tooltipId = _chunkEEVKTTT3js.generateChartTooltipPortalId.call(void 0, this.index);
782
784
  allSlices.forEach((slice) => {
783
785
  const sliceElement = _optionalChain([slice, 'optionalAccess', _40 => _40.graphic, 'optionalAccess', _41 => _41.element]);
784
786
  _optionalChain([sliceElement, 'optionalAccess', _42 => _42.setAttribute, 'call', _43 => _43("aria-describedby", tooltipId)]);
@@ -818,7 +820,7 @@ var DonutChartWithData = _react.memo.call(void 0,
818
820
  (series, index) => _nullishCoalesce(_nullishCoalesce(_optionalChain([series, 'access', _48 => _48.styles, 'optionalAccess', _49 => _49.color]), () => ( _seedsreacttheme.theme.colors.DATAVIZ_COLORS_LIST[index])), () => ( ""))
819
821
  );
820
822
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
821
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVFBZ7FNKjs.GlobalChartStyleOverrides, {}),
823
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEEVKTTT3js.GlobalChartStyleOverrides, {}),
822
824
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
823
825
  StyledBox2,
824
826
  {
@@ -835,7 +837,7 @@ var DonutChartWithData = _react.memo.call(void 0,
835
837
  }
836
838
  ),
837
839
  chart && !disableTooltips ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
838
- _chunkVFBZ7FNKjs.ChartTooltipPortal,
840
+ _chunkEEVKTTT3js.ChartTooltipPortal,
839
841
  {
840
842
  chart,
841
843
  renderContent: (context) => {
@@ -895,7 +897,7 @@ var DonutChartLegendTable = _react.memo.call(void 0,
895
897
  return {
896
898
  cells: [
897
899
  {
898
- content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVFBZ7FNKjs.ChartLegendLabel, { color, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVFBZ7FNKjs.ChartLegendLabelContentWithIcon, { icon, children: name }) })
900
+ content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEEVKTTT3js.ChartLegendLabel, { color, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEEVKTTT3js.ChartLegendLabelContentWithIcon, { icon, children: name }) })
899
901
  },
900
902
  {
901
903
  content: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _seedsreactbox.Box, { display: "inline-flex", alignItems: "center", gap: 350, children: [
@@ -948,7 +950,7 @@ var DonutChartLegendTable = _react.memo.call(void 0,
948
950
  }
949
951
  ];
950
952
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
951
- _chunkVFBZ7FNKjs.ChartTable,
953
+ _chunkEEVKTTT3js.ChartTable,
952
954
  {
953
955
  rows: [...rows, ...totalRow]
954
956
  }
@@ -973,13 +975,13 @@ var getLineChartLegendLabels = ({
973
975
  data
974
976
  }) => {
975
977
  return data.map((series, index) => ({
976
- content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVFBZ7FNKjs.ChartLegendLabelContentWithIcon, { icon: series.icon, children: series.name }),
978
+ content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEEVKTTT3js.ChartLegendLabelContentWithIcon, { icon: series.icon, children: series.name }),
977
979
  color: _optionalChain([series, 'access', _51 => _51.styles, 'optionalAccess', _52 => _52.color]) || _seedsreacttheme.theme.colors.DATAVIZ_COLORS_LIST[index]
978
980
  }));
979
981
  };
980
982
  var LineChartLegend = _react.memo.call(void 0,
981
983
  function LineChartLegend2({ data }) {
982
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVFBZ7FNKjs.ChartLegend, { legendLabels: getLineChartLegendLabels({ data }) });
984
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEEVKTTT3js.ChartLegend, { legendLabels: getLineChartLegendLabels({ data }) });
983
985
  }
984
986
  );
985
987
 
@@ -1010,7 +1012,7 @@ var LineChartTooltip = _react.memo.call(void 0,
1010
1012
  return {
1011
1013
  cells: [
1012
1014
  {
1013
- content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVFBZ7FNKjs.ChartLegendLabel, { color, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVFBZ7FNKjs.ChartLegendLabelContentWithIcon, { icon, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacttext.Text, { "aria-label": `${name}: `, children: name }) }) })
1015
+ content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEEVKTTT3js.ChartLegendLabel, { color, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEEVKTTT3js.ChartLegendLabelContentWithIcon, { icon, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacttext.Text, { "aria-label": `${name}: `, children: name }) }) })
1014
1016
  },
1015
1017
  {
1016
1018
  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,
@@ -1028,11 +1030,11 @@ var LineChartTooltip = _react.memo.call(void 0,
1028
1030
  ]
1029
1031
  };
1030
1032
  });
1031
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkVFBZ7FNKjs.ChartTooltip, { children: [
1033
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEEVKTTT3js.ChartTooltip, { children: [
1032
1034
  xAnnotationDetails ? xAnnotationDetails() : void 0,
1033
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVFBZ7FNKjs.ChartTooltipTitle, { children: tooltipDateFormatter({ x }) }),
1034
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVFBZ7FNKjs.ChartTooltipTable, { rows }),
1035
- onClick && tooltipClickLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVFBZ7FNKjs.ChartTooltipFooter, { children: typeof tooltipClickLabel === "string" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _seedsreactbox.Box, { display: "flex", alignItems: "center", gap: 300, children: [
1035
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEEVKTTT3js.ChartTooltipTitle, { children: tooltipDateFormatter({ x }) }),
1036
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEEVKTTT3js.ChartTooltipTable, { rows }),
1037
+ onClick && tooltipClickLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEEVKTTT3js.ChartTooltipFooter, { children: typeof tooltipClickLabel === "string" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _seedsreactbox.Box, { display: "flex", alignItems: "center", gap: 300, children: [
1036
1038
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacticon.Icon, { name: "hand-pointer-clicking-outline", color: "icon.base" }),
1037
1039
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacttext.Text, { color: "text.subtext", fontSize: 200, children: tooltipClickLabel })
1038
1040
  ] }) : tooltipClickLabel }) : null
@@ -1046,7 +1048,7 @@ var LineChartTooltip = _react.memo.call(void 0,
1046
1048
  _accessibility2.default.call(void 0, _highcharts2.default);
1047
1049
  _annotations2.default.call(void 0, _highcharts2.default);
1048
1050
  var StyledBox3 = _styledcomponents2.default.call(void 0, _seedsreactbox.Box)`
1049
- ${_chunkVFBZ7FNKjs.lineChartStyles}
1051
+ ${_chunkEEVKTTT3js.lineChartStyles}
1050
1052
  `;
1051
1053
  var LineChart = _react.memo.call(void 0, function LineChart2(props) {
1052
1054
  const { data } = props;
@@ -1100,7 +1102,7 @@ var LineChartWithData = _react.memo.call(void 0, function LineChartWithData2({
1100
1102
  }
1101
1103
  );
1102
1104
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
1103
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVFBZ7FNKjs.GlobalChartStyleOverrides, {}),
1105
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEEVKTTT3js.GlobalChartStyleOverrides, {}),
1104
1106
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
1105
1107
  StyledBox3,
1106
1108
  {
@@ -1126,11 +1128,11 @@ var LineChartWithData = _react.memo.call(void 0, function LineChartWithData2({
1126
1128
  }
1127
1129
  ) : null,
1128
1130
  chart && !disableTooltips ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1129
- _chunkVFBZ7FNKjs.ChartTooltipPortal,
1131
+ _chunkEEVKTTT3js.ChartTooltipPortal,
1130
1132
  {
1131
1133
  chart,
1132
1134
  renderContent: (context) => {
1133
- const tooltipData = _chunkVFBZ7FNKjs.transformTimeSeriesTooltipData.call(void 0, {
1135
+ const tooltipData = _chunkEEVKTTT3js.transformTimeSeriesTooltipData.call(void 0, {
1134
1136
  context,
1135
1137
  data
1136
1138
  });
@@ -1179,13 +1181,13 @@ var getVerticalBarChartLegendLabels = ({
1179
1181
  data
1180
1182
  }) => {
1181
1183
  return data.map((series, index) => ({
1182
- content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVFBZ7FNKjs.ChartLegendLabelContentWithIcon, { icon: series.icon, children: series.name }),
1184
+ content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEEVKTTT3js.ChartLegendLabelContentWithIcon, { icon: series.icon, children: series.name }),
1183
1185
  color: _optionalChain([series, 'access', _63 => _63.styles, 'optionalAccess', _64 => _64.color]) || _seedsreacttheme.theme.colors.DATAVIZ_COLORS_LIST[index]
1184
1186
  }));
1185
1187
  };
1186
1188
  var VerticalBarChartLegend = _react.memo.call(void 0,
1187
1189
  function VerticalbarChartLegend({ data }) {
1188
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVFBZ7FNKjs.ChartLegend, { legendLabels: getVerticalBarChartLegendLabels({ data }) });
1190
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEEVKTTT3js.ChartLegend, { legendLabels: getVerticalBarChartLegendLabels({ data }) });
1189
1191
  }
1190
1192
  );
1191
1193
 
@@ -1216,7 +1218,7 @@ var VerticalBarChartTooltip = _react.memo.call(void 0,
1216
1218
  return {
1217
1219
  cells: [
1218
1220
  {
1219
- content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVFBZ7FNKjs.ChartLegendLabel, { color, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVFBZ7FNKjs.ChartLegendLabelContentWithIcon, { icon, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacttext.Text, { "aria-label": `${name}: `, children: name }) }) })
1221
+ content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEEVKTTT3js.ChartLegendLabel, { color, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEEVKTTT3js.ChartLegendLabelContentWithIcon, { icon, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacttext.Text, { "aria-label": `${name}: `, children: name }) }) })
1220
1222
  },
1221
1223
  {
1222
1224
  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,
@@ -1234,11 +1236,11 @@ var VerticalBarChartTooltip = _react.memo.call(void 0,
1234
1236
  ]
1235
1237
  };
1236
1238
  });
1237
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkVFBZ7FNKjs.ChartTooltip, { children: [
1239
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEEVKTTT3js.ChartTooltip, { children: [
1238
1240
  xAnnotationDetails ? xAnnotationDetails() : void 0,
1239
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVFBZ7FNKjs.ChartTooltipTitle, { children: tooltipDateFormatter({ x }) }),
1240
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVFBZ7FNKjs.ChartTooltipTable, { rows }),
1241
- onClick && tooltipClickLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVFBZ7FNKjs.ChartTooltipFooter, { children: typeof tooltipClickLabel === "string" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _seedsreactbox.Box, { display: "flex", alignItems: "center", gap: 300, children: [
1241
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEEVKTTT3js.ChartTooltipTitle, { children: tooltipDateFormatter({ x }) }),
1242
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEEVKTTT3js.ChartTooltipTable, { rows }),
1243
+ onClick && tooltipClickLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEEVKTTT3js.ChartTooltipFooter, { children: typeof tooltipClickLabel === "string" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _seedsreactbox.Box, { display: "flex", alignItems: "center", gap: 300, children: [
1242
1244
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacticon.Icon, { name: "hand-pointer-clicking-outline", color: "icon.base" }),
1243
1245
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacttext.Text, { color: "text.subtext", fontSize: 200, children: tooltipClickLabel })
1244
1246
  ] }) : tooltipClickLabel }) : null
@@ -1252,12 +1254,12 @@ var VerticalBarChartTooltip = _react.memo.call(void 0,
1252
1254
  _accessibility2.default.call(void 0, _highcharts2.default);
1253
1255
  _annotations2.default.call(void 0, _highcharts2.default);
1254
1256
  var StyledBox4 = _styledcomponents2.default.call(void 0, _seedsreactbox.Box)`
1255
- ${_chunkVFBZ7FNKjs.verticalBarChartStyles}
1257
+ ${_chunkJXARPHQEjs.verticalBarChartStyles}
1256
1258
  `;
1257
1259
  var VerticalBarChart = _react.memo.call(void 0,
1258
1260
  function VerticalBarChart2(props) {
1259
1261
  const { data, showSeriesLimitWarning = true } = props;
1260
- const seriesLimit = _nullishCoalesce(props.seriesLimit, () => ( _chunkVFBZ7FNKjs.VERTICAL_BAR_CHART_DEFAULT_SERIES_LIMIT));
1262
+ const seriesLimit = _nullishCoalesce(props.seriesLimit, () => ( _chunkJXARPHQEjs.VERTICAL_BAR_CHART_DEFAULT_SERIES_LIMIT));
1261
1263
  const isSeriesLimitOverridden = props.seriesLimit !== void 0;
1262
1264
  if (data.length === 0) {
1263
1265
  return null;
@@ -1292,7 +1294,7 @@ var VerticalBarChartWithData = _react.memo.call(void 0,
1292
1294
  xAnnotations,
1293
1295
  xAxisLabelFormatter: xAxisLabelFormatter2
1294
1296
  }) {
1295
- const shouldUseTimeFormatter = _chunkVFBZ7FNKjs.isHourlyTimeData.call(void 0, data) || _chunkVFBZ7FNKjs.isCategoricalHourData.call(void 0, data);
1297
+ const shouldUseTimeFormatter = _chunkEEVKTTT3js.isHourlyTimeData.call(void 0, data) || _chunkEEVKTTT3js.isCategoricalHourData.call(void 0, data);
1296
1298
  const autoTimeXAxisLabelFormatter = ({
1297
1299
  value,
1298
1300
  timeFormat: timeFormat2
@@ -1359,7 +1361,7 @@ var VerticalBarChartWithData = _react.memo.call(void 0,
1359
1361
  }
1360
1362
  );
1361
1363
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
1362
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVFBZ7FNKjs.GlobalChartStyleOverrides, {}),
1364
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEEVKTTT3js.GlobalChartStyleOverrides, {}),
1363
1365
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
1364
1366
  StyledBox4,
1365
1367
  {
@@ -1384,11 +1386,11 @@ var VerticalBarChartWithData = _react.memo.call(void 0,
1384
1386
  }
1385
1387
  ) : null,
1386
1388
  chart ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1387
- _chunkVFBZ7FNKjs.ChartTooltipPortal,
1389
+ _chunkEEVKTTT3js.ChartTooltipPortal,
1388
1390
  {
1389
1391
  chart,
1390
1392
  renderContent: (context) => {
1391
- const tooltipData = _chunkVFBZ7FNKjs.transformTimeSeriesTooltipData.call(void 0, {
1393
+ const tooltipData = _chunkEEVKTTT3js.transformTimeSeriesTooltipData.call(void 0, {
1392
1394
  context,
1393
1395
  data
1394
1396
  });
@@ -1469,5 +1471,5 @@ var VerticalBarChartWithData = _react.memo.call(void 0,
1469
1471
 
1470
1472
 
1471
1473
 
1472
- exports.AreaChart = AreaChart; exports.ChartLegend = _chunkVFBZ7FNKjs.ChartLegend; exports.ChartLegendLabel = _chunkVFBZ7FNKjs.ChartLegendLabel; exports.ChartTable = _chunkVFBZ7FNKjs.ChartTable; exports.ChartTooltip = _chunkVFBZ7FNKjs.ChartTooltip; exports.ChartTooltipFooter = _chunkVFBZ7FNKjs.ChartTooltipFooter; exports.ChartTooltipHeader = _chunkVFBZ7FNKjs.ChartTooltipHeader; exports.ChartTooltipPortal = _chunkVFBZ7FNKjs.ChartTooltipPortal; exports.ChartTooltipTable = _chunkVFBZ7FNKjs.ChartTooltipTable; exports.ChartTooltipTitle = _chunkVFBZ7FNKjs.ChartTooltipTitle; exports.ChartXAnnotationDetails = ChartXAnnotationDetails; exports.ChartXAnnotationMarker = ChartXAnnotationMarker; exports.ColorBox = _chunkVFBZ7FNKjs.ColorBox; exports.DONUT_CHART_HALO_SIZE = _chunkVFBZ7FNKjs.DONUT_CHART_HALO_SIZE; exports.DONUT_CHART_HEIGHT = _chunkVFBZ7FNKjs.DONUT_CHART_HEIGHT; exports.DONUT_CHART_WIDTH = _chunkVFBZ7FNKjs.DONUT_CHART_WIDTH; exports.DatavizColorBox = _chunkVFBZ7FNKjs.DatavizColorBox; exports.DonutChart = DonutChart; exports.DonutChartLegendTable = DonutChartLegendTable; exports.GlobalChartStyleOverrides = _chunkVFBZ7FNKjs.GlobalChartStyleOverrides; exports.LineChart = LineChart; exports.NetworkColorBox = _chunkVFBZ7FNKjs.NetworkColorBox; exports.TIME_SERIES_CHART_HEIGHT = _chunkVFBZ7FNKjs.TIME_SERIES_CHART_HEIGHT; exports.VERTICAL_BAR_CHART_DEFAULT_SERIES_LIMIT = _chunkVFBZ7FNKjs.VERTICAL_BAR_CHART_DEFAULT_SERIES_LIMIT; exports.VerticalBarChart = VerticalBarChart; exports.areaChartOptions = _chunkVFBZ7FNKjs.areaChartOptions; exports.areaChartStyles = _chunkVFBZ7FNKjs.areaChartStyles; exports.baseChartOptions = _chunkVFBZ7FNKjs.baseChartOptions; exports.baseChartStyles = _chunkVFBZ7FNKjs.baseChartStyles; exports.columnChartOptions = _chunkVFBZ7FNKjs.columnChartOptions; exports.donutChartOptions = _chunkVFBZ7FNKjs.donutChartOptions; exports.donutChartStyles = _chunkVFBZ7FNKjs.donutChartStyles; exports.generateChartTooltipPortalId = _chunkVFBZ7FNKjs.generateChartTooltipPortalId; exports.getDatavizColor = _chunkVFBZ7FNKjs.getDatavizColor; exports.getDatavizColorWithAlpha = _chunkVFBZ7FNKjs.getDatavizColorWithAlpha; exports.getDatavizOpacity = _chunkVFBZ7FNKjs.getDatavizOpacity; exports.getStorybookCategoricalData = _chunkVFBZ7FNKjs.getStorybookCategoricalData; exports.getStorybookSparseTimelineData = _chunkVFBZ7FNKjs.getStorybookSparseTimelineData; exports.isCategoricalHourData = _chunkVFBZ7FNKjs.isCategoricalHourData; exports.isHourlyTimeData = _chunkVFBZ7FNKjs.isHourlyTimeData; exports.lineChartOptions = _chunkVFBZ7FNKjs.lineChartOptions; exports.lineChartStyles = _chunkVFBZ7FNKjs.lineChartStyles; exports.timeSeriesChartOptions = _chunkVFBZ7FNKjs.timeSeriesChartOptions; exports.timeSeriesChartStyles = _chunkVFBZ7FNKjs.timeSeriesChartStyles; exports.transformDataToSeries = _chunkVFBZ7FNKjs.transformDataToSeries; exports.transformTimeSeriesTooltipData = _chunkVFBZ7FNKjs.transformTimeSeriesTooltipData; exports.xAxisLabelFormatter = _chunkVFBZ7FNKjs.xAxisLabelFormatter; exports.yAxisLabelFormatter = _chunkVFBZ7FNKjs.yAxisLabelFormatter;
1474
+ exports.AreaChart = AreaChart; exports.ChartLegend = _chunkEEVKTTT3js.ChartLegend; exports.ChartLegendLabel = _chunkEEVKTTT3js.ChartLegendLabel; exports.ChartTable = _chunkEEVKTTT3js.ChartTable; exports.ChartTooltip = _chunkEEVKTTT3js.ChartTooltip; exports.ChartTooltipFooter = _chunkEEVKTTT3js.ChartTooltipFooter; exports.ChartTooltipHeader = _chunkEEVKTTT3js.ChartTooltipHeader; exports.ChartTooltipPortal = _chunkEEVKTTT3js.ChartTooltipPortal; exports.ChartTooltipTable = _chunkEEVKTTT3js.ChartTooltipTable; exports.ChartTooltipTitle = _chunkEEVKTTT3js.ChartTooltipTitle; exports.ChartXAnnotationDetails = ChartXAnnotationDetails; exports.ChartXAnnotationMarker = ChartXAnnotationMarker; exports.ColorBox = _chunkEEVKTTT3js.ColorBox; exports.DONUT_CHART_HALO_SIZE = _chunkJXARPHQEjs.DONUT_CHART_HALO_SIZE; exports.DONUT_CHART_HEIGHT = _chunkJXARPHQEjs.DONUT_CHART_HEIGHT; exports.DONUT_CHART_WIDTH = _chunkJXARPHQEjs.DONUT_CHART_WIDTH; exports.DatavizColorBox = _chunkEEVKTTT3js.DatavizColorBox; exports.DonutChart = DonutChart; exports.DonutChartLegendTable = DonutChartLegendTable; exports.GlobalChartStyleOverrides = _chunkEEVKTTT3js.GlobalChartStyleOverrides; exports.LineChart = LineChart; exports.NetworkColorBox = _chunkEEVKTTT3js.NetworkColorBox; exports.TIME_SERIES_CHART_HEIGHT = _chunkJXARPHQEjs.TIME_SERIES_CHART_HEIGHT; exports.VERTICAL_BAR_CHART_DEFAULT_SERIES_LIMIT = _chunkJXARPHQEjs.VERTICAL_BAR_CHART_DEFAULT_SERIES_LIMIT; exports.VerticalBarChart = VerticalBarChart; exports.areaChartOptions = _chunkJXARPHQEjs.areaChartOptions; exports.areaChartStyles = _chunkEEVKTTT3js.areaChartStyles; exports.baseChartOptions = _chunkJXARPHQEjs.baseChartOptions; exports.baseChartStyles = _chunkEEVKTTT3js.baseChartStyles; exports.columnChartOptions = _chunkJXARPHQEjs.columnChartOptions; exports.donutChartOptions = _chunkJXARPHQEjs.donutChartOptions; exports.donutChartStyles = _chunkEEVKTTT3js.donutChartStyles; exports.generateChartTooltipPortalId = _chunkEEVKTTT3js.generateChartTooltipPortalId; exports.getDatavizColor = _chunkEEVKTTT3js.getDatavizColor; exports.getDatavizColorWithAlpha = _chunkEEVKTTT3js.getDatavizColorWithAlpha; exports.getDatavizOpacity = _chunkEEVKTTT3js.getDatavizOpacity; exports.getStorybookCategoricalData = _chunkEEVKTTT3js.getStorybookCategoricalData; exports.getStorybookSparseTimelineData = _chunkEEVKTTT3js.getStorybookSparseTimelineData; exports.isCategoricalHourData = _chunkEEVKTTT3js.isCategoricalHourData; exports.isHourlyTimeData = _chunkEEVKTTT3js.isHourlyTimeData; exports.lineChartOptions = _chunkJXARPHQEjs.lineChartOptions; exports.lineChartStyles = _chunkEEVKTTT3js.lineChartStyles; exports.timeSeriesChartOptions = _chunkJXARPHQEjs.timeSeriesChartOptions; exports.timeSeriesChartStyles = _chunkEEVKTTT3js.timeSeriesChartStyles; exports.transformDataToSeries = _chunkEEVKTTT3js.transformDataToSeries; exports.transformTimeSeriesTooltipData = _chunkEEVKTTT3js.transformTimeSeriesTooltipData; exports.xAxisLabelFormatter = _chunkEEVKTTT3js.xAxisLabelFormatter; exports.yAxisLabelFormatter = _chunkEEVKTTT3js.yAxisLabelFormatter;
1473
1475
  //# sourceMappingURL=index.js.map