@sproutsocial/seeds-react-data-viz 0.18.0 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bar/index.d.mts +20 -4
- package/dist/bar/index.d.ts +20 -4
- package/dist/bar/index.js +53 -85
- package/dist/bar/index.js.map +1 -1
- package/dist/bar.css +39 -0
- package/dist/chart-styles.css +295 -0
- package/dist/charts.css +583 -0
- package/dist/{chunk-XP7HNV23.js → chunk-27M4FDNK.js} +16 -17
- package/dist/chunk-27M4FDNK.js.map +1 -0
- package/dist/chunk-46L4YBLC.js +544 -0
- package/dist/chunk-46L4YBLC.js.map +1 -0
- package/dist/chunk-6EIJCJCN.js +22 -0
- package/dist/chunk-6EIJCJCN.js.map +1 -0
- package/dist/{chunk-GVAMWFB7.js → chunk-XYE6O77Z.js} +3 -3
- package/dist/{chunk-GVAMWFB7.js.map → chunk-XYE6O77Z.js.map} +1 -1
- package/dist/donut/index.d.mts +21 -4
- package/dist/donut/index.d.ts +21 -4
- package/dist/donut/index.js +39 -49
- package/dist/donut/index.js.map +1 -1
- package/dist/donut.css +45 -0
- package/dist/esm/bar/index.js +42 -74
- package/dist/esm/bar/index.js.map +1 -1
- package/dist/esm/{chunk-X2KAXY3P.js → chunk-KMFRRUTY.js} +2 -2
- package/dist/esm/chunk-P3MVYSHX.js +22 -0
- package/dist/esm/chunk-P3MVYSHX.js.map +1 -0
- package/dist/esm/{chunk-JLFXOEV2.js → chunk-QSSYSKRP.js} +3 -4
- package/dist/esm/chunk-QSSYSKRP.js.map +1 -0
- package/dist/esm/chunk-XEKQTAUH.js +544 -0
- package/dist/esm/chunk-XEKQTAUH.js.map +1 -0
- package/dist/esm/donut/index.js +38 -48
- package/dist/esm/donut/index.js.map +1 -1
- package/dist/esm/index.js +536 -134
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/line-area/index.js +30 -21
- package/dist/esm/line-area/index.js.map +1 -1
- package/dist/esm/sparkline/index.js +2 -2
- package/dist/index.js +497 -95
- package/dist/index.js.map +1 -1
- package/dist/interactions-DoWoL7bu.d.mts +29 -0
- package/dist/interactions-DoWoL7bu.d.ts +29 -0
- package/dist/line-area/index.d.mts +30 -4
- package/dist/line-area/index.d.ts +30 -4
- package/dist/line-area/index.js +35 -26
- package/dist/line-area/index.js.map +1 -1
- package/dist/line-area.css +112 -0
- package/dist/sparkline/index.js +4 -4
- package/package.json +16 -7
- package/dist/chunk-WEKDYQ4T.js +0 -968
- package/dist/chunk-WEKDYQ4T.js.map +0 -1
- package/dist/chunk-XP7HNV23.js.map +0 -1
- package/dist/esm/chunk-JLFXOEV2.js.map +0 -1
- package/dist/esm/chunk-Z4LOM4OZ.js +0 -968
- package/dist/esm/chunk-Z4LOM4OZ.js.map +0 -1
- /package/dist/esm/{chunk-X2KAXY3P.js.map → chunk-KMFRRUTY.js.map} +0 -0
|
@@ -0,0 +1,544 @@
|
|
|
1
|
+
// src/components/ColorBox/ColorBox.tsx
|
|
2
|
+
import { css } from "styled-components";
|
|
3
|
+
import { Box } from "@sproutsocial/seeds-react-box";
|
|
4
|
+
|
|
5
|
+
// ../seeds-react-theme-provider/dist/index.mjs
|
|
6
|
+
import "react";
|
|
7
|
+
import {
|
|
8
|
+
ThemeProvider as BaseThemeProvider,
|
|
9
|
+
createGlobalStyle
|
|
10
|
+
} from "styled-components";
|
|
11
|
+
import { theme } from "@sproutsocial/seeds-react-theme";
|
|
12
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
+
var GlobalTokenStyles = createGlobalStyle`
|
|
14
|
+
:root {
|
|
15
|
+
--color-container-bg-ai-generated: radial-gradient(
|
|
16
|
+
circle at bottom left,
|
|
17
|
+
color-mix(in srgb, #205bc3, transparent 80%) 0%,
|
|
18
|
+
color-mix(in srgb, #6f5ed3, transparent 80%) 61%,
|
|
19
|
+
color-mix(in srgb, #f282f5, transparent 80%) 100%
|
|
20
|
+
), #f3f4f4;
|
|
21
|
+
}
|
|
22
|
+
`;
|
|
23
|
+
|
|
24
|
+
// src/components/ColorBox/ColorBox.tsx
|
|
25
|
+
import "@sproutsocial/seeds-react-theme";
|
|
26
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
27
|
+
var ColorBox = ({
|
|
28
|
+
display = "inline-block",
|
|
29
|
+
height = "16px",
|
|
30
|
+
width = "16px",
|
|
31
|
+
minWidth = width,
|
|
32
|
+
borderRadius = "400",
|
|
33
|
+
...props
|
|
34
|
+
}) => {
|
|
35
|
+
return /* @__PURE__ */ jsx2(
|
|
36
|
+
Box,
|
|
37
|
+
{
|
|
38
|
+
...props,
|
|
39
|
+
display,
|
|
40
|
+
height,
|
|
41
|
+
width,
|
|
42
|
+
minWidth,
|
|
43
|
+
borderRadius,
|
|
44
|
+
css: css`
|
|
45
|
+
cursor: ${(props2) => props2?.onClick ? "pointer" : "default"};
|
|
46
|
+
`
|
|
47
|
+
}
|
|
48
|
+
);
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
// src/components/ChartLegend/components/ChartLegendLabel.tsx
|
|
52
|
+
import styled from "styled-components";
|
|
53
|
+
import { memo } from "react";
|
|
54
|
+
import { Box as Box2 } from "@sproutsocial/seeds-react-box";
|
|
55
|
+
import { Text } from "@sproutsocial/seeds-react-text";
|
|
56
|
+
import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
57
|
+
var StyledBox = styled(Box2)`
|
|
58
|
+
list-style: none;
|
|
59
|
+
display: flex;
|
|
60
|
+
align-items: center;
|
|
61
|
+
gap: ${({ theme: theme5 }) => theme5.space[300]};
|
|
62
|
+
`;
|
|
63
|
+
var ChartLegendLabel = memo(
|
|
64
|
+
function ChartLegendLabel2({
|
|
65
|
+
children,
|
|
66
|
+
color = "#CCC",
|
|
67
|
+
containerBoxProps = {}
|
|
68
|
+
}) {
|
|
69
|
+
return /* @__PURE__ */ jsxs2(StyledBox, { ...containerBoxProps, children: [
|
|
70
|
+
/* @__PURE__ */ jsx3(ColorBox, { bg: color }),
|
|
71
|
+
/* @__PURE__ */ jsx3(Text, { as: "div", fontSize: 200, color: "text.subtext", children })
|
|
72
|
+
] });
|
|
73
|
+
}
|
|
74
|
+
);
|
|
75
|
+
|
|
76
|
+
// src/components/ChartLegend/ChartLegend.tsx
|
|
77
|
+
import { memo as memo2 } from "react";
|
|
78
|
+
import { Box as Box3 } from "@sproutsocial/seeds-react-box";
|
|
79
|
+
import { theme as theme2 } from "@sproutsocial/seeds-react-theme";
|
|
80
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
81
|
+
var ChartLegend = memo2(function ChartLegend2({
|
|
82
|
+
legendLabels,
|
|
83
|
+
containerBoxProps = {},
|
|
84
|
+
stacked = false
|
|
85
|
+
}) {
|
|
86
|
+
return /* @__PURE__ */ jsx4(
|
|
87
|
+
Box3,
|
|
88
|
+
{
|
|
89
|
+
as: "ul",
|
|
90
|
+
"aria-hidden": "true",
|
|
91
|
+
display: "flex",
|
|
92
|
+
justifyContent: "center",
|
|
93
|
+
flexDirection: stacked ? "column" : "row",
|
|
94
|
+
flexWrap: "wrap",
|
|
95
|
+
columnGap: 450,
|
|
96
|
+
rowGap: 200,
|
|
97
|
+
m: 0,
|
|
98
|
+
p: 0,
|
|
99
|
+
...containerBoxProps,
|
|
100
|
+
children: legendLabels.map(({ color, content }, index) => /* @__PURE__ */ jsx4(
|
|
101
|
+
ChartLegendLabel,
|
|
102
|
+
{
|
|
103
|
+
color: color || theme2.colors.DATAVIZ_COLORS_LIST[index],
|
|
104
|
+
containerBoxProps: { as: "li" },
|
|
105
|
+
children: content
|
|
106
|
+
},
|
|
107
|
+
`chart-legend-label-${index}`
|
|
108
|
+
))
|
|
109
|
+
}
|
|
110
|
+
);
|
|
111
|
+
});
|
|
112
|
+
|
|
113
|
+
// src/components/ChartTooltip/ChartTooltip.tsx
|
|
114
|
+
import { memo as memo3 } from "react";
|
|
115
|
+
import styled2 from "styled-components";
|
|
116
|
+
import { Box as Box4 } from "@sproutsocial/seeds-react-box";
|
|
117
|
+
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
118
|
+
var StyledBox2 = styled2(Box4)`
|
|
119
|
+
.Icon,
|
|
120
|
+
.logo {
|
|
121
|
+
stroke: none;
|
|
122
|
+
}
|
|
123
|
+
`;
|
|
124
|
+
var ChartTooltip = memo3(function ChartTooltip2({
|
|
125
|
+
children
|
|
126
|
+
}) {
|
|
127
|
+
return /* @__PURE__ */ jsx5(
|
|
128
|
+
StyledBox2,
|
|
129
|
+
{
|
|
130
|
+
bg: "container.background.base",
|
|
131
|
+
boxShadow: "medium",
|
|
132
|
+
border: 500,
|
|
133
|
+
borderColor: "container.border.base",
|
|
134
|
+
borderRadius: 500,
|
|
135
|
+
p: 400,
|
|
136
|
+
minWidth: 285,
|
|
137
|
+
children: /* @__PURE__ */ jsx5(Box4, { display: "flex", flexDirection: "column", gap: 350, children })
|
|
138
|
+
}
|
|
139
|
+
);
|
|
140
|
+
});
|
|
141
|
+
|
|
142
|
+
// src/components/ChartTooltip/components/ChartTooltipFooter.tsx
|
|
143
|
+
import { memo as memo4 } from "react";
|
|
144
|
+
import { Box as Box5 } from "@sproutsocial/seeds-react-box";
|
|
145
|
+
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
146
|
+
var ChartTooltipFooter = memo4(
|
|
147
|
+
function ChartTooltipFooter2({ children }) {
|
|
148
|
+
return /* @__PURE__ */ jsx6(
|
|
149
|
+
Box5,
|
|
150
|
+
{
|
|
151
|
+
borderTop: 500,
|
|
152
|
+
borderColor: "container.border.base",
|
|
153
|
+
mx: -400,
|
|
154
|
+
mb: -200,
|
|
155
|
+
px: 400,
|
|
156
|
+
pt: 350,
|
|
157
|
+
children
|
|
158
|
+
}
|
|
159
|
+
);
|
|
160
|
+
}
|
|
161
|
+
);
|
|
162
|
+
|
|
163
|
+
// src/components/ChartTooltip/components/ChartTooltipHeader.tsx
|
|
164
|
+
import { memo as memo5 } from "react";
|
|
165
|
+
import { Box as Box6 } from "@sproutsocial/seeds-react-box";
|
|
166
|
+
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
167
|
+
var ChartTooltipHeader = memo5(
|
|
168
|
+
function ChartTooltipHeader2({ children }) {
|
|
169
|
+
return /* @__PURE__ */ jsx7(
|
|
170
|
+
Box6,
|
|
171
|
+
{
|
|
172
|
+
borderBottom: 500,
|
|
173
|
+
borderColor: "container.border.base",
|
|
174
|
+
mx: -400,
|
|
175
|
+
mt: -200,
|
|
176
|
+
px: 400,
|
|
177
|
+
pb: 350,
|
|
178
|
+
children
|
|
179
|
+
}
|
|
180
|
+
);
|
|
181
|
+
}
|
|
182
|
+
);
|
|
183
|
+
|
|
184
|
+
// src/components/ChartTooltip/components/ChartTooltipPortal.tsx
|
|
185
|
+
import { memo as memo6, useState, useRef, useEffect } from "react";
|
|
186
|
+
import { createPortal } from "react-dom";
|
|
187
|
+
var generateChartTooltipPortalId = (chartId) => `highcharts-custom-tooltip-${chartId}`;
|
|
188
|
+
var ChartTooltipPortal = memo6(
|
|
189
|
+
function ChartTooltipPortal2({
|
|
190
|
+
chart,
|
|
191
|
+
renderContent
|
|
192
|
+
}) {
|
|
193
|
+
const isInitialized = useRef(false);
|
|
194
|
+
const [node, setNode] = useState(null);
|
|
195
|
+
const [context, setContext] = useState(null);
|
|
196
|
+
useEffect(() => {
|
|
197
|
+
const formatter = function() {
|
|
198
|
+
if (!isInitialized.current) {
|
|
199
|
+
isInitialized.current = true;
|
|
200
|
+
chart.tooltip.refresh.apply(chart.tooltip, [this.point]);
|
|
201
|
+
chart.tooltip.hide(0);
|
|
202
|
+
}
|
|
203
|
+
setContext(this);
|
|
204
|
+
return `<div id="${generateChartTooltipPortalId(
|
|
205
|
+
chart.index
|
|
206
|
+
)}" role='tooltip'></div>`;
|
|
207
|
+
};
|
|
208
|
+
chart.update({ tooltip: { formatter } });
|
|
209
|
+
}, [chart]);
|
|
210
|
+
useEffect(() => {
|
|
211
|
+
if (context?.series?.chart?.tooltip) {
|
|
212
|
+
const tooltip = context.series.chart.tooltip;
|
|
213
|
+
const textElement = tooltip.label.text.element;
|
|
214
|
+
tooltip.label.box.attr({
|
|
215
|
+
height: textElement.offsetHeight,
|
|
216
|
+
width: textElement.offsetWidth
|
|
217
|
+
});
|
|
218
|
+
setNode(
|
|
219
|
+
document.getElementById(generateChartTooltipPortalId(chart.index))
|
|
220
|
+
);
|
|
221
|
+
}
|
|
222
|
+
}, [context, chart.index]);
|
|
223
|
+
return node && context ? createPortal(renderContent(context), node) : null;
|
|
224
|
+
}
|
|
225
|
+
);
|
|
226
|
+
|
|
227
|
+
// src/components/ChartTable/ChartTable.tsx
|
|
228
|
+
import { memo as memo7 } from "react";
|
|
229
|
+
import styled3 from "styled-components";
|
|
230
|
+
import { Text as Text2 } from "@sproutsocial/seeds-react-text";
|
|
231
|
+
import { Table as SeedsTable } from "@sproutsocial/seeds-react-table";
|
|
232
|
+
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
233
|
+
var StyledSeedsTable = styled3(SeedsTable)`
|
|
234
|
+
tbody tr:last-child {
|
|
235
|
+
border-bottom: none;
|
|
236
|
+
}
|
|
237
|
+
tr:last-child td,
|
|
238
|
+
tr:last-child th {
|
|
239
|
+
padding-bottom: 0;
|
|
240
|
+
}
|
|
241
|
+
tr:first-child td,
|
|
242
|
+
tr:first-child th {
|
|
243
|
+
padding-top: 0;
|
|
244
|
+
}
|
|
245
|
+
tr th {
|
|
246
|
+
padding-left: 0;
|
|
247
|
+
}
|
|
248
|
+
tr td:last-child {
|
|
249
|
+
padding-right: 0;
|
|
250
|
+
}
|
|
251
|
+
`;
|
|
252
|
+
var StyledSeedsTableRow = styled3(SeedsTable.TableRow)`
|
|
253
|
+
${({ $isAppendedRow, theme: theme5 }) => $isAppendedRow ? `border-top: 2px solid ${theme5.colors.container.border.base}` : ""}
|
|
254
|
+
`;
|
|
255
|
+
var ChartTable = memo7(function ChartTable2({
|
|
256
|
+
rows
|
|
257
|
+
}) {
|
|
258
|
+
if (!rows || rows.length === 0) {
|
|
259
|
+
return null;
|
|
260
|
+
}
|
|
261
|
+
return /* @__PURE__ */ jsx8(StyledSeedsTable, { children: /* @__PURE__ */ jsx8(SeedsTable.TableBody, { children: rows.map(({ cells, isAppendedRow }, rowIndex) => {
|
|
262
|
+
if (!cells || cells.length === 0) {
|
|
263
|
+
return null;
|
|
264
|
+
}
|
|
265
|
+
return /* @__PURE__ */ jsx8(
|
|
266
|
+
StyledSeedsTableRow,
|
|
267
|
+
{
|
|
268
|
+
$isAppendedRow: isAppendedRow,
|
|
269
|
+
children: cells.map(
|
|
270
|
+
({ content, align = "left", colSpan = 1 }, cellIndex) => {
|
|
271
|
+
const uniqueIdentifier = `chart-tooltip-table-cell-${cellIndex}`;
|
|
272
|
+
return /* @__PURE__ */ jsx8(
|
|
273
|
+
SeedsTable.Cell,
|
|
274
|
+
{
|
|
275
|
+
id: uniqueIdentifier,
|
|
276
|
+
scope: cellIndex === 0 ? "row" : void 0,
|
|
277
|
+
align,
|
|
278
|
+
colSpan,
|
|
279
|
+
py: 200,
|
|
280
|
+
children: /* @__PURE__ */ jsx8(Text2.SmallBodyCopy, { as: "div", children: content })
|
|
281
|
+
},
|
|
282
|
+
uniqueIdentifier
|
|
283
|
+
);
|
|
284
|
+
}
|
|
285
|
+
)
|
|
286
|
+
},
|
|
287
|
+
`chart-tooltip-table-row-${rowIndex}`
|
|
288
|
+
);
|
|
289
|
+
}) }) });
|
|
290
|
+
});
|
|
291
|
+
|
|
292
|
+
// src/components/ChartTooltip/components/ChartTooltipTable.tsx
|
|
293
|
+
import { memo as memo8 } from "react";
|
|
294
|
+
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
295
|
+
var ChartTooltipTable = memo8(
|
|
296
|
+
function ChartTooltipTable2({ rows }) {
|
|
297
|
+
return /* @__PURE__ */ jsx9(ChartTable, { rows });
|
|
298
|
+
}
|
|
299
|
+
);
|
|
300
|
+
|
|
301
|
+
// src/components/ChartTooltip/components/ChartTooltipTitle.tsx
|
|
302
|
+
import { memo as memo9 } from "react";
|
|
303
|
+
import { Text as Text3 } from "@sproutsocial/seeds-react-text";
|
|
304
|
+
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
305
|
+
var ChartTooltipTitle = memo9(
|
|
306
|
+
function ChartTooltipTitle2({ children }) {
|
|
307
|
+
return /* @__PURE__ */ jsx10(Text3.SmallSubHeadline, { as: "p", children });
|
|
308
|
+
}
|
|
309
|
+
);
|
|
310
|
+
|
|
311
|
+
// src/helpers/transformTimeSeriesTooltipData.ts
|
|
312
|
+
import { theme as theme3 } from "@sproutsocial/seeds-react-theme";
|
|
313
|
+
var transformTimeSeriesTooltipData = ({
|
|
314
|
+
context,
|
|
315
|
+
data
|
|
316
|
+
}) => {
|
|
317
|
+
return (context.series.chart.series || []).map((series, index) => {
|
|
318
|
+
const pointIndex = context.point.index;
|
|
319
|
+
const y = series?.points?.[pointIndex]?.y;
|
|
320
|
+
return {
|
|
321
|
+
color: data[index]?.styles?.color || theme3.colors.DATAVIZ_COLORS_LIST[index],
|
|
322
|
+
...data[index]?.icon ? { icon: data[index]?.icon } : {},
|
|
323
|
+
name: series.name,
|
|
324
|
+
value: typeof y === "number" ? y : null
|
|
325
|
+
};
|
|
326
|
+
});
|
|
327
|
+
};
|
|
328
|
+
|
|
329
|
+
// src/styles/chartStyles.ts
|
|
330
|
+
import { css as css2, createGlobalStyle as createGlobalStyle2 } from "styled-components";
|
|
331
|
+
import { theme as theme4 } from "@sproutsocial/seeds-react-theme";
|
|
332
|
+
import "highcharts/css/highcharts.css";
|
|
333
|
+
var GlobalChartStyleOverrides = createGlobalStyle2`
|
|
334
|
+
// USAGE NOTE:
|
|
335
|
+
// Put general styles in baseChartStyles instead when possible to avoid excessive global styling.
|
|
336
|
+
// This global component is only for styles that can't override highcharts defaults when scoped.
|
|
337
|
+
|
|
338
|
+
.highcharts-tooltip-container {
|
|
339
|
+
z-index: 7 !important;
|
|
340
|
+
}
|
|
341
|
+
.highcharts-tooltip-box {
|
|
342
|
+
fill: transparent !important;
|
|
343
|
+
}
|
|
344
|
+
`;
|
|
345
|
+
var baseChartStyles = css2`
|
|
346
|
+
--highcharts-background-color: ${({ theme: theme5 }) => theme5.colors.container.background.base};
|
|
347
|
+
|
|
348
|
+
// set color variables and map to each series
|
|
349
|
+
${({ $colors }) => $colors.map((color, index) => {
|
|
350
|
+
const chartColor = color || theme4.colors.DATAVIZ_COLORS_LIST[index];
|
|
351
|
+
return `
|
|
352
|
+
// map colors to custom assigned colors or fallback to default data viz color rotation
|
|
353
|
+
--highcharts-color-${index}: ${chartColor};
|
|
354
|
+
|
|
355
|
+
// highcharts already accounts for 10 series, but if we have more, we need to add them
|
|
356
|
+
.highcharts-color-${index} {
|
|
357
|
+
color: var(--highcharts-color-${index});
|
|
358
|
+
stroke: var(--highcharts-color-${index});
|
|
359
|
+
fill: var(--highcharts-color-${index});
|
|
360
|
+
}`;
|
|
361
|
+
}).join("\n")}
|
|
362
|
+
|
|
363
|
+
// set overall chart background color
|
|
364
|
+
.highcharts-background {
|
|
365
|
+
fill: ${({ theme: theme5 }) => theme5.colors.container.background.base};
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
g.highcharts-annotation-label {
|
|
369
|
+
display: none;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
div.highcharts-annotation-label {
|
|
373
|
+
top: 0 !important;
|
|
374
|
+
transform: translateX(-50%); // centers the label on the targeted axis point
|
|
375
|
+
pointer-events: none; // prevents tooltip hover from being interrupted by this element since it renders after on the dom
|
|
376
|
+
}
|
|
377
|
+
`;
|
|
378
|
+
var timeSeriesChartStyles = css2`
|
|
379
|
+
${baseChartStyles}
|
|
380
|
+
|
|
381
|
+
// vertical crosshair styles
|
|
382
|
+
.highcharts-crosshair {
|
|
383
|
+
stroke: ${({ theme: theme5 }) => theme5.colors.container.border.decorative.neutral};
|
|
384
|
+
stroke-width: 1;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
// axis and gridline styles
|
|
388
|
+
.highcharts-grid-line {
|
|
389
|
+
stroke: ${({ theme: theme5 }) => theme5.colors.container.border.base};
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
.highcharts-axis-line {
|
|
393
|
+
stroke: ${({ theme: theme5 }) => theme5.colors.container.border.base};
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
.highcharts-tick {
|
|
397
|
+
stroke: none;
|
|
398
|
+
}
|
|
399
|
+
.highcharts-xaxis-labels,
|
|
400
|
+
.highcharts-yaxis-labels {
|
|
401
|
+
// v1 HTML labels (useHTML: true). v2 SVG label styles live in
|
|
402
|
+
// charts/shared/styles.ts (axisLabelV2Styles) — don't add v2 rules here.
|
|
403
|
+
> span {
|
|
404
|
+
font-family: ${({ theme: theme5 }) => theme5.fontFamily};
|
|
405
|
+
${({ theme: theme5 }) => theme5.typography[100]};
|
|
406
|
+
font-weight: ${({ theme: theme5 }) => theme5.fontWeights.normal};
|
|
407
|
+
color: ${({ theme: theme5 }) => theme5.colors.text.subtext};
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
.highcharts-xaxis-labels {
|
|
411
|
+
// v1 HTML stacked labels (useHTML: true). v2 SVG stacked-label styles live
|
|
412
|
+
// in charts/shared/styles.ts (axisLabelV2Styles).
|
|
413
|
+
> span {
|
|
414
|
+
display: flex;
|
|
415
|
+
flex-direction: column;
|
|
416
|
+
align-items: center;
|
|
417
|
+
> span:nth-of-type(2) {
|
|
418
|
+
font-weight: ${({ theme: theme5 }) => theme5.fontWeights.semibold};
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
// we don't want to drop the opacity when another item is hovered
|
|
424
|
+
.highcharts-series-inactive {
|
|
425
|
+
opacity: 1;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
// apply cursor pointer when click functionality is turned on
|
|
429
|
+
${({ $hasOnClick }) => $hasOnClick && `
|
|
430
|
+
.highcharts-series,
|
|
431
|
+
.highcharts-point {
|
|
432
|
+
cursor: pointer;
|
|
433
|
+
}
|
|
434
|
+
.highcharts-plot-background,
|
|
435
|
+
.highcharts-crosshair,
|
|
436
|
+
.highcharts-grid-line {
|
|
437
|
+
fill: transparent;
|
|
438
|
+
cursor: pointer;
|
|
439
|
+
}`}
|
|
440
|
+
|
|
441
|
+
path.highcharts-plot-line.y-axis-zero-line {
|
|
442
|
+
stroke: ${({ theme: theme5 }) => theme5.colors.container.border.decorative.neutral};
|
|
443
|
+
}
|
|
444
|
+
`;
|
|
445
|
+
var lineChartStyles = css2`
|
|
446
|
+
${timeSeriesChartStyles}
|
|
447
|
+
|
|
448
|
+
// set the line stroke
|
|
449
|
+
.highcharts-graph {
|
|
450
|
+
stroke-width: 3;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
// dashed line styles
|
|
454
|
+
${({ $patterns }) => $patterns.map((pattern, index) => {
|
|
455
|
+
return pattern === "dashed" ? `
|
|
456
|
+
// highcharts already accounts for 10 series, but if we have more, we need to add them
|
|
457
|
+
.highcharts-series-${index} {
|
|
458
|
+
stroke-dasharray: 2, 8;
|
|
459
|
+
}` : "";
|
|
460
|
+
})}
|
|
461
|
+
`;
|
|
462
|
+
var areaChartStyles = css2`
|
|
463
|
+
${timeSeriesChartStyles}
|
|
464
|
+
|
|
465
|
+
// don't need to show a stroke for the line part of each area
|
|
466
|
+
.highcharts-graph {
|
|
467
|
+
stroke-width: 0;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
// fill areas to full opacity
|
|
471
|
+
.highcharts-area {
|
|
472
|
+
fill-opacity: 1;
|
|
473
|
+
}
|
|
474
|
+
`;
|
|
475
|
+
var donutChartStyles = css2`
|
|
476
|
+
${baseChartStyles}
|
|
477
|
+
|
|
478
|
+
// remove 250ms fade in/out when hovering over different donut chart slices
|
|
479
|
+
.highcharts-point {
|
|
480
|
+
transition: opacity 0s;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
// remove stroke on donut slices
|
|
484
|
+
.highcharts-pie-series .highcharts-point {
|
|
485
|
+
stroke: none;
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
// don't reduce opacity when hovering
|
|
489
|
+
.highcharts-point-hover {
|
|
490
|
+
fill-opacity: none;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
// apply cursor pointer when click functionality is turned on
|
|
494
|
+
${({ $hasOnClick }) => $hasOnClick && `
|
|
495
|
+
.highcharts-series,
|
|
496
|
+
.highcharts-point {
|
|
497
|
+
cursor: pointer;
|
|
498
|
+
}
|
|
499
|
+
.highcharts-plot-background,
|
|
500
|
+
.highcharts-crosshair,
|
|
501
|
+
.highcharts-grid-line {
|
|
502
|
+
fill: transparent;
|
|
503
|
+
cursor: pointer;
|
|
504
|
+
}`}
|
|
505
|
+
`;
|
|
506
|
+
|
|
507
|
+
// src/components/ChartLegend/components/ChartLegendLabelContentWithIcon.tsx
|
|
508
|
+
import { memo as memo10 } from "react";
|
|
509
|
+
import { Box as Box7 } from "@sproutsocial/seeds-react-box";
|
|
510
|
+
import { jsxs as jsxs3 } from "react/jsx-runtime";
|
|
511
|
+
var ChartLegendLabelContentWithIcon = memo10(
|
|
512
|
+
function ChartLegendLabelContentWithIcon2({
|
|
513
|
+
children,
|
|
514
|
+
icon
|
|
515
|
+
}) {
|
|
516
|
+
return icon ? /* @__PURE__ */ jsxs3(Box7, { display: "flex", alignItems: "center", gap: 200, children: [
|
|
517
|
+
icon,
|
|
518
|
+
children
|
|
519
|
+
] }) : children;
|
|
520
|
+
}
|
|
521
|
+
);
|
|
522
|
+
|
|
523
|
+
export {
|
|
524
|
+
ColorBox,
|
|
525
|
+
ChartLegendLabel,
|
|
526
|
+
ChartLegend,
|
|
527
|
+
ChartLegendLabelContentWithIcon,
|
|
528
|
+
ChartTooltip,
|
|
529
|
+
ChartTooltipFooter,
|
|
530
|
+
ChartTooltipHeader,
|
|
531
|
+
generateChartTooltipPortalId,
|
|
532
|
+
ChartTooltipPortal,
|
|
533
|
+
ChartTable,
|
|
534
|
+
ChartTooltipTable,
|
|
535
|
+
ChartTooltipTitle,
|
|
536
|
+
transformTimeSeriesTooltipData,
|
|
537
|
+
GlobalChartStyleOverrides,
|
|
538
|
+
baseChartStyles,
|
|
539
|
+
timeSeriesChartStyles,
|
|
540
|
+
lineChartStyles,
|
|
541
|
+
areaChartStyles,
|
|
542
|
+
donutChartStyles
|
|
543
|
+
};
|
|
544
|
+
//# sourceMappingURL=chunk-XEKQTAUH.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/ColorBox/ColorBox.tsx","../../../seeds-react-theme-provider/src/index.tsx","../../src/components/ChartLegend/components/ChartLegendLabel.tsx","../../src/components/ChartLegend/ChartLegend.tsx","../../src/components/ChartTooltip/ChartTooltip.tsx","../../src/components/ChartTooltip/components/ChartTooltipFooter.tsx","../../src/components/ChartTooltip/components/ChartTooltipHeader.tsx","../../src/components/ChartTooltip/components/ChartTooltipPortal.tsx","../../src/components/ChartTable/ChartTable.tsx","../../src/components/ChartTooltip/components/ChartTooltipTable.tsx","../../src/components/ChartTooltip/components/ChartTooltipTitle.tsx","../../src/helpers/transformTimeSeriesTooltipData.ts","../../src/styles/chartStyles.ts","../../src/components/ChartLegend/components/ChartLegendLabelContentWithIcon.tsx"],"sourcesContent":["import { css, type CSSProp } from \"styled-components\";\nimport { Box, type TypeBoxProps } from \"@sproutsocial/seeds-react-box\";\nimport ThemeProvider from \"@sproutsocial/seeds-react-theme-provider\";\nimport { type TypeSproutTheme } from \"@sproutsocial/seeds-react-theme\";\n\nexport type TypeColorBoxProps = TypeBoxProps;\n\n/**\n * ColorBox extends Box to apply basic styles.\n */\nexport const ColorBox = ({\n display = \"inline-block\",\n height = \"16px\",\n width = \"16px\",\n minWidth = width,\n borderRadius = \"400\",\n ...props\n}: TypeColorBoxProps) => {\n return (\n <Box\n {...props}\n display={display}\n height={height}\n width={width}\n minWidth={minWidth}\n borderRadius={borderRadius}\n css={\n css`\n cursor: ${(\n props: typeof ThemeProvider & {\n onClick: ((e: React.MouseEvent<HTMLElement>) => void) | void;\n }\n ) => (props?.onClick ? \"pointer\" : \"default\")};\n ` as CSSProp<TypeSproutTheme>\n }\n />\n );\n};\n","import * as React from \"react\";\nimport {\n ThemeProvider as BaseThemeProvider,\n createGlobalStyle,\n} from \"styled-components\";\nimport { theme } from \"@sproutsocial/seeds-react-theme\";\nimport type {\n TypeSproutTheme,\n TypeTheme,\n} from \"@sproutsocial/seeds-react-theme\";\n\n// We can append additional themes types here\ntype TypeAllThemes = TypeTheme | TypeSproutTheme;\n\ntype TypeProps = {\n readonly theme?: TypeAllThemes;\n readonly children?: React.ReactNode;\n};\n\n// CSS custom properties for token values that cannot be represented in SCSS maps\n// (e.g. radial-gradient + color-mix). These are injected here so styled-components\n// consumers get the values without needing to load the compiled SCSS theme CSS.\nconst GlobalTokenStyles = createGlobalStyle`\n :root {\n --color-container-bg-ai-generated: radial-gradient(\n circle at bottom left,\n color-mix(in srgb, #205bc3, transparent 80%) 0%,\n color-mix(in srgb, #6f5ed3, transparent 80%) 61%,\n color-mix(in srgb, #f282f5, transparent 80%) 100%\n ), #f3f4f4;\n }\n`;\n\nconst ThemeProvider = (props: TypeProps) => (\n <BaseThemeProvider {...props} theme={props.theme || theme}>\n <GlobalTokenStyles />\n {props.children}\n </BaseThemeProvider>\n);\n\nexport default ThemeProvider;\n","import styled from \"styled-components\";\nimport { memo } from \"react\";\nimport { Box, type TypeBoxProps } from \"@sproutsocial/seeds-react-box\";\nimport { Text } from \"@sproutsocial/seeds-react-text\";\n\nimport type { TypeLegendLabel } from \"../ChartLegend\";\n\nimport { ColorBox } from \"../../ColorBox\";\n\nconst StyledBox = styled(Box)<TypeBoxProps>`\n list-style: none;\n display: flex;\n align-items: center;\n gap: ${({ theme }) => theme.space[300]};\n`;\n\nexport type TypeChartLegendLabelProps = Readonly<{\n children: TypeLegendLabel[\"content\"];\n color: TypeLegendLabel[\"color\"];\n // optional\n containerBoxProps?: TypeBoxProps;\n}>;\n\nexport const ChartLegendLabel = memo<TypeChartLegendLabelProps>(\n function ChartLegendLabel({\n children,\n color = \"#CCC\",\n containerBoxProps = {},\n }: TypeChartLegendLabelProps) {\n return (\n <StyledBox {...containerBoxProps}>\n <ColorBox bg={color} />\n <Text as=\"div\" fontSize={200} color=\"text.subtext\">\n {children}\n </Text>\n </StyledBox>\n );\n }\n);\n","import { memo } from \"react\";\nimport { Box, type TypeBoxProps } from \"@sproutsocial/seeds-react-box\";\nimport { theme } from \"@sproutsocial/seeds-react-theme\";\n\nimport { ChartLegendLabel } from \"./components/ChartLegendLabel\";\n\nexport type TypeLegendLabel = Readonly<{\n content: React.ReactNode;\n color?: string;\n}>;\n\nexport type TypeChartLegendProps = Readonly<{\n legendLabels: ReadonlyArray<TypeLegendLabel>;\n // optional\n containerBoxProps?: TypeBoxProps;\n stacked?: boolean;\n}>;\n\nexport const ChartLegend = memo<TypeChartLegendProps>(function ChartLegend({\n legendLabels,\n containerBoxProps = {},\n stacked = false,\n}: TypeChartLegendProps) {\n return (\n <Box\n as=\"ul\"\n aria-hidden=\"true\"\n display=\"flex\"\n justifyContent=\"center\"\n flexDirection={stacked ? \"column\" : \"row\"}\n flexWrap=\"wrap\"\n columnGap={450}\n rowGap={200}\n m={0}\n p={0}\n {...containerBoxProps}\n >\n {legendLabels.map(({ color, content }, index) => (\n <ChartLegendLabel\n key={`chart-legend-label-${index}`}\n color={color || theme.colors.DATAVIZ_COLORS_LIST[index]}\n containerBoxProps={{ as: \"li\" }}\n >\n {content}\n </ChartLegendLabel>\n ))}\n </Box>\n );\n});\n","import { memo } from \"react\";\nimport styled from \"styled-components\";\nimport { Box } from \"@sproutsocial/seeds-react-box\";\n\n// styled components\nconst StyledBox = styled(Box)`\n .Icon,\n .logo {\n stroke: none;\n }\n`;\n\n// Chart Tooltip\ntype TypeChartTooltipProps = Readonly<{\n children: React.ReactNode;\n}>;\n\nexport const ChartTooltip = memo<TypeChartTooltipProps>(function ChartTooltip({\n children,\n}: TypeChartTooltipProps) {\n return (\n <StyledBox\n bg=\"container.background.base\"\n boxShadow=\"medium\"\n border={500}\n borderColor=\"container.border.base\"\n borderRadius={500}\n p={400}\n minWidth={285}\n >\n <Box display=\"flex\" flexDirection=\"column\" gap={350}>\n {children}\n </Box>\n </StyledBox>\n );\n});\n","import { memo } from \"react\";\nimport { Box } from \"@sproutsocial/seeds-react-box\";\n\ntype TypeChartTooltipFooterProps = {\n children: React.ReactNode;\n};\n\nexport const ChartTooltipFooter = memo<TypeChartTooltipFooterProps>(\n function ChartTooltipFooter({ children }: TypeChartTooltipFooterProps) {\n return (\n <Box\n borderTop={500}\n borderColor=\"container.border.base\"\n mx={-400}\n mb={-200}\n px={400}\n pt={350}\n >\n {children}\n </Box>\n );\n }\n);\n","import { memo } from \"react\";\nimport { Box } from \"@sproutsocial/seeds-react-box\";\n\ntype TypeChartTooltipHeaderProps = {\n children: React.ReactNode;\n};\n\nexport const ChartTooltipHeader = memo<TypeChartTooltipHeaderProps>(\n function ChartTooltipHeader({ children }: TypeChartTooltipHeaderProps) {\n return (\n <Box\n borderBottom={500}\n borderColor=\"container.border.base\"\n mx={-400}\n mt={-200}\n px={400}\n pb={350}\n >\n {children}\n </Box>\n );\n }\n);\n","import { memo, useState, useRef, useEffect, type ReactNode } from \"react\";\nimport { createPortal } from \"react-dom\";\nimport type {\n Tooltip,\n Chart,\n TooltipFormatterContextObject,\n TooltipFormatterCallbackFunction,\n} from \"highcharts\";\n\ninterface ExtendedHighchartsTooltip extends Tooltip {\n label: {\n box: { attr({ height, width }: { height: number; width: number }): void };\n text: { element: HTMLElement };\n };\n}\n\nexport const generateChartTooltipPortalId = (chartId: number) =>\n `highcharts-custom-tooltip-${chartId}`;\n\ntype ChartTooltipPortalProps = Readonly<{\n chart: Chart;\n renderContent: (_context: TooltipFormatterContextObject) => ReactNode;\n}>;\n\nexport const ChartTooltipPortal = memo<ChartTooltipPortalProps>(\n function ChartTooltipPortal({\n chart,\n renderContent,\n }: ChartTooltipPortalProps) {\n const isInitialized = useRef<boolean>(false);\n const [node, setNode] = useState<HTMLElement | null>(null);\n const [context, setContext] =\n useState<TooltipFormatterContextObject | null>(null);\n\n useEffect(() => {\n const formatter: TooltipFormatterCallbackFunction = function () {\n // Ensures that tooltip DOM container is rendered before React portal is created.\n if (!isInitialized.current) {\n isInitialized.current = true;\n chart.tooltip.refresh.apply(chart.tooltip, [this.point]);\n chart.tooltip.hide(0);\n }\n\n setContext(this);\n\n return `<div id=\"${generateChartTooltipPortalId(\n chart.index\n )}\" role='tooltip'></div>`;\n };\n\n chart.update({ tooltip: { formatter } });\n }, [chart]);\n\n useEffect(() => {\n // In some cases tooltip is not available on the chart yet\n if (context?.series?.chart?.tooltip) {\n const tooltip = context.series.chart\n .tooltip as ExtendedHighchartsTooltip;\n const textElement = tooltip.label.text.element;\n\n tooltip.label.box.attr({\n height: textElement.offsetHeight,\n width: textElement.offsetWidth,\n });\n\n setNode(\n document.getElementById(generateChartTooltipPortalId(chart.index))\n );\n }\n }, [context, chart.index]);\n\n return node && context ? createPortal(renderContent(context), node) : null;\n }\n);\n","import { memo } from \"react\";\nimport styled from \"styled-components\";\nimport { Text } from \"@sproutsocial/seeds-react-text\";\nimport { Table as SeedsTable } from \"@sproutsocial/seeds-react-table\";\n\nconst StyledSeedsTable = styled<typeof SeedsTable>(SeedsTable)`\n tbody tr:last-child {\n border-bottom: none;\n }\n tr:last-child td,\n tr:last-child th {\n padding-bottom: 0;\n }\n tr:first-child td,\n tr:first-child th {\n padding-top: 0;\n }\n tr th {\n padding-left: 0;\n }\n tr td:last-child {\n padding-right: 0;\n }\n`;\n\nconst StyledSeedsTableRow = styled(SeedsTable.TableRow)<{\n $isAppendedRow?: boolean;\n}>`\n ${({ $isAppendedRow, theme }) =>\n $isAppendedRow\n ? `border-top: 2px solid ${theme.colors.container.border.base}`\n : \"\"}\n`;\n\nexport type TypeChartTableProps = Readonly<{\n rows: ReadonlyArray<{\n cells: ReadonlyArray<{\n content: React.ReactNode;\n align?: React.ComponentProps<typeof SeedsTable.Cell>[\"align\"];\n colSpan?: React.ComponentProps<typeof SeedsTable.Cell>[\"colSpan\"];\n }>;\n isAppendedRow?: boolean;\n }>;\n}>;\n\nexport const ChartTable = memo<TypeChartTableProps>(function ChartTable({\n rows,\n}: TypeChartTableProps) {\n if (!rows || rows.length === 0) {\n return null;\n }\n\n return (\n <StyledSeedsTable>\n <SeedsTable.TableBody>\n {rows.map(({ cells, isAppendedRow }, rowIndex) => {\n if (!cells || cells.length === 0) {\n return null;\n }\n\n return (\n <StyledSeedsTableRow\n key={`chart-tooltip-table-row-${rowIndex}`}\n $isAppendedRow={isAppendedRow}\n >\n {cells.map(\n ({ content, align = \"left\", colSpan = 1 }, cellIndex) => {\n const uniqueIdentifier = `chart-tooltip-table-cell-${cellIndex}`;\n return (\n <SeedsTable.Cell\n key={uniqueIdentifier}\n id={uniqueIdentifier}\n scope={cellIndex === 0 ? \"row\" : undefined}\n align={align}\n colSpan={colSpan}\n py={200}\n >\n <Text.SmallBodyCopy as=\"div\">\n {content}\n </Text.SmallBodyCopy>\n </SeedsTable.Cell>\n );\n }\n )}\n </StyledSeedsTableRow>\n );\n })}\n </SeedsTable.TableBody>\n </StyledSeedsTable>\n );\n});\n","import { memo } from \"react\";\n\nimport { ChartTable, type TypeChartTableProps } from \"../../ChartTable\";\n\nexport type TypeChartTooltipTableProps = {\n rows: TypeChartTableProps[\"rows\"];\n};\n\nexport const ChartTooltipTable = memo<TypeChartTooltipTableProps>(\n function ChartTooltipTable({ rows }: TypeChartTooltipTableProps) {\n return <ChartTable rows={rows} />;\n }\n);\n","import { memo } from \"react\";\nimport { Text } from \"@sproutsocial/seeds-react-text\";\n\ntype TypeChartTooltipTitleProps = {\n children: React.ReactNode;\n};\n\nexport const ChartTooltipTitle = memo<TypeChartTooltipTitleProps>(\n function ChartTooltipTitle({ children }: TypeChartTooltipTitleProps) {\n return <Text.SmallSubHeadline as=\"p\">{children}</Text.SmallSubHeadline>;\n }\n);\n","import type { TooltipFormatterContextObject } from \"highcharts\";\nimport { theme } from \"@sproutsocial/seeds-react-theme\";\n\nimport type { TypeAreaChartProps } from \"../components/AreaChart\";\nimport type { TypeLineChartProps } from \"../components/LineChart\";\nimport type { TypeChartTooltipProps } from \"../types\";\n\ntype TypeTransformTimeSeriesTooltipDataProps = Readonly<{\n context: TooltipFormatterContextObject;\n data: TypeAreaChartProps[\"data\"] | TypeLineChartProps[\"data\"];\n}>;\ntype TypeTransformTimeSeriesTooltipDataReturn = TypeChartTooltipProps[\"data\"];\n\nexport const transformTimeSeriesTooltipData = ({\n context,\n data,\n}: TypeTransformTimeSeriesTooltipDataProps): TypeTransformTimeSeriesTooltipDataReturn => {\n // @ts-expect-error - Highcharts tooltip context series typing does not expose chart.series here\n return (context.series.chart.series || []).map((series, index) => {\n const pointIndex = context.point.index;\n const y = series?.points?.[pointIndex]?.y;\n\n return {\n color:\n data[index]?.styles?.color || theme.colors.DATAVIZ_COLORS_LIST[index],\n ...(data[index]?.icon ? { icon: data[index]?.icon } : {}),\n name: series.name,\n value: typeof y === \"number\" ? y : null,\n };\n });\n};\n","import { css, createGlobalStyle } from \"styled-components\";\nimport { theme } from \"@sproutsocial/seeds-react-theme\";\nimport {\n type TypeChartStyleColor,\n type TypeChartStyleHasOnClick,\n type TypeChartStylePattern,\n} from \"../types\";\nimport \"highcharts/css/highcharts.css\";\n\nexport const GlobalChartStyleOverrides = createGlobalStyle`\n // USAGE NOTE:\n // Put general styles in baseChartStyles instead when possible to avoid excessive global styling.\n // This global component is only for styles that can't override highcharts defaults when scoped.\n\n .highcharts-tooltip-container {\n z-index: 7 !important;\n }\n .highcharts-tooltip-box {\n fill: transparent !important;\n }\n`;\n\n// options that should apply to all charts\nexport const baseChartStyles = css<\n Readonly<{ $colors: ReadonlyArray<TypeChartStyleColor> }>\n>`\n --highcharts-background-color: ${({ theme }) =>\n theme.colors.container.background.base};\n\n // set color variables and map to each series\n ${({ $colors }) =>\n $colors\n .map((color, index) => {\n const chartColor = color || theme.colors.DATAVIZ_COLORS_LIST[index];\n return `\n\t\t\t\t// map colors to custom assigned colors or fallback to default data viz color rotation\n\t\t\t\t--highcharts-color-${index}: ${chartColor};\n\n\t\t\t\t// highcharts already accounts for 10 series, but if we have more, we need to add them\n\t\t\t\t.highcharts-color-${index} {\n\t\t\t\t\tcolor: var(--highcharts-color-${index});\n\t\t\t\t\tstroke: var(--highcharts-color-${index});\n\t\t\t\t\tfill: var(--highcharts-color-${index});\n\t\t\t\t}`;\n })\n .join(\"\\n\")}\n\n // set overall chart background color\n .highcharts-background {\n fill: ${({ theme }) => theme.colors.container.background.base};\n }\n\n g.highcharts-annotation-label {\n display: none;\n }\n\n div.highcharts-annotation-label {\n top: 0 !important;\n transform: translateX(-50%); // centers the label on the targeted axis point\n pointer-events: none; // prevents tooltip hover from being interrupted by this element since it renders after on the dom\n }\n`;\n\n// options that should apply to time series charts\nexport const timeSeriesChartStyles = css<\n Readonly<{\n $colors: ReadonlyArray<TypeChartStyleColor>;\n $hasOnClick: TypeChartStyleHasOnClick;\n }>\n>`\n ${baseChartStyles}\n\n // vertical crosshair styles\n\t.highcharts-crosshair {\n stroke: ${({ theme }) => theme.colors.container.border.decorative.neutral};\n stroke-width: 1;\n }\n\n // axis and gridline styles\n .highcharts-grid-line {\n stroke: ${({ theme }) => theme.colors.container.border.base};\n }\n\n .highcharts-axis-line {\n stroke: ${({ theme }) => theme.colors.container.border.base};\n }\n\n .highcharts-tick {\n stroke: none;\n }\n .highcharts-xaxis-labels,\n .highcharts-yaxis-labels {\n // v1 HTML labels (useHTML: true). v2 SVG label styles live in\n // charts/shared/styles.ts (axisLabelV2Styles) — don't add v2 rules here.\n > span {\n font-family: ${({ theme }) => theme.fontFamily};\n ${({ theme }) => theme.typography[100]};\n font-weight: ${({ theme }) => theme.fontWeights.normal};\n color: ${({ theme }) => theme.colors.text.subtext};\n }\n }\n .highcharts-xaxis-labels {\n // v1 HTML stacked labels (useHTML: true). v2 SVG stacked-label styles live\n // in charts/shared/styles.ts (axisLabelV2Styles).\n > span {\n display: flex;\n flex-direction: column;\n align-items: center;\n > span:nth-of-type(2) {\n font-weight: ${({ theme }) => theme.fontWeights.semibold};\n }\n }\n }\n\n // we don't want to drop the opacity when another item is hovered\n .highcharts-series-inactive {\n opacity: 1;\n }\n\n // apply cursor pointer when click functionality is turned on\n ${({ $hasOnClick }) =>\n $hasOnClick &&\n `\n \t\t\t.highcharts-series,\n \t\t\t.highcharts-point {\n \t\t\t\tcursor: pointer;\n \t\t\t}\n \t\t\t.highcharts-plot-background,\n \t\t\t.highcharts-crosshair,\n \t\t\t.highcharts-grid-line {\n \t\t\t\tfill: transparent;\n \t\t\t\tcursor: pointer;\n \t\t}`}\n\n path.highcharts-plot-line.y-axis-zero-line {\n stroke: ${({ theme }) => theme.colors.container.border.decorative.neutral};\n }\n`;\n\n// options that should apply to line charts\nexport const lineChartStyles = css<\n Readonly<{\n $colors: ReadonlyArray<TypeChartStyleColor>;\n $patterns: ReadonlyArray<TypeChartStylePattern>;\n $hasOnClick: TypeChartStyleHasOnClick;\n }>\n>`\n ${timeSeriesChartStyles}\n\n // set the line stroke\n\t.highcharts-graph {\n stroke-width: 3;\n }\n\n // dashed line styles\n ${({ $patterns }) =>\n $patterns.map((pattern, index) => {\n return pattern === \"dashed\"\n ? `\n \t\t\t\t\t// highcharts already accounts for 10 series, but if we have more, we need to add them\n \t\t\t\t\t.highcharts-series-${index} {\n \t\t\t\t\t\tstroke-dasharray: 2, 8;\n \t\t\t\t\t}`\n : \"\";\n })}\n`;\n\n// options that should apply to area charts\nexport const areaChartStyles = css`\n ${timeSeriesChartStyles}\n\n // don't need to show a stroke for the line part of each area\n\t.highcharts-graph {\n stroke-width: 0;\n }\n\n // fill areas to full opacity\n .highcharts-area {\n fill-opacity: 1;\n }\n`;\n\n// options that should apply to donut charts\nexport const donutChartStyles = css<\n Readonly<{\n $colors: ReadonlyArray<TypeChartStyleColor>;\n $hasOnClick: TypeChartStyleHasOnClick;\n }>\n>`\n ${baseChartStyles}\n\n // remove 250ms fade in/out when hovering over different donut chart slices\n\t.highcharts-point {\n transition: opacity 0s;\n }\n\n // remove stroke on donut slices\n .highcharts-pie-series .highcharts-point {\n stroke: none;\n }\n\n // don't reduce opacity when hovering\n .highcharts-point-hover {\n fill-opacity: none;\n }\n\n // apply cursor pointer when click functionality is turned on\n ${({ $hasOnClick }) =>\n $hasOnClick &&\n `\n \t\t\t.highcharts-series,\n \t\t\t.highcharts-point {\n \t\t\t\tcursor: pointer;\n \t\t\t}\n \t\t\t.highcharts-plot-background,\n \t\t\t.highcharts-crosshair,\n \t\t\t.highcharts-grid-line {\n \t\t\t\tfill: transparent;\n \t\t\t\tcursor: pointer;\n \t\t}`}\n`;\n","import { memo } from \"react\";\nimport { Box } from \"@sproutsocial/seeds-react-box\";\n\nexport type TypeChartLegendLabelContentWithIconProps = Readonly<{\n children: React.ReactNode;\n // optional\n icon?: React.ReactNode;\n}>;\n\nexport const ChartLegendLabelContentWithIcon =\n memo<TypeChartLegendLabelContentWithIconProps>(\n function ChartLegendLabelContentWithIcon({\n children,\n icon,\n }: TypeChartLegendLabelContentWithIconProps) {\n return icon ? (\n <Box display=\"flex\" alignItems=\"center\" gap={200}>\n {icon}\n {children}\n </Box>\n ) : (\n children\n );\n }\n );\n"],"mappings":";AAAA,SAAS,WAAyB;AAClC,SAAS,WAA8B;;;ACDvC,OAAuB;AACvB;EACE,iBAAiB;EACjB;OACK;AACP,SAAS,aAAa;AA6BpB,SACE,KADF,YAAA;AAZF,IAAM,oBAAoB;;;;;;;;;;;;ADnB1B,OAAqC;AAgBjC,gBAAAA,YAAA;AATG,IAAM,WAAW,CAAC;AAAA,EACvB,UAAU;AAAA,EACV,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,WAAW;AAAA,EACX,eAAe;AAAA,EACf,GAAG;AACL,MAAyB;AACvB,SACE,gBAAAA;AAAA,IAAC;AAAA;AAAA,MACE,GAAG;AAAA,MACJ;AAAA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A;AAAA,OACH,IAEA;AAAA,EAEJ;AACF;","names":["jsx","props","Box","jsx","jsxs","Box","theme","ChartLegendLabel","memo","Box","theme","jsx","memo","ChartLegend","Box","theme","memo","styled","Box","jsx","StyledBox","ChartTooltip","memo","Box","jsx","ChartTooltipFooter","memo","Box","jsx","ChartTooltipHeader","memo","ChartTooltipPortal","memo","styled","Text","jsx","theme","ChartTable","memo","jsx","memo","ChartTooltipTable","memo","Text","jsx","ChartTooltipTitle","theme","css","createGlobalStyle","theme","createGlobalStyle","css","theme","memo","Box","jsxs","ChartLegendLabelContentWithIcon"]}
|