@automattic/charts 0.58.0 → 0.59.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 +20 -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,98 +0,0 @@
1
- import { L as Legend } from '../../legend-DLswHhOk.js';
2
- import { B as BaseChartProps, o as SeriesData, d as DataPointDate, A as AnnotationStyles, O as Optional } from '../../types-ChOUI9-N.js';
3
- import { FC, ReactNode, SVGProps } from 'react';
4
- import { GlyphProps } from '@visx/xychart';
5
- import { RenderTooltipParams } from '@visx/xychart/lib/components/Tooltip';
6
- import { R as ResponsiveConfig } from '../../with-responsive-CNfhzAUu.js';
7
- import '../../types-BuSrRM4p.js';
8
- import '@visx/legend';
9
- import '@visx/annotation/lib/components/CircleSubject';
10
- import '@visx/annotation/lib/components/Connector';
11
- import '@visx/annotation/lib/components/Label';
12
- import '@visx/annotation/lib/components/LineSubject';
13
- import '@visx/axis';
14
- import '@visx/legend/lib/types';
15
- import '@visx/scale';
16
- import '@visx/text/lib/Text';
17
- import '@wordpress/theme';
18
- import 'react-google-charts';
19
-
20
- interface ChartInstanceRef {
21
- getScales: () => {
22
- xScale: unknown;
23
- yScale: unknown;
24
- } | null;
25
- getChartDimensions: () => {
26
- width: number;
27
- height: number;
28
- margin: {
29
- top?: number;
30
- right?: number;
31
- bottom?: number;
32
- left?: number;
33
- };
34
- };
35
- }
36
- type SingleChartRef = ChartInstanceRef;
37
-
38
- interface LineChartAnnotationsProps {
39
- children?: ReactNode;
40
- }
41
- declare const LineChartAnnotationsOverlay: FC<LineChartAnnotationsProps>;
42
-
43
- type LineChartAnnotationProps = {
44
- datum: DataPointDate;
45
- title: string;
46
- subtitle?: string;
47
- subjectType?: 'circle' | 'line-vertical' | 'line-horizontal';
48
- styles?: AnnotationStyles;
49
- testId?: string;
50
- renderLabel?: FC<{
51
- title: string;
52
- subtitle?: string;
53
- }>;
54
- renderLabelPopover?: FC<{
55
- title: string;
56
- subtitle?: string;
57
- }>;
58
- };
59
- type CurveType = 'smooth' | 'linear' | 'monotone';
60
- type RenderLineGlyphProps<Datum extends object> = GlyphProps<Datum> & {
61
- glyphStyle?: SVGProps<SVGCircleElement>;
62
- position?: 'start' | 'end';
63
- };
64
- interface LineChartProps extends BaseChartProps<SeriesData[]> {
65
- withGradientFill: boolean;
66
- smoothing?: boolean;
67
- curveType?: CurveType;
68
- renderTooltip?: (params: RenderTooltipParams<DataPointDate>) => ReactNode;
69
- withStartGlyphs?: boolean;
70
- withEndGlyphs?: boolean;
71
- renderGlyph?: <Datum extends object>(props: GlyphProps<Datum>) => ReactNode;
72
- glyphStyle?: SVGProps<SVGCircleElement>;
73
- withLegendGlyph?: boolean;
74
- withTooltipCrosshairs?: {
75
- showVertical?: boolean;
76
- showHorizontal?: boolean;
77
- };
78
- children?: ReactNode;
79
- }
80
- type TooltipDatum = {
81
- key: string;
82
- value: number;
83
- };
84
-
85
- declare const LineChartAnnotation: FC<LineChartAnnotationProps>;
86
-
87
- type LineChartAnnotationComponents = {
88
- AnnotationsOverlay: typeof LineChartAnnotationsOverlay;
89
- Annotation: typeof LineChartAnnotation;
90
- Legend: typeof Legend;
91
- };
92
- type LineChartBaseProps = Optional<LineChartProps, 'width' | 'height' | 'size'>;
93
- type LineChartComponent = React.ForwardRefExoticComponent<LineChartBaseProps & React.RefAttributes<SingleChartRef>> & LineChartAnnotationComponents;
94
- type LineChartResponsiveComponent = React.ForwardRefExoticComponent<LineChartBaseProps & ResponsiveConfig & React.RefAttributes<SingleChartRef>> & LineChartAnnotationComponents;
95
- declare const LineChart: LineChartComponent;
96
- declare const LineChartResponsive: LineChartResponsiveComponent;
97
-
98
- export { AnnotationStyles, type CurveType, LineChartResponsive as LineChart, type LineChartAnnotationProps, type LineChartProps, LineChart as LineChartUnresponsive, type RenderLineGlyphProps, type TooltipDatum };
@@ -1,17 +0,0 @@
1
- import {
2
- LineChart,
3
- LineChartResponsive
4
- } from "../../chunk-2ICEEQOC.js";
5
- import "../../chunk-KRWGSOJ2.js";
6
- import "../../chunk-WTQYGUNF.js";
7
- import "../../chunk-BPYKWMI7.js";
8
- import "../../chunk-YAFQVVDI.js";
9
- import "../../chunk-OP6PHB2U.js";
10
- import "../../chunk-2I67QUIV.js";
11
- import "../../chunk-JJIMABHT.js";
12
- import "../../chunk-G3PMV62Z.js";
13
- export {
14
- LineChartResponsive as LineChart,
15
- LineChart as LineChartUnresponsive
16
- };
17
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,19 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
- var _chunkGRA7Y2ZGcjs = require('../../chunk-GRA7Y2ZG.cjs');
5
- require('../../chunk-7OZEQ5HE.cjs');
6
- require('../../chunk-2A34OA5O.cjs');
7
- require('../../chunk-TZRUHQOH.cjs');
8
- require('../../chunk-XVBH5XHE.cjs');
9
- require('../../chunk-Y3NNQMAX.cjs');
10
- require('../../chunk-REZTQ4PH.cjs');
11
- require('../../chunk-ASLARV7L.cjs');
12
- require('../../chunk-WYK7EL5R.cjs');
13
- require('../../chunk-MXGLYWVP.cjs');
14
- require('../../chunk-EMMSS5I5.cjs');
15
-
16
-
17
-
18
- exports.PieChart = _chunkGRA7Y2ZGcjs.PieChartResponsive; exports.PieChartUnresponsive = _chunkGRA7Y2ZGcjs.PieChart;
19
- //# sourceMappingURL=index.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["/home/runner/work/jetpack/jetpack/projects/js-packages/charts/dist/charts/pie-chart/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACF,4DAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC;AACE;AACA;AACF,mHAAC","file":"/home/runner/work/jetpack/jetpack/projects/js-packages/charts/dist/charts/pie-chart/index.cjs"}
@@ -1,131 +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/components/legend/private/base-legend.module.scss */
11
- .a8ccharts-89ApsU {
12
- align-self: stretch;
13
- }
14
- .a8ccharts-AELBvX {
15
- display: flex;
16
- flex-direction: row;
17
- flex-wrap: wrap;
18
- gap: 16px;
19
- }
20
- .a8ccharts-fX8uQe {
21
- display: flex;
22
- flex-direction: column;
23
- gap: 8px;
24
- }
25
- .a8ccharts-DEe0wg {
26
- justify-content: flex-start;
27
- }
28
- .a8ccharts-WBKF9I {
29
- justify-content: center;
30
- }
31
- .a8ccharts-JfwMng {
32
- justify-content: flex-end;
33
- }
34
- .a8ccharts-fX8uQe.a8ccharts-DEe0wg {
35
- align-items: flex-start;
36
- }
37
- .a8ccharts-fX8uQe.a8ccharts-WBKF9I {
38
- align-items: center;
39
- }
40
- .a8ccharts-fX8uQe.a8ccharts-JfwMng {
41
- align-items: flex-end;
42
- }
43
- .a8ccharts-Vflwq8 {
44
- display: flex;
45
- align-items: center;
46
- font-size: 0.875rem;
47
- }
48
- .a8ccharts-qGsavM {
49
- cursor: pointer;
50
- user-select: none;
51
- transition: opacity 0.2s ease;
52
- }
53
- .a8ccharts-qGsavM:hover {
54
- opacity: 0.8;
55
- }
56
- .a8ccharts-qGsavM:focus {
57
- outline: 2px solid currentColor;
58
- outline-offset: 2px;
59
- border-radius: 4px;
60
- }
61
- .a8ccharts-qGsavM:focus:not(:focus-visible) {
62
- outline: none;
63
- }
64
- .a8ccharts-ZtDY-Q {
65
- opacity: 0.4;
66
- }
67
- .a8ccharts-ZtDY-Q .a8ccharts-2H65Kr {
68
- text-decoration: line-through;
69
- }
70
- .a8ccharts-2H65Kr {
71
- display: flex;
72
- align-items: center;
73
- gap: 0.5rem;
74
- }
75
- .a8ccharts-faSDBI {
76
- overflow-wrap: break-word;
77
- white-space: normal;
78
- hyphens: auto;
79
- }
80
- .a8ccharts-FISUIO {
81
- white-space: nowrap;
82
- overflow: hidden;
83
- text-overflow: ellipsis;
84
- flex-shrink: 1;
85
- min-width: 0;
86
- }
87
- .a8ccharts-DTZlT- {
88
- font-weight: 500;
89
- flex-shrink: 0;
90
- }
91
-
92
- /* esbuild-sass-plugin:css-chunk:src/components/tooltip/base-tooltip.module.scss */
93
- .a8ccharts-OfX6nd {
94
- padding: 0.5rem;
95
- background-color: rgba(0, 0, 0, 0.85);
96
- color: #fff;
97
- border-radius: 4px;
98
- font-size: 14px;
99
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
100
- position: absolute;
101
- pointer-events: none;
102
- transform: translate(-50%, -100%);
103
- }
104
-
105
- /* esbuild-sass-plugin:css-chunk:src/charts/private/with-responsive/with-responsive.module.scss */
106
- .a8ccharts-GSKfBD {
107
- min-width: 0;
108
- min-height: 0;
109
- }
110
-
111
- /* esbuild-sass-plugin:css-chunk:src/charts/pie-chart/pie-chart.module.scss */
112
- .a8ccharts-C-n-Gu {
113
- display: flex;
114
- flex-direction: column;
115
- overflow: hidden;
116
- align-items: center;
117
- }
118
- .a8ccharts-IQVR6j {
119
- height: 100%;
120
- width: 100%;
121
- }
122
- .a8ccharts-iQ1Rki {
123
- flex: 1;
124
- min-height: 0;
125
- min-width: 0;
126
- width: 100%;
127
- display: flex;
128
- align-items: center;
129
- justify-content: center;
130
- }
131
- /*# 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/components/legend/private/base-legend.module.scss","esbuild-sass-plugin:css-chunk:src/components/tooltip/base-tooltip.module.scss","esbuild-sass-plugin:css-chunk:src/charts/private/with-responsive/with-responsive.module.scss","esbuild-sass-plugin:css-chunk:src/charts/pie-chart/pie-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-89ApsU {\n align-self: stretch;\n}\n.a8ccharts-AELBvX {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n gap: 16px;\n}\n.a8ccharts-fX8uQe {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n.a8ccharts-DEe0wg {\n justify-content: flex-start;\n}\n.a8ccharts-WBKF9I {\n justify-content: center;\n}\n.a8ccharts-JfwMng {\n justify-content: flex-end;\n}\n.a8ccharts-fX8uQe.a8ccharts-DEe0wg {\n align-items: flex-start;\n}\n.a8ccharts-fX8uQe.a8ccharts-WBKF9I {\n align-items: center;\n}\n.a8ccharts-fX8uQe.a8ccharts-JfwMng {\n align-items: flex-end;\n}\n\n.a8ccharts-Vflwq8 {\n display: flex;\n align-items: center;\n font-size: 0.875rem;\n}\n.a8ccharts-qGsavM {\n cursor: pointer;\n user-select: none;\n transition: opacity 0.2s ease;\n}\n.a8ccharts-qGsavM:hover {\n opacity: 0.8;\n}\n.a8ccharts-qGsavM:focus {\n outline: 2px solid currentColor;\n outline-offset: 2px;\n border-radius: 4px;\n}\n.a8ccharts-qGsavM:focus:not(:focus-visible) {\n outline: none;\n}\n.a8ccharts-ZtDY-Q {\n opacity: 0.4;\n}\n.a8ccharts-ZtDY-Q .a8ccharts-2H65Kr {\n text-decoration: line-through;\n}\n\n.a8ccharts-2H65Kr {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n /* Text wrapping is handled at the text level, not the label container */\n}\n\n.a8ccharts-faSDBI {\n overflow-wrap: break-word;\n white-space: normal;\n hyphens: auto;\n}\n.a8ccharts-FISUIO {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n flex-shrink: 1;\n min-width: 0;\n}\n\n.a8ccharts-DTZlT- {\n font-weight: 500;\n flex-shrink: 0;\n}",".a8ccharts-OfX6nd {\n padding: 0.5rem;\n background-color: rgba(0, 0, 0, 0.85);\n color: #fff;\n border-radius: 4px;\n font-size: 14px;\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);\n position: absolute;\n pointer-events: none;\n transform: translate(-50%, -100%);\n}",".a8ccharts-GSKfBD {\n min-width: 0;\n min-height: 0;\n}",".a8ccharts-C-n-Gu {\n display: flex;\n flex-direction: column;\n overflow: hidden;\n align-items: center;\n}\n.a8ccharts-IQVR6j {\n height: 100%;\n width: 100%;\n}\n.a8ccharts-iQ1Rki {\n flex: 1;\n min-height: 0;\n min-width: 0;\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n}"],"mappings":";AAAA,CAAC;AACC,YAAU;AACV,SAAO;AACP,YAAU;AACV,WAAS;AACT,kBAAgB;AAClB;;;ACNA,CAAC;AACC,cAAY;AACd;AACA,CAAC;AACC,WAAS;AACT,kBAAgB;AAChB,aAAW;AACX,OAAK;AACP;AACA,CAAC;AACC,WAAS;AACT,kBAAgB;AAChB,OAAK;AACP;AACA,CAAC;AACC,mBAAiB;AACnB;AACA,CAAC;AACC,mBAAiB;AACnB;AACA,CAAC;AACC,mBAAiB;AACnB;AACA,CAdC,gBAcgB,CAThB;AAUC,eAAa;AACf;AACA,CAjBC,gBAiBgB,CAThB;AAUC,eAAa;AACf;AACA,CApBC,gBAoBgB,CAThB;AAUC,eAAa;AACf;AAEA,CAAC;AACC,WAAS;AACT,eAAa;AACb,aAAW;AACb;AACA,CAAC;AACC,UAAQ;AACR,eAAa;AACb,cAAY,QAAQ,KAAK;AAC3B;AACA,CALC,gBAKgB;AACf,WAAS;AACX;AACA,CARC,gBAQgB;AACf,WAAS,IAAI,MAAM;AACnB,kBAAgB;AAChB,iBAAe;AACjB;AACA,CAbC,gBAagB,MAAM,KAAK;AAC1B,WAAS;AACX;AACA,CAAC;AACC,WAAS;AACX;AACA,CAHC,iBAGiB,CAAC;AACjB,mBAAiB;AACnB;AAEA,CAJmB;AAKjB,WAAS;AACT,eAAa;AACb,OAAK;AAEP;AAEA,CAAC;AACC,iBAAe;AACf,eAAa;AACb,WAAS;AACX;AACA,CAAC;AACC,eAAa;AACb,YAAU;AACV,iBAAe;AACf,eAAa;AACb,aAAW;AACb;AAEA,CAAC;AACC,eAAa;AACb,eAAa;AACf;;;ACpFA,CAAC;AACC,WAAS;AACT,oBAAkB,KAAK,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE;AAChC,SAAO;AACP,iBAAe;AACf,aAAW;AACX,cAAY,EAAE,IAAI,IAAI,KAAK,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE;AACpC,YAAU;AACV,kBAAgB;AAChB,aAAW,UAAU,IAAI,EAAE;AAC7B;;;ACVA,CAAC;AACC,aAAW;AACX,cAAY;AACd;;;ACHA,CAAC;AACC,WAAS;AACT,kBAAgB;AAChB,YAAU;AACV,eAAa;AACf;AACA,CAAC;AACC,UAAQ;AACR,SAAO;AACT;AACA,CAAC;AACC,QAAM;AACN,cAAY;AACZ,aAAW;AACX,SAAO;AACP,WAAS;AACT,eAAa;AACb,mBAAiB;AACnB;","names":[]}
@@ -1,91 +0,0 @@
1
- import { R as ResponsiveConfig } from '../../with-responsive-CNfhzAUu.cjs';
2
- import { ReactNode } from 'react';
3
- import { O as Optional, B as BaseChartProps, e as DataPointPercentage } from '../../types-ChOUI9-N.cjs';
4
- import { LegendValueDisplay } from '../../components/legend/index.cjs';
5
- import { C as ChartComponentWithComposition } from '../../types-B5f6XQ7Q.cjs';
6
- import '@visx/annotation/lib/components/CircleSubject';
7
- import '@visx/annotation/lib/components/Connector';
8
- import '@visx/annotation/lib/components/Label';
9
- import '@visx/annotation/lib/components/LineSubject';
10
- import '@visx/axis';
11
- import '@visx/legend/lib/types';
12
- import '@visx/scale';
13
- import '@visx/text/lib/Text';
14
- import '@visx/xychart';
15
- import '@wordpress/theme';
16
- import 'react-google-charts';
17
- import '../../legend-DFkosEvC.cjs';
18
- import '../../types-Dfw9VOKI.cjs';
19
- import '@visx/legend';
20
-
21
- /**
22
- * Parameters passed to the renderTooltip function for pie charts.
23
- */
24
- type PieChartRenderTooltipParams = {
25
- /**
26
- * The data point being hovered, including label, value, and percentage.
27
- */
28
- tooltipData: DataPointPercentage;
29
- };
30
- interface PieChartProps extends BaseChartProps<DataPointPercentage[]> {
31
- /**
32
- * Inner radius in pixels. If > 0, creates a donut chart. Defaults to 0.
33
- */
34
- innerRadius?: number;
35
- /**
36
- * Add padding to the chart
37
- */
38
- padding?: number;
39
- /**
40
- * Thickness of the pie chart.
41
- * A value between 0 and 1, where 0 means no thickness
42
- * and 1 means the maximum thickness.
43
- */
44
- thickness?: number;
45
- /**
46
- * Scale of the gap between groups in the pie chart
47
- * A value between 0 and 1, where 0 means no gap.
48
- */
49
- gapScale?: number;
50
- /**
51
- * Scale of the corner radius for the pie chart segments.
52
- * A value between 0 and 1, where 0 means no corner radius.
53
- */
54
- cornerScale?: number;
55
- /**
56
- * Whether to show labels on pie segments. Defaults to true.
57
- */
58
- showLabels?: boolean;
59
- /**
60
- * What type of value to display in the legend when showValues is true.
61
- * - 'percentage': Shows percentage values (e.g., "23%") [default]
62
- * - 'value': Shows raw numeric values (e.g., "30000")
63
- * - 'valueDisplay': Shows formatted values (e.g., "30K")
64
- * - 'none': Shows no values, only labels
65
- */
66
- legendValueDisplay?: LegendValueDisplay;
67
- /**
68
- * Use the children prop to render additional elements on the chart.
69
- */
70
- children?: ReactNode;
71
- /**
72
- * Horizontal offset for tooltip positioning in pixels (default: 0)
73
- */
74
- tooltipOffsetX?: number;
75
- /**
76
- * Vertical offset for tooltip positioning in pixels (default: -15)
77
- */
78
- tooltipOffsetY?: number;
79
- /**
80
- * Custom render function for tooltip content.
81
- * When provided, replaces the default BaseTooltip with custom content.
82
- */
83
- renderTooltip?: (params: PieChartRenderTooltipParams) => ReactNode;
84
- }
85
- type PieChartBaseProps = Optional<PieChartProps, 'size'>;
86
- type PieChartComponent = ChartComponentWithComposition<PieChartBaseProps>;
87
- type PieChartResponsiveComponent = ChartComponentWithComposition<PieChartBaseProps & ResponsiveConfig>;
88
- declare const PieChart: PieChartComponent;
89
- declare const PieChartResponsive: PieChartResponsiveComponent;
90
-
91
- export { PieChartResponsive as PieChart, type PieChartProps, type PieChartRenderTooltipParams, PieChart as PieChartUnresponsive };
@@ -1,91 +0,0 @@
1
- import { R as ResponsiveConfig } from '../../with-responsive-CNfhzAUu.js';
2
- import { ReactNode } from 'react';
3
- import { O as Optional, B as BaseChartProps, e as DataPointPercentage } from '../../types-ChOUI9-N.js';
4
- import { LegendValueDisplay } from '../../components/legend/index.js';
5
- import { C as ChartComponentWithComposition } from '../../types-BsHooDbM.js';
6
- import '@visx/annotation/lib/components/CircleSubject';
7
- import '@visx/annotation/lib/components/Connector';
8
- import '@visx/annotation/lib/components/Label';
9
- import '@visx/annotation/lib/components/LineSubject';
10
- import '@visx/axis';
11
- import '@visx/legend/lib/types';
12
- import '@visx/scale';
13
- import '@visx/text/lib/Text';
14
- import '@visx/xychart';
15
- import '@wordpress/theme';
16
- import 'react-google-charts';
17
- import '../../legend-DLswHhOk.js';
18
- import '../../types-BuSrRM4p.js';
19
- import '@visx/legend';
20
-
21
- /**
22
- * Parameters passed to the renderTooltip function for pie charts.
23
- */
24
- type PieChartRenderTooltipParams = {
25
- /**
26
- * The data point being hovered, including label, value, and percentage.
27
- */
28
- tooltipData: DataPointPercentage;
29
- };
30
- interface PieChartProps extends BaseChartProps<DataPointPercentage[]> {
31
- /**
32
- * Inner radius in pixels. If > 0, creates a donut chart. Defaults to 0.
33
- */
34
- innerRadius?: number;
35
- /**
36
- * Add padding to the chart
37
- */
38
- padding?: number;
39
- /**
40
- * Thickness of the pie chart.
41
- * A value between 0 and 1, where 0 means no thickness
42
- * and 1 means the maximum thickness.
43
- */
44
- thickness?: number;
45
- /**
46
- * Scale of the gap between groups in the pie chart
47
- * A value between 0 and 1, where 0 means no gap.
48
- */
49
- gapScale?: number;
50
- /**
51
- * Scale of the corner radius for the pie chart segments.
52
- * A value between 0 and 1, where 0 means no corner radius.
53
- */
54
- cornerScale?: number;
55
- /**
56
- * Whether to show labels on pie segments. Defaults to true.
57
- */
58
- showLabels?: boolean;
59
- /**
60
- * What type of value to display in the legend when showValues is true.
61
- * - 'percentage': Shows percentage values (e.g., "23%") [default]
62
- * - 'value': Shows raw numeric values (e.g., "30000")
63
- * - 'valueDisplay': Shows formatted values (e.g., "30K")
64
- * - 'none': Shows no values, only labels
65
- */
66
- legendValueDisplay?: LegendValueDisplay;
67
- /**
68
- * Use the children prop to render additional elements on the chart.
69
- */
70
- children?: ReactNode;
71
- /**
72
- * Horizontal offset for tooltip positioning in pixels (default: 0)
73
- */
74
- tooltipOffsetX?: number;
75
- /**
76
- * Vertical offset for tooltip positioning in pixels (default: -15)
77
- */
78
- tooltipOffsetY?: number;
79
- /**
80
- * Custom render function for tooltip content.
81
- * When provided, replaces the default BaseTooltip with custom content.
82
- */
83
- renderTooltip?: (params: PieChartRenderTooltipParams) => ReactNode;
84
- }
85
- type PieChartBaseProps = Optional<PieChartProps, 'size'>;
86
- type PieChartComponent = ChartComponentWithComposition<PieChartBaseProps>;
87
- type PieChartResponsiveComponent = ChartComponentWithComposition<PieChartBaseProps & ResponsiveConfig>;
88
- declare const PieChart: PieChartComponent;
89
- declare const PieChartResponsive: PieChartResponsiveComponent;
90
-
91
- export { PieChartResponsive as PieChart, type PieChartProps, type PieChartRenderTooltipParams, PieChart as PieChartUnresponsive };
@@ -1,19 +0,0 @@
1
- import {
2
- PieChart,
3
- PieChartResponsive
4
- } from "../../chunk-4OXMTKAL.js";
5
- import "../../chunk-NFRB2POF.js";
6
- import "../../chunk-KXRWNFQJ.js";
7
- import "../../chunk-KRWGSOJ2.js";
8
- import "../../chunk-WTQYGUNF.js";
9
- import "../../chunk-BPYKWMI7.js";
10
- import "../../chunk-YAFQVVDI.js";
11
- import "../../chunk-OP6PHB2U.js";
12
- import "../../chunk-2I67QUIV.js";
13
- import "../../chunk-JJIMABHT.js";
14
- import "../../chunk-G3PMV62Z.js";
15
- export {
16
- PieChartResponsive as PieChart,
17
- PieChart as PieChartUnresponsive
18
- };
19
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,18 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
- var _chunkCMMHCTBXcjs = require('../../chunk-CMMHCTBX.cjs');
5
- require('../../chunk-2A34OA5O.cjs');
6
- require('../../chunk-TZRUHQOH.cjs');
7
- require('../../chunk-XVBH5XHE.cjs');
8
- require('../../chunk-Y3NNQMAX.cjs');
9
- require('../../chunk-REZTQ4PH.cjs');
10
- require('../../chunk-ASLARV7L.cjs');
11
- require('../../chunk-WYK7EL5R.cjs');
12
- require('../../chunk-MXGLYWVP.cjs');
13
- require('../../chunk-EMMSS5I5.cjs');
14
-
15
-
16
-
17
- exports.PieSemiCircleChart = _chunkCMMHCTBXcjs.PieSemiCircleChartResponsive; exports.PieSemiCircleChartUnresponsive = _chunkCMMHCTBXcjs.PieSemiCircleChart;
18
- //# sourceMappingURL=index.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["/home/runner/work/jetpack/jetpack/projects/js-packages/charts/dist/charts/pie-semi-circle-chart/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACF,4DAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC;AACE;AACA;AACF,2JAAC","file":"/home/runner/work/jetpack/jetpack/projects/js-packages/charts/dist/charts/pie-semi-circle-chart/index.cjs"}
@@ -1,132 +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/components/legend/private/base-legend.module.scss */
11
- .a8ccharts-89ApsU {
12
- align-self: stretch;
13
- }
14
- .a8ccharts-AELBvX {
15
- display: flex;
16
- flex-direction: row;
17
- flex-wrap: wrap;
18
- gap: 16px;
19
- }
20
- .a8ccharts-fX8uQe {
21
- display: flex;
22
- flex-direction: column;
23
- gap: 8px;
24
- }
25
- .a8ccharts-DEe0wg {
26
- justify-content: flex-start;
27
- }
28
- .a8ccharts-WBKF9I {
29
- justify-content: center;
30
- }
31
- .a8ccharts-JfwMng {
32
- justify-content: flex-end;
33
- }
34
- .a8ccharts-fX8uQe.a8ccharts-DEe0wg {
35
- align-items: flex-start;
36
- }
37
- .a8ccharts-fX8uQe.a8ccharts-WBKF9I {
38
- align-items: center;
39
- }
40
- .a8ccharts-fX8uQe.a8ccharts-JfwMng {
41
- align-items: flex-end;
42
- }
43
- .a8ccharts-Vflwq8 {
44
- display: flex;
45
- align-items: center;
46
- font-size: 0.875rem;
47
- }
48
- .a8ccharts-qGsavM {
49
- cursor: pointer;
50
- user-select: none;
51
- transition: opacity 0.2s ease;
52
- }
53
- .a8ccharts-qGsavM:hover {
54
- opacity: 0.8;
55
- }
56
- .a8ccharts-qGsavM:focus {
57
- outline: 2px solid currentColor;
58
- outline-offset: 2px;
59
- border-radius: 4px;
60
- }
61
- .a8ccharts-qGsavM:focus:not(:focus-visible) {
62
- outline: none;
63
- }
64
- .a8ccharts-ZtDY-Q {
65
- opacity: 0.4;
66
- }
67
- .a8ccharts-ZtDY-Q .a8ccharts-2H65Kr {
68
- text-decoration: line-through;
69
- }
70
- .a8ccharts-2H65Kr {
71
- display: flex;
72
- align-items: center;
73
- gap: 0.5rem;
74
- }
75
- .a8ccharts-faSDBI {
76
- overflow-wrap: break-word;
77
- white-space: normal;
78
- hyphens: auto;
79
- }
80
- .a8ccharts-FISUIO {
81
- white-space: nowrap;
82
- overflow: hidden;
83
- text-overflow: ellipsis;
84
- flex-shrink: 1;
85
- min-width: 0;
86
- }
87
- .a8ccharts-DTZlT- {
88
- font-weight: 500;
89
- flex-shrink: 0;
90
- }
91
-
92
- /* esbuild-sass-plugin:css-chunk:src/components/tooltip/base-tooltip.module.scss */
93
- .a8ccharts-OfX6nd {
94
- padding: 0.5rem;
95
- background-color: rgba(0, 0, 0, 0.85);
96
- color: #fff;
97
- border-radius: 4px;
98
- font-size: 14px;
99
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
100
- position: absolute;
101
- pointer-events: none;
102
- transform: translate(-50%, -100%);
103
- }
104
-
105
- /* esbuild-sass-plugin:css-chunk:src/charts/private/with-responsive/with-responsive.module.scss */
106
- .a8ccharts-GSKfBD {
107
- min-width: 0;
108
- min-height: 0;
109
- }
110
-
111
- /* esbuild-sass-plugin:css-chunk:src/charts/pie-semi-circle-chart/pie-semi-circle-chart.module.scss */
112
- .a8ccharts-V0wiEb {
113
- height: 100%;
114
- width: 100%;
115
- }
116
- .a8ccharts-hGowej {
117
- flex: 1;
118
- min-height: 0;
119
- min-width: 0;
120
- width: 100%;
121
- display: flex;
122
- align-items: center;
123
- justify-content: center;
124
- }
125
- .a8ccharts-8tyaQj .a8ccharts-EKZS3j {
126
- font-weight: 600;
127
- font-size: 16px;
128
- }
129
- .a8ccharts-8tyaQj .a8ccharts-v85A8- {
130
- font-size: 14px;
131
- }
132
- /*# 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/components/legend/private/base-legend.module.scss","esbuild-sass-plugin:css-chunk:src/components/tooltip/base-tooltip.module.scss","esbuild-sass-plugin:css-chunk:src/charts/private/with-responsive/with-responsive.module.scss","esbuild-sass-plugin:css-chunk:src/charts/pie-semi-circle-chart/pie-semi-circle-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-89ApsU {\n align-self: stretch;\n}\n.a8ccharts-AELBvX {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n gap: 16px;\n}\n.a8ccharts-fX8uQe {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n.a8ccharts-DEe0wg {\n justify-content: flex-start;\n}\n.a8ccharts-WBKF9I {\n justify-content: center;\n}\n.a8ccharts-JfwMng {\n justify-content: flex-end;\n}\n.a8ccharts-fX8uQe.a8ccharts-DEe0wg {\n align-items: flex-start;\n}\n.a8ccharts-fX8uQe.a8ccharts-WBKF9I {\n align-items: center;\n}\n.a8ccharts-fX8uQe.a8ccharts-JfwMng {\n align-items: flex-end;\n}\n\n.a8ccharts-Vflwq8 {\n display: flex;\n align-items: center;\n font-size: 0.875rem;\n}\n.a8ccharts-qGsavM {\n cursor: pointer;\n user-select: none;\n transition: opacity 0.2s ease;\n}\n.a8ccharts-qGsavM:hover {\n opacity: 0.8;\n}\n.a8ccharts-qGsavM:focus {\n outline: 2px solid currentColor;\n outline-offset: 2px;\n border-radius: 4px;\n}\n.a8ccharts-qGsavM:focus:not(:focus-visible) {\n outline: none;\n}\n.a8ccharts-ZtDY-Q {\n opacity: 0.4;\n}\n.a8ccharts-ZtDY-Q .a8ccharts-2H65Kr {\n text-decoration: line-through;\n}\n\n.a8ccharts-2H65Kr {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n /* Text wrapping is handled at the text level, not the label container */\n}\n\n.a8ccharts-faSDBI {\n overflow-wrap: break-word;\n white-space: normal;\n hyphens: auto;\n}\n.a8ccharts-FISUIO {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n flex-shrink: 1;\n min-width: 0;\n}\n\n.a8ccharts-DTZlT- {\n font-weight: 500;\n flex-shrink: 0;\n}",".a8ccharts-OfX6nd {\n padding: 0.5rem;\n background-color: rgba(0, 0, 0, 0.85);\n color: #fff;\n border-radius: 4px;\n font-size: 14px;\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);\n position: absolute;\n pointer-events: none;\n transform: translate(-50%, -100%);\n}",".a8ccharts-GSKfBD {\n min-width: 0;\n min-height: 0;\n}",".a8ccharts-V0wiEb {\n height: 100%;\n width: 100%;\n}\n.a8ccharts-hGowej {\n flex: 1;\n min-height: 0;\n min-width: 0;\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.a8ccharts-8tyaQj .a8ccharts-EKZS3j {\n font-weight: 600;\n font-size: 16px;\n}\n.a8ccharts-8tyaQj .a8ccharts-v85A8- {\n font-size: 14px;\n}"],"mappings":";AAAA,CAAC;AACC,YAAU;AACV,SAAO;AACP,YAAU;AACV,WAAS;AACT,kBAAgB;AAClB;;;ACNA,CAAC;AACC,cAAY;AACd;AACA,CAAC;AACC,WAAS;AACT,kBAAgB;AAChB,aAAW;AACX,OAAK;AACP;AACA,CAAC;AACC,WAAS;AACT,kBAAgB;AAChB,OAAK;AACP;AACA,CAAC;AACC,mBAAiB;AACnB;AACA,CAAC;AACC,mBAAiB;AACnB;AACA,CAAC;AACC,mBAAiB;AACnB;AACA,CAdC,gBAcgB,CAThB;AAUC,eAAa;AACf;AACA,CAjBC,gBAiBgB,CAThB;AAUC,eAAa;AACf;AACA,CApBC,gBAoBgB,CAThB;AAUC,eAAa;AACf;AAEA,CAAC;AACC,WAAS;AACT,eAAa;AACb,aAAW;AACb;AACA,CAAC;AACC,UAAQ;AACR,eAAa;AACb,cAAY,QAAQ,KAAK;AAC3B;AACA,CALC,gBAKgB;AACf,WAAS;AACX;AACA,CARC,gBAQgB;AACf,WAAS,IAAI,MAAM;AACnB,kBAAgB;AAChB,iBAAe;AACjB;AACA,CAbC,gBAagB,MAAM,KAAK;AAC1B,WAAS;AACX;AACA,CAAC;AACC,WAAS;AACX;AACA,CAHC,iBAGiB,CAAC;AACjB,mBAAiB;AACnB;AAEA,CAJmB;AAKjB,WAAS;AACT,eAAa;AACb,OAAK;AAEP;AAEA,CAAC;AACC,iBAAe;AACf,eAAa;AACb,WAAS;AACX;AACA,CAAC;AACC,eAAa;AACb,YAAU;AACV,iBAAe;AACf,eAAa;AACb,aAAW;AACb;AAEA,CAAC;AACC,eAAa;AACb,eAAa;AACf;;;ACpFA,CAAC;AACC,WAAS;AACT,oBAAkB,KAAK,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE;AAChC,SAAO;AACP,iBAAe;AACf,aAAW;AACX,cAAY,EAAE,IAAI,IAAI,KAAK,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE;AACpC,YAAU;AACV,kBAAgB;AAChB,aAAW,UAAU,IAAI,EAAE;AAC7B;;;ACVA,CAAC;AACC,aAAW;AACX,cAAY;AACd;;;ACHA,CAAC;AACC,UAAQ;AACR,SAAO;AACT;AACA,CAAC;AACC,QAAM;AACN,cAAY;AACZ,aAAW;AACX,SAAO;AACP,WAAS;AACT,eAAa;AACb,mBAAiB;AACnB;AACA,CAAC,iBAAiB,CAAC;AACjB,eAAa;AACb,aAAW;AACb;AACA,CAJC,iBAIiB,CAAC;AACjB,aAAW;AACb;","names":[]}