@automattic/charts 0.58.0 → 1.0.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.
Files changed (253) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README.md +7 -54
  3. package/dist/index.cjs +9606 -22
  4. package/dist/index.cjs.map +1 -1
  5. package/dist/index.css +20 -25
  6. package/dist/index.css.map +1 -1
  7. package/dist/index.d.cts +1612 -33
  8. package/dist/index.d.ts +1612 -33
  9. package/dist/index.js +9640 -56
  10. package/dist/index.js.map +1 -1
  11. package/package.json +8 -125
  12. package/src/charts/bar-chart/bar-chart.module.scss +0 -5
  13. package/src/charts/bar-chart/bar-chart.tsx +131 -137
  14. package/src/charts/leaderboard-chart/leaderboard-chart.tsx +23 -40
  15. package/src/charts/line-chart/line-chart.module.scss +0 -5
  16. package/src/charts/line-chart/line-chart.tsx +190 -183
  17. package/src/charts/line-chart/private/line-chart-annotations-overlay.tsx +1 -2
  18. package/src/charts/pie-chart/pie-chart.module.scss +2 -10
  19. package/src/charts/pie-chart/pie-chart.tsx +198 -199
  20. package/src/charts/pie-chart/test/composition-api.test.tsx +3 -3
  21. package/src/charts/pie-chart/test/pie-chart.test.tsx +42 -35
  22. package/src/charts/pie-semi-circle-chart/pie-semi-circle-chart.module.scss +2 -8
  23. package/src/charts/pie-semi-circle-chart/pie-semi-circle-chart.tsx +155 -155
  24. package/src/charts/pie-semi-circle-chart/test/pie-semi-circle-chart.test.tsx +25 -25
  25. package/src/charts/private/chart-layout/chart-layout.module.scss +7 -0
  26. package/src/charts/private/chart-layout/chart-layout.tsx +106 -0
  27. package/src/charts/private/chart-layout/index.ts +2 -0
  28. package/src/charts/private/chart-layout/test/chart-layout.test.tsx +167 -0
  29. package/src/charts/private/single-chart-context/single-chart-context.tsx +2 -2
  30. package/src/charts/private/svg-empty-state/index.ts +1 -0
  31. package/src/charts/private/svg-empty-state/svg-empty-state.module.scss +7 -0
  32. package/src/charts/private/svg-empty-state/svg-empty-state.tsx +40 -0
  33. package/src/components/legend/hooks/test/use-chart-legend-items.test.tsx +12 -8
  34. package/src/components/legend/hooks/use-chart-legend-items.ts +12 -13
  35. package/src/components/legend/legend.tsx +33 -8
  36. package/src/components/legend/test/legend.test.tsx +93 -1
  37. package/src/hooks/index.ts +1 -0
  38. package/src/hooks/use-data-with-percentages.ts +24 -0
  39. package/src/hooks/use-interactive-legend-data.ts +18 -15
  40. package/src/index.ts +65 -2
  41. package/src/providers/chart-context/global-charts-provider.tsx +7 -1
  42. package/src/providers/chart-context/hooks/use-chart-registration.ts +2 -1
  43. package/src/providers/chart-context/types.ts +2 -2
  44. package/src/types.ts +27 -7
  45. package/src/utils/test/resolve-css-var.test.ts +2 -0
  46. package/dist/base-tooltip-DOq93wjU.d.cts +0 -38
  47. package/dist/base-tooltip-DOq93wjU.d.ts +0 -38
  48. package/dist/charts/bar-chart/index.cjs +0 -17
  49. package/dist/charts/bar-chart/index.cjs.map +0 -1
  50. package/dist/charts/bar-chart/index.css +0 -141
  51. package/dist/charts/bar-chart/index.css.map +0 -1
  52. package/dist/charts/bar-chart/index.d.cts +0 -36
  53. package/dist/charts/bar-chart/index.d.ts +0 -36
  54. package/dist/charts/bar-chart/index.js +0 -17
  55. package/dist/charts/bar-chart/index.js.map +0 -1
  56. package/dist/charts/bar-list-chart/index.cjs +0 -18
  57. package/dist/charts/bar-list-chart/index.cjs.map +0 -1
  58. package/dist/charts/bar-list-chart/index.css +0 -141
  59. package/dist/charts/bar-list-chart/index.css.map +0 -1
  60. package/dist/charts/bar-list-chart/index.d.cts +0 -92
  61. package/dist/charts/bar-list-chart/index.d.ts +0 -92
  62. package/dist/charts/bar-list-chart/index.js +0 -18
  63. package/dist/charts/bar-list-chart/index.js.map +0 -1
  64. package/dist/charts/conversion-funnel-chart/index.cjs +0 -11
  65. package/dist/charts/conversion-funnel-chart/index.cjs.map +0 -1
  66. package/dist/charts/conversion-funnel-chart/index.css +0 -157
  67. package/dist/charts/conversion-funnel-chart/index.css.map +0 -1
  68. package/dist/charts/conversion-funnel-chart/index.d.cts +0 -97
  69. package/dist/charts/conversion-funnel-chart/index.d.ts +0 -97
  70. package/dist/charts/conversion-funnel-chart/index.js +0 -11
  71. package/dist/charts/conversion-funnel-chart/index.js.map +0 -1
  72. package/dist/charts/geo-chart/index.cjs +0 -13
  73. package/dist/charts/geo-chart/index.cjs.map +0 -1
  74. package/dist/charts/geo-chart/index.css +0 -23
  75. package/dist/charts/geo-chart/index.css.map +0 -1
  76. package/dist/charts/geo-chart/index.d.cts +0 -67
  77. package/dist/charts/geo-chart/index.d.ts +0 -67
  78. package/dist/charts/geo-chart/index.js +0 -13
  79. package/dist/charts/geo-chart/index.js.map +0 -1
  80. package/dist/charts/leaderboard-chart/index.cjs +0 -21
  81. package/dist/charts/leaderboard-chart/index.cjs.map +0 -1
  82. package/dist/charts/leaderboard-chart/index.css +0 -160
  83. package/dist/charts/leaderboard-chart/index.css.map +0 -1
  84. package/dist/charts/leaderboard-chart/index.d.cts +0 -46
  85. package/dist/charts/leaderboard-chart/index.d.ts +0 -46
  86. package/dist/charts/leaderboard-chart/index.js +0 -21
  87. package/dist/charts/leaderboard-chart/index.js.map +0 -1
  88. package/dist/charts/line-chart/index.cjs +0 -17
  89. package/dist/charts/line-chart/index.cjs.map +0 -1
  90. package/dist/charts/line-chart/index.css +0 -213
  91. package/dist/charts/line-chart/index.css.map +0 -1
  92. package/dist/charts/line-chart/index.d.cts +0 -98
  93. package/dist/charts/line-chart/index.d.ts +0 -98
  94. package/dist/charts/line-chart/index.js +0 -17
  95. package/dist/charts/line-chart/index.js.map +0 -1
  96. package/dist/charts/pie-chart/index.cjs +0 -19
  97. package/dist/charts/pie-chart/index.cjs.map +0 -1
  98. package/dist/charts/pie-chart/index.css +0 -131
  99. package/dist/charts/pie-chart/index.css.map +0 -1
  100. package/dist/charts/pie-chart/index.d.cts +0 -91
  101. package/dist/charts/pie-chart/index.d.ts +0 -91
  102. package/dist/charts/pie-chart/index.js +0 -19
  103. package/dist/charts/pie-chart/index.js.map +0 -1
  104. package/dist/charts/pie-semi-circle-chart/index.cjs +0 -18
  105. package/dist/charts/pie-semi-circle-chart/index.cjs.map +0 -1
  106. package/dist/charts/pie-semi-circle-chart/index.css +0 -132
  107. package/dist/charts/pie-semi-circle-chart/index.css.map +0 -1
  108. package/dist/charts/pie-semi-circle-chart/index.d.cts +0 -88
  109. package/dist/charts/pie-semi-circle-chart/index.d.ts +0 -88
  110. package/dist/charts/pie-semi-circle-chart/index.js +0 -18
  111. package/dist/charts/pie-semi-circle-chart/index.js.map +0 -1
  112. package/dist/charts/sparkline/index.cjs +0 -18
  113. package/dist/charts/sparkline/index.cjs.map +0 -1
  114. package/dist/charts/sparkline/index.css +0 -230
  115. package/dist/charts/sparkline/index.css.map +0 -1
  116. package/dist/charts/sparkline/index.d.cts +0 -113
  117. package/dist/charts/sparkline/index.d.ts +0 -113
  118. package/dist/charts/sparkline/index.js +0 -18
  119. package/dist/charts/sparkline/index.js.map +0 -1
  120. package/dist/chunk-2A34OA5O.cjs +0 -51
  121. package/dist/chunk-2A34OA5O.cjs.map +0 -1
  122. package/dist/chunk-2I67QUIV.js +0 -895
  123. package/dist/chunk-2I67QUIV.js.map +0 -1
  124. package/dist/chunk-2ICEEQOC.js +0 -1071
  125. package/dist/chunk-2ICEEQOC.js.map +0 -1
  126. package/dist/chunk-4B7BL2DD.js +0 -120
  127. package/dist/chunk-4B7BL2DD.js.map +0 -1
  128. package/dist/chunk-4OXMTKAL.js +0 -401
  129. package/dist/chunk-4OXMTKAL.js.map +0 -1
  130. package/dist/chunk-ASLARV7L.cjs +0 -81
  131. package/dist/chunk-ASLARV7L.cjs.map +0 -1
  132. package/dist/chunk-B6NLZFRW.js +0 -617
  133. package/dist/chunk-B6NLZFRW.js.map +0 -1
  134. package/dist/chunk-BBAUQOW6.cjs +0 -120
  135. package/dist/chunk-BBAUQOW6.cjs.map +0 -1
  136. package/dist/chunk-BPYKWMI7.js +0 -194
  137. package/dist/chunk-BPYKWMI7.js.map +0 -1
  138. package/dist/chunk-CMMHCTBX.cjs +0 -373
  139. package/dist/chunk-CMMHCTBX.cjs.map +0 -1
  140. package/dist/chunk-CPPXJATQ.cjs +0 -1071
  141. package/dist/chunk-CPPXJATQ.cjs.map +0 -1
  142. package/dist/chunk-DKU775VC.js +0 -219
  143. package/dist/chunk-DKU775VC.js.map +0 -1
  144. package/dist/chunk-GRA7Y2ZG.cjs +0 -401
  145. package/dist/chunk-GRA7Y2ZG.cjs.map +0 -1
  146. package/dist/chunk-I2276W3I.cjs +0 -66
  147. package/dist/chunk-I2276W3I.cjs.map +0 -1
  148. package/dist/chunk-JJIMABHT.js +0 -351
  149. package/dist/chunk-JJIMABHT.js.map +0 -1
  150. package/dist/chunk-KJHWXOCZ.js +0 -421
  151. package/dist/chunk-KJHWXOCZ.js.map +0 -1
  152. package/dist/chunk-KRWGSOJ2.js +0 -91
  153. package/dist/chunk-KRWGSOJ2.js.map +0 -1
  154. package/dist/chunk-KXRWNFQJ.js +0 -51
  155. package/dist/chunk-KXRWNFQJ.js.map +0 -1
  156. package/dist/chunk-LTFH7SEG.js +0 -373
  157. package/dist/chunk-LTFH7SEG.js.map +0 -1
  158. package/dist/chunk-MUNOKLLE.js +0 -165
  159. package/dist/chunk-MUNOKLLE.js.map +0 -1
  160. package/dist/chunk-MXGLYWVP.cjs +0 -351
  161. package/dist/chunk-MXGLYWVP.cjs.map +0 -1
  162. package/dist/chunk-OP6PHB2U.js +0 -81
  163. package/dist/chunk-OP6PHB2U.js.map +0 -1
  164. package/dist/chunk-OYC34VTO.cjs +0 -3957
  165. package/dist/chunk-OYC34VTO.cjs.map +0 -1
  166. package/dist/chunk-PQL5I3F6.cjs +0 -421
  167. package/dist/chunk-PQL5I3F6.cjs.map +0 -1
  168. package/dist/chunk-REZTQ4PH.cjs +0 -488
  169. package/dist/chunk-REZTQ4PH.cjs.map +0 -1
  170. package/dist/chunk-TZRUHQOH.cjs +0 -91
  171. package/dist/chunk-TZRUHQOH.cjs.map +0 -1
  172. package/dist/chunk-UTYVIOWZ.js +0 -3957
  173. package/dist/chunk-UTYVIOWZ.js.map +0 -1
  174. package/dist/chunk-W2LDIX26.cjs +0 -165
  175. package/dist/chunk-W2LDIX26.cjs.map +0 -1
  176. package/dist/chunk-WSG64BVN.cjs +0 -219
  177. package/dist/chunk-WSG64BVN.cjs.map +0 -1
  178. package/dist/chunk-WTQYGUNF.js +0 -400
  179. package/dist/chunk-WTQYGUNF.js.map +0 -1
  180. package/dist/chunk-WYK7EL5R.cjs +0 -895
  181. package/dist/chunk-WYK7EL5R.cjs.map +0 -1
  182. package/dist/chunk-XC4KHJYX.cjs +0 -617
  183. package/dist/chunk-XC4KHJYX.cjs.map +0 -1
  184. package/dist/chunk-XVBH5XHE.cjs +0 -400
  185. package/dist/chunk-XVBH5XHE.cjs.map +0 -1
  186. package/dist/chunk-XWYZIFZW.js +0 -66
  187. package/dist/chunk-XWYZIFZW.js.map +0 -1
  188. package/dist/chunk-Y3NNQMAX.cjs +0 -194
  189. package/dist/chunk-Y3NNQMAX.cjs.map +0 -1
  190. package/dist/chunk-YAFQVVDI.js +0 -488
  191. package/dist/chunk-YAFQVVDI.js.map +0 -1
  192. package/dist/components/legend/index.cjs +0 -12
  193. package/dist/components/legend/index.cjs.map +0 -1
  194. package/dist/components/legend/index.css +0 -91
  195. package/dist/components/legend/index.css.map +0 -1
  196. package/dist/components/legend/index.d.cts +0 -37
  197. package/dist/components/legend/index.d.ts +0 -37
  198. package/dist/components/legend/index.js +0 -12
  199. package/dist/components/legend/index.js.map +0 -1
  200. package/dist/components/tooltip/index.cjs +0 -12
  201. package/dist/components/tooltip/index.cjs.map +0 -1
  202. package/dist/components/tooltip/index.css +0 -13
  203. package/dist/components/tooltip/index.css.map +0 -1
  204. package/dist/components/tooltip/index.d.cts +0 -71
  205. package/dist/components/tooltip/index.d.ts +0 -71
  206. package/dist/components/tooltip/index.js +0 -12
  207. package/dist/components/tooltip/index.js.map +0 -1
  208. package/dist/components/trend-indicator/index.cjs +0 -8
  209. package/dist/components/trend-indicator/index.cjs.map +0 -1
  210. package/dist/components/trend-indicator/index.css +0 -27
  211. package/dist/components/trend-indicator/index.css.map +0 -1
  212. package/dist/components/trend-indicator/index.d.cts +0 -44
  213. package/dist/components/trend-indicator/index.d.ts +0 -44
  214. package/dist/components/trend-indicator/index.js +0 -8
  215. package/dist/components/trend-indicator/index.js.map +0 -1
  216. package/dist/format-metric-value-MXm5DtQ_.d.cts +0 -24
  217. package/dist/format-metric-value-MXm5DtQ_.d.ts +0 -24
  218. package/dist/hooks/index.cjs +0 -29
  219. package/dist/hooks/index.cjs.map +0 -1
  220. package/dist/hooks/index.css +0 -9
  221. package/dist/hooks/index.css.map +0 -1
  222. package/dist/hooks/index.d.cts +0 -264
  223. package/dist/hooks/index.d.ts +0 -264
  224. package/dist/hooks/index.js +0 -29
  225. package/dist/hooks/index.js.map +0 -1
  226. package/dist/leaderboard-chart-BSbg0ufV.d.cts +0 -79
  227. package/dist/leaderboard-chart-odEYxxEC.d.ts +0 -79
  228. package/dist/legend-DFkosEvC.d.cts +0 -9
  229. package/dist/legend-DLswHhOk.d.ts +0 -9
  230. package/dist/providers/index.cjs +0 -21
  231. package/dist/providers/index.cjs.map +0 -1
  232. package/dist/providers/index.css +0 -9
  233. package/dist/providers/index.css.map +0 -1
  234. package/dist/providers/index.d.cts +0 -28
  235. package/dist/providers/index.d.ts +0 -28
  236. package/dist/providers/index.js +0 -21
  237. package/dist/providers/index.js.map +0 -1
  238. package/dist/themes-D0qc5JaW.d.cts +0 -67
  239. package/dist/themes-itO4Ht5g.d.ts +0 -67
  240. package/dist/types-B5f6XQ7Q.d.cts +0 -19
  241. package/dist/types-BsHooDbM.d.ts +0 -19
  242. package/dist/types-BuSrRM4p.d.ts +0 -49
  243. package/dist/types-ChOUI9-N.d.cts +0 -545
  244. package/dist/types-ChOUI9-N.d.ts +0 -545
  245. package/dist/types-Dfw9VOKI.d.cts +0 -49
  246. package/dist/utils/index.cjs +0 -44
  247. package/dist/utils/index.cjs.map +0 -1
  248. package/dist/utils/index.d.cts +0 -226
  249. package/dist/utils/index.d.ts +0 -226
  250. package/dist/utils/index.js +0 -44
  251. package/dist/utils/index.js.map +0 -1
  252. package/dist/with-responsive-CNfhzAUu.d.cts +0 -18
  253. package/dist/with-responsive-CNfhzAUu.d.ts +0 -18
@@ -1,157 +0,0 @@
1
- /* esbuild-sass-plugin:css-chunk:src/hooks/use-tooltip-portal-relocator.module.scss */
2
- .a8ccharts-jCw5dQ {
3
- position: fixed;
4
- inset: 0;
5
- overflow: visible;
6
- z-index: 1;
7
- pointer-events: none;
8
- }
9
-
10
- /* esbuild-sass-plugin:css-chunk:src/charts/conversion-funnel-chart/conversion-funnel-chart.module.scss */
11
- .a8ccharts-lK-YNK {
12
- font-family: var(--funnel-font-family, "SF Pro Text");
13
- }
14
- .a8ccharts-lK-YNK.a8ccharts-DbHKK5 {
15
- opacity: 0.6;
16
- pointer-events: none;
17
- }
18
- .a8ccharts-61WPYr {
19
- display: flex;
20
- align-items: baseline;
21
- gap: 8px;
22
- margin-bottom: 24px;
23
- height: 20px;
24
- }
25
- .a8ccharts-RRRI6x {
26
- overflow: hidden;
27
- color: #1e1e1e;
28
- text-overflow: ellipsis;
29
- font-family: var(--funnel-font-family, "SF Pro Text");
30
- font-size: 18px;
31
- font-style: normal;
32
- font-weight: 500;
33
- line-height: 20px;
34
- margin: 0;
35
- }
36
- .a8ccharts-661iwx {
37
- overflow: hidden;
38
- text-overflow: ellipsis;
39
- font-family: var(--funnel-font-family, "SF Pro Text");
40
- font-size: 13px;
41
- font-style: normal;
42
- font-weight: 500;
43
- line-height: 20px;
44
- margin: 0;
45
- }
46
- .a8ccharts-Z7EGnW {
47
- display: flex;
48
- gap: 16px;
49
- align-items: flex-end;
50
- flex: 1;
51
- min-height: 200px;
52
- width: 100%;
53
- }
54
- .a8ccharts-VqFY0l {
55
- flex: 1 1 0;
56
- min-width: 0;
57
- display: flex;
58
- flex-direction: column;
59
- height: 100%;
60
- transition: all 0.3s ease;
61
- }
62
- .a8ccharts-VqFY0l.a8ccharts-7dTRBs {
63
- opacity: 0.3;
64
- }
65
- .a8ccharts-2JsQiV {
66
- margin-bottom: 24px;
67
- }
68
- .a8ccharts-6OabC4 {
69
- color: #757575;
70
- font-family: var(--step-font-family, "SF Pro");
71
- font-size: 12px;
72
- font-style: normal;
73
- font-weight: 400;
74
- line-height: 16px;
75
- margin: 0 0 2px 0;
76
- display: block;
77
- overflow: hidden;
78
- text-overflow: ellipsis;
79
- }
80
- .a8ccharts-9wSZ6n {
81
- color: #1e1e1e;
82
- font-family: var(--step-font-family, "SF Pro");
83
- font-size: 13px;
84
- font-style: normal;
85
- font-weight: 500;
86
- line-height: 20px;
87
- margin: 0;
88
- display: block;
89
- }
90
- .a8ccharts-sSmCTi {
91
- flex: 1;
92
- display: flex;
93
- align-items: flex-end;
94
- border-radius: 4px;
95
- position: relative;
96
- cursor: pointer;
97
- transition: all 0.2s ease;
98
- }
99
- .a8ccharts-sSmCTi.a8ccharts-PLWVAW {
100
- cursor: pointer;
101
- }
102
- .a8ccharts-EzczI- {
103
- width: 100%;
104
- min-height: 4px;
105
- border-radius: 4px 4px 0 0;
106
- transition: all 0.3s ease;
107
- }
108
- .a8ccharts-EzczI-.a8ccharts-wNpZEu {
109
- box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
110
- filter: brightness(1.1);
111
- }
112
- .a8ccharts-68HQJl {
113
- transform-origin: bottom;
114
- transform-box: fill-box;
115
- transform: scaleY(0);
116
- animation: a8ccharts-CmtieZ 1s ease-out forwards;
117
- }
118
- @keyframes a8ccharts-CmtieZ {
119
- to {
120
- transform: scaleY(1);
121
- }
122
- }
123
- .a8ccharts-2TeoCn {
124
- display: inline-flex;
125
- flex-direction: column;
126
- justify-content: center;
127
- align-items: flex-start;
128
- gap: 4px;
129
- border-bottom: 1px solid var(--Gray-Gray-5, #dcdcde);
130
- background: var(--black-white-white, #fff);
131
- border-radius: 4px !important;
132
- padding: 12px !important;
133
- box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.15), 0 3px 9px 0 rgba(0, 0, 0, 0.12) !important;
134
- }
135
- .a8ccharts-jkRitH {
136
- color: #1e1e1e;
137
- font-family: "SF Pro", sans-serif;
138
- font-size: 12px;
139
- font-style: normal;
140
- font-weight: 400;
141
- line-height: 16px;
142
- }
143
- .a8ccharts-8jgT-3 {
144
- color: #1e1e1e;
145
- font-family: "SF Pro", sans-serif;
146
- font-size: 13px;
147
- font-style: normal;
148
- font-weight: 500;
149
- line-height: 20px;
150
- }
151
- .a8ccharts-Ml6MMr {
152
- text-align: center;
153
- padding: 48px 24px;
154
- color: #6b7280;
155
- font-size: 16px;
156
- }
157
- /*# sourceMappingURL=index.css.map */
@@ -1 +0,0 @@
1
- {"version":3,"sources":["esbuild-sass-plugin:css-chunk:src/hooks/use-tooltip-portal-relocator.module.scss","esbuild-sass-plugin:css-chunk:src/charts/conversion-funnel-chart/conversion-funnel-chart.module.scss"],"sourcesContent":[".a8ccharts-jCw5dQ {\n position: fixed;\n inset: 0;\n overflow: visible;\n z-index: 1;\n pointer-events: none;\n}",".a8ccharts-lK-YNK {\n font-family: var(--funnel-font-family, \"SF Pro Text\");\n}\n.a8ccharts-lK-YNK.a8ccharts-DbHKK5 {\n opacity: 0.6;\n pointer-events: none;\n}\n\n.a8ccharts-61WPYr {\n display: flex;\n align-items: baseline;\n gap: 8px;\n margin-bottom: 24px;\n height: 20px;\n}\n\n.a8ccharts-RRRI6x {\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-661iwx {\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-Z7EGnW {\n display: flex;\n gap: 16px;\n align-items: flex-end;\n flex: 1;\n min-height: 200px;\n width: 100%;\n}\n\n.a8ccharts-VqFY0l {\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-VqFY0l.a8ccharts-7dTRBs {\n opacity: 0.3;\n}\n\n.a8ccharts-2JsQiV {\n margin-bottom: 24px;\n}\n\n.a8ccharts-6OabC4 {\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-9wSZ6n {\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-sSmCTi {\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-sSmCTi.a8ccharts-PLWVAW {\n cursor: pointer;\n}\n\n.a8ccharts-EzczI- {\n width: 100%;\n min-height: 4px;\n border-radius: 4px 4px 0 0;\n transition: all 0.3s ease;\n}\n.a8ccharts-EzczI-.a8ccharts-wNpZEu {\n box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);\n filter: brightness(1.1);\n}\n.a8ccharts-68HQJl {\n transform-origin: bottom;\n transform-box: fill-box;\n transform: scaleY(0);\n animation: a8ccharts-CmtieZ 1s ease-out forwards;\n}\n@keyframes a8ccharts-CmtieZ {\n to {\n transform: scaleY(1);\n }\n}\n\n.a8ccharts-2TeoCn {\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-jkRitH {\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-8jgT-3 {\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-Ml6MMr {\n text-align: center;\n padding: 48px 24px;\n color: #6b7280;\n font-size: 16px;\n}"],"mappings":";AAAA,CAAC;AACC,YAAU;AACV,SAAO;AACP,YAAU;AACV,WAAS;AACT,kBAAgB;AAClB;;;ACNA,CAAC;AACC,eAAa,IAAI,oBAAoB,EAAE;AACzC;AACA,CAHC,gBAGgB,CAAC;AAChB,WAAS;AACT,kBAAgB;AAClB;AAEA,CAAC;AACC,WAAS;AACT,eAAa;AACb,OAAK;AACL,iBAAe;AACf,UAAQ;AACV;AAEA,CAAC;AACC,YAAU;AACV,SAAO;AACP,iBAAe;AACf,eAAa,IAAI,oBAAoB,EAAE;AACvC,aAAW;AACX,cAAY;AACZ,eAAa;AACb,eAAa;AACb,UAAQ;AACV;AAEA,CAAC;AACC,YAAU;AACV,iBAAe;AACf,eAAa,IAAI,oBAAoB,EAAE;AACvC,aAAW;AACX,cAAY;AACZ,eAAa;AACb,eAAa;AACb,UAAQ;AACV;AAEA,CAAC;AACC,WAAS;AACT,OAAK;AACL,eAAa;AACb,QAAM;AACN,cAAY;AACZ,SAAO;AACT;AAEA,CAAC;AACC,QAAM,EAAE,EAAE;AACV,aAAW;AACX,WAAS;AACT,kBAAgB;AAChB,UAAQ;AACR,cAAY,IAAI,KAAK;AACvB;AACA,CARC,gBAQgB,CAAC;AAChB,WAAS;AACX;AAEA,CAAC;AACC,iBAAe;AACjB;AAEA,CAAC;AACC,SAAO;AACP,eAAa,IAAI,kBAAkB,EAAE;AACrC,aAAW;AACX,cAAY;AACZ,eAAa;AACb,eAAa;AACb,UAAQ,EAAE,EAAE,IAAI;AAChB,WAAS;AACT,YAAU;AACV,iBAAe;AACjB;AAEA,CAAC;AACC,SAAO;AACP,eAAa,IAAI,kBAAkB,EAAE;AACrC,aAAW;AACX,cAAY;AACZ,eAAa;AACb,eAAa;AACb,UAAQ;AACR,WAAS;AACX;AAEA,CAAC;AACC,QAAM;AACN,WAAS;AACT,eAAa;AACb,iBAAe;AACf,YAAU;AACV,UAAQ;AACR,cAAY,IAAI,KAAK;AACvB;AACA,CATC,gBASgB,CAAC;AAChB,UAAQ;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;AACA,CAAC;AACC,oBAAkB;AAClB,iBAAe;AACf,aAAW,OAAO;AAClB,aAAW,iBAAiB,GAAG,SAAS;AAC1C;AACA,WAFa;AAGX;AACE,eAAW,OAAO;AACpB;AACF;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,97 +0,0 @@
1
- import { FC } from 'react';
2
- import { B as BaseChartProps } from '../../types-ChOUI9-N.cjs';
3
- import '@visx/annotation/lib/components/CircleSubject';
4
- import '@visx/annotation/lib/components/Connector';
5
- import '@visx/annotation/lib/components/Label';
6
- import '@visx/annotation/lib/components/LineSubject';
7
- import '@visx/axis';
8
- import '@visx/legend/lib/types';
9
- import '@visx/scale';
10
- import '@visx/text/lib/Text';
11
- import '@visx/xychart';
12
- import '@wordpress/theme';
13
- import 'react-google-charts';
14
-
15
- /**
16
- * Represents a single step in the conversion funnel
17
- */
18
- interface FunnelStep {
19
- /** Step identifier */
20
- id: string;
21
- /** Display label for the step */
22
- label: string;
23
- /** Conversion rate as percentage (0-100) */
24
- rate: number;
25
- /** Absolute count (optional, for tooltip/details) */
26
- count?: number;
27
- }
28
- /**
29
- * Render prop for customizing step labels
30
- */
31
- interface StepLabelRenderProps {
32
- step: FunnelStep;
33
- index: number;
34
- className?: string;
35
- }
36
- /**
37
- * Render prop for customizing step rates
38
- */
39
- interface StepRateRenderProps {
40
- step: FunnelStep;
41
- index: number;
42
- className?: string;
43
- }
44
- /**
45
- * Render prop for customizing the entire main metric section
46
- */
47
- interface MainMetricRenderProps {
48
- mainRate: number;
49
- changeIndicator?: string;
50
- className?: string;
51
- changeColor?: string;
52
- }
53
- /**
54
- * Render prop for customizing tooltip content
55
- */
56
- interface TooltipRenderProps {
57
- step: FunnelStep;
58
- index: number;
59
- top: number;
60
- left: number;
61
- className?: string;
62
- }
63
- /**
64
- * Props for the ConversionFunnelChart component
65
- */
66
- interface ConversionFunnelChartProps extends Pick<BaseChartProps, 'className' | 'chartId' | 'animation'> {
67
- /** Main conversion rate to highlight */
68
- mainRate: number;
69
- /** Change indicator (e.g., +2%, -1.5%) */
70
- changeIndicator?: string;
71
- /** Array of funnel steps */
72
- steps: FunnelStep[];
73
- /** Whether the chart is in loading state */
74
- loading?: boolean;
75
- /** Height of the chart container. Accepts a number (pixels) or CSS string (e.g., "400px", "100%"). Falls back to style.height if set, otherwise defaults to "100%". */
76
- height?: string | number;
77
- /** Custom styling */
78
- style?: React.CSSProperties;
79
- /** Custom render function for step labels */
80
- renderStepLabel?: (props: StepLabelRenderProps) => React.ReactNode;
81
- /** Custom render function for step rates */
82
- renderStepRate?: (props: StepRateRenderProps) => React.ReactNode;
83
- /** Custom render function for the entire main metric section */
84
- renderMainMetric?: (props: MainMetricRenderProps) => React.ReactNode;
85
- /** Custom render function for tooltip content */
86
- renderTooltip?: (props: TooltipRenderProps) => React.ReactNode;
87
- }
88
-
89
- /**
90
- * ConversionFunnelChart component with provider wrapper
91
- *
92
- * @param props - Component props
93
- * @return JSX element representing the conversion funnel chart
94
- */
95
- declare const ConversionFunnelChartWithProvider: FC<ConversionFunnelChartProps>;
96
-
97
- export { ConversionFunnelChartWithProvider as ConversionFunnelChart, type ConversionFunnelChartProps, type FunnelStep, type MainMetricRenderProps, type StepLabelRenderProps, type StepRateRenderProps, type TooltipRenderProps };
@@ -1,97 +0,0 @@
1
- import { FC } from 'react';
2
- import { B as BaseChartProps } from '../../types-ChOUI9-N.js';
3
- import '@visx/annotation/lib/components/CircleSubject';
4
- import '@visx/annotation/lib/components/Connector';
5
- import '@visx/annotation/lib/components/Label';
6
- import '@visx/annotation/lib/components/LineSubject';
7
- import '@visx/axis';
8
- import '@visx/legend/lib/types';
9
- import '@visx/scale';
10
- import '@visx/text/lib/Text';
11
- import '@visx/xychart';
12
- import '@wordpress/theme';
13
- import 'react-google-charts';
14
-
15
- /**
16
- * Represents a single step in the conversion funnel
17
- */
18
- interface FunnelStep {
19
- /** Step identifier */
20
- id: string;
21
- /** Display label for the step */
22
- label: string;
23
- /** Conversion rate as percentage (0-100) */
24
- rate: number;
25
- /** Absolute count (optional, for tooltip/details) */
26
- count?: number;
27
- }
28
- /**
29
- * Render prop for customizing step labels
30
- */
31
- interface StepLabelRenderProps {
32
- step: FunnelStep;
33
- index: number;
34
- className?: string;
35
- }
36
- /**
37
- * Render prop for customizing step rates
38
- */
39
- interface StepRateRenderProps {
40
- step: FunnelStep;
41
- index: number;
42
- className?: string;
43
- }
44
- /**
45
- * Render prop for customizing the entire main metric section
46
- */
47
- interface MainMetricRenderProps {
48
- mainRate: number;
49
- changeIndicator?: string;
50
- className?: string;
51
- changeColor?: string;
52
- }
53
- /**
54
- * Render prop for customizing tooltip content
55
- */
56
- interface TooltipRenderProps {
57
- step: FunnelStep;
58
- index: number;
59
- top: number;
60
- left: number;
61
- className?: string;
62
- }
63
- /**
64
- * Props for the ConversionFunnelChart component
65
- */
66
- interface ConversionFunnelChartProps extends Pick<BaseChartProps, 'className' | 'chartId' | 'animation'> {
67
- /** Main conversion rate to highlight */
68
- mainRate: number;
69
- /** Change indicator (e.g., +2%, -1.5%) */
70
- changeIndicator?: string;
71
- /** Array of funnel steps */
72
- steps: FunnelStep[];
73
- /** Whether the chart is in loading state */
74
- loading?: boolean;
75
- /** Height of the chart container. Accepts a number (pixels) or CSS string (e.g., "400px", "100%"). Falls back to style.height if set, otherwise defaults to "100%". */
76
- height?: string | number;
77
- /** Custom styling */
78
- style?: React.CSSProperties;
79
- /** Custom render function for step labels */
80
- renderStepLabel?: (props: StepLabelRenderProps) => React.ReactNode;
81
- /** Custom render function for step rates */
82
- renderStepRate?: (props: StepRateRenderProps) => React.ReactNode;
83
- /** Custom render function for the entire main metric section */
84
- renderMainMetric?: (props: MainMetricRenderProps) => React.ReactNode;
85
- /** Custom render function for tooltip content */
86
- renderTooltip?: (props: TooltipRenderProps) => React.ReactNode;
87
- }
88
-
89
- /**
90
- * ConversionFunnelChart component with provider wrapper
91
- *
92
- * @param props - Component props
93
- * @return JSX element representing the conversion funnel chart
94
- */
95
- declare const ConversionFunnelChartWithProvider: FC<ConversionFunnelChartProps>;
96
-
97
- export { ConversionFunnelChartWithProvider as ConversionFunnelChart, type ConversionFunnelChartProps, type FunnelStep, type MainMetricRenderProps, type StepLabelRenderProps, type StepRateRenderProps, type TooltipRenderProps };
@@ -1,11 +0,0 @@
1
- import {
2
- ConversionFunnelChartWithProvider
3
- } from "../../chunk-KJHWXOCZ.js";
4
- import "../../chunk-YAFQVVDI.js";
5
- import "../../chunk-2I67QUIV.js";
6
- import "../../chunk-JJIMABHT.js";
7
- import "../../chunk-G3PMV62Z.js";
8
- export {
9
- ConversionFunnelChartWithProvider as ConversionFunnelChart
10
- };
11
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,13 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
- var _chunkBBAUQOW6cjs = require('../../chunk-BBAUQOW6.cjs');
5
- require('../../chunk-ASLARV7L.cjs');
6
- require('../../chunk-WYK7EL5R.cjs');
7
- require('../../chunk-MXGLYWVP.cjs');
8
- require('../../chunk-EMMSS5I5.cjs');
9
-
10
-
11
-
12
- exports.GeoChart = _chunkBBAUQOW6cjs.GeoChartResponsive; exports.GeoChartUnresponsive = _chunkBBAUQOW6cjs.GeoChartWithProvider;
13
- //# sourceMappingURL=index.cjs.map
@@ -1 +0,0 @@
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"}
@@ -1,23 +0,0 @@
1
- /* esbuild-sass-plugin:css-chunk:src/hooks/use-tooltip-portal-relocator.module.scss */
2
- .a8ccharts-jCw5dQ {
3
- position: fixed;
4
- inset: 0;
5
- overflow: visible;
6
- z-index: 1;
7
- pointer-events: none;
8
- }
9
-
10
- /* esbuild-sass-plugin:css-chunk:src/charts/private/with-responsive/with-responsive.module.scss */
11
- .a8ccharts-GSKfBD {
12
- min-width: 0;
13
- min-height: 0;
14
- }
15
-
16
- /* esbuild-sass-plugin:css-chunk:src/charts/geo-chart/geo-chart.module.scss */
17
- .a8ccharts-JvcqOz {
18
- position: relative;
19
- display: flex;
20
- justify-content: center;
21
- align-items: center;
22
- }
23
- /*# sourceMappingURL=index.css.map */
@@ -1 +0,0 @@
1
- {"version":3,"sources":["esbuild-sass-plugin:css-chunk:src/hooks/use-tooltip-portal-relocator.module.scss","esbuild-sass-plugin:css-chunk:src/charts/private/with-responsive/with-responsive.module.scss","esbuild-sass-plugin:css-chunk:src/charts/geo-chart/geo-chart.module.scss"],"sourcesContent":[".a8ccharts-jCw5dQ {\n position: fixed;\n inset: 0;\n overflow: visible;\n z-index: 1;\n pointer-events: none;\n}",".a8ccharts-GSKfBD {\n min-width: 0;\n min-height: 0;\n}",".a8ccharts-JvcqOz {\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n}"],"mappings":";AAAA,CAAC;AACC,YAAU;AACV,SAAO;AACP,YAAU;AACV,WAAS;AACT,kBAAgB;AAClB;;;ACNA,CAAC;AACC,aAAW;AACX,cAAY;AACd;;;ACHA,CAAC;AACC,YAAU;AACV,WAAS;AACT,mBAAiB;AACjB,eAAa;AACf;","names":[]}
@@ -1,67 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { R as ResponsiveConfig } from '../../with-responsive-CNfhzAUu.cjs';
3
- import { FC } from 'react';
4
- import { B as BaseChartProps, G as GeoData } from '../../types-ChOUI9-N.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 '@wordpress/theme';
15
- import 'react-google-charts';
16
-
17
- /**
18
- * Region to display on the map.
19
- * Use 'world' for global view or any ISO 3166-1 alpha-2 country code
20
- * (e.g., 'US' for United States, 'CA' for Canada).
21
- */
22
- type GeoRegion = 'world' | (string & {});
23
- /**
24
- * Resolution level for the map.
25
- * - 'countries': Country-level (default for 'world')
26
- * - 'provinces': State/province level (use with specific region like 'US')
27
- * - 'metros': Metropolitan areas (US only)
28
- */
29
- type GeoResolution = 'countries' | 'provinces' | 'metros';
30
- interface GeoChartProps extends Pick<BaseChartProps, 'className' | 'chartId' | 'width' | 'height'> {
31
- /**
32
- * Data in Google Charts native format for maximum flexibility.
33
- * First row contains column headers, subsequent rows contain data.
34
- *
35
- * Country identifiers can be either full country names or ISO 3166-1 alpha-2 codes
36
- * (e.g., 'United States' or 'US').
37
- */
38
- data: GeoData;
39
- /**
40
- * Region to display. Use 'world' for global view, 'US' for United States,
41
- * or any ISO 3166-1 alpha-2 country code.
42
- * @default 'world'
43
- */
44
- region?: GeoRegion;
45
- /**
46
- * Resolution level for the map.
47
- * - 'countries': Country-level (default for 'world')
48
- * - 'provinces': State/province level (use with specific region like 'US')
49
- * - 'metros': Metropolitan areas (US only)
50
- * @default 'countries'
51
- */
52
- resolution?: GeoResolution;
53
- /**
54
- * Optional render function for the loading placeholder.
55
- * Called while Google Charts is loading.
56
- */
57
- renderPlaceholder?: () => React.ReactNode;
58
- }
59
-
60
- declare const GeoChartWithProvider: FC<GeoChartProps>;
61
- declare const GeoChartResponsive: ({ resizeDebounceTime, maxWidth, aspectRatio, size, width, height, ...chartProps }: Omit<GeoChartProps, "width" | "height" | "size"> & {
62
- width?: number;
63
- height?: number;
64
- size?: number;
65
- } & ResponsiveConfig) => react_jsx_runtime.JSX.Element;
66
-
67
- export { GeoChartResponsive as GeoChart, type GeoChartProps, GeoChartWithProvider as GeoChartUnresponsive, type GeoRegion, type GeoResolution };
@@ -1,67 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { R as ResponsiveConfig } from '../../with-responsive-CNfhzAUu.js';
3
- import { FC } from 'react';
4
- import { B as BaseChartProps, G as GeoData } from '../../types-ChOUI9-N.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 '@wordpress/theme';
15
- import 'react-google-charts';
16
-
17
- /**
18
- * Region to display on the map.
19
- * Use 'world' for global view or any ISO 3166-1 alpha-2 country code
20
- * (e.g., 'US' for United States, 'CA' for Canada).
21
- */
22
- type GeoRegion = 'world' | (string & {});
23
- /**
24
- * Resolution level for the map.
25
- * - 'countries': Country-level (default for 'world')
26
- * - 'provinces': State/province level (use with specific region like 'US')
27
- * - 'metros': Metropolitan areas (US only)
28
- */
29
- type GeoResolution = 'countries' | 'provinces' | 'metros';
30
- interface GeoChartProps extends Pick<BaseChartProps, 'className' | 'chartId' | 'width' | 'height'> {
31
- /**
32
- * Data in Google Charts native format for maximum flexibility.
33
- * First row contains column headers, subsequent rows contain data.
34
- *
35
- * Country identifiers can be either full country names or ISO 3166-1 alpha-2 codes
36
- * (e.g., 'United States' or 'US').
37
- */
38
- data: GeoData;
39
- /**
40
- * Region to display. Use 'world' for global view, 'US' for United States,
41
- * or any ISO 3166-1 alpha-2 country code.
42
- * @default 'world'
43
- */
44
- region?: GeoRegion;
45
- /**
46
- * Resolution level for the map.
47
- * - 'countries': Country-level (default for 'world')
48
- * - 'provinces': State/province level (use with specific region like 'US')
49
- * - 'metros': Metropolitan areas (US only)
50
- * @default 'countries'
51
- */
52
- resolution?: GeoResolution;
53
- /**
54
- * Optional render function for the loading placeholder.
55
- * Called while Google Charts is loading.
56
- */
57
- renderPlaceholder?: () => React.ReactNode;
58
- }
59
-
60
- declare const GeoChartWithProvider: FC<GeoChartProps>;
61
- declare const GeoChartResponsive: ({ resizeDebounceTime, maxWidth, aspectRatio, size, width, height, ...chartProps }: Omit<GeoChartProps, "width" | "height" | "size"> & {
62
- width?: number;
63
- height?: number;
64
- size?: number;
65
- } & ResponsiveConfig) => react_jsx_runtime.JSX.Element;
66
-
67
- export { GeoChartResponsive as GeoChart, type GeoChartProps, GeoChartWithProvider as GeoChartUnresponsive, type GeoRegion, type GeoResolution };
@@ -1,13 +0,0 @@
1
- import {
2
- GeoChartResponsive,
3
- GeoChartWithProvider
4
- } from "../../chunk-4B7BL2DD.js";
5
- import "../../chunk-OP6PHB2U.js";
6
- import "../../chunk-2I67QUIV.js";
7
- import "../../chunk-JJIMABHT.js";
8
- import "../../chunk-G3PMV62Z.js";
9
- export {
10
- GeoChartResponsive as GeoChart,
11
- GeoChartWithProvider as GeoChartUnresponsive
12
- };
13
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,21 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
-
5
- var _chunkOYC34VTOcjs = require('../../chunk-OYC34VTO.cjs');
6
- require('../../chunk-TZRUHQOH.cjs');
7
- require('../../chunk-XVBH5XHE.cjs');
8
- require('../../chunk-REZTQ4PH.cjs');
9
- require('../../chunk-ASLARV7L.cjs');
10
- require('../../chunk-WYK7EL5R.cjs');
11
-
12
-
13
- var _chunkMXGLYWVPcjs = require('../../chunk-MXGLYWVP.cjs');
14
- require('../../chunk-EMMSS5I5.cjs');
15
-
16
-
17
-
18
-
19
-
20
- exports.LeaderboardChart = _chunkOYC34VTOcjs.LeaderboardChartResponsive; exports.LeaderboardChartUnresponsive = _chunkOYC34VTOcjs.LeaderboardChart; exports.formatMetricValue = _chunkMXGLYWVPcjs.formatMetricValue; exports.useLeaderboardLegendItems = _chunkOYC34VTOcjs.useLeaderboardLegendItems;
21
- //# sourceMappingURL=index.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["/home/runner/work/jetpack/jetpack/projects/js-packages/charts/dist/charts/leaderboard-chart/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACF,4DAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC;AACE;AACF,4DAAiC;AACjC,oCAAiC;AACjC;AACE;AACA;AACA;AACA;AACF,qSAAC","file":"/home/runner/work/jetpack/jetpack/projects/js-packages/charts/dist/charts/leaderboard-chart/index.cjs"}