@automattic/charts 0.53.0 → 0.53.2

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.
Files changed (122) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/charts/bar-chart/index.cjs +5 -5
  3. package/dist/charts/bar-chart/index.d.cts +1 -1
  4. package/dist/charts/bar-chart/index.d.ts +1 -1
  5. package/dist/charts/bar-chart/index.js +4 -4
  6. package/dist/charts/bar-list-chart/index.cjs +6 -6
  7. package/dist/charts/bar-list-chart/index.d.cts +1 -1
  8. package/dist/charts/bar-list-chart/index.d.ts +1 -1
  9. package/dist/charts/bar-list-chart/index.js +5 -5
  10. package/dist/charts/conversion-funnel-chart/index.cjs +4 -4
  11. package/dist/charts/conversion-funnel-chart/index.d.cts +1 -1
  12. package/dist/charts/conversion-funnel-chart/index.d.ts +1 -1
  13. package/dist/charts/conversion-funnel-chart/index.js +3 -3
  14. package/dist/charts/geo-chart/index.cjs +13 -0
  15. package/dist/charts/geo-chart/index.cjs.map +1 -0
  16. package/dist/charts/geo-chart/index.css +8 -0
  17. package/dist/charts/geo-chart/index.css.map +1 -0
  18. package/dist/charts/geo-chart/index.d.cts +62 -0
  19. package/dist/charts/geo-chart/index.d.ts +62 -0
  20. package/dist/charts/geo-chart/index.js +13 -0
  21. package/dist/charts/geo-chart/index.js.map +1 -0
  22. package/dist/charts/leaderboard-chart/index.cjs +5 -5
  23. package/dist/charts/leaderboard-chart/index.d.cts +2 -2
  24. package/dist/charts/leaderboard-chart/index.d.ts +2 -2
  25. package/dist/charts/leaderboard-chart/index.js +4 -4
  26. package/dist/charts/line-chart/index.cjs +5 -5
  27. package/dist/charts/line-chart/index.d.cts +1 -1
  28. package/dist/charts/line-chart/index.d.ts +1 -1
  29. package/dist/charts/line-chart/index.js +4 -4
  30. package/dist/charts/pie-chart/index.cjs +6 -6
  31. package/dist/charts/pie-chart/index.d.cts +1 -1
  32. package/dist/charts/pie-chart/index.d.ts +1 -1
  33. package/dist/charts/pie-chart/index.js +5 -5
  34. package/dist/charts/pie-semi-circle-chart/index.cjs +6 -6
  35. package/dist/charts/pie-semi-circle-chart/index.d.cts +1 -1
  36. package/dist/charts/pie-semi-circle-chart/index.d.ts +1 -1
  37. package/dist/charts/pie-semi-circle-chart/index.js +5 -5
  38. package/dist/{chunk-ERGEUE7R.cjs → chunk-4KEE36W3.cjs} +19 -19
  39. package/dist/chunk-4KEE36W3.cjs.map +1 -0
  40. package/dist/{chunk-4RYV2TII.js → chunk-6RKPV3UP.js} +10 -10
  41. package/dist/{chunk-VER6S543.js → chunk-ALDWCNLH.js} +3 -3
  42. package/dist/chunk-CLSMJQCO.cjs +121 -0
  43. package/dist/chunk-CLSMJQCO.cjs.map +1 -0
  44. package/dist/{chunk-2FRTJVQ3.js → chunk-DCZ47KPZ.js} +6 -6
  45. package/dist/chunk-DCZ47KPZ.js.map +1 -0
  46. package/dist/{chunk-GWNXOI4M.cjs → chunk-DDV5726Q.cjs} +25 -25
  47. package/dist/{chunk-GWNXOI4M.cjs.map → chunk-DDV5726Q.cjs.map} +1 -1
  48. package/dist/{chunk-O2BJMTIS.js → chunk-DYMJWNYM.js} +2 -2
  49. package/dist/{chunk-A7X3CNEO.cjs → chunk-FVWTBK44.cjs} +6 -6
  50. package/dist/{chunk-A7X3CNEO.cjs.map → chunk-FVWTBK44.cjs.map} +1 -1
  51. package/dist/{chunk-ZN7KVU4R.cjs → chunk-GX4XTD6V.cjs} +76 -76
  52. package/dist/{chunk-ZN7KVU4R.cjs.map → chunk-GX4XTD6V.cjs.map} +1 -1
  53. package/dist/{chunk-VTMJWCCW.js → chunk-H6XRINJE.js} +10 -10
  54. package/dist/{chunk-CQPKK55N.js → chunk-HPJ5XSZM.js} +60 -60
  55. package/dist/{chunk-CQPKK55N.js.map → chunk-HPJ5XSZM.js.map} +1 -1
  56. package/dist/{chunk-6QCSXXDY.cjs → chunk-JWMWOBAX.cjs} +23 -23
  57. package/dist/{chunk-6QCSXXDY.cjs.map → chunk-JWMWOBAX.cjs.map} +1 -1
  58. package/dist/{chunk-DY7IVYWP.js → chunk-KBORJZKC.js} +8 -8
  59. package/dist/{chunk-W4ZYJ74Q.js → chunk-KORG7ITC.js} +3 -3
  60. package/dist/{chunk-AHUSYMYS.cjs → chunk-LNLHCZ6F.cjs} +28 -28
  61. package/dist/{chunk-AHUSYMYS.cjs.map → chunk-LNLHCZ6F.cjs.map} +1 -1
  62. package/dist/chunk-RDJ5PKC5.js +121 -0
  63. package/dist/chunk-RDJ5PKC5.js.map +1 -0
  64. package/dist/{chunk-P3QEXFTA.js → chunk-TE63Y5PX.js} +9 -1
  65. package/dist/chunk-TE63Y5PX.js.map +1 -0
  66. package/dist/{chunk-O23EGQ3H.cjs → chunk-UWAZGLHG.cjs} +22 -22
  67. package/dist/{chunk-O23EGQ3H.cjs.map → chunk-UWAZGLHG.cjs.map} +1 -1
  68. package/dist/{chunk-W3H42XRV.cjs → chunk-WKN6C4ZE.cjs} +10 -10
  69. package/dist/{chunk-W3H42XRV.cjs.map → chunk-WKN6C4ZE.cjs.map} +1 -1
  70. package/dist/{chunk-RHQIACQT.js → chunk-Z34VYZGR.js} +9 -9
  71. package/dist/{chunk-NYZFVI2P.cjs → chunk-ZPJHWKEK.cjs} +9 -9
  72. package/dist/{chunk-NYZFVI2P.cjs.map → chunk-ZPJHWKEK.cjs.map} +1 -1
  73. package/dist/{chunk-DAKYGZG6.cjs → chunk-ZVGEDXDP.cjs} +10 -2
  74. package/dist/chunk-ZVGEDXDP.cjs.map +1 -0
  75. package/dist/components/legend/index.cjs +4 -4
  76. package/dist/components/legend/index.d.cts +1 -1
  77. package/dist/components/legend/index.d.ts +1 -1
  78. package/dist/components/legend/index.js +3 -3
  79. package/dist/components/tooltip/index.d.cts +1 -1
  80. package/dist/components/tooltip/index.d.ts +1 -1
  81. package/dist/hooks/index.cjs +3 -3
  82. package/dist/hooks/index.d.cts +1 -1
  83. package/dist/hooks/index.d.ts +1 -1
  84. package/dist/hooks/index.js +2 -2
  85. package/dist/index.cjs +26 -126
  86. package/dist/index.cjs.map +1 -1
  87. package/dist/index.d.cts +15 -55
  88. package/dist/index.d.ts +15 -55
  89. package/dist/index.js +38 -138
  90. package/dist/index.js.map +1 -1
  91. package/dist/{leaderboard-chart-3dKYMfoP.d.cts → leaderboard-chart-CN80sJmQ.d.cts} +1 -1
  92. package/dist/{leaderboard-chart-BqH8BLiG.d.ts → leaderboard-chart-DPi2ueOg.d.ts} +1 -1
  93. package/dist/providers/index.cjs +3 -3
  94. package/dist/providers/index.d.cts +2 -2
  95. package/dist/providers/index.d.ts +2 -2
  96. package/dist/providers/index.js +2 -2
  97. package/dist/{themes-ChB_VjWt.d.ts → themes-AriuFXQ2.d.ts} +2 -2
  98. package/dist/{themes-DijSDhqQ.d.cts → themes-Dzg0wE3B.d.cts} +2 -2
  99. package/dist/{types-sQ20gAeB.d.cts → types-D1lTxRyg.d.cts} +1 -1
  100. package/dist/{types-sQ20gAeB.d.ts → types-D1lTxRyg.d.ts} +1 -1
  101. package/dist/utils/index.cjs +4 -2
  102. package/dist/utils/index.cjs.map +1 -1
  103. package/dist/utils/index.d.cts +11 -2
  104. package/dist/utils/index.d.ts +11 -2
  105. package/dist/utils/index.js +3 -1
  106. package/package.json +31 -23
  107. package/src/charts/conversion-funnel-chart/conversion-funnel-chart.tsx +2 -5
  108. package/src/charts/sparkline/sparkline.tsx +2 -0
  109. package/src/charts/sparkline/types.ts +8 -0
  110. package/src/utils/color-utils.ts +19 -0
  111. package/src/utils/test/color-utils.test.ts +232 -0
  112. package/dist/chunk-2FRTJVQ3.js.map +0 -1
  113. package/dist/chunk-DAKYGZG6.cjs.map +0 -1
  114. package/dist/chunk-ERGEUE7R.cjs.map +0 -1
  115. package/dist/chunk-P3QEXFTA.js.map +0 -1
  116. /package/dist/{chunk-4RYV2TII.js.map → chunk-6RKPV3UP.js.map} +0 -0
  117. /package/dist/{chunk-VER6S543.js.map → chunk-ALDWCNLH.js.map} +0 -0
  118. /package/dist/{chunk-O2BJMTIS.js.map → chunk-DYMJWNYM.js.map} +0 -0
  119. /package/dist/{chunk-VTMJWCCW.js.map → chunk-H6XRINJE.js.map} +0 -0
  120. /package/dist/{chunk-DY7IVYWP.js.map → chunk-KBORJZKC.js.map} +0 -0
  121. /package/dist/{chunk-W4ZYJ74Q.js.map → chunk-KORG7ITC.js.map} +0 -0
  122. /package/dist/{chunk-RHQIACQT.js.map → chunk-Z34VYZGR.js.map} +0 -0
package/CHANGELOG.md CHANGED
@@ -5,6 +5,15 @@ 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.53.2] - 2026-01-07
9
+ ### Changed
10
+ - Update package dependencies. [#46456]
11
+
12
+ ## [0.53.1] - 2026-01-06
13
+ ### Added
14
+ - Add animation support to Sparkline chart component. [#46333]
15
+ - Add Geo Chart exports to package. [#46438]
16
+
8
17
  ## [0.53.0] - 2025-12-22
9
18
  ### Added
10
19
  - Add Geo chart [#45883]
@@ -615,6 +624,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
615
624
  - Fixed lints following ESLint rule changes for TS [#40584]
616
625
  - Fixing a bug in Chart storybook data. [#40640]
617
626
 
627
+ [0.53.2]: https://github.com/Automattic/charts/compare/v0.53.1...v0.53.2
628
+ [0.53.1]: https://github.com/Automattic/charts/compare/v0.53.0...v0.53.1
618
629
  [0.53.0]: https://github.com/Automattic/charts/compare/v0.52.0...v0.53.0
619
630
  [0.52.0]: https://github.com/Automattic/charts/compare/v0.51.0...v0.52.0
620
631
  [0.51.0]: https://github.com/Automattic/charts/compare/v0.50.2...v0.51.0
@@ -1,15 +1,15 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkGWNXOI4Mcjs = require('../../chunk-GWNXOI4M.cjs');
4
+ var _chunkDDV5726Qcjs = require('../../chunk-DDV5726Q.cjs');
5
+ require('../../chunk-ZPJHWKEK.cjs');
5
6
  require('../../chunk-7HROSZRS.cjs');
6
7
  require('../../chunk-MUUSZ7J5.cjs');
7
- require('../../chunk-NYZFVI2P.cjs');
8
- require('../../chunk-W3H42XRV.cjs');
9
- require('../../chunk-DAKYGZG6.cjs');
8
+ require('../../chunk-WKN6C4ZE.cjs');
9
+ require('../../chunk-ZVGEDXDP.cjs');
10
10
  require('../../chunk-EMMSS5I5.cjs');
11
11
 
12
12
 
13
13
 
14
- exports.BarChart = _chunkGWNXOI4Mcjs.BarChartResponsive; exports.BarChartUnresponsive = _chunkGWNXOI4Mcjs.BarChart;
14
+ exports.BarChart = _chunkDDV5726Qcjs.BarChartResponsive; exports.BarChartUnresponsive = _chunkDDV5726Qcjs.BarChart;
15
15
  //# sourceMappingURL=index.cjs.map
@@ -1,5 +1,5 @@
1
1
  import { L as Legend } from '../../legend-C9ahiwOt.cjs';
2
- import { O as Optional, B as BaseChartProps, S as SeriesData, D as DataPointDate } from '../../types-sQ20gAeB.cjs';
2
+ import { O as Optional, B as BaseChartProps, d as SeriesData, b as DataPointDate } from '../../types-D1lTxRyg.cjs';
3
3
  import { FC, ReactNode, ComponentType } from 'react';
4
4
  import { R as ResponsiveConfig } from '../../with-responsive-Cp2qnQPo.cjs';
5
5
  import { RenderTooltipParams } from '@visx/xychart/lib/components/Tooltip';
@@ -1,5 +1,5 @@
1
1
  import { L as Legend } from '../../legend-jjMmhSg3.js';
2
- import { O as Optional, B as BaseChartProps, S as SeriesData, D as DataPointDate } from '../../types-sQ20gAeB.js';
2
+ import { O as Optional, B as BaseChartProps, d as SeriesData, b as DataPointDate } from '../../types-D1lTxRyg.js';
3
3
  import { FC, ReactNode, ComponentType } from 'react';
4
4
  import { R as ResponsiveConfig } from '../../with-responsive-Cp2qnQPo.js';
5
5
  import { RenderTooltipParams } from '@visx/xychart/lib/components/Tooltip';
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  BarChart,
3
3
  BarChartResponsive
4
- } from "../../chunk-DY7IVYWP.js";
4
+ } from "../../chunk-KBORJZKC.js";
5
+ import "../../chunk-ALDWCNLH.js";
5
6
  import "../../chunk-5XI443YP.js";
6
7
  import "../../chunk-NONODB3K.js";
7
- import "../../chunk-VER6S543.js";
8
- import "../../chunk-O2BJMTIS.js";
9
- import "../../chunk-P3QEXFTA.js";
8
+ import "../../chunk-DYMJWNYM.js";
9
+ import "../../chunk-TE63Y5PX.js";
10
10
  import "../../chunk-G3PMV62Z.js";
11
11
  export {
12
12
  BarChartResponsive as BarChart,
@@ -1,16 +1,16 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkA7X3CNEOcjs = require('../../chunk-A7X3CNEO.cjs');
5
- require('../../chunk-GWNXOI4M.cjs');
4
+ var _chunkFVWTBK44cjs = require('../../chunk-FVWTBK44.cjs');
5
+ require('../../chunk-DDV5726Q.cjs');
6
+ require('../../chunk-ZPJHWKEK.cjs');
6
7
  require('../../chunk-7HROSZRS.cjs');
7
8
  require('../../chunk-MUUSZ7J5.cjs');
8
- require('../../chunk-NYZFVI2P.cjs');
9
- require('../../chunk-W3H42XRV.cjs');
10
- require('../../chunk-DAKYGZG6.cjs');
9
+ require('../../chunk-WKN6C4ZE.cjs');
10
+ require('../../chunk-ZVGEDXDP.cjs');
11
11
  require('../../chunk-EMMSS5I5.cjs');
12
12
 
13
13
 
14
14
 
15
- exports.BarListChart = _chunkA7X3CNEOcjs.BarListChartResponsive; exports.BarListChartUnresponsive = _chunkA7X3CNEOcjs.BarListChart;
15
+ exports.BarListChart = _chunkFVWTBK44cjs.BarListChartResponsive; exports.BarListChartUnresponsive = _chunkFVWTBK44cjs.BarListChart;
16
16
  //# sourceMappingURL=index.cjs.map
@@ -2,7 +2,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { R as ResponsiveConfig } from '../../with-responsive-Cp2qnQPo.cjs';
3
3
  import { TextProps } from '@visx/text';
4
4
  import { BarChartProps } from '../bar-chart/index.cjs';
5
- import { g as ScaleOptions, S as SeriesData } from '../../types-sQ20gAeB.cjs';
5
+ import { g as ScaleOptions, d as SeriesData } from '../../types-D1lTxRyg.cjs';
6
6
  import { ComponentType, FC } from 'react';
7
7
  import '../../legend-C9ahiwOt.cjs';
8
8
  import '../../types-C05PdDJa.cjs';
@@ -2,7 +2,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { R as ResponsiveConfig } from '../../with-responsive-Cp2qnQPo.js';
3
3
  import { TextProps } from '@visx/text';
4
4
  import { BarChartProps } from '../bar-chart/index.js';
5
- import { g as ScaleOptions, S as SeriesData } from '../../types-sQ20gAeB.js';
5
+ import { g as ScaleOptions, d as SeriesData } from '../../types-D1lTxRyg.js';
6
6
  import { ComponentType, FC } from 'react';
7
7
  import '../../legend-jjMmhSg3.js';
8
8
  import '../../types-C05PdDJa.js';
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  BarListChart,
3
3
  BarListChartResponsive
4
- } from "../../chunk-W4ZYJ74Q.js";
5
- import "../../chunk-DY7IVYWP.js";
4
+ } from "../../chunk-KORG7ITC.js";
5
+ import "../../chunk-KBORJZKC.js";
6
+ import "../../chunk-ALDWCNLH.js";
6
7
  import "../../chunk-5XI443YP.js";
7
8
  import "../../chunk-NONODB3K.js";
8
- import "../../chunk-VER6S543.js";
9
- import "../../chunk-O2BJMTIS.js";
10
- import "../../chunk-P3QEXFTA.js";
9
+ import "../../chunk-DYMJWNYM.js";
10
+ import "../../chunk-TE63Y5PX.js";
11
11
  import "../../chunk-G3PMV62Z.js";
12
12
  export {
13
13
  BarListChartResponsive as BarListChart,
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkERGEUE7Rcjs = require('../../chunk-ERGEUE7R.cjs');
4
- require('../../chunk-W3H42XRV.cjs');
5
- require('../../chunk-DAKYGZG6.cjs');
3
+ var _chunk4KEE36W3cjs = require('../../chunk-4KEE36W3.cjs');
4
+ require('../../chunk-WKN6C4ZE.cjs');
5
+ require('../../chunk-ZVGEDXDP.cjs');
6
6
  require('../../chunk-EMMSS5I5.cjs');
7
7
 
8
8
 
9
- exports.ConversionFunnelChart = _chunkERGEUE7Rcjs.ConversionFunnelChartWithProvider;
9
+ exports.ConversionFunnelChart = _chunk4KEE36W3cjs.ConversionFunnelChartWithProvider;
10
10
  //# sourceMappingURL=index.cjs.map
@@ -1,5 +1,5 @@
1
1
  import { FC } from 'react';
2
- import { B as BaseChartProps } from '../../types-sQ20gAeB.cjs';
2
+ import { B as BaseChartProps } from '../../types-D1lTxRyg.cjs';
3
3
  import '@visx/annotation/lib/components/CircleSubject';
4
4
  import '@visx/annotation/lib/components/Connector';
5
5
  import '@visx/annotation/lib/components/Label';
@@ -1,5 +1,5 @@
1
1
  import { FC } from 'react';
2
- import { B as BaseChartProps } from '../../types-sQ20gAeB.js';
2
+ import { B as BaseChartProps } from '../../types-D1lTxRyg.js';
3
3
  import '@visx/annotation/lib/components/CircleSubject';
4
4
  import '@visx/annotation/lib/components/Connector';
5
5
  import '@visx/annotation/lib/components/Label';
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  ConversionFunnelChartWithProvider
3
- } from "../../chunk-2FRTJVQ3.js";
4
- import "../../chunk-O2BJMTIS.js";
5
- import "../../chunk-P3QEXFTA.js";
3
+ } from "../../chunk-DCZ47KPZ.js";
4
+ import "../../chunk-DYMJWNYM.js";
5
+ import "../../chunk-TE63Y5PX.js";
6
6
  import "../../chunk-G3PMV62Z.js";
7
7
  export {
8
8
  ConversionFunnelChartWithProvider as ConversionFunnelChart
@@ -0,0 +1,13 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+ var _chunkCLSMJQCOcjs = require('../../chunk-CLSMJQCO.cjs');
5
+ require('../../chunk-MUUSZ7J5.cjs');
6
+ require('../../chunk-WKN6C4ZE.cjs');
7
+ require('../../chunk-ZVGEDXDP.cjs');
8
+ require('../../chunk-EMMSS5I5.cjs');
9
+
10
+
11
+
12
+ exports.GeoChart = _chunkCLSMJQCOcjs.GeoChartResponsive; exports.GeoChartUnresponsive = _chunkCLSMJQCOcjs.GeoChartWithProvider;
13
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/home/runner/work/jetpack/jetpack/projects/js-packages/charts/dist/charts/geo-chart/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACF,4DAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC;AACE;AACA;AACF,+HAAC","file":"/home/runner/work/jetpack/jetpack/projects/js-packages/charts/dist/charts/geo-chart/index.cjs"}
@@ -0,0 +1,8 @@
1
+ /* esbuild-sass-plugin:css-chunk:src/charts/geo-chart/geo-chart.module.scss */
2
+ .a8ccharts-JvcqOz {
3
+ position: relative;
4
+ display: flex;
5
+ justify-content: center;
6
+ align-items: center;
7
+ }
8
+ /*# sourceMappingURL=index.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["esbuild-sass-plugin:css-chunk:src/charts/geo-chart/geo-chart.module.scss"],"sourcesContent":[".a8ccharts-JvcqOz {\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n}"],"mappings":";AAAA,CAAC;AACC,YAAU;AACV,WAAS;AACT,mBAAiB;AACjB,eAAa;AACf;","names":[]}
@@ -0,0 +1,62 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { R as ResponsiveConfig } from '../../with-responsive-Cp2qnQPo.cjs';
3
+ import { FC } from 'react';
4
+ import { B as BaseChartProps, G as GeoData } from '../../types-D1lTxRyg.cjs';
5
+ import '@visx/annotation/lib/components/CircleSubject';
6
+ import '@visx/annotation/lib/components/Connector';
7
+ import '@visx/annotation/lib/components/Label';
8
+ import '@visx/annotation/lib/components/LineSubject';
9
+ import '@visx/axis';
10
+ import '@visx/legend/lib/types';
11
+ import '@visx/scale';
12
+ import '@visx/text/lib/Text';
13
+ import '@visx/xychart';
14
+ import 'react-google-charts';
15
+
16
+ /**
17
+ * Region to display on the map.
18
+ * Use 'world' for global view or any ISO 3166-1 alpha-2 country code
19
+ * (e.g., 'US' for United States, 'CA' for Canada).
20
+ */
21
+ type GeoRegion = 'world' | (string & {});
22
+ /**
23
+ * Resolution level for the map.
24
+ * - 'countries': Country-level (default for 'world')
25
+ * - 'provinces': State/province level (use with specific region like 'US')
26
+ * - 'metros': Metropolitan areas (US only)
27
+ */
28
+ type GeoResolution = 'countries' | 'provinces' | 'metros';
29
+ interface GeoChartProps extends Pick<BaseChartProps, 'className' | 'chartId' | 'width' | 'height'> {
30
+ /**
31
+ * Data in Google Charts native format for maximum flexibility.
32
+ * First row contains column headers, subsequent rows contain data.
33
+ *
34
+ * Country identifiers can be either full country names or ISO 3166-1 alpha-2 codes
35
+ * (e.g., 'United States' or 'US').
36
+ */
37
+ data: GeoData;
38
+ /**
39
+ * Region to display. Use 'world' for global view, 'US' for United States,
40
+ * or any ISO 3166-1 alpha-2 country code.
41
+ * @default 'world'
42
+ */
43
+ region?: GeoRegion;
44
+ /**
45
+ * Resolution level for the map.
46
+ * - 'countries': Country-level (default for 'world')
47
+ * - 'provinces': State/province level (use with specific region like 'US')
48
+ * - 'metros': Metropolitan areas (US only)
49
+ * @default 'countries'
50
+ */
51
+ resolution?: GeoResolution;
52
+ /**
53
+ * Optional render function for the loading placeholder.
54
+ * Called while Google Charts is loading.
55
+ */
56
+ renderPlaceholder?: () => React.ReactNode;
57
+ }
58
+
59
+ declare const GeoChartWithProvider: FC<GeoChartProps>;
60
+ declare const GeoChartResponsive: ({ resizeDebounceTime, maxWidth, aspectRatio, ...chartProps }: Pick<Partial<GeoChartProps>, "width" | "height" | "size"> & Omit<GeoChartProps, "width" | "height" | "size"> & ResponsiveConfig) => react_jsx_runtime.JSX.Element;
61
+
62
+ export { GeoChartResponsive as GeoChart, type GeoChartProps, GeoChartWithProvider as GeoChartUnresponsive, type GeoRegion, type GeoResolution };
@@ -0,0 +1,62 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { R as ResponsiveConfig } from '../../with-responsive-Cp2qnQPo.js';
3
+ import { FC } from 'react';
4
+ import { B as BaseChartProps, G as GeoData } from '../../types-D1lTxRyg.js';
5
+ import '@visx/annotation/lib/components/CircleSubject';
6
+ import '@visx/annotation/lib/components/Connector';
7
+ import '@visx/annotation/lib/components/Label';
8
+ import '@visx/annotation/lib/components/LineSubject';
9
+ import '@visx/axis';
10
+ import '@visx/legend/lib/types';
11
+ import '@visx/scale';
12
+ import '@visx/text/lib/Text';
13
+ import '@visx/xychart';
14
+ import 'react-google-charts';
15
+
16
+ /**
17
+ * Region to display on the map.
18
+ * Use 'world' for global view or any ISO 3166-1 alpha-2 country code
19
+ * (e.g., 'US' for United States, 'CA' for Canada).
20
+ */
21
+ type GeoRegion = 'world' | (string & {});
22
+ /**
23
+ * Resolution level for the map.
24
+ * - 'countries': Country-level (default for 'world')
25
+ * - 'provinces': State/province level (use with specific region like 'US')
26
+ * - 'metros': Metropolitan areas (US only)
27
+ */
28
+ type GeoResolution = 'countries' | 'provinces' | 'metros';
29
+ interface GeoChartProps extends Pick<BaseChartProps, 'className' | 'chartId' | 'width' | 'height'> {
30
+ /**
31
+ * Data in Google Charts native format for maximum flexibility.
32
+ * First row contains column headers, subsequent rows contain data.
33
+ *
34
+ * Country identifiers can be either full country names or ISO 3166-1 alpha-2 codes
35
+ * (e.g., 'United States' or 'US').
36
+ */
37
+ data: GeoData;
38
+ /**
39
+ * Region to display. Use 'world' for global view, 'US' for United States,
40
+ * or any ISO 3166-1 alpha-2 country code.
41
+ * @default 'world'
42
+ */
43
+ region?: GeoRegion;
44
+ /**
45
+ * Resolution level for the map.
46
+ * - 'countries': Country-level (default for 'world')
47
+ * - 'provinces': State/province level (use with specific region like 'US')
48
+ * - 'metros': Metropolitan areas (US only)
49
+ * @default 'countries'
50
+ */
51
+ resolution?: GeoResolution;
52
+ /**
53
+ * Optional render function for the loading placeholder.
54
+ * Called while Google Charts is loading.
55
+ */
56
+ renderPlaceholder?: () => React.ReactNode;
57
+ }
58
+
59
+ declare const GeoChartWithProvider: FC<GeoChartProps>;
60
+ declare const GeoChartResponsive: ({ resizeDebounceTime, maxWidth, aspectRatio, ...chartProps }: Pick<Partial<GeoChartProps>, "width" | "height" | "size"> & Omit<GeoChartProps, "width" | "height" | "size"> & ResponsiveConfig) => react_jsx_runtime.JSX.Element;
61
+
62
+ export { GeoChartResponsive as GeoChart, type GeoChartProps, GeoChartWithProvider as GeoChartUnresponsive, type GeoRegion, type GeoResolution };
@@ -0,0 +1,13 @@
1
+ import {
2
+ GeoChartResponsive,
3
+ GeoChartWithProvider
4
+ } from "../../chunk-RDJ5PKC5.js";
5
+ import "../../chunk-NONODB3K.js";
6
+ import "../../chunk-DYMJWNYM.js";
7
+ import "../../chunk-TE63Y5PX.js";
8
+ import "../../chunk-G3PMV62Z.js";
9
+ export {
10
+ GeoChartResponsive as GeoChart,
11
+ GeoChartWithProvider as GeoChartUnresponsive
12
+ };
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -2,19 +2,19 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkZN7KVU4Rcjs = require('../../chunk-ZN7KVU4R.cjs');
5
+ var _chunkGX4XTD6Vcjs = require('../../chunk-GX4XTD6V.cjs');
6
6
  require('../../chunk-HIWNB5PK.cjs');
7
+ require('../../chunk-ZPJHWKEK.cjs');
7
8
  require('../../chunk-MUUSZ7J5.cjs');
8
- require('../../chunk-NYZFVI2P.cjs');
9
- require('../../chunk-W3H42XRV.cjs');
9
+ require('../../chunk-WKN6C4ZE.cjs');
10
10
 
11
11
 
12
- var _chunkDAKYGZG6cjs = require('../../chunk-DAKYGZG6.cjs');
12
+ var _chunkZVGEDXDPcjs = require('../../chunk-ZVGEDXDP.cjs');
13
13
  require('../../chunk-EMMSS5I5.cjs');
14
14
 
15
15
 
16
16
 
17
17
 
18
18
 
19
- exports.LeaderboardChart = _chunkZN7KVU4Rcjs.LeaderboardChartResponsive; exports.LeaderboardChartUnresponsive = _chunkZN7KVU4Rcjs.LeaderboardChart; exports.formatMetricValue = _chunkDAKYGZG6cjs.formatMetricValue; exports.useLeaderboardLegendItems = _chunkZN7KVU4Rcjs.useLeaderboardLegendItems;
19
+ exports.LeaderboardChart = _chunkGX4XTD6Vcjs.LeaderboardChartResponsive; exports.LeaderboardChartUnresponsive = _chunkGX4XTD6Vcjs.LeaderboardChart; exports.formatMetricValue = _chunkZVGEDXDPcjs.formatMetricValue; exports.useLeaderboardLegendItems = _chunkGX4XTD6Vcjs.useLeaderboardLegendItems;
20
20
  //# sourceMappingURL=index.cjs.map
@@ -1,5 +1,5 @@
1
- export { L as LeaderboardChart, b as LeaderboardChartProps, a as LeaderboardChartUnresponsive } from '../../leaderboard-chart-3dKYMfoP.cjs';
2
- import { L as LeaderboardEntry } from '../../types-sQ20gAeB.cjs';
1
+ export { L as LeaderboardChart, b as LeaderboardChartProps, a as LeaderboardChartUnresponsive } from '../../leaderboard-chart-CN80sJmQ.cjs';
2
+ import { L as LeaderboardEntry } from '../../types-D1lTxRyg.cjs';
3
3
  export { M as MetricValueType, f as formatMetricValue } from '../../format-metric-value-MXm5DtQ_.cjs';
4
4
  import { B as BaseLegendItem } from '../../types-C05PdDJa.cjs';
5
5
  import 'react/jsx-runtime';
@@ -1,5 +1,5 @@
1
- export { L as LeaderboardChart, b as LeaderboardChartProps, a as LeaderboardChartUnresponsive } from '../../leaderboard-chart-BqH8BLiG.js';
2
- import { L as LeaderboardEntry } from '../../types-sQ20gAeB.js';
1
+ export { L as LeaderboardChart, b as LeaderboardChartProps, a as LeaderboardChartUnresponsive } from '../../leaderboard-chart-DPi2ueOg.js';
2
+ import { L as LeaderboardEntry } from '../../types-D1lTxRyg.js';
3
3
  export { M as MetricValueType, f as formatMetricValue } from '../../format-metric-value-MXm5DtQ_.js';
4
4
  import { B as BaseLegendItem } from '../../types-C05PdDJa.js';
5
5
  import 'react/jsx-runtime';
@@ -2,14 +2,14 @@ import {
2
2
  LeaderboardChart,
3
3
  LeaderboardChartResponsive,
4
4
  useLeaderboardLegendItems
5
- } from "../../chunk-CQPKK55N.js";
5
+ } from "../../chunk-HPJ5XSZM.js";
6
6
  import "../../chunk-CEZGL6YP.js";
7
+ import "../../chunk-ALDWCNLH.js";
7
8
  import "../../chunk-NONODB3K.js";
8
- import "../../chunk-VER6S543.js";
9
- import "../../chunk-O2BJMTIS.js";
9
+ import "../../chunk-DYMJWNYM.js";
10
10
  import {
11
11
  formatMetricValue
12
- } from "../../chunk-P3QEXFTA.js";
12
+ } from "../../chunk-TE63Y5PX.js";
13
13
  import "../../chunk-G3PMV62Z.js";
14
14
  export {
15
15
  LeaderboardChartResponsive as LeaderboardChart,
@@ -1,15 +1,15 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkAHUSYMYScjs = require('../../chunk-AHUSYMYS.cjs');
4
+ var _chunkLNLHCZ6Fcjs = require('../../chunk-LNLHCZ6F.cjs');
5
+ require('../../chunk-ZPJHWKEK.cjs');
5
6
  require('../../chunk-7HROSZRS.cjs');
6
7
  require('../../chunk-MUUSZ7J5.cjs');
7
- require('../../chunk-NYZFVI2P.cjs');
8
- require('../../chunk-W3H42XRV.cjs');
9
- require('../../chunk-DAKYGZG6.cjs');
8
+ require('../../chunk-WKN6C4ZE.cjs');
9
+ require('../../chunk-ZVGEDXDP.cjs');
10
10
  require('../../chunk-EMMSS5I5.cjs');
11
11
 
12
12
 
13
13
 
14
- exports.LineChart = _chunkAHUSYMYScjs.LineChartResponsive; exports.LineChartUnresponsive = _chunkAHUSYMYScjs.LineChart;
14
+ exports.LineChart = _chunkLNLHCZ6Fcjs.LineChartResponsive; exports.LineChartUnresponsive = _chunkLNLHCZ6Fcjs.LineChart;
15
15
  //# sourceMappingURL=index.cjs.map
@@ -1,5 +1,5 @@
1
1
  import { L as Legend } from '../../legend-C9ahiwOt.cjs';
2
- import { B as BaseChartProps, S as SeriesData, D as DataPointDate, A as AnnotationStyles, O as Optional } from '../../types-sQ20gAeB.cjs';
2
+ import { B as BaseChartProps, d as SeriesData, b as DataPointDate, A as AnnotationStyles, O as Optional } from '../../types-D1lTxRyg.cjs';
3
3
  import { FC, ReactNode, SVGProps } from 'react';
4
4
  import { GlyphProps } from '@visx/xychart';
5
5
  import { RenderTooltipParams } from '@visx/xychart/lib/components/Tooltip';
@@ -1,5 +1,5 @@
1
1
  import { L as Legend } from '../../legend-jjMmhSg3.js';
2
- import { B as BaseChartProps, S as SeriesData, D as DataPointDate, A as AnnotationStyles, O as Optional } from '../../types-sQ20gAeB.js';
2
+ import { B as BaseChartProps, d as SeriesData, b as DataPointDate, A as AnnotationStyles, O as Optional } from '../../types-D1lTxRyg.js';
3
3
  import { FC, ReactNode, SVGProps } from 'react';
4
4
  import { GlyphProps } from '@visx/xychart';
5
5
  import { RenderTooltipParams } from '@visx/xychart/lib/components/Tooltip';
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  LineChart,
3
3
  LineChartResponsive
4
- } from "../../chunk-RHQIACQT.js";
4
+ } from "../../chunk-Z34VYZGR.js";
5
+ import "../../chunk-ALDWCNLH.js";
5
6
  import "../../chunk-5XI443YP.js";
6
7
  import "../../chunk-NONODB3K.js";
7
- import "../../chunk-VER6S543.js";
8
- import "../../chunk-O2BJMTIS.js";
9
- import "../../chunk-P3QEXFTA.js";
8
+ import "../../chunk-DYMJWNYM.js";
9
+ import "../../chunk-TE63Y5PX.js";
10
10
  import "../../chunk-G3PMV62Z.js";
11
11
  export {
12
12
  LineChartResponsive as LineChart,
@@ -1,18 +1,18 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunk6QCSXXDYcjs = require('../../chunk-6QCSXXDY.cjs');
4
+ var _chunkJWMWOBAXcjs = require('../../chunk-JWMWOBAX.cjs');
5
5
  require('../../chunk-7OZEQ5HE.cjs');
6
6
  require('../../chunk-OTZT3MC2.cjs');
7
- require('../../chunk-7HROSZRS.cjs');
8
7
  require('../../chunk-HIWNB5PK.cjs');
8
+ require('../../chunk-ZPJHWKEK.cjs');
9
+ require('../../chunk-7HROSZRS.cjs');
9
10
  require('../../chunk-MUUSZ7J5.cjs');
10
- require('../../chunk-NYZFVI2P.cjs');
11
- require('../../chunk-W3H42XRV.cjs');
12
- require('../../chunk-DAKYGZG6.cjs');
11
+ require('../../chunk-WKN6C4ZE.cjs');
12
+ require('../../chunk-ZVGEDXDP.cjs');
13
13
  require('../../chunk-EMMSS5I5.cjs');
14
14
 
15
15
 
16
16
 
17
- exports.PieChart = _chunk6QCSXXDYcjs.PieChartResponsive; exports.PieChartUnresponsive = _chunk6QCSXXDYcjs.PieChart;
17
+ exports.PieChart = _chunkJWMWOBAXcjs.PieChartResponsive; exports.PieChartUnresponsive = _chunkJWMWOBAXcjs.PieChart;
18
18
  //# sourceMappingURL=index.cjs.map
@@ -1,7 +1,7 @@
1
1
  import { R as ResponsiveConfig } from '../../with-responsive-Cp2qnQPo.cjs';
2
2
  import { ReactNode } from 'react';
3
3
  import { LegendValueDisplay } from '../../components/legend/index.cjs';
4
- import { O as Optional, B as BaseChartProps, e as DataPointPercentage } from '../../types-sQ20gAeB.cjs';
4
+ import { O as Optional, B as BaseChartProps, e as DataPointPercentage } from '../../types-D1lTxRyg.cjs';
5
5
  import { C as ChartComponentWithComposition } from '../../types-BBwg4Evw.cjs';
6
6
  import '../../legend-C9ahiwOt.cjs';
7
7
  import '../../types-C05PdDJa.cjs';
@@ -1,7 +1,7 @@
1
1
  import { R as ResponsiveConfig } from '../../with-responsive-Cp2qnQPo.js';
2
2
  import { ReactNode } from 'react';
3
3
  import { LegendValueDisplay } from '../../components/legend/index.js';
4
- import { O as Optional, B as BaseChartProps, e as DataPointPercentage } from '../../types-sQ20gAeB.js';
4
+ import { O as Optional, B as BaseChartProps, e as DataPointPercentage } from '../../types-D1lTxRyg.js';
5
5
  import { C as ChartComponentWithComposition } from '../../types-DQNnq5Fr.js';
6
6
  import '../../legend-jjMmhSg3.js';
7
7
  import '../../types-C05PdDJa.js';
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  PieChart,
3
3
  PieChartResponsive
4
- } from "../../chunk-VTMJWCCW.js";
4
+ } from "../../chunk-H6XRINJE.js";
5
5
  import "../../chunk-NFRB2POF.js";
6
6
  import "../../chunk-A3AEEGKR.js";
7
- import "../../chunk-5XI443YP.js";
8
7
  import "../../chunk-CEZGL6YP.js";
8
+ import "../../chunk-ALDWCNLH.js";
9
+ import "../../chunk-5XI443YP.js";
9
10
  import "../../chunk-NONODB3K.js";
10
- import "../../chunk-VER6S543.js";
11
- import "../../chunk-O2BJMTIS.js";
12
- import "../../chunk-P3QEXFTA.js";
11
+ import "../../chunk-DYMJWNYM.js";
12
+ import "../../chunk-TE63Y5PX.js";
13
13
  import "../../chunk-G3PMV62Z.js";
14
14
  export {
15
15
  PieChartResponsive as PieChart,
@@ -1,17 +1,17 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkO23EGQ3Hcjs = require('../../chunk-O23EGQ3H.cjs');
4
+ var _chunkUWAZGLHGcjs = require('../../chunk-UWAZGLHG.cjs');
5
5
  require('../../chunk-OTZT3MC2.cjs');
6
- require('../../chunk-7HROSZRS.cjs');
7
6
  require('../../chunk-HIWNB5PK.cjs');
7
+ require('../../chunk-ZPJHWKEK.cjs');
8
+ require('../../chunk-7HROSZRS.cjs');
8
9
  require('../../chunk-MUUSZ7J5.cjs');
9
- require('../../chunk-NYZFVI2P.cjs');
10
- require('../../chunk-W3H42XRV.cjs');
11
- require('../../chunk-DAKYGZG6.cjs');
10
+ require('../../chunk-WKN6C4ZE.cjs');
11
+ require('../../chunk-ZVGEDXDP.cjs');
12
12
  require('../../chunk-EMMSS5I5.cjs');
13
13
 
14
14
 
15
15
 
16
- exports.PieSemiCircleChart = _chunkO23EGQ3Hcjs.PieSemiCircleChartResponsive; exports.PieSemiCircleChartUnresponsive = _chunkO23EGQ3Hcjs.PieSemiCircleChart;
16
+ exports.PieSemiCircleChart = _chunkUWAZGLHGcjs.PieSemiCircleChartResponsive; exports.PieSemiCircleChartUnresponsive = _chunkUWAZGLHGcjs.PieSemiCircleChart;
17
17
  //# sourceMappingURL=index.cjs.map
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { LegendValueDisplay } from '../../components/legend/index.cjs';
3
- import { O as Optional, B as BaseChartProps, e as DataPointPercentage } from '../../types-sQ20gAeB.cjs';
3
+ import { O as Optional, B as BaseChartProps, e as DataPointPercentage } from '../../types-D1lTxRyg.cjs';
4
4
  import { C as ChartComponentWithComposition } from '../../types-BBwg4Evw.cjs';
5
5
  import { R as ResponsiveConfig } from '../../with-responsive-Cp2qnQPo.cjs';
6
6
  import { PieArcDatum } from '@visx/shape/lib/shapes/Pie';
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { LegendValueDisplay } from '../../components/legend/index.js';
3
- import { O as Optional, B as BaseChartProps, e as DataPointPercentage } from '../../types-sQ20gAeB.js';
3
+ import { O as Optional, B as BaseChartProps, e as DataPointPercentage } from '../../types-D1lTxRyg.js';
4
4
  import { C as ChartComponentWithComposition } from '../../types-DQNnq5Fr.js';
5
5
  import { R as ResponsiveConfig } from '../../with-responsive-Cp2qnQPo.js';
6
6
  import { PieArcDatum } from '@visx/shape/lib/shapes/Pie';
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  PieSemiCircleChart,
3
3
  PieSemiCircleChartResponsive
4
- } from "../../chunk-4RYV2TII.js";
4
+ } from "../../chunk-6RKPV3UP.js";
5
5
  import "../../chunk-A3AEEGKR.js";
6
- import "../../chunk-5XI443YP.js";
7
6
  import "../../chunk-CEZGL6YP.js";
7
+ import "../../chunk-ALDWCNLH.js";
8
+ import "../../chunk-5XI443YP.js";
8
9
  import "../../chunk-NONODB3K.js";
9
- import "../../chunk-VER6S543.js";
10
- import "../../chunk-O2BJMTIS.js";
11
- import "../../chunk-P3QEXFTA.js";
10
+ import "../../chunk-DYMJWNYM.js";
11
+ import "../../chunk-TE63Y5PX.js";
12
12
  import "../../chunk-G3PMV62Z.js";
13
13
  export {
14
14
  PieSemiCircleChartResponsive as PieSemiCircleChart,