impact-ui 4.0.14 → 4.0.15
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/_virtual/index3.js +4 -2
- package/dist/_virtual/index4.js +4 -2
- package/dist/_virtual/index5.js +2 -4
- package/dist/_virtual/index6.js +2 -4
- package/dist/components/Chart/ChartSkeleton.d.ts +4 -1
- package/dist/components/Chart/ChartSkeleton.d.ts.map +1 -1
- package/dist/components/Chart/ChartSkeleton.js +994 -29
- package/dist/components/Chart/index.d.ts +2 -1
- package/dist/components/Chart/index.d.ts.map +1 -1
- package/dist/components/Chart/index.js +16 -6
- package/dist/components/HomePage/index.d.ts.map +1 -1
- package/dist/components/HomePage/index.js +5 -7
- package/dist/components/Notification/Notification.types.d.ts +2 -1
- package/dist/components/Notification/Notification.types.d.ts.map +1 -1
- package/dist/components/Notification/NotificationBody/NotificationBody.types.d.ts +2 -1
- package/dist/components/Notification/NotificationBody/NotificationBody.types.d.ts.map +1 -1
- package/dist/components/Notification/NotificationBody/NotificationPanelContent.d.ts +1 -1
- package/dist/components/Notification/NotificationBody/NotificationPanelContent.d.ts.map +1 -1
- package/dist/components/Notification/NotificationBody/NotificationPanelContent.js +2 -0
- package/dist/components/Notification/NotificationBody/NotificationTaskList.d.ts +2 -1
- package/dist/components/Notification/NotificationBody/NotificationTaskList.d.ts.map +1 -1
- package/dist/components/Notification/NotificationBody/NotificationTaskList.js +32 -13
- package/dist/components/Notification/index.d.ts +1 -1
- package/dist/components/Notification/index.d.ts.map +1 -1
- package/dist/components/Notification/index.js +2 -0
- package/dist/mcp-component-registry.json +20 -3
- package/dist/node_modules/@impactsmartsuite/impact-icons/dist/index.js +258 -158
- package/dist/node_modules/@mui/system/colorManipulator.js +2 -2
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/react-is/index.js +1 -1
- package/package.json +2 -2
|
@@ -1,18 +1,133 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Skeleton } from "../Skeleton/index.js";
|
|
3
3
|
const COLUMN_BAR_HEIGHTS = [45, 70, 55, 85, 40, 65, 75, 50, 60, 90];
|
|
4
|
+
const LOLLIPOP_HEIGHTS = [18, 40, 58, 72, 88];
|
|
5
|
+
const CANDLESTICK_DATA = [
|
|
6
|
+
{ wickTop: 5, bodyTop: 12, bodyBottom: 32, wickBottom: 38 },
|
|
7
|
+
{ wickTop: 20, bodyTop: 28, bodyBottom: 45, wickBottom: 52 },
|
|
8
|
+
{ wickTop: 25, bodyTop: 30, bodyBottom: 40, wickBottom: 45 },
|
|
9
|
+
{ wickTop: 12, bodyTop: 18, bodyBottom: 48, wickBottom: 58 },
|
|
10
|
+
{ wickTop: 42, bodyTop: 50, bodyBottom: 65, wickBottom: 72 },
|
|
11
|
+
{ wickTop: 38, bodyTop: 45, bodyBottom: 58, wickBottom: 65 },
|
|
12
|
+
{ wickTop: 22, bodyTop: 28, bodyBottom: 50, wickBottom: 55 },
|
|
13
|
+
{ wickTop: 3, bodyTop: 8, bodyBottom: 28, wickBottom: 35 },
|
|
14
|
+
{ wickTop: 50, bodyTop: 55, bodyBottom: 68, wickBottom: 75 }
|
|
15
|
+
];
|
|
16
|
+
const SCATTER3D_DOTS = [
|
|
17
|
+
{ u: 0.12, v: 0.09, w: 0.68 },
|
|
18
|
+
{ u: 0.46, v: 0.19, w: 0.33 },
|
|
19
|
+
{ u: 0.52, v: 0.67, w: 0.44 },
|
|
20
|
+
{ u: 0.66, v: 0.59, w: 0.24 },
|
|
21
|
+
{ u: 0.33, v: 0.77, w: 0.13 },
|
|
22
|
+
{ u: 0.13, v: 0.56, w: 0.18 },
|
|
23
|
+
{ u: 0.14, v: 0.91, w: 0.69 },
|
|
24
|
+
{ u: 0.31, v: 0.23, w: 0.41 },
|
|
25
|
+
{ u: 0.71, v: 0.86, w: 0.18 },
|
|
26
|
+
{ u: 0.79, v: 0.29, w: 0.38 },
|
|
27
|
+
{ u: 0.06, v: 0.21, w: 0.89 },
|
|
28
|
+
{ u: 0.03, v: 0.43, w: 0.58 },
|
|
29
|
+
{ u: 0.17, v: 0.31, w: 0.11 },
|
|
30
|
+
{ u: 0.3, v: 0.61, w: 0.47 },
|
|
31
|
+
{ u: 0.93, v: 0.37, w: 0.93 },
|
|
32
|
+
{ u: 0.58, v: 0.13, w: 0.63 },
|
|
33
|
+
{ u: 0.82, v: 0.1, w: 0.17 },
|
|
34
|
+
{ u: 0.29, v: 0.63, w: 0.44 },
|
|
35
|
+
{ u: 0.79, v: 0.75, w: 0.72 },
|
|
36
|
+
{ u: 0.32, v: 0.34, w: 0.29 },
|
|
37
|
+
{ u: 0.26, v: 0.8, w: 0.21 },
|
|
38
|
+
{ u: 0.82, v: 0.82, w: 0.81 },
|
|
39
|
+
{ u: 0.15, v: 0.42, w: 0.63 },
|
|
40
|
+
{ u: 0.12, v: 0.12, w: 0.7 },
|
|
41
|
+
{ u: 0.77, v: 0.47, w: 0.45 },
|
|
42
|
+
{ u: 0.45, v: 0.57, w: 0.49 },
|
|
43
|
+
{ u: 0.75, v: 0.11, w: 0.11 },
|
|
44
|
+
{ u: 0.33, v: 0.26, w: 0.68 },
|
|
45
|
+
{ u: 0.54, v: 0.18, w: 0.23 },
|
|
46
|
+
{ u: 0.06, v: 0.13, w: 0.79 },
|
|
47
|
+
{ u: 0.92, v: 0.8, w: 0.4 },
|
|
48
|
+
{ u: 0.12, v: 0.5, w: 0.91 },
|
|
49
|
+
{ u: 0.86, v: 0.36, w: 0.1 },
|
|
50
|
+
{ u: 0.84, v: 0.56, w: 0.62 },
|
|
51
|
+
{ u: 0.07, v: 0.79, w: 0.75 },
|
|
52
|
+
{ u: 0.28, v: 0.27, w: 0.81 },
|
|
53
|
+
{ u: 0.18, v: 0.17, w: 0.88 },
|
|
54
|
+
{ u: 0.88, v: 0.51, w: 0.51 },
|
|
55
|
+
{ u: 0.92, v: 0.63, w: 0.31 },
|
|
56
|
+
{ u: 0.83, v: 0.91, w: 0.62 },
|
|
57
|
+
{ u: 0.52, v: 0.33, w: 0.63 },
|
|
58
|
+
{ u: 0.35, v: 0.6, w: 0.21 },
|
|
59
|
+
{ u: 0.77, v: 0.33, w: 0.93 },
|
|
60
|
+
{ u: 0.77, v: 0.34, w: 0.67 },
|
|
61
|
+
{ u: 0.04, v: 0.69, w: 0.75 },
|
|
62
|
+
{ u: 0.33, v: 0.88, w: 0.21 },
|
|
63
|
+
{ u: 0.91, v: 0.15, w: 0.5 },
|
|
64
|
+
{ u: 0.38, v: 0.53, w: 0.78 },
|
|
65
|
+
{ u: 0.66, v: 0.21, w: 0.08 },
|
|
66
|
+
{ u: 0.69, v: 0.08, w: 0.9 },
|
|
67
|
+
{ u: 0.87, v: 0.86, w: 0.91 },
|
|
68
|
+
{ u: 0.41, v: 0.11, w: 0.3 },
|
|
69
|
+
{ u: 0.63, v: 0.29, w: 0.2 },
|
|
70
|
+
{ u: 0.49, v: 0.63, w: 0.44 },
|
|
71
|
+
{ u: 0.78, v: 0.7, w: 0.69 },
|
|
72
|
+
{ u: 0.14, v: 0.51, w: 0.41 },
|
|
73
|
+
{ u: 0.05, v: 0.46, w: 0.63 },
|
|
74
|
+
{ u: 0.33, v: 0.24, w: 0.76 },
|
|
75
|
+
{ u: 0.52, v: 0.9, w: 0.08 },
|
|
76
|
+
{ u: 0.44, v: 0.39, w: 0.51 }
|
|
77
|
+
];
|
|
78
|
+
const S3D_ORIGIN = { x: 22, y: 83 };
|
|
79
|
+
const S3D_AXIS_X = { x: 160, y: 20 };
|
|
80
|
+
const S3D_AXIS_Y = { x: 0, y: -57 };
|
|
81
|
+
const S3D_AXIS_Z = { x: 56, y: -24 };
|
|
82
|
+
const S3D_GRID_STEPS = [0.25, 0.5, 0.75];
|
|
83
|
+
const projectS3D = (u, v, w) => ({
|
|
84
|
+
x: S3D_ORIGIN.x + S3D_AXIS_X.x * u + S3D_AXIS_Y.x * v + S3D_AXIS_Z.x * w,
|
|
85
|
+
y: S3D_ORIGIN.y + S3D_AXIS_X.y * u + S3D_AXIS_Y.y * v + S3D_AXIS_Z.y * w
|
|
86
|
+
});
|
|
87
|
+
const S3DEdge = ({
|
|
88
|
+
dashed = false,
|
|
89
|
+
from,
|
|
90
|
+
to
|
|
91
|
+
}) => {
|
|
92
|
+
const a = projectS3D(...from);
|
|
93
|
+
const b = projectS3D(...to);
|
|
94
|
+
return /* @__PURE__ */ jsx(
|
|
95
|
+
"line",
|
|
96
|
+
{
|
|
97
|
+
stroke: "#dde3ef",
|
|
98
|
+
strokeDasharray: dashed ? "2,2" : void 0,
|
|
99
|
+
strokeWidth: dashed ? 0.3 : 0.5,
|
|
100
|
+
x1: a.x,
|
|
101
|
+
x2: b.x,
|
|
102
|
+
y1: a.y,
|
|
103
|
+
y2: b.y
|
|
104
|
+
}
|
|
105
|
+
);
|
|
106
|
+
};
|
|
107
|
+
const BUBBLE_DATA = [
|
|
108
|
+
{ size: 48, top: 20, left: 12 },
|
|
109
|
+
{ size: 28, top: 55, left: 25 },
|
|
110
|
+
{ size: 40, top: 35, left: 45 },
|
|
111
|
+
{ size: 22, top: 65, left: 60 },
|
|
112
|
+
{ size: 54, top: 15, left: 70 },
|
|
113
|
+
{ size: 32, top: 50, left: 38 },
|
|
114
|
+
{ size: 26, top: 75, left: 80 },
|
|
115
|
+
{ size: 36, top: 40, left: 85 }
|
|
116
|
+
];
|
|
4
117
|
const BAR_WIDTHS = [92, 78, 88, 64, 72];
|
|
5
|
-
const LINE_BAR_WIDTHS = [88, 72, 80, 58];
|
|
6
118
|
const LEGEND_WIDTHS = [64, 80, 56];
|
|
7
119
|
const getDefaultShimmerDirection = (graphType) => {
|
|
8
120
|
const type = (graphType || "column").toLowerCase();
|
|
9
|
-
if (type === "column" || type === "waterfall" || type === "candlestick" || type === "heatmap" || type === "
|
|
121
|
+
if (type === "column" || type === "waterfall" || type === "candlestick" || type === "heatmap" || type === "lollipop") {
|
|
10
122
|
return "btt";
|
|
11
123
|
}
|
|
12
|
-
if (type === "bar") {
|
|
124
|
+
if (type === "bar" || type === "treemap" || type === "venn" || type === "scatter") {
|
|
125
|
+
return "ltr";
|
|
126
|
+
}
|
|
127
|
+
if (type === "bubble" || type === "packedbubble") {
|
|
13
128
|
return "ltr";
|
|
14
129
|
}
|
|
15
|
-
if (type === "pie" || type === "semidonut" || type === "
|
|
130
|
+
if (type === "pie" || type === "semidonut" || type === "scatter3d") {
|
|
16
131
|
return "circular";
|
|
17
132
|
}
|
|
18
133
|
return "ltr";
|
|
@@ -23,7 +138,12 @@ const resolveShimmerDirection = (shimmerDirection, graphType) => {
|
|
|
23
138
|
}
|
|
24
139
|
return getDefaultShimmerDirection(graphType);
|
|
25
140
|
};
|
|
26
|
-
const AxisFrame = ({
|
|
141
|
+
const AxisFrame = ({
|
|
142
|
+
children,
|
|
143
|
+
orientation = "column",
|
|
144
|
+
direction,
|
|
145
|
+
hasDualAxis
|
|
146
|
+
}) => /* @__PURE__ */ jsxs("div", { className: `chart-skeleton-plot chart-skeleton-plot--${orientation}`, children: [
|
|
27
147
|
/* @__PURE__ */ jsx(
|
|
28
148
|
Skeleton,
|
|
29
149
|
{
|
|
@@ -37,6 +157,35 @@ const AxisFrame = ({ children, orientation = "column", direction }) => /* @__PUR
|
|
|
37
157
|
),
|
|
38
158
|
/* @__PURE__ */ jsxs("div", { className: "chart-skeleton-plot-inner", children: [
|
|
39
159
|
/* @__PURE__ */ jsx("div", { className: "chart-skeleton-bars", children }),
|
|
160
|
+
hasDualAxis && /* @__PURE__ */ jsxs("svg", { className: "chart-skeleton-dual-line", preserveAspectRatio: "none", viewBox: "0 0 400 200", children: [
|
|
161
|
+
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs("linearGradient", { id: "dual-line-shimmer-gradient", x1: "-100%", x2: "0%", y1: "0%", y2: "0%", children: [
|
|
162
|
+
/* @__PURE__ */ jsx("stop", { offset: "0%", stopColor: "#e8edf5" }),
|
|
163
|
+
/* @__PURE__ */ jsx("stop", { offset: "40%", stopColor: "#d5dbe8" }),
|
|
164
|
+
/* @__PURE__ */ jsx("stop", { offset: "60%", stopColor: "#eceef4" }),
|
|
165
|
+
/* @__PURE__ */ jsx("stop", { offset: "100%", stopColor: "#e8edf5" }),
|
|
166
|
+
/* @__PURE__ */ jsx(
|
|
167
|
+
"animate",
|
|
168
|
+
{
|
|
169
|
+
attributeName: "x1",
|
|
170
|
+
dur: "1.6s",
|
|
171
|
+
from: "-100%",
|
|
172
|
+
repeatCount: "indefinite",
|
|
173
|
+
to: "100%"
|
|
174
|
+
}
|
|
175
|
+
),
|
|
176
|
+
/* @__PURE__ */ jsx("animate", { attributeName: "x2", dur: "1.6s", from: "0%", repeatCount: "indefinite", to: "200%" })
|
|
177
|
+
] }) }),
|
|
178
|
+
/* @__PURE__ */ jsx(
|
|
179
|
+
"path",
|
|
180
|
+
{
|
|
181
|
+
className: "chart-skeleton-dual-line-path",
|
|
182
|
+
d: "M0,100 L66,80 L133,120 L200,70 L266,110 L333,60 L400,90",
|
|
183
|
+
fill: "none",
|
|
184
|
+
stroke: "url(#dual-line-shimmer-gradient)",
|
|
185
|
+
strokeWidth: 3
|
|
186
|
+
}
|
|
187
|
+
)
|
|
188
|
+
] }),
|
|
40
189
|
/* @__PURE__ */ jsx(
|
|
41
190
|
Skeleton,
|
|
42
191
|
{
|
|
@@ -48,9 +197,23 @@ const AxisFrame = ({ children, orientation = "column", direction }) => /* @__PUR
|
|
|
48
197
|
width: "100%"
|
|
49
198
|
}
|
|
50
199
|
)
|
|
51
|
-
] })
|
|
200
|
+
] }),
|
|
201
|
+
hasDualAxis && /* @__PURE__ */ jsx(
|
|
202
|
+
Skeleton,
|
|
203
|
+
{
|
|
204
|
+
borderRadius: 0,
|
|
205
|
+
className: "chart-skeleton-axis chart-skeleton-axis--y-right",
|
|
206
|
+
direction,
|
|
207
|
+
height: "100%",
|
|
208
|
+
variant: "rectangular",
|
|
209
|
+
width: 2
|
|
210
|
+
}
|
|
211
|
+
)
|
|
52
212
|
] });
|
|
53
|
-
const ColumnSkeleton = ({
|
|
213
|
+
const ColumnSkeleton = ({
|
|
214
|
+
direction,
|
|
215
|
+
hasDualAxis
|
|
216
|
+
}) => /* @__PURE__ */ jsx(AxisFrame, { direction, hasDualAxis, orientation: "column", children: COLUMN_BAR_HEIGHTS.map((height, index) => /* @__PURE__ */ jsx(
|
|
54
217
|
Skeleton,
|
|
55
218
|
{
|
|
56
219
|
borderRadius: 8,
|
|
@@ -62,28 +225,259 @@ const ColumnSkeleton = ({ direction }) => /* @__PURE__ */ jsx(AxisFrame, { direc
|
|
|
62
225
|
},
|
|
63
226
|
`column-bar-${index}`
|
|
64
227
|
)) });
|
|
65
|
-
const
|
|
228
|
+
const DENSE_COLUMN_BAR_HEIGHTS = [
|
|
229
|
+
45,
|
|
230
|
+
48,
|
|
231
|
+
34,
|
|
232
|
+
87,
|
|
233
|
+
68,
|
|
234
|
+
33,
|
|
235
|
+
60,
|
|
236
|
+
48,
|
|
237
|
+
12,
|
|
238
|
+
49,
|
|
239
|
+
30,
|
|
240
|
+
85,
|
|
241
|
+
40,
|
|
242
|
+
68,
|
|
243
|
+
75,
|
|
244
|
+
33,
|
|
245
|
+
30,
|
|
246
|
+
30,
|
|
247
|
+
35,
|
|
248
|
+
42,
|
|
249
|
+
27,
|
|
250
|
+
68,
|
|
251
|
+
73,
|
|
252
|
+
72,
|
|
253
|
+
30,
|
|
254
|
+
20,
|
|
255
|
+
24,
|
|
256
|
+
89,
|
|
257
|
+
33,
|
|
258
|
+
45,
|
|
259
|
+
57,
|
|
260
|
+
63,
|
|
261
|
+
45,
|
|
262
|
+
22
|
|
263
|
+
];
|
|
264
|
+
const DenseColumnSkeleton = ({
|
|
265
|
+
direction,
|
|
266
|
+
hasDualAxis
|
|
267
|
+
}) => /* @__PURE__ */ jsx(AxisFrame, { direction, hasDualAxis, orientation: "column-dense", children: DENSE_COLUMN_BAR_HEIGHTS.map((height, index) => /* @__PURE__ */ jsx(
|
|
66
268
|
Skeleton,
|
|
67
269
|
{
|
|
68
|
-
|
|
270
|
+
borderRadius: 2,
|
|
271
|
+
className: "chart-skeleton-bar chart-skeleton-bar--column-dense",
|
|
69
272
|
direction,
|
|
70
|
-
height:
|
|
273
|
+
height: `${height}%`,
|
|
71
274
|
variant: "pill",
|
|
72
|
-
width:
|
|
275
|
+
width: "auto"
|
|
73
276
|
},
|
|
74
|
-
`bar-${index}`
|
|
277
|
+
`dense-column-bar-${index}`
|
|
75
278
|
)) });
|
|
76
|
-
const
|
|
279
|
+
const LollipopSkeleton = ({
|
|
280
|
+
direction,
|
|
281
|
+
hasDualAxis
|
|
282
|
+
}) => /* @__PURE__ */ jsx(AxisFrame, { direction, hasDualAxis, orientation: "column", children: LOLLIPOP_HEIGHTS.map((height, index) => /* @__PURE__ */ jsxs(
|
|
283
|
+
"div",
|
|
284
|
+
{
|
|
285
|
+
className: "chart-skeleton-lollipop",
|
|
286
|
+
style: { height: `${height}%` },
|
|
287
|
+
children: [
|
|
288
|
+
/* @__PURE__ */ jsx(
|
|
289
|
+
Skeleton,
|
|
290
|
+
{
|
|
291
|
+
className: "chart-skeleton-lollipop-head",
|
|
292
|
+
direction,
|
|
293
|
+
height: 12,
|
|
294
|
+
variant: "circular",
|
|
295
|
+
width: 12
|
|
296
|
+
}
|
|
297
|
+
),
|
|
298
|
+
/* @__PURE__ */ jsx(
|
|
299
|
+
Skeleton,
|
|
300
|
+
{
|
|
301
|
+
borderRadius: 0,
|
|
302
|
+
className: "chart-skeleton-lollipop-stem",
|
|
303
|
+
direction,
|
|
304
|
+
height: "100%",
|
|
305
|
+
variant: "rectangular",
|
|
306
|
+
width: 2
|
|
307
|
+
}
|
|
308
|
+
)
|
|
309
|
+
]
|
|
310
|
+
},
|
|
311
|
+
`lollipop-${index}`
|
|
312
|
+
)) });
|
|
313
|
+
const BarSkeleton = ({
|
|
314
|
+
direction,
|
|
315
|
+
hasDualAxis
|
|
316
|
+
}) => /* @__PURE__ */ jsx(AxisFrame, { direction, hasDualAxis, orientation: "bar", children: BAR_WIDTHS.map((width, index) => /* @__PURE__ */ jsx(
|
|
77
317
|
Skeleton,
|
|
78
318
|
{
|
|
79
|
-
className: "chart-skeleton-bar chart-skeleton-bar--
|
|
319
|
+
className: "chart-skeleton-bar chart-skeleton-bar--bar",
|
|
80
320
|
direction,
|
|
81
321
|
height: 14,
|
|
82
322
|
variant: "pill",
|
|
83
323
|
width: `${width}%`
|
|
84
324
|
},
|
|
85
|
-
`
|
|
325
|
+
`bar-${index}`
|
|
86
326
|
)) });
|
|
327
|
+
const AreaSplineSkeleton = ({
|
|
328
|
+
direction,
|
|
329
|
+
hasDualAxis
|
|
330
|
+
}) => /* @__PURE__ */ jsxs("div", { className: "chart-skeleton-plot chart-skeleton-plot--column", children: [
|
|
331
|
+
/* @__PURE__ */ jsx(
|
|
332
|
+
Skeleton,
|
|
333
|
+
{
|
|
334
|
+
borderRadius: 0,
|
|
335
|
+
className: "chart-skeleton-axis chart-skeleton-axis--y",
|
|
336
|
+
direction,
|
|
337
|
+
height: "100%",
|
|
338
|
+
variant: "rectangular",
|
|
339
|
+
width: 2
|
|
340
|
+
}
|
|
341
|
+
),
|
|
342
|
+
/* @__PURE__ */ jsxs("div", { className: "chart-skeleton-plot-inner", children: [
|
|
343
|
+
/* @__PURE__ */ jsx("div", { className: "chart-skeleton-area-spline", children: /* @__PURE__ */ jsxs("svg", { className: "chart-skeleton-area-wave", preserveAspectRatio: "none", viewBox: "0 0 400 200", children: [
|
|
344
|
+
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs("linearGradient", { id: "area-shimmer-gradient", x1: "-100%", x2: "0%", y1: "0%", y2: "0%", children: [
|
|
345
|
+
/* @__PURE__ */ jsx("stop", { offset: "0%", stopColor: "#e8edf5" }),
|
|
346
|
+
/* @__PURE__ */ jsx("stop", { offset: "40%", stopColor: "#d5dbe8" }),
|
|
347
|
+
/* @__PURE__ */ jsx("stop", { offset: "60%", stopColor: "#eceef4" }),
|
|
348
|
+
/* @__PURE__ */ jsx("stop", { offset: "100%", stopColor: "#e8edf5" }),
|
|
349
|
+
/* @__PURE__ */ jsx(
|
|
350
|
+
"animate",
|
|
351
|
+
{
|
|
352
|
+
attributeName: "x1",
|
|
353
|
+
dur: "1.6s",
|
|
354
|
+
from: "-100%",
|
|
355
|
+
repeatCount: "indefinite",
|
|
356
|
+
to: "100%"
|
|
357
|
+
}
|
|
358
|
+
),
|
|
359
|
+
/* @__PURE__ */ jsx("animate", { attributeName: "x2", dur: "1.6s", from: "0%", repeatCount: "indefinite", to: "200%" })
|
|
360
|
+
] }) }),
|
|
361
|
+
/* @__PURE__ */ jsx(
|
|
362
|
+
"path",
|
|
363
|
+
{
|
|
364
|
+
className: "chart-skeleton-area-fill chart-skeleton-area-fill--1",
|
|
365
|
+
d: "M0,185 C20,180 40,170 60,160 C80,120 100,40 120,25 C140,40 160,50 180,70 C220,100 260,130 300,155 C340,170 370,180 400,190 L400,200 L0,200 Z"
|
|
366
|
+
}
|
|
367
|
+
),
|
|
368
|
+
/* @__PURE__ */ jsx(
|
|
369
|
+
"path",
|
|
370
|
+
{
|
|
371
|
+
className: "chart-skeleton-area-fill chart-skeleton-area-fill--2",
|
|
372
|
+
d: "M0,190 C30,185 50,180 70,178 C90,175 110,170 130,175 C150,178 170,182 200,188 C250,192 320,196 400,198 L400,200 L0,200 Z"
|
|
373
|
+
}
|
|
374
|
+
)
|
|
375
|
+
] }) }),
|
|
376
|
+
/* @__PURE__ */ jsx(
|
|
377
|
+
Skeleton,
|
|
378
|
+
{
|
|
379
|
+
borderRadius: 0,
|
|
380
|
+
className: "chart-skeleton-axis chart-skeleton-axis--x",
|
|
381
|
+
direction,
|
|
382
|
+
height: 2,
|
|
383
|
+
variant: "rectangular",
|
|
384
|
+
width: "100%"
|
|
385
|
+
}
|
|
386
|
+
)
|
|
387
|
+
] }),
|
|
388
|
+
hasDualAxis && /* @__PURE__ */ jsx(
|
|
389
|
+
Skeleton,
|
|
390
|
+
{
|
|
391
|
+
borderRadius: 0,
|
|
392
|
+
className: "chart-skeleton-axis chart-skeleton-axis--y-right",
|
|
393
|
+
direction,
|
|
394
|
+
height: "100%",
|
|
395
|
+
variant: "rectangular",
|
|
396
|
+
width: 2
|
|
397
|
+
}
|
|
398
|
+
)
|
|
399
|
+
] });
|
|
400
|
+
const LineSkeleton = ({ direction }) => /* @__PURE__ */ jsxs("div", { className: "chart-skeleton-plot chart-skeleton-plot--line", children: [
|
|
401
|
+
/* @__PURE__ */ jsx(
|
|
402
|
+
Skeleton,
|
|
403
|
+
{
|
|
404
|
+
borderRadius: 0,
|
|
405
|
+
className: "chart-skeleton-axis chart-skeleton-axis--y",
|
|
406
|
+
direction,
|
|
407
|
+
height: "100%",
|
|
408
|
+
variant: "rectangular",
|
|
409
|
+
width: 2
|
|
410
|
+
}
|
|
411
|
+
),
|
|
412
|
+
/* @__PURE__ */ jsxs("div", { className: "chart-skeleton-plot-inner", children: [
|
|
413
|
+
/* @__PURE__ */ jsxs("div", { className: "chart-skeleton-lines", children: [
|
|
414
|
+
/* @__PURE__ */ jsxs("svg", { className: "chart-skeleton-line-wave", preserveAspectRatio: "none", viewBox: "0 0 420 200", children: [
|
|
415
|
+
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs("linearGradient", { id: "line-shimmer-gradient", x1: "-100%", x2: "0%", y1: "0%", y2: "0%", children: [
|
|
416
|
+
/* @__PURE__ */ jsx("stop", { offset: "0%", stopColor: "#e8edf5" }),
|
|
417
|
+
/* @__PURE__ */ jsx("stop", { offset: "40%", stopColor: "#d5dbe8" }),
|
|
418
|
+
/* @__PURE__ */ jsx("stop", { offset: "60%", stopColor: "#eceef4" }),
|
|
419
|
+
/* @__PURE__ */ jsx("stop", { offset: "100%", stopColor: "#e8edf5" }),
|
|
420
|
+
/* @__PURE__ */ jsx(
|
|
421
|
+
"animate",
|
|
422
|
+
{
|
|
423
|
+
attributeName: "x1",
|
|
424
|
+
dur: "1.6s",
|
|
425
|
+
from: "-100%",
|
|
426
|
+
repeatCount: "indefinite",
|
|
427
|
+
to: "100%"
|
|
428
|
+
}
|
|
429
|
+
),
|
|
430
|
+
/* @__PURE__ */ jsx("animate", { attributeName: "x2", dur: "1.6s", from: "0%", repeatCount: "indefinite", to: "200%" })
|
|
431
|
+
] }) }),
|
|
432
|
+
/* @__PURE__ */ jsx(
|
|
433
|
+
"path",
|
|
434
|
+
{
|
|
435
|
+
className: "chart-skeleton-line-path chart-skeleton-line-path--1",
|
|
436
|
+
d: "M10,110 L90,105 L170,115 L250,100 L330,108 L410,95",
|
|
437
|
+
fill: "none",
|
|
438
|
+
stroke: "url(#line-shimmer-gradient)",
|
|
439
|
+
strokeWidth: 3
|
|
440
|
+
}
|
|
441
|
+
),
|
|
442
|
+
/* @__PURE__ */ jsx(
|
|
443
|
+
"path",
|
|
444
|
+
{
|
|
445
|
+
className: "chart-skeleton-line-path chart-skeleton-line-path--2",
|
|
446
|
+
d: "M10,140 L90,135 L170,145 L250,130 L330,138 L410,125",
|
|
447
|
+
fill: "none",
|
|
448
|
+
stroke: "url(#line-shimmer-gradient)",
|
|
449
|
+
strokeWidth: 3
|
|
450
|
+
}
|
|
451
|
+
)
|
|
452
|
+
] }),
|
|
453
|
+
/* @__PURE__ */ jsxs("div", { className: "chart-skeleton-line-dots", children: [
|
|
454
|
+
/* @__PURE__ */ jsx("div", { className: "chart-skeleton-line-dot", style: { left: "2.38%", top: "55%" } }),
|
|
455
|
+
/* @__PURE__ */ jsx("div", { className: "chart-skeleton-line-dot", style: { left: "21.43%", top: "52.5%" } }),
|
|
456
|
+
/* @__PURE__ */ jsx("div", { className: "chart-skeleton-line-dot", style: { left: "40.48%", top: "57.5%" } }),
|
|
457
|
+
/* @__PURE__ */ jsx("div", { className: "chart-skeleton-line-dot", style: { left: "59.52%", top: "50%" } }),
|
|
458
|
+
/* @__PURE__ */ jsx("div", { className: "chart-skeleton-line-dot", style: { left: "78.57%", top: "54%" } }),
|
|
459
|
+
/* @__PURE__ */ jsx("div", { className: "chart-skeleton-line-dot", style: { left: "97.62%", top: "47.5%" } }),
|
|
460
|
+
/* @__PURE__ */ jsx("div", { className: "chart-skeleton-line-dot", style: { left: "2.38%", top: "70%" } }),
|
|
461
|
+
/* @__PURE__ */ jsx("div", { className: "chart-skeleton-line-dot", style: { left: "21.43%", top: "67.5%" } }),
|
|
462
|
+
/* @__PURE__ */ jsx("div", { className: "chart-skeleton-line-dot", style: { left: "40.48%", top: "72.5%" } }),
|
|
463
|
+
/* @__PURE__ */ jsx("div", { className: "chart-skeleton-line-dot", style: { left: "59.52%", top: "65%" } }),
|
|
464
|
+
/* @__PURE__ */ jsx("div", { className: "chart-skeleton-line-dot", style: { left: "78.57%", top: "69%" } }),
|
|
465
|
+
/* @__PURE__ */ jsx("div", { className: "chart-skeleton-line-dot", style: { left: "97.62%", top: "62.5%" } })
|
|
466
|
+
] })
|
|
467
|
+
] }),
|
|
468
|
+
/* @__PURE__ */ jsx(
|
|
469
|
+
Skeleton,
|
|
470
|
+
{
|
|
471
|
+
borderRadius: 0,
|
|
472
|
+
className: "chart-skeleton-axis chart-skeleton-axis--x",
|
|
473
|
+
direction,
|
|
474
|
+
height: 2,
|
|
475
|
+
variant: "rectangular",
|
|
476
|
+
width: "100%"
|
|
477
|
+
}
|
|
478
|
+
)
|
|
479
|
+
] })
|
|
480
|
+
] });
|
|
87
481
|
const DonutSkeleton = ({
|
|
88
482
|
direction,
|
|
89
483
|
variant = "donut"
|
|
@@ -113,17 +507,558 @@ const DonutSkeleton = ({
|
|
|
113
507
|
)) })
|
|
114
508
|
] });
|
|
115
509
|
};
|
|
116
|
-
const
|
|
510
|
+
const ScatterSkeleton = ({ direction }) => /* @__PURE__ */ jsxs("div", { className: "chart-skeleton-plot chart-skeleton-plot--scatter", children: [
|
|
511
|
+
/* @__PURE__ */ jsx(
|
|
512
|
+
Skeleton,
|
|
513
|
+
{
|
|
514
|
+
borderRadius: 0,
|
|
515
|
+
className: "chart-skeleton-axis chart-skeleton-axis--y",
|
|
516
|
+
direction,
|
|
517
|
+
height: "100%",
|
|
518
|
+
variant: "rectangular",
|
|
519
|
+
width: 2
|
|
520
|
+
}
|
|
521
|
+
),
|
|
522
|
+
/* @__PURE__ */ jsxs("div", { className: "chart-skeleton-plot-inner", children: [
|
|
523
|
+
/* @__PURE__ */ jsxs("div", { className: "chart-skeleton-dots", children: [
|
|
524
|
+
/* @__PURE__ */ jsx(
|
|
525
|
+
"div",
|
|
526
|
+
{
|
|
527
|
+
className: "chart-skeleton-dot chart-skeleton-dot--circle",
|
|
528
|
+
style: { left: "10%", top: "20%" }
|
|
529
|
+
}
|
|
530
|
+
),
|
|
531
|
+
/* @__PURE__ */ jsx(
|
|
532
|
+
"div",
|
|
533
|
+
{
|
|
534
|
+
className: "chart-skeleton-dot chart-skeleton-dot--circle",
|
|
535
|
+
style: { left: "15%", top: "45%" }
|
|
536
|
+
}
|
|
537
|
+
),
|
|
538
|
+
/* @__PURE__ */ jsx(
|
|
539
|
+
"div",
|
|
540
|
+
{
|
|
541
|
+
className: "chart-skeleton-dot chart-skeleton-dot--circle",
|
|
542
|
+
style: { left: "25%", top: "30%" }
|
|
543
|
+
}
|
|
544
|
+
),
|
|
545
|
+
/* @__PURE__ */ jsx(
|
|
546
|
+
"div",
|
|
547
|
+
{
|
|
548
|
+
className: "chart-skeleton-dot chart-skeleton-dot--circle",
|
|
549
|
+
style: { left: "30%", top: "60%" }
|
|
550
|
+
}
|
|
551
|
+
),
|
|
552
|
+
/* @__PURE__ */ jsx(
|
|
553
|
+
"div",
|
|
554
|
+
{
|
|
555
|
+
className: "chart-skeleton-dot chart-skeleton-dot--circle",
|
|
556
|
+
style: { left: "40%", top: "25%" }
|
|
557
|
+
}
|
|
558
|
+
),
|
|
559
|
+
/* @__PURE__ */ jsx(
|
|
560
|
+
"div",
|
|
561
|
+
{
|
|
562
|
+
className: "chart-skeleton-dot chart-skeleton-dot--circle",
|
|
563
|
+
style: { left: "45%", top: "50%" }
|
|
564
|
+
}
|
|
565
|
+
),
|
|
566
|
+
/* @__PURE__ */ jsx(
|
|
567
|
+
"div",
|
|
568
|
+
{
|
|
569
|
+
className: "chart-skeleton-dot chart-skeleton-dot--circle",
|
|
570
|
+
style: { left: "55%", top: "35%" }
|
|
571
|
+
}
|
|
572
|
+
),
|
|
573
|
+
/* @__PURE__ */ jsx(
|
|
574
|
+
"div",
|
|
575
|
+
{
|
|
576
|
+
className: "chart-skeleton-dot chart-skeleton-dot--circle",
|
|
577
|
+
style: { left: "60%", top: "70%" }
|
|
578
|
+
}
|
|
579
|
+
),
|
|
580
|
+
/* @__PURE__ */ jsx(
|
|
581
|
+
"div",
|
|
582
|
+
{
|
|
583
|
+
className: "chart-skeleton-dot chart-skeleton-dot--circle",
|
|
584
|
+
style: { left: "70%", top: "40%" }
|
|
585
|
+
}
|
|
586
|
+
),
|
|
587
|
+
/* @__PURE__ */ jsx(
|
|
588
|
+
"div",
|
|
589
|
+
{
|
|
590
|
+
className: "chart-skeleton-dot chart-skeleton-dot--circle",
|
|
591
|
+
style: { left: "75%", top: "55%" }
|
|
592
|
+
}
|
|
593
|
+
),
|
|
594
|
+
/* @__PURE__ */ jsx(
|
|
595
|
+
"div",
|
|
596
|
+
{
|
|
597
|
+
className: "chart-skeleton-dot chart-skeleton-dot--circle",
|
|
598
|
+
style: { left: "85%", top: "30%" }
|
|
599
|
+
}
|
|
600
|
+
),
|
|
601
|
+
/* @__PURE__ */ jsx(
|
|
602
|
+
"div",
|
|
603
|
+
{
|
|
604
|
+
className: "chart-skeleton-dot chart-skeleton-dot--circle",
|
|
605
|
+
style: { left: "90%", top: "65%" }
|
|
606
|
+
}
|
|
607
|
+
),
|
|
608
|
+
/* @__PURE__ */ jsx(
|
|
609
|
+
"div",
|
|
610
|
+
{
|
|
611
|
+
className: "chart-skeleton-dot chart-skeleton-dot--square",
|
|
612
|
+
style: { left: "12%", top: "35%" }
|
|
613
|
+
}
|
|
614
|
+
),
|
|
615
|
+
/* @__PURE__ */ jsx(
|
|
616
|
+
"div",
|
|
617
|
+
{
|
|
618
|
+
className: "chart-skeleton-dot chart-skeleton-dot--square",
|
|
619
|
+
style: { left: "22%", top: "55%" }
|
|
620
|
+
}
|
|
621
|
+
),
|
|
622
|
+
/* @__PURE__ */ jsx(
|
|
623
|
+
"div",
|
|
624
|
+
{
|
|
625
|
+
className: "chart-skeleton-dot chart-skeleton-dot--square",
|
|
626
|
+
style: { left: "35%", top: "40%" }
|
|
627
|
+
}
|
|
628
|
+
),
|
|
629
|
+
/* @__PURE__ */ jsx(
|
|
630
|
+
"div",
|
|
631
|
+
{
|
|
632
|
+
className: "chart-skeleton-dot chart-skeleton-dot--square",
|
|
633
|
+
style: { left: "48%", top: "65%" }
|
|
634
|
+
}
|
|
635
|
+
),
|
|
636
|
+
/* @__PURE__ */ jsx(
|
|
637
|
+
"div",
|
|
638
|
+
{
|
|
639
|
+
className: "chart-skeleton-dot chart-skeleton-dot--square",
|
|
640
|
+
style: { left: "58%", top: "45%" }
|
|
641
|
+
}
|
|
642
|
+
),
|
|
643
|
+
/* @__PURE__ */ jsx(
|
|
644
|
+
"div",
|
|
645
|
+
{
|
|
646
|
+
className: "chart-skeleton-dot chart-skeleton-dot--square",
|
|
647
|
+
style: { left: "68%", top: "60%" }
|
|
648
|
+
}
|
|
649
|
+
),
|
|
650
|
+
/* @__PURE__ */ jsx(
|
|
651
|
+
"div",
|
|
652
|
+
{
|
|
653
|
+
className: "chart-skeleton-dot chart-skeleton-dot--square",
|
|
654
|
+
style: { left: "78%", top: "35%" }
|
|
655
|
+
}
|
|
656
|
+
),
|
|
657
|
+
/* @__PURE__ */ jsx(
|
|
658
|
+
"div",
|
|
659
|
+
{
|
|
660
|
+
className: "chart-skeleton-dot chart-skeleton-dot--square",
|
|
661
|
+
style: { left: "88%", top: "50%" }
|
|
662
|
+
}
|
|
663
|
+
),
|
|
664
|
+
/* @__PURE__ */ jsx(
|
|
665
|
+
"div",
|
|
666
|
+
{
|
|
667
|
+
className: "chart-skeleton-dot chart-skeleton-dot--triangle",
|
|
668
|
+
style: { left: "18%", top: "25%" }
|
|
669
|
+
}
|
|
670
|
+
),
|
|
671
|
+
/* @__PURE__ */ jsx(
|
|
672
|
+
"div",
|
|
673
|
+
{
|
|
674
|
+
className: "chart-skeleton-dot chart-skeleton-dot--triangle",
|
|
675
|
+
style: { left: "28%", top: "70%" }
|
|
676
|
+
}
|
|
677
|
+
),
|
|
678
|
+
/* @__PURE__ */ jsx(
|
|
679
|
+
"div",
|
|
680
|
+
{
|
|
681
|
+
className: "chart-skeleton-dot chart-skeleton-dot--triangle",
|
|
682
|
+
style: { left: "38%", top: "50%" }
|
|
683
|
+
}
|
|
684
|
+
),
|
|
685
|
+
/* @__PURE__ */ jsx(
|
|
686
|
+
"div",
|
|
687
|
+
{
|
|
688
|
+
className: "chart-skeleton-dot chart-skeleton-dot--triangle",
|
|
689
|
+
style: { left: "52%", top: "30%" }
|
|
690
|
+
}
|
|
691
|
+
),
|
|
692
|
+
/* @__PURE__ */ jsx(
|
|
693
|
+
"div",
|
|
694
|
+
{
|
|
695
|
+
className: "chart-skeleton-dot chart-skeleton-dot--triangle",
|
|
696
|
+
style: { left: "62%", top: "55%" }
|
|
697
|
+
}
|
|
698
|
+
),
|
|
699
|
+
/* @__PURE__ */ jsx(
|
|
700
|
+
"div",
|
|
701
|
+
{
|
|
702
|
+
className: "chart-skeleton-dot chart-skeleton-dot--triangle",
|
|
703
|
+
style: { left: "72%", top: "25%" }
|
|
704
|
+
}
|
|
705
|
+
),
|
|
706
|
+
/* @__PURE__ */ jsx(
|
|
707
|
+
"div",
|
|
708
|
+
{
|
|
709
|
+
className: "chart-skeleton-dot chart-skeleton-dot--triangle",
|
|
710
|
+
style: { left: "82%", top: "70%" }
|
|
711
|
+
}
|
|
712
|
+
),
|
|
713
|
+
/* @__PURE__ */ jsx(
|
|
714
|
+
"div",
|
|
715
|
+
{
|
|
716
|
+
className: "chart-skeleton-dot chart-skeleton-dot--circle",
|
|
717
|
+
style: { left: "5%", top: "50%" }
|
|
718
|
+
}
|
|
719
|
+
),
|
|
720
|
+
/* @__PURE__ */ jsx(
|
|
721
|
+
"div",
|
|
722
|
+
{
|
|
723
|
+
className: "chart-skeleton-dot chart-skeleton-dot--circle",
|
|
724
|
+
style: { left: "20%", top: "15%" }
|
|
725
|
+
}
|
|
726
|
+
),
|
|
727
|
+
/* @__PURE__ */ jsx(
|
|
728
|
+
"div",
|
|
729
|
+
{
|
|
730
|
+
className: "chart-skeleton-dot chart-skeleton-dot--circle",
|
|
731
|
+
style: { left: "33%", top: "75%" }
|
|
732
|
+
}
|
|
733
|
+
),
|
|
734
|
+
/* @__PURE__ */ jsx(
|
|
735
|
+
"div",
|
|
736
|
+
{
|
|
737
|
+
className: "chart-skeleton-dot chart-skeleton-dot--circle",
|
|
738
|
+
style: { left: "50%", top: "20%" }
|
|
739
|
+
}
|
|
740
|
+
),
|
|
741
|
+
/* @__PURE__ */ jsx(
|
|
742
|
+
"div",
|
|
743
|
+
{
|
|
744
|
+
className: "chart-skeleton-dot chart-skeleton-dot--circle",
|
|
745
|
+
style: { left: "65%", top: "80%" }
|
|
746
|
+
}
|
|
747
|
+
),
|
|
748
|
+
/* @__PURE__ */ jsx(
|
|
749
|
+
"div",
|
|
750
|
+
{
|
|
751
|
+
className: "chart-skeleton-dot chart-skeleton-dot--circle",
|
|
752
|
+
style: { left: "80%", top: "15%" }
|
|
753
|
+
}
|
|
754
|
+
),
|
|
755
|
+
/* @__PURE__ */ jsx(
|
|
756
|
+
"div",
|
|
757
|
+
{
|
|
758
|
+
className: "chart-skeleton-dot chart-skeleton-dot--circle",
|
|
759
|
+
style: { left: "95%", top: "40%" }
|
|
760
|
+
}
|
|
761
|
+
)
|
|
762
|
+
] }),
|
|
763
|
+
/* @__PURE__ */ jsx(
|
|
764
|
+
Skeleton,
|
|
765
|
+
{
|
|
766
|
+
borderRadius: 0,
|
|
767
|
+
className: "chart-skeleton-axis chart-skeleton-axis--x",
|
|
768
|
+
direction,
|
|
769
|
+
height: 2,
|
|
770
|
+
variant: "rectangular",
|
|
771
|
+
width: "100%"
|
|
772
|
+
}
|
|
773
|
+
)
|
|
774
|
+
] })
|
|
775
|
+
] });
|
|
776
|
+
const Scatter3DSkeleton = (_props) => /* @__PURE__ */ jsx("div", { className: "chart-skeleton-plot chart-skeleton-plot--scatter3d", children: /* @__PURE__ */ jsxs(
|
|
777
|
+
"svg",
|
|
778
|
+
{
|
|
779
|
+
className: "chart-skeleton-scatter3d",
|
|
780
|
+
preserveAspectRatio: "xMidYMid meet",
|
|
781
|
+
viewBox: "0 0 260 110",
|
|
782
|
+
children: [
|
|
783
|
+
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs("linearGradient", { id: "scatter3d-shimmer", x1: "-100%", x2: "0%", y1: "0%", y2: "0%", children: [
|
|
784
|
+
/* @__PURE__ */ jsx("stop", { offset: "0%", stopColor: "#e8edf5" }),
|
|
785
|
+
/* @__PURE__ */ jsx("stop", { offset: "40%", stopColor: "#d5dbe8" }),
|
|
786
|
+
/* @__PURE__ */ jsx("stop", { offset: "60%", stopColor: "#eceef4" }),
|
|
787
|
+
/* @__PURE__ */ jsx("stop", { offset: "100%", stopColor: "#e8edf5" }),
|
|
788
|
+
/* @__PURE__ */ jsx("animate", { attributeName: "x1", dur: "1.6s", from: "-100%", repeatCount: "indefinite", to: "100%" }),
|
|
789
|
+
/* @__PURE__ */ jsx("animate", { attributeName: "x2", dur: "1.6s", from: "0%", repeatCount: "indefinite", to: "200%" })
|
|
790
|
+
] }) }),
|
|
791
|
+
/* @__PURE__ */ jsx(S3DEdge, { from: [0, 0, 0], to: [0, 1, 0] }),
|
|
792
|
+
/* @__PURE__ */ jsx(S3DEdge, { from: [0, 0, 0], to: [0, 0, 1] }),
|
|
793
|
+
/* @__PURE__ */ jsx(S3DEdge, { from: [0, 0, 1], to: [0, 1, 1] }),
|
|
794
|
+
/* @__PURE__ */ jsx(S3DEdge, { from: [0, 1, 1], to: [0, 1, 0] }),
|
|
795
|
+
/* @__PURE__ */ jsx(S3DEdge, { from: [0, 0, 1], to: [1, 0, 1] }),
|
|
796
|
+
/* @__PURE__ */ jsx(S3DEdge, { from: [1, 0, 1], to: [1, 1, 1] }),
|
|
797
|
+
/* @__PURE__ */ jsx(S3DEdge, { from: [1, 1, 1], to: [0, 1, 1] }),
|
|
798
|
+
/* @__PURE__ */ jsx(S3DEdge, { from: [0, 0, 0], to: [1, 0, 0] }),
|
|
799
|
+
/* @__PURE__ */ jsx(S3DEdge, { from: [1, 0, 0], to: [1, 0, 1] }),
|
|
800
|
+
S3D_GRID_STEPS.flatMap((step) => [
|
|
801
|
+
/* @__PURE__ */ jsx(S3DEdge, { dashed: true, from: [0, step, 0], to: [0, step, 1] }, `s3d-level-side-${step}`),
|
|
802
|
+
/* @__PURE__ */ jsx(S3DEdge, { dashed: true, from: [0, step, 1], to: [1, step, 1] }, `s3d-level-back-${step}`),
|
|
803
|
+
/* @__PURE__ */ jsx(S3DEdge, { dashed: true, from: [step, 0, 1], to: [step, 1, 1] }, `s3d-wall-${step}`),
|
|
804
|
+
/* @__PURE__ */ jsx(S3DEdge, { dashed: true, from: [step, 0, 0], to: [step, 0, 1] }, `s3d-floor-${step}`)
|
|
805
|
+
]),
|
|
806
|
+
SCATTER3D_DOTS.map((dot, i) => {
|
|
807
|
+
const point = projectS3D(dot.u, dot.v, dot.w);
|
|
808
|
+
return /* @__PURE__ */ jsx(
|
|
809
|
+
"circle",
|
|
810
|
+
{
|
|
811
|
+
cx: point.x,
|
|
812
|
+
cy: point.y,
|
|
813
|
+
fill: "url(#scatter3d-shimmer)",
|
|
814
|
+
r: 2.2
|
|
815
|
+
},
|
|
816
|
+
`s3d-${i}`
|
|
817
|
+
);
|
|
818
|
+
})
|
|
819
|
+
]
|
|
820
|
+
}
|
|
821
|
+
) });
|
|
822
|
+
const CandlestickSkeleton = ({
|
|
823
|
+
direction,
|
|
824
|
+
hasDualAxis
|
|
825
|
+
}) => /* @__PURE__ */ jsxs("div", { className: "chart-skeleton-plot chart-skeleton-plot--column", children: [
|
|
826
|
+
/* @__PURE__ */ jsx(
|
|
827
|
+
Skeleton,
|
|
828
|
+
{
|
|
829
|
+
borderRadius: 0,
|
|
830
|
+
className: "chart-skeleton-axis chart-skeleton-axis--y",
|
|
831
|
+
direction,
|
|
832
|
+
height: "100%",
|
|
833
|
+
variant: "rectangular",
|
|
834
|
+
width: 2
|
|
835
|
+
}
|
|
836
|
+
),
|
|
837
|
+
/* @__PURE__ */ jsxs("div", { className: "chart-skeleton-plot-inner", children: [
|
|
838
|
+
/* @__PURE__ */ jsx("div", { className: "chart-skeleton-candles", children: CANDLESTICK_DATA.map((candle, index) => /* @__PURE__ */ jsxs("div", { className: "chart-skeleton-candle", children: [
|
|
839
|
+
/* @__PURE__ */ jsx(
|
|
840
|
+
Skeleton,
|
|
841
|
+
{
|
|
842
|
+
borderRadius: 0,
|
|
843
|
+
className: "chart-skeleton-candle-wick",
|
|
844
|
+
direction,
|
|
845
|
+
height: "auto",
|
|
846
|
+
style: {
|
|
847
|
+
position: "absolute",
|
|
848
|
+
top: `${candle.wickTop}%`,
|
|
849
|
+
bottom: `${100 - candle.wickBottom}%`,
|
|
850
|
+
left: "50%",
|
|
851
|
+
transform: "translateX(-50%)"
|
|
852
|
+
},
|
|
853
|
+
variant: "rectangular",
|
|
854
|
+
width: 2
|
|
855
|
+
}
|
|
856
|
+
),
|
|
857
|
+
/* @__PURE__ */ jsx(
|
|
858
|
+
Skeleton,
|
|
859
|
+
{
|
|
860
|
+
borderRadius: 2,
|
|
861
|
+
className: "chart-skeleton-candle-body",
|
|
862
|
+
direction,
|
|
863
|
+
height: "auto",
|
|
864
|
+
style: {
|
|
865
|
+
position: "absolute",
|
|
866
|
+
top: `${candle.bodyTop}%`,
|
|
867
|
+
bottom: `${100 - candle.bodyBottom}%`,
|
|
868
|
+
left: "50%",
|
|
869
|
+
transform: "translateX(-50%)"
|
|
870
|
+
},
|
|
871
|
+
variant: "rectangular",
|
|
872
|
+
width: 20
|
|
873
|
+
}
|
|
874
|
+
)
|
|
875
|
+
] }, `candle-${index}`)) }),
|
|
876
|
+
/* @__PURE__ */ jsx(
|
|
877
|
+
Skeleton,
|
|
878
|
+
{
|
|
879
|
+
borderRadius: 0,
|
|
880
|
+
className: "chart-skeleton-axis chart-skeleton-axis--x",
|
|
881
|
+
direction,
|
|
882
|
+
height: 2,
|
|
883
|
+
variant: "rectangular",
|
|
884
|
+
width: "100%"
|
|
885
|
+
}
|
|
886
|
+
)
|
|
887
|
+
] }),
|
|
888
|
+
hasDualAxis && /* @__PURE__ */ jsx(
|
|
889
|
+
Skeleton,
|
|
890
|
+
{
|
|
891
|
+
borderRadius: 0,
|
|
892
|
+
className: "chart-skeleton-axis chart-skeleton-axis--y-right",
|
|
893
|
+
direction,
|
|
894
|
+
height: "100%",
|
|
895
|
+
variant: "rectangular",
|
|
896
|
+
width: 2
|
|
897
|
+
}
|
|
898
|
+
)
|
|
899
|
+
] });
|
|
900
|
+
const HEATMAP_ROWS = 4;
|
|
901
|
+
const HEATMAP_COLS = 5;
|
|
902
|
+
const HeatmapSkeleton = ({ direction }) => /* @__PURE__ */ jsxs("div", { className: "chart-skeleton-plot chart-skeleton-plot--heatmap", children: [
|
|
117
903
|
/* @__PURE__ */ jsx(
|
|
118
904
|
Skeleton,
|
|
119
905
|
{
|
|
120
|
-
|
|
906
|
+
borderRadius: 0,
|
|
907
|
+
className: "chart-skeleton-axis chart-skeleton-axis--y",
|
|
121
908
|
direction,
|
|
122
|
-
height:
|
|
123
|
-
variant: "
|
|
124
|
-
width:
|
|
909
|
+
height: "100%",
|
|
910
|
+
variant: "rectangular",
|
|
911
|
+
width: 2
|
|
125
912
|
}
|
|
126
913
|
),
|
|
914
|
+
/* @__PURE__ */ jsxs("div", { className: "chart-skeleton-plot-inner", children: [
|
|
915
|
+
/* @__PURE__ */ jsx("div", { className: "chart-skeleton-heatmap", children: Array.from({ length: HEATMAP_COLS }, (_, colIndex) => /* @__PURE__ */ jsx("div", { className: "chart-skeleton-heatmap-col", children: Array.from({ length: HEATMAP_ROWS }, (_2, rowIndex) => /* @__PURE__ */ jsx(
|
|
916
|
+
Skeleton,
|
|
917
|
+
{
|
|
918
|
+
borderRadius: 2,
|
|
919
|
+
className: "chart-skeleton-heatmap-cell",
|
|
920
|
+
direction,
|
|
921
|
+
height: "100%",
|
|
922
|
+
variant: "rectangular",
|
|
923
|
+
width: "100%"
|
|
924
|
+
},
|
|
925
|
+
`heatmap-cell-${colIndex}-${rowIndex}`
|
|
926
|
+
)) }, `heatmap-col-${colIndex}`)) }),
|
|
927
|
+
/* @__PURE__ */ jsx(
|
|
928
|
+
Skeleton,
|
|
929
|
+
{
|
|
930
|
+
borderRadius: 0,
|
|
931
|
+
className: "chart-skeleton-axis chart-skeleton-axis--x",
|
|
932
|
+
direction,
|
|
933
|
+
height: 2,
|
|
934
|
+
variant: "rectangular",
|
|
935
|
+
width: "100%"
|
|
936
|
+
}
|
|
937
|
+
)
|
|
938
|
+
] })
|
|
939
|
+
] });
|
|
940
|
+
const TreemapSkeleton = ({ direction }) => /* @__PURE__ */ jsxs("div", { className: "chart-skeleton-plot chart-skeleton-plot--treemap", children: [
|
|
941
|
+
/* @__PURE__ */ jsx("div", { className: "chart-skeleton-treemap-left", children: /* @__PURE__ */ jsx(
|
|
942
|
+
Skeleton,
|
|
943
|
+
{
|
|
944
|
+
borderRadius: 4,
|
|
945
|
+
className: "chart-skeleton-treemap-block",
|
|
946
|
+
direction,
|
|
947
|
+
height: "100%",
|
|
948
|
+
variant: "rectangular",
|
|
949
|
+
width: "100%"
|
|
950
|
+
}
|
|
951
|
+
) }),
|
|
952
|
+
/* @__PURE__ */ jsxs("div", { className: "chart-skeleton-treemap-right", children: [
|
|
953
|
+
/* @__PURE__ */ jsxs("div", { className: "chart-skeleton-treemap-top", children: [
|
|
954
|
+
/* @__PURE__ */ jsx(
|
|
955
|
+
Skeleton,
|
|
956
|
+
{
|
|
957
|
+
borderRadius: 4,
|
|
958
|
+
className: "chart-skeleton-treemap-block",
|
|
959
|
+
direction,
|
|
960
|
+
height: "100%",
|
|
961
|
+
variant: "rectangular",
|
|
962
|
+
width: "100%"
|
|
963
|
+
}
|
|
964
|
+
),
|
|
965
|
+
/* @__PURE__ */ jsx(
|
|
966
|
+
Skeleton,
|
|
967
|
+
{
|
|
968
|
+
borderRadius: 4,
|
|
969
|
+
className: "chart-skeleton-treemap-block",
|
|
970
|
+
direction,
|
|
971
|
+
height: "100%",
|
|
972
|
+
variant: "rectangular",
|
|
973
|
+
width: "100%"
|
|
974
|
+
}
|
|
975
|
+
),
|
|
976
|
+
/* @__PURE__ */ jsx(
|
|
977
|
+
Skeleton,
|
|
978
|
+
{
|
|
979
|
+
borderRadius: 4,
|
|
980
|
+
className: "chart-skeleton-treemap-block",
|
|
981
|
+
direction,
|
|
982
|
+
height: "100%",
|
|
983
|
+
variant: "rectangular",
|
|
984
|
+
width: "100%"
|
|
985
|
+
}
|
|
986
|
+
)
|
|
987
|
+
] }),
|
|
988
|
+
/* @__PURE__ */ jsx("div", { className: "chart-skeleton-treemap-bottom", children: /* @__PURE__ */ jsx(
|
|
989
|
+
Skeleton,
|
|
990
|
+
{
|
|
991
|
+
borderRadius: 4,
|
|
992
|
+
className: "chart-skeleton-treemap-block",
|
|
993
|
+
direction,
|
|
994
|
+
height: "100%",
|
|
995
|
+
variant: "rectangular",
|
|
996
|
+
width: "100%"
|
|
997
|
+
}
|
|
998
|
+
) })
|
|
999
|
+
] })
|
|
1000
|
+
] });
|
|
1001
|
+
const BubbleSkeleton = ({ direction }) => /* @__PURE__ */ jsxs("div", { className: "chart-skeleton-plot chart-skeleton-plot--column", children: [
|
|
1002
|
+
/* @__PURE__ */ jsx(
|
|
1003
|
+
Skeleton,
|
|
1004
|
+
{
|
|
1005
|
+
borderRadius: 0,
|
|
1006
|
+
className: "chart-skeleton-axis chart-skeleton-axis--y",
|
|
1007
|
+
direction,
|
|
1008
|
+
height: "100%",
|
|
1009
|
+
variant: "rectangular",
|
|
1010
|
+
width: 2
|
|
1011
|
+
}
|
|
1012
|
+
),
|
|
1013
|
+
/* @__PURE__ */ jsxs("div", { className: "chart-skeleton-plot-inner", children: [
|
|
1014
|
+
/* @__PURE__ */ jsx("div", { className: "chart-skeleton-bubble-area", children: BUBBLE_DATA.map((bubble, index) => /* @__PURE__ */ jsx(
|
|
1015
|
+
Skeleton,
|
|
1016
|
+
{
|
|
1017
|
+
className: "chart-skeleton-bubble",
|
|
1018
|
+
direction,
|
|
1019
|
+
height: bubble.size,
|
|
1020
|
+
style: { top: `${bubble.top}%`, left: `${bubble.left}%` },
|
|
1021
|
+
variant: "circular",
|
|
1022
|
+
width: bubble.size
|
|
1023
|
+
},
|
|
1024
|
+
`bubble-${index}`
|
|
1025
|
+
)) }),
|
|
1026
|
+
/* @__PURE__ */ jsx(
|
|
1027
|
+
Skeleton,
|
|
1028
|
+
{
|
|
1029
|
+
borderRadius: 0,
|
|
1030
|
+
className: "chart-skeleton-axis chart-skeleton-axis--x",
|
|
1031
|
+
direction,
|
|
1032
|
+
height: 2,
|
|
1033
|
+
variant: "rectangular",
|
|
1034
|
+
width: "100%"
|
|
1035
|
+
}
|
|
1036
|
+
)
|
|
1037
|
+
] })
|
|
1038
|
+
] });
|
|
1039
|
+
const VennSkeleton = ({ direction }) => /* @__PURE__ */ jsxs("div", { className: "chart-skeleton-plot chart-skeleton-plot--venn", children: [
|
|
1040
|
+
/* @__PURE__ */ jsxs("div", { className: "chart-skeleton-venn-circles", children: [
|
|
1041
|
+
/* @__PURE__ */ jsx(
|
|
1042
|
+
Skeleton,
|
|
1043
|
+
{
|
|
1044
|
+
className: "chart-skeleton-venn-circle chart-skeleton-venn-circle--left",
|
|
1045
|
+
direction,
|
|
1046
|
+
height: 140,
|
|
1047
|
+
variant: "circular",
|
|
1048
|
+
width: 140
|
|
1049
|
+
}
|
|
1050
|
+
),
|
|
1051
|
+
/* @__PURE__ */ jsx(
|
|
1052
|
+
Skeleton,
|
|
1053
|
+
{
|
|
1054
|
+
className: "chart-skeleton-venn-circle chart-skeleton-venn-circle--right",
|
|
1055
|
+
direction,
|
|
1056
|
+
height: 140,
|
|
1057
|
+
variant: "circular",
|
|
1058
|
+
width: 140
|
|
1059
|
+
}
|
|
1060
|
+
)
|
|
1061
|
+
] }),
|
|
127
1062
|
/* @__PURE__ */ jsx("div", { className: "chart-skeleton-legend", children: LEGEND_WIDTHS.map((width, index) => /* @__PURE__ */ jsx(
|
|
128
1063
|
Skeleton,
|
|
129
1064
|
{
|
|
@@ -136,12 +1071,21 @@ const CircularPlotSkeleton = ({ direction }) => /* @__PURE__ */ jsxs("div", { cl
|
|
|
136
1071
|
`legend-${index}`
|
|
137
1072
|
)) })
|
|
138
1073
|
] });
|
|
139
|
-
const getSkeletonByType = (graphType, direction) => {
|
|
1074
|
+
const getSkeletonByType = (graphType, direction, hasDualAxis) => {
|
|
140
1075
|
const type = (graphType || "column").toLowerCase();
|
|
1076
|
+
if (type === "column-dense") {
|
|
1077
|
+
return /* @__PURE__ */ jsx(DenseColumnSkeleton, { direction, hasDualAxis });
|
|
1078
|
+
}
|
|
1079
|
+
if (type === "lollipop") {
|
|
1080
|
+
return /* @__PURE__ */ jsx(LollipopSkeleton, { direction, hasDualAxis });
|
|
1081
|
+
}
|
|
141
1082
|
if (type === "bar") {
|
|
142
|
-
return /* @__PURE__ */ jsx(BarSkeleton, { direction });
|
|
1083
|
+
return /* @__PURE__ */ jsx(BarSkeleton, { direction, hasDualAxis });
|
|
143
1084
|
}
|
|
144
|
-
if (type === "
|
|
1085
|
+
if (type === "area" || type === "area line" || type === "areaspline") {
|
|
1086
|
+
return /* @__PURE__ */ jsx(AreaSplineSkeleton, { direction, hasDualAxis });
|
|
1087
|
+
}
|
|
1088
|
+
if (type === "line") {
|
|
145
1089
|
return /* @__PURE__ */ jsx(LineSkeleton, { direction });
|
|
146
1090
|
}
|
|
147
1091
|
if (type === "pie") {
|
|
@@ -150,19 +1094,40 @@ const getSkeletonByType = (graphType, direction) => {
|
|
|
150
1094
|
if (type === "semidonut") {
|
|
151
1095
|
return /* @__PURE__ */ jsx(DonutSkeleton, { direction, variant: "semidonut" });
|
|
152
1096
|
}
|
|
153
|
-
if (type === "
|
|
154
|
-
return /* @__PURE__ */ jsx(
|
|
1097
|
+
if (type === "bubble" || type === "packedbubble") {
|
|
1098
|
+
return /* @__PURE__ */ jsx(BubbleSkeleton, { direction });
|
|
1099
|
+
}
|
|
1100
|
+
if (type === "scatter") {
|
|
1101
|
+
return /* @__PURE__ */ jsx(ScatterSkeleton, { direction });
|
|
1102
|
+
}
|
|
1103
|
+
if (type === "scatter3d") {
|
|
1104
|
+
return /* @__PURE__ */ jsx(Scatter3DSkeleton, { direction });
|
|
1105
|
+
}
|
|
1106
|
+
if (type === "venn") {
|
|
1107
|
+
return /* @__PURE__ */ jsx(VennSkeleton, { direction });
|
|
1108
|
+
}
|
|
1109
|
+
if (type === "candlestick") {
|
|
1110
|
+
return /* @__PURE__ */ jsx(CandlestickSkeleton, { direction, hasDualAxis });
|
|
1111
|
+
}
|
|
1112
|
+
if (type === "treemap") {
|
|
1113
|
+
return /* @__PURE__ */ jsx(TreemapSkeleton, { direction });
|
|
1114
|
+
}
|
|
1115
|
+
if (type === "heatmap") {
|
|
1116
|
+
return /* @__PURE__ */ jsx(HeatmapSkeleton, { direction });
|
|
155
1117
|
}
|
|
156
|
-
return /* @__PURE__ */ jsx(ColumnSkeleton, { direction });
|
|
1118
|
+
return /* @__PURE__ */ jsx(ColumnSkeleton, { direction, hasDualAxis });
|
|
157
1119
|
};
|
|
158
1120
|
function ChartSkeleton({
|
|
159
1121
|
graphType = "column",
|
|
160
1122
|
height = null,
|
|
161
|
-
shimmerDirection = "auto"
|
|
1123
|
+
shimmerDirection = "auto",
|
|
1124
|
+
dense = false,
|
|
1125
|
+
hasDualAxis = false
|
|
162
1126
|
}) {
|
|
1127
|
+
const effectiveType = dense ? "column-dense" : graphType;
|
|
163
1128
|
const style = height ? { height } : void 0;
|
|
164
|
-
const direction = resolveShimmerDirection(shimmerDirection,
|
|
165
|
-
return /* @__PURE__ */ jsx("div", { "aria-busy": "true", "aria-live": "polite", className: "chart-skeleton", style, children: getSkeletonByType(
|
|
1129
|
+
const direction = resolveShimmerDirection(shimmerDirection, effectiveType);
|
|
1130
|
+
return /* @__PURE__ */ jsx("div", { "aria-busy": "true", "aria-live": "polite", className: "chart-skeleton", style, children: getSkeletonByType(effectiveType, direction, hasDualAxis) });
|
|
166
1131
|
}
|
|
167
1132
|
ChartSkeleton.displayName = "ChartSkeleton";
|
|
168
1133
|
export {
|