@sproutsocial/seeds-react-data-viz 0.14.0 → 0.16.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
@@ -30,19 +30,7 @@
30
30
 
31
31
 
32
32
 
33
-
34
-
35
-
36
-
37
-
38
-
39
-
40
-
41
-
42
-
43
-
44
-
45
- var _chunkVFBZ7FNKjs = require('./chunk-VFBZ7FNK.js');
33
+ var _chunkEEVKTTT3js = require('./chunk-EEVKTTT3.js');
46
34
 
47
35
  // src/components/AreaChart/AreaChart.tsx
48
36
  var _react = require('react');
@@ -61,13 +49,13 @@ var getAreaChartLegendLabels = ({
61
49
  data
62
50
  }) => {
63
51
  return data.map((series, index) => ({
64
- content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVFBZ7FNKjs.ChartLegendLabelContentWithIcon, { icon: series.icon, children: series.name }),
65
- color: _optionalChain([series, 'access', _ => _.styles, 'optionalAccess', _2 => _2.color]) || _seedsreacttheme.theme.colors.DATAVIZ_COLORS_LIST[index]
52
+ content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEEVKTTT3js.ChartLegendLabelContentWithIcon, { icon: series.icon, children: series.name }),
53
+ color: _optionalChain([series, 'access', _2 => _2.styles, 'optionalAccess', _3 => _3.color]) || _seedsreacttheme.theme.colors.DATAVIZ_COLORS_LIST[index]
66
54
  }));
67
55
  };
68
56
  var AreaChartLegend = _react.memo.call(void 0,
69
57
  function AreaChartLegend2({ data }) {
70
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVFBZ7FNKjs.ChartLegend, { legendLabels: getAreaChartLegendLabels({ data }) });
58
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEEVKTTT3js.ChartLegend, { legendLabels: getAreaChartLegendLabels({ data }) });
71
59
  }
72
60
  );
73
61
 
@@ -100,7 +88,7 @@ var AreaChartTooltip = _react.memo.call(void 0,
100
88
  return {
101
89
  cells: [
102
90
  {
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 }) }) })
91
+ 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
92
  },
105
93
  {
106
94
  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 +136,16 @@ var AreaChartTooltip = _react.memo.call(void 0,
148
136
  isAppendedRow: true
149
137
  }
150
138
  ] : [];
151
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkVFBZ7FNKjs.ChartTooltip, { children: [
139
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEEVKTTT3js.ChartTooltip, { children: [
152
140
  xAnnotationDetails ? xAnnotationDetails() : void 0,
153
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVFBZ7FNKjs.ChartTooltipTitle, { children: tooltipDateFormatter({ x }) }),
141
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEEVKTTT3js.ChartTooltipTitle, { children: tooltipDateFormatter({ x }) }),
154
142
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
155
- _chunkVFBZ7FNKjs.ChartTooltipTable,
143
+ _chunkEEVKTTT3js.ChartTooltipTable,
156
144
  {
157
145
  rows: [...rows, ...appendedRows]
158
146
  }
159
147
  ),
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: [
148
+ 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
149
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacticon.Icon, { name: "hand-pointer-clicking-outline", color: "icon.base" }),
162
150
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacttext.Text, { color: "text.subtext", fontSize: 200, children: tooltipClickLabel })
163
151
  ] }) : tooltipClickLabel }) : null
@@ -189,13 +177,13 @@ var ChartXAnnotationMarkerPortal = _react.memo.call(void 0,
189
177
  (annotation) => annotation.setAttribute("data-annotation-marker", "false")
190
178
  );
191
179
  annotationContext.labels.forEach((label) => {
192
- const labelElement = _optionalChain([label, 'access', _3 => _3.graphic, 'optionalAccess', _4 => _4.div]);
180
+ const labelElement = _optionalChain([label, 'access', _4 => _4.graphic, 'optionalAccess', _5 => _5.div]);
193
181
  if (labelElement) {
194
182
  labelElement.querySelectorAll("div[data-annotation-marker]").forEach((component) => component.remove());
195
183
  const annotationDiv = document.createElement("div");
196
184
  annotationDiv.setAttribute("data-annotation-marker", "true");
197
185
  labelElement.appendChild(annotationDiv);
198
- const xValue = _optionalChain([label, 'access', _5 => _5.options, 'optionalAccess', _6 => _6.point, 'optionalAccess', _7 => _7.x]);
186
+ const xValue = _optionalChain([label, 'access', _6 => _6.options, 'optionalAccess', _7 => _7.point, 'optionalAccess', _8 => _8.x]);
199
187
  newContainers[xValue] = annotationDiv;
200
188
  }
201
189
  });
@@ -218,7 +206,7 @@ var ChartXAnnotationMarkerPortal = _react.memo.call(void 0,
218
206
  }, [annotationContext.labels, xAnnotations, chartContainer]);
219
207
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: Object.entries(annotationContainers.current).map(
220
208
  ([xValue, container]) => {
221
- const annotationComponent = _optionalChain([xAnnotations, 'optionalAccess', _8 => _8[Number(xValue)], 'optionalAccess', _9 => _9.marker]);
209
+ const annotationComponent = _optionalChain([xAnnotations, 'optionalAccess', _9 => _9[Number(xValue)], 'optionalAccess', _10 => _10.marker]);
222
210
  return annotationComponent ? _reactdom.createPortal.call(void 0, annotationComponent(), container) : null;
223
211
  }
224
212
  ) });
@@ -227,7 +215,164 @@ var ChartXAnnotationMarkerPortal = _react.memo.call(void 0,
227
215
 
228
216
  // src/hooks/useTimeSeriesChartOptions.ts
229
217
 
230
- var _lodash = require('lodash');
218
+
219
+ // src/constants/chartOptions.ts
220
+ var _lodash = require('lodash'); var _lodash2 = _interopRequireDefault(_lodash);
221
+ var baseChartOptions = {
222
+ chart: {
223
+ animation: false,
224
+ styledMode: true
225
+ },
226
+ credits: {
227
+ enabled: false
228
+ },
229
+ exporting: {
230
+ enabled: false,
231
+ fallbackToExportServer: false
232
+ },
233
+ legend: {
234
+ enabled: false
235
+ },
236
+ title: {
237
+ text: void 0
238
+ },
239
+ tooltip: {
240
+ hideDelay: 0,
241
+ outside: true,
242
+ padding: 0,
243
+ shape: "rect",
244
+ shared: true,
245
+ useHTML: true
246
+ }
247
+ };
248
+ var TIME_SERIES_CHART_HEIGHT = 275;
249
+ var timeSeriesChartOptions = _lodash2.default.merge({}, baseChartOptions, {
250
+ annotations: [
251
+ {
252
+ draggable: "",
253
+ labelOptions: {
254
+ useHTML: true,
255
+ padding: 0
256
+ // removes "left" property padding created by highcharts so that label is centered
257
+ }
258
+ }
259
+ ],
260
+ chart: {
261
+ // events.click is set at the component level because of the optional onClick prop
262
+ height: TIME_SERIES_CHART_HEIGHT,
263
+ spacing: [5, 1, 0, 2]
264
+ },
265
+ plotOptions: {
266
+ series: {
267
+ animation: false,
268
+ clip: false,
269
+ marker: {
270
+ enabled: false,
271
+ states: {
272
+ hover: {
273
+ enabled: false
274
+ }
275
+ }
276
+ }
277
+ }
278
+ },
279
+ xAxis: {
280
+ crosshair: {
281
+ zIndex: 3
282
+ },
283
+ minPadding: 0,
284
+ // must be handled dynamically instead of css
285
+ maxPadding: 0,
286
+ // must be handled dynamically instead of css
287
+ type: "datetime",
288
+ labels: {
289
+ useHTML: true
290
+ // formatter is set at the component level because of the required text locale prop
291
+ }
292
+ },
293
+ yAxis: {
294
+ labels: {
295
+ useHTML: true
296
+ // formatter is set at the component level because of the optional yAxisLabelFormatter prop
297
+ },
298
+ softMax: 0,
299
+ softMin: 0,
300
+ title: {
301
+ text: void 0
302
+ },
303
+ plotLines: [
304
+ /* Adds a custom plotLine at y=0 to represent the chart baseline.
305
+ This approach allows full control over the line's appearance (e.g., color, z-index),
306
+ unlike relying on the default xAxis line, which always renders at the bottom of the chart
307
+ even when y=0 appears elsewhere (e.g., with negative values).
308
+ */
309
+ {
310
+ className: "y-axis-zero-line",
311
+ value: 0,
312
+ zIndex: 3
313
+ // ensures the line appears over the default y=0 line, which we can't seleect as specifically
314
+ }
315
+ ]
316
+ }
317
+ });
318
+ var lineChartOptions = _lodash2.default.merge({}, timeSeriesChartOptions, {
319
+ // plotOptions.spline.events.click is set at the component level because of the optional onClick prop
320
+ });
321
+ var areaChartOptions = _lodash2.default.merge({}, timeSeriesChartOptions, {
322
+ plotOptions: {
323
+ areaspline: {
324
+ // events.click is set at the component level because of the optional onClick prop
325
+ stacking: "normal"
326
+ }
327
+ }
328
+ });
329
+ var columnChartOptions = _lodash2.default.merge({}, timeSeriesChartOptions, {
330
+ plotOptions: {
331
+ column: {
332
+ stacking: "normal",
333
+ pointPadding: 0.25,
334
+ groupPadding: 0.25,
335
+ borderRadius: 4
336
+ }
337
+ },
338
+ xAxis: {
339
+ crosshair: false
340
+ },
341
+ yAxis: {
342
+ plotLines: [
343
+ {
344
+ // For stacked column charts with visible borders (e.g., white for contrast),
345
+ // we raise the zIndex of the y=0 plotLine to ensure it remains visible
346
+ // and isn't visually covered by overlapping column borders.
347
+ zIndex: 5
348
+ }
349
+ ]
350
+ }
351
+ });
352
+ var VERTICAL_BAR_CHART_DEFAULT_SERIES_LIMIT = 10;
353
+ var DONUT_CHART_HALO_SIZE = 10;
354
+ var DONUT_CHART_HEIGHT = 250 + DONUT_CHART_HALO_SIZE * 2;
355
+ var DONUT_CHART_WIDTH = DONUT_CHART_HEIGHT;
356
+ var donutChartOptions = _lodash2.default.merge({}, baseChartOptions, {
357
+ chart: {
358
+ height: DONUT_CHART_HEIGHT,
359
+ spacing: [0, 0, 0, 0]
360
+ },
361
+ plotOptions: {
362
+ pie: {
363
+ animation: false,
364
+ borderRadius: 0,
365
+ // must be handled here instead of css because of path rendering
366
+ dataLabels: {
367
+ enabled: false
368
+ },
369
+ innerSize: "50%"
370
+ }
371
+ }
372
+ });
373
+
374
+ // src/hooks/useTimeSeriesChartOptions.ts
375
+
231
376
  var useTimeSeriesChartOptions = ({
232
377
  xAnnotations,
233
378
  data,
@@ -251,7 +396,7 @@ var useTimeSeriesChartOptions = ({
251
396
  const handleFocus = (point) => point.series.chart.tooltip.refresh(point);
252
397
  const handleBlur = (point) => point.series.chart.tooltip.hide(0);
253
398
  series.flatMap((item) => item.data).forEach((point) => {
254
- const pointElement = _optionalChain([point, 'optionalAccess', _10 => _10.graphic, 'optionalAccess', _11 => _11.element]);
399
+ const pointElement = _optionalChain([point, 'optionalAccess', _11 => _11.graphic, 'optionalAccess', _12 => _12.element]);
255
400
  if (pointElement) {
256
401
  pointElement.setAttribute("aria-describedby", tooltipId);
257
402
  pointElement.addEventListener("focus", () => handleFocus(point));
@@ -278,20 +423,20 @@ var useTimeSeriesChartOptions = ({
278
423
  const getBaseChartOptions = (type) => {
279
424
  switch (type) {
280
425
  case "areaspline":
281
- return _chunkVFBZ7FNKjs.areaChartOptions;
426
+ return areaChartOptions;
282
427
  case "spline":
283
- return _chunkVFBZ7FNKjs.lineChartOptions;
428
+ return lineChartOptions;
284
429
  case "column":
285
- return _chunkVFBZ7FNKjs.columnChartOptions;
430
+ return columnChartOptions;
286
431
  default:
287
- return _chunkVFBZ7FNKjs.lineChartOptions;
432
+ return lineChartOptions;
288
433
  }
289
434
  };
290
435
  const baseChartOptions2 = getBaseChartOptions(seriesType);
291
436
  const hasCategoricalData = data.some(
292
437
  (series) => series.points.some((point) => typeof point.x === "string")
293
438
  );
294
- const categories = hasCategoricalData ? _optionalChain([data, 'access', _12 => _12[0], 'optionalAccess', _13 => _13.points, 'access', _14 => _14.map, 'call', _15 => _15((point) => point.x)]) || [] : [];
439
+ const categories = hasCategoricalData ? _optionalChain([data, 'access', _13 => _13[0], 'optionalAccess', _14 => _14.points, 'access', _15 => _15.map, 'call', _16 => _16((point) => point.x)]) || [] : [];
295
440
  const hasSparseTimelineData = !hasCategoricalData && seriesType === "column";
296
441
  const options = _react.useMemo.call(void 0, () => {
297
442
  return _lodash.merge.call(void 0, {}, baseChartOptions2, {
@@ -311,10 +456,10 @@ var useTimeSeriesChartOptions = ({
311
456
  marginTop: chartMarginTop,
312
457
  events: {
313
458
  click: onClick ? function() {
314
- return onClick({ x: _optionalChain([this, 'optionalAccess', _16 => _16.hoverPoint, 'optionalAccess', _17 => _17.x]) });
459
+ return onClick({ x: _optionalChain([this, 'optionalAccess', _17 => _17.hoverPoint, 'optionalAccess', _18 => _18.x]) });
315
460
  } : void 0,
316
461
  load: function() {
317
- const tooltipId = _chunkVFBZ7FNKjs.generateChartTooltipPortalId.call(void 0, this.index);
462
+ const tooltipId = _chunkEEVKTTT3js.generateChartTooltipPortalId.call(void 0, this.index);
318
463
  attachTooltipEventListeners(this.series, tooltipId);
319
464
  }
320
465
  }
@@ -393,7 +538,7 @@ var useTimeSeriesChartOptions = ({
393
538
  }
394
539
  }
395
540
  },
396
- series: _chunkVFBZ7FNKjs.transformDataToSeries.call(void 0, { data }, seriesType),
541
+ series: _chunkEEVKTTT3js.transformDataToSeries.call(void 0, { data }, seriesType),
397
542
  time: { timezone },
398
543
  tooltip: {
399
544
  enabled: !disableTooltips
@@ -405,7 +550,7 @@ var useTimeSeriesChartOptions = ({
405
550
  Number
406
551
  );
407
552
  const value = this.value;
408
- const unitName = _optionalChain([this, 'access', _18 => _18.tickPositionInfo, 'optionalAccess', _19 => _19.unitName]);
553
+ const unitName = _optionalChain([this, 'access', _19 => _19.tickPositionInfo, 'optionalAccess', _20 => _20.unitName]);
409
554
  if (typeof xAxisLabelFormatter2 === "function") {
410
555
  return xAxisLabelFormatter2({
411
556
  textLocale,
@@ -441,7 +586,7 @@ var useTimeSeriesChartOptions = ({
441
586
  return yAxisLabelFormatter2 ? yAxisLabelFormatter2({
442
587
  y: this.value,
443
588
  yValues: this.axis.tickPositions
444
- }) : _chunkVFBZ7FNKjs.yAxisLabelFormatter.call(void 0, {
589
+ }) : _chunkEEVKTTT3js.yAxisLabelFormatter.call(void 0, {
445
590
  currency,
446
591
  numberFormat,
447
592
  numberLocale,
@@ -472,7 +617,7 @@ var useTimeSeriesChartOptions = ({
472
617
  ]);
473
618
  return { options, chart, callback };
474
619
  };
475
- var xAxisLabelFormatterDefault = _chunkVFBZ7FNKjs.xAxisLabelFormatter;
620
+ var xAxisLabelFormatterDefault = _chunkEEVKTTT3js.xAxisLabelFormatter;
476
621
 
477
622
  // src/components/AreaChart/AreaChart.tsx
478
623
 
@@ -480,7 +625,7 @@ var xAxisLabelFormatterDefault = _chunkVFBZ7FNKjs.xAxisLabelFormatter;
480
625
  _accessibility2.default.call(void 0, _highcharts2.default);
481
626
  _annotations2.default.call(void 0, _highcharts2.default);
482
627
  var StyledBox = _styledcomponents2.default.call(void 0, _seedsreactbox.Box)`
483
- ${_chunkVFBZ7FNKjs.areaChartStyles}
628
+ ${_chunkEEVKTTT3js.areaChartStyles}
484
629
  `;
485
630
  var AreaChart = _react.memo.call(void 0, function AreaChart2(props) {
486
631
  const { data } = props;
@@ -520,10 +665,10 @@ var AreaChartWithData = _react.memo.call(void 0, function AreaChartWithData2({
520
665
  xAnnotations
521
666
  });
522
667
  const colors = data.map(
523
- (series, index) => _nullishCoalesce(_optionalChain([series, 'access', _20 => _20.styles, 'optionalAccess', _21 => _21.color]), () => ( _seedsreacttheme.theme.colors.DATAVIZ_COLORS_LIST[index]))
668
+ (series, index) => _nullishCoalesce(_optionalChain([series, 'access', _21 => _21.styles, 'optionalAccess', _22 => _22.color]), () => ( _seedsreacttheme.theme.colors.DATAVIZ_COLORS_LIST[index]))
524
669
  );
525
670
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
526
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVFBZ7FNKjs.GlobalChartStyleOverrides, {}),
671
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEEVKTTT3js.GlobalChartStyleOverrides, {}),
527
672
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
528
673
  StyledBox,
529
674
  {
@@ -539,26 +684,26 @@ var AreaChartWithData = _react.memo.call(void 0, function AreaChartWithData2({
539
684
  callback
540
685
  }
541
686
  ),
542
- chart && _optionalChain([chart, 'access', _22 => _22.annotations, 'optionalAccess', _23 => _23.length]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
687
+ chart && _optionalChain([chart, 'access', _23 => _23.annotations, 'optionalAccess', _24 => _24.length]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
543
688
  ChartXAnnotationMarkerPortal,
544
689
  {
545
690
  xAnnotations,
546
- annotationContext: _optionalChain([chart, 'access', _24 => _24.annotations, 'optionalAccess', _25 => _25[0]]),
691
+ annotationContext: _optionalChain([chart, 'access', _25 => _25.annotations, 'optionalAccess', _26 => _26[0]]),
547
692
  chartContainer: chart.container
548
693
  }
549
694
  ) : null,
550
695
  chart && !disableTooltips ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
551
- _chunkVFBZ7FNKjs.ChartTooltipPortal,
696
+ _chunkEEVKTTT3js.ChartTooltipPortal,
552
697
  {
553
698
  chart,
554
699
  renderContent: (context) => {
555
- const tooltipData = _chunkVFBZ7FNKjs.transformTimeSeriesTooltipData.call(void 0, {
700
+ const tooltipData = _chunkEEVKTTT3js.transformTimeSeriesTooltipData.call(void 0, {
556
701
  context,
557
702
  data
558
703
  });
559
704
  const x = context.x;
560
705
  const total = context.total;
561
- const xAnnotationDetails = _optionalChain([xAnnotations, 'optionalAccess', _26 => _26[x], 'optionalAccess', _27 => _27.details]);
706
+ const xAnnotationDetails = _optionalChain([xAnnotations, 'optionalAccess', _27 => _27[x], 'optionalAccess', _28 => _28.details]);
562
707
  return tooltip ? tooltip({ data: tooltipData, total, x }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
563
708
  AreaChartTooltip,
564
709
  {
@@ -595,7 +740,7 @@ var AreaChartWithData = _react.memo.call(void 0, function AreaChartWithData2({
595
740
 
596
741
  var ChartXAnnotationDetails = _react.memo.call(void 0,
597
742
  ({ 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: [
743
+ 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
744
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacticon.Icon, { name: iconName, size: "mini", color: "icon.base" }),
600
745
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacttext.Text, { color: "text.body", fontSize: 200, children: text })
601
746
  ] }) });
@@ -644,13 +789,13 @@ var getDonutChartLegendLabels = ({
644
789
  data
645
790
  }) => {
646
791
  return data.map((slice, index) => ({
647
- content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVFBZ7FNKjs.ChartLegendLabelContentWithIcon, { icon: slice.icon, children: slice.name }),
648
- color: _optionalChain([slice, 'access', _28 => _28.styles, 'optionalAccess', _29 => _29.color]) || _seedsreacttheme.theme.colors.DATAVIZ_COLORS_LIST[index]
792
+ content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEEVKTTT3js.ChartLegendLabelContentWithIcon, { icon: slice.icon, children: slice.name }),
793
+ color: _optionalChain([slice, 'access', _29 => _29.styles, 'optionalAccess', _30 => _30.color]) || _seedsreacttheme.theme.colors.DATAVIZ_COLORS_LIST[index]
649
794
  }));
650
795
  };
651
796
  var DonutChartLegend = _react.memo.call(void 0,
652
797
  function DonutChartLegend2({ data }) {
653
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVFBZ7FNKjs.ChartLegend, { legendLabels: getDonutChartLegendLabels({ data }) });
798
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEEVKTTT3js.ChartLegend, { legendLabels: getDonutChartLegendLabels({ data }) });
654
799
  }
655
800
  );
656
801
 
@@ -680,7 +825,7 @@ var DonutChartTooltip = _react.memo.call(void 0,
680
825
  {
681
826
  cells: [
682
827
  {
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 }) }) })
828
+ 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
829
  },
685
830
  {
686
831
  content: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _seedsreactbox.Box, { display: "inline-flex", alignItems: "center", gap: 350, children: [
@@ -709,9 +854,9 @@ var DonutChartTooltip = _react.memo.call(void 0,
709
854
  ]
710
855
  }
711
856
  ];
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: [
857
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEEVKTTT3js.ChartTooltip, { children: [
858
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEEVKTTT3js.ChartTooltipTable, { rows }),
859
+ 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
860
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacticon.Icon, { name: "hand-pointer-clicking-outline", color: "icon.base" }),
716
861
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacttext.Text, { color: "text.subtext", fontSize: 200, children: tooltipClickLabel })
717
862
  ] }) : tooltipClickLabel }) : null
@@ -727,8 +872,8 @@ var transformDonutChartTooltipData = ({
727
872
  }) => {
728
873
  const colorIndex = context.colorIndex;
729
874
  return {
730
- color: _nullishCoalesce(_nullishCoalesce(_optionalChain([data, 'access', _30 => _30[colorIndex], 'optionalAccess', _31 => _31.styles, 'optionalAccess', _32 => _32.color]), () => ( _seedsreacttheme.theme.colors.DATAVIZ_COLORS_LIST[colorIndex])), () => ( "")),
731
- ..._optionalChain([data, 'access', _33 => _33[colorIndex], 'optionalAccess', _34 => _34.icon]) ? { icon: _optionalChain([data, 'access', _35 => _35[colorIndex], 'optionalAccess', _36 => _36.icon]) } : {},
875
+ color: _nullishCoalesce(_nullishCoalesce(_optionalChain([data, 'access', _31 => _31[colorIndex], 'optionalAccess', _32 => _32.styles, 'optionalAccess', _33 => _33.color]), () => ( _seedsreacttheme.theme.colors.DATAVIZ_COLORS_LIST[colorIndex])), () => ( "")),
876
+ ..._optionalChain([data, 'access', _34 => _34[colorIndex], 'optionalAccess', _35 => _35.icon]) ? { icon: _optionalChain([data, 'access', _36 => _36[colorIndex], 'optionalAccess', _37 => _37.icon]) } : {},
732
877
  name: context.key,
733
878
  percent: context.percentage,
734
879
  value: context.y
@@ -740,7 +885,7 @@ var transformDonutChartTooltipData = ({
740
885
 
741
886
  _accessibility2.default.call(void 0, _highcharts2.default);
742
887
  var StyledBox2 = _styledcomponents2.default.call(void 0, _seedsreactbox.Box)`
743
- ${_chunkVFBZ7FNKjs.donutChartStyles}
888
+ ${_chunkEEVKTTT3js.donutChartStyles}
744
889
  `;
745
890
  var DonutChart = _react.memo.call(void 0, function DonutChart2(props) {
746
891
  const { data } = props;
@@ -760,7 +905,7 @@ var DonutChartWithData = _react.memo.call(void 0,
760
905
  onClick,
761
906
  tooltipClickLabel
762
907
  }) {
763
- const [options, setOptions] = _react.useState.call(void 0, _chunkVFBZ7FNKjs.donutChartOptions);
908
+ const [options, setOptions] = _react.useState.call(void 0, donutChartOptions);
764
909
  const [chart, setChart] = _react.useState.call(void 0, null);
765
910
  const callback = _react.useCallback.call(void 0, (chartInstance) => {
766
911
  setChart(chartInstance);
@@ -777,15 +922,15 @@ var DonutChartWithData = _react.memo.call(void 0,
777
922
  chart: {
778
923
  events: {
779
924
  render: function() {
780
- 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);
925
+ const allSlices = _nullishCoalesce(_optionalChain([this, 'access', _38 => _38.series, 'access', _39 => _39[0], 'optionalAccess', _40 => _40.data]), () => ( []));
926
+ const tooltipId = _chunkEEVKTTT3js.generateChartTooltipPortalId.call(void 0, this.index);
782
927
  allSlices.forEach((slice) => {
783
- const sliceElement = _optionalChain([slice, 'optionalAccess', _40 => _40.graphic, 'optionalAccess', _41 => _41.element]);
784
- _optionalChain([sliceElement, 'optionalAccess', _42 => _42.setAttribute, 'call', _43 => _43("aria-describedby", tooltipId)]);
785
- _optionalChain([sliceElement, 'optionalAccess', _44 => _44.addEventListener, 'call', _45 => _45("focus", () => {
928
+ const sliceElement = _optionalChain([slice, 'optionalAccess', _41 => _41.graphic, 'optionalAccess', _42 => _42.element]);
929
+ _optionalChain([sliceElement, 'optionalAccess', _43 => _43.setAttribute, 'call', _44 => _44("aria-describedby", tooltipId)]);
930
+ _optionalChain([sliceElement, 'optionalAccess', _45 => _45.addEventListener, 'call', _46 => _46("focus", () => {
786
931
  slice.series.chart.tooltip.refresh(slice);
787
932
  })]);
788
- _optionalChain([sliceElement, 'optionalAccess', _46 => _46.addEventListener, 'call', _47 => _47("blur", () => {
933
+ _optionalChain([sliceElement, 'optionalAccess', _47 => _47.addEventListener, 'call', _48 => _48("blur", () => {
789
934
  slice.series.chart.tooltip.hide(0);
790
935
  })]);
791
936
  });
@@ -815,10 +960,10 @@ var DonutChartWithData = _react.memo.call(void 0,
815
960
  });
816
961
  }, [data]);
817
962
  const colors = data.map(
818
- (series, index) => _nullishCoalesce(_nullishCoalesce(_optionalChain([series, 'access', _48 => _48.styles, 'optionalAccess', _49 => _49.color]), () => ( _seedsreacttheme.theme.colors.DATAVIZ_COLORS_LIST[index])), () => ( ""))
963
+ (series, index) => _nullishCoalesce(_nullishCoalesce(_optionalChain([series, 'access', _49 => _49.styles, 'optionalAccess', _50 => _50.color]), () => ( _seedsreacttheme.theme.colors.DATAVIZ_COLORS_LIST[index])), () => ( ""))
819
964
  );
820
965
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
821
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVFBZ7FNKjs.GlobalChartStyleOverrides, {}),
966
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEEVKTTT3js.GlobalChartStyleOverrides, {}),
822
967
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
823
968
  StyledBox2,
824
969
  {
@@ -835,7 +980,7 @@ var DonutChartWithData = _react.memo.call(void 0,
835
980
  }
836
981
  ),
837
982
  chart && !disableTooltips ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
838
- _chunkVFBZ7FNKjs.ChartTooltipPortal,
983
+ _chunkEEVKTTT3js.ChartTooltipPortal,
839
984
  {
840
985
  chart,
841
986
  renderContent: (context) => {
@@ -891,11 +1036,11 @@ var DonutChartLegendTable = _react.memo.call(void 0,
891
1036
  );
892
1037
  const rows = data.map((dataPoint, index) => {
893
1038
  const { name, icon, styles, value } = dataPoint;
894
- const color = _optionalChain([styles, 'optionalAccess', _50 => _50.color]) || _seedsreacttheme.theme.colors.DATAVIZ_COLORS_LIST[index];
1039
+ const color = _optionalChain([styles, 'optionalAccess', _51 => _51.color]) || _seedsreacttheme.theme.colors.DATAVIZ_COLORS_LIST[index];
895
1040
  return {
896
1041
  cells: [
897
1042
  {
898
- content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVFBZ7FNKjs.ChartLegendLabel, { color, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVFBZ7FNKjs.ChartLegendLabelContentWithIcon, { icon, children: name }) })
1043
+ content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEEVKTTT3js.ChartLegendLabel, { color, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEEVKTTT3js.ChartLegendLabelContentWithIcon, { icon, children: name }) })
899
1044
  },
900
1045
  {
901
1046
  content: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _seedsreactbox.Box, { display: "inline-flex", alignItems: "center", gap: 350, children: [
@@ -948,7 +1093,7 @@ var DonutChartLegendTable = _react.memo.call(void 0,
948
1093
  }
949
1094
  ];
950
1095
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
951
- _chunkVFBZ7FNKjs.ChartTable,
1096
+ _chunkEEVKTTT3js.ChartTable,
952
1097
  {
953
1098
  rows: [...rows, ...totalRow]
954
1099
  }
@@ -973,13 +1118,13 @@ var getLineChartLegendLabels = ({
973
1118
  data
974
1119
  }) => {
975
1120
  return data.map((series, index) => ({
976
- content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVFBZ7FNKjs.ChartLegendLabelContentWithIcon, { icon: series.icon, children: series.name }),
977
- color: _optionalChain([series, 'access', _51 => _51.styles, 'optionalAccess', _52 => _52.color]) || _seedsreacttheme.theme.colors.DATAVIZ_COLORS_LIST[index]
1121
+ content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEEVKTTT3js.ChartLegendLabelContentWithIcon, { icon: series.icon, children: series.name }),
1122
+ color: _optionalChain([series, 'access', _52 => _52.styles, 'optionalAccess', _53 => _53.color]) || _seedsreacttheme.theme.colors.DATAVIZ_COLORS_LIST[index]
978
1123
  }));
979
1124
  };
980
1125
  var LineChartLegend = _react.memo.call(void 0,
981
1126
  function LineChartLegend2({ data }) {
982
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVFBZ7FNKjs.ChartLegend, { legendLabels: getLineChartLegendLabels({ data }) });
1127
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEEVKTTT3js.ChartLegend, { legendLabels: getLineChartLegendLabels({ data }) });
983
1128
  }
984
1129
  );
985
1130
 
@@ -1010,7 +1155,7 @@ var LineChartTooltip = _react.memo.call(void 0,
1010
1155
  return {
1011
1156
  cells: [
1012
1157
  {
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 }) }) })
1158
+ 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
1159
  },
1015
1160
  {
1016
1161
  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 +1173,11 @@ var LineChartTooltip = _react.memo.call(void 0,
1028
1173
  ]
1029
1174
  };
1030
1175
  });
1031
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkVFBZ7FNKjs.ChartTooltip, { children: [
1176
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEEVKTTT3js.ChartTooltip, { children: [
1032
1177
  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: [
1178
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEEVKTTT3js.ChartTooltipTitle, { children: tooltipDateFormatter({ x }) }),
1179
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEEVKTTT3js.ChartTooltipTable, { rows }),
1180
+ 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
1181
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacticon.Icon, { name: "hand-pointer-clicking-outline", color: "icon.base" }),
1037
1182
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacttext.Text, { color: "text.subtext", fontSize: 200, children: tooltipClickLabel })
1038
1183
  ] }) : tooltipClickLabel }) : null
@@ -1046,7 +1191,7 @@ var LineChartTooltip = _react.memo.call(void 0,
1046
1191
  _accessibility2.default.call(void 0, _highcharts2.default);
1047
1192
  _annotations2.default.call(void 0, _highcharts2.default);
1048
1193
  var StyledBox3 = _styledcomponents2.default.call(void 0, _seedsreactbox.Box)`
1049
- ${_chunkVFBZ7FNKjs.lineChartStyles}
1194
+ ${_chunkEEVKTTT3js.lineChartStyles}
1050
1195
  `;
1051
1196
  var LineChart = _react.memo.call(void 0, function LineChart2(props) {
1052
1197
  const { data } = props;
@@ -1089,9 +1234,9 @@ var LineChartWithData = _react.memo.call(void 0, function LineChartWithData2({
1089
1234
  const { colors, patterns } = data.reduce(
1090
1235
  (acc, item, index) => {
1091
1236
  acc.colors.push(
1092
- _nullishCoalesce(_nullishCoalesce(_optionalChain([item, 'access', _53 => _53.styles, 'optionalAccess', _54 => _54.color]), () => ( _seedsreacttheme.theme.colors.DATAVIZ_COLORS_LIST[index])), () => ( ""))
1237
+ _nullishCoalesce(_nullishCoalesce(_optionalChain([item, 'access', _54 => _54.styles, 'optionalAccess', _55 => _55.color]), () => ( _seedsreacttheme.theme.colors.DATAVIZ_COLORS_LIST[index])), () => ( ""))
1093
1238
  );
1094
- acc.patterns.push(_nullishCoalesce(_optionalChain([item, 'access', _55 => _55.styles, 'optionalAccess', _56 => _56.pattern]), () => ( "solid")));
1239
+ acc.patterns.push(_nullishCoalesce(_optionalChain([item, 'access', _56 => _56.styles, 'optionalAccess', _57 => _57.pattern]), () => ( "solid")));
1095
1240
  return acc;
1096
1241
  },
1097
1242
  {
@@ -1100,7 +1245,7 @@ var LineChartWithData = _react.memo.call(void 0, function LineChartWithData2({
1100
1245
  }
1101
1246
  );
1102
1247
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
1103
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVFBZ7FNKjs.GlobalChartStyleOverrides, {}),
1248
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEEVKTTT3js.GlobalChartStyleOverrides, {}),
1104
1249
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
1105
1250
  StyledBox3,
1106
1251
  {
@@ -1117,25 +1262,25 @@ var LineChartWithData = _react.memo.call(void 0, function LineChartWithData2({
1117
1262
  callback
1118
1263
  }
1119
1264
  ),
1120
- chart && _optionalChain([chart, 'access', _57 => _57.annotations, 'optionalAccess', _58 => _58.length]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1265
+ chart && _optionalChain([chart, 'access', _58 => _58.annotations, 'optionalAccess', _59 => _59.length]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1121
1266
  ChartXAnnotationMarkerPortal,
1122
1267
  {
1123
1268
  xAnnotations,
1124
- annotationContext: _optionalChain([chart, 'access', _59 => _59.annotations, 'optionalAccess', _60 => _60[0]]),
1269
+ annotationContext: _optionalChain([chart, 'access', _60 => _60.annotations, 'optionalAccess', _61 => _61[0]]),
1125
1270
  chartContainer: chart.container
1126
1271
  }
1127
1272
  ) : null,
1128
1273
  chart && !disableTooltips ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1129
- _chunkVFBZ7FNKjs.ChartTooltipPortal,
1274
+ _chunkEEVKTTT3js.ChartTooltipPortal,
1130
1275
  {
1131
1276
  chart,
1132
1277
  renderContent: (context) => {
1133
- const tooltipData = _chunkVFBZ7FNKjs.transformTimeSeriesTooltipData.call(void 0, {
1278
+ const tooltipData = _chunkEEVKTTT3js.transformTimeSeriesTooltipData.call(void 0, {
1134
1279
  context,
1135
1280
  data
1136
1281
  });
1137
1282
  const x = context.x;
1138
- const xAnnotationDetails = _optionalChain([xAnnotations, 'optionalAccess', _61 => _61[x], 'optionalAccess', _62 => _62.details]);
1283
+ const xAnnotationDetails = _optionalChain([xAnnotations, 'optionalAccess', _62 => _62[x], 'optionalAccess', _63 => _63.details]);
1139
1284
  return tooltip ? tooltip({ data: tooltipData, x }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1140
1285
  LineChartTooltip,
1141
1286
  {
@@ -1179,13 +1324,13 @@ var getVerticalBarChartLegendLabels = ({
1179
1324
  data
1180
1325
  }) => {
1181
1326
  return data.map((series, index) => ({
1182
- content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVFBZ7FNKjs.ChartLegendLabelContentWithIcon, { icon: series.icon, children: series.name }),
1183
- color: _optionalChain([series, 'access', _63 => _63.styles, 'optionalAccess', _64 => _64.color]) || _seedsreacttheme.theme.colors.DATAVIZ_COLORS_LIST[index]
1327
+ content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEEVKTTT3js.ChartLegendLabelContentWithIcon, { icon: series.icon, children: series.name }),
1328
+ color: _optionalChain([series, 'access', _64 => _64.styles, 'optionalAccess', _65 => _65.color]) || _seedsreacttheme.theme.colors.DATAVIZ_COLORS_LIST[index]
1184
1329
  }));
1185
1330
  };
1186
1331
  var VerticalBarChartLegend = _react.memo.call(void 0,
1187
1332
  function VerticalbarChartLegend({ data }) {
1188
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVFBZ7FNKjs.ChartLegend, { legendLabels: getVerticalBarChartLegendLabels({ data }) });
1333
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEEVKTTT3js.ChartLegend, { legendLabels: getVerticalBarChartLegendLabels({ data }) });
1189
1334
  }
1190
1335
  );
1191
1336
 
@@ -1216,7 +1361,7 @@ var VerticalBarChartTooltip = _react.memo.call(void 0,
1216
1361
  return {
1217
1362
  cells: [
1218
1363
  {
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 }) }) })
1364
+ 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
1365
  },
1221
1366
  {
1222
1367
  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 +1379,11 @@ var VerticalBarChartTooltip = _react.memo.call(void 0,
1234
1379
  ]
1235
1380
  };
1236
1381
  });
1237
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkVFBZ7FNKjs.ChartTooltip, { children: [
1382
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEEVKTTT3js.ChartTooltip, { children: [
1238
1383
  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: [
1384
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEEVKTTT3js.ChartTooltipTitle, { children: tooltipDateFormatter({ x }) }),
1385
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEEVKTTT3js.ChartTooltipTable, { rows }),
1386
+ 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
1387
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacticon.Icon, { name: "hand-pointer-clicking-outline", color: "icon.base" }),
1243
1388
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _seedsreacttext.Text, { color: "text.subtext", fontSize: 200, children: tooltipClickLabel })
1244
1389
  ] }) : tooltipClickLabel }) : null
@@ -1249,15 +1394,36 @@ var VerticalBarChartTooltip = _react.memo.call(void 0,
1249
1394
  // src/components/VerticalBarChart/VerticalBarChart.tsx
1250
1395
 
1251
1396
 
1397
+ // src/components/VerticalBarChart/styles.ts
1398
+
1399
+ var verticalBarChartStyles = _styledcomponents.css`
1400
+ ${_chunkEEVKTTT3js.timeSeriesChartStyles}
1401
+
1402
+ /*
1403
+ When the chart container is hovered, reduce the opacity of all columns.
1404
+ Then, for the column that is being hovered, restore its opacity.
1405
+ This gives the effect of fading out the non-hovered columns.
1406
+ */
1407
+ .highcharts-container:hover .highcharts-point {
1408
+ fill-opacity: 0.3;
1409
+ }
1410
+
1411
+ .highcharts-point.column-hover {
1412
+ fill-opacity: 1 !important;
1413
+ }
1414
+ `;
1415
+
1416
+ // src/components/VerticalBarChart/VerticalBarChart.tsx
1417
+
1252
1418
  _accessibility2.default.call(void 0, _highcharts2.default);
1253
1419
  _annotations2.default.call(void 0, _highcharts2.default);
1254
1420
  var StyledBox4 = _styledcomponents2.default.call(void 0, _seedsreactbox.Box)`
1255
- ${_chunkVFBZ7FNKjs.verticalBarChartStyles}
1421
+ ${verticalBarChartStyles}
1256
1422
  `;
1257
1423
  var VerticalBarChart = _react.memo.call(void 0,
1258
1424
  function VerticalBarChart2(props) {
1259
1425
  const { data, showSeriesLimitWarning = true } = props;
1260
- const seriesLimit = _nullishCoalesce(props.seriesLimit, () => ( _chunkVFBZ7FNKjs.VERTICAL_BAR_CHART_DEFAULT_SERIES_LIMIT));
1426
+ const seriesLimit = _nullishCoalesce(props.seriesLimit, () => ( VERTICAL_BAR_CHART_DEFAULT_SERIES_LIMIT));
1261
1427
  const isSeriesLimitOverridden = props.seriesLimit !== void 0;
1262
1428
  if (data.length === 0) {
1263
1429
  return null;
@@ -1292,7 +1458,7 @@ var VerticalBarChartWithData = _react.memo.call(void 0,
1292
1458
  xAnnotations,
1293
1459
  xAxisLabelFormatter: xAxisLabelFormatter2
1294
1460
  }) {
1295
- const shouldUseTimeFormatter = _chunkVFBZ7FNKjs.isHourlyTimeData.call(void 0, data) || _chunkVFBZ7FNKjs.isCategoricalHourData.call(void 0, data);
1461
+ const shouldUseTimeFormatter = _chunkEEVKTTT3js.isHourlyTimeData.call(void 0, data) || _chunkEEVKTTT3js.isCategoricalHourData.call(void 0, data);
1296
1462
  const autoTimeXAxisLabelFormatter = ({
1297
1463
  value,
1298
1464
  timeFormat: timeFormat2
@@ -1348,9 +1514,9 @@ var VerticalBarChartWithData = _react.memo.call(void 0,
1348
1514
  const { colors, patterns } = data.reduce(
1349
1515
  (acc, item, index) => {
1350
1516
  acc.colors.push(
1351
- _nullishCoalesce(_nullishCoalesce(_optionalChain([item, 'access', _65 => _65.styles, 'optionalAccess', _66 => _66.color]), () => ( _seedsreacttheme.theme.colors.DATAVIZ_COLORS_LIST[index])), () => ( ""))
1517
+ _nullishCoalesce(_nullishCoalesce(_optionalChain([item, 'access', _66 => _66.styles, 'optionalAccess', _67 => _67.color]), () => ( _seedsreacttheme.theme.colors.DATAVIZ_COLORS_LIST[index])), () => ( ""))
1352
1518
  );
1353
- acc.patterns.push(_nullishCoalesce(_optionalChain([item, 'access', _67 => _67.styles, 'optionalAccess', _68 => _68.pattern]), () => ( "solid")));
1519
+ acc.patterns.push(_nullishCoalesce(_optionalChain([item, 'access', _68 => _68.styles, 'optionalAccess', _69 => _69.pattern]), () => ( "solid")));
1354
1520
  return acc;
1355
1521
  },
1356
1522
  {
@@ -1359,7 +1525,7 @@ var VerticalBarChartWithData = _react.memo.call(void 0,
1359
1525
  }
1360
1526
  );
1361
1527
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
1362
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVFBZ7FNKjs.GlobalChartStyleOverrides, {}),
1528
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEEVKTTT3js.GlobalChartStyleOverrides, {}),
1363
1529
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
1364
1530
  StyledBox4,
1365
1531
  {
@@ -1375,25 +1541,25 @@ var VerticalBarChartWithData = _react.memo.call(void 0,
1375
1541
  callback
1376
1542
  }
1377
1543
  ),
1378
- chart && _optionalChain([chart, 'access', _69 => _69.annotations, 'optionalAccess', _70 => _70.length]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1544
+ chart && _optionalChain([chart, 'access', _70 => _70.annotations, 'optionalAccess', _71 => _71.length]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1379
1545
  ChartXAnnotationMarkerPortal,
1380
1546
  {
1381
1547
  xAnnotations,
1382
- annotationContext: _optionalChain([chart, 'access', _71 => _71.annotations, 'optionalAccess', _72 => _72[0]]),
1548
+ annotationContext: _optionalChain([chart, 'access', _72 => _72.annotations, 'optionalAccess', _73 => _73[0]]),
1383
1549
  chartContainer: chart.container
1384
1550
  }
1385
1551
  ) : null,
1386
1552
  chart ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1387
- _chunkVFBZ7FNKjs.ChartTooltipPortal,
1553
+ _chunkEEVKTTT3js.ChartTooltipPortal,
1388
1554
  {
1389
1555
  chart,
1390
1556
  renderContent: (context) => {
1391
- const tooltipData = _chunkVFBZ7FNKjs.transformTimeSeriesTooltipData.call(void 0, {
1557
+ const tooltipData = _chunkEEVKTTT3js.transformTimeSeriesTooltipData.call(void 0, {
1392
1558
  context,
1393
1559
  data
1394
1560
  });
1395
1561
  const x = context.x;
1396
- const xAnnotationDetails = typeof x === "number" ? _optionalChain([xAnnotations, 'optionalAccess', _73 => _73[x], 'optionalAccess', _74 => _74.details]) : void 0;
1562
+ const xAnnotationDetails = typeof x === "number" ? _optionalChain([xAnnotations, 'optionalAccess', _74 => _74[x], 'optionalAccess', _75 => _75.details]) : void 0;
1397
1563
  return tooltip ? tooltip({ data: tooltipData, x }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1398
1564
  VerticalBarChartTooltip,
1399
1565
  {
@@ -1469,5 +1635,5 @@ var VerticalBarChartWithData = _react.memo.call(void 0,
1469
1635
 
1470
1636
 
1471
1637
 
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;
1638
+ 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 = DONUT_CHART_HALO_SIZE; exports.DONUT_CHART_HEIGHT = DONUT_CHART_HEIGHT; exports.DONUT_CHART_WIDTH = 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 = TIME_SERIES_CHART_HEIGHT; exports.VERTICAL_BAR_CHART_DEFAULT_SERIES_LIMIT = VERTICAL_BAR_CHART_DEFAULT_SERIES_LIMIT; exports.VerticalBarChart = VerticalBarChart; exports.areaChartOptions = areaChartOptions; exports.areaChartStyles = _chunkEEVKTTT3js.areaChartStyles; exports.baseChartOptions = baseChartOptions; exports.baseChartStyles = _chunkEEVKTTT3js.baseChartStyles; exports.columnChartOptions = columnChartOptions; exports.donutChartOptions = 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 = lineChartOptions; exports.lineChartStyles = _chunkEEVKTTT3js.lineChartStyles; exports.timeSeriesChartOptions = timeSeriesChartOptions; exports.timeSeriesChartStyles = _chunkEEVKTTT3js.timeSeriesChartStyles; exports.transformDataToSeries = _chunkEEVKTTT3js.transformDataToSeries; exports.transformTimeSeriesTooltipData = _chunkEEVKTTT3js.transformTimeSeriesTooltipData; exports.xAxisLabelFormatter = _chunkEEVKTTT3js.xAxisLabelFormatter; exports.yAxisLabelFormatter = _chunkEEVKTTT3js.yAxisLabelFormatter;
1473
1639
  //# sourceMappingURL=index.js.map