@sproutsocial/seeds-react-data-viz 0.1.0 → 0.1.1

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
@@ -5,6 +5,9 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __getProtoOf = Object.getPrototypeOf;
7
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __commonJS = (cb, mod) => function __require() {
9
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
10
+ };
8
11
  var __export = (target, all) => {
9
12
  for (var name in all)
10
13
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -27,15 +30,96 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
27
30
  ));
28
31
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
32
 
33
+ // ../../node_modules/object-assign/index.js
34
+ var require_object_assign = __commonJS({
35
+ "../../node_modules/object-assign/index.js"(exports, module2) {
36
+ "use strict";
37
+ var getOwnPropertySymbols = Object.getOwnPropertySymbols;
38
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
39
+ var propIsEnumerable = Object.prototype.propertyIsEnumerable;
40
+ function toObject(val) {
41
+ if (val === null || val === void 0) {
42
+ throw new TypeError("Object.assign cannot be called with null or undefined");
43
+ }
44
+ return Object(val);
45
+ }
46
+ function shouldUseNative() {
47
+ try {
48
+ if (!Object.assign) {
49
+ return false;
50
+ }
51
+ var test1 = new String("abc");
52
+ test1[5] = "de";
53
+ if (Object.getOwnPropertyNames(test1)[0] === "5") {
54
+ return false;
55
+ }
56
+ var test2 = {};
57
+ for (var i = 0; i < 10; i++) {
58
+ test2["_" + String.fromCharCode(i)] = i;
59
+ }
60
+ var order2 = Object.getOwnPropertyNames(test2).map(function(n2) {
61
+ return test2[n2];
62
+ });
63
+ if (order2.join("") !== "0123456789") {
64
+ return false;
65
+ }
66
+ var test3 = {};
67
+ "abcdefghijklmnopqrst".split("").forEach(function(letter) {
68
+ test3[letter] = letter;
69
+ });
70
+ if (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") {
71
+ return false;
72
+ }
73
+ return true;
74
+ } catch (err) {
75
+ return false;
76
+ }
77
+ }
78
+ module2.exports = shouldUseNative() ? Object.assign : function(target, source) {
79
+ var from;
80
+ var to = toObject(target);
81
+ var symbols;
82
+ for (var s = 1; s < arguments.length; s++) {
83
+ from = Object(arguments[s]);
84
+ for (var key in from) {
85
+ if (hasOwnProperty.call(from, key)) {
86
+ to[key] = from[key];
87
+ }
88
+ }
89
+ if (getOwnPropertySymbols) {
90
+ symbols = getOwnPropertySymbols(from);
91
+ for (var i = 0; i < symbols.length; i++) {
92
+ if (propIsEnumerable.call(from, symbols[i])) {
93
+ to[symbols[i]] = from[symbols[i]];
94
+ }
95
+ }
96
+ }
97
+ }
98
+ return to;
99
+ };
100
+ }
101
+ });
102
+
30
103
  // src/index.ts
31
104
  var src_exports = {};
32
105
  __export(src_exports, {
106
+ AreaChart: () => AreaChart,
107
+ ChartLegend: () => ChartLegend,
108
+ ChartLegendLabel: () => ChartLegendLabel,
33
109
  ChartTable: () => ChartTable,
110
+ ChartTooltip: () => ChartTooltip,
111
+ ChartTooltipFooter: () => ChartTooltipFooter,
112
+ ChartTooltipHeader: () => ChartTooltipHeader,
113
+ ChartTooltipTable: () => ChartTooltipTable,
114
+ ChartTooltipTitle: () => ChartTooltipTitle,
34
115
  ColorBox: () => ColorBox,
35
116
  DONUT_CHART_HALO_SIZE: () => DONUT_CHART_HALO_SIZE,
36
117
  DONUT_CHART_HEIGHT: () => DONUT_CHART_HEIGHT,
37
118
  DONUT_CHART_WIDTH: () => DONUT_CHART_WIDTH,
38
119
  DatavizColorBox: () => DatavizColorBox,
120
+ DonutChart: () => DonutChart,
121
+ DonutChartLegendTable: () => DonutChartLegendTable,
122
+ LineChart: () => LineChart,
39
123
  NetworkColorBox: () => NetworkColorBox,
40
124
  TIME_SERIES_CHART_HEIGHT: () => TIME_SERIES_CHART_HEIGHT,
41
125
  areaChartOptions: () => areaChartOptions,
@@ -52,14 +136,16 @@ __export(src_exports, {
52
136
  });
53
137
  module.exports = __toCommonJS(src_exports);
54
138
 
55
- // src/components/ChartTable/ChartTable.tsx
56
- var import_react4 = require("react");
57
- var import_styled_components3 = __toESM(require("styled-components"));
139
+ // src/components/AreaChart/AreaChart.tsx
140
+ var import_react22 = require("react");
141
+ var import_highcharts2 = __toESM(require("highcharts"));
142
+ var import_highcharts_react_official = require("highcharts-react-official");
143
+ var import_accessibility = __toESM(require("highcharts/modules/accessibility"));
144
+ var import_styled_components15 = __toESM(require("styled-components"));
58
145
 
59
- // ../seeds-react-text/dist/esm/index.js
60
- var import_react2 = require("react");
146
+ // ../seeds-react-box/dist/esm/index.js
147
+ var React = __toESM(require("react"));
61
148
  var import_styled_components = __toESM(require("styled-components"));
62
- var import_styled_components2 = __toESM(require("styled-components"));
63
149
 
64
150
  // ../seeds-react-system-props/dist/index.mjs
65
151
  var import_react = require("react");
@@ -499,181 +585,9 @@ var De = y(l({ cursor: true, whiteSpace: true }));
499
585
  var Ve = y(L({ key: "typography", prop: "typeScale" }));
500
586
  var mo = y(De, Ve, V, I, A, D, G, E, H, $, N, M);
501
587
 
502
- // ../seeds-react-text/dist/esm/index.js
503
- var import_jsx_runtime = require("react/jsx-runtime");
504
- var import_react3 = require("react");
505
- var Container = import_styled_components2.default.span`
506
- margin: 0;
507
- padding-left: 0;
508
- padding-right: 0;
509
- font-family: ${(props) => props.theme.fontFamily};
510
- font-style: ${(props) => {
511
- return props.isItalicized && "italic";
512
- }};
513
-
514
- ${(props) => props.truncated && import_styled_components2.css`
515
- display: block;
516
- overflow: hidden;
517
- white-space: nowrap;
518
- text-overflow: ellipsis;
519
- `}
520
-
521
- ${(props) => props.breakWord && import_styled_components2.css`
522
- word-break: break-word;
523
- hyphens: auto;
524
- `}
525
-
526
- ${ke}
527
- ${Fe}
528
- ${Ee}
529
- ${Me}
530
- ${Ne}
531
- `;
532
- var styles_default = Container;
533
- var Headline = (0, import_styled_components.default)(styles_default)`
534
- color: ${(props) => props.theme.colors.text.headline};
535
- font-weight: ${(props) => props.theme.fontWeights.bold};
536
- ${(props) => props.theme.typography[400]}
537
- `;
538
- var SubHeadline = (0, import_styled_components.default)(styles_default)`
539
- color: ${(props) => props.theme.colors.text.headline};
540
- font-weight: ${(props) => props.theme.fontWeights.bold};
541
- ${(props) => props.theme.typography[300]}
542
- `;
543
- var SmallSubHeadline = (0, import_styled_components.default)(styles_default)`
544
- color: ${(props) => props.theme.colors.text.headline};
545
- font-weight: ${(props) => props.theme.fontWeights.bold};
546
- ${(props) => props.theme.typography[200]}
547
- `;
548
- var Byline = (0, import_styled_components.default)(styles_default)`
549
- color: ${(props) => props.theme.colors.text.subtext};
550
- ${(props) => props.theme.typography[200]}
551
- `;
552
- var SmallByline = (0, import_styled_components.default)(styles_default)`
553
- color: ${(props) => props.theme.colors.text.subtext};
554
- ${(props) => props.theme.typography[100]}
555
- `;
556
- var BodyCopy = (0, import_styled_components.default)(styles_default)`
557
- color: ${(props) => props.theme.colors.text.body};
558
- ${(props) => props.theme.typography[300]}
559
- `;
560
- var SmallBodyCopy = (0, import_styled_components.default)(styles_default)`
561
- color: ${(props) => props.theme.colors.text.body};
562
- ${(props) => props.theme.typography[200]}
563
- `;
564
- var Text = ({ fontSize, children, qa, color, ...rest }) => {
565
- const qaText = typeof children === "string" ? children : void 0;
566
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
567
- styles_default,
568
- {
569
- typeScale: fontSize,
570
- "data-qa-text": qaText,
571
- color,
572
- ...qa,
573
- ...rest,
574
- children
575
- }
576
- );
577
- };
578
- var withTextLogic = (Component) => {
579
- return ({ children, ...props }) => {
580
- const qaText = typeof children === "string" ? children : void 0;
581
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, { "data-qa-text": qaText, ...props, children });
582
- };
583
- };
584
- var HeadlineWithLogic = withTextLogic(Headline);
585
- HeadlineWithLogic.displayName = "Text.Headline";
586
- Text.Headline = HeadlineWithLogic;
587
- var SubHeadlineWithLogic = withTextLogic(SubHeadline);
588
- SubHeadlineWithLogic.displayName = "Text.SubHeadline";
589
- Text.SubHeadline = SubHeadlineWithLogic;
590
- var SmallSubHeadlineWithLogic = withTextLogic(SmallSubHeadline);
591
- SmallSubHeadlineWithLogic.displayName = "Text.SmallSubHeadline";
592
- Text.SmallSubHeadline = SmallSubHeadlineWithLogic;
593
- var BylineWithLogic = withTextLogic(Byline);
594
- BylineWithLogic.displayName = "Text.Byline";
595
- Text.Byline = BylineWithLogic;
596
- var SmallBylineWithLogic = withTextLogic(SmallByline);
597
- SmallBylineWithLogic.displayName = "Text.SmallByline";
598
- Text.SmallByline = SmallBylineWithLogic;
599
- var BodyCopyWithLogic = withTextLogic(BodyCopy);
600
- BodyCopyWithLogic.displayName = "Text.BodyCopy";
601
- Text.BodyCopy = BodyCopyWithLogic;
602
- var SmallBodyCopyWithLogic = withTextLogic(SmallBodyCopy);
603
- SmallBodyCopyWithLogic.displayName = "Text.SmallBodyCopy";
604
- Text.SmallBodyCopy = SmallBodyCopyWithLogic;
605
- var Text_default = Text;
606
-
607
- // src/components/ChartTable/ChartTable.tsx
608
- var import_racine = require("@sproutsocial/racine");
609
- var import_jsx_runtime2 = require("react/jsx-runtime");
610
- var StyledRacineTable = (0, import_styled_components3.default)(import_racine.Table)`
611
- tbody tr:last-child {
612
- border-bottom: none;
613
- }
614
- tr:last-child td,
615
- tr:last-child th {
616
- padding-bottom: 0;
617
- }
618
- tr:first-child td,
619
- tr:first-child th {
620
- padding-top: 0;
621
- }
622
- tr th {
623
- padding-left: 0;
624
- }
625
- tr td:last-child {
626
- padding-right: 0;
627
- }
628
- `;
629
- var StyledRacineTableRow = (0, import_styled_components3.default)(import_racine.Table.TableRow)`
630
- ${({ $isAppendedRow, theme: theme2 }) => $isAppendedRow ? `border-top: 2px solid ${theme2.colors.container.border.base}` : ""}
631
- `;
632
- var ChartTable = (0, import_react4.memo)(function ChartTable2({
633
- rows
634
- }) {
635
- if (!rows || rows.length === 0) {
636
- return null;
637
- }
638
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(StyledRacineTable, { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_racine.Table.TableBody, { children: rows.map(({ cells, isAppendedRow }, rowIndex) => {
639
- if (!cells || cells.length === 0) {
640
- return null;
641
- }
642
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
643
- StyledRacineTableRow,
644
- {
645
- $isAppendedRow: isAppendedRow,
646
- children: cells.map(
647
- ({ content, align = "left", colSpan = 1 }, cellIndex) => {
648
- const uniqueIdentifier = `chart-tooltip-table-cell-${cellIndex}`;
649
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
650
- import_racine.Table.Cell,
651
- {
652
- id: uniqueIdentifier,
653
- scope: cellIndex === 0 ? "row" : void 0,
654
- align,
655
- colSpan,
656
- py: 200,
657
- children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Text_default.SmallBodyCopy, { as: "div", children: content })
658
- },
659
- uniqueIdentifier
660
- );
661
- }
662
- )
663
- },
664
- `chart-tooltip-table-row-${rowIndex}`
665
- );
666
- }) }) });
667
- });
668
-
669
- // src/components/ColorBox/ColorBox.tsx
670
- var import_styled_components6 = require("styled-components");
671
-
672
588
  // ../seeds-react-box/dist/esm/index.js
673
- var React = __toESM(require("react"));
674
- var import_styled_components4 = __toESM(require("styled-components"));
675
- var import_jsx_runtime3 = require("react/jsx-runtime");
676
- var Container2 = import_styled_components4.default.div`
589
+ var import_jsx_runtime = require("react/jsx-runtime");
590
+ var Container = import_styled_components.default.div`
677
591
  box-sizing: border-box;
678
592
  font-family: ${({ theme: theme2 }) => theme2.fontFamily};
679
593
 
@@ -684,25 +598,25 @@ var Container2 = import_styled_components4.default.div`
684
598
  ${Ee}
685
599
  ${Me}
686
600
  `;
687
- var styles_default2 = Container2;
601
+ var styles_default = Container;
688
602
  var Box = React.forwardRef(
689
- ({ color, ...props }, ref) => {
690
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
691
- styles_default2,
603
+ ({ color: color2, ...props }, ref) => {
604
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
605
+ styles_default,
692
606
  {
693
607
  ...props,
694
608
  ref,
695
- color
609
+ color: color2
696
610
  }
697
611
  );
698
612
  }
699
613
  );
700
614
  Box.displayName = "Box";
701
615
  var Box_default = Box;
616
+ var src_default = Box_default;
702
617
 
703
- // ../seeds-react-theme-provider/dist/index.mjs
704
- var import_react5 = require("react");
705
- var import_styled_components5 = require("styled-components");
618
+ // src/components/AreaChart/components/AreaChartLegend.tsx
619
+ var import_react8 = require("react");
706
620
 
707
621
  // ../../node_modules/@babel/runtime/helpers/esm/extends.js
708
622
  function _extends() {
@@ -922,8 +836,8 @@ var PolishedError = /* @__PURE__ */ function(_Error) {
922
836
  }
923
837
  return PolishedError2;
924
838
  }(/* @__PURE__ */ _wrapNativeSuper(Error));
925
- function colorToInt(color) {
926
- return Math.round(color * 255);
839
+ function colorToInt(color2) {
840
+ return Math.round(color2 * 255);
927
841
  }
928
842
  function convertToInt(red3, green3, blue3) {
929
843
  return colorToInt(red3) + "," + colorToInt(green3) + "," + colorToInt(blue3);
@@ -1116,11 +1030,11 @@ var namedColorMap = {
1116
1030
  yellow: "ff0",
1117
1031
  yellowgreen: "9acd32"
1118
1032
  };
1119
- function nameToHex(color) {
1120
- if (typeof color !== "string")
1121
- return color;
1122
- var normalizedColorName = color.toLowerCase();
1123
- return namedColorMap[normalizedColorName] ? "#" + namedColorMap[normalizedColorName] : color;
1033
+ function nameToHex(color2) {
1034
+ if (typeof color2 !== "string")
1035
+ return color2;
1036
+ var normalizedColorName = color2.toLowerCase();
1037
+ return namedColorMap[normalizedColorName] ? "#" + namedColorMap[normalizedColorName] : color2;
1124
1038
  }
1125
1039
  var hexRegex = /^#[a-fA-F0-9]{6}$/;
1126
1040
  var hexRgbaRegex = /^#[a-fA-F0-9]{8}$/;
@@ -1130,11 +1044,11 @@ var rgbRegex = /^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i;
1130
1044
  var rgbaRegex = /^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i;
1131
1045
  var hslRegex = /^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i;
1132
1046
  var hslaRegex = /^hsla\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i;
1133
- function parseToRgb(color) {
1134
- if (typeof color !== "string") {
1047
+ function parseToRgb(color2) {
1048
+ if (typeof color2 !== "string") {
1135
1049
  throw new PolishedError(3);
1136
1050
  }
1137
- var normalizedColor = nameToHex(color);
1051
+ var normalizedColor = nameToHex(color2);
1138
1052
  if (normalizedColor.match(hexRegex)) {
1139
1053
  return {
1140
1054
  red: parseInt("" + normalizedColor[1] + normalizedColor[2], 16),
@@ -1260,10 +1174,10 @@ function curry(f2) {
1260
1174
  function guard(lowerBoundary, upperBoundary, value) {
1261
1175
  return Math.max(lowerBoundary, Math.min(upperBoundary, value));
1262
1176
  }
1263
- function transparentize(amount, color) {
1264
- if (color === "transparent")
1265
- return color;
1266
- var parsedColor = parseToRgb(color);
1177
+ function transparentize(amount, color2) {
1178
+ if (color2 === "transparent")
1179
+ return color2;
1180
+ var parsedColor = parseToRgb(color2);
1267
1181
  var alpha = typeof parsedColor.alpha === "number" ? parsedColor.alpha : 1;
1268
1182
  var colorWithAlpha = _extends({}, parsedColor, {
1269
1183
  alpha: guard(0, 1, +(alpha * 100 - parseFloat(amount) * 100).toFixed(2) / 100)
@@ -3415,70 +3329,1933 @@ var darkTheme2 = _objectSpread4(_objectSpread4({}, theme_default2), {}, {
3415
3329
  })
3416
3330
  });
3417
3331
 
3418
- // ../seeds-react-theme-provider/dist/index.mjs
3419
- var import_jsx_runtime4 = require("react/jsx-runtime");
3332
+ // src/components/ChartLegend/ChartLegend.tsx
3333
+ var import_react6 = require("react");
3420
3334
 
3421
- // src/components/ColorBox/ColorBox.tsx
3422
- var import_jsx_runtime5 = require("react/jsx-runtime");
3423
- var ColorBox = ({
3424
- display = "inline-block",
3425
- height = "16px",
3426
- width = "16px",
3427
- minWidth = width,
3428
- borderRadius = "400",
3429
- ...props
3430
- }) => {
3431
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
3432
- Box_default,
3335
+ // src/components/ChartLegend/components/ChartLegendLabel.tsx
3336
+ var import_styled_components7 = __toESM(require("styled-components"));
3337
+ var import_react5 = require("react");
3338
+
3339
+ // ../seeds-react-text/dist/esm/index.js
3340
+ var import_react2 = require("react");
3341
+ var import_styled_components2 = __toESM(require("styled-components"));
3342
+ var import_styled_components3 = __toESM(require("styled-components"));
3343
+ var import_jsx_runtime2 = require("react/jsx-runtime");
3344
+ var import_react3 = require("react");
3345
+ var Container2 = import_styled_components3.default.span`
3346
+ margin: 0;
3347
+ padding-left: 0;
3348
+ padding-right: 0;
3349
+ font-family: ${(props) => props.theme.fontFamily};
3350
+ font-style: ${(props) => {
3351
+ return props.isItalicized && "italic";
3352
+ }};
3353
+
3354
+ ${(props) => props.truncated && import_styled_components3.css`
3355
+ display: block;
3356
+ overflow: hidden;
3357
+ white-space: nowrap;
3358
+ text-overflow: ellipsis;
3359
+ `}
3360
+
3361
+ ${(props) => props.breakWord && import_styled_components3.css`
3362
+ word-break: break-word;
3363
+ hyphens: auto;
3364
+ `}
3365
+
3366
+ ${ke}
3367
+ ${Fe}
3368
+ ${Ee}
3369
+ ${Me}
3370
+ ${Ne}
3371
+ `;
3372
+ var styles_default2 = Container2;
3373
+ var Headline = (0, import_styled_components2.default)(styles_default2)`
3374
+ color: ${(props) => props.theme.colors.text.headline};
3375
+ font-weight: ${(props) => props.theme.fontWeights.bold};
3376
+ ${(props) => props.theme.typography[400]}
3377
+ `;
3378
+ var SubHeadline = (0, import_styled_components2.default)(styles_default2)`
3379
+ color: ${(props) => props.theme.colors.text.headline};
3380
+ font-weight: ${(props) => props.theme.fontWeights.bold};
3381
+ ${(props) => props.theme.typography[300]}
3382
+ `;
3383
+ var SmallSubHeadline = (0, import_styled_components2.default)(styles_default2)`
3384
+ color: ${(props) => props.theme.colors.text.headline};
3385
+ font-weight: ${(props) => props.theme.fontWeights.bold};
3386
+ ${(props) => props.theme.typography[200]}
3387
+ `;
3388
+ var Byline = (0, import_styled_components2.default)(styles_default2)`
3389
+ color: ${(props) => props.theme.colors.text.subtext};
3390
+ ${(props) => props.theme.typography[200]}
3391
+ `;
3392
+ var SmallByline = (0, import_styled_components2.default)(styles_default2)`
3393
+ color: ${(props) => props.theme.colors.text.subtext};
3394
+ ${(props) => props.theme.typography[100]}
3395
+ `;
3396
+ var BodyCopy = (0, import_styled_components2.default)(styles_default2)`
3397
+ color: ${(props) => props.theme.colors.text.body};
3398
+ ${(props) => props.theme.typography[300]}
3399
+ `;
3400
+ var SmallBodyCopy = (0, import_styled_components2.default)(styles_default2)`
3401
+ color: ${(props) => props.theme.colors.text.body};
3402
+ ${(props) => props.theme.typography[200]}
3403
+ `;
3404
+ var Text = ({ fontSize: fontSize2, children, qa, color: color2, ...rest }) => {
3405
+ const qaText = typeof children === "string" ? children : void 0;
3406
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
3407
+ styles_default2,
3433
3408
  {
3434
- ...props,
3435
- display,
3436
- height,
3437
- width,
3438
- minWidth,
3439
- borderRadius,
3440
- css: import_styled_components6.css`
3441
- cursor: ${(props2) => props2?.onClick ? "pointer" : "default"};
3442
- `
3409
+ typeScale: fontSize2,
3410
+ "data-qa-text": qaText,
3411
+ color: color2,
3412
+ ...qa,
3413
+ ...rest,
3414
+ children
3443
3415
  }
3444
3416
  );
3445
3417
  };
3418
+ var withTextLogic = (Component) => {
3419
+ return ({ children, ...props }) => {
3420
+ const qaText = typeof children === "string" ? children : void 0;
3421
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Component, { "data-qa-text": qaText, ...props, children });
3422
+ };
3423
+ };
3424
+ var HeadlineWithLogic = withTextLogic(Headline);
3425
+ HeadlineWithLogic.displayName = "Text.Headline";
3426
+ Text.Headline = HeadlineWithLogic;
3427
+ var SubHeadlineWithLogic = withTextLogic(SubHeadline);
3428
+ SubHeadlineWithLogic.displayName = "Text.SubHeadline";
3429
+ Text.SubHeadline = SubHeadlineWithLogic;
3430
+ var SmallSubHeadlineWithLogic = withTextLogic(SmallSubHeadline);
3431
+ SmallSubHeadlineWithLogic.displayName = "Text.SmallSubHeadline";
3432
+ Text.SmallSubHeadline = SmallSubHeadlineWithLogic;
3433
+ var BylineWithLogic = withTextLogic(Byline);
3434
+ BylineWithLogic.displayName = "Text.Byline";
3435
+ Text.Byline = BylineWithLogic;
3436
+ var SmallBylineWithLogic = withTextLogic(SmallByline);
3437
+ SmallBylineWithLogic.displayName = "Text.SmallByline";
3438
+ Text.SmallByline = SmallBylineWithLogic;
3439
+ var BodyCopyWithLogic = withTextLogic(BodyCopy);
3440
+ BodyCopyWithLogic.displayName = "Text.BodyCopy";
3441
+ Text.BodyCopy = BodyCopyWithLogic;
3442
+ var SmallBodyCopyWithLogic = withTextLogic(SmallBodyCopy);
3443
+ SmallBodyCopyWithLogic.displayName = "Text.SmallBodyCopy";
3444
+ Text.SmallBodyCopy = SmallBodyCopyWithLogic;
3445
+ var Text_default = Text;
3446
+
3447
+ // src/components/ColorBox/ColorBox.tsx
3448
+ var import_styled_components5 = require("styled-components");
3449
+
3450
+ // ../seeds-react-theme-provider/dist/index.mjs
3451
+ var import_react4 = require("react");
3452
+ var import_styled_components4 = require("styled-components");
3453
+ var import_jsx_runtime3 = require("react/jsx-runtime");
3454
+
3455
+ // src/components/ColorBox/ColorBox.tsx
3456
+ var import_jsx_runtime4 = require("react/jsx-runtime");
3457
+ var ColorBox = ({
3458
+ display: display2 = "inline-block",
3459
+ height: height2 = "16px",
3460
+ width: width2 = "16px",
3461
+ minWidth: minWidth2 = width2,
3462
+ borderRadius: borderRadius2 = "400",
3463
+ ...props
3464
+ }) => {
3465
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
3466
+ Box_default,
3467
+ {
3468
+ ...props,
3469
+ display: display2,
3470
+ height: height2,
3471
+ width: width2,
3472
+ minWidth: minWidth2,
3473
+ borderRadius: borderRadius2,
3474
+ css: import_styled_components5.css`
3475
+ cursor: ${(props2) => props2?.onClick ? "pointer" : "default"};
3476
+ `
3477
+ }
3478
+ );
3479
+ };
3480
+
3481
+ // src/components/ColorBox/DatavizColorBox.tsx
3482
+ var import_styled_components6 = __toESM(require("styled-components"));
3483
+ var DatavizColorBox = (0, import_styled_components6.default)(ColorBox).attrs(
3484
+ ({ colorIndex }) => ({
3485
+ style: {
3486
+ background: getDatavizColor(colorIndex),
3487
+ opacity: getDatavizOpacity(colorIndex)
3488
+ }
3489
+ })
3490
+ )``;
3491
+ var getDatavizColor = (colorIndex) => theme_default.colors.DATAVIZ_COLORS_LIST[colorIndex % theme_default.colors.DATAVIZ_COLORS_LIST.length] || "";
3492
+ var getDatavizOpacity = (colorIndex) => {
3493
+ const opacitySteps = [1, 0.6, 0.4, 0.2];
3494
+ const opacityStep = Math.floor(colorIndex / theme_default.colors.DATAVIZ_COLORS_LIST.length) % opacitySteps.length;
3495
+ return opacitySteps[opacityStep];
3496
+ };
3497
+ var getDatavizColorWithAlpha = (colorIndex) => {
3498
+ const color2 = getDatavizColor(colorIndex);
3499
+ const opacity2 = getDatavizOpacity(colorIndex);
3500
+ if (opacity2 < 0 || opacity2 > 1) {
3501
+ return color2;
3502
+ }
3503
+ return `${color2}${Math.floor(opacity2 * 255).toString(16).padStart(2, "0")}`;
3504
+ };
3505
+
3506
+ // src/components/ColorBox/NetworkColorBox.tsx
3507
+ var import_seeds_networkcolor2 = __toESM(require("@sproutsocial/seeds-networkcolor"));
3508
+ var import_jsx_runtime5 = require("react/jsx-runtime");
3509
+ var NetworkColorBox = ({
3510
+ networkColor,
3511
+ ...props
3512
+ }) => {
3513
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(ColorBox, { ...props, bg: import_seeds_networkcolor2.default[networkColor] });
3514
+ };
3515
+
3516
+ // src/components/ChartLegend/components/ChartLegendLabel.tsx
3517
+ var import_jsx_runtime6 = require("react/jsx-runtime");
3518
+ var StyledBox = (0, import_styled_components7.default)(Box_default)`
3519
+ list-style: none;
3520
+ display: flex;
3521
+ align-items: center;
3522
+ gap: ${({ theme: theme2 }) => theme2.space[300]};
3523
+ `;
3524
+ var ChartLegendLabel = (0, import_react5.memo)(
3525
+ function ChartLegendLabel2({
3526
+ children,
3527
+ color: color2 = "#CCC",
3528
+ containerBoxProps = {}
3529
+ }) {
3530
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(StyledBox, { ...containerBoxProps, children: [
3531
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ColorBox, { bg: color2 }),
3532
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Text_default, { as: "div", fontSize: 200, color: "text.subtext", children })
3533
+ ] });
3534
+ }
3535
+ );
3536
+
3537
+ // src/components/ChartLegend/ChartLegend.tsx
3538
+ var import_jsx_runtime7 = require("react/jsx-runtime");
3539
+ var ChartLegend = (0, import_react6.memo)(function ChartLegend2({
3540
+ legendLabels,
3541
+ containerBoxProps = {},
3542
+ stacked = false
3543
+ }) {
3544
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
3545
+ Box_default,
3546
+ {
3547
+ as: "ul",
3548
+ "aria-hidden": "true",
3549
+ display: "flex",
3550
+ justifyContent: "center",
3551
+ flexDirection: stacked ? "column" : "row",
3552
+ flexWrap: "wrap",
3553
+ columnGap: 450,
3554
+ rowGap: 200,
3555
+ m: 0,
3556
+ p: 0,
3557
+ ...containerBoxProps,
3558
+ children: legendLabels.map(({ color: color2, content }, index) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
3559
+ ChartLegendLabel,
3560
+ {
3561
+ color: color2 || theme_default.colors.DATAVIZ_COLORS_LIST[index],
3562
+ containerBoxProps: { as: "li" },
3563
+ children: content
3564
+ },
3565
+ `chart-legend-label-${index}`
3566
+ ))
3567
+ }
3568
+ );
3569
+ });
3570
+
3571
+ // src/components/ChartLegend/components/ChartLegendLabelContentWithIcon.tsx
3572
+ var import_react7 = require("react");
3573
+ var import_jsx_runtime8 = require("react/jsx-runtime");
3574
+ var ChartLegendLabelContentWithIcon = (0, import_react7.memo)(
3575
+ function ChartLegendLabelContentWithIcon2({
3576
+ children,
3577
+ icon
3578
+ }) {
3579
+ return icon ? /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: 200, children: [
3580
+ icon,
3581
+ children
3582
+ ] }) : children;
3583
+ }
3584
+ );
3585
+
3586
+ // src/components/AreaChart/components/AreaChartLegend.tsx
3587
+ var import_jsx_runtime9 = require("react/jsx-runtime");
3588
+ var getAreaChartLegendLabels = ({
3589
+ data
3590
+ }) => {
3591
+ return data.map((series, index) => ({
3592
+ content: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(ChartLegendLabelContentWithIcon, { icon: series.icon, children: series.name }),
3593
+ color: series.styles?.color || theme_default.colors.DATAVIZ_COLORS_LIST[index]
3594
+ }));
3595
+ };
3596
+ var AreaChartLegend = (0, import_react8.memo)(
3597
+ function AreaChartLegend2({ data }) {
3598
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(ChartLegend, { legendLabels: getAreaChartLegendLabels({ data }) });
3599
+ }
3600
+ );
3601
+
3602
+ // src/components/AreaChart/components/AreaChartTooltip.tsx
3603
+ var import_react19 = require("react");
3604
+
3605
+ // ../seeds-react-icon/dist/esm/index.js
3606
+ var import_react11 = require("react");
3607
+ var import_styled_components10 = __toESM(require("styled-components"));
3608
+
3609
+ // ../seeds-react-partner-logo/dist/esm/index.js
3610
+ var import_react9 = require("react");
3611
+ var import_styled_components8 = require("styled-components");
3612
+ var import_styled_components9 = __toESM(require("styled-components"));
3613
+
3614
+ // ../../node_modules/@styled-system/core/dist/index.esm.js
3615
+ var import_object_assign = __toESM(require_object_assign());
3616
+ var merge = function merge2(a3, b2) {
3617
+ var result = (0, import_object_assign.default)({}, a3, b2);
3618
+ for (var key in a3) {
3619
+ var _assign;
3620
+ if (!a3[key] || typeof b2[key] !== "object")
3621
+ continue;
3622
+ (0, import_object_assign.default)(result, (_assign = {}, _assign[key] = (0, import_object_assign.default)(a3[key], b2[key]), _assign));
3623
+ }
3624
+ return result;
3625
+ };
3626
+ var sort = function sort2(obj) {
3627
+ var next = {};
3628
+ Object.keys(obj).sort(function(a3, b2) {
3629
+ return a3.localeCompare(b2, void 0, {
3630
+ numeric: true,
3631
+ sensitivity: "base"
3632
+ });
3633
+ }).forEach(function(key) {
3634
+ next[key] = obj[key];
3635
+ });
3636
+ return next;
3637
+ };
3638
+ var defaults = {
3639
+ breakpoints: [40, 52, 64].map(function(n2) {
3640
+ return n2 + "em";
3641
+ })
3642
+ };
3643
+ var createMediaQuery = function createMediaQuery2(n2) {
3644
+ return "@media screen and (min-width: " + n2 + ")";
3645
+ };
3646
+ var getValue = function getValue2(n2, scale) {
3647
+ return get(scale, n2, n2);
3648
+ };
3649
+ var get = function get2(obj, key, def, p, undef) {
3650
+ key = key && key.split ? key.split(".") : [key];
3651
+ for (p = 0; p < key.length; p++) {
3652
+ obj = obj ? obj[key[p]] : undef;
3653
+ }
3654
+ return obj === undef ? def : obj;
3655
+ };
3656
+ var createParser = function createParser2(config9) {
3657
+ var cache = {};
3658
+ var parse = function parse2(props) {
3659
+ var styles = {};
3660
+ var shouldSort = false;
3661
+ var isCacheDisabled = props.theme && props.theme.disableStyledSystemCache;
3662
+ for (var key in props) {
3663
+ if (!config9[key])
3664
+ continue;
3665
+ var sx = config9[key];
3666
+ var raw = props[key];
3667
+ var scale = get(props.theme, sx.scale, sx.defaults);
3668
+ if (typeof raw === "object") {
3669
+ cache.breakpoints = !isCacheDisabled && cache.breakpoints || get(props.theme, "breakpoints", defaults.breakpoints);
3670
+ if (Array.isArray(raw)) {
3671
+ cache.media = !isCacheDisabled && cache.media || [null].concat(cache.breakpoints.map(createMediaQuery));
3672
+ styles = merge(styles, parseResponsiveStyle(cache.media, sx, scale, raw, props));
3673
+ continue;
3674
+ }
3675
+ if (raw !== null) {
3676
+ styles = merge(styles, parseResponsiveObject(cache.breakpoints, sx, scale, raw, props));
3677
+ shouldSort = true;
3678
+ }
3679
+ continue;
3680
+ }
3681
+ (0, import_object_assign.default)(styles, sx(raw, scale, props));
3682
+ }
3683
+ if (shouldSort) {
3684
+ styles = sort(styles);
3685
+ }
3686
+ return styles;
3687
+ };
3688
+ parse.config = config9;
3689
+ parse.propNames = Object.keys(config9);
3690
+ parse.cache = cache;
3691
+ var keys = Object.keys(config9).filter(function(k2) {
3692
+ return k2 !== "config";
3693
+ });
3694
+ if (keys.length > 1) {
3695
+ keys.forEach(function(key) {
3696
+ var _createParser;
3697
+ parse[key] = createParser2((_createParser = {}, _createParser[key] = config9[key], _createParser));
3698
+ });
3699
+ }
3700
+ return parse;
3701
+ };
3702
+ var parseResponsiveStyle = function parseResponsiveStyle2(mediaQueries, sx, scale, raw, _props) {
3703
+ var styles = {};
3704
+ raw.slice(0, mediaQueries.length).forEach(function(value, i) {
3705
+ var media = mediaQueries[i];
3706
+ var style = sx(value, scale, _props);
3707
+ if (!media) {
3708
+ (0, import_object_assign.default)(styles, style);
3709
+ } else {
3710
+ var _assign2;
3711
+ (0, import_object_assign.default)(styles, (_assign2 = {}, _assign2[media] = (0, import_object_assign.default)({}, styles[media], style), _assign2));
3712
+ }
3713
+ });
3714
+ return styles;
3715
+ };
3716
+ var parseResponsiveObject = function parseResponsiveObject2(breakpoints2, sx, scale, raw, _props) {
3717
+ var styles = {};
3718
+ for (var key in raw) {
3719
+ var breakpoint = breakpoints2[key];
3720
+ var value = raw[key];
3721
+ var style = sx(value, scale, _props);
3722
+ if (!breakpoint) {
3723
+ (0, import_object_assign.default)(styles, style);
3724
+ } else {
3725
+ var _assign3;
3726
+ var media = createMediaQuery(breakpoint);
3727
+ (0, import_object_assign.default)(styles, (_assign3 = {}, _assign3[media] = (0, import_object_assign.default)({}, styles[media], style), _assign3));
3728
+ }
3729
+ }
3730
+ return styles;
3731
+ };
3732
+ var createStyleFunction = function createStyleFunction2(_ref) {
3733
+ var properties = _ref.properties, property = _ref.property, scale = _ref.scale, _ref$transform = _ref.transform, transform = _ref$transform === void 0 ? getValue : _ref$transform, defaultScale = _ref.defaultScale;
3734
+ properties = properties || [property];
3735
+ var sx = function sx2(value, scale2, _props) {
3736
+ var result = {};
3737
+ var n2 = transform(value, scale2, _props);
3738
+ if (n2 === null)
3739
+ return;
3740
+ properties.forEach(function(prop) {
3741
+ result[prop] = n2;
3742
+ });
3743
+ return result;
3744
+ };
3745
+ sx.scale = scale;
3746
+ sx.defaults = defaultScale;
3747
+ return sx;
3748
+ };
3749
+ var system = function system2(args) {
3750
+ if (args === void 0) {
3751
+ args = {};
3752
+ }
3753
+ var config9 = {};
3754
+ Object.keys(args).forEach(function(key) {
3755
+ var conf = args[key];
3756
+ if (conf === true) {
3757
+ config9[key] = createStyleFunction({
3758
+ property: key,
3759
+ scale: key
3760
+ });
3761
+ return;
3762
+ }
3763
+ if (typeof conf === "function") {
3764
+ config9[key] = conf;
3765
+ return;
3766
+ }
3767
+ config9[key] = createStyleFunction(conf);
3768
+ });
3769
+ var parser = createParser(config9);
3770
+ return parser;
3771
+ };
3772
+ var compose = function compose2() {
3773
+ var config9 = {};
3774
+ for (var _len = arguments.length, parsers = new Array(_len), _key = 0; _key < _len; _key++) {
3775
+ parsers[_key] = arguments[_key];
3776
+ }
3777
+ parsers.forEach(function(parser2) {
3778
+ if (!parser2 || !parser2.config)
3779
+ return;
3780
+ (0, import_object_assign.default)(config9, parser2.config);
3781
+ });
3782
+ var parser = createParser(config9);
3783
+ return parser;
3784
+ };
3785
+
3786
+ // ../../node_modules/@styled-system/layout/dist/index.esm.js
3787
+ var isNumber = function isNumber2(n2) {
3788
+ return typeof n2 === "number" && !isNaN(n2);
3789
+ };
3790
+ var getWidth = function getWidth2(n2, scale) {
3791
+ return get(scale, n2, !isNumber(n2) || n2 > 1 ? n2 : n2 * 100 + "%");
3792
+ };
3793
+ var config = {
3794
+ width: {
3795
+ property: "width",
3796
+ scale: "sizes",
3797
+ transform: getWidth
3798
+ },
3799
+ height: {
3800
+ property: "height",
3801
+ scale: "sizes"
3802
+ },
3803
+ minWidth: {
3804
+ property: "minWidth",
3805
+ scale: "sizes"
3806
+ },
3807
+ minHeight: {
3808
+ property: "minHeight",
3809
+ scale: "sizes"
3810
+ },
3811
+ maxWidth: {
3812
+ property: "maxWidth",
3813
+ scale: "sizes"
3814
+ },
3815
+ maxHeight: {
3816
+ property: "maxHeight",
3817
+ scale: "sizes"
3818
+ },
3819
+ size: {
3820
+ properties: ["width", "height"],
3821
+ scale: "sizes"
3822
+ },
3823
+ overflow: true,
3824
+ overflowX: true,
3825
+ overflowY: true,
3826
+ display: true,
3827
+ verticalAlign: true
3828
+ };
3829
+ var layout = system(config);
3830
+ var index_esm_default = layout;
3831
+
3832
+ // ../../node_modules/@styled-system/color/dist/index.esm.js
3833
+ var config2 = {
3834
+ color: {
3835
+ property: "color",
3836
+ scale: "colors"
3837
+ },
3838
+ backgroundColor: {
3839
+ property: "backgroundColor",
3840
+ scale: "colors"
3841
+ },
3842
+ opacity: true
3843
+ };
3844
+ config2.bg = config2.backgroundColor;
3845
+ var color = system(config2);
3846
+ var index_esm_default2 = color;
3847
+
3848
+ // ../../node_modules/@styled-system/typography/dist/index.esm.js
3849
+ var defaults2 = {
3850
+ fontSizes: [12, 14, 16, 20, 24, 32, 48, 64, 72]
3851
+ };
3852
+ var config3 = {
3853
+ fontFamily: {
3854
+ property: "fontFamily",
3855
+ scale: "fonts"
3856
+ },
3857
+ fontSize: {
3858
+ property: "fontSize",
3859
+ scale: "fontSizes",
3860
+ defaultScale: defaults2.fontSizes
3861
+ },
3862
+ fontWeight: {
3863
+ property: "fontWeight",
3864
+ scale: "fontWeights"
3865
+ },
3866
+ lineHeight: {
3867
+ property: "lineHeight",
3868
+ scale: "lineHeights"
3869
+ },
3870
+ letterSpacing: {
3871
+ property: "letterSpacing",
3872
+ scale: "letterSpacings"
3873
+ },
3874
+ textAlign: true,
3875
+ fontStyle: true
3876
+ };
3877
+ var typography2 = system(config3);
3878
+ var index_esm_default3 = typography2;
3879
+
3880
+ // ../../node_modules/@styled-system/flexbox/dist/index.esm.js
3881
+ var config4 = {
3882
+ alignItems: true,
3883
+ alignContent: true,
3884
+ justifyItems: true,
3885
+ justifyContent: true,
3886
+ flexWrap: true,
3887
+ flexDirection: true,
3888
+ // item
3889
+ flex: true,
3890
+ flexGrow: true,
3891
+ flexShrink: true,
3892
+ flexBasis: true,
3893
+ justifySelf: true,
3894
+ alignSelf: true,
3895
+ order: true
3896
+ };
3897
+ var flexbox = system(config4);
3898
+ var index_esm_default4 = flexbox;
3899
+
3900
+ // ../../node_modules/@styled-system/grid/dist/index.esm.js
3901
+ var defaults3 = {
3902
+ space: [0, 4, 8, 16, 32, 64, 128, 256, 512]
3903
+ };
3904
+ var config5 = {
3905
+ gridGap: {
3906
+ property: "gridGap",
3907
+ scale: "space",
3908
+ defaultScale: defaults3.space
3909
+ },
3910
+ gridColumnGap: {
3911
+ property: "gridColumnGap",
3912
+ scale: "space",
3913
+ defaultScale: defaults3.space
3914
+ },
3915
+ gridRowGap: {
3916
+ property: "gridRowGap",
3917
+ scale: "space",
3918
+ defaultScale: defaults3.space
3919
+ },
3920
+ gridColumn: true,
3921
+ gridRow: true,
3922
+ gridAutoFlow: true,
3923
+ gridAutoColumns: true,
3924
+ gridAutoRows: true,
3925
+ gridTemplateColumns: true,
3926
+ gridTemplateRows: true,
3927
+ gridTemplateAreas: true,
3928
+ gridArea: true
3929
+ };
3930
+ var grid = system(config5);
3931
+ var index_esm_default5 = grid;
3932
+
3933
+ // ../../node_modules/@styled-system/border/dist/index.esm.js
3934
+ var config6 = {
3935
+ border: {
3936
+ property: "border",
3937
+ scale: "borders"
3938
+ },
3939
+ borderWidth: {
3940
+ property: "borderWidth",
3941
+ scale: "borderWidths"
3942
+ },
3943
+ borderStyle: {
3944
+ property: "borderStyle",
3945
+ scale: "borderStyles"
3946
+ },
3947
+ borderColor: {
3948
+ property: "borderColor",
3949
+ scale: "colors"
3950
+ },
3951
+ borderRadius: {
3952
+ property: "borderRadius",
3953
+ scale: "radii"
3954
+ },
3955
+ borderTop: {
3956
+ property: "borderTop",
3957
+ scale: "borders"
3958
+ },
3959
+ borderTopLeftRadius: {
3960
+ property: "borderTopLeftRadius",
3961
+ scale: "radii"
3962
+ },
3963
+ borderTopRightRadius: {
3964
+ property: "borderTopRightRadius",
3965
+ scale: "radii"
3966
+ },
3967
+ borderRight: {
3968
+ property: "borderRight",
3969
+ scale: "borders"
3970
+ },
3971
+ borderBottom: {
3972
+ property: "borderBottom",
3973
+ scale: "borders"
3974
+ },
3975
+ borderBottomLeftRadius: {
3976
+ property: "borderBottomLeftRadius",
3977
+ scale: "radii"
3978
+ },
3979
+ borderBottomRightRadius: {
3980
+ property: "borderBottomRightRadius",
3981
+ scale: "radii"
3982
+ },
3983
+ borderLeft: {
3984
+ property: "borderLeft",
3985
+ scale: "borders"
3986
+ },
3987
+ borderX: {
3988
+ properties: ["borderLeft", "borderRight"],
3989
+ scale: "borders"
3990
+ },
3991
+ borderY: {
3992
+ properties: ["borderTop", "borderBottom"],
3993
+ scale: "borders"
3994
+ }
3995
+ };
3996
+ config6.borderTopWidth = {
3997
+ property: "borderTopWidth",
3998
+ scale: "borderWidths"
3999
+ };
4000
+ config6.borderTopColor = {
4001
+ property: "borderTopColor",
4002
+ scale: "colors"
4003
+ };
4004
+ config6.borderTopStyle = {
4005
+ property: "borderTopStyle",
4006
+ scale: "borderStyles"
4007
+ };
4008
+ config6.borderTopLeftRadius = {
4009
+ property: "borderTopLeftRadius",
4010
+ scale: "radii"
4011
+ };
4012
+ config6.borderTopRightRadius = {
4013
+ property: "borderTopRightRadius",
4014
+ scale: "radii"
4015
+ };
4016
+ config6.borderBottomWidth = {
4017
+ property: "borderBottomWidth",
4018
+ scale: "borderWidths"
4019
+ };
4020
+ config6.borderBottomColor = {
4021
+ property: "borderBottomColor",
4022
+ scale: "colors"
4023
+ };
4024
+ config6.borderBottomStyle = {
4025
+ property: "borderBottomStyle",
4026
+ scale: "borderStyles"
4027
+ };
4028
+ config6.borderBottomLeftRadius = {
4029
+ property: "borderBottomLeftRadius",
4030
+ scale: "radii"
4031
+ };
4032
+ config6.borderBottomRightRadius = {
4033
+ property: "borderBottomRightRadius",
4034
+ scale: "radii"
4035
+ };
4036
+ config6.borderLeftWidth = {
4037
+ property: "borderLeftWidth",
4038
+ scale: "borderWidths"
4039
+ };
4040
+ config6.borderLeftColor = {
4041
+ property: "borderLeftColor",
4042
+ scale: "colors"
4043
+ };
4044
+ config6.borderLeftStyle = {
4045
+ property: "borderLeftStyle",
4046
+ scale: "borderStyles"
4047
+ };
4048
+ config6.borderRightWidth = {
4049
+ property: "borderRightWidth",
4050
+ scale: "borderWidths"
4051
+ };
4052
+ config6.borderRightColor = {
4053
+ property: "borderRightColor",
4054
+ scale: "colors"
4055
+ };
4056
+ config6.borderRightStyle = {
4057
+ property: "borderRightStyle",
4058
+ scale: "borderStyles"
4059
+ };
4060
+ var border = system(config6);
4061
+ var index_esm_default6 = border;
4062
+
4063
+ // ../../node_modules/@styled-system/background/dist/index.esm.js
4064
+ var config7 = {
4065
+ background: true,
4066
+ backgroundImage: true,
4067
+ backgroundSize: true,
4068
+ backgroundPosition: true,
4069
+ backgroundRepeat: true
4070
+ };
4071
+ config7.bgImage = config7.backgroundImage;
4072
+ config7.bgSize = config7.backgroundSize;
4073
+ config7.bgPosition = config7.backgroundPosition;
4074
+ config7.bgRepeat = config7.backgroundRepeat;
4075
+ var background = system(config7);
4076
+ var index_esm_default7 = background;
4077
+
4078
+ // ../../node_modules/@styled-system/position/dist/index.esm.js
4079
+ var defaults4 = {
4080
+ space: [0, 4, 8, 16, 32, 64, 128, 256, 512]
4081
+ };
4082
+ var config8 = {
4083
+ position: true,
4084
+ zIndex: {
4085
+ property: "zIndex",
4086
+ scale: "zIndices"
4087
+ },
4088
+ top: {
4089
+ property: "top",
4090
+ scale: "space",
4091
+ defaultScale: defaults4.space
4092
+ },
4093
+ right: {
4094
+ property: "right",
4095
+ scale: "space",
4096
+ defaultScale: defaults4.space
4097
+ },
4098
+ bottom: {
4099
+ property: "bottom",
4100
+ scale: "space",
4101
+ defaultScale: defaults4.space
4102
+ },
4103
+ left: {
4104
+ property: "left",
4105
+ scale: "space",
4106
+ defaultScale: defaults4.space
4107
+ }
4108
+ };
4109
+ var position = system(config8);
4110
+ var index_esm_default8 = position;
4111
+
4112
+ // ../../node_modules/@styled-system/space/dist/index.esm.js
4113
+ var defaults5 = {
4114
+ space: [0, 4, 8, 16, 32, 64, 128, 256, 512]
4115
+ };
4116
+ var isNumber3 = function isNumber4(n2) {
4117
+ return typeof n2 === "number" && !isNaN(n2);
4118
+ };
4119
+ var getMargin = function getMargin2(n2, scale) {
4120
+ if (!isNumber3(n2)) {
4121
+ return get(scale, n2, n2);
4122
+ }
4123
+ var isNegative = n2 < 0;
4124
+ var absolute = Math.abs(n2);
4125
+ var value = get(scale, absolute, absolute);
4126
+ if (!isNumber3(value)) {
4127
+ return isNegative ? "-" + value : value;
4128
+ }
4129
+ return value * (isNegative ? -1 : 1);
4130
+ };
4131
+ var configs = {};
4132
+ configs.margin = {
4133
+ margin: {
4134
+ property: "margin",
4135
+ scale: "space",
4136
+ transform: getMargin,
4137
+ defaultScale: defaults5.space
4138
+ },
4139
+ marginTop: {
4140
+ property: "marginTop",
4141
+ scale: "space",
4142
+ transform: getMargin,
4143
+ defaultScale: defaults5.space
4144
+ },
4145
+ marginRight: {
4146
+ property: "marginRight",
4147
+ scale: "space",
4148
+ transform: getMargin,
4149
+ defaultScale: defaults5.space
4150
+ },
4151
+ marginBottom: {
4152
+ property: "marginBottom",
4153
+ scale: "space",
4154
+ transform: getMargin,
4155
+ defaultScale: defaults5.space
4156
+ },
4157
+ marginLeft: {
4158
+ property: "marginLeft",
4159
+ scale: "space",
4160
+ transform: getMargin,
4161
+ defaultScale: defaults5.space
4162
+ },
4163
+ marginX: {
4164
+ properties: ["marginLeft", "marginRight"],
4165
+ scale: "space",
4166
+ transform: getMargin,
4167
+ defaultScale: defaults5.space
4168
+ },
4169
+ marginY: {
4170
+ properties: ["marginTop", "marginBottom"],
4171
+ scale: "space",
4172
+ transform: getMargin,
4173
+ defaultScale: defaults5.space
4174
+ }
4175
+ };
4176
+ configs.margin.m = configs.margin.margin;
4177
+ configs.margin.mt = configs.margin.marginTop;
4178
+ configs.margin.mr = configs.margin.marginRight;
4179
+ configs.margin.mb = configs.margin.marginBottom;
4180
+ configs.margin.ml = configs.margin.marginLeft;
4181
+ configs.margin.mx = configs.margin.marginX;
4182
+ configs.margin.my = configs.margin.marginY;
4183
+ configs.padding = {
4184
+ padding: {
4185
+ property: "padding",
4186
+ scale: "space",
4187
+ defaultScale: defaults5.space
4188
+ },
4189
+ paddingTop: {
4190
+ property: "paddingTop",
4191
+ scale: "space",
4192
+ defaultScale: defaults5.space
4193
+ },
4194
+ paddingRight: {
4195
+ property: "paddingRight",
4196
+ scale: "space",
4197
+ defaultScale: defaults5.space
4198
+ },
4199
+ paddingBottom: {
4200
+ property: "paddingBottom",
4201
+ scale: "space",
4202
+ defaultScale: defaults5.space
4203
+ },
4204
+ paddingLeft: {
4205
+ property: "paddingLeft",
4206
+ scale: "space",
4207
+ defaultScale: defaults5.space
4208
+ },
4209
+ paddingX: {
4210
+ properties: ["paddingLeft", "paddingRight"],
4211
+ scale: "space",
4212
+ defaultScale: defaults5.space
4213
+ },
4214
+ paddingY: {
4215
+ properties: ["paddingTop", "paddingBottom"],
4216
+ scale: "space",
4217
+ defaultScale: defaults5.space
4218
+ }
4219
+ };
4220
+ configs.padding.p = configs.padding.padding;
4221
+ configs.padding.pt = configs.padding.paddingTop;
4222
+ configs.padding.pr = configs.padding.paddingRight;
4223
+ configs.padding.pb = configs.padding.paddingBottom;
4224
+ configs.padding.pl = configs.padding.paddingLeft;
4225
+ configs.padding.px = configs.padding.paddingX;
4226
+ configs.padding.py = configs.padding.paddingY;
4227
+ var margin = system(configs.margin);
4228
+ var padding = system(configs.padding);
4229
+ var space2 = compose(margin, padding);
4230
+
4231
+ // ../../node_modules/@styled-system/shadow/dist/index.esm.js
4232
+ var shadow = system({
4233
+ boxShadow: {
4234
+ property: "boxShadow",
4235
+ scale: "shadows"
4236
+ },
4237
+ textShadow: {
4238
+ property: "textShadow",
4239
+ scale: "shadows"
4240
+ }
4241
+ });
4242
+
4243
+ // ../../node_modules/@styled-system/css/dist/index.esm.js
4244
+ function _extends2() {
4245
+ _extends2 = Object.assign || function(target) {
4246
+ for (var i = 1; i < arguments.length; i++) {
4247
+ var source = arguments[i];
4248
+ for (var key in source) {
4249
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
4250
+ target[key] = source[key];
4251
+ }
4252
+ }
4253
+ }
4254
+ return target;
4255
+ };
4256
+ return _extends2.apply(this, arguments);
4257
+ }
4258
+ var get3 = function get4(obj, key, def, p, undef) {
4259
+ key = key && key.split ? key.split(".") : [key];
4260
+ for (p = 0; p < key.length; p++) {
4261
+ obj = obj ? obj[key[p]] : undef;
4262
+ }
4263
+ return obj === undef ? def : obj;
4264
+ };
4265
+ var defaultBreakpoints = [40, 52, 64].map(function(n2) {
4266
+ return n2 + "em";
4267
+ });
4268
+ var defaultTheme = {
4269
+ space: [0, 4, 8, 16, 32, 64, 128, 256, 512],
4270
+ fontSizes: [12, 14, 16, 20, 24, 32, 48, 64, 72]
4271
+ };
4272
+ var aliases = {
4273
+ bg: "backgroundColor",
4274
+ m: "margin",
4275
+ mt: "marginTop",
4276
+ mr: "marginRight",
4277
+ mb: "marginBottom",
4278
+ ml: "marginLeft",
4279
+ mx: "marginX",
4280
+ my: "marginY",
4281
+ p: "padding",
4282
+ pt: "paddingTop",
4283
+ pr: "paddingRight",
4284
+ pb: "paddingBottom",
4285
+ pl: "paddingLeft",
4286
+ px: "paddingX",
4287
+ py: "paddingY"
4288
+ };
4289
+ var multiples = {
4290
+ marginX: ["marginLeft", "marginRight"],
4291
+ marginY: ["marginTop", "marginBottom"],
4292
+ paddingX: ["paddingLeft", "paddingRight"],
4293
+ paddingY: ["paddingTop", "paddingBottom"],
4294
+ size: ["width", "height"]
4295
+ };
4296
+ var scales = {
4297
+ color: "colors",
4298
+ backgroundColor: "colors",
4299
+ borderColor: "colors",
4300
+ margin: "space",
4301
+ marginTop: "space",
4302
+ marginRight: "space",
4303
+ marginBottom: "space",
4304
+ marginLeft: "space",
4305
+ marginX: "space",
4306
+ marginY: "space",
4307
+ padding: "space",
4308
+ paddingTop: "space",
4309
+ paddingRight: "space",
4310
+ paddingBottom: "space",
4311
+ paddingLeft: "space",
4312
+ paddingX: "space",
4313
+ paddingY: "space",
4314
+ top: "space",
4315
+ right: "space",
4316
+ bottom: "space",
4317
+ left: "space",
4318
+ gridGap: "space",
4319
+ gridColumnGap: "space",
4320
+ gridRowGap: "space",
4321
+ gap: "space",
4322
+ columnGap: "space",
4323
+ rowGap: "space",
4324
+ fontFamily: "fonts",
4325
+ fontSize: "fontSizes",
4326
+ fontWeight: "fontWeights",
4327
+ lineHeight: "lineHeights",
4328
+ letterSpacing: "letterSpacings",
4329
+ border: "borders",
4330
+ borderTop: "borders",
4331
+ borderRight: "borders",
4332
+ borderBottom: "borders",
4333
+ borderLeft: "borders",
4334
+ borderWidth: "borderWidths",
4335
+ borderStyle: "borderStyles",
4336
+ borderRadius: "radii",
4337
+ borderTopRightRadius: "radii",
4338
+ borderTopLeftRadius: "radii",
4339
+ borderBottomRightRadius: "radii",
4340
+ borderBottomLeftRadius: "radii",
4341
+ borderTopWidth: "borderWidths",
4342
+ borderTopColor: "colors",
4343
+ borderTopStyle: "borderStyles",
4344
+ borderBottomWidth: "borderWidths",
4345
+ borderBottomColor: "colors",
4346
+ borderBottomStyle: "borderStyles",
4347
+ borderLeftWidth: "borderWidths",
4348
+ borderLeftColor: "colors",
4349
+ borderLeftStyle: "borderStyles",
4350
+ borderRightWidth: "borderWidths",
4351
+ borderRightColor: "colors",
4352
+ borderRightStyle: "borderStyles",
4353
+ outlineColor: "colors",
4354
+ boxShadow: "shadows",
4355
+ textShadow: "shadows",
4356
+ zIndex: "zIndices",
4357
+ width: "sizes",
4358
+ minWidth: "sizes",
4359
+ maxWidth: "sizes",
4360
+ height: "sizes",
4361
+ minHeight: "sizes",
4362
+ maxHeight: "sizes",
4363
+ flexBasis: "sizes",
4364
+ size: "sizes",
4365
+ // svg
4366
+ fill: "colors",
4367
+ stroke: "colors"
4368
+ };
4369
+ var positiveOrNegative = function positiveOrNegative2(scale, value) {
4370
+ if (typeof value !== "number" || value >= 0) {
4371
+ return get3(scale, value, value);
4372
+ }
4373
+ var absolute = Math.abs(value);
4374
+ var n2 = get3(scale, absolute, absolute);
4375
+ if (typeof n2 === "string")
4376
+ return "-" + n2;
4377
+ return n2 * -1;
4378
+ };
4379
+ var transforms = ["margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "top", "bottom", "left", "right"].reduce(function(acc, curr) {
4380
+ var _extends22;
4381
+ return _extends2({}, acc, (_extends22 = {}, _extends22[curr] = positiveOrNegative, _extends22));
4382
+ }, {});
4383
+ var responsive = function responsive2(styles) {
4384
+ return function(theme2) {
4385
+ var next = {};
4386
+ var breakpoints2 = get3(theme2, "breakpoints", defaultBreakpoints);
4387
+ var mediaQueries = [null].concat(breakpoints2.map(function(n2) {
4388
+ return "@media screen and (min-width: " + n2 + ")";
4389
+ }));
4390
+ for (var key in styles) {
4391
+ var value = typeof styles[key] === "function" ? styles[key](theme2) : styles[key];
4392
+ if (value == null)
4393
+ continue;
4394
+ if (!Array.isArray(value)) {
4395
+ next[key] = value;
4396
+ continue;
4397
+ }
4398
+ for (var i = 0; i < value.slice(0, mediaQueries.length).length; i++) {
4399
+ var media = mediaQueries[i];
4400
+ if (!media) {
4401
+ next[key] = value[i];
4402
+ continue;
4403
+ }
4404
+ next[media] = next[media] || {};
4405
+ if (value[i] == null)
4406
+ continue;
4407
+ next[media][key] = value[i];
4408
+ }
4409
+ }
4410
+ return next;
4411
+ };
4412
+ };
4413
+ var css3 = function css4(args) {
4414
+ return function(props) {
4415
+ if (props === void 0) {
4416
+ props = {};
4417
+ }
4418
+ var theme2 = _extends2({}, defaultTheme, {}, props.theme || props);
4419
+ var result = {};
4420
+ var obj = typeof args === "function" ? args(theme2) : args;
4421
+ var styles = responsive(obj)(theme2);
4422
+ for (var key in styles) {
4423
+ var x = styles[key];
4424
+ var val = typeof x === "function" ? x(theme2) : x;
4425
+ if (key === "variant") {
4426
+ var variant3 = css4(get3(theme2, val))(theme2);
4427
+ result = _extends2({}, result, {}, variant3);
4428
+ continue;
4429
+ }
4430
+ if (val && typeof val === "object") {
4431
+ result[key] = css4(val)(theme2);
4432
+ continue;
4433
+ }
4434
+ var prop = get3(aliases, key, key);
4435
+ var scaleName = get3(scales, prop);
4436
+ var scale = get3(theme2, scaleName, get3(theme2, prop, {}));
4437
+ var transform = get3(transforms, prop, get3);
4438
+ var value = transform(scale, val, val);
4439
+ if (multiples[prop]) {
4440
+ var dirs = multiples[prop];
4441
+ for (var i = 0; i < dirs.length; i++) {
4442
+ result[dirs[i]] = value;
4443
+ }
4444
+ } else {
4445
+ result[prop] = value;
4446
+ }
4447
+ }
4448
+ return result;
4449
+ };
4450
+ };
4451
+ var index_esm_default9 = css3;
4452
+
4453
+ // ../../node_modules/@styled-system/variant/dist/index.esm.js
4454
+ var variant = function variant2(_ref) {
4455
+ var _config;
4456
+ var scale = _ref.scale, _ref$prop = _ref.prop, prop = _ref$prop === void 0 ? "variant" : _ref$prop, _ref$variants = _ref.variants, variants = _ref$variants === void 0 ? {} : _ref$variants, key = _ref.key;
4457
+ var sx;
4458
+ if (Object.keys(variants).length) {
4459
+ sx = function sx2(value, scale2, props) {
4460
+ return index_esm_default9(get(scale2, value, null))(props.theme);
4461
+ };
4462
+ } else {
4463
+ sx = function sx2(value, scale2) {
4464
+ return get(scale2, value, null);
4465
+ };
4466
+ }
4467
+ sx.scale = scale || key;
4468
+ sx.defaults = variants;
4469
+ var config9 = (_config = {}, _config[prop] = sx, _config);
4470
+ var parser = createParser(config9);
4471
+ return parser;
4472
+ };
4473
+ var buttonStyle = variant({
4474
+ key: "buttons"
4475
+ });
4476
+ var textStyle = variant({
4477
+ key: "textStyles",
4478
+ prop: "textStyle"
4479
+ });
4480
+ var colorStyle = variant({
4481
+ key: "colorStyles",
4482
+ prop: "colors"
4483
+ });
4484
+
4485
+ // ../../node_modules/styled-system/dist/index.esm.js
4486
+ var width = index_esm_default.width;
4487
+ var height = index_esm_default.height;
4488
+ var minWidth = index_esm_default.minWidth;
4489
+ var minHeight = index_esm_default.minHeight;
4490
+ var maxWidth = index_esm_default.maxWidth;
4491
+ var maxHeight = index_esm_default.maxHeight;
4492
+ var size = index_esm_default.size;
4493
+ var verticalAlign = index_esm_default.verticalAlign;
4494
+ var display = index_esm_default.display;
4495
+ var overflow = index_esm_default.overflow;
4496
+ var overflowX = index_esm_default.overflowX;
4497
+ var overflowY = index_esm_default.overflowY;
4498
+ var opacity = index_esm_default2.opacity;
4499
+ var fontSize = index_esm_default3.fontSize;
4500
+ var fontFamily2 = index_esm_default3.fontFamily;
4501
+ var fontWeight = index_esm_default3.fontWeight;
4502
+ var lineHeight = index_esm_default3.lineHeight;
4503
+ var textAlign = index_esm_default3.textAlign;
4504
+ var fontStyle = index_esm_default3.fontStyle;
4505
+ var letterSpacing = index_esm_default3.letterSpacing;
4506
+ var alignItems = index_esm_default4.alignItems;
4507
+ var alignContent = index_esm_default4.alignContent;
4508
+ var justifyItems = index_esm_default4.justifyItems;
4509
+ var justifyContent = index_esm_default4.justifyContent;
4510
+ var flexWrap = index_esm_default4.flexWrap;
4511
+ var flexDirection = index_esm_default4.flexDirection;
4512
+ var flex = index_esm_default4.flex;
4513
+ var flexGrow = index_esm_default4.flexGrow;
4514
+ var flexShrink = index_esm_default4.flexShrink;
4515
+ var flexBasis = index_esm_default4.flexBasis;
4516
+ var justifySelf = index_esm_default4.justifySelf;
4517
+ var alignSelf = index_esm_default4.alignSelf;
4518
+ var order = index_esm_default4.order;
4519
+ var gridGap = index_esm_default5.gridGap;
4520
+ var gridColumnGap = index_esm_default5.gridColumnGap;
4521
+ var gridRowGap = index_esm_default5.gridRowGap;
4522
+ var gridColumn = index_esm_default5.gridColumn;
4523
+ var gridRow = index_esm_default5.gridRow;
4524
+ var gridAutoFlow = index_esm_default5.gridAutoFlow;
4525
+ var gridAutoColumns = index_esm_default5.gridAutoColumns;
4526
+ var gridAutoRows = index_esm_default5.gridAutoRows;
4527
+ var gridTemplateColumns = index_esm_default5.gridTemplateColumns;
4528
+ var gridTemplateRows = index_esm_default5.gridTemplateRows;
4529
+ var gridTemplateAreas = index_esm_default5.gridTemplateAreas;
4530
+ var gridArea = index_esm_default5.gridArea;
4531
+ var borderWidth = index_esm_default6.borderWidth;
4532
+ var borderStyle = index_esm_default6.borderStyle;
4533
+ var borderColor = index_esm_default6.borderColor;
4534
+ var borderTop = index_esm_default6.borderTop;
4535
+ var borderRight = index_esm_default6.borderRight;
4536
+ var borderBottom = index_esm_default6.borderBottom;
4537
+ var borderLeft = index_esm_default6.borderLeft;
4538
+ var borderRadius = index_esm_default6.borderRadius;
4539
+ var backgroundImage = index_esm_default7.backgroundImage;
4540
+ var backgroundSize = index_esm_default7.backgroundSize;
4541
+ var backgroundPosition = index_esm_default7.backgroundPosition;
4542
+ var backgroundRepeat = index_esm_default7.backgroundRepeat;
4543
+ var zIndex = index_esm_default8.zIndex;
4544
+ var top = index_esm_default8.top;
4545
+ var right = index_esm_default8.right;
4546
+ var bottom = index_esm_default8.bottom;
4547
+ var left = index_esm_default8.left;
4548
+
4549
+ // ../seeds-react-partner-logo/dist/esm/index.js
4550
+ var import_react10 = require("react");
4551
+
4552
+ // ../../seeds-assets/seeds-partner-logos/dist/index.mjs
4553
+ var ViewBoxes = { "adobe-experience-manager-dark": "0 0 18 18", "adobe-experience-manager": "0 0 18 18", "android-dark": "0 0 18 18", "android": "0 0 18 18", "apple-app-store-dark": "0 0 18 18", "apple-app-store": "0 0 18 18", "apple-dark": "0 0 18 18", "apple": "0 0 18 18", "bigcommerce-dark": "0 0 18 18", "bigcommerce-lockup-dark": "0 0 291 66", "bigcommerce-lockup": "0 0 291 66", "bigcommerce": "0 0 18 18", "bitly-dark": "0 0 18 18", "bitly": "0 0 18 18", "bluesky-dark": "0 0 18 18", "bluesky": "0 0 18 18", "bynder-dark": "0 0 18 18", "bynder": "0 0 18 18", "canva-dark": "0 0 18 18", "canva": "0 0 18 18", "dropbox-dark": "0 0 18 18", "dropbox-lockup-dark": "0 0 291 57", "dropbox-lockup": "0 0 291 57", "dropbox-wordmark-dark": "0 0 308 71", "dropbox-wordmark": "0 0 308 71", "dropbox": "0 0 18 18", "facebook-audience-network-dark": "0 0 18 18", "facebook-audience-network": "0 0 18 18", "facebook-dark": "0 0 18 18", "facebook-groups-dark": "0 0 18 18", "facebook-groups": "0 0 18 18", "facebook-shops-dark": "0 0 18 18", "facebook-shops": "0 0 18 18", "facebook": "0 0 18 18", "feedly-dark": "0 0 18 18", "feedly": "0 0 18 18", "github-dark": "0 0 18 18", "github": "0 0 18 18", "glassdoor-dark": "0 0 18 18", "glassdoor": "0 0 18 18", "google-analytics-dark": "0 0 18 18", "google-analytics": "0 0 18 18", "google-business-messages-dark": "0 0 18 18", "google-business-messages": "0 0 18 18", "google-drive-dark": "0 0 18 18", "google-drive": "0 0 18 18", "google-my-business-dark": "0 0 18 18", "google-my-business": "0 0 18 18", "google-play-store-dark": "0 0 16 18", "google-play-store": "0 0 16 18", "hubspot-dark": "0 0 18 18", "hubspot": "0 0 18 18", "instagram-dark": "0 0 18 18", "instagram": "0 0 18 18", "linkedin-audience-network-dark": "0 0 18 18", "linkedin-audience-network": "0 0 18 18", "linkedin-dark": "0 0 18 18", "linkedin": "0 0 18 18", "marketo-dark": "0 0 18 18", "marketo": "0 0 18 18", "messenger-dark": "0 0 18 18", "messenger": "0 0 18 18", "meta-dark": "0 0 18 18", "meta-lockup-dark": "0 0 273 55", "meta-lockup": "0 0 273 55", "meta": "0 0 18 18", "microsoft-dynamics-dark": "0 0 18 18", "microsoft-dynamics": "0 0 18 18", "paypal-lockup-dark": "0 0 245 60", "paypal-lockup": "0 0 245 60", "pinterest-dark": "0 0 18 18", "pinterest": "0 0 18 18", "reddit-dark": "0 0 18 18", "reddit": "0 0 18 18", "salesforce-cloud-dark": "0 0 20 18", "salesforce-cloud": "0 0 20 18", "salesforce-dark": "0 0 20 18", "salesforce": "0 0 20 18", "shopify-dark": "0 0 18 18", "shopify": "0 0 18 18", "slack-dark": "0 0 18 18", "slack": "0 0 18 18", "sproutsocial-dark": "0 0 18 18", "sproutsocial-lockup-dark": "0 0 291 58", "sproutsocial-lockup": "0 0 291 58", "sproutsocial-wordmark-dark": "0 0 320 52", "sproutsocial-wordmark": "0 0 320 52", "sproutsocial": "0 0 18 18", "tableau-dark": "0 0 18 18", "tableau-lockup-dark": "0 0 291 56", "tableau-lockup": "0 0 291 56", "tableau": "0 0 18 18", "threads-dark": "0 0 18 18", "threads": "0 0 18 18", "tiktok-dark": "0 0 18 18", "tiktok-lockup-dark": "0 0 276 68", "tiktok-lockup": "0 0 275 67", "tiktok": "0 0 18 18", "tripadvisor-dark": "0 0 18 18", "tripadvisor": "0 0 18 18", "trustpilot-dark": "0 0 18 18", "trustpilot": "0 0 18 18", "tumblr-dark": "0 0 18 18", "tumblr": "0 0 18 18", "twitter-audience-network-dark": "0 0 18 18", "twitter-audience-network": "0 0 18 18", "twitter-dark": "0 0 18 18", "twitter": "0 0 18 18", "whatsapp-dark": "0 0 18 18", "whatsapp": "0 0 18 18", "woocommerce-dark": "0 0 18 18", "woocommerce": "0 0 18 18", "x-twitter-dark": "0 0 18 18", "x-twitter": "0 0 18 18", "yelp-dark": "0 0 18 18", "yelp": "0 0 18 18", "youtube-dark": "0 0 18 18", "youtube-lockup-dark": "0 0 265 59", "youtube-lockup": "0 0 265 59", "youtube": "0 0 18 18", "zendesk-dark": "0 0 18 18", "zendesk-lockup-dark": "0 0 160 115", "zendesk-lockup": "0 0 160 115", "zendesk-wordmark-dark": "0 0 350 68", "zendesk-wordmark": "0 0 350 68", "zendesk": "0 0 18 18" };
4554
+ var LogoNamesWithoutVariants = ["adobe-experience-manager", "android", "apple-app-store", "apple", "bigcommerce", "bitly", "bluesky", "bynder", "canva", "dropbox", "facebook-audience-network", "facebook", "facebook-groups", "facebook-shops", "feedly", "github", "glassdoor", "google-analytics", "google-business-messages", "google-drive", "google-my-business", "google-play-store", "hubspot", "instagram", "linkedin-audience-network", "linkedin", "marketo", "messenger", "meta", "microsoft-dynamics", "paypal", "pinterest", "reddit", "salesforce-cloud", "salesforce", "shopify", "slack", "sproutsocial", "tableau", "threads", "tiktok", "tripadvisor", "trustpilot", "tumblr", "twitter-audience-network", "twitter", "whatsapp", "woocommerce", "x-twitter", "yelp", "youtube", "zendesk"];
4555
+
4556
+ // ../seeds-react-partner-logo/dist/esm/index.js
4557
+ var import_jsx_runtime10 = require("react/jsx-runtime");
4558
+ var PartnerLogoSizes = {
4559
+ mini: "12px",
4560
+ small: "16px",
4561
+ medium: "24px",
4562
+ large: "32px",
4563
+ jumbo: "64px"
4564
+ };
4565
+ var stylesForSize = (height2, logoSize) => import_styled_components9.css`
4566
+ height: ${logoSize ? logoSize : height2};
4567
+ line-height: ${logoSize ? logoSize : height2};
4568
+
4569
+ .logo-svg {
4570
+ height: ${logoSize ? logoSize : height2};
4571
+ width: ${logoSize ? logoSize : ""};
4572
+ }
4573
+ `;
4574
+ var Container3 = (0, import_styled_components9.default)("span")`
4575
+ display: inline-block;
4576
+ color: inherit;
4577
+ vertical-align: middle;
4578
+ ${ke}
4579
+ ${Ee}
4580
+ ${verticalAlign}
4581
+ ${(props) => stylesForSize(props.height, PartnerLogoSizes[props.logoSize])}
4582
+ `;
4583
+ var styles_default3 = Container3;
4584
+ var whichLogo = ({
4585
+ backgroundType,
4586
+ logoType,
4587
+ partnerName
4588
+ }, mode) => {
4589
+ const logo = logoType && logoType !== "symbol" ? partnerName + "-" + logoType : partnerName;
4590
+ if (backgroundType && backgroundType === "dark") {
4591
+ return `${logo}-dark`;
4592
+ } else if (backgroundType && backgroundType === "light") {
4593
+ return logo;
4594
+ } else if (mode === "dark") {
4595
+ return `${logo}-dark`;
4596
+ } else {
4597
+ return logo;
4598
+ }
4599
+ };
4600
+ var PartnerLogo = ({
4601
+ partnerName,
4602
+ backgroundType,
4603
+ logoType = "symbol",
4604
+ height: height2,
4605
+ width: width2,
4606
+ size: size2,
4607
+ "aria-label": ariaLabel,
4608
+ svgProps,
4609
+ ...rest
4610
+ }) => {
4611
+ const { mode } = (0, import_styled_components8.useTheme)();
4612
+ const logo = whichLogo({ backgroundType, logoType, partnerName }, mode);
4613
+ const logoViewBox = ViewBoxes[logo];
4614
+ const viewBoxCoordinates = logoViewBox?.split(" ") || [];
4615
+ const defaultWidth = viewBoxCoordinates[2];
4616
+ const defaultHeight = viewBoxCoordinates[3];
4617
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
4618
+ styles_default3,
4619
+ {
4620
+ height: height2 ? height2 : defaultHeight + "px",
4621
+ width: width2 ? width2 : defaultWidth + "px",
4622
+ logoSize: size2,
4623
+ className: "logo",
4624
+ role: "img",
4625
+ "aria-label": ariaLabel,
4626
+ "data-qa-logo": partnerName,
4627
+ ...rest,
4628
+ children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
4629
+ "svg",
4630
+ {
4631
+ className: "logo-svg",
4632
+ viewBox: logoViewBox,
4633
+ focusable: false,
4634
+ "data-qa-logo-svg": `${partnerName}-svg`,
4635
+ ...svgProps,
4636
+ children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
4637
+ "use",
4638
+ {
4639
+ xmlnsXlink: "http://www.w3.org/1999/xlink",
4640
+ xlinkHref: `#seeds-svgs_${logo}`
4641
+ }
4642
+ )
4643
+ }
4644
+ )
4645
+ }
4646
+ );
4647
+ };
4648
+ var PartnerLogo_default = PartnerLogo;
4649
+ var src_default2 = PartnerLogo_default;
4650
+
4651
+ // ../seeds-react-utilities/dist/index.mjs
4652
+ function includes(coll, el) {
4653
+ return coll.includes(el);
4654
+ }
4655
+
4656
+ // ../seeds-react-icon/dist/esm/index.js
4657
+ var import_styled_components11 = __toESM(require("styled-components"));
4658
+
4659
+ // ../../seeds-assets/seeds-icons/dist/index.mjs
4660
+ var GeneralViewBoxes = { "alarm-clock-outline": "0 0 18 18", "alarm-clock-solid": "0 0 18 18", "all-caps-outline": "0 0 18 18", "all-caps-solid": "0 0 18 18", "alt-text-outline": "0 0 18 18", "alt-text-solid": "0 0 18 18", "arrow-down-outline": "0 0 18 18", "arrow-down-solid": "0 0 18 18", "arrow-down-to-bracket-outline": "0 0 18 18", "arrow-down-to-bracket-solid": "0 0 18 18", "arrow-down-to-line-outline": "0 0 18 18", "arrow-down-to-line-solid": "0 0 18 18", "arrow-left-outline": "0 0 18 18", "arrow-left-solid": "0 0 18 18", "arrow-left-to-line-outline": "0 0 18 18", "arrow-left-to-line-solid": "0 0 18 18", "arrow-right-down-outline": "0 0 18 18", "arrow-right-down-solid": "0 0 18 18", "arrow-right-from-bracket-outline": "0 0 18 18", "arrow-right-from-bracket-solid": "0 0 18 18", "arrow-right-outline": "0 0 18 18", "arrow-right-solid": "0 0 18 18", "arrow-right-to-line-outline": "0 0 18 18", "arrow-right-to-line-solid": "0 0 18 18", "arrow-right-up-outline": "0 0 18 18", "arrow-right-up-solid": "0 0 18 18", "arrow-turn-left-outline": "0 0 18 18", "arrow-turn-left-solid": "0 0 18 18", "arrow-turn-right-outline": "0 0 18 18", "arrow-turn-right-solid": "0 0 18 18", "arrow-up-from-bracket-outline": "0 0 18 18", "arrow-up-from-bracket-solid": "0 0 18 18", "arrow-up-outline": "0 0 18 18", "arrow-up-solid": "0 0 18 18", "arrow-up-to-line-outline": "0 0 18 18", "arrow-up-to-line-solid": "0 0 18 18", "arrows-left-right-outline": "0 0 18 18", "arrows-left-right-solid": "0 0 18 18", "arrows-pointing-in-outline": "0 0 18 18", "arrows-pointing-in-solid": "0 0 18 18", "arrows-pointing-out-outline": "0 0 18 18", "arrows-pointing-out-solid": "0 0 18 18", "arrows-rotate-outline": "0 0 18 18", "arrows-rotate-solid": "0 0 18 18", "arrows-up-down-left-right-outline": "0 0 18 18", "arrows-up-down-left-right-solid": "0 0 18 18", "art-palette-outline": "0 0 18 18", "art-palette-solid": "0 0 18 18", "atom-outline": "0 0 18 18", "atom-solid": "0 0 18 18", "audio-outline": "0 0 18 18", "audio-solid": "0 0 18 18", "ban-outline": "0 0 18 18", "ban-solid": "0 0 18 18", "barcode-outline": "0 0 18 18", "barcode-solid": "0 0 18 18", "bars-density-large-outline": "0 0 18 18", "bars-density-large-solid": "0 0 18 18", "bars-density-medium-outline": "0 0 18 18", "bars-density-medium-solid": "0 0 18 18", "bars-density-small-outline": "0 0 18 18", "bars-density-small-solid": "0 0 18 18", "bars-density-two-panel-outline": "0 0 18 18", "bars-density-two-panel-solid": "0 0 18 18", "basketball-outline": "0 0 18 18", "basketball-solid": "0 0 18 18", "beaker-outline": "0 0 18 18", "beaker-solid": "0 0 18 18", "bell-outline": "0 0 18 18", "bell-slash-outline": "0 0 18 18", "bell-slash-solid": "0 0 18 18", "bell-solid": "0 0 18 18", "bold-outline": "0 0 18 18", "bold-solid": "0 0 18 18", "book-open-outline": "0 0 18 18", "book-open-solid": "0 0 18 18", "book-outline": "0 0 18 18", "book-solid": "0 0 18 18", "bookmark-filter-outline": "0 0 18 18", "bookmark-filter-solid": "0 0 18 18", "bookmark-outline": "0 0 18 18", "bookmark-reply-outline": "0 0 18 18", "bookmark-reply-solid": "0 0 18 18", "bookmark-solid": "0 0 18 18", "briefcase-outline": "0 0 18 18", "briefcase-solid": "0 0 18 18", "browser-nav-bar-outline": "0 0 18 18", "browser-nav-bar-solid": "0 0 18 18", "browser-outline": "0 0 18 18", "browser-restore-outline": "0 0 18 18", "browser-restore-solid": "0 0 18 18", "browser-solid": "0 0 18 18", "bullseye-arrow-outline": "0 0 18 18", "bullseye-arrow-solid": "0 0 18 18", "calculator-outline": "0 0 18 18", "calculator-solid": "0 0 18 18", "calendar-clock-outline": "0 0 18 18", "calendar-clock-solid": "0 0 18 18", "calendar-day-outline": "0 0 18 18", "calendar-day-solid": "0 0 18 18", "calendar-outline": "0 0 18 18", "calendar-range-outline": "0 0 18 18", "calendar-range-solid": "0 0 18 18", "calendar-solid": "0 0 18 18", "camera-outline": "0 0 18 18", "camera-solid": "0 0 18 18", "camera-story-outline": "0 0 18 18", "camera-story-solid": "0 0 18 18", "camera-x-outline": "0 0 18 18", "camera-x-solid": "0 0 18 18", "caret-down-outline": "0 0 18 18", "caret-down-solid": "0 0 18 18", "caret-up-down-outline": "0 0 18 18", "caret-up-down-solid": "0 0 18 18", "caret-up-down-sort-down-outline": "0 0 18 18", "caret-up-down-sort-down-solid": "0 0 18 18", "caret-up-down-sort-up-outline": "0 0 18 18", "caret-up-down-sort-up-solid": "0 0 18 18", "caret-up-outline": "0 0 18 18", "caret-up-solid": "0 0 18 18", "carousel-outline": "0 0 18 18", "carousel-solid": "0 0 18 18", "cart-outline": "0 0 18 18", "cart-plus-outline": "0 0 18 18", "cart-plus-solid": "0 0 18 18", "cart-solid": "0 0 18 18", "chart-area-outline": "0 0 18 18", "chart-area-solid": "0 0 18 18", "chart-arrow-down-outline": "0 0 18 18", "chart-arrow-down-solid": "0 0 18 18", "chart-arrow-neutral-outline": "0 0 18 18", "chart-arrow-neutral-solid": "0 0 18 18", "chart-arrow-up-outline": "0 0 18 18", "chart-arrow-up-solid": "0 0 18 18", "chart-bar-outline": "0 0 18 18", "chart-bar-simple-outline": "0 0 18 18", "chart-bar-simple-solid": "0 0 18 18", "chart-bar-solid": "0 0 18 18", "chart-bar-sparkle-outline": "0 0 18 18", "chart-bar-sparkle-solid": "0 0 18 18", "chart-donut-outline": "0 0 18 18", "chart-donut-solid": "0 0 18 18", "chart-line-average-outline": "0 0 18 18", "chart-line-average-solid": "0 0 18 18", "chart-line-outline": "0 0 18 18", "chart-line-solid": "0 0 18 18", "chart-pie-outline": "0 0 18 18", "chart-pie-solid": "0 0 18 18", "check-outline": "0 0 18 18", "check-solid": "0 0 18 18", "chevron-down-outline": "0 0 18 18", "chevron-down-solid": "0 0 18 18", "chevron-left-outline": "0 0 18 18", "chevron-left-solid": "0 0 18 18", "chevron-right-outline": "0 0 18 18", "chevron-right-solid": "0 0 18 18", "chevron-up-outline": "0 0 18 18", "chevron-up-solid": "0 0 18 18", "circle-check-double-outline": "0 0 21 18", "circle-check-double-solid": "0 0 21 18", "circle-check-outline": "0 0 18 18", "circle-check-solid": "0 0 18 18", "circle-dollar-arrow-up-outline": "0 0 22 18", "circle-dollar-arrow-up-solid": "0 0 22 18", "circle-dollar-outline": "0 0 18 18", "circle-dollar-solid": "0 0 18 18", "circle-exclamation-outline": "0 0 18 18", "circle-exclamation-solid": "0 0 18 18", "circle-fill-outline": "0 0 18 18", "circle-fill-solid": "0 0 18 18", "circle-half-outline": "0 0 18 18", "circle-half-solid": "0 0 18 18", "circle-i-outline": "0 0 18 18", "circle-i-solid": "0 0 18 18", "circle-minus-outline": "0 0 18 18", "circle-minus-solid": "0 0 18 18", "circle-no-fill-outline": "0 0 18 18", "circle-no-fill-solid": "0 0 18 18", "circle-overlap-outline": "0 0 18 18", "circle-overlap-solid": "0 0 18 18", "circle-person-outline": "0 0 18 18", "circle-person-solid": "0 0 18 18", "circle-question-outline": "0 0 18 18", "circle-question-solid": "0 0 18 18", "circle-user-outline": "0 0 18 18", "circle-user-solid": "0 0 18 18", "circle-vertical-lines-outline": "0 0 18 18", "circle-vertical-lines-solid": "0 0 18 18", "circle-x-outline": "0 0 18 18", "circle-x-solid": "0 0 18 18", "clipboard-outline": "0 0 18 18", "clipboard-solid": "0 0 18 18", "clock-outline": "0 0 18 18", "clock-rotate-left-outline": "0 0 18 18", "clock-rotate-left-solid": "0 0 18 18", "clock-solid": "0 0 18 18", "closed-caption-outline": "0 0 18 18", "closed-caption-solid": "0 0 18 18", "cloud-outline": "0 0 18 18", "cloud-solid": "0 0 18 18", "code-outline": "0 0 18 18", "code-solid": "0 0 18 18", "columns-outline": "0 0 18 18", "columns-solid": "0 0 18 18", "comment-plus-outline": "0 0 18 18", "comment-plus-solid": "0 0 18 18", "comment-slash-outline": "0 0 18 18", "comment-slash-solid": "0 0 18 18", "comment-star-outline": "0 0 18 18", "comment-star-slash-outline": "0 0 18 18", "comment-star-slash-solid": "0 0 18 18", "comment-star-solid": "0 0 18 18", "compass-outline": "0 0 18 18", "compass-solid": "0 0 18 18", "credit-card-outline": "0 0 18 18", "credit-card-solid": "0 0 18 18", "crop-outline": "0 0 18 18", "crop-solid": "0 0 18 18", "crown-outline": "0 0 18 18", "crown-solid": "0 0 18 18", "curly-brackets-plus-outline": "0 0 18 18", "curly-brackets-plus-solid": "0 0 18 18", "delete-left-outline": "0 0 18 18", "delete-left-solid": "0 0 18 18", "diamond-line-outline": "0 0 18 18", "diamond-line-solid": "0 0 18 18", "diamond-outline": "0 0 18 18", "diamond-solid": "0 0 18 18", "diamond-vs-outline": "0 0 18 18", "diamond-vs-solid": "0 0 18 18", "dollar-outline": "0 0 18 18", "dollar-solid": "0 0 18 18", "ellipsis-horizontal-outline": "0 0 18 18", "ellipsis-horizontal-solid": "0 0 18 18", "ellipsis-vertical-outline": "0 0 18 18", "ellipsis-vertical-solid": "0 0 18 18", "envelope-outline": "0 0 18 18", "envelope-solid": "0 0 18 18", "expression-frown-outline": "0 0 18 18", "expression-frown-solid": "0 0 18 18", "expression-neutral-outline": "0 0 18 18", "expression-neutral-solid": "0 0 18 18", "expression-smile-open-outline": "0 0 18 18", "expression-smile-open-solid": "0 0 18 18", "eye-dropper-outline": "0 0 18 18", "eye-dropper-solid": "0 0 18 18", "eye-outline": "0 0 18 18", "eye-slash-outline": "0 0 18 18", "eye-slash-solid": "0 0 18 18", "eye-solid": "0 0 18 18", "face-frown-open-outline": "0 0 18 18", "face-frown-open-solid": "0 0 18 18", "face-frown-outline": "0 0 18 18", "face-frown-solid": "0 0 18 18", "face-neutral-outline": "0 0 18 18", "face-neutral-solid": "0 0 18 18", "face-smile-open-outline": "0 0 18 18", "face-smile-open-solid": "0 0 18 18", "face-smile-outline": "0 0 18 18", "face-smile-solid": "0 0 18 18", "file-box-arrow-up-outline": "0 0 18 18", "file-box-arrow-up-solid": "0 0 18 18", "file-box-outline": "0 0 18 18", "file-box-solid": "0 0 18 18", "filter-outline": "0 0 18 18", "filter-solid": "0 0 18 18", "fire-outline": "0 0 18 18", "fire-solid": "0 0 18 18", "flag-outline": "0 0 18 18", "flag-solid": "0 0 18 18", "folder-open-outline": "0 0 18 18", "folder-open-solid": "0 0 18 18", "folder-outline": "0 0 18 18", "folder-solid": "0 0 18 18", "font-case-outline": "0 0 18 18", "font-case-solid": "0 0 18 18", "four-squares-outline": "0 0 18 18", "four-squares-solid": "0 0 18 18", "gauge-outline": "0 0 18 18", "gauge-solid": "0 0 18 18", "gear-outline": "0 0 18 18", "gear-solid": "0 0 18 18", "gem-outline": "0 0 18 18", "gem-solid": "0 0 18 18", "gif-outline": "0 0 18 18", "gif-solid": "0 0 18 18", "glasses-outline": "0 0 18 18", "glasses-solid": "0 0 18 18", "globe-outline": "0 0 18 18", "globe-solid": "0 0 18 18", "grip-lines-vertical-outline": "0 0 18 18", "grip-lines-vertical-solid": "0 0 18 18", "h1-outline": "0 0 18 18", "h1-solid": "0 0 18 18", "h2-outline": "0 0 18 18", "h2-solid": "0 0 18 18", "h3-outline": "0 0 18 18", "h3-solid": "0 0 18 18", "h4-outline": "0 0 18 18", "h4-solid": "0 0 18 18", "hand-pointer-clicking-outline": "0 0 18 18", "hand-pointer-clicking-solid": "0 0 18 18", "handshake-outline": "0 0 18 18", "handshake-solid": "0 0 18 18", "hashtag-outline": "0 0 18 18", "hashtag-solid": "0 0 18 18", "headset-outline": "0 0 18 18", "headset-solid": "0 0 18 18", "heart-outline": "0 0 18 18", "heart-pulse-outline": "0 0 18 18", "heart-pulse-solid": "0 0 18 18", "heart-solid": "0 0 18 18", "horizontal-lines-outline": "0 0 18 18", "horizontal-lines-solid": "0 0 18 18", "hourglass-outline": "0 0 18 18", "hourglass-solid": "0 0 18 18", "house-outline": "0 0 18 18", "house-solid": "0 0 18 18", "image-outline": "0 0 18 18", "image-solid": "0 0 18 18", "images-outline": "0 0 18 18", "images-solid": "0 0 18 18", "inbox-arrow-up-outline": "0 0 18 18", "inbox-arrow-up-solid": "0 0 18 18", "inbox-check-outline": "0 0 18 18", "inbox-check-solid": "0 0 18 18", "inbox-lightning-bolt-outline": "0 0 18 18", "inbox-lightning-bolt-solid": "0 0 18 18", "inbox-outline": "0 0 18 18", "inbox-solid": "0 0 18 18", "inboxes-outline": "0 0 18 18", "inboxes-solid": "0 0 18 18", "infinity-outline": "0 0 18 18", "infinity-solid": "0 0 18 18", "insert-after-outline": "0 0 18 18", "insert-after-solid": "0 0 18 18", "italics-outline": "0 0 18 18", "italics-solid": "0 0 18 18", "justify-center-outline": "0 0 18 18", "justify-center-solid": "0 0 18 18", "justify-left-outline": "0 0 18 18", "justify-left-solid": "0 0 18 18", "justify-right-outline": "0 0 18 18", "justify-right-solid": "0 0 18 18", "key-outline": "0 0 18 18", "key-solid": "0 0 18 18", "keyboard-outline": "0 0 18 18", "keyboard-solid": "0 0 18 18", "language-outline": "0 0 18 18", "language-solid": "0 0 18 18", "laptop-mobile-outline": "0 0 18 18", "laptop-mobile-solid": "0 0 18 18", "large-circle-small-circle-outline": "0 0 18 18", "large-circle-small-circle-solid": "0 0 18 18", "larger-circle-small-circle-outline": "0 0 24 24", "larger-circle-small-circle-solid": "0 0 24 24", "lightbulb-outline": "0 0 18 18", "lightbulb-solid": "0 0 18 18", "lightning-bolt-outline": "0 0 18 18", "lightning-bolt-solid": "0 0 18 18", "link-broken-outline": "0 0 18 18", "link-broken-solid": "0 0 18 18", "link-outline": "0 0 18 18", "link-slash-outline": "0 0 18 18", "link-slash-solid": "0 0 18 18", "link-solid": "0 0 18 18", "locate-outline": "0 0 24 24", "locate-solid": "0 0 24 24", "location-pin-outline": "0 0 18 18", "location-pin-solid": "0 0 18 18", "lock-outline": "0 0 18 18", "lock-solid": "0 0 18 18", "magic-wand-outline": "0 0 18 18", "magic-wand-solid": "0 0 18 18", "magnifying-glass-chart-outline": "0 0 18 18", "magnifying-glass-chart-solid": "0 0 18 18", "magnifying-glass-outline": "0 0 18 18", "magnifying-glass-solid": "0 0 18 18", "magnifying-glass-twitter-outline": "0 0 18 18", "magnifying-glass-twitter-solid": "0 0 18 18", "make-longer-outline": "0 0 18 18", "make-longer-solid": "0 0 18 18", "make-shorter-outline": "0 0 18 18", "make-shorter-solid": "0 0 18 18", "masks-theater-outline": "0 0 22 18", "masks-theater-soild": "0 0 22 18", "masks-theater-solid": "0 0 22 18", "megaphone-dollar-outline": "0 0 18 18", "megaphone-dollar-solid": "0 0 18 18", "megaphone-outline": "0 0 18 18", "megaphone-solid": "0 0 18 18", "metric-table-outline": "0 0 18 18", "metric-table-solid": "0 0 18 18", "microphone-outline": "0 0 18 18", "microphone-solid": "0 0 18 18", "minus-outline": "0 0 18 18", "minus-solid": "0 0 18 18", "mobile-outline": "0 0 18 18", "mobile-solid": "0 0 18 18", "mood-boards-outline": "0 0 18 18", "mood-boards-solid": "0 0 18 18", "moon-crescent-outline": "0 0 18 18", "moon-crescent-solid": "0 0 18 18", "newspaper-outline": "0 0 18 18", "newspaper-solid": "0 0 18 18", "note-outline": "0 0 18 18", "note-solid": "0 0 18 18", "office-building-outline": "0 0 18 18", "office-building-solid": "0 0 18 18", "ordered-list-outline": "0 0 18 18", "ordered-list-solid": "0 0 18 18", "paint-can-outline": "0 0 18 18", "paint-can-solid": "0 0 18 18", "paper-bars-outline": "0 0 18 18", "paper-bars-solid": "0 0 18 18", "paper-outline": "0 0 18 18", "paper-pencil-outline": "0 0 18 18", "paper-pencil-solid": "0 0 18 18", "paper-plane-arrows-rotate-outline": "0 0 18 18", "paper-plane-arrows-rotate-solid": "0 0 18 18", "paper-plane-outline": "0 0 18 18", "paper-plane-solid": "0 0 18 18", "paper-solid": "0 0 18 18", "paper-x-outline": "0 0 18 18", "paper-x-solid": "0 0 18 18", "paperclip-outline": "0 0 18 18", "paperclip-solid": "0 0 18 18", "papers-outline": "0 0 18 18", "papers-solid": "0 0 18 18", "pattern-circle-triangle-square-outline": "0 0 18 18", "pattern-circle-triangle-square-solid": "0 0 18 18", "pause-outline": "0 0 18 18", "pause-solid": "0 0 18 18", "pencil-outline": "0 0 18 18", "pencil-solid": "0 0 18 18", "pencil-sparkle-outline": "0 0 18 18", "pencil-sparkle-solid": "0 0 18 18", "person-hiking-outline": "0 0 18 18", "person-hiking-solid": "0 0 18 18", "phone-outline": "0 0 18 18", "phone-solid": "0 0 18 18", "play-outline": "0 0 18 18", "play-solid": "0 0 18 18", "plug-outline": "0 0 18 18", "plug-solid": "0 0 18 18", "plus-outline": "0 0 18 18", "plus-solid": "0 0 18 18", "pointer-outline": "0 0 18 18", "pointer-solid": "0 0 18 18", "profile-card-outline": "0 0 18 18", "profile-card-solid": "0 0 18 18", "pulse-outline": "0 0 18 18", "pulse-solid": "0 0 18 18", "puzzle-piece-outline": "0 0 18 18", "puzzle-piece-solid": "0 0 18 18", "qr-code-outline": "0 0 18 18", "qr-code-solid": "0 0 18 18", "question-mark-outline": "0 0 18 18", "question-mark-solid": "0 0 18 18", "quotes-outline": "0 0 18 18", "quotes-solid": "0 0 18 18", "radar-outline": "0 0 18 18", "radar-solid": "0 0 18 18", "rectangle-caption-outline": "0 0 18 18", "rectangle-caption-solid": "0 0 18 18", "reply-outline": "0 0 18 18", "reply-solid": "0 0 18 18", "repost-outline": "0 0 18 18", "repost-solid": "0 0 18 18", "robot-outline": "0 0 19 18", "robot-solid": "0 0 19 18", "route-outline": "0 0 18 18", "route-solid": "0 0 18 18", "rss-outline": "0 0 18 18", "rss-solid": "0 0 18 18", "screwdriver-hammer-outline": "0 0 18 18", "screwdriver-hammer-solid": "0 0 18 18", "seeds-outline": "0 0 18 18", "seeds-solid": "0 0 18 18", "shopping-bag-outline": "0 0 18 18", "shopping-bag-solid": "0 0 18 18", "sitemap-outline": "0 0 18 18", "sitemap-solid": "0 0 18 18", "slider-outline": "0 0 18 18", "slider-solid": "0 0 18 18", "social-post-outline": "0 0 18 18", "social-post-solid": "0 0 18 18", "sort-ascending-outline": "0 0 18 18", "sort-ascending-solid": "0 0 18 18", "sort-descending-outline": "0 0 18 18", "sort-descending-solid": "0 0 18 18", "sparkle-outline": "0 0 18 18", "sparkle-solid": "0 0 18 18", "square-check-outline": "0 0 18 18", "square-check-solid": "0 0 18 18", "square-outline": "0 0 18 18", "square-slash-outline": "0 0 18 18", "square-slash-solid": "0 0 18 18", "square-solid": "0 0 18 18", "squares-arrow-up-right-outline": "0 0 18 18", "squares-arrow-up-right-solid": "0 0 18 18", "stamp-check-outline": "0 0 20 18", "stamp-check-solid": "0 0 20 18", "stamp-outline": "0 0 18 18", "stamp-solid": "0 0 18 18", "star-full-outline": "0 0 18 18", "star-full-solid": "0 0 18 18", "star-half-outline": "0 0 18 18", "star-half-solid": "0 0 18 18", "star-of-life-outline": "0 0 18 18", "star-of-life-solid": "0 0 18 18", "star-outline": "0 0 18 18", "star-solid": "0 0 18 18", "story-outline": "0 0 18 18", "story-solid": "0 0 18 18", "strikethrough-outline": "0 0 18 18", "strikethrough-solid": "0 0 18 18", "sun-outline": "0 0 18 18", "sun-solid": "0 0 18 18", "symbol-at-outline": "0 0 18 18", "symbol-at-solid": "0 0 18 18", "symbol-mars-outline": "0 0 18 18", "symbol-mars-solid": "0 0 18 18", "symbol-venus-outline": "0 0 18 18", "symbol-venus-solid": "0 0 18 18", "tag-outline": "0 0 18 18", "tag-solid": "0 0 18 18", "tag-x-outline": "0 0 18 18", "tag-x-solid": "0 0 18 18", "tags-outline": "0 0 18 18", "tags-solid": "0 0 18 18", "text-serif-outline": "0 0 18 18", "text-serif-solid": "0 0 18 18", "thread-outline": "0 0 18 18", "thread-solid": "0 0 18 18", "thumbs-down-outline": "0 0 18 18", "thumbs-down-solid": "0 0 18 18", "thumbs-up-outline": "0 0 18 18", "thumbs-up-solid": "0 0 18 18", "thumbtack-check-outline": "0 0 18 18", "thumbtack-check-solid": "0 0 18 18", "thumbtack-outline": "0 0 18 18", "thumbtack-solid": "0 0 18 18", "ticket-outline": "0 0 18 18", "ticket-solid": "0 0 18 18", "trash-outline": "0 0 18 18", "trash-solid": "0 0 18 18", "triangle-exclamation-outline": "0 0 18 18", "triangle-exclamation-solid": "0 0 18 18", "triangle-outline": "0 0 18 18", "triangle-solid": "0 0 18 18", "trophy-outline": "0 0 18 18", "trophy-solid": "0 0 18 18", "underline-outline": "0 0 18 18", "underline-solid": "0 0 18 18", "unlock-outline": "0 0 18 18", "unlock-solid": "0 0 18 18", "unordered-list-outline": "0 0 18 18", "unordered-list-solid": "0 0 18 18", "user-arrow-up-outline": "0 0 21 18", "user-arrow-up-solid": "0 0 21 18", "user-check-outline": "0 0 21 18", "user-check-solid": "0 0 21 18", "user-minus-outline": "0 0 20 18", "user-minus-solid": "0 0 20 18", "user-outline": "0 0 18 18", "user-plus-outline": "0 0 20 18", "user-plus-solid": "0 0 20 18", "user-solid": "0 0 18 18", "user-x-outline": "0 0 20 18", "user-x-solid": "0 0 20 18", "users-outline": "0 0 18 18", "users-solid": "0 0 18 18", "video-camera-outline": "0 0 18 18", "video-camera-solid": "0 0 18 18", "video-camera-story-outline": "0 0 18 18", "video-camera-story-solid": "0 0 18 18", "weight-outline": "0 0 18 18", "weight-solid": "0 0 18 18", "wifi-outline": "0 0 18 18", "wifi-slash-outline": "0 0 18 18", "wifi-slash-solid": "0 0 18 18", "wifi-solid": "0 0 18 18", "window-arrow-up-left-outline": "0 0 18 18", "window-arrow-up-left-solid": "0 0 18 18", "window-dock-left-outline": "0 0 24 24", "window-dock-left-solid": "0 0 24 24", "window-dock-right-outline": "0 0 24 24", "window-dock-right-solid": "0 0 24 24", "window-docked-left-outline": "0 0 18 18", "window-docked-left-solid": "0 0 18 18", "window-docked-right-outline": "0 0 18 18", "window-docked-right-solid": "0 0 18 18", "window-full-outline": "0 0 18 18", "window-full-solid": "0 0 18 18", "window-minimize-outline": "0 0 18 18", "window-minimize-solid": "0 0 18 18", "window-modal-outline": "0 0 18 18", "window-modal-solid": "0 0 18 18", "x-outline": "0 0 18 18", "x-solid": "0 0 18 18" };
4661
+ var ExternalViewBoxes = { "fb-reactions-angry": "0 0 18 18", "fb-reactions-care": "0 0 18 18", "fb-reactions-haha": "0 0 18 18", "fb-reactions-like": "0 0 18 18", "fb-reactions-love": "0 0 18 18", "fb-reactions-pride": "0 0 18 18", "fb-reactions-sad": "0 0 18 18", "fb-reactions-wow": "0 0 18 18", "recommendation": "0 0 18 18", "reels-outline": "0 0 18 18", "reels-solid": "0 0 18 18", "tripadvisor-circle-outline": "0 0 18 18", "tripadvisor-circle-solid": "0 0 18 18", "trustpilot-star": "0 0 18 18", "verified": "0 0 18 18", "yelp-full-star": "0 0 18 18", "yelp-half-star": "0 0 18 18" };
4662
+ var ExternalIconNames = ["fb-reactions-angry", "fb-reactions-care", "fb-reactions-haha", "fb-reactions-like", "fb-reactions-love", "fb-reactions-pride", "fb-reactions-sad", "fb-reactions-wow", "recommendation", "reels-outline", "reels-solid", "tripadvisor-circle-outline", "tripadvisor-circle-solid", "trustpilot-star", "verified", "yelp-full-star", "yelp-half-star"];
4663
+ var SproutViewBoxes = { "advocacy-outline": "0 0 18 18", "advocacy-solid": "0 0 18 18", "asset-library-outline": "0 0 18 18", "asset-library-plus-outline": "0 0 18 18", "asset-library-plus-solid": "0 0 18 18", "asset-library-solid": "0 0 18 18", "bambu-outline": "0 0 18 18", "bambu-solid": "0 0 18 18", "comment-arrow-up-outline": "0 0 18 18", "comment-arrow-up-solid": "0 0 18 18", "comment-bookmark-outline": "0 0 18 18", "comment-bookmark-solid": "0 0 18 18", "comment-dash-outline": "0 0 18 18", "comment-dash-solid": "0 0 18 18", "comment-exclamation-outline": "0 0 18 18", "comment-exclamation-solid": "0 0 18 18", "comment-eye-outline": "0 0 18 18", "comment-eye-solid": "0 0 18 18", "comment-heart-outline": "0 0 18 18", "comment-heart-solid": "0 0 18 18", "comment-light-bulb-outline": "0 0 18 18", "comment-light-bulb-solid": "0 0 18 18", "comment-outline": "0 0 18 18", "comment-solid": "0 0 18 18", "comment-sparkle-outline": "0 0 18 18", "comment-sparkle-solid": "0 0 18 18", "comments-outline": "0 0 18 18", "comments-solid": "0 0 18 18", "hand-sparkle-outline": "0 0 18 18", "hand-sparkle-solid": "0 0 18 18", "leaf-minus-outline": "0 0 18 18", "leaf-minus-solid": "0 0 18 18", "leaf-plus-outline": "0 0 18 18", "leaf-plus-solid": "0 0 18 18", "leaf-stacked-dotted-outline": "0 0 18 18", "leaf-stacked-dotted-solid": "0 0 18 18", "listening-outline": "0 0 18 18", "listening-solid": "0 0 18 18", "pencil-to-square-outline": "0 0 18 18", "pencil-to-square-solid": "0 0 18 18", "queue-outline": "0 0 18 18", "queue-solid": "0 0 18 18", "sprout-leaf-ellipsis-outline": "0 0 18 18", "sprout-leaf-ellipsis-solid": "0 0 18 18", "sprout-leaf-lightning-bolt-outline": "0 0 18 18", "sprout-leaf-lightning-bolt-solid": "0 0 18 18", "sprout-leaf-outline": "0 0 18 18", "sprout-leaf-solid": "0 0 18 18", "sprout-leaf-sync-outline": "0 0 18 18", "sprout-leaf-sync-solid": "0 0 18 18", "square-round-arrow-up-right-outline": "0 0 16 16", "square-round-arrow-up-right-solid": "0 0 16 16", "team-sprout-outline": "0 0 18 18", "team-sprout-solid": "0 0 18 18", "user-sprout-outline": "0 0 18 18", "user-sprout-solid": "0 0 18 18" };
4664
+
4665
+ // ../seeds-react-icon/dist/esm/index.js
4666
+ var import_jsx_runtime11 = require("react/jsx-runtime");
4667
+ var import_react12 = require("react");
4668
+ var sizes = {
4669
+ mini: "12px",
4670
+ /** TODO: deprecate default in favor of small in future release */
4671
+ default: "16px",
4672
+ small: "16px",
4673
+ medium: "24px",
4674
+ large: "32px",
4675
+ jumbo: "64px"
4676
+ };
4677
+ var stylesForSize2 = (iconActualSize, fixedWidth) => import_styled_components11.css`
4678
+ line-height: ${iconActualSize};
4679
+
4680
+ &,
4681
+ .Icon-svg {
4682
+ height: ${iconActualSize};
4683
+ fill: currentColor;
4684
+ }
4685
+
4686
+ ${fixedWidth && `
4687
+ &,
4688
+ & .Icon-svg {
4689
+ width: ${iconActualSize}
4690
+ }
4691
+ `}
4692
+ `;
4693
+ var Container4 = import_styled_components11.default.span.attrs({
4694
+ className: "Icon"
4695
+ })`
4696
+ display: inline-block;
4697
+ color: inherit;
4698
+ vertical-align: middle;
4699
+
4700
+ ${(props) => stylesForSize2(sizes[props.iconSize], props.fixedWidth)}
4701
+
4702
+ ${ke}
4703
+ ${verticalAlign}
4704
+ `;
4705
+ var styles_default4 = Container4;
4706
+ var AllViewboxes = {
4707
+ ...ExternalViewBoxes,
4708
+ ...GeneralViewBoxes,
4709
+ ...SproutViewBoxes
4710
+ };
4711
+ var Icon = ({
4712
+ name,
4713
+ size: size2 = "small",
4714
+ fixedWidth = false,
4715
+ ariaLabel,
4716
+ color: color2,
4717
+ svgProps,
4718
+ ...rest
4719
+ }) => {
4720
+ if (includes(LogoNamesWithoutVariants, name)) {
4721
+ const logoSize = size2 === "default" ? "small" : size2;
4722
+ const logoProps = {
4723
+ partnerName: name,
4724
+ size: logoSize,
4725
+ logoType: "symbol",
4726
+ svgProps
4727
+ };
4728
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
4729
+ src_default2,
4730
+ {
4731
+ "aria-label": ariaLabel,
4732
+ ...rest,
4733
+ ...logoProps
4734
+ }
4735
+ );
4736
+ }
4737
+ const defaultVariant = size2 === "mini" ? "solid" : "outline";
4738
+ const iconName = (
4739
+ // if not external and has no variant
4740
+ !name?.endsWith("-outline") && !name?.endsWith("-solid") && !includes(ExternalIconNames, name) ? (
4741
+ // then add default variant
4742
+ `${name}-${defaultVariant}`
4743
+ ) : (
4744
+ // else use name as is
4745
+ name
4746
+ )
4747
+ );
4748
+ const iconViewBox = AllViewboxes[iconName];
4749
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
4750
+ styles_default4,
4751
+ {
4752
+ iconSize: size2,
4753
+ fixedWidth: !!fixedWidth,
4754
+ role: "img",
4755
+ "aria-label": ariaLabel,
4756
+ "data-qa-icon": iconName,
4757
+ color: color2,
4758
+ ...rest,
4759
+ children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
4760
+ "svg",
4761
+ {
4762
+ className: "Icon-svg",
4763
+ viewBox: iconViewBox,
4764
+ focusable: false,
4765
+ "data-qa-icon-svg": `${iconName}-svg`,
4766
+ ...svgProps,
4767
+ children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
4768
+ "use",
4769
+ {
4770
+ xmlnsXlink: "http://www.w3.org/1999/xlink",
4771
+ xlinkHref: `#seeds-svgs_${iconName}`
4772
+ }
4773
+ )
4774
+ }
4775
+ )
4776
+ },
4777
+ iconName
4778
+ );
4779
+ };
4780
+ var ToggleableIcon = (0, import_styled_components10.default)(Icon)`
4781
+ transition: all ${(p) => p.theme.duration.fast} linear;
4782
+
4783
+ ${(p) => p.active && import_styled_components10.css`
4784
+ opacity: 1;
4785
+ transform: scale(1);
4786
+ `}
4787
+
4788
+ ${(p) => !p.active && import_styled_components10.css`
4789
+ position: absolute;
4790
+ opacity: 0;
4791
+ transform: scale(0);
4792
+ `}
4793
+ `;
4794
+ var IconToggle = ({
4795
+ activeName,
4796
+ inactiveName,
4797
+ isActive,
4798
+ size: size2 = "small",
4799
+ fixedWidth = false,
4800
+ ariaLabel,
4801
+ ...rest
4802
+ }) => {
4803
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(src_default, { as: "span", position: "relative", display: "inline-flex", ...rest, children: [
4804
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
4805
+ ToggleableIcon,
4806
+ {
4807
+ active: isActive,
4808
+ name: activeName,
4809
+ size: size2,
4810
+ fixedWidth,
4811
+ "aria-label": ariaLabel,
4812
+ "aria-hidden": !isActive
4813
+ }
4814
+ ),
4815
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
4816
+ ToggleableIcon,
4817
+ {
4818
+ active: !isActive,
4819
+ name: inactiveName,
4820
+ size: size2,
4821
+ fixedWidth,
4822
+ "aria-label": ariaLabel,
4823
+ "aria-hidden": isActive
4824
+ }
4825
+ )
4826
+ ] });
4827
+ };
4828
+ IconToggle.displayName = "Icon.Toggle";
4829
+ Icon.Toggle = IconToggle;
4830
+ var Icon_default = Icon;
4831
+
4832
+ // src/components/AreaChart/components/AreaChartTooltip.tsx
4833
+ var import_racine2 = require("@sproutsocial/racine");
4834
+
4835
+ // src/components/ChartTooltip/ChartTooltip.tsx
4836
+ var import_react13 = require("react");
4837
+ var import_styled_components12 = __toESM(require("styled-components"));
4838
+ var import_jsx_runtime12 = require("react/jsx-runtime");
4839
+ var StyledBox2 = (0, import_styled_components12.default)(Box_default)`
4840
+ .Icon,
4841
+ .logo {
4842
+ stroke: none;
4843
+ }
4844
+ `;
4845
+ var ChartTooltip = (0, import_react13.memo)(function ChartTooltip2({
4846
+ children
4847
+ }) {
4848
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
4849
+ StyledBox2,
4850
+ {
4851
+ bg: "container.background.base",
4852
+ boxShadow: "medium",
4853
+ border: 500,
4854
+ borderColor: "container.border.base",
4855
+ borderRadius: 500,
4856
+ p: 400,
4857
+ minWidth: 285,
4858
+ children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Box_default, { display: "flex", flexDirection: "column", gap: 350, children })
4859
+ }
4860
+ );
4861
+ });
4862
+
4863
+ // src/components/ChartTooltip/components/ChartTooltipFooter.tsx
4864
+ var import_react14 = require("react");
4865
+ var import_jsx_runtime13 = require("react/jsx-runtime");
4866
+ var ChartTooltipFooter = (0, import_react14.memo)(
4867
+ function ChartTooltipFooter2({ children }) {
4868
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
4869
+ Box_default,
4870
+ {
4871
+ borderTop: 500,
4872
+ borderColor: "container.border.base",
4873
+ mx: -400,
4874
+ mb: -200,
4875
+ px: 400,
4876
+ pt: 350,
4877
+ children
4878
+ }
4879
+ );
4880
+ }
4881
+ );
4882
+
4883
+ // src/components/ChartTooltip/components/ChartTooltipHeader.tsx
4884
+ var import_react15 = require("react");
4885
+ var import_jsx_runtime14 = require("react/jsx-runtime");
4886
+ var ChartTooltipHeader = (0, import_react15.memo)(
4887
+ function ChartTooltipHeader2({ children }) {
4888
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
4889
+ Box_default,
4890
+ {
4891
+ borderBottom: 500,
4892
+ borderColor: "container.border.base",
4893
+ mx: -400,
4894
+ mt: -200,
4895
+ px: 400,
4896
+ pb: 350,
4897
+ children
4898
+ }
4899
+ );
4900
+ }
4901
+ );
4902
+
4903
+ // src/components/ChartTooltip/components/ChartTooltipTable.tsx
4904
+ var import_react17 = require("react");
4905
+
4906
+ // src/components/ChartTable/ChartTable.tsx
4907
+ var import_react16 = require("react");
4908
+ var import_styled_components13 = __toESM(require("styled-components"));
4909
+ var import_racine = require("@sproutsocial/racine");
4910
+ var import_jsx_runtime15 = require("react/jsx-runtime");
4911
+ var StyledRacineTable = (0, import_styled_components13.default)(import_racine.Table)`
4912
+ tbody tr:last-child {
4913
+ border-bottom: none;
4914
+ }
4915
+ tr:last-child td,
4916
+ tr:last-child th {
4917
+ padding-bottom: 0;
4918
+ }
4919
+ tr:first-child td,
4920
+ tr:first-child th {
4921
+ padding-top: 0;
4922
+ }
4923
+ tr th {
4924
+ padding-left: 0;
4925
+ }
4926
+ tr td:last-child {
4927
+ padding-right: 0;
4928
+ }
4929
+ `;
4930
+ var StyledRacineTableRow = (0, import_styled_components13.default)(import_racine.Table.TableRow)`
4931
+ ${({ $isAppendedRow, theme: theme2 }) => $isAppendedRow ? `border-top: 2px solid ${theme2.colors.container.border.base}` : ""}
4932
+ `;
4933
+ var ChartTable = (0, import_react16.memo)(function ChartTable2({
4934
+ rows
4935
+ }) {
4936
+ if (!rows || rows.length === 0) {
4937
+ return null;
4938
+ }
4939
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(StyledRacineTable, { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_racine.Table.TableBody, { children: rows.map(({ cells, isAppendedRow }, rowIndex) => {
4940
+ if (!cells || cells.length === 0) {
4941
+ return null;
4942
+ }
4943
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
4944
+ StyledRacineTableRow,
4945
+ {
4946
+ $isAppendedRow: isAppendedRow,
4947
+ children: cells.map(
4948
+ ({ content, align = "left", colSpan = 1 }, cellIndex) => {
4949
+ const uniqueIdentifier = `chart-tooltip-table-cell-${cellIndex}`;
4950
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
4951
+ import_racine.Table.Cell,
4952
+ {
4953
+ id: uniqueIdentifier,
4954
+ scope: cellIndex === 0 ? "row" : void 0,
4955
+ align,
4956
+ colSpan,
4957
+ py: 200,
4958
+ children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Text_default.SmallBodyCopy, { as: "div", children: content })
4959
+ },
4960
+ uniqueIdentifier
4961
+ );
4962
+ }
4963
+ )
4964
+ },
4965
+ `chart-tooltip-table-row-${rowIndex}`
4966
+ );
4967
+ }) }) });
4968
+ });
3446
4969
 
3447
- // src/components/ColorBox/DatavizColorBox.tsx
3448
- var import_styled_components7 = __toESM(require("styled-components"));
3449
- var DatavizColorBox = (0, import_styled_components7.default)(ColorBox).attrs(
3450
- ({ colorIndex }) => ({
3451
- style: {
3452
- background: getDatavizColor(colorIndex),
3453
- opacity: getDatavizOpacity(colorIndex)
3454
- }
3455
- })
3456
- )``;
3457
- var getDatavizColor = (colorIndex) => theme_default.colors.DATAVIZ_COLORS_LIST[colorIndex % theme_default.colors.DATAVIZ_COLORS_LIST.length] || "";
3458
- var getDatavizOpacity = (colorIndex) => {
3459
- const opacitySteps = [1, 0.6, 0.4, 0.2];
3460
- const opacityStep = Math.floor(colorIndex / theme_default.colors.DATAVIZ_COLORS_LIST.length) % opacitySteps.length;
3461
- return opacitySteps[opacityStep];
4970
+ // src/components/ChartTooltip/components/ChartTooltipTable.tsx
4971
+ var import_jsx_runtime16 = require("react/jsx-runtime");
4972
+ var ChartTooltipTable = (0, import_react17.memo)(
4973
+ function ChartTooltipTable2({ rows }) {
4974
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(ChartTable, { rows });
4975
+ }
4976
+ );
4977
+
4978
+ // src/components/ChartTooltip/components/ChartTooltipTitle.tsx
4979
+ var import_react18 = require("react");
4980
+ var import_jsx_runtime17 = require("react/jsx-runtime");
4981
+ var ChartTooltipTitle = (0, import_react18.memo)(
4982
+ function ChartTooltipTitle2({ children }) {
4983
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Text_default.SmallSubHeadline, { as: "p", children });
4984
+ }
4985
+ );
4986
+
4987
+ // src/components/AreaChart/components/AreaChartTooltip.tsx
4988
+ var import_jsx_runtime18 = require("react/jsx-runtime");
4989
+ var AreaChartTooltip = (0, import_react19.memo)(
4990
+ function AreaChartTooltip2({
4991
+ data,
4992
+ invalidNumberLabel,
4993
+ numberLocale,
4994
+ textLocale,
4995
+ tooltipDateFormatter,
4996
+ tooltipTotalLabel,
4997
+ total,
4998
+ x,
4999
+ // optional
5000
+ currency = "USD",
5001
+ numberFormat = "decimal",
5002
+ onClick,
5003
+ tooltipClickLabel
5004
+ }) {
5005
+ const rows = data.map(({ color: color2, icon, name, value }) => {
5006
+ return {
5007
+ cells: [
5008
+ {
5009
+ content: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(ChartLegendLabel, { color: color2, children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(ChartLegendLabelContentWithIcon, { icon, children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Text_default, { "aria-label": `${name}: `, children: name }) }) })
5010
+ },
5011
+ {
5012
+ content: value === null && invalidNumberLabel ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Text_default, { children: invalidNumberLabel }) : numberFormat === "duration" ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_racine2.Duration, { locale: textLocale, milliseconds: value }) : /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
5013
+ import_racine2.Numeral,
5014
+ {
5015
+ abbreviate: false,
5016
+ currency,
5017
+ format: numberFormat,
5018
+ locale: numberLocale,
5019
+ number: value
5020
+ }
5021
+ ),
5022
+ align: "right"
5023
+ }
5024
+ ]
5025
+ };
5026
+ });
5027
+ const appendedRows = data.length > 1 ? [
5028
+ {
5029
+ cells: [
5030
+ {
5031
+ content: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
5032
+ Text_default,
5033
+ {
5034
+ fontWeight: "semibold",
5035
+ "aria-label": `${tooltipTotalLabel}: `,
5036
+ children: tooltipTotalLabel
5037
+ }
5038
+ )
5039
+ },
5040
+ {
5041
+ content: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Text_default, { fontWeight: "bold", children: total === null && invalidNumberLabel ? invalidNumberLabel : numberFormat === "duration" ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_racine2.Duration, { locale: textLocale, milliseconds: total }) : /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
5042
+ import_racine2.Numeral,
5043
+ {
5044
+ abbreviate: false,
5045
+ currency,
5046
+ format: numberFormat,
5047
+ locale: numberLocale,
5048
+ number: total
5049
+ }
5050
+ ) }),
5051
+ align: "right"
5052
+ }
5053
+ ],
5054
+ isAppendedRow: true
5055
+ }
5056
+ ] : [];
5057
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(ChartTooltip, { children: [
5058
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(ChartTooltipTitle, { children: tooltipDateFormatter({ x }) }),
5059
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
5060
+ ChartTooltipTable,
5061
+ {
5062
+ rows: [...rows, ...appendedRows]
5063
+ }
5064
+ ),
5065
+ onClick && tooltipClickLabel ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(ChartTooltipFooter, { children: typeof tooltipClickLabel === "string" ? /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: 300, children: [
5066
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Icon_default, { name: "hand-pointer-clicking-outline", color: "icon.base" }),
5067
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Text_default, { color: "text.subtext", fontSize: 200, children: tooltipClickLabel })
5068
+ ] }) : tooltipClickLabel }) : null
5069
+ ] });
5070
+ }
5071
+ );
5072
+
5073
+ // src/components/ChartTooltip/components/ChartTooltipPortal.tsx
5074
+ var import_react20 = require("react");
5075
+ var import_react_dom = require("react-dom");
5076
+ var generateChartTooltipPortalId = (chartId) => `highcharts-custom-tooltip-${chartId}`;
5077
+ var ChartTooltipPortal = (0, import_react20.memo)(
5078
+ function ChartTooltipPortal2({
5079
+ chart,
5080
+ renderContent
5081
+ }) {
5082
+ const isInitialized = (0, import_react20.useRef)(false);
5083
+ const [node, setNode] = (0, import_react20.useState)(null);
5084
+ const [context, setContext] = (0, import_react20.useState)(null);
5085
+ (0, import_react20.useEffect)(() => {
5086
+ const formatter = function() {
5087
+ if (!isInitialized.current) {
5088
+ isInitialized.current = true;
5089
+ chart.tooltip.refresh.apply(chart.tooltip, [this.point]);
5090
+ chart.tooltip.hide(0);
5091
+ }
5092
+ setContext(this);
5093
+ return `<div id="${generateChartTooltipPortalId(
5094
+ chart.index
5095
+ )}" role='tooltip'></div>`;
5096
+ };
5097
+ chart.update({ tooltip: { formatter } });
5098
+ }, [chart]);
5099
+ (0, import_react20.useEffect)(() => {
5100
+ if (context?.series?.chart?.tooltip) {
5101
+ const tooltip = context.series.chart.tooltip;
5102
+ const textElement = tooltip.label.text.element;
5103
+ tooltip.label.box.attr({
5104
+ height: textElement.offsetHeight,
5105
+ width: textElement.offsetWidth
5106
+ });
5107
+ setNode(
5108
+ document.getElementById(generateChartTooltipPortalId(chart.index))
5109
+ );
5110
+ }
5111
+ }, [context, chart.index]);
5112
+ return node && context ? (0, import_react_dom.createPortal)(renderContent(context), node) : null;
5113
+ }
5114
+ );
5115
+
5116
+ // src/helpers/transformDataToSeries.ts
5117
+ var transformDataToSeries = ({ data }, type) => {
5118
+ return data.map((dataItem, dataIndex) => {
5119
+ const points = dataItem.points || [];
5120
+ const dataPoints = points.map((point, pointsIndex) => {
5121
+ let enableMarker = false;
5122
+ const isFirstPoint = pointsIndex === 0;
5123
+ const isLastPoint = pointsIndex === points.length - 1;
5124
+ const previousY = isFirstPoint ? null : points[pointsIndex - 1].y;
5125
+ const nextY = isLastPoint ? null : points[pointsIndex + 1].y;
5126
+ if (isFirstPoint && nextY === null) {
5127
+ enableMarker = true;
5128
+ } else if (isLastPoint && previousY === null) {
5129
+ enableMarker = true;
5130
+ } else if (previousY === null && nextY === null) {
5131
+ enableMarker = true;
5132
+ }
5133
+ return {
5134
+ x: point.x,
5135
+ y: point.y,
5136
+ marker: {
5137
+ enabled: enableMarker ? enableMarker : void 0,
5138
+ symbol: enableMarker ? "circle" : void 0
5139
+ }
5140
+ };
5141
+ });
5142
+ return {
5143
+ colorIndex: dataIndex,
5144
+ data: dataPoints,
5145
+ name: dataItem.name,
5146
+ type
5147
+ };
5148
+ });
3462
5149
  };
3463
- var getDatavizColorWithAlpha = (colorIndex) => {
3464
- const color = getDatavizColor(colorIndex);
3465
- const opacity = getDatavizOpacity(colorIndex);
3466
- if (opacity < 0 || opacity > 1) {
3467
- return color;
5150
+
5151
+ // src/helpers/transformTimeSeriesTooltipData.ts
5152
+ var transformTimeSeriesTooltipData = ({
5153
+ context,
5154
+ data
5155
+ }) => {
5156
+ return (context.series.chart.series || []).map((series, index) => {
5157
+ const pointIndex = context.point.index;
5158
+ const { y: y2 } = series.points[pointIndex];
5159
+ return {
5160
+ color: data[index]?.styles?.color || theme_default.colors.DATAVIZ_COLORS_LIST[index],
5161
+ ...data[index]?.icon ? { icon: data[index]?.icon } : {},
5162
+ name: series.name,
5163
+ value: typeof y2 === "number" ? y2 : null
5164
+ };
5165
+ });
5166
+ };
5167
+
5168
+ // src/helpers/xAxisLabelFormatter.ts
5169
+ var xAxisLabelFormatter = ({
5170
+ textLocale,
5171
+ tickPositions = [],
5172
+ unitName,
5173
+ value
5174
+ }) => {
5175
+ const tickIndex = tickPositions.indexOf(value);
5176
+ const isFirst = tickIndex === 0;
5177
+ const previousValue = tickPositions[tickIndex - 1];
5178
+ const valueDate = new Date(value);
5179
+ const previousValueDate = new Date(previousValue);
5180
+ let firstPartOptions = {};
5181
+ let secondPartOptions = {};
5182
+ switch (unitName) {
5183
+ case "hour":
5184
+ firstPartOptions = { hour: "numeric" };
5185
+ if (isFirst || valueDate.getUTCDate() !== previousValueDate.getUTCDate()) {
5186
+ secondPartOptions = { day: "numeric", month: "short" };
5187
+ }
5188
+ break;
5189
+ case "day":
5190
+ case "week":
5191
+ firstPartOptions = { day: "numeric" };
5192
+ if (isFirst || valueDate.getUTCMonth() !== previousValueDate.getUTCMonth()) {
5193
+ secondPartOptions = { month: "short" };
5194
+ }
5195
+ break;
5196
+ case "month":
5197
+ firstPartOptions = { month: "short" };
5198
+ if (isFirst || valueDate.getUTCFullYear() !== previousValueDate.getUTCFullYear()) {
5199
+ secondPartOptions = { year: "numeric" };
5200
+ }
5201
+ break;
5202
+ case "year":
5203
+ firstPartOptions = { year: "numeric" };
5204
+ break;
5205
+ default:
5206
+ firstPartOptions = {};
5207
+ break;
3468
5208
  }
3469
- return `${color}${Math.floor(opacity * 255).toString(16).padStart(2, "0")}`;
5209
+ const firstPart = new Intl.DateTimeFormat(textLocale, {
5210
+ ...firstPartOptions,
5211
+ timeZone: "UTC"
5212
+ }).format(valueDate);
5213
+ const secondPart = Object.keys(secondPartOptions).length > 0 ? new Intl.DateTimeFormat(textLocale, {
5214
+ ...secondPartOptions,
5215
+ timeZone: "UTC"
5216
+ }).format(valueDate) : void 0;
5217
+ return `<span>${firstPart}</span>${secondPart ? `<span>${secondPart}</span>` : ""}`;
3470
5218
  };
3471
5219
 
3472
- // src/components/ColorBox/NetworkColorBox.tsx
3473
- var import_seeds_networkcolor2 = __toESM(require("@sproutsocial/seeds-networkcolor"));
3474
- var import_jsx_runtime6 = require("react/jsx-runtime");
3475
- var NetworkColorBox = ({
3476
- networkColor,
3477
- ...props
5220
+ // src/helpers/yAxisLabelFormatter.ts
5221
+ var import_racine3 = require("@sproutsocial/racine");
5222
+ var yAxisLabelFormatter = ({
5223
+ numberLocale,
5224
+ textLocale,
5225
+ tickPositions,
5226
+ value,
5227
+ currency = "USD",
5228
+ numberFormat = "decimal"
3478
5229
  }) => {
3479
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ColorBox, { ...props, bg: import_seeds_networkcolor2.default[networkColor] });
5230
+ const numberValue = Number(value);
5231
+ if (numberValue === 0) {
5232
+ return (0, import_racine3.formatNumeral)({
5233
+ locale: numberLocale,
5234
+ number: numberValue
5235
+ });
5236
+ }
5237
+ if (numberFormat === "duration") {
5238
+ return (0, import_racine3.formatDuration)({
5239
+ display: "narrow",
5240
+ locale: textLocale,
5241
+ milliseconds: numberValue
5242
+ });
5243
+ }
5244
+ const maxValue = tickPositions && tickPositions.length > 0 ? tickPositions[tickPositions.length - 1] : void 0;
5245
+ const abbreviate = typeof maxValue === "number" && maxValue > 9999 ? 1e3 : true;
5246
+ return (0, import_racine3.formatNumeral)({
5247
+ abbreviate,
5248
+ currency,
5249
+ format: numberFormat,
5250
+ locale: numberLocale,
5251
+ number: numberValue
5252
+ });
3480
5253
  };
3481
5254
 
5255
+ // src/hooks/useTimeSeriesChartOptions.ts
5256
+ var import_react21 = require("react");
5257
+ var import_highcharts = require("highcharts");
5258
+
3482
5259
  // src/constants/chartOptions.ts
3483
5260
  var import_lodash = __toESM(require("lodash"));
3484
5261
  var baseChartOptions = {
@@ -3553,185 +5330,841 @@ var timeSeriesChartOptions = import_lodash.default.merge({}, baseChartOptions, {
3553
5330
  text: void 0
3554
5331
  }
3555
5332
  }
3556
- });
3557
- var lineChartOptions = import_lodash.default.merge({}, timeSeriesChartOptions, {
3558
- // plotOptions.spline.events.click is set at the component level because of the optional onClick prop
3559
- });
3560
- var areaChartOptions = import_lodash.default.merge({}, timeSeriesChartOptions, {
3561
- plotOptions: {
3562
- areaspline: {
3563
- // events.click is set at the component level because of the optional onClick prop
3564
- stacking: "normal"
5333
+ });
5334
+ var lineChartOptions = import_lodash.default.merge({}, timeSeriesChartOptions, {
5335
+ // plotOptions.spline.events.click is set at the component level because of the optional onClick prop
5336
+ });
5337
+ var areaChartOptions = import_lodash.default.merge({}, timeSeriesChartOptions, {
5338
+ plotOptions: {
5339
+ areaspline: {
5340
+ // events.click is set at the component level because of the optional onClick prop
5341
+ stacking: "normal"
5342
+ }
5343
+ }
5344
+ });
5345
+ var DONUT_CHART_HALO_SIZE = 10;
5346
+ var DONUT_CHART_HEIGHT = 250 + DONUT_CHART_HALO_SIZE * 2;
5347
+ var DONUT_CHART_WIDTH = DONUT_CHART_HEIGHT;
5348
+ var donutChartOptions = import_lodash.default.merge({}, baseChartOptions, {
5349
+ chart: {
5350
+ height: DONUT_CHART_HEIGHT,
5351
+ spacing: [0, 0, 0, 0]
5352
+ },
5353
+ plotOptions: {
5354
+ pie: {
5355
+ animation: false,
5356
+ borderRadius: 0,
5357
+ // must be handled here instead of css because of path rendering
5358
+ dataLabels: {
5359
+ enabled: false
5360
+ },
5361
+ innerSize: "50%"
5362
+ }
5363
+ }
5364
+ });
5365
+
5366
+ // src/hooks/useTimeSeriesChartOptions.ts
5367
+ var useTimeSeriesChartOptions = ({
5368
+ data,
5369
+ numberLocale,
5370
+ seriesType,
5371
+ textLocale,
5372
+ currency = "USD",
5373
+ numberFormat = "decimal",
5374
+ yAxisLabelFormatter: yAxisLabelFormatter2,
5375
+ onClick
5376
+ }) => {
5377
+ const [options, setOptions] = (0, import_react21.useState)(
5378
+ seriesType === "areaspline" ? areaChartOptions : lineChartOptions
5379
+ );
5380
+ const [chart, setChart] = (0, import_react21.useState)(null);
5381
+ const callback = (0, import_react21.useCallback)((chartInstance) => {
5382
+ setChart(chartInstance);
5383
+ }, []);
5384
+ (0, import_react21.useEffect)(() => {
5385
+ setOptions({
5386
+ accessibility: {
5387
+ point: {
5388
+ descriptionFormatter: function() {
5389
+ return " ";
5390
+ }
5391
+ }
5392
+ },
5393
+ chart: {
5394
+ events: {
5395
+ click: onClick ? function() {
5396
+ return onClick({ x: this?.hoverPoint?.x });
5397
+ } : void 0,
5398
+ render: function() {
5399
+ const allPoints = this.series.flatMap((series) => series.data);
5400
+ const tooltipId = generateChartTooltipPortalId(this.index);
5401
+ allPoints.forEach((point) => {
5402
+ const pointElement = point?.graphic?.element;
5403
+ pointElement?.setAttribute("aria-describedby", tooltipId);
5404
+ pointElement?.addEventListener("focus", () => {
5405
+ point.series.chart.tooltip.refresh(point);
5406
+ });
5407
+ pointElement?.addEventListener("blur", () => {
5408
+ point.series.chart.tooltip.hide(0);
5409
+ });
5410
+ });
5411
+ }
5412
+ }
5413
+ },
5414
+ plotOptions: {
5415
+ areaspline: {
5416
+ events: {
5417
+ click: onClick && seriesType === "areaspline" ? function(event) {
5418
+ return onClick({ x: event.point.x });
5419
+ } : void 0
5420
+ }
5421
+ },
5422
+ spline: {
5423
+ events: {
5424
+ click: onClick && seriesType === "spline" ? function(event) {
5425
+ return onClick({ x: event.point.x });
5426
+ } : void 0
5427
+ }
5428
+ }
5429
+ },
5430
+ series: transformDataToSeries({ data }, seriesType),
5431
+ xAxis: {
5432
+ labels: {
5433
+ formatter: function() {
5434
+ return xAxisLabelFormatter({
5435
+ textLocale,
5436
+ tickPositions: this.axis.tickPositions || [],
5437
+ unitName: this.tickPositionInfo.unitName,
5438
+ value: this.value
5439
+ });
5440
+ }
5441
+ }
5442
+ },
5443
+ yAxis: {
5444
+ labels: {
5445
+ formatter: function() {
5446
+ return yAxisLabelFormatter2 ? yAxisLabelFormatter2({
5447
+ y: this.value,
5448
+ yValues: this.axis.tickPositions
5449
+ }) : yAxisLabelFormatter({
5450
+ currency,
5451
+ numberFormat,
5452
+ numberLocale,
5453
+ textLocale,
5454
+ tickPositions: this.axis.tickPositions || [],
5455
+ value: this.value
5456
+ });
5457
+ }
5458
+ }
5459
+ }
5460
+ });
5461
+ }, [
5462
+ currency,
5463
+ data,
5464
+ numberFormat,
5465
+ numberLocale,
5466
+ onClick,
5467
+ seriesType,
5468
+ textLocale,
5469
+ yAxisLabelFormatter2
5470
+ ]);
5471
+ return { options, chart, callback };
5472
+ };
5473
+
5474
+ // src/styles/chartStyles.ts
5475
+ var import_styled_components14 = require("styled-components");
5476
+ var baseChartStyles = import_styled_components14.css`
5477
+ // set color variables and map to each series
5478
+ ${({ $colors }) => $colors.map((color2, index) => {
5479
+ const chartColor = color2 || theme_default.colors.DATAVIZ_COLORS_LIST[index];
5480
+ return `
5481
+ // map colors to custom assigned colors or fallback to default data viz color rotation
5482
+ --highcharts-color-${index}: ${chartColor};
5483
+
5484
+ // highcharts already accounts for 10 series, but if we have more, we need to add them
5485
+ .highcharts-color-${index} {
5486
+ color: var(--highcharts-color-${index});
5487
+ stroke: var(--highcharts-color-${index});
5488
+ fill: var(--highcharts-color-${index});
5489
+ }`;
5490
+ }).join("\n")}
5491
+
5492
+ // set overall chart background color
5493
+ .highcharts-background {
5494
+ fill: ${({ theme: theme2 }) => theme2.colors.container.background.base};
5495
+ }
5496
+ `;
5497
+ var timeSeriesChartStyles = import_styled_components14.css`
5498
+ ${baseChartStyles}
5499
+
5500
+ // vertical crosshair styles
5501
+ .highcharts-crosshair {
5502
+ stroke: ${({ theme: theme2 }) => theme2.colors.container.border.decorative.neutral};
5503
+ stroke-width: 1;
5504
+ }
5505
+
5506
+ // axis and gridline styles
5507
+ .highcharts-grid-line {
5508
+ stroke: ${({ theme: theme2 }) => theme2.colors.container.border.base};
5509
+ }
5510
+ .highcharts-axis-line {
5511
+ stroke: ${({ theme: theme2 }) => theme2.colors.container.border.base};
5512
+ }
5513
+ .highcharts-tick {
5514
+ stroke: none;
5515
+ }
5516
+ .highcharts-xaxis-labels,
5517
+ .highcharts-yaxis-labels {
5518
+ > span {
5519
+ font-family: ${({ theme: theme2 }) => theme2.fontFamily};
5520
+ ${({ theme: theme2 }) => theme2.typography[100]};
5521
+ font-weight: ${({ theme: theme2 }) => theme2.fontWeights.normal};
5522
+ color: ${({ theme: theme2 }) => theme2.colors.text.subtext};
5523
+ }
5524
+ }
5525
+ .highcharts-xaxis-labels {
5526
+ > span {
5527
+ display: flex;
5528
+ flex-direction: column;
5529
+ align-items: center;
5530
+ > span:nth-of-type(2) {
5531
+ font-weight: ${({ theme: theme2 }) => theme2.fontWeights.semibold};
5532
+ }
3565
5533
  }
3566
5534
  }
5535
+
5536
+ // we don't want to drop the opacity when another item is hovered
5537
+ .highcharts-series-inactive {
5538
+ opacity: 1;
5539
+ }
5540
+
5541
+ // apply cursor pointer when click functionality is turned on
5542
+ ${({ $hasOnClick }) => $hasOnClick && `
5543
+ .highcharts-series,
5544
+ .highcharts-point {
5545
+ cursor: pointer;
5546
+ }
5547
+ .highcharts-plot-background,
5548
+ .highcharts-crosshair,
5549
+ .highcharts-grid-line {
5550
+ fill: transparent;
5551
+ cursor: pointer;
5552
+ }`}
5553
+ `;
5554
+ var lineChartStyles = import_styled_components14.css`
5555
+ ${timeSeriesChartStyles}
5556
+
5557
+ // set the line stroke
5558
+ .highcharts-graph {
5559
+ stroke-width: 3;
5560
+ }
5561
+
5562
+ // dashed line styles
5563
+ ${({ $patterns }) => $patterns.map((pattern, index) => {
5564
+ return pattern === "dashed" ? `
5565
+ // highcharts already accounts for 10 series, but if we have more, we need to add them
5566
+ .highcharts-series-${index} {
5567
+ stroke-dasharray: 2, 8;
5568
+ }` : "";
5569
+ })}
5570
+ `;
5571
+ var areaChartStyles = import_styled_components14.css`
5572
+ ${timeSeriesChartStyles}
5573
+
5574
+ // don't need to show a stroke for the line part of each area
5575
+ .highcharts-graph {
5576
+ stroke-width: 0;
5577
+ }
5578
+
5579
+ // fill areas to full opacity
5580
+ .highcharts-area {
5581
+ fill-opacity: 1;
5582
+ }
5583
+ `;
5584
+ var donutChartStyles = import_styled_components14.css`
5585
+ ${baseChartStyles}
5586
+
5587
+ // remove 250ms fade in/out when hovering over different donut chart slices
5588
+ .highcharts-point {
5589
+ transition: opacity 0s;
5590
+ }
5591
+
5592
+ // remove stroke on donut slices
5593
+ .highcharts-point,
5594
+ .highcharts-pie-series {
5595
+ stroke: none;
5596
+ }
5597
+
5598
+ // don't reduce opacity when hovering
5599
+ .highcharts-point-hover {
5600
+ fill-opacity: none;
5601
+ }
5602
+ `;
5603
+
5604
+ // src/components/AreaChart/AreaChart.tsx
5605
+ var import_jsx_runtime19 = require("react/jsx-runtime");
5606
+ (0, import_accessibility.default)(import_highcharts2.default);
5607
+ var StyledBox3 = (0, import_styled_components15.default)(Box_default)`
5608
+ ${areaChartStyles}
5609
+ `;
5610
+ var AreaChart = (0, import_react22.memo)(function AreaChart2(props) {
5611
+ const { data } = props;
5612
+ return data.length === 0 ? null : /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(AreaChartWithData, { ...props });
3567
5613
  });
3568
- var DONUT_CHART_HALO_SIZE = 10;
3569
- var DONUT_CHART_HEIGHT = 250 + DONUT_CHART_HALO_SIZE * 2;
3570
- var DONUT_CHART_WIDTH = DONUT_CHART_HEIGHT;
3571
- var donutChartOptions = import_lodash.default.merge({}, baseChartOptions, {
3572
- chart: {
3573
- height: DONUT_CHART_HEIGHT,
3574
- spacing: [0, 0, 0, 0]
3575
- },
3576
- plotOptions: {
3577
- pie: {
3578
- animation: false,
3579
- borderRadius: 0,
3580
- // must be handled here instead of css because of path rendering
3581
- dataLabels: {
3582
- enabled: false
3583
- },
3584
- innerSize: "50%"
5614
+ var AreaChartWithData = (0, import_react22.memo)(function AreaChartWithData2({
5615
+ data,
5616
+ invalidNumberLabel,
5617
+ numberLocale = "en-us",
5618
+ textLocale = "en-us",
5619
+ tooltipDateFormatter,
5620
+ tooltipTotalLabel,
5621
+ // optional
5622
+ currency = "USD",
5623
+ numberFormat = "decimal",
5624
+ tooltip,
5625
+ yAxisLabelFormatter: yAxisLabelFormatter2,
5626
+ onClick,
5627
+ tooltipClickLabel
5628
+ }) {
5629
+ const { options, chart, callback } = useTimeSeriesChartOptions({
5630
+ currency,
5631
+ data,
5632
+ numberFormat,
5633
+ numberLocale,
5634
+ seriesType: "areaspline",
5635
+ textLocale,
5636
+ yAxisLabelFormatter: yAxisLabelFormatter2,
5637
+ onClick
5638
+ });
5639
+ const colors3 = data.map(
5640
+ (series, index) => series.styles?.color ?? theme_default.colors.DATAVIZ_COLORS_LIST[index]
5641
+ );
5642
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
5643
+ StyledBox3,
5644
+ {
5645
+ $colors: colors3,
5646
+ $hasOnClick: Boolean(onClick),
5647
+ bg: "container.background.base",
5648
+ children: [
5649
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
5650
+ import_highcharts_react_official.HighchartsReact,
5651
+ {
5652
+ highcharts: import_highcharts2.default,
5653
+ options,
5654
+ callback
5655
+ }
5656
+ ),
5657
+ chart ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
5658
+ ChartTooltipPortal,
5659
+ {
5660
+ chart,
5661
+ renderContent: (context) => {
5662
+ const tooltipData = transformTimeSeriesTooltipData({
5663
+ context,
5664
+ data
5665
+ });
5666
+ const x = context.x;
5667
+ const total = context.total;
5668
+ return tooltip ? tooltip({ data: tooltipData, total, x }) : /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
5669
+ AreaChartTooltip,
5670
+ {
5671
+ currency,
5672
+ data: tooltipData,
5673
+ invalidNumberLabel,
5674
+ numberFormat,
5675
+ numberLocale,
5676
+ textLocale,
5677
+ tooltipDateFormatter,
5678
+ tooltipTotalLabel,
5679
+ total,
5680
+ x,
5681
+ onClick,
5682
+ tooltipClickLabel
5683
+ }
5684
+ );
5685
+ }
5686
+ }
5687
+ ) : null,
5688
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Box_default, { mt: 350, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(AreaChartLegend, { data }) })
5689
+ ]
3585
5690
  }
3586
- }
5691
+ );
3587
5692
  });
3588
5693
 
3589
- // src/helpers/transformDataToSeries.ts
3590
- var transformDataToSeries = ({ data }, type) => {
3591
- return data.map((dataItem, dataIndex) => {
3592
- const points = dataItem.points || [];
3593
- const dataPoints = points.map((point, pointsIndex) => {
3594
- let enableMarker = false;
3595
- const isFirstPoint = pointsIndex === 0;
3596
- const isLastPoint = pointsIndex === points.length - 1;
3597
- const previousY = isFirstPoint ? null : points[pointsIndex - 1].y;
3598
- const nextY = isLastPoint ? null : points[pointsIndex + 1].y;
3599
- if (isFirstPoint && nextY === null) {
3600
- enableMarker = true;
3601
- } else if (isLastPoint && previousY === null) {
3602
- enableMarker = true;
3603
- } else if (previousY === null && nextY === null) {
3604
- enableMarker = true;
3605
- }
3606
- return {
3607
- x: point.x,
3608
- y: point.y,
3609
- marker: {
3610
- enabled: enableMarker ? enableMarker : void 0,
3611
- symbol: enableMarker ? "circle" : void 0
3612
- }
3613
- };
3614
- });
3615
- return {
3616
- colorIndex: dataIndex,
3617
- data: dataPoints,
3618
- name: dataItem.name,
3619
- type
3620
- };
3621
- });
5694
+ // src/components/DonutChart/DonutChart.tsx
5695
+ var import_react25 = require("react");
5696
+ var import_highcharts3 = __toESM(require("highcharts"));
5697
+ var import_highcharts_react_official2 = require("highcharts-react-official");
5698
+ var import_accessibility2 = __toESM(require("highcharts/modules/accessibility"));
5699
+ var import_styled_components16 = __toESM(require("styled-components"));
5700
+
5701
+ // src/components/DonutChart/components/DonutChartLegend.tsx
5702
+ var import_react23 = require("react");
5703
+ var import_jsx_runtime20 = require("react/jsx-runtime");
5704
+ var getDonutChartLegendLabels = ({
5705
+ data
5706
+ }) => {
5707
+ return data.map((slice, index) => ({
5708
+ content: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(ChartLegendLabelContentWithIcon, { icon: slice.icon, children: slice.name }),
5709
+ color: slice.styles?.color || theme_default.colors.DATAVIZ_COLORS_LIST[index]
5710
+ }));
3622
5711
  };
5712
+ var DonutChartLegend = (0, import_react23.memo)(
5713
+ function DonutChartLegend2({ data }) {
5714
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(ChartLegend, { legendLabels: getDonutChartLegendLabels({ data }) });
5715
+ }
5716
+ );
3623
5717
 
3624
- // src/helpers/transformTimeSeriesTooltipData.ts
3625
- var transformTimeSeriesTooltipData = ({
5718
+ // src/components/DonutChart/components/DonutChartTooltip.tsx
5719
+ var import_react24 = require("react");
5720
+ var import_racine4 = require("@sproutsocial/racine");
5721
+ var import_jsx_runtime21 = require("react/jsx-runtime");
5722
+ var DonutChartTooltip = (0, import_react24.memo)(
5723
+ function DonutChartTooltip2({
5724
+ color: color2,
5725
+ name,
5726
+ numberLocale,
5727
+ percent,
5728
+ textLocale,
5729
+ value,
5730
+ currency,
5731
+ icon,
5732
+ numberFormat
5733
+ }) {
5734
+ const rows = [
5735
+ {
5736
+ cells: [
5737
+ {
5738
+ content: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(ChartLegendLabel, { color: color2, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(ChartLegendLabelContentWithIcon, { icon, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Text_default, { "aria-label": `${name}: `, children: name }) }) })
5739
+ },
5740
+ {
5741
+ content: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(Box_default, { display: "inline-flex", alignItems: "center", gap: 350, children: [
5742
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
5743
+ import_racine4.Numeral,
5744
+ {
5745
+ number: percent,
5746
+ format: "percent",
5747
+ abbreviate: false,
5748
+ locale: numberLocale
5749
+ }
5750
+ ),
5751
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Text_default, { fontWeight: "semibold", children: numberFormat === "duration" ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_racine4.Duration, { locale: textLocale, milliseconds: value }) : /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
5752
+ import_racine4.Numeral,
5753
+ {
5754
+ abbreviate: false,
5755
+ currency,
5756
+ format: numberFormat,
5757
+ locale: numberLocale,
5758
+ number: value
5759
+ }
5760
+ ) })
5761
+ ] }),
5762
+ align: "right"
5763
+ }
5764
+ ]
5765
+ }
5766
+ ];
5767
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(ChartTooltip, { children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(ChartTooltipTable, { rows }) });
5768
+ }
5769
+ );
5770
+
5771
+ // src/components/DonutChart/helpers/transformDonutChartTooltipData.ts
5772
+ var transformDonutChartTooltipData = ({
3626
5773
  context,
3627
5774
  data
3628
5775
  }) => {
3629
- return (context.series.chart.series || []).map((series, index) => {
3630
- const pointIndex = context.point.index;
3631
- const { y: y2 } = series.points[pointIndex];
3632
- return {
3633
- color: data[index]?.styles?.color || theme_default.colors.DATAVIZ_COLORS_LIST[index],
3634
- ...data[index]?.icon ? { icon: data[index]?.icon } : {},
3635
- name: series.name,
3636
- value: typeof y2 === "number" ? y2 : null
3637
- };
3638
- });
5776
+ const colorIndex = context.colorIndex;
5777
+ return {
5778
+ color: data[colorIndex]?.styles?.color ?? theme_default.colors.DATAVIZ_COLORS_LIST[colorIndex] ?? "",
5779
+ ...data[colorIndex]?.icon ? { icon: data[colorIndex]?.icon } : {},
5780
+ name: context.key,
5781
+ percent: context.percentage,
5782
+ value: context.y
5783
+ };
3639
5784
  };
3640
5785
 
3641
- // src/helpers/xAxisLabelFormatter.ts
3642
- var xAxisLabelFormatter = ({
3643
- textLocale,
3644
- tickPositions = [],
3645
- unitName,
3646
- value
3647
- }) => {
3648
- const tickIndex = tickPositions.indexOf(value);
3649
- const isFirst = tickIndex === 0;
3650
- const previousValue = tickPositions[tickIndex - 1];
3651
- const valueDate = new Date(value);
3652
- const previousValueDate = new Date(previousValue);
3653
- let firstPartOptions = {};
3654
- let secondPartOptions = {};
3655
- switch (unitName) {
3656
- case "hour":
3657
- firstPartOptions = { hour: "numeric" };
3658
- if (isFirst || valueDate.getUTCDate() !== previousValueDate.getUTCDate()) {
3659
- secondPartOptions = { day: "numeric", month: "short" };
3660
- }
3661
- break;
3662
- case "day":
3663
- case "week":
3664
- firstPartOptions = { day: "numeric" };
3665
- if (isFirst || valueDate.getUTCMonth() !== previousValueDate.getUTCMonth()) {
3666
- secondPartOptions = { month: "short" };
5786
+ // src/components/DonutChart/DonutChart.tsx
5787
+ var import_jsx_runtime22 = require("react/jsx-runtime");
5788
+ (0, import_accessibility2.default)(import_highcharts3.default);
5789
+ var StyledBox4 = (0, import_styled_components16.default)(Box_default)`
5790
+ ${donutChartStyles}
5791
+ `;
5792
+ var DonutChart = (0, import_react25.memo)(function DonutChart2(props) {
5793
+ const { data } = props;
5794
+ return data.length === 0 ? null : /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(DonutChartWithData, { ...props });
5795
+ });
5796
+ var DonutChartWithData = (0, import_react25.memo)(
5797
+ function DonutChartWithData2({
5798
+ data,
5799
+ numberLocale = "en-us",
5800
+ textLocale = "en-us",
5801
+ // optional
5802
+ currency = "USD",
5803
+ hideLegend = false,
5804
+ numberFormat = "decimal",
5805
+ tooltip
5806
+ }) {
5807
+ const [options, setOptions] = (0, import_react25.useState)(donutChartOptions);
5808
+ const [chart, setChart] = (0, import_react25.useState)(null);
5809
+ const callback = (0, import_react25.useCallback)((chartInstance) => {
5810
+ setChart(chartInstance);
5811
+ }, []);
5812
+ (0, import_react25.useEffect)(() => {
5813
+ setOptions({
5814
+ accessibility: {
5815
+ point: {
5816
+ descriptionFormatter: function() {
5817
+ return " ";
5818
+ }
5819
+ }
5820
+ },
5821
+ chart: {
5822
+ events: {
5823
+ render: function() {
5824
+ const allSlices = this.series[0]?.data ?? [];
5825
+ const tooltipId = generateChartTooltipPortalId(this.index);
5826
+ allSlices.forEach((slice) => {
5827
+ const sliceElement = slice?.graphic?.element;
5828
+ sliceElement?.setAttribute("aria-describedby", tooltipId);
5829
+ sliceElement?.addEventListener("focus", () => {
5830
+ slice.series.chart.tooltip.refresh(slice);
5831
+ });
5832
+ sliceElement?.addEventListener("blur", () => {
5833
+ slice.series.chart.tooltip.hide(0);
5834
+ });
5835
+ });
5836
+ }
5837
+ }
5838
+ },
5839
+ series: [
5840
+ {
5841
+ type: "pie",
5842
+ data: data.map((item, index) => {
5843
+ return {
5844
+ name: item.name,
5845
+ y: item.value,
5846
+ colorIndex: index
5847
+ };
5848
+ })
5849
+ }
5850
+ ]
5851
+ });
5852
+ }, [data]);
5853
+ const colors3 = data.map(
5854
+ (series, index) => series.styles?.color ?? theme_default.colors.DATAVIZ_COLORS_LIST[index] ?? ""
5855
+ );
5856
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(StyledBox4, { $colors: colors3, bg: "container.background.base", children: [
5857
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
5858
+ import_highcharts_react_official2.HighchartsReact,
5859
+ {
5860
+ highcharts: import_highcharts3.default,
5861
+ options,
5862
+ callback
5863
+ }
5864
+ ),
5865
+ chart ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
5866
+ ChartTooltipPortal,
5867
+ {
5868
+ chart,
5869
+ renderContent: (context) => {
5870
+ const { color: color2, icon, name, percent, value } = transformDonutChartTooltipData({ context, data });
5871
+ return tooltip ? tooltip({ color: color2, icon, name, percent, value }) : /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
5872
+ DonutChartTooltip,
5873
+ {
5874
+ color: color2,
5875
+ currency,
5876
+ icon,
5877
+ name,
5878
+ numberFormat,
5879
+ numberLocale,
5880
+ percent,
5881
+ textLocale,
5882
+ value
5883
+ }
5884
+ );
5885
+ }
5886
+ }
5887
+ ) : null,
5888
+ hideLegend ? null : /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Box_default, { mt: 350, children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(DonutChartLegend, { data }) })
5889
+ ] });
5890
+ }
5891
+ );
5892
+
5893
+ // src/components/DonutChart/components/DonutChartLegendTable.tsx
5894
+ var import_react26 = require("react");
5895
+ var import_racine5 = require("@sproutsocial/racine");
5896
+ var import_jsx_runtime23 = require("react/jsx-runtime");
5897
+ var DonutChartLegendTable = (0, import_react26.memo)(
5898
+ function DonutChartLegendTable2({
5899
+ data,
5900
+ numberLocale = "en-us",
5901
+ textLocale = "en-us",
5902
+ totalLabel,
5903
+ // optional
5904
+ currency = "USD",
5905
+ numberFormat = "decimal"
5906
+ }) {
5907
+ const total = data.reduce(
5908
+ (accumulator, dataItem) => accumulator + dataItem.value,
5909
+ 0
5910
+ );
5911
+ const rows = data.map((dataPoint, index) => {
5912
+ const { name, icon, styles, value } = dataPoint;
5913
+ const color2 = styles?.color || theme_default.colors.DATAVIZ_COLORS_LIST[index];
5914
+ return {
5915
+ cells: [
5916
+ {
5917
+ content: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(ChartLegendLabel, { color: color2, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(ChartLegendLabelContentWithIcon, { icon, children: name }) })
5918
+ },
5919
+ {
5920
+ content: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(Box_default, { display: "inline-flex", alignItems: "center", gap: 350, children: [
5921
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Text_default, { color: "text.body", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
5922
+ import_racine5.Numeral,
5923
+ {
5924
+ abbreviate: false,
5925
+ format: "percent",
5926
+ locale: numberLocale,
5927
+ number: value / total * 100
5928
+ }
5929
+ ) }),
5930
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Text_default, { color: "text.body", fontWeight: "semibold", children: numberFormat === "duration" ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_racine5.Duration, { locale: textLocale, milliseconds: value }) : /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
5931
+ import_racine5.Numeral,
5932
+ {
5933
+ abbreviate: false,
5934
+ currency,
5935
+ format: numberFormat,
5936
+ locale: numberLocale,
5937
+ number: value
5938
+ }
5939
+ ) })
5940
+ ] }),
5941
+ align: "right"
5942
+ }
5943
+ ]
5944
+ };
5945
+ });
5946
+ const totalRow = [
5947
+ {
5948
+ cells: [
5949
+ {
5950
+ content: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Text_default, { fontWeight: "semibold", color: "text.headline", children: totalLabel })
5951
+ },
5952
+ {
5953
+ content: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Text_default, { color: "text.body", fontWeight: "bold", children: numberFormat === "duration" ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_racine5.Duration, { locale: textLocale, milliseconds: total }) : /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
5954
+ import_racine5.Numeral,
5955
+ {
5956
+ abbreviate: false,
5957
+ currency,
5958
+ format: numberFormat,
5959
+ locale: numberLocale,
5960
+ number: total
5961
+ }
5962
+ ) }),
5963
+ align: "right"
5964
+ }
5965
+ ],
5966
+ isAppendedRow: true
3667
5967
  }
3668
- break;
3669
- case "month":
3670
- firstPartOptions = { month: "short" };
3671
- if (isFirst || valueDate.getUTCFullYear() !== previousValueDate.getUTCFullYear()) {
3672
- secondPartOptions = { year: "numeric" };
5968
+ ];
5969
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
5970
+ ChartTable,
5971
+ {
5972
+ rows: [...rows, ...totalRow]
3673
5973
  }
3674
- break;
3675
- case "year":
3676
- firstPartOptions = { year: "numeric" };
3677
- break;
3678
- default:
3679
- firstPartOptions = {};
3680
- break;
5974
+ );
3681
5975
  }
3682
- const firstPart = new Intl.DateTimeFormat(textLocale, {
3683
- ...firstPartOptions,
3684
- timeZone: "UTC"
3685
- }).format(valueDate);
3686
- const secondPart = Object.keys(secondPartOptions).length > 0 ? new Intl.DateTimeFormat(textLocale, {
3687
- ...secondPartOptions,
3688
- timeZone: "UTC"
3689
- }).format(valueDate) : void 0;
3690
- return `<span>${firstPart}</span>${secondPart ? `<span>${secondPart}</span>` : ""}`;
3691
- };
5976
+ );
3692
5977
 
3693
- // src/helpers/yAxisLabelFormatter.ts
3694
- var import_racine2 = require("@sproutsocial/racine");
3695
- var yAxisLabelFormatter = ({
3696
- numberLocale,
3697
- textLocale,
3698
- tickPositions,
3699
- value,
3700
- currency = "USD",
3701
- numberFormat = "decimal"
5978
+ // src/components/LineChart/LineChart.tsx
5979
+ var import_react29 = require("react");
5980
+ var import_highcharts4 = __toESM(require("highcharts"));
5981
+ var import_highcharts_react_official3 = require("highcharts-react-official");
5982
+ var import_accessibility3 = __toESM(require("highcharts/modules/accessibility"));
5983
+ var import_styled_components17 = __toESM(require("styled-components"));
5984
+
5985
+ // src/components/LineChart/components/LineChartLegend.tsx
5986
+ var import_react27 = require("react");
5987
+ var import_jsx_runtime24 = require("react/jsx-runtime");
5988
+ var getLineChartLegendLabels = ({
5989
+ data
3702
5990
  }) => {
3703
- const numberValue = Number(value);
3704
- if (numberValue === 0) {
3705
- return (0, import_racine2.formatNumeral)({
3706
- locale: numberLocale,
3707
- number: numberValue
3708
- });
5991
+ return data.map((series, index) => ({
5992
+ content: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(ChartLegendLabelContentWithIcon, { icon: series.icon, children: series.name }),
5993
+ color: series.styles?.color || theme_default.colors.DATAVIZ_COLORS_LIST[index]
5994
+ }));
5995
+ };
5996
+ var LineChartLegend = (0, import_react27.memo)(
5997
+ function LineChartLegend2({ data }) {
5998
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(ChartLegend, { legendLabels: getLineChartLegendLabels({ data }) });
3709
5999
  }
3710
- if (numberFormat === "duration") {
3711
- return (0, import_racine2.formatDuration)({
3712
- display: "narrow",
3713
- locale: textLocale,
3714
- milliseconds: numberValue
6000
+ );
6001
+
6002
+ // src/components/LineChart/components/LineChartTooltip.tsx
6003
+ var import_react28 = require("react");
6004
+ var import_racine6 = require("@sproutsocial/racine");
6005
+ var import_jsx_runtime25 = require("react/jsx-runtime");
6006
+ var LineChartTooltip = (0, import_react28.memo)(
6007
+ function LineChartTooltip2({
6008
+ data,
6009
+ invalidNumberLabel,
6010
+ numberLocale,
6011
+ textLocale,
6012
+ tooltipDateFormatter,
6013
+ x,
6014
+ // optional
6015
+ currency = "USD",
6016
+ numberFormat = "decimal",
6017
+ onClick,
6018
+ tooltipClickLabel
6019
+ }) {
6020
+ const rows = data.map(({ color: color2, icon, name, value }) => {
6021
+ return {
6022
+ cells: [
6023
+ {
6024
+ content: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(ChartLegendLabel, { color: color2, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(ChartLegendLabelContentWithIcon, { icon, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Text_default, { "aria-label": `${name}: `, children: name }) }) })
6025
+ },
6026
+ {
6027
+ content: value === null && invalidNumberLabel ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Text_default, { children: invalidNumberLabel }) : numberFormat === "duration" ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_racine6.Duration, { locale: textLocale, milliseconds: value }) : /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
6028
+ import_racine6.Numeral,
6029
+ {
6030
+ abbreviate: false,
6031
+ currency,
6032
+ format: numberFormat,
6033
+ locale: numberLocale,
6034
+ number: value
6035
+ }
6036
+ ),
6037
+ align: "right"
6038
+ }
6039
+ ]
6040
+ };
3715
6041
  });
6042
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(ChartTooltip, { children: [
6043
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(ChartTooltipTitle, { children: tooltipDateFormatter({ x }) }),
6044
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(ChartTooltipTable, { rows }),
6045
+ onClick && tooltipClickLabel ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(ChartTooltipFooter, { children: typeof tooltipClickLabel === "string" ? /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: 300, children: [
6046
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Icon_default, { name: "hand-pointer-clicking-outline", color: "icon.base" }),
6047
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Text_default, { color: "text.subtext", fontSize: 200, children: tooltipClickLabel })
6048
+ ] }) : tooltipClickLabel }) : null
6049
+ ] });
3716
6050
  }
3717
- const maxValue = tickPositions && tickPositions.length > 0 ? tickPositions[tickPositions.length - 1] : void 0;
3718
- const abbreviate = typeof maxValue === "number" && maxValue > 9999 ? 1e3 : true;
3719
- return (0, import_racine2.formatNumeral)({
3720
- abbreviate,
6051
+ );
6052
+
6053
+ // src/components/LineChart/LineChart.tsx
6054
+ var import_jsx_runtime26 = require("react/jsx-runtime");
6055
+ (0, import_accessibility3.default)(import_highcharts4.default);
6056
+ var StyledBox5 = (0, import_styled_components17.default)(Box_default)`
6057
+ ${lineChartStyles}
6058
+ `;
6059
+ var LineChart = (0, import_react29.memo)(function LineChart2(props) {
6060
+ const { data } = props;
6061
+ return data.length === 0 ? null : /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(LineChartWithData, { ...props });
6062
+ });
6063
+ var LineChartWithData = (0, import_react29.memo)(function LineChartWithData2({
6064
+ data,
6065
+ invalidNumberLabel,
6066
+ numberLocale = "en-us",
6067
+ textLocale = "en-us",
6068
+ tooltipDateFormatter,
6069
+ // optional
6070
+ currency = "USD",
6071
+ numberFormat = "decimal",
6072
+ tooltip,
6073
+ yAxisLabelFormatter: yAxisLabelFormatter2,
6074
+ onClick,
6075
+ tooltipClickLabel
6076
+ }) {
6077
+ const { options, chart, callback } = useTimeSeriesChartOptions({
3721
6078
  currency,
3722
- format: numberFormat,
3723
- locale: numberLocale,
3724
- number: numberValue
6079
+ data,
6080
+ numberFormat,
6081
+ numberLocale,
6082
+ seriesType: "spline",
6083
+ textLocale,
6084
+ yAxisLabelFormatter: yAxisLabelFormatter2,
6085
+ onClick
3725
6086
  });
3726
- };
6087
+ const { colors: colors3, patterns } = data.reduce(
6088
+ (acc, item, index) => {
6089
+ acc.colors.push(
6090
+ item.styles?.color ?? theme_default.colors.DATAVIZ_COLORS_LIST[index] ?? ""
6091
+ );
6092
+ acc.patterns.push(item.styles?.pattern ?? "solid");
6093
+ return acc;
6094
+ },
6095
+ {
6096
+ colors: [],
6097
+ patterns: []
6098
+ }
6099
+ );
6100
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
6101
+ StyledBox5,
6102
+ {
6103
+ $colors: colors3,
6104
+ $patterns: patterns,
6105
+ $hasOnClick: Boolean(onClick),
6106
+ bg: "container.background.base",
6107
+ children: [
6108
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
6109
+ import_highcharts_react_official3.HighchartsReact,
6110
+ {
6111
+ highcharts: import_highcharts4.default,
6112
+ options,
6113
+ callback
6114
+ }
6115
+ ),
6116
+ chart ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
6117
+ ChartTooltipPortal,
6118
+ {
6119
+ chart,
6120
+ renderContent: (context) => {
6121
+ const tooltipData = transformTimeSeriesTooltipData({
6122
+ context,
6123
+ data
6124
+ });
6125
+ const x = context.x;
6126
+ return tooltip ? tooltip({ data: tooltipData, x }) : /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
6127
+ LineChartTooltip,
6128
+ {
6129
+ currency,
6130
+ data: tooltipData,
6131
+ invalidNumberLabel,
6132
+ numberFormat,
6133
+ numberLocale,
6134
+ textLocale,
6135
+ tooltipDateFormatter,
6136
+ x,
6137
+ onClick,
6138
+ tooltipClickLabel
6139
+ }
6140
+ );
6141
+ }
6142
+ }
6143
+ ) : null,
6144
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Box_default, { mt: 350, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(LineChartLegend, { data }) })
6145
+ ]
6146
+ }
6147
+ );
6148
+ });
3727
6149
  // Annotate the CommonJS export names for ESM import in node:
3728
6150
  0 && (module.exports = {
6151
+ AreaChart,
6152
+ ChartLegend,
6153
+ ChartLegendLabel,
3729
6154
  ChartTable,
6155
+ ChartTooltip,
6156
+ ChartTooltipFooter,
6157
+ ChartTooltipHeader,
6158
+ ChartTooltipTable,
6159
+ ChartTooltipTitle,
3730
6160
  ColorBox,
3731
6161
  DONUT_CHART_HALO_SIZE,
3732
6162
  DONUT_CHART_HEIGHT,
3733
6163
  DONUT_CHART_WIDTH,
3734
6164
  DatavizColorBox,
6165
+ DonutChart,
6166
+ DonutChartLegendTable,
6167
+ LineChart,
3735
6168
  NetworkColorBox,
3736
6169
  TIME_SERIES_CHART_HEIGHT,
3737
6170
  areaChartOptions,
@@ -3748,6 +6181,15 @@ var yAxisLabelFormatter = ({
3748
6181
  });
3749
6182
  /*! Bundled license information:
3750
6183
 
6184
+ object-assign/index.js:
6185
+ (*
6186
+ object-assign
6187
+ (c) Sindre Sorhus
6188
+ @license MIT
6189
+ *)
6190
+ */
6191
+ /*! Bundled license information:
6192
+
3751
6193
  object-assign/index.js:
3752
6194
  (*
3753
6195
  object-assign