@automattic/charts 0.46.2 → 0.47.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/CHANGELOG.md +16 -2
- package/dist/{chunk-HZZTNJYP.cjs → chunk-22TV5IPN.cjs} +139 -101
- package/dist/chunk-22TV5IPN.cjs.map +1 -0
- package/dist/{chunk-N36WJKYM.cjs → chunk-ACYRVLI5.cjs} +3 -3
- package/dist/{chunk-N36WJKYM.cjs.map → chunk-ACYRVLI5.cjs.map} +1 -1
- package/dist/{chunk-QPHNEQCK.cjs → chunk-J6XON6FM.cjs} +8 -3
- package/dist/chunk-J6XON6FM.cjs.map +1 -0
- package/dist/{chunk-CNAKHZMW.cjs → chunk-KC3ITX3B.cjs} +10 -3
- package/dist/chunk-KC3ITX3B.cjs.map +1 -0
- package/dist/{chunk-KEBKTDOQ.js → chunk-MCFIVI3D.js} +8 -3
- package/dist/chunk-MCFIVI3D.js.map +1 -0
- package/dist/{chunk-JGX3ZNK5.js → chunk-MWFUJOQX.js} +11 -3
- package/dist/chunk-MWFUJOQX.js.map +1 -0
- package/dist/{chunk-HVWETEEV.js → chunk-NEANE7H4.js} +10 -3
- package/dist/chunk-NEANE7H4.js.map +1 -0
- package/dist/{chunk-GEB4GELE.cjs → chunk-S5H6V6VU.cjs} +11 -3
- package/dist/chunk-S5H6V6VU.cjs.map +1 -0
- package/dist/{chunk-JI6OGGGF.js → chunk-UG756X62.js} +2 -2
- package/dist/{chunk-Q2RJUTMN.js → chunk-WIBQECQE.js} +138 -100
- package/dist/chunk-WIBQECQE.js.map +1 -0
- package/dist/components/bar-chart/index.cjs +2 -2
- package/dist/components/bar-chart/index.css +22 -0
- package/dist/components/bar-chart/index.css.map +1 -1
- package/dist/components/bar-chart/index.d.cts +1 -1
- package/dist/components/bar-chart/index.d.ts +1 -1
- package/dist/components/bar-chart/index.js +1 -1
- package/dist/components/bar-list-chart/index.cjs +3 -3
- package/dist/components/bar-list-chart/index.css +22 -0
- package/dist/components/bar-list-chart/index.css.map +1 -1
- package/dist/components/bar-list-chart/index.d.cts +1 -1
- package/dist/components/bar-list-chart/index.d.ts +1 -1
- package/dist/components/bar-list-chart/index.js +2 -2
- package/dist/components/conversion-funnel-chart/index.cjs +2 -2
- package/dist/components/conversion-funnel-chart/index.css +11 -0
- package/dist/components/conversion-funnel-chart/index.css.map +1 -1
- package/dist/components/conversion-funnel-chart/index.d.cts +2 -2
- package/dist/components/conversion-funnel-chart/index.d.ts +2 -2
- package/dist/components/conversion-funnel-chart/index.js +1 -1
- package/dist/components/leaderboard-chart/index.cjs +2 -2
- package/dist/components/leaderboard-chart/index.css +11 -1
- package/dist/components/leaderboard-chart/index.css.map +1 -1
- package/dist/components/leaderboard-chart/index.d.cts +2 -2
- package/dist/components/leaderboard-chart/index.d.ts +2 -2
- package/dist/components/leaderboard-chart/index.js +1 -1
- package/dist/components/legend/index.d.cts +1 -1
- package/dist/components/legend/index.d.ts +1 -1
- package/dist/components/line-chart/index.cjs +2 -2
- package/dist/components/line-chart/index.css +10 -0
- package/dist/components/line-chart/index.css.map +1 -1
- package/dist/components/line-chart/index.d.cts +2 -1
- package/dist/components/line-chart/index.d.ts +2 -1
- package/dist/components/line-chart/index.js +1 -1
- package/dist/components/pie-chart/index.d.cts +1 -1
- package/dist/components/pie-chart/index.d.ts +1 -1
- package/dist/components/pie-semi-circle-chart/index.d.cts +1 -1
- package/dist/components/pie-semi-circle-chart/index.d.ts +1 -1
- package/dist/components/tooltip/index.d.cts +1 -1
- package/dist/components/tooltip/index.d.ts +1 -1
- package/dist/hooks/index.d.cts +1 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/index.cjs +6 -6
- package/dist/index.css +54 -1
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +5 -5
- package/dist/{leaderboard-chart-B5JRimc9.d.cts → leaderboard-chart-B3CQbXhp.d.cts} +2 -2
- package/dist/{leaderboard-chart-DQ8i8GMA.d.ts → leaderboard-chart-CaZgGytL.d.ts} +2 -2
- package/dist/providers/index.d.cts +2 -2
- package/dist/providers/index.d.ts +2 -2
- package/dist/{themes-TIJq1lG_.d.cts → themes-DL0AAxyZ.d.cts} +1 -1
- package/dist/{themes-CN85BQM1.d.ts → themes-_t_7uxnQ.d.ts} +1 -1
- package/dist/{types-73KOEWs9.d.ts → types-DU5eF3uf.d.cts} +4 -0
- package/dist/{types-73KOEWs9.d.cts → types-DU5eF3uf.d.ts} +4 -0
- package/package.json +8 -22
- package/src/components/bar-chart/bar-chart.module.scss +28 -0
- package/src/components/bar-chart/bar-chart.tsx +4 -1
- package/src/components/conversion-funnel-chart/conversion-funnel-chart.module.scss +13 -0
- package/src/components/conversion-funnel-chart/conversion-funnel-chart.tsx +5 -1
- package/src/components/conversion-funnel-chart/types.ts +1 -1
- package/src/components/leaderboard-chart/leaderboard-chart.module.scss +13 -1
- package/src/components/leaderboard-chart/leaderboard-chart.tsx +11 -2
- package/src/components/leaderboard-chart/types.ts +1 -0
- package/src/components/line-chart/line-chart.module.scss +15 -0
- package/src/components/line-chart/line-chart.tsx +7 -1
- package/src/components/line-chart/types.ts +1 -0
- package/src/types.ts +4 -0
- package/dist/chunk-CNAKHZMW.cjs.map +0 -1
- package/dist/chunk-GEB4GELE.cjs.map +0 -1
- package/dist/chunk-HVWETEEV.js.map +0 -1
- package/dist/chunk-HZZTNJYP.cjs.map +0 -1
- package/dist/chunk-JGX3ZNK5.js.map +0 -1
- package/dist/chunk-KEBKTDOQ.js.map +0 -1
- package/dist/chunk-Q2RJUTMN.js.map +0 -1
- package/dist/chunk-QPHNEQCK.cjs.map +0 -1
- /package/dist/{chunk-JI6OGGGF.js.map → chunk-UG756X62.js.map} +0 -0
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkS5H6V6VUcjs = require('./chunk-S5H6V6VU.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -14,21 +14,21 @@ require('./chunk-7OZEQ5HE.cjs');
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkACYRVLI5cjs = require('./chunk-ACYRVLI5.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkKC3ITX3Bcjs = require('./chunk-KC3ITX3B.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
var _chunk6GO5PFYLcjs = require('./chunk-6GO5PFYL.cjs');
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkJ6XON6FMcjs = require('./chunk-J6XON6FM.cjs');
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunk22TV5IPNcjs = require('./chunk-22TV5IPN.cjs');
|
|
32
32
|
require('./chunk-3Z526IL2.cjs');
|
|
33
33
|
require('./chunk-FX2PTUFC.cjs');
|
|
34
34
|
|
|
@@ -70,5 +70,5 @@ require('./chunk-EMMSS5I5.cjs');
|
|
|
70
70
|
|
|
71
71
|
|
|
72
72
|
|
|
73
|
-
exports.BarChart =
|
|
73
|
+
exports.BarChart = _chunkKC3ITX3Bcjs.BarChartResponsive; exports.BarChartUnresponsive = _chunkKC3ITX3Bcjs.BarChart; exports.BarListChart = _chunkACYRVLI5cjs.BarListChartResponsive; exports.BarListChartUnresponsive = _chunkACYRVLI5cjs.BarListChart; exports.BaseTooltip = _chunk6GO5PFYLcjs.BaseTooltip; exports.ConversionFunnelChart = _chunkJ6XON6FMcjs.ConversionFunnelChartWithProvider; exports.GlobalChartsContext = _chunkLSGYIUQXcjs.GlobalChartsContext; exports.GlobalChartsProvider = _chunkLSGYIUQXcjs.GlobalChartsProvider; exports.LeaderboardChart = _chunk22TV5IPNcjs.LeaderboardChartResponsive; exports.LeaderboardChartUnresponsive = _chunk22TV5IPNcjs.LeaderboardChart; exports.Legend = _chunkPNSMPZ3Ecjs.Legend; exports.LineChart = _chunkS5H6V6VUcjs.LineChartResponsive; exports.LineChartUnresponsive = _chunkS5H6V6VUcjs.LineChart; exports.PieChart = _chunkYKVKFUV7cjs.PieChartResponsive; exports.PieChartUnresponsive = _chunkYKVKFUV7cjs.PieChart; exports.PieSemiCircleChart = _chunkVOMSG7KVcjs.PieSemiCircleChartResponsive; exports.PieSemiCircleChartUnresponsive = _chunkVOMSG7KVcjs.PieSemiCircleChart; exports.ThemeProvider = _chunkLSGYIUQXcjs.GlobalChartsProvider; exports.defaultTheme = _chunkLSGYIUQXcjs.defaultTheme; exports.jetpackTheme = _chunkLSGYIUQXcjs.jetpackTheme; exports.useChartLegendItems = _chunkPNSMPZ3Ecjs.useChartLegendItems; exports.useGlobalChartsContext = _chunkLSGYIUQXcjs.useGlobalChartsContext; exports.useGlobalChartsTheme = _chunkLSGYIUQXcjs.useGlobalChartsTheme; exports.wooTheme = _chunkLSGYIUQXcjs.wooTheme;
|
|
74
74
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.css
CHANGED
|
@@ -117,6 +117,28 @@
|
|
|
117
117
|
.a8ccharts-vgKKqG {
|
|
118
118
|
margin-top: 1rem;
|
|
119
119
|
}
|
|
120
|
+
.a8ccharts-vHWVsO rect {
|
|
121
|
+
transform-origin: bottom;
|
|
122
|
+
transform-box: fill-box;
|
|
123
|
+
transform: scaleY(0);
|
|
124
|
+
animation: a8ccharts-wCPctT 1s ease-out forwards;
|
|
125
|
+
}
|
|
126
|
+
@keyframes a8ccharts-wCPctT {
|
|
127
|
+
to {
|
|
128
|
+
transform: scaleY(1);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
.a8ccharts-3kCz4q rect {
|
|
132
|
+
transform-origin: left;
|
|
133
|
+
transform-box: fill-box;
|
|
134
|
+
transform: scaleX(0);
|
|
135
|
+
animation: a8ccharts-MtfGVm 1s ease-out forwards;
|
|
136
|
+
}
|
|
137
|
+
@keyframes a8ccharts-MtfGVm {
|
|
138
|
+
to {
|
|
139
|
+
transform: scaleX(1);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
120
142
|
|
|
121
143
|
/* esbuild-sass-plugin:css-chunk:src/components/line-chart/line-chart.module.scss */
|
|
122
144
|
.a8ccharts-ITM3dm {
|
|
@@ -207,6 +229,16 @@
|
|
|
207
229
|
width: 10px;
|
|
208
230
|
height: 10px;
|
|
209
231
|
}
|
|
232
|
+
.a8ccharts-Hj6YbD path {
|
|
233
|
+
transform-origin: 0 95%;
|
|
234
|
+
transform: scaleY(0);
|
|
235
|
+
animation: a8ccharts-gb7M8E 1s ease-out forwards;
|
|
236
|
+
}
|
|
237
|
+
@keyframes a8ccharts-gb7M8E {
|
|
238
|
+
to {
|
|
239
|
+
transform: scaleY(1);
|
|
240
|
+
}
|
|
241
|
+
}
|
|
210
242
|
|
|
211
243
|
/* esbuild-sass-plugin:css-chunk:src/components/pie-chart/pie-chart.module.scss */
|
|
212
244
|
.a8ccharts-R12VhH {
|
|
@@ -262,7 +294,17 @@
|
|
|
262
294
|
min-height: 6px;
|
|
263
295
|
border-radius: var(--a8c--charts--leaderboard--bar--border-radius, 9999px);
|
|
264
296
|
z-index: -1;
|
|
265
|
-
|
|
297
|
+
}
|
|
298
|
+
.a8ccharts-9RE0Uo .a8ccharts-qPpCM2 {
|
|
299
|
+
transform-origin: left;
|
|
300
|
+
transform-box: fill-box;
|
|
301
|
+
transform: scaleX(0);
|
|
302
|
+
animation: a8ccharts-VlC0fg 1s ease-out forwards;
|
|
303
|
+
}
|
|
304
|
+
@keyframes a8ccharts-VlC0fg {
|
|
305
|
+
to {
|
|
306
|
+
transform: scaleX(1);
|
|
307
|
+
}
|
|
266
308
|
}
|
|
267
309
|
.a8ccharts-ZlLh4R {
|
|
268
310
|
display: flex;
|
|
@@ -415,4 +457,15 @@
|
|
|
415
457
|
color: #6b7280;
|
|
416
458
|
font-size: 16px;
|
|
417
459
|
}
|
|
460
|
+
.a8ccharts-wvCpVT {
|
|
461
|
+
transform-origin: bottom;
|
|
462
|
+
transform-box: fill-box;
|
|
463
|
+
transform: scaleY(0);
|
|
464
|
+
animation: a8ccharts-4otxiv 1s ease-out forwards;
|
|
465
|
+
}
|
|
466
|
+
@keyframes a8ccharts-4otxiv {
|
|
467
|
+
to {
|
|
468
|
+
transform: scaleY(1);
|
|
469
|
+
}
|
|
470
|
+
}
|
|
418
471
|
/*# sourceMappingURL=index.css.map */
|
package/dist/index.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["esbuild-sass-plugin:css-chunk:src/components/legend/private/base-legend.module.scss","esbuild-sass-plugin:css-chunk:src/components/tooltip/base-tooltip.module.scss","esbuild-sass-plugin:css-chunk:src/components/bar-chart/bar-chart.module.scss","esbuild-sass-plugin:css-chunk:src/components/line-chart/line-chart.module.scss","esbuild-sass-plugin:css-chunk:src/components/pie-chart/pie-chart.module.scss","esbuild-sass-plugin:css-chunk:src/components/pie-semi-circle-chart/pie-semi-circle-chart.module.scss","esbuild-sass-plugin:css-chunk:src/components/leaderboard-chart/leaderboard-chart.module.scss","esbuild-sass-plugin:css-chunk:src/components/conversion-funnel-chart/conversion-funnel-chart.module.scss"],"sourcesContent":[".a8ccharts-AELBvX {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n gap: 16px;\n}\n.a8ccharts-fX8uQe {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n.a8ccharts-fX8uQe.a8ccharts-DEe0wg {\n align-items: flex-start;\n}\n.a8ccharts-fX8uQe.a8ccharts-WBKF9I {\n align-items: center;\n}\n.a8ccharts-fX8uQe.a8ccharts-JfwMng {\n align-items: flex-end;\n}\n.a8ccharts-8Y73Kh {\n position: relative;\n}\n.a8ccharts-8Y73Kh.a8ccharts-DEe0wg {\n justify-content: flex-start;\n}\n.a8ccharts-8Y73Kh.a8ccharts-WBKF9I {\n justify-content: center;\n}\n.a8ccharts-8Y73Kh.a8ccharts-JfwMng {\n justify-content: flex-end;\n}\n.a8ccharts-TVM-IY {\n position: relative;\n}\n.a8ccharts-TVM-IY.a8ccharts-DEe0wg {\n justify-content: flex-start;\n}\n.a8ccharts-TVM-IY.a8ccharts-WBKF9I {\n justify-content: center;\n}\n.a8ccharts-TVM-IY.a8ccharts-JfwMng {\n justify-content: flex-end;\n}\n\n.a8ccharts-Vflwq8 {\n display: flex;\n align-items: center;\n font-size: 0.875rem;\n}\n.a8ccharts-qGsavM {\n cursor: pointer;\n user-select: none;\n transition: opacity 0.2s ease;\n}\n.a8ccharts-qGsavM:hover {\n opacity: 0.8;\n}\n.a8ccharts-qGsavM:focus {\n outline: 2px solid currentColor;\n outline-offset: 2px;\n border-radius: 4px;\n}\n.a8ccharts-qGsavM:focus:not(:focus-visible) {\n outline: none;\n}\n.a8ccharts-ZtDY-Q {\n opacity: 0.4;\n}\n.a8ccharts-ZtDY-Q .a8ccharts-2H65Kr {\n text-decoration: line-through;\n}\n\n.a8ccharts-2H65Kr {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n /* Text wrapping is handled at the text level, not the label container */\n}\n\n.a8ccharts-faSDBI {\n word-wrap: break-word;\n overflow-wrap: break-word;\n white-space: normal;\n hyphens: auto;\n}\n.a8ccharts-FISUIO {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n flex-shrink: 1;\n min-width: 0;\n}\n\n.a8ccharts-DTZlT- {\n font-weight: 500;\n flex-shrink: 0;\n}",".a8ccharts-OfX6nd {\n padding: 0.5rem;\n background-color: rgba(0, 0, 0, 0.85);\n color: #fff;\n border-radius: 4px;\n font-size: 14px;\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);\n position: absolute;\n pointer-events: none;\n transform: translate(-50%, -100%);\n}",".a8ccharts-lmYNi- {\n display: flex;\n flex-direction: column;\n}\n.a8ccharts-lmYNi- svg {\n overflow: visible;\n}\n.a8ccharts-vgKKqG {\n margin-top: 1rem;\n}",".a8ccharts-ITM3dm {\n display: flex;\n flex-direction: column;\n}\n.a8ccharts-ITM3dm svg {\n overflow: visible;\n}\n.a8ccharts-aqcmeq, .a8ccharts-TqNZkh {\n background: #fff;\n padding: 0.5rem;\n}\n.a8ccharts-4Dzab- {\n font-weight: 700;\n padding-bottom: 10px;\n}\n.a8ccharts-6A37Gb {\n display: flex;\n align-items: center;\n padding: 4px 0;\n justify-content: space-between;\n}\n.a8ccharts-IvnFFF {\n font-weight: 500;\n padding-right: 1rem;\n}\n.a8ccharts-4nR2pv {\n position: absolute;\n left: 0;\n top: 0;\n overflow: visible;\n pointer-events: none;\n}\n.a8ccharts-OmgiTA {\n pointer-events: auto;\n}\n.a8ccharts-mcIb3E {\n display: flex;\n align-items: center;\n justify-content: center;\n pointer-events: auto;\n cursor: pointer;\n border: none;\n background: none;\n padding: 0;\n}\n.a8ccharts-TqNZkh {\n min-width: 125px;\n background: #fff;\n border: none;\n border-radius: 4px;\n font-size: 14px;\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);\n position: fixed;\n margin: 0.5rem;\n visibility: hidden;\n}\n.a8ccharts-dE0cVP {\n visibility: visible;\n}\n.a8ccharts-i3NHTh {\n position: initial;\n margin: auto;\n}\n.a8ccharts-OwypoS {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: start;\n}\n.a8ccharts-vtgQtP {\n padding: 0.5rem;\n}\n.a8ccharts-i8KUcG {\n background: none;\n border: none;\n cursor: pointer;\n width: 44px;\n height: 44px;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n}\n\n.visx-tooltip-glyph svg {\n width: 10px;\n height: 10px;\n}",".a8ccharts-R12VhH {\n display: flex;\n flex-direction: column;\n overflow: hidden;\n align-items: center;\n gap: 20px;\n}",".a8ccharts-r5jk9c {\n display: flex;\n flex-direction: column;\n text-align: center;\n gap: 20px;\n}\n.a8ccharts-r5jk9c .a8ccharts-nPqOgD {\n margin-bottom: 0;\n font-weight: 600;\n font-size: 16px;\n}\n.a8ccharts-r5jk9c .a8ccharts-LpBZQh {\n margin-top: 0;\n font-size: 14px;\n}",".a8ccharts-zxakPT {\n transition: opacity 0.3s ease-in-out;\n}\n.a8ccharts-zxakPT.a8ccharts--AGv-8 {\n opacity: 0.5;\n}\n\n.a8ccharts-9RE0Uo {\n display: grid;\n align-items: center;\n grid-template-columns: 1fr;\n row-gap: 6px;\n isolation: isolate;\n}\n.a8ccharts-9RE0Uo.a8ccharts-Fqdi5w {\n grid-template: \"overlap\" 1fr/1fr; /* contains a single cell callded 'overlap' */\n}\n.a8ccharts-9RE0Uo.a8ccharts-Fqdi5w > * {\n grid-area: overlap;\n}\n.a8ccharts-9RE0Uo.a8ccharts-Fqdi5w .a8ccharts-7ZUu0T {\n padding-left: 8px;\n}\n.a8ccharts-9RE0Uo .a8ccharts-CnJvgl {\n height: 100%;\n min-height: 6px;\n border-radius: var(--a8c--charts--leaderboard--bar--border-radius, 9999px);\n z-index: -1; /* places it behind the label */\n transition: width 0.3s ease-in-out;\n}\n\n.a8ccharts-ZlLh4R {\n display: flex;\n gap: 4px;\n justify-content: flex-end;\n}\n\n.a8ccharts-pRqShB {\n align-items: center;\n}\n\n.a8ccharts-0dkfyF {\n padding: 32px 16px;\n text-align: center;\n color: #666;\n font-size: 14px;\n font-style: italic;\n}",".a8ccharts--9Qsb0 {\n font-family: var(--funnel-font-family, \"SF Pro Text\");\n}\n.a8ccharts--9Qsb0.a8ccharts-Kw-iZo {\n opacity: 0.6;\n pointer-events: none;\n}\n\n.a8ccharts-8mIwVL {\n display: flex;\n align-items: baseline;\n gap: 8px;\n margin-bottom: 24px;\n height: 20px;\n}\n\n.a8ccharts-D93Ubo {\n overflow: hidden;\n color: #1e1e1e;\n text-overflow: ellipsis;\n font-family: var(--funnel-font-family, \"SF Pro Text\");\n font-size: 18px;\n font-style: normal;\n font-weight: 500;\n line-height: 20px;\n margin: 0;\n}\n\n.a8ccharts-QWypVS {\n overflow: hidden;\n text-overflow: ellipsis;\n font-family: var(--funnel-font-family, \"SF Pro Text\");\n font-size: 13px;\n font-style: normal;\n font-weight: 500;\n line-height: 20px;\n margin: 0;\n}\n\n.a8ccharts-RR7xaC {\n display: flex;\n gap: 16px;\n align-items: flex-end;\n height: 200px;\n width: 100%;\n}\n\n.a8ccharts-VIVztE {\n flex: 1 1 0;\n min-width: 0;\n display: flex;\n flex-direction: column;\n height: 100%;\n transition: all 0.3s ease;\n}\n.a8ccharts-VIVztE.a8ccharts-Ax4cuC {\n opacity: 0.3;\n}\n\n.a8ccharts-bUrZ0x {\n margin-bottom: 24px;\n}\n\n.a8ccharts-SCy8FA {\n color: #757575;\n font-family: var(--step-font-family, \"SF Pro\");\n font-size: 12px;\n font-style: normal;\n font-weight: 400;\n line-height: 16px;\n margin: 0 0 2px 0;\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.a8ccharts-A0irBo {\n color: #1e1e1e;\n font-family: var(--step-font-family, \"SF Pro\");\n font-size: 13px;\n font-style: normal;\n font-weight: 500;\n line-height: 20px;\n margin: 0;\n display: block;\n}\n\n.a8ccharts-5Dl5-j {\n flex: 1;\n display: flex;\n align-items: flex-end;\n border-radius: 4px;\n position: relative;\n cursor: pointer;\n transition: all 0.2s ease;\n}\n.a8ccharts-5Dl5-j.a8ccharts-Reovk6 {\n cursor: pointer;\n}\n\n.a8ccharts-tG5m3L {\n width: 100%;\n min-height: 4px;\n border-radius: 4px 4px 0 0;\n transition: all 0.3s ease;\n}\n.a8ccharts-tG5m3L.a8ccharts-W40FYh {\n box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);\n filter: brightness(1.1);\n}\n\n.a8ccharts-NohPt6 {\n display: inline-flex;\n flex-direction: column;\n justify-content: center;\n align-items: flex-start;\n gap: 4px;\n border-bottom: 1px solid var(--Gray-Gray-5, #dcdcde);\n background: var(--black-white-white, #fff);\n border-radius: 4px !important;\n padding: 12px !important;\n box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.15), 0 3px 9px 0 rgba(0, 0, 0, 0.12) !important;\n}\n\n.a8ccharts-hjZr33 {\n color: #1e1e1e;\n font-family: \"SF Pro\", sans-serif;\n font-size: 12px;\n font-style: normal;\n font-weight: 400;\n line-height: 16px;\n}\n\n.a8ccharts-ocwAPj {\n color: #1e1e1e;\n font-family: \"SF Pro\", sans-serif;\n font-size: 13px;\n font-style: normal;\n font-weight: 500;\n line-height: 20px;\n}\n\n.a8ccharts-9c0psv {\n text-align: center;\n padding: 48px 24px;\n color: #6b7280;\n font-size: 16px;\n}"],"mappings":";AAAA,CAAC;AACC,WAAS;AACT,kBAAgB;AAChB,aAAW;AACX,OAAK;AACP;AACA,CAAC;AACC,WAAS;AACT,kBAAgB;AAChB,OAAK;AACP;AACA,CALC,gBAKgB,CAAC;AAChB,eAAa;AACf;AACA,CARC,gBAQgB,CAAC;AAChB,eAAa;AACf;AACA,CAXC,gBAWgB,CAAC;AAChB,eAAa;AACf;AACA,CAAC;AACC,YAAU;AACZ;AACA,CAHC,gBAGgB,CAZC;AAahB,mBAAiB;AACnB;AACA,CANC,gBAMgB,CAZC;AAahB,mBAAiB;AACnB;AACA,CATC,gBASgB,CAZC;AAahB,mBAAiB;AACnB;AACA,CAAC;AACC,YAAU;AACZ;AACA,CAHC,gBAGgB,CAxBC;AAyBhB,mBAAiB;AACnB;AACA,CANC,gBAMgB,CAxBC;AAyBhB,mBAAiB;AACnB;AACA,CATC,gBASgB,CAxBC;AAyBhB,mBAAiB;AACnB;AAEA,CAAC;AACC,WAAS;AACT,eAAa;AACb,aAAW;AACb;AACA,CAAC;AACC,UAAQ;AACR,eAAa;AACb,cAAY,QAAQ,KAAK;AAC3B;AACA,CALC,gBAKgB;AACf,WAAS;AACX;AACA,CARC,gBAQgB;AACf,WAAS,IAAI,MAAM;AACnB,kBAAgB;AAChB,iBAAe;AACjB;AACA,CAbC,gBAagB,MAAM,KAAK;AAC1B,WAAS;AACX;AACA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AAQ;AACV;AAEA,CAAC;AACC,SAAO;AACP,cAAY;AACZ,iBAAe,IAAI,IAAI,EAAE;AACzB,cAAY,IAAI,KAAK;AACvB;AACA,CANC,gBAMgB,CAAC;AAChB,cAAY,EAAE,IAAI,KAAK,KAAK,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE;AACrC,UAAQ,WAAW;AACrB;AAEA,CAAC;AACC,WAAS;AACT,kBAAgB;AAChB,mBAAiB;AACjB,eAAa;AACb,OAAK;AACL,iBAAe,IAAI,MAAM,IAAI,aAAa,EAAE;AAC5C,cAAY,IAAI,mBAAmB,EAAE;AACrC,iBAAe;AACf,WAAS;AACT,cAAY,EAAE,IAAI,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,IAAI,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE;AACzE;AAEA,CAAC;AACC,SAAO;AACP,eAAa,QAAQ,EAAE;AACvB,aAAW;AACX,cAAY;AACZ,eAAa;AACb,eAAa;AACf;AAEA,CAAC;AACC,SAAO;AACP,eAAa,QAAQ,EAAE;AACvB,aAAW;AACX,cAAY;AACZ,eAAa;AACb,eAAa;AACf;AAEA,CAAC;AACC,cAAY;AACZ,WAAS,KAAK;AACd,SAAO;AACP,aAAW;AACb;","names":[]}
|
|
1
|
+
{"version":3,"sources":["esbuild-sass-plugin:css-chunk:src/components/legend/private/base-legend.module.scss","esbuild-sass-plugin:css-chunk:src/components/tooltip/base-tooltip.module.scss","esbuild-sass-plugin:css-chunk:src/components/bar-chart/bar-chart.module.scss","esbuild-sass-plugin:css-chunk:src/components/line-chart/line-chart.module.scss","esbuild-sass-plugin:css-chunk:src/components/pie-chart/pie-chart.module.scss","esbuild-sass-plugin:css-chunk:src/components/pie-semi-circle-chart/pie-semi-circle-chart.module.scss","esbuild-sass-plugin:css-chunk:src/components/leaderboard-chart/leaderboard-chart.module.scss","esbuild-sass-plugin:css-chunk:src/components/conversion-funnel-chart/conversion-funnel-chart.module.scss"],"sourcesContent":[".a8ccharts-AELBvX {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n gap: 16px;\n}\n.a8ccharts-fX8uQe {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n.a8ccharts-fX8uQe.a8ccharts-DEe0wg {\n align-items: flex-start;\n}\n.a8ccharts-fX8uQe.a8ccharts-WBKF9I {\n align-items: center;\n}\n.a8ccharts-fX8uQe.a8ccharts-JfwMng {\n align-items: flex-end;\n}\n.a8ccharts-8Y73Kh {\n position: relative;\n}\n.a8ccharts-8Y73Kh.a8ccharts-DEe0wg {\n justify-content: flex-start;\n}\n.a8ccharts-8Y73Kh.a8ccharts-WBKF9I {\n justify-content: center;\n}\n.a8ccharts-8Y73Kh.a8ccharts-JfwMng {\n justify-content: flex-end;\n}\n.a8ccharts-TVM-IY {\n position: relative;\n}\n.a8ccharts-TVM-IY.a8ccharts-DEe0wg {\n justify-content: flex-start;\n}\n.a8ccharts-TVM-IY.a8ccharts-WBKF9I {\n justify-content: center;\n}\n.a8ccharts-TVM-IY.a8ccharts-JfwMng {\n justify-content: flex-end;\n}\n\n.a8ccharts-Vflwq8 {\n display: flex;\n align-items: center;\n font-size: 0.875rem;\n}\n.a8ccharts-qGsavM {\n cursor: pointer;\n user-select: none;\n transition: opacity 0.2s ease;\n}\n.a8ccharts-qGsavM:hover {\n opacity: 0.8;\n}\n.a8ccharts-qGsavM:focus {\n outline: 2px solid currentColor;\n outline-offset: 2px;\n border-radius: 4px;\n}\n.a8ccharts-qGsavM:focus:not(:focus-visible) {\n outline: none;\n}\n.a8ccharts-ZtDY-Q {\n opacity: 0.4;\n}\n.a8ccharts-ZtDY-Q .a8ccharts-2H65Kr {\n text-decoration: line-through;\n}\n\n.a8ccharts-2H65Kr {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n /* Text wrapping is handled at the text level, not the label container */\n}\n\n.a8ccharts-faSDBI {\n word-wrap: break-word;\n overflow-wrap: break-word;\n white-space: normal;\n hyphens: auto;\n}\n.a8ccharts-FISUIO {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n flex-shrink: 1;\n min-width: 0;\n}\n\n.a8ccharts-DTZlT- {\n font-weight: 500;\n flex-shrink: 0;\n}",".a8ccharts-OfX6nd {\n padding: 0.5rem;\n background-color: rgba(0, 0, 0, 0.85);\n color: #fff;\n border-radius: 4px;\n font-size: 14px;\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);\n position: absolute;\n pointer-events: none;\n transform: translate(-50%, -100%);\n}",".a8ccharts-lmYNi- {\n display: flex;\n flex-direction: column;\n}\n.a8ccharts-lmYNi- svg {\n overflow: visible;\n}\n.a8ccharts-vgKKqG {\n margin-top: 1rem;\n}\n\n.a8ccharts-vHWVsO rect {\n transform-origin: bottom;\n transform-box: fill-box;\n transform: scaleY(0);\n animation: a8ccharts-wCPctT 1s ease-out forwards;\n}\n\n@keyframes a8ccharts-wCPctT {\n to {\n transform: scaleY(1);\n }\n}\n.a8ccharts-3kCz4q rect {\n transform-origin: left;\n transform-box: fill-box;\n transform: scaleX(0);\n animation: a8ccharts-MtfGVm 1s ease-out forwards;\n}\n\n@keyframes a8ccharts-MtfGVm {\n to {\n transform: scaleX(1);\n }\n}",".a8ccharts-ITM3dm {\n display: flex;\n flex-direction: column;\n}\n.a8ccharts-ITM3dm svg {\n overflow: visible;\n}\n.a8ccharts-aqcmeq, .a8ccharts-TqNZkh {\n background: #fff;\n padding: 0.5rem;\n}\n.a8ccharts-4Dzab- {\n font-weight: 700;\n padding-bottom: 10px;\n}\n.a8ccharts-6A37Gb {\n display: flex;\n align-items: center;\n padding: 4px 0;\n justify-content: space-between;\n}\n.a8ccharts-IvnFFF {\n font-weight: 500;\n padding-right: 1rem;\n}\n.a8ccharts-4nR2pv {\n position: absolute;\n left: 0;\n top: 0;\n overflow: visible;\n pointer-events: none;\n}\n.a8ccharts-OmgiTA {\n pointer-events: auto;\n}\n.a8ccharts-mcIb3E {\n display: flex;\n align-items: center;\n justify-content: center;\n pointer-events: auto;\n cursor: pointer;\n border: none;\n background: none;\n padding: 0;\n}\n.a8ccharts-TqNZkh {\n min-width: 125px;\n background: #fff;\n border: none;\n border-radius: 4px;\n font-size: 14px;\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);\n position: fixed;\n margin: 0.5rem;\n visibility: hidden;\n}\n.a8ccharts-dE0cVP {\n visibility: visible;\n}\n.a8ccharts-i3NHTh {\n position: initial;\n margin: auto;\n}\n.a8ccharts-OwypoS {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: start;\n}\n.a8ccharts-vtgQtP {\n padding: 0.5rem;\n}\n.a8ccharts-i8KUcG {\n background: none;\n border: none;\n cursor: pointer;\n width: 44px;\n height: 44px;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n}\n\n.visx-tooltip-glyph svg {\n width: 10px;\n height: 10px;\n}\n\n/* in your CSS or styled-component */\n.a8ccharts-Hj6YbD path {\n transform-origin: 0 95%;\n transform: scaleY(0);\n animation: a8ccharts-gb7M8E 1s ease-out forwards;\n}\n\n@keyframes a8ccharts-gb7M8E {\n to {\n transform: scaleY(1);\n }\n}",".a8ccharts-R12VhH {\n display: flex;\n flex-direction: column;\n overflow: hidden;\n align-items: center;\n gap: 20px;\n}",".a8ccharts-r5jk9c {\n display: flex;\n flex-direction: column;\n text-align: center;\n gap: 20px;\n}\n.a8ccharts-r5jk9c .a8ccharts-nPqOgD {\n margin-bottom: 0;\n font-weight: 600;\n font-size: 16px;\n}\n.a8ccharts-r5jk9c .a8ccharts-LpBZQh {\n margin-top: 0;\n font-size: 14px;\n}",".a8ccharts-zxakPT {\n transition: opacity 0.3s ease-in-out;\n}\n.a8ccharts-zxakPT.a8ccharts--AGv-8 {\n opacity: 0.5;\n}\n\n.a8ccharts-9RE0Uo {\n display: grid;\n align-items: center;\n grid-template-columns: 1fr;\n row-gap: 6px;\n isolation: isolate;\n}\n.a8ccharts-9RE0Uo.a8ccharts-Fqdi5w {\n grid-template: \"overlap\" 1fr/1fr; /* contains a single cell callded 'overlap' */\n}\n.a8ccharts-9RE0Uo.a8ccharts-Fqdi5w > * {\n grid-area: overlap;\n}\n.a8ccharts-9RE0Uo.a8ccharts-Fqdi5w .a8ccharts-7ZUu0T {\n padding-left: 8px;\n}\n.a8ccharts-9RE0Uo .a8ccharts-CnJvgl {\n height: 100%;\n min-height: 6px;\n border-radius: var(--a8c--charts--leaderboard--bar--border-radius, 9999px);\n z-index: -1; /* places it behind the label */\n}\n.a8ccharts-9RE0Uo .a8ccharts-qPpCM2 {\n transform-origin: left;\n transform-box: fill-box;\n transform: scaleX(0);\n animation: a8ccharts-VlC0fg 1s ease-out forwards;\n}\n@keyframes a8ccharts-VlC0fg {\n to {\n transform: scaleX(1);\n }\n}\n\n.a8ccharts-ZlLh4R {\n display: flex;\n gap: 4px;\n justify-content: flex-end;\n}\n\n.a8ccharts-pRqShB {\n align-items: center;\n}\n\n.a8ccharts-0dkfyF {\n padding: 32px 16px;\n text-align: center;\n color: #666;\n font-size: 14px;\n font-style: italic;\n}",".a8ccharts--9Qsb0 {\n font-family: var(--funnel-font-family, \"SF Pro Text\");\n}\n.a8ccharts--9Qsb0.a8ccharts-Kw-iZo {\n opacity: 0.6;\n pointer-events: none;\n}\n\n.a8ccharts-8mIwVL {\n display: flex;\n align-items: baseline;\n gap: 8px;\n margin-bottom: 24px;\n height: 20px;\n}\n\n.a8ccharts-D93Ubo {\n overflow: hidden;\n color: #1e1e1e;\n text-overflow: ellipsis;\n font-family: var(--funnel-font-family, \"SF Pro Text\");\n font-size: 18px;\n font-style: normal;\n font-weight: 500;\n line-height: 20px;\n margin: 0;\n}\n\n.a8ccharts-QWypVS {\n overflow: hidden;\n text-overflow: ellipsis;\n font-family: var(--funnel-font-family, \"SF Pro Text\");\n font-size: 13px;\n font-style: normal;\n font-weight: 500;\n line-height: 20px;\n margin: 0;\n}\n\n.a8ccharts-RR7xaC {\n display: flex;\n gap: 16px;\n align-items: flex-end;\n height: 200px;\n width: 100%;\n}\n\n.a8ccharts-VIVztE {\n flex: 1 1 0;\n min-width: 0;\n display: flex;\n flex-direction: column;\n height: 100%;\n transition: all 0.3s ease;\n}\n.a8ccharts-VIVztE.a8ccharts-Ax4cuC {\n opacity: 0.3;\n}\n\n.a8ccharts-bUrZ0x {\n margin-bottom: 24px;\n}\n\n.a8ccharts-SCy8FA {\n color: #757575;\n font-family: var(--step-font-family, \"SF Pro\");\n font-size: 12px;\n font-style: normal;\n font-weight: 400;\n line-height: 16px;\n margin: 0 0 2px 0;\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.a8ccharts-A0irBo {\n color: #1e1e1e;\n font-family: var(--step-font-family, \"SF Pro\");\n font-size: 13px;\n font-style: normal;\n font-weight: 500;\n line-height: 20px;\n margin: 0;\n display: block;\n}\n\n.a8ccharts-5Dl5-j {\n flex: 1;\n display: flex;\n align-items: flex-end;\n border-radius: 4px;\n position: relative;\n cursor: pointer;\n transition: all 0.2s ease;\n}\n.a8ccharts-5Dl5-j.a8ccharts-Reovk6 {\n cursor: pointer;\n}\n\n.a8ccharts-tG5m3L {\n width: 100%;\n min-height: 4px;\n border-radius: 4px 4px 0 0;\n transition: all 0.3s ease;\n}\n.a8ccharts-tG5m3L.a8ccharts-W40FYh {\n box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);\n filter: brightness(1.1);\n}\n\n.a8ccharts-NohPt6 {\n display: inline-flex;\n flex-direction: column;\n justify-content: center;\n align-items: flex-start;\n gap: 4px;\n border-bottom: 1px solid var(--Gray-Gray-5, #dcdcde);\n background: var(--black-white-white, #fff);\n border-radius: 4px !important;\n padding: 12px !important;\n box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.15), 0 3px 9px 0 rgba(0, 0, 0, 0.12) !important;\n}\n\n.a8ccharts-hjZr33 {\n color: #1e1e1e;\n font-family: \"SF Pro\", sans-serif;\n font-size: 12px;\n font-style: normal;\n font-weight: 400;\n line-height: 16px;\n}\n\n.a8ccharts-ocwAPj {\n color: #1e1e1e;\n font-family: \"SF Pro\", sans-serif;\n font-size: 13px;\n font-style: normal;\n font-weight: 500;\n line-height: 20px;\n}\n\n.a8ccharts-9c0psv {\n text-align: center;\n padding: 48px 24px;\n color: #6b7280;\n font-size: 16px;\n}\n\n.a8ccharts-wvCpVT {\n transform-origin: bottom;\n transform-box: fill-box;\n transform: scaleY(0);\n animation: a8ccharts-4otxiv 1s ease-out forwards;\n}\n\n@keyframes a8ccharts-4otxiv {\n to {\n transform: scaleY(1);\n }\n}"],"mappings":";AAAA,CAAC;AACC,WAAS;AACT,kBAAgB;AAChB,aAAW;AACX,OAAK;AACP;AACA,CAAC;AACC,WAAS;AACT,kBAAgB;AAChB,OAAK;AACP;AACA,CALC,gBAKgB,CAAC;AAChB,eAAa;AACf;AACA,CARC,gBAQgB,CAAC;AAChB,eAAa;AACf;AACA,CAXC,gBAWgB,CAAC;AAChB,eAAa;AACf;AACA,CAAC;AACC,YAAU;AACZ;AACA,CAHC,gBAGgB,CAZC;AAahB,mBAAiB;AACnB;AACA,CANC,gBAMgB,CAZC;AAahB,mBAAiB;AACnB;AACA,CATC,gBASgB,CAZC;AAahB,mBAAiB;AACnB;AACA,CAAC;AACC,YAAU;AACZ;AACA,CAHC,gBAGgB,CAxBC;AAyBhB,mBAAiB;AACnB;AACA,CANC,gBAMgB,CAxBC;AAyBhB,mBAAiB;AACnB;AACA,CATC,gBASgB,CAxBC;AAyBhB,mBAAiB;AACnB;AAEA,CAAC;AACC,WAAS;AACT,eAAa;AACb,aAAW;AACb;AACA,CAAC;AACC,UAAQ;AACR,eAAa;AACb,cAAY,QAAQ,KAAK;AAC3B;AACA,CALC,gBAKgB;AACf,WAAS;AACX;AACA,CARC,gBAQgB;AACf,WAAS,IAAI,MAAM;AACnB,kBAAgB;AAChB,iBAAe;AACjB;AACA,CAbC,gBAagB,MAAM,KAAK;AAC1B,WAAS;AACX;AACA,CAAC;AACC,WA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;AACC,SAAO;AACP,eAAa,QAAQ,EAAE;AACvB,aAAW;AACX,cAAY;AACZ,eAAa;AACb,eAAa;AACf;AAEA,CAAC;AACC,cAAY;AACZ,WAAS,KAAK;AACd,SAAO;AACP,aAAW;AACb;AAEA,CAAC;AACC,oBAAkB;AAClB,iBAAe;AACf,aAAW,OAAO;AAClB,aAAW,iBAAiB,GAAG,SAAS;AAC1C;AAEA,WAHa;AAIX;AACE,eAAW,OAAO;AACpB;AACF;","names":[]}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
export { BarChart, BarChartUnresponsive } from './components/bar-chart/index.cjs';
|
|
2
2
|
export { LineChart, LineChartUnresponsive } from './components/line-chart/index.cjs';
|
|
3
|
-
export { A as AnnotationStyles, B as BaseChartProps, i as ButtonWithPopover, C as ChartTheme, e as CompleteChartTheme, D as DataPoint, b as DataPointDate, d as DataPointPercentage, G as GradientStop, g as GridProps, L as LeaderboardEntry, M as MultipleDataPointsDate, O as Optional, a as OrientationType, P as PopoverButtonAttributes, j as PopoverElement, h as PopoverElementAttributes, f as ScaleOptions, c as SeriesData, S as SeriesDataOptions, T as ToggleEvent } from './types-
|
|
3
|
+
export { A as AnnotationStyles, B as BaseChartProps, i as ButtonWithPopover, C as ChartTheme, e as CompleteChartTheme, D as DataPoint, b as DataPointDate, d as DataPointPercentage, G as GradientStop, g as GridProps, L as LeaderboardEntry, M as MultipleDataPointsDate, O as Optional, a as OrientationType, P as PopoverButtonAttributes, j as PopoverElement, h as PopoverElementAttributes, f as ScaleOptions, c as SeriesData, S as SeriesDataOptions, T as ToggleEvent } from './types-DU5eF3uf.cjs';
|
|
4
4
|
export { EventHandlerParams, GridStyles, LineStyles } from '@visx/xychart';
|
|
5
5
|
export { RenderTooltipParams } from '@visx/xychart/lib/components/Tooltip';
|
|
6
6
|
export { PieChart, PieChartProps, PieChartUnresponsive } from './components/pie-chart/index.cjs';
|
|
7
7
|
export { PieSemiCircleChart, PieSemiCircleChartUnresponsive } from './components/pie-semi-circle-chart/index.cjs';
|
|
8
8
|
export { BarListChart, BarListChartUnresponsive } from './components/bar-list-chart/index.cjs';
|
|
9
|
-
export { L as LeaderboardChart, a as LeaderboardChartUnresponsive } from './leaderboard-chart-
|
|
9
|
+
export { L as LeaderboardChart, a as LeaderboardChartUnresponsive } from './leaderboard-chart-B3CQbXhp.cjs';
|
|
10
10
|
export { L as Legend } from './legend-C9ahiwOt.cjs';
|
|
11
11
|
export { LegendValueDisplay, useChartLegendItems } from './components/legend/index.cjs';
|
|
12
12
|
export { B as BaseLegendItem } from './types-C05PdDJa.cjs';
|
|
13
13
|
export { ConversionFunnelChart } from './components/conversion-funnel-chart/index.cjs';
|
|
14
14
|
export { B as BaseTooltip } from './base-tooltip-DOq93wjU.cjs';
|
|
15
|
-
export { b as GlobalChartsContext, G as GlobalChartsProvider, G as ThemeProvider, d as defaultTheme, j as jetpackTheme, u as useGlobalChartsContext, a as useGlobalChartsTheme, w as wooTheme } from './themes-
|
|
15
|
+
export { b as GlobalChartsContext, G as GlobalChartsProvider, G as ThemeProvider, d as defaultTheme, j as jetpackTheme, u as useGlobalChartsContext, a as useGlobalChartsTheme, w as wooTheme } from './themes-DL0AAxyZ.cjs';
|
|
16
16
|
import 'react';
|
|
17
17
|
import './with-responsive-Cp2qnQPo.cjs';
|
|
18
18
|
import '@visx/annotation/lib/components/CircleSubject';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
export { BarChart, BarChartUnresponsive } from './components/bar-chart/index.js';
|
|
2
2
|
export { LineChart, LineChartUnresponsive } from './components/line-chart/index.js';
|
|
3
|
-
export { A as AnnotationStyles, B as BaseChartProps, i as ButtonWithPopover, C as ChartTheme, e as CompleteChartTheme, D as DataPoint, b as DataPointDate, d as DataPointPercentage, G as GradientStop, g as GridProps, L as LeaderboardEntry, M as MultipleDataPointsDate, O as Optional, a as OrientationType, P as PopoverButtonAttributes, j as PopoverElement, h as PopoverElementAttributes, f as ScaleOptions, c as SeriesData, S as SeriesDataOptions, T as ToggleEvent } from './types-
|
|
3
|
+
export { A as AnnotationStyles, B as BaseChartProps, i as ButtonWithPopover, C as ChartTheme, e as CompleteChartTheme, D as DataPoint, b as DataPointDate, d as DataPointPercentage, G as GradientStop, g as GridProps, L as LeaderboardEntry, M as MultipleDataPointsDate, O as Optional, a as OrientationType, P as PopoverButtonAttributes, j as PopoverElement, h as PopoverElementAttributes, f as ScaleOptions, c as SeriesData, S as SeriesDataOptions, T as ToggleEvent } from './types-DU5eF3uf.js';
|
|
4
4
|
export { EventHandlerParams, GridStyles, LineStyles } from '@visx/xychart';
|
|
5
5
|
export { RenderTooltipParams } from '@visx/xychart/lib/components/Tooltip';
|
|
6
6
|
export { PieChart, PieChartProps, PieChartUnresponsive } from './components/pie-chart/index.js';
|
|
7
7
|
export { PieSemiCircleChart, PieSemiCircleChartUnresponsive } from './components/pie-semi-circle-chart/index.js';
|
|
8
8
|
export { BarListChart, BarListChartUnresponsive } from './components/bar-list-chart/index.js';
|
|
9
|
-
export { L as LeaderboardChart, a as LeaderboardChartUnresponsive } from './leaderboard-chart-
|
|
9
|
+
export { L as LeaderboardChart, a as LeaderboardChartUnresponsive } from './leaderboard-chart-CaZgGytL.js';
|
|
10
10
|
export { L as Legend } from './legend-jjMmhSg3.js';
|
|
11
11
|
export { LegendValueDisplay, useChartLegendItems } from './components/legend/index.js';
|
|
12
12
|
export { B as BaseLegendItem } from './types-C05PdDJa.js';
|
|
13
13
|
export { ConversionFunnelChart } from './components/conversion-funnel-chart/index.js';
|
|
14
14
|
export { B as BaseTooltip } from './base-tooltip-DOq93wjU.js';
|
|
15
|
-
export { b as GlobalChartsContext, G as GlobalChartsProvider, G as ThemeProvider, d as defaultTheme, j as jetpackTheme, u as useGlobalChartsContext, a as useGlobalChartsTheme, w as wooTheme } from './themes-
|
|
15
|
+
export { b as GlobalChartsContext, G as GlobalChartsProvider, G as ThemeProvider, d as defaultTheme, j as jetpackTheme, u as useGlobalChartsContext, a as useGlobalChartsTheme, w as wooTheme } from './themes-_t_7uxnQ.js';
|
|
16
16
|
import 'react';
|
|
17
17
|
import './with-responsive-Cp2qnQPo.js';
|
|
18
18
|
import '@visx/annotation/lib/components/CircleSubject';
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LineChart,
|
|
3
3
|
LineChartResponsive
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-MWFUJOQX.js";
|
|
5
5
|
import {
|
|
6
6
|
PieChart,
|
|
7
7
|
PieChartResponsive
|
|
@@ -14,21 +14,21 @@ import "./chunk-NFRB2POF.js";
|
|
|
14
14
|
import {
|
|
15
15
|
BarListChart,
|
|
16
16
|
BarListChartResponsive
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-UG756X62.js";
|
|
18
18
|
import {
|
|
19
19
|
BarChart,
|
|
20
20
|
BarChartResponsive
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-NEANE7H4.js";
|
|
22
22
|
import {
|
|
23
23
|
BaseTooltip
|
|
24
24
|
} from "./chunk-W5KOH3TV.js";
|
|
25
25
|
import {
|
|
26
26
|
ConversionFunnelChartWithProvider
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-MCFIVI3D.js";
|
|
28
28
|
import {
|
|
29
29
|
LeaderboardChart,
|
|
30
30
|
LeaderboardChartResponsive
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-WIBQECQE.js";
|
|
32
32
|
import "./chunk-D3DZT2EK.js";
|
|
33
33
|
import "./chunk-TYYW4BG3.js";
|
|
34
34
|
import {
|
|
@@ -3,9 +3,9 @@ import { R as ResponsiveConfig } from './with-responsive-Cp2qnQPo.cjs';
|
|
|
3
3
|
import * as react from 'react';
|
|
4
4
|
import { ReactNode, FC } from 'react';
|
|
5
5
|
import { a as BaseLegendProps, B as BaseLegendItem } from './types-C05PdDJa.cjs';
|
|
6
|
-
import { B as BaseChartProps, L as LeaderboardEntry } from './types-
|
|
6
|
+
import { B as BaseChartProps, L as LeaderboardEntry } from './types-DU5eF3uf.cjs';
|
|
7
7
|
|
|
8
|
-
interface LeaderboardChartProps extends Pick<BaseChartProps<LeaderboardEntry>, 'className' | 'data' | 'showLegend' | 'legendOrientation' | 'legendPosition' | 'legendAlignment' | 'legendShape' | 'chartId' | 'width' | 'height' | 'size' | 'legendInteractive'> {
|
|
8
|
+
interface LeaderboardChartProps extends Pick<BaseChartProps<LeaderboardEntry>, 'className' | 'data' | 'showLegend' | 'legendOrientation' | 'legendPosition' | 'legendAlignment' | 'legendShape' | 'chartId' | 'width' | 'height' | 'size' | 'legendInteractive' | 'animation'> {
|
|
9
9
|
/**
|
|
10
10
|
* Whether to show comparison data
|
|
11
11
|
*/
|
|
@@ -3,9 +3,9 @@ import { R as ResponsiveConfig } from './with-responsive-Cp2qnQPo.js';
|
|
|
3
3
|
import * as react from 'react';
|
|
4
4
|
import { ReactNode, FC } from 'react';
|
|
5
5
|
import { a as BaseLegendProps, B as BaseLegendItem } from './types-C05PdDJa.js';
|
|
6
|
-
import { B as BaseChartProps, L as LeaderboardEntry } from './types-
|
|
6
|
+
import { B as BaseChartProps, L as LeaderboardEntry } from './types-DU5eF3uf.js';
|
|
7
7
|
|
|
8
|
-
interface LeaderboardChartProps extends Pick<BaseChartProps<LeaderboardEntry>, 'className' | 'data' | 'showLegend' | 'legendOrientation' | 'legendPosition' | 'legendAlignment' | 'legendShape' | 'chartId' | 'width' | 'height' | 'size' | 'legendInteractive'> {
|
|
8
|
+
interface LeaderboardChartProps extends Pick<BaseChartProps<LeaderboardEntry>, 'className' | 'data' | 'showLegend' | 'legendOrientation' | 'legendPosition' | 'legendAlignment' | 'legendShape' | 'chartId' | 'width' | 'height' | 'size' | 'legendInteractive' | 'animation'> {
|
|
9
9
|
/**
|
|
10
10
|
* Whether to show comparison data
|
|
11
11
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { C as ChartRegistration, E as ElementStyles, e as GetElementStylesParams, b as GlobalChartsContext, c as GlobalChartsContextValue, G as GlobalChartsProvider, d as defaultTheme, j as jetpackTheme, u as useGlobalChartsContext, a as useGlobalChartsTheme, w as wooTheme } from '../themes-
|
|
1
|
+
export { C as ChartRegistration, E as ElementStyles, e as GetElementStylesParams, b as GlobalChartsContext, c as GlobalChartsContextValue, G as GlobalChartsProvider, d as defaultTheme, j as jetpackTheme, u as useGlobalChartsContext, a as useGlobalChartsTheme, w as wooTheme } from '../themes-DL0AAxyZ.cjs';
|
|
2
2
|
import { B as BaseLegendItem } from '../types-C05PdDJa.cjs';
|
|
3
3
|
import 'react';
|
|
4
|
-
import '../types-
|
|
4
|
+
import '../types-DU5eF3uf.cjs';
|
|
5
5
|
import '@visx/annotation/lib/components/CircleSubject';
|
|
6
6
|
import '@visx/annotation/lib/components/Connector';
|
|
7
7
|
import '@visx/annotation/lib/components/Label';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { C as ChartRegistration, E as ElementStyles, e as GetElementStylesParams, b as GlobalChartsContext, c as GlobalChartsContextValue, G as GlobalChartsProvider, d as defaultTheme, j as jetpackTheme, u as useGlobalChartsContext, a as useGlobalChartsTheme, w as wooTheme } from '../themes-
|
|
1
|
+
export { C as ChartRegistration, E as ElementStyles, e as GetElementStylesParams, b as GlobalChartsContext, c as GlobalChartsContextValue, G as GlobalChartsProvider, d as defaultTheme, j as jetpackTheme, u as useGlobalChartsContext, a as useGlobalChartsTheme, w as wooTheme } from '../themes-_t_7uxnQ.js';
|
|
2
2
|
import { B as BaseLegendItem } from '../types-C05PdDJa.js';
|
|
3
3
|
import 'react';
|
|
4
|
-
import '../types-
|
|
4
|
+
import '../types-DU5eF3uf.js';
|
|
5
5
|
import '@visx/annotation/lib/components/CircleSubject';
|
|
6
6
|
import '@visx/annotation/lib/components/Connector';
|
|
7
7
|
import '@visx/annotation/lib/components/Label';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode, CSSProperties, FC } from 'react';
|
|
3
|
-
import { e as CompleteChartTheme, c as SeriesData, d as DataPointPercentage, C as ChartTheme } from './types-
|
|
3
|
+
import { e as CompleteChartTheme, c as SeriesData, d as DataPointPercentage, C as ChartTheme } from './types-DU5eF3uf.cjs';
|
|
4
4
|
import { B as BaseLegendItem } from './types-C05PdDJa.cjs';
|
|
5
5
|
import { LegendShape } from '@visx/legend/lib/types';
|
|
6
6
|
import { LineStyles, GlyphProps } from '@visx/xychart';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode, CSSProperties, FC } from 'react';
|
|
3
|
-
import { e as CompleteChartTheme, c as SeriesData, d as DataPointPercentage, C as ChartTheme } from './types-
|
|
3
|
+
import { e as CompleteChartTheme, c as SeriesData, d as DataPointPercentage, C as ChartTheme } from './types-DU5eF3uf.js';
|
|
4
4
|
import { B as BaseLegendItem } from './types-C05PdDJa.js';
|
|
5
5
|
import { LegendShape } from '@visx/legend/lib/types';
|
|
6
6
|
import { LineStyles, GlyphProps } from '@visx/xychart';
|
|
@@ -353,6 +353,10 @@ type BaseChartProps<T = DataPoint | DataPointDate | LeaderboardEntry> = {
|
|
|
353
353
|
* Grid visibility. x is default when orientation is vertical. y is default when orientation is horizontal.
|
|
354
354
|
*/
|
|
355
355
|
gridVisibility?: 'x' | 'y' | 'xy' | 'none';
|
|
356
|
+
/**
|
|
357
|
+
* Whether to show chart animation on initial render or not
|
|
358
|
+
*/
|
|
359
|
+
animation?: boolean;
|
|
356
360
|
/**
|
|
357
361
|
* More options for the chart.
|
|
358
362
|
*/
|
|
@@ -353,6 +353,10 @@ type BaseChartProps<T = DataPoint | DataPointDate | LeaderboardEntry> = {
|
|
|
353
353
|
* Grid visibility. x is default when orientation is vertical. y is default when orientation is horizontal.
|
|
354
354
|
*/
|
|
355
355
|
gridVisibility?: 'x' | 'y' | 'xy' | 'none';
|
|
356
|
+
/**
|
|
357
|
+
* Whether to show chart animation on initial render or not
|
|
358
|
+
*/
|
|
359
|
+
animation?: boolean;
|
|
356
360
|
/**
|
|
357
361
|
* More options for the chart.
|
|
358
362
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automattic/charts",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.47.0",
|
|
4
4
|
"description": "Display charts within Automattic products.",
|
|
5
5
|
"homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/js-packages/charts/#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -150,7 +150,7 @@
|
|
|
150
150
|
"typecheck": "tsc --noEmit"
|
|
151
151
|
},
|
|
152
152
|
"dependencies": {
|
|
153
|
-
"@automattic/number-formatters": "^1.0.
|
|
153
|
+
"@automattic/number-formatters": "^1.0.15",
|
|
154
154
|
"@babel/runtime": "7.28.4",
|
|
155
155
|
"@react-spring/web": "9.7.5",
|
|
156
156
|
"@visx/annotation": "^3.12.0",
|
|
@@ -179,11 +179,6 @@
|
|
|
179
179
|
"devDependencies": {
|
|
180
180
|
"@automattic/jetpack-webpack-config": "workspace:*",
|
|
181
181
|
"@babel/core": "7.28.4",
|
|
182
|
-
"@babel/plugin-transform-react-jsx": "7.27.1",
|
|
183
|
-
"@babel/plugin-transform-runtime": "7.28.3",
|
|
184
|
-
"@babel/preset-env": "7.28.3",
|
|
185
|
-
"@babel/preset-react": "7.27.1",
|
|
186
|
-
"@babel/preset-typescript": "7.27.1",
|
|
187
182
|
"@storybook/addon-docs": "9.0.15",
|
|
188
183
|
"@storybook/react": "9.0.15",
|
|
189
184
|
"@testing-library/dom": "^10.0.0",
|
|
@@ -194,31 +189,22 @@
|
|
|
194
189
|
"@types/react": "18.3.26",
|
|
195
190
|
"@types/react-dom": "18.3.7",
|
|
196
191
|
"@visx/glyph": "3.12.0",
|
|
197
|
-
"@wordpress/components": "30.
|
|
198
|
-
"@wordpress/element": "6.
|
|
199
|
-
"babel-jest": "30.
|
|
200
|
-
"babel-loader": "9.1.2",
|
|
201
|
-
"css-loader": "^6.7.0",
|
|
192
|
+
"@wordpress/components": "30.8.0",
|
|
193
|
+
"@wordpress/element": "6.35.0",
|
|
194
|
+
"babel-jest": "30.2.0",
|
|
202
195
|
"esbuild": "0.25.9",
|
|
203
196
|
"esbuild-sass-plugin": "^3.1.0",
|
|
204
|
-
"jest": "30.0
|
|
205
|
-
"jest-environment-jsdom": "30.0
|
|
197
|
+
"jest": "30.2.0",
|
|
198
|
+
"jest-environment-jsdom": "30.2.0",
|
|
206
199
|
"jest-extended": "5.0.3",
|
|
207
|
-
"mini-css-extract-plugin": "^2.7.0",
|
|
208
200
|
"postcss": "8.5.6",
|
|
209
|
-
"postcss-loader": "^8.0.0",
|
|
210
201
|
"postcss-modules": "6.0.1",
|
|
211
202
|
"react": "18.3.1",
|
|
212
203
|
"react-dom": "18.3.1",
|
|
213
|
-
"recursive-copy": "2.0.14",
|
|
214
|
-
"sass": "npm:sass-embedded@1.87.0",
|
|
215
204
|
"sass-embedded": "1.87.0",
|
|
216
|
-
"sass-loader": "^16.0.0",
|
|
217
205
|
"storybook": "9.0.15",
|
|
218
206
|
"tsup": "8.5.0",
|
|
219
|
-
"typescript": "5.9.3"
|
|
220
|
-
"webpack": "^5.88.0",
|
|
221
|
-
"webpack-cli": "^6.0.0"
|
|
207
|
+
"typescript": "5.9.3"
|
|
222
208
|
},
|
|
223
209
|
"peerDependencies": {
|
|
224
210
|
"react": "^17.0.0 || ^18.0.0",
|
|
@@ -10,3 +10,31 @@
|
|
|
10
10
|
margin-top: 1rem;
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
|
+
|
|
14
|
+
.bar-chart__animated rect {
|
|
15
|
+
transform-origin: bottom;
|
|
16
|
+
transform-box: fill-box;
|
|
17
|
+
transform: scaleY(0);
|
|
18
|
+
animation: rise 1s ease-out forwards;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@keyframes rise {
|
|
22
|
+
|
|
23
|
+
to {
|
|
24
|
+
transform: scaleY(1);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.bar-chart__animated-horizontal rect {
|
|
29
|
+
transform-origin: left;
|
|
30
|
+
transform-box: fill-box;
|
|
31
|
+
transform: scaleX(0);
|
|
32
|
+
animation: stretch 1s ease-out forwards;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@keyframes stretch {
|
|
36
|
+
|
|
37
|
+
to {
|
|
38
|
+
transform: scaleX(1);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -95,6 +95,7 @@ const BarChartInternal: FC< BarChartProps > = ( {
|
|
|
95
95
|
withPatterns = false,
|
|
96
96
|
showZeroValues = false,
|
|
97
97
|
legendInteractive = false,
|
|
98
|
+
animation,
|
|
98
99
|
children,
|
|
99
100
|
} ) => {
|
|
100
101
|
const horizontal = orientation === 'horizontal';
|
|
@@ -314,7 +315,9 @@ const BarChartInternal: FC< BarChartProps > = ( {
|
|
|
314
315
|
} }
|
|
315
316
|
>
|
|
316
317
|
<div
|
|
317
|
-
className={ clsx( 'bar-chart', styles[ 'bar-chart' ], className
|
|
318
|
+
className={ clsx( 'bar-chart', styles[ 'bar-chart' ], className, {
|
|
319
|
+
[ styles[ `bar-chart__animated${ horizontal ? '-horizontal' : '' }` ] ]: animation,
|
|
320
|
+
} ) }
|
|
318
321
|
data-testid="bar-chart"
|
|
319
322
|
role="grid"
|
|
320
323
|
aria-label={ __( 'Bar chart', 'jetpack-charts' ) }
|
|
@@ -156,3 +156,16 @@
|
|
|
156
156
|
font-size: 16px;
|
|
157
157
|
}
|
|
158
158
|
|
|
159
|
+
.funnel-bar__animated {
|
|
160
|
+
transform-origin: bottom;
|
|
161
|
+
transform-box: fill-box;
|
|
162
|
+
transform: scaleY(0);
|
|
163
|
+
animation: stretch 1s ease-out forwards;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
@keyframes stretch {
|
|
167
|
+
|
|
168
|
+
to {
|
|
169
|
+
transform: scaleY(1);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
@@ -23,6 +23,7 @@ import type { FunnelStep, ConversionFunnelChartProps } from './types';
|
|
|
23
23
|
* @param props.changeIndicator - Change indicator (e.g., +2%, -1.5%)
|
|
24
24
|
* @param props.steps - Array of funnel steps
|
|
25
25
|
* @param props.loading - Whether the chart is in loading state
|
|
26
|
+
* @param props.animation - Whether to show chart animation on initial render or not
|
|
26
27
|
* @param props.className - Additional CSS class name
|
|
27
28
|
* @param props.style - Custom styling
|
|
28
29
|
* @param props.renderStepLabel - Custom render function for step labels
|
|
@@ -36,6 +37,7 @@ const ConversionFunnelChartInternal: FC< ConversionFunnelChartProps > = ( {
|
|
|
36
37
|
changeIndicator,
|
|
37
38
|
steps,
|
|
38
39
|
loading = false,
|
|
40
|
+
animation,
|
|
39
41
|
className,
|
|
40
42
|
chartId: providedChartId,
|
|
41
43
|
style,
|
|
@@ -347,7 +349,9 @@ const ConversionFunnelChartInternal: FC< ConversionFunnelChartProps > = ( {
|
|
|
347
349
|
style={ { backgroundColor: barBackgroundColor } }
|
|
348
350
|
>
|
|
349
351
|
<div
|
|
350
|
-
className={ styles[ 'funnel-bar' ]
|
|
352
|
+
className={ clsx( styles[ 'funnel-bar' ], {
|
|
353
|
+
[ styles[ 'funnel-bar__animated' ] ]: animation && ! loading,
|
|
354
|
+
} ) }
|
|
351
355
|
style={ {
|
|
352
356
|
height: `${ barHeight }%`,
|
|
353
357
|
backgroundColor: barColor,
|
|
@@ -57,7 +57,7 @@ export interface TooltipRenderProps {
|
|
|
57
57
|
* Props for the ConversionFunnelChart component
|
|
58
58
|
*/
|
|
59
59
|
export interface ConversionFunnelChartProps
|
|
60
|
-
extends Pick< BaseChartProps, 'className' | 'chartId' > {
|
|
60
|
+
extends Pick< BaseChartProps, 'className' | 'chartId' | 'animation' > {
|
|
61
61
|
/** Main conversion rate to highlight */
|
|
62
62
|
mainRate: number;
|
|
63
63
|
/** Change indicator (e.g., +2%, -1.5%) */
|
|
@@ -31,8 +31,20 @@
|
|
|
31
31
|
|
|
32
32
|
border-radius: var(--a8c--charts--leaderboard--bar--border-radius, 9999px);
|
|
33
33
|
z-index: -1; /* places it behind the label */
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.bar__animated {
|
|
37
|
+
transform-origin: left;
|
|
38
|
+
transform-box: fill-box;
|
|
39
|
+
transform: scaleX(0);
|
|
40
|
+
animation: stretch 1s ease-out forwards;
|
|
41
|
+
}
|
|
34
42
|
|
|
35
|
-
|
|
43
|
+
@keyframes stretch {
|
|
44
|
+
|
|
45
|
+
to {
|
|
46
|
+
transform: scaleX(1);
|
|
47
|
+
}
|
|
36
48
|
}
|
|
37
49
|
}
|
|
38
50
|
|
|
@@ -62,6 +62,7 @@ const BarWithLabel = ( {
|
|
|
62
62
|
withOverlayLabel,
|
|
63
63
|
primaryColor,
|
|
64
64
|
secondaryColor,
|
|
65
|
+
animation,
|
|
65
66
|
isPrimaryVisible = true,
|
|
66
67
|
isComparisonVisible = true,
|
|
67
68
|
}: {
|
|
@@ -72,6 +73,7 @@ const BarWithLabel = ( {
|
|
|
72
73
|
secondaryColor: string;
|
|
73
74
|
isPrimaryVisible?: boolean;
|
|
74
75
|
isComparisonVisible?: boolean;
|
|
76
|
+
animation?: boolean;
|
|
75
77
|
} ) => (
|
|
76
78
|
<div
|
|
77
79
|
className={ clsx( styles.barWithLabelContainer, {
|
|
@@ -82,7 +84,9 @@ const BarWithLabel = ( {
|
|
|
82
84
|
|
|
83
85
|
{ isPrimaryVisible && (
|
|
84
86
|
<div
|
|
85
|
-
className={ styles.bar
|
|
87
|
+
className={ clsx( styles.bar, {
|
|
88
|
+
[ styles.bar__animated ]: animation,
|
|
89
|
+
} ) }
|
|
86
90
|
style={ {
|
|
87
91
|
width: entry.currentShare + '%',
|
|
88
92
|
backgroundColor: primaryColor,
|
|
@@ -92,7 +96,9 @@ const BarWithLabel = ( {
|
|
|
92
96
|
|
|
93
97
|
{ withComparison && ! withOverlayLabel && isComparisonVisible && (
|
|
94
98
|
<div
|
|
95
|
-
className={ styles.bar
|
|
99
|
+
className={ clsx( styles.bar, {
|
|
100
|
+
[ styles.bar__animated ]: animation,
|
|
101
|
+
} ) }
|
|
96
102
|
style={ {
|
|
97
103
|
width: entry.previousShare + '%',
|
|
98
104
|
backgroundColor: secondaryColor,
|
|
@@ -116,6 +122,7 @@ const BarWithLabel = ( {
|
|
|
116
122
|
* @param props.valueFormatter - Custom formatter for values
|
|
117
123
|
* @param props.deltaFormatter - Custom formatter for delta values
|
|
118
124
|
* @param props.loading - Whether the chart is in loading state
|
|
125
|
+
* @param props.animation - Whether the chart should animate on load
|
|
119
126
|
* @param props.showLegend - Whether to show legend
|
|
120
127
|
* @param props.legendOrientation - Legend orientation
|
|
121
128
|
* @param props.legendPosition - Legend position
|
|
@@ -139,6 +146,7 @@ const LeaderboardChartInternal: FC< LeaderboardChartProps > = ( {
|
|
|
139
146
|
secondaryColor,
|
|
140
147
|
valueFormatter = defaultValueFormatter,
|
|
141
148
|
deltaFormatter = defaultDeltaFormatter,
|
|
149
|
+
animation,
|
|
142
150
|
loading = false,
|
|
143
151
|
showLegend = false,
|
|
144
152
|
legendOrientation = 'horizontal',
|
|
@@ -301,6 +309,7 @@ const LeaderboardChartInternal: FC< LeaderboardChartProps > = ( {
|
|
|
301
309
|
secondaryColor={ resolvedSecondaryColor }
|
|
302
310
|
isPrimaryVisible={ isPrimaryVisible }
|
|
303
311
|
isComparisonVisible={ isComparisonVisible }
|
|
312
|
+
animation={ animation && ! loading }
|
|
304
313
|
/>
|
|
305
314
|
</VStack>
|
|
306
315
|
|