@automattic/charts 0.39.0 → 0.41.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 +19 -0
- package/dist/{chunk-54OSWFPQ.cjs → chunk-6V6JZIYR.cjs} +64 -64
- package/dist/{chunk-54OSWFPQ.cjs.map → chunk-6V6JZIYR.cjs.map} +1 -1
- package/dist/{chunk-MFXFJQWU.cjs → chunk-76XOLO7F.cjs} +15 -9
- package/dist/chunk-76XOLO7F.cjs.map +1 -0
- package/dist/{chunk-7N3YSNWD.cjs → chunk-BP3IFJ5V.cjs} +18 -16
- package/dist/chunk-BP3IFJ5V.cjs.map +1 -0
- package/dist/{chunk-HE2EODAW.js → chunk-CES34TN5.js} +2 -2
- package/dist/{chunk-DSBJVG2F.js → chunk-CSSH4P7L.js} +3 -3
- package/dist/{chunk-VQ6CB5FM.cjs → chunk-HZTHPE5F.cjs} +57 -43
- package/dist/chunk-HZTHPE5F.cjs.map +1 -0
- package/dist/{chunk-O7WXCLEH.cjs → chunk-ILOC2UDX.cjs} +6 -6
- package/dist/{chunk-O7WXCLEH.cjs.map → chunk-ILOC2UDX.cjs.map} +1 -1
- package/dist/{chunk-QHP7UWMW.js → chunk-LD4SAJTJ.js} +5 -3
- package/dist/chunk-LD4SAJTJ.js.map +1 -0
- package/dist/{chunk-6UE6HNKC.cjs → chunk-LGAG6GQ5.cjs} +11 -11
- package/dist/{chunk-6UE6HNKC.cjs.map → chunk-LGAG6GQ5.cjs.map} +1 -1
- package/dist/{chunk-NTJDQS7W.js → chunk-LIYP7LQW.js} +21 -7
- package/dist/chunk-LIYP7LQW.js.map +1 -0
- package/dist/{chunk-KJQMBMHV.js → chunk-M3JU5JTP.js} +6 -4
- package/dist/chunk-M3JU5JTP.js.map +1 -0
- package/dist/{chunk-TU2CXWER.js → chunk-OYPAAX3P.js} +5 -3
- package/dist/chunk-OYPAAX3P.js.map +1 -0
- package/dist/{chunk-CQTGYCJY.cjs → chunk-RUJCC3Q4.cjs} +22 -20
- package/dist/chunk-RUJCC3Q4.cjs.map +1 -0
- package/dist/{chunk-RTUQVBUJ.cjs → chunk-TEEQFJFL.cjs} +6 -3
- package/dist/chunk-TEEQFJFL.cjs.map +1 -0
- package/dist/{chunk-KACVKFMH.js → chunk-TY64IJ34.js} +6 -3
- package/dist/chunk-TY64IJ34.js.map +1 -0
- package/dist/{chunk-HLYQZPY4.js → chunk-UD3QSGWI.js} +10 -4
- package/dist/chunk-UD3QSGWI.js.map +1 -0
- package/dist/{chunk-7REO5EMI.js → chunk-VDSKNSRU.js} +47 -47
- package/dist/{chunk-7REO5EMI.js.map → chunk-VDSKNSRU.js.map} +1 -1
- package/dist/{chunk-UFSET6JB.cjs → chunk-XJSZXQON.cjs} +20 -18
- package/dist/chunk-XJSZXQON.cjs.map +1 -0
- package/dist/components/bar-chart/index.cjs +4 -4
- package/dist/components/bar-chart/index.d.cts +4 -3
- package/dist/components/bar-chart/index.d.ts +4 -3
- package/dist/components/bar-chart/index.js +3 -3
- package/dist/components/bar-list-chart/index.cjs +5 -5
- package/dist/components/bar-list-chart/index.d.cts +4 -3
- package/dist/components/bar-list-chart/index.d.ts +4 -3
- package/dist/components/bar-list-chart/index.js +4 -4
- package/dist/components/conversion-funnel-chart/index.cjs +3 -3
- package/dist/components/conversion-funnel-chart/index.d.cts +2 -1
- package/dist/components/conversion-funnel-chart/index.d.ts +2 -1
- package/dist/components/conversion-funnel-chart/index.js +2 -2
- package/dist/components/leaderboard-chart/index.cjs +4 -4
- package/dist/components/leaderboard-chart/index.d.cts +4 -3
- package/dist/components/leaderboard-chart/index.d.ts +4 -3
- package/dist/components/leaderboard-chart/index.js +3 -3
- package/dist/components/legend/index.cjs +3 -3
- package/dist/components/legend/index.d.cts +5 -4
- package/dist/components/legend/index.d.ts +5 -4
- package/dist/components/legend/index.js +2 -2
- package/dist/components/line-chart/index.cjs +4 -4
- package/dist/components/line-chart/index.d.cts +4 -3
- package/dist/components/line-chart/index.d.ts +4 -3
- package/dist/components/line-chart/index.js +3 -3
- package/dist/components/pie-chart/index.cjs +4 -4
- package/dist/components/pie-chart/index.css +2 -0
- package/dist/components/pie-chart/index.css.map +1 -1
- package/dist/components/pie-chart/index.d.cts +5 -4
- package/dist/components/pie-chart/index.d.ts +5 -4
- package/dist/components/pie-chart/index.js +3 -3
- package/dist/components/pie-semi-circle-chart/index.cjs +4 -4
- package/dist/components/pie-semi-circle-chart/index.css +1 -0
- package/dist/components/pie-semi-circle-chart/index.css.map +1 -1
- package/dist/components/pie-semi-circle-chart/index.d.cts +5 -4
- package/dist/components/pie-semi-circle-chart/index.d.ts +5 -4
- package/dist/components/pie-semi-circle-chart/index.js +3 -3
- package/dist/components/tooltip/index.d.cts +2 -1
- package/dist/components/tooltip/index.d.ts +2 -1
- package/dist/hooks/index.cjs +2 -2
- package/dist/hooks/index.d.cts +2 -1
- package/dist/hooks/index.d.ts +2 -1
- package/dist/hooks/index.js +1 -1
- package/dist/index.cjs +10 -10
- package/dist/index.css +3 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +7 -6
- package/dist/index.d.ts +7 -6
- package/dist/index.js +9 -9
- package/dist/{leaderboard-chart-C5R0QPG6.d.cts → leaderboard-chart-0L0WHLB8.d.cts} +2 -2
- package/dist/{leaderboard-chart-bsMDOAgS.d.ts → leaderboard-chart-CPwbMH2m.d.ts} +2 -2
- package/dist/{legend-D_hcatNS.d.ts → legend-CiRaC2E5.d.ts} +1 -1
- package/dist/{legend-CP4jfCL3.d.cts → legend-CpXHpy43.d.cts} +1 -1
- package/dist/providers/index.cjs +2 -2
- package/dist/providers/index.d.cts +4 -3
- package/dist/providers/index.d.ts +4 -3
- package/dist/providers/index.js +1 -1
- package/dist/{themes-5ZzZvG7H.d.cts → themes-CiIUyHWe.d.cts} +2 -2
- package/dist/{themes-yOauhH_G.d.ts → themes-NKtjcCQP.d.ts} +2 -2
- package/dist/{types-athdF3-8.d.cts → types-DK1CMp9i.d.cts} +10 -1
- package/dist/{types-athdF3-8.d.ts → types-DK1CMp9i.d.ts} +10 -1
- package/dist/{types-C0J1pP_c.d.ts → types-DQv1GcN4.d.ts} +1 -1
- package/dist/{types-D89-qczc.d.cts → types-DekewUVa.d.cts} +8 -0
- package/dist/{types-D89-qczc.d.ts → types-DekewUVa.d.ts} +8 -0
- package/dist/{types-tkjBLYdd.d.cts → types-wJz7SVob.d.cts} +1 -1
- package/package.json +7 -7
- package/src/components/bar-chart/bar-chart.tsx +2 -0
- package/src/components/legend/private/base-legend.tsx +10 -2
- package/src/components/legend/test/legend.test.tsx +133 -0
- package/src/components/legend/types.ts +9 -0
- package/src/components/line-chart/line-chart.tsx +23 -4
- package/src/components/line-chart/test/line-chart.test.tsx +8 -8
- package/src/components/pie-chart/pie-chart.module.scss +2 -0
- package/src/components/pie-chart/pie-chart.tsx +3 -1
- package/src/components/pie-semi-circle-chart/pie-semi-circle-chart.module.scss +1 -1
- package/src/components/pie-semi-circle-chart/pie-semi-circle-chart.tsx +2 -0
- package/src/index.ts +1 -1
- package/src/providers/chart-context/themes.ts +4 -1
- package/src/types.ts +8 -0
- package/dist/chunk-7N3YSNWD.cjs.map +0 -1
- package/dist/chunk-CQTGYCJY.cjs.map +0 -1
- package/dist/chunk-HLYQZPY4.js.map +0 -1
- package/dist/chunk-KACVKFMH.js.map +0 -1
- package/dist/chunk-KJQMBMHV.js.map +0 -1
- package/dist/chunk-MFXFJQWU.cjs.map +0 -1
- package/dist/chunk-NTJDQS7W.js.map +0 -1
- package/dist/chunk-QHP7UWMW.js.map +0 -1
- package/dist/chunk-RTUQVBUJ.cjs.map +0 -1
- package/dist/chunk-TU2CXWER.js.map +0 -1
- package/dist/chunk-UFSET6JB.cjs.map +0 -1
- package/dist/chunk-VQ6CB5FM.cjs.map +0 -1
- /package/dist/{chunk-HE2EODAW.js.map → chunk-CES34TN5.js.map} +0 -0
- /package/dist/{chunk-DSBJVG2F.js.map → chunk-CSSH4P7L.js.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,23 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.41.0] - 2025-10-08
|
|
9
|
+
### Added
|
|
10
|
+
- Charts: Add custom legend support [#45347]
|
|
11
|
+
- Charts: Set the color of the axis labels via the theme [#45406]
|
|
12
|
+
- Charts Legend: Update docs [#45391]
|
|
13
|
+
- Show ticks in hours when the interval is less than 24 hours. [#45390]
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
- Charts: Separate API reference documentation from usage documentation [#45322]
|
|
17
|
+
|
|
18
|
+
## [0.40.0] - 2025-10-06
|
|
19
|
+
### Added
|
|
20
|
+
- Add `legendItemClassName` prop for custom legend item styling. [#45286]
|
|
21
|
+
|
|
22
|
+
### Changed
|
|
23
|
+
- Update package dependencies. [#45334] [#45335]
|
|
24
|
+
|
|
8
25
|
## [0.39.0] - 2025-09-29
|
|
9
26
|
### Added
|
|
10
27
|
- Generate extra colors from theme colors if needed. [#45276]
|
|
@@ -486,6 +503,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
486
503
|
- Fixed lints following ESLint rule changes for TS [#40584]
|
|
487
504
|
- Fixing a bug in Chart storybook data. [#40640]
|
|
488
505
|
|
|
506
|
+
[0.41.0]: https://github.com/Automattic/charts/compare/v0.40.0...v0.41.0
|
|
507
|
+
[0.40.0]: https://github.com/Automattic/charts/compare/v0.39.0...v0.40.0
|
|
489
508
|
[0.39.0]: https://github.com/Automattic/charts/compare/v0.38.2...v0.39.0
|
|
490
509
|
[0.38.2]: https://github.com/Automattic/charts/compare/v0.38.1...v0.38.2
|
|
491
510
|
[0.38.1]: https://github.com/Automattic/charts/compare/v0.38.0...v0.38.1
|
|
@@ -7,7 +7,7 @@ var _chunkFX2PTUFCcjs = require('./chunk-FX2PTUFC.cjs');
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunk76XOLO7Fcjs = require('./chunk-76XOLO7F.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
@@ -17,7 +17,7 @@ var _chunkMFXFJQWUcjs = require('./chunk-MFXFJQWU.cjs');
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkTEEQFJFLcjs = require('./chunk-TEEQFJFL.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
@@ -951,7 +951,7 @@ function deprecated(feature, options = {}) {
|
|
|
951
951
|
logged[message] = true;
|
|
952
952
|
}
|
|
953
953
|
|
|
954
|
-
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.
|
|
954
|
+
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.25_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/context/context-system-provider.js
|
|
955
955
|
var _deepmerge = require('deepmerge'); var _deepmerge2 = _interopRequireDefault(_deepmerge);
|
|
956
956
|
var _es6 = require('fast-deep-equal/es6'); var _es62 = _interopRequireDefault(_es6);
|
|
957
957
|
|
|
@@ -977,12 +977,12 @@ function warning(message) {
|
|
|
977
977
|
logged2.add(message);
|
|
978
978
|
}
|
|
979
979
|
|
|
980
|
-
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.
|
|
980
|
+
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.25_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/utils/values.js
|
|
981
981
|
function isValueDefined(value) {
|
|
982
982
|
return value !== void 0 && value !== null;
|
|
983
983
|
}
|
|
984
984
|
|
|
985
|
-
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.
|
|
985
|
+
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.25_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/utils/hooks/use-update-effect.js
|
|
986
986
|
function useUpdateEffect(effect, deps) {
|
|
987
987
|
const mountedRef = _react.useRef.call(void 0, false);
|
|
988
988
|
_react.useEffect.call(void 0, () => {
|
|
@@ -998,7 +998,7 @@ function useUpdateEffect(effect, deps) {
|
|
|
998
998
|
}
|
|
999
999
|
var use_update_effect_default = useUpdateEffect;
|
|
1000
1000
|
|
|
1001
|
-
// ../../../node_modules/.pnpm/@emotion+react@11.14.0_@types+react@18.3.
|
|
1001
|
+
// ../../../node_modules/.pnpm/@emotion+react@11.14.0_@types+react@18.3.25_react@18.3.1/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js
|
|
1002
1002
|
|
|
1003
1003
|
|
|
1004
1004
|
|
|
@@ -1858,7 +1858,7 @@ var createCache = function createCache2(options) {
|
|
|
1858
1858
|
return cache2;
|
|
1859
1859
|
};
|
|
1860
1860
|
|
|
1861
|
-
// ../../../node_modules/.pnpm/@emotion+react@11.14.0_@types+react@18.3.
|
|
1861
|
+
// ../../../node_modules/.pnpm/@emotion+react@11.14.0_@types+react@18.3.25_react@18.3.1/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js
|
|
1862
1862
|
var _extends3 = require('@babel/runtime/helpers/esm/extends'); var _extends4 = _interopRequireDefault(_extends3);
|
|
1863
1863
|
|
|
1864
1864
|
// ../../../node_modules/.pnpm/@emotion+utils@1.4.2/node_modules/@emotion/utils/dist/emotion-utils.esm.js
|
|
@@ -2175,7 +2175,7 @@ var syncFallback = function syncFallback2(create) {
|
|
|
2175
2175
|
var useInsertionEffect3 = React["useInsertionEffect"] ? React["useInsertionEffect"] : false;
|
|
2176
2176
|
var useInsertionEffectAlwaysWithSyncFallback = !isBrowser3 ? syncFallback : useInsertionEffect3 || syncFallback;
|
|
2177
2177
|
|
|
2178
|
-
// ../../../node_modules/.pnpm/@emotion+react@11.14.0_@types+react@18.3.
|
|
2178
|
+
// ../../../node_modules/.pnpm/@emotion+react@11.14.0_@types+react@18.3.25_react@18.3.1/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js
|
|
2179
2179
|
var isDevelopment3 = false;
|
|
2180
2180
|
var isBrowser4 = typeof document !== "undefined";
|
|
2181
2181
|
var EmotionCacheContext = /* @__PURE__ */ React2.createContext(
|
|
@@ -2282,7 +2282,7 @@ var Emotion = /* @__PURE__ */ withEmotionCache(function(props, cache2, ref) {
|
|
|
2282
2282
|
});
|
|
2283
2283
|
var Emotion$1 = Emotion;
|
|
2284
2284
|
|
|
2285
|
-
// ../../../node_modules/.pnpm/@emotion+react@11.14.0_@types+react@18.3.
|
|
2285
|
+
// ../../../node_modules/.pnpm/@emotion+react@11.14.0_@types+react@18.3.25_react@18.3.1/node_modules/@emotion/react/dist/emotion-react.esm.js
|
|
2286
2286
|
|
|
2287
2287
|
require('@babel/runtime/helpers/extends');
|
|
2288
2288
|
var import_hoist_non_react_statics = _chunkEMMSS5I5cjs.__toESM.call(void 0, require_hoist_non_react_statics_cjs());
|
|
@@ -2436,7 +2436,7 @@ var css2 = _createEmotion.css;
|
|
|
2436
2436
|
var sheet = _createEmotion.sheet;
|
|
2437
2437
|
var cache = _createEmotion.cache;
|
|
2438
2438
|
|
|
2439
|
-
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.
|
|
2439
|
+
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.25_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/utils/hooks/use-cx.js
|
|
2440
2440
|
var isSerializedStyles = (o2) => typeof o2 !== "undefined" && o2 !== null && ["name", "styles"].every((p2) => typeof o2[p2] !== "undefined");
|
|
2441
2441
|
var useCx = () => {
|
|
2442
2442
|
const cache2 = __unsafe_useEmotionCache();
|
|
@@ -2712,7 +2712,7 @@ function names_default(e2, f2) {
|
|
|
2712
2712
|
}, "name"]);
|
|
2713
2713
|
}
|
|
2714
2714
|
|
|
2715
|
-
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.
|
|
2715
|
+
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.25_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/utils/colors.js
|
|
2716
2716
|
var colorComputationNode;
|
|
2717
2717
|
k([names_default]);
|
|
2718
2718
|
function getColorComputationNode() {
|
|
@@ -2766,7 +2766,7 @@ function getOptimalTextShade(backgroundColor) {
|
|
|
2766
2766
|
return result === "#000000" ? "dark" : "light";
|
|
2767
2767
|
}
|
|
2768
2768
|
|
|
2769
|
-
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.
|
|
2769
|
+
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.25_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/utils/space.js
|
|
2770
2770
|
var GRID_BASE = "4px";
|
|
2771
2771
|
function space(value) {
|
|
2772
2772
|
if (typeof value === "undefined") {
|
|
@@ -2782,7 +2782,7 @@ function space(value) {
|
|
|
2782
2782
|
return `calc(${GRID_BASE} * ${value})`;
|
|
2783
2783
|
}
|
|
2784
2784
|
|
|
2785
|
-
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.
|
|
2785
|
+
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.25_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/utils/colors-values.js
|
|
2786
2786
|
var white = "#fff";
|
|
2787
2787
|
var GRAY = {
|
|
2788
2788
|
900: "#1e1e1e",
|
|
@@ -2863,7 +2863,7 @@ var COLORS = Object.freeze({
|
|
|
2863
2863
|
ui: UI
|
|
2864
2864
|
});
|
|
2865
2865
|
|
|
2866
|
-
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.
|
|
2866
|
+
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.25_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/utils/config-values.js
|
|
2867
2867
|
var CONTROL_HEIGHT = "36px";
|
|
2868
2868
|
var CONTROL_PROPS = {
|
|
2869
2869
|
// These values should be shared with TextControl.
|
|
@@ -2933,7 +2933,7 @@ var config_values_default = Object.assign({}, CONTROL_PROPS, {
|
|
|
2933
2933
|
transitionTimingFunctionControl: "cubic-bezier(0.12, 0.8, 0.32, 1)"
|
|
2934
2934
|
});
|
|
2935
2935
|
|
|
2936
|
-
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.
|
|
2936
|
+
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.25_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/context/context-system-provider.js
|
|
2937
2937
|
var _jsxruntime = require('react/jsx-runtime');
|
|
2938
2938
|
var ComponentsContext = _react.createContext.call(void 0,
|
|
2939
2939
|
/** @type {Record<string, any>} */
|
|
@@ -2976,19 +2976,19 @@ var BaseContextSystemProvider = ({
|
|
|
2976
2976
|
};
|
|
2977
2977
|
var ContextSystemProvider = _react.memo.call(void 0, BaseContextSystemProvider);
|
|
2978
2978
|
|
|
2979
|
-
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.
|
|
2979
|
+
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.25_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/context/constants.js
|
|
2980
2980
|
var COMPONENT_NAMESPACE = "data-wp-component";
|
|
2981
2981
|
var CONNECTED_NAMESPACE = "data-wp-c16t";
|
|
2982
2982
|
var CONNECT_STATIC_NAMESPACE = "__contextSystemKey__";
|
|
2983
2983
|
|
|
2984
|
-
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.
|
|
2984
|
+
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.25_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/context/get-styled-class-name-from-key.js
|
|
2985
2985
|
function getStyledClassName(namespace) {
|
|
2986
2986
|
const kebab = paramCase(namespace);
|
|
2987
2987
|
return `components-${kebab}`;
|
|
2988
2988
|
}
|
|
2989
2989
|
var getStyledClassNameFromKey = memize(getStyledClassName);
|
|
2990
2990
|
|
|
2991
|
-
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.
|
|
2991
|
+
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.25_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/context/context-connect.js
|
|
2992
2992
|
function contextConnect(Component2, namespace) {
|
|
2993
2993
|
return _contextConnect(Component2, namespace, {
|
|
2994
2994
|
forwardsRef: true
|
|
@@ -3038,7 +3038,7 @@ function hasConnectNamespace(Component2, match2) {
|
|
|
3038
3038
|
return false;
|
|
3039
3039
|
}
|
|
3040
3040
|
|
|
3041
|
-
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.
|
|
3041
|
+
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.25_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/context/utils.js
|
|
3042
3042
|
function getNamespace(componentName) {
|
|
3043
3043
|
return {
|
|
3044
3044
|
[COMPONENT_NAMESPACE]: componentName
|
|
@@ -3050,7 +3050,7 @@ function getConnectedNamespace() {
|
|
|
3050
3050
|
};
|
|
3051
3051
|
}
|
|
3052
3052
|
|
|
3053
|
-
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.
|
|
3053
|
+
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.25_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/context/use-context-system.js
|
|
3054
3054
|
function useContextSystem(props, namespace) {
|
|
3055
3055
|
const contextSystemProps = useComponentsContext();
|
|
3056
3056
|
if (typeof namespace === "undefined") {
|
|
@@ -3082,7 +3082,7 @@ function useContextSystem(props, namespace) {
|
|
|
3082
3082
|
return finalComponentProps;
|
|
3083
3083
|
}
|
|
3084
3084
|
|
|
3085
|
-
// ../../../node_modules/.pnpm/@emotion+styled@11.14.1_@emotion+react@11.14.0_@types+react@18.3.
|
|
3085
|
+
// ../../../node_modules/.pnpm/@emotion+styled@11.14.1_@emotion+react@11.14.0_@types+react@18.3.25_react@18.3.1__@types+react@18.3.25_react@18.3.1/node_modules/@emotion/styled/base/dist/emotion-styled-base.esm.js
|
|
3086
3086
|
|
|
3087
3087
|
|
|
3088
3088
|
|
|
@@ -3095,7 +3095,7 @@ var isPropValid = /* @__PURE__ */ memoize(
|
|
|
3095
3095
|
/* Z+1 */
|
|
3096
3096
|
);
|
|
3097
3097
|
|
|
3098
|
-
// ../../../node_modules/.pnpm/@emotion+styled@11.14.1_@emotion+react@11.14.0_@types+react@18.3.
|
|
3098
|
+
// ../../../node_modules/.pnpm/@emotion+styled@11.14.1_@emotion+react@11.14.0_@types+react@18.3.25_react@18.3.1__@types+react@18.3.25_react@18.3.1/node_modules/@emotion/styled/base/dist/emotion-styled-base.esm.js
|
|
3099
3099
|
var isBrowser5 = typeof document !== "undefined";
|
|
3100
3100
|
var isDevelopment4 = false;
|
|
3101
3101
|
var testOmitPropsOnStringTag = isPropValid;
|
|
@@ -3234,7 +3234,7 @@ var createStyled = function createStyled2(tag, options) {
|
|
|
3234
3234
|
};
|
|
3235
3235
|
};
|
|
3236
3236
|
|
|
3237
|
-
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.
|
|
3237
|
+
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.25_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/view/component.js
|
|
3238
3238
|
|
|
3239
3239
|
var PolymorphicDiv = /* @__PURE__ */ createStyled("div", process.env.NODE_ENV === "production" ? {
|
|
3240
3240
|
target: "e19lxcc00"
|
|
@@ -3257,7 +3257,7 @@ var View = Object.assign(_react.forwardRef.call(void 0, UnforwardedView), {
|
|
|
3257
3257
|
});
|
|
3258
3258
|
var component_default = View;
|
|
3259
3259
|
|
|
3260
|
-
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.
|
|
3260
|
+
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.25_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/utils/use-responsive-value.js
|
|
3261
3261
|
var breakpoints = ["40em", "52em", "64em"];
|
|
3262
3262
|
var useBreakpointIndex = (options = {}) => {
|
|
3263
3263
|
const {
|
|
@@ -3306,7 +3306,7 @@ function useResponsiveValue(values, options = {}) {
|
|
|
3306
3306
|
);
|
|
3307
3307
|
}
|
|
3308
3308
|
|
|
3309
|
-
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.
|
|
3309
|
+
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.25_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/flex/styles.js
|
|
3310
3310
|
function _EMOTION_STRINGIFIED_CSS_ERROR__() {
|
|
3311
3311
|
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
3312
3312
|
}
|
|
@@ -3356,7 +3356,7 @@ var ItemsRow = process.env.NODE_ENV === "production" ? {
|
|
|
3356
3356
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
3357
3357
|
};
|
|
3358
3358
|
|
|
3359
|
-
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.
|
|
3359
|
+
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.25_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/flex/flex/hook.js
|
|
3360
3360
|
function useDeprecatedProps(props) {
|
|
3361
3361
|
const {
|
|
3362
3362
|
isReversed,
|
|
@@ -3408,13 +3408,13 @@ function useFlex(props) {
|
|
|
3408
3408
|
};
|
|
3409
3409
|
}
|
|
3410
3410
|
|
|
3411
|
-
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.
|
|
3411
|
+
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.25_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/flex/context.js
|
|
3412
3412
|
var FlexContext = _react.createContext.call(void 0, {
|
|
3413
3413
|
flexItemDisplay: void 0
|
|
3414
3414
|
});
|
|
3415
3415
|
var useFlexContext = () => _react.useContext.call(void 0, FlexContext);
|
|
3416
3416
|
|
|
3417
|
-
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.
|
|
3417
|
+
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.25_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/flex/flex-item/hook.js
|
|
3418
3418
|
function useFlexItem(props) {
|
|
3419
3419
|
const {
|
|
3420
3420
|
className,
|
|
@@ -3435,7 +3435,7 @@ function useFlexItem(props) {
|
|
|
3435
3435
|
};
|
|
3436
3436
|
}
|
|
3437
3437
|
|
|
3438
|
-
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.
|
|
3438
|
+
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.25_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/flex/flex-item/component.js
|
|
3439
3439
|
|
|
3440
3440
|
function UnconnectedFlexItem(props, forwardedRef) {
|
|
3441
3441
|
const flexItemProps = useFlexItem(props);
|
|
@@ -3447,7 +3447,7 @@ function UnconnectedFlexItem(props, forwardedRef) {
|
|
|
3447
3447
|
var FlexItem = contextConnect(UnconnectedFlexItem, "FlexItem");
|
|
3448
3448
|
var component_default2 = FlexItem;
|
|
3449
3449
|
|
|
3450
|
-
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.
|
|
3450
|
+
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.25_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/truncate/styles.js
|
|
3451
3451
|
function _EMOTION_STRINGIFIED_CSS_ERROR__2() {
|
|
3452
3452
|
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
3453
3453
|
}
|
|
@@ -3461,7 +3461,7 @@ var Truncate = process.env.NODE_ENV === "production" ? {
|
|
|
3461
3461
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__2
|
|
3462
3462
|
};
|
|
3463
3463
|
|
|
3464
|
-
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.
|
|
3464
|
+
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.25_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/truncate/utils.js
|
|
3465
3465
|
var TRUNCATE_ELLIPSIS = "\u2026";
|
|
3466
3466
|
var TRUNCATE_TYPE = {
|
|
3467
3467
|
auto: "auto",
|
|
@@ -3523,7 +3523,7 @@ function truncateContent(words = "", props) {
|
|
|
3523
3523
|
return truncatedContent;
|
|
3524
3524
|
}
|
|
3525
3525
|
|
|
3526
|
-
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.
|
|
3526
|
+
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.25_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/truncate/hook.js
|
|
3527
3527
|
function useTruncate(props) {
|
|
3528
3528
|
const {
|
|
3529
3529
|
className,
|
|
@@ -3559,7 +3559,7 @@ function useTruncate(props) {
|
|
|
3559
3559
|
};
|
|
3560
3560
|
}
|
|
3561
3561
|
|
|
3562
|
-
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.
|
|
3562
|
+
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.25_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/text/styles.js
|
|
3563
3563
|
var styles_exports3 = {};
|
|
3564
3564
|
_chunkEMMSS5I5cjs.__export.call(void 0, styles_exports3, {
|
|
3565
3565
|
Text: () => Text,
|
|
@@ -3597,7 +3597,7 @@ var upperCase = process.env.NODE_ENV === "production" ? {
|
|
|
3597
3597
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__3
|
|
3598
3598
|
};
|
|
3599
3599
|
|
|
3600
|
-
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.
|
|
3600
|
+
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.25_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/text/utils.js
|
|
3601
3601
|
var import_highlight_words_core = _chunkEMMSS5I5cjs.__toESM.call(void 0, require_dist());
|
|
3602
3602
|
var lowercaseProps = (object) => {
|
|
3603
3603
|
const mapped = {};
|
|
@@ -3681,7 +3681,7 @@ function createHighlighterText({
|
|
|
3681
3681
|
return textContent;
|
|
3682
3682
|
}
|
|
3683
3683
|
|
|
3684
|
-
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.
|
|
3684
|
+
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.25_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/utils/font-size.js
|
|
3685
3685
|
var BASE_FONT_SIZE = 13;
|
|
3686
3686
|
var PRESET_FONT_SIZES = {
|
|
3687
3687
|
body: BASE_FONT_SIZE,
|
|
@@ -3707,7 +3707,7 @@ function getFontSize(size = BASE_FONT_SIZE) {
|
|
|
3707
3707
|
return `calc(${ratio} * ${config_values_default.fontSize})`;
|
|
3708
3708
|
}
|
|
3709
3709
|
|
|
3710
|
-
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.
|
|
3710
|
+
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.25_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/text/get-line-height.js
|
|
3711
3711
|
function getLineHeight(adjustLineHeightForInnerControls, lineHeight) {
|
|
3712
3712
|
if (lineHeight) {
|
|
3713
3713
|
return lineHeight;
|
|
@@ -3732,7 +3732,7 @@ function getLineHeight(adjustLineHeightForInnerControls, lineHeight) {
|
|
|
3732
3732
|
return value;
|
|
3733
3733
|
}
|
|
3734
3734
|
|
|
3735
|
-
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.
|
|
3735
|
+
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.25_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/text/hook.js
|
|
3736
3736
|
function _EMOTION_STRINGIFIED_CSS_ERROR__4() {
|
|
3737
3737
|
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
3738
3738
|
}
|
|
@@ -3844,7 +3844,7 @@ function useText(props) {
|
|
|
3844
3844
|
};
|
|
3845
3845
|
}
|
|
3846
3846
|
|
|
3847
|
-
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.
|
|
3847
|
+
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.25_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/text/component.js
|
|
3848
3848
|
|
|
3849
3849
|
function UnconnectedText(props, forwardedRef) {
|
|
3850
3850
|
const textProps = useText(props);
|
|
@@ -3857,7 +3857,7 @@ function UnconnectedText(props, forwardedRef) {
|
|
|
3857
3857
|
var Text2 = contextConnect(UnconnectedText, "Text");
|
|
3858
3858
|
var component_default4 = Text2;
|
|
3859
3859
|
|
|
3860
|
-
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.
|
|
3860
|
+
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.25_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/h-stack/utils.js
|
|
3861
3861
|
var H_ALIGNMENTS = {
|
|
3862
3862
|
bottom: {
|
|
3863
3863
|
align: "flex-end",
|
|
@@ -3960,7 +3960,7 @@ function getAlignmentProps(alignment, direction = "row") {
|
|
|
3960
3960
|
return alignmentProps;
|
|
3961
3961
|
}
|
|
3962
3962
|
|
|
3963
|
-
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.
|
|
3963
|
+
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.25_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/utils/get-valid-children.js
|
|
3964
3964
|
function getValidChildren(children) {
|
|
3965
3965
|
if (typeof children === "string") {
|
|
3966
3966
|
return [children];
|
|
@@ -3968,7 +3968,7 @@ function getValidChildren(children) {
|
|
|
3968
3968
|
return _react.Children.toArray(children).filter((child) => _react.isValidElement.call(void 0, child));
|
|
3969
3969
|
}
|
|
3970
3970
|
|
|
3971
|
-
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.
|
|
3971
|
+
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.25_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/h-stack/hook.js
|
|
3972
3972
|
|
|
3973
3973
|
function useHStack(props) {
|
|
3974
3974
|
const {
|
|
@@ -4007,7 +4007,7 @@ function useHStack(props) {
|
|
|
4007
4007
|
return flexProps;
|
|
4008
4008
|
}
|
|
4009
4009
|
|
|
4010
|
-
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.
|
|
4010
|
+
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.25_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/v-stack/hook.js
|
|
4011
4011
|
function useVStack(props) {
|
|
4012
4012
|
const {
|
|
4013
4013
|
expanded = false,
|
|
@@ -4023,7 +4023,7 @@ function useVStack(props) {
|
|
|
4023
4023
|
return hStackProps;
|
|
4024
4024
|
}
|
|
4025
4025
|
|
|
4026
|
-
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.
|
|
4026
|
+
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.25_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/v-stack/component.js
|
|
4027
4027
|
|
|
4028
4028
|
function UnconnectedVStack(props, forwardedRef) {
|
|
4029
4029
|
const vStackProps = useVStack(props);
|
|
@@ -4035,7 +4035,7 @@ function UnconnectedVStack(props, forwardedRef) {
|
|
|
4035
4035
|
var VStack = contextConnect(UnconnectedVStack, "VStack");
|
|
4036
4036
|
var component_default5 = VStack;
|
|
4037
4037
|
|
|
4038
|
-
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.
|
|
4038
|
+
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.25_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/grid/utils.js
|
|
4039
4039
|
var ALIGNMENTS = {
|
|
4040
4040
|
bottom: {
|
|
4041
4041
|
alignItems: "flex-end",
|
|
@@ -4086,7 +4086,7 @@ function getAlignmentProps2(alignment) {
|
|
|
4086
4086
|
return alignmentProps;
|
|
4087
4087
|
}
|
|
4088
4088
|
|
|
4089
|
-
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.
|
|
4089
|
+
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.25_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/grid/hook.js
|
|
4090
4090
|
function useGrid(props) {
|
|
4091
4091
|
const {
|
|
4092
4092
|
align,
|
|
@@ -4132,7 +4132,7 @@ function useGrid(props) {
|
|
|
4132
4132
|
};
|
|
4133
4133
|
}
|
|
4134
4134
|
|
|
4135
|
-
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.
|
|
4135
|
+
// ../../../node_modules/.pnpm/@wordpress+components@30.4.0_@types+react@18.3.25_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/grid/component.js
|
|
4136
4136
|
|
|
4137
4137
|
function UnconnectedGrid(props, forwardedRef) {
|
|
4138
4138
|
const gridProps = useGrid(props);
|
|
@@ -4160,8 +4160,8 @@ function useLeaderboardLegendItems({
|
|
|
4160
4160
|
withOverlayLabel = false,
|
|
4161
4161
|
legendLabels
|
|
4162
4162
|
}) {
|
|
4163
|
-
const { leaderboardChart: leaderboardChartSettings } =
|
|
4164
|
-
const { getElementStyles } =
|
|
4163
|
+
const { leaderboardChart: leaderboardChartSettings } = _chunkTEEQFJFLcjs.useGlobalChartsTheme.call(void 0, );
|
|
4164
|
+
const { getElementStyles } = _chunkTEEQFJFLcjs.useGlobalChartsContext.call(void 0, );
|
|
4165
4165
|
return _react.useMemo.call(void 0, () => {
|
|
4166
4166
|
if (!data || data.length === 0) {
|
|
4167
4167
|
return [];
|
|
@@ -4216,13 +4216,13 @@ var leaderboard_chart_module_default = {
|
|
|
4216
4216
|
// src/components/leaderboard-chart/leaderboard-chart.tsx
|
|
4217
4217
|
|
|
4218
4218
|
var defaultValueFormatter = (value) => {
|
|
4219
|
-
return
|
|
4219
|
+
return _chunkTEEQFJFLcjs.formatMetricValue.call(void 0, value, "number", {
|
|
4220
4220
|
useMultipliers: true,
|
|
4221
4221
|
decimals: 1
|
|
4222
4222
|
});
|
|
4223
4223
|
};
|
|
4224
4224
|
var defaultDeltaFormatter = (value) => {
|
|
4225
|
-
return
|
|
4225
|
+
return _chunkTEEQFJFLcjs.formatMetricValue.call(void 0, value / 100, "average", {
|
|
4226
4226
|
decimals: 0,
|
|
4227
4227
|
signDisplay: "exceptZero"
|
|
4228
4228
|
});
|
|
@@ -4287,8 +4287,8 @@ var LeaderboardChartInternal = ({
|
|
|
4287
4287
|
style,
|
|
4288
4288
|
children
|
|
4289
4289
|
}) => {
|
|
4290
|
-
const chartId =
|
|
4291
|
-
const { leaderboardChart: leaderboardChartSettings } =
|
|
4290
|
+
const chartId = _chunkTEEQFJFLcjs.useChartId.call(void 0, providedChartId);
|
|
4291
|
+
const { leaderboardChart: leaderboardChartSettings } = _chunkTEEQFJFLcjs.useGlobalChartsTheme.call(void 0, );
|
|
4292
4292
|
const { otherChildren } = _chunk3Z526IL2cjs.useChartChildren.call(void 0, children, "LeaderboardChart");
|
|
4293
4293
|
const {
|
|
4294
4294
|
labelSpacing,
|
|
@@ -4298,7 +4298,7 @@ var LeaderboardChartInternal = ({
|
|
|
4298
4298
|
secondaryColor: settingsSecondaryColor,
|
|
4299
4299
|
deltaColors
|
|
4300
4300
|
} = leaderboardChartSettings;
|
|
4301
|
-
const { getElementStyles } =
|
|
4301
|
+
const { getElementStyles } = _chunkTEEQFJFLcjs.useGlobalChartsContext.call(void 0, );
|
|
4302
4302
|
const { color: resolvedPrimaryColor } = getElementStyles({
|
|
4303
4303
|
index: 0,
|
|
4304
4304
|
overrideColor: primaryColor || settingsPrimaryColor
|
|
@@ -4323,7 +4323,7 @@ var LeaderboardChartInternal = ({
|
|
|
4323
4323
|
}),
|
|
4324
4324
|
[withComparison, withOverlayLabel]
|
|
4325
4325
|
);
|
|
4326
|
-
|
|
4326
|
+
_chunkTEEQFJFLcjs.useChartRegistration.call(void 0, {
|
|
4327
4327
|
chartId,
|
|
4328
4328
|
legendItems,
|
|
4329
4329
|
chartType: "leaderboard",
|
|
@@ -4332,7 +4332,7 @@ var LeaderboardChartInternal = ({
|
|
|
4332
4332
|
});
|
|
4333
4333
|
if (!data || data.length === 0) {
|
|
4334
4334
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4335
|
-
|
|
4335
|
+
_chunk76XOLO7Fcjs.SingleChartContext.Provider,
|
|
4336
4336
|
{
|
|
4337
4337
|
value: {
|
|
4338
4338
|
chartId,
|
|
@@ -4355,7 +4355,7 @@ var LeaderboardChartInternal = ({
|
|
|
4355
4355
|
);
|
|
4356
4356
|
}
|
|
4357
4357
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4358
|
-
|
|
4358
|
+
_chunk76XOLO7Fcjs.SingleChartContext.Provider,
|
|
4359
4359
|
{
|
|
4360
4360
|
value: {
|
|
4361
4361
|
chartId,
|
|
@@ -4415,7 +4415,7 @@ var LeaderboardChartInternal = ({
|
|
|
4415
4415
|
}
|
|
4416
4416
|
),
|
|
4417
4417
|
showLegend && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4418
|
-
|
|
4418
|
+
_chunk76XOLO7Fcjs.Legend,
|
|
4419
4419
|
{
|
|
4420
4420
|
orientation: legendOrientation,
|
|
4421
4421
|
position: legendPosition,
|
|
@@ -4434,20 +4434,20 @@ var LeaderboardChartInternal = ({
|
|
|
4434
4434
|
);
|
|
4435
4435
|
};
|
|
4436
4436
|
var LeaderboardChartWithProvider = (props) => {
|
|
4437
|
-
const existingContext = _react.useContext.call(void 0,
|
|
4437
|
+
const existingContext = _react.useContext.call(void 0, _chunkTEEQFJFLcjs.GlobalChartsContext);
|
|
4438
4438
|
if (existingContext) {
|
|
4439
4439
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, LeaderboardChartInternal, { ...props });
|
|
4440
4440
|
}
|
|
4441
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4441
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTEEQFJFLcjs.GlobalChartsProvider, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, LeaderboardChartInternal, { ...props }) });
|
|
4442
4442
|
};
|
|
4443
4443
|
LeaderboardChartWithProvider.displayName = "LeaderboardChart";
|
|
4444
|
-
var LeaderboardChart =
|
|
4445
|
-
Legend:
|
|
4444
|
+
var LeaderboardChart = _chunkTEEQFJFLcjs.attachSubComponents.call(void 0, LeaderboardChartWithProvider, {
|
|
4445
|
+
Legend: _chunk76XOLO7Fcjs.Legend
|
|
4446
4446
|
});
|
|
4447
|
-
var LeaderboardChartResponsive =
|
|
4447
|
+
var LeaderboardChartResponsive = _chunkTEEQFJFLcjs.attachSubComponents.call(void 0,
|
|
4448
4448
|
_chunkFX2PTUFCcjs.withResponsive.call(void 0, LeaderboardChartWithProvider),
|
|
4449
4449
|
{
|
|
4450
|
-
Legend:
|
|
4450
|
+
Legend: _chunk76XOLO7Fcjs.Legend
|
|
4451
4451
|
}
|
|
4452
4452
|
);
|
|
4453
4453
|
|
|
@@ -4486,4 +4486,4 @@ is-plain-object/dist/is-plain-object.mjs:
|
|
|
4486
4486
|
* Released under the MIT License.
|
|
4487
4487
|
*)
|
|
4488
4488
|
*/
|
|
4489
|
-
//# sourceMappingURL=chunk-
|
|
4489
|
+
//# sourceMappingURL=chunk-6V6JZIYR.cjs.map
|