@automattic/charts 0.56.7 → 0.58.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 (223) hide show
  1. package/AGENTS.md +28 -98
  2. package/CHANGELOG.md +30 -0
  3. package/dist/charts/bar-chart/index.cjs +7 -6
  4. package/dist/charts/bar-chart/index.cjs.map +1 -1
  5. package/dist/charts/bar-chart/index.css +12 -24
  6. package/dist/charts/bar-chart/index.css.map +1 -1
  7. package/dist/charts/bar-chart/index.d.cts +3 -4
  8. package/dist/charts/bar-chart/index.d.ts +3 -4
  9. package/dist/charts/bar-chart/index.js +6 -5
  10. package/dist/charts/bar-list-chart/index.cjs +8 -7
  11. package/dist/charts/bar-list-chart/index.cjs.map +1 -1
  12. package/dist/charts/bar-list-chart/index.css +12 -24
  13. package/dist/charts/bar-list-chart/index.css.map +1 -1
  14. package/dist/charts/bar-list-chart/index.d.cts +3 -3
  15. package/dist/charts/bar-list-chart/index.d.ts +3 -3
  16. package/dist/charts/bar-list-chart/index.js +7 -6
  17. package/dist/charts/conversion-funnel-chart/index.cjs +5 -6
  18. package/dist/charts/conversion-funnel-chart/index.cjs.map +1 -1
  19. package/dist/charts/conversion-funnel-chart/index.css +0 -94
  20. package/dist/charts/conversion-funnel-chart/index.css.map +1 -1
  21. package/dist/charts/conversion-funnel-chart/index.d.cts +1 -1
  22. package/dist/charts/conversion-funnel-chart/index.d.ts +1 -1
  23. package/dist/charts/conversion-funnel-chart/index.js +4 -5
  24. package/dist/charts/geo-chart/index.cjs +4 -4
  25. package/dist/charts/geo-chart/index.css +0 -94
  26. package/dist/charts/geo-chart/index.css.map +1 -1
  27. package/dist/charts/geo-chart/index.d.cts +1 -1
  28. package/dist/charts/geo-chart/index.d.ts +1 -1
  29. package/dist/charts/geo-chart/index.js +3 -3
  30. package/dist/charts/leaderboard-chart/index.cjs +7 -6
  31. package/dist/charts/leaderboard-chart/index.cjs.map +1 -1
  32. package/dist/charts/leaderboard-chart/index.css +20 -33
  33. package/dist/charts/leaderboard-chart/index.css.map +1 -1
  34. package/dist/charts/leaderboard-chart/index.d.cts +3 -3
  35. package/dist/charts/leaderboard-chart/index.d.ts +3 -3
  36. package/dist/charts/leaderboard-chart/index.js +6 -5
  37. package/dist/charts/line-chart/index.cjs +7 -6
  38. package/dist/charts/line-chart/index.cjs.map +1 -1
  39. package/dist/charts/line-chart/index.css +12 -24
  40. package/dist/charts/line-chart/index.css.map +1 -1
  41. package/dist/charts/line-chart/index.d.cts +3 -4
  42. package/dist/charts/line-chart/index.d.ts +3 -4
  43. package/dist/charts/line-chart/index.js +6 -5
  44. package/dist/charts/pie-chart/index.cjs +7 -7
  45. package/dist/charts/pie-chart/index.css +12 -24
  46. package/dist/charts/pie-chart/index.css.map +1 -1
  47. package/dist/charts/pie-chart/index.d.cts +7 -13
  48. package/dist/charts/pie-chart/index.d.ts +7 -13
  49. package/dist/charts/pie-chart/index.js +6 -6
  50. package/dist/charts/pie-semi-circle-chart/index.cjs +7 -7
  51. package/dist/charts/pie-semi-circle-chart/index.css +12 -24
  52. package/dist/charts/pie-semi-circle-chart/index.css.map +1 -1
  53. package/dist/charts/pie-semi-circle-chart/index.d.cts +7 -13
  54. package/dist/charts/pie-semi-circle-chart/index.d.ts +7 -13
  55. package/dist/charts/pie-semi-circle-chart/index.js +6 -6
  56. package/dist/charts/sparkline/index.cjs +8 -7
  57. package/dist/charts/sparkline/index.cjs.map +1 -1
  58. package/dist/charts/sparkline/index.css +12 -24
  59. package/dist/charts/sparkline/index.css.map +1 -1
  60. package/dist/charts/sparkline/index.js +7 -6
  61. package/dist/{chunk-RFSHE3HL.js → chunk-2I67QUIV.js} +84 -431
  62. package/dist/chunk-2I67QUIV.js.map +1 -0
  63. package/dist/{chunk-OMS5QIJN.js → chunk-2ICEEQOC.js} +31 -25
  64. package/dist/chunk-2ICEEQOC.js.map +1 -0
  65. package/dist/{chunk-GWBS65VC.js → chunk-4B7BL2DD.js} +3 -3
  66. package/dist/{chunk-7FDQGBY7.js → chunk-4OXMTKAL.js} +24 -24
  67. package/dist/chunk-4OXMTKAL.js.map +1 -0
  68. package/dist/{chunk-SSFFCBCF.js → chunk-B6NLZFRW.js} +32 -26
  69. package/dist/chunk-B6NLZFRW.js.map +1 -0
  70. package/dist/{chunk-3EXJP67N.cjs → chunk-BBAUQOW6.cjs} +9 -9
  71. package/dist/{chunk-3EXJP67N.cjs.map → chunk-BBAUQOW6.cjs.map} +1 -1
  72. package/dist/{chunk-NQJE2CC7.cjs → chunk-CMMHCTBX.cjs} +45 -45
  73. package/dist/chunk-CMMHCTBX.cjs.map +1 -0
  74. package/dist/{chunk-O2JIANHK.cjs → chunk-CPPXJATQ.cjs} +51 -45
  75. package/dist/chunk-CPPXJATQ.cjs.map +1 -0
  76. package/dist/{chunk-MDRCAGKZ.js → chunk-DKU775VC.js} +3 -3
  77. package/dist/{chunk-BXFD7JIG.cjs → chunk-GRA7Y2ZG.cjs} +46 -46
  78. package/dist/chunk-GRA7Y2ZG.cjs.map +1 -0
  79. package/dist/{chunk-TE63Y5PX.js → chunk-JJIMABHT.js} +10 -3
  80. package/dist/chunk-JJIMABHT.js.map +1 -0
  81. package/dist/{chunk-KHQPN77E.js → chunk-KJHWXOCZ.js} +4 -4
  82. package/dist/{chunk-6CCZL2JJ.js → chunk-KRWGSOJ2.js} +30 -2
  83. package/dist/chunk-KRWGSOJ2.js.map +1 -0
  84. package/dist/{chunk-VPAEBI2F.js → chunk-LTFH7SEG.js} +24 -24
  85. package/dist/chunk-LTFH7SEG.js.map +1 -0
  86. package/dist/{chunk-E62LCBGD.js → chunk-MUNOKLLE.js} +3 -3
  87. package/dist/{chunk-ZVGEDXDP.cjs → chunk-MXGLYWVP.cjs} +10 -3
  88. package/dist/chunk-MXGLYWVP.cjs.map +1 -0
  89. package/dist/{chunk-55ZCOYDF.cjs → chunk-OYC34VTO.cjs} +252 -827
  90. package/dist/chunk-OYC34VTO.cjs.map +1 -0
  91. package/dist/{chunk-CAFJRZPZ.cjs → chunk-PQL5I3F6.cjs} +17 -17
  92. package/dist/{chunk-CAFJRZPZ.cjs.map → chunk-PQL5I3F6.cjs.map} +1 -1
  93. package/dist/{chunk-UFRBUT2D.cjs → chunk-REZTQ4PH.cjs} +87 -24
  94. package/dist/chunk-REZTQ4PH.cjs.map +1 -0
  95. package/dist/{chunk-RCY6XLGU.cjs → chunk-TZRUHQOH.cjs} +36 -8
  96. package/dist/chunk-TZRUHQOH.cjs.map +1 -0
  97. package/dist/{chunk-XD2HV7M5.js → chunk-UTYVIOWZ.js} +226 -801
  98. package/dist/chunk-UTYVIOWZ.js.map +1 -0
  99. package/dist/{chunk-YAXY5L7I.cjs → chunk-W2LDIX26.cjs} +5 -5
  100. package/dist/{chunk-YAXY5L7I.cjs.map → chunk-W2LDIX26.cjs.map} +1 -1
  101. package/dist/{chunk-K6TGILHX.cjs → chunk-WSG64BVN.cjs} +6 -6
  102. package/dist/{chunk-K6TGILHX.cjs.map → chunk-WSG64BVN.cjs.map} +1 -1
  103. package/dist/chunk-WTQYGUNF.js +400 -0
  104. package/dist/chunk-WTQYGUNF.js.map +1 -0
  105. package/dist/{chunk-YDVHT7GS.cjs → chunk-WYK7EL5R.cjs} +100 -447
  106. package/dist/chunk-WYK7EL5R.cjs.map +1 -0
  107. package/dist/{chunk-X7JL2NYJ.cjs → chunk-XC4KHJYX.cjs} +51 -45
  108. package/dist/chunk-XC4KHJYX.cjs.map +1 -0
  109. package/dist/chunk-XVBH5XHE.cjs +400 -0
  110. package/dist/chunk-XVBH5XHE.cjs.map +1 -0
  111. package/dist/{chunk-IS5YYLTV.js → chunk-YAFQVVDI.js} +85 -22
  112. package/dist/chunk-YAFQVVDI.js.map +1 -0
  113. package/dist/components/legend/index.cjs +4 -3
  114. package/dist/components/legend/index.cjs.map +1 -1
  115. package/dist/components/legend/index.css +12 -24
  116. package/dist/components/legend/index.css.map +1 -1
  117. package/dist/components/legend/index.d.cts +4 -4
  118. package/dist/components/legend/index.d.ts +4 -4
  119. package/dist/components/legend/index.js +3 -2
  120. package/dist/components/tooltip/index.d.cts +1 -1
  121. package/dist/components/tooltip/index.d.ts +1 -1
  122. package/dist/hooks/index.cjs +3 -5
  123. package/dist/hooks/index.cjs.map +1 -1
  124. package/dist/hooks/index.css +0 -94
  125. package/dist/hooks/index.css.map +1 -1
  126. package/dist/hooks/index.d.cts +9 -13
  127. package/dist/hooks/index.d.ts +9 -13
  128. package/dist/hooks/index.js +2 -4
  129. package/dist/index.cjs +18 -17
  130. package/dist/index.cjs.map +1 -1
  131. package/dist/index.css +20 -33
  132. package/dist/index.css.map +1 -1
  133. package/dist/index.d.cts +6 -6
  134. package/dist/index.d.ts +6 -6
  135. package/dist/index.js +17 -16
  136. package/dist/{leaderboard-chart-COtgamhe.d.cts → leaderboard-chart-BSbg0ufV.d.cts} +3 -11
  137. package/dist/{leaderboard-chart-BSgEw_Um.d.ts → leaderboard-chart-odEYxxEC.d.ts} +3 -11
  138. package/dist/{legend-C9ahiwOt.d.cts → legend-DFkosEvC.d.cts} +1 -1
  139. package/dist/{legend-jjMmhSg3.d.ts → legend-DLswHhOk.d.ts} +1 -1
  140. package/dist/providers/index.cjs +3 -3
  141. package/dist/providers/index.css +0 -94
  142. package/dist/providers/index.css.map +1 -1
  143. package/dist/providers/index.d.cts +3 -3
  144. package/dist/providers/index.d.ts +3 -3
  145. package/dist/providers/index.js +2 -2
  146. package/dist/{themes-CVR5rmIs.d.cts → themes-D0qc5JaW.d.cts} +2 -2
  147. package/dist/{themes-DQzmaSze.d.ts → themes-itO4Ht5g.d.ts} +2 -2
  148. package/dist/{types-BBwg4Evw.d.cts → types-B5f6XQ7Q.d.cts} +1 -1
  149. package/dist/{types-DQNnq5Fr.d.ts → types-BsHooDbM.d.ts} +1 -1
  150. package/dist/{types-C05PdDJa.d.cts → types-BuSrRM4p.d.ts} +15 -23
  151. package/dist/{types-CzdN7rUe.d.cts → types-ChOUI9-N.d.cts} +90 -46
  152. package/dist/{types-CzdN7rUe.d.ts → types-ChOUI9-N.d.ts} +90 -46
  153. package/dist/{types-C05PdDJa.d.ts → types-Dfw9VOKI.d.cts} +15 -23
  154. package/dist/utils/index.cjs +2 -2
  155. package/dist/utils/index.d.cts +1 -1
  156. package/dist/utils/index.d.ts +1 -1
  157. package/dist/utils/index.js +1 -1
  158. package/package.json +10 -8
  159. package/src/charts/bar-chart/bar-chart.tsx +19 -19
  160. package/src/charts/bar-chart/test/bar-chart.test.tsx +78 -31
  161. package/src/charts/conversion-funnel-chart/test/conversion-funnel-chart.test.tsx +2 -2
  162. package/src/charts/leaderboard-chart/hooks/use-leaderboard-legend-items.ts +0 -2
  163. package/src/charts/leaderboard-chart/leaderboard-chart.module.scss +9 -10
  164. package/src/charts/leaderboard-chart/leaderboard-chart.tsx +124 -102
  165. package/src/charts/leaderboard-chart/test/leaderboard-chart.test.tsx +61 -33
  166. package/src/charts/leaderboard-chart/test/use-leaderboard-legend-items.test.tsx +2 -5
  167. package/src/charts/leaderboard-chart/types.ts +2 -15
  168. package/src/charts/line-chart/line-chart.tsx +18 -17
  169. package/src/charts/line-chart/test/line-chart.test.tsx +49 -27
  170. package/src/charts/line-chart/types.ts +0 -1
  171. package/src/charts/pie-chart/pie-chart.tsx +23 -23
  172. package/src/charts/pie-chart/test/composition-api.test.tsx +41 -0
  173. package/src/charts/pie-chart/test/pie-chart.test.tsx +9 -9
  174. package/src/charts/pie-semi-circle-chart/pie-semi-circle-chart.tsx +21 -24
  175. package/src/charts/pie-semi-circle-chart/test/pie-semi-circle-chart.test.tsx +33 -5
  176. package/src/charts/private/chart-composition/index.ts +2 -0
  177. package/src/charts/private/chart-composition/render-legend-slot.ts +22 -0
  178. package/src/charts/private/chart-composition/test/render-legend-slot.test.tsx +60 -0
  179. package/src/charts/private/chart-composition/test/use-chart-children.test.tsx +91 -0
  180. package/src/charts/private/chart-composition/use-chart-children.ts +34 -2
  181. package/src/components/legend/private/base-legend.module.scss +19 -37
  182. package/src/components/legend/private/base-legend.tsx +32 -24
  183. package/src/components/legend/test/legend.test.tsx +148 -52
  184. package/src/components/legend/types.ts +23 -24
  185. package/src/hooks/index.ts +0 -1
  186. package/src/hooks/test/use-zero-value-display.test.tsx +206 -0
  187. package/src/hooks/use-zero-value-display.ts +52 -23
  188. package/src/providers/chart-context/test/chart-context.test.tsx +12 -6
  189. package/src/providers/chart-context/themes.ts +6 -4
  190. package/src/types.ts +93 -44
  191. package/src/utils/date-parsing.ts +10 -1
  192. package/src/utils/get-styles.ts +1 -1
  193. package/src/utils/test/date-parsing.test.ts +12 -0
  194. package/src/utils/test/get-styles.test.ts +12 -10
  195. package/src/utils/test/resolve-css-var.test.ts +2 -2
  196. package/tsup.config.ts +1 -1
  197. package/dist/chunk-55ZCOYDF.cjs.map +0 -1
  198. package/dist/chunk-6CCZL2JJ.js.map +0 -1
  199. package/dist/chunk-7FDQGBY7.js.map +0 -1
  200. package/dist/chunk-BXFD7JIG.cjs.map +0 -1
  201. package/dist/chunk-IS5YYLTV.js.map +0 -1
  202. package/dist/chunk-KNIMXN6Z.js +0 -51
  203. package/dist/chunk-KNIMXN6Z.js.map +0 -1
  204. package/dist/chunk-NQJE2CC7.cjs.map +0 -1
  205. package/dist/chunk-O2JIANHK.cjs.map +0 -1
  206. package/dist/chunk-OMS5QIJN.js.map +0 -1
  207. package/dist/chunk-RCY6XLGU.cjs.map +0 -1
  208. package/dist/chunk-RFSHE3HL.js.map +0 -1
  209. package/dist/chunk-SSFFCBCF.js.map +0 -1
  210. package/dist/chunk-SUDERBUA.cjs +0 -51
  211. package/dist/chunk-SUDERBUA.cjs.map +0 -1
  212. package/dist/chunk-TE63Y5PX.js.map +0 -1
  213. package/dist/chunk-UFRBUT2D.cjs.map +0 -1
  214. package/dist/chunk-VPAEBI2F.js.map +0 -1
  215. package/dist/chunk-X7JL2NYJ.cjs.map +0 -1
  216. package/dist/chunk-XD2HV7M5.js.map +0 -1
  217. package/dist/chunk-YDVHT7GS.cjs.map +0 -1
  218. package/dist/chunk-ZVGEDXDP.cjs.map +0 -1
  219. package/src/hooks/use-has-legend-child.ts +0 -22
  220. /package/dist/{chunk-GWBS65VC.js.map → chunk-4B7BL2DD.js.map} +0 -0
  221. /package/dist/{chunk-MDRCAGKZ.js.map → chunk-DKU775VC.js.map} +0 -0
  222. /package/dist/{chunk-KHQPN77E.js.map → chunk-KJHWXOCZ.js.map} +0 -0
  223. /package/dist/{chunk-E62LCBGD.js.map → chunk-MUNOKLLE.js.map} +0 -0
package/AGENTS.md CHANGED
@@ -1,42 +1,15 @@
1
1
  # AGENTS.md
2
2
 
3
- This file is the package-specific source of truth for AI coding agents working in `projects/js-packages/charts`.
4
-
5
- ## Project Scope
6
-
7
- `@automattic/charts` is a React + TypeScript charting library used across Automattic products.
8
-
9
- Key implementation details agents usually miss:
10
-
11
- - Build system is `tsup`.
12
- - Package exports are explicit subpath exports in `package.json`.
13
- - Styling is primarily Sass-based CSS Modules (`*.module.scss`) compiled via tsup plugins.
14
- - The docs workflow uses paired Storybook docs files (`.docs.mdx` + `.api.mdx`).
3
+ Package-specific guidance for AI agents working in `projects/js-packages/charts`.
15
4
 
16
5
  ## CRITICAL Rules
17
6
 
18
- - CRITICAL: Keep this file focused on package-specific facts and workflows that are hard to infer from code search.
19
- - CRITICAL: Do not invent behavior in docs. If unsure, verify implementation and stories first.
20
- - CRITICAL: Do not assume wildcard exports. Follow the explicit exports in `projects/js-packages/charts/package.json`.
21
-
22
- ## Commands
23
-
24
- Run these from `projects/js-packages/charts` unless noted otherwise.
25
-
26
- ```bash
27
- # Build + type safety
28
- pnpm run build
29
- pnpm run typecheck
30
-
31
- # Tests
32
- pnpm run test
33
- pnpm run test-coverage
7
+ - Do not invent behavior in docs. If unsure, verify implementation and stories first.
8
+ - Do not assume wildcard exports like `./*` or `./providers/*` they don't exist. Check the explicit exports in `package.json`.
34
9
 
35
- # Storybook (delegates to ../storybook)
36
- pnpm run storybook
37
- ```
10
+ ## Changelog
38
11
 
39
- Changelog command (run from monorepo root):
12
+ Run from monorepo root:
40
13
 
41
14
  ```bash
42
15
  jp changelog add js-packages/charts -s patch -t changed -e "Charts: <user-facing change>."
@@ -44,92 +17,49 @@ jp changelog add js-packages/charts -s patch -t changed -e "Charts: <user-facing
44
17
 
45
18
  ## Architecture Decisions (Do Not "Fix" These)
46
19
 
47
- - Charts are built around composition patterns (for example, chart components with attached subcomponents).
48
- - Theme values and chart element styles flow through `GlobalChartsProvider` and related provider hooks.
49
- - Accessibility behavior (keyboard navigation, accessible tooltips) is part of chart behavior, not optional polish.
50
- - CSS Modules are intentionally used for scoped styles and stable local class handling.
51
- - Charts are responsive by default.
20
+ - Accessibility behavior (keyboard navigation, accessible tooltips) is core chart behavior, not optional polish.
21
+ - Charts are responsive by default do not add external responsive wrappers that conflict with built-in sizing semantics.
52
22
 
53
23
  ## Documentation Workflow
54
24
 
55
- Before changing chart docs or stories, read:
56
-
57
- - `projects/js-packages/charts/docs/ai-documentation-guide.md`
58
- - `projects/js-packages/charts/docs/feature-documentation.mdx.template`
59
- - `projects/js-packages/charts/docs/feature-api-documentation.mdx.template`
60
-
61
- Docs standards:
62
-
63
- - For public chart/component docs, maintain the standard docs set when applicable:
64
- - `[feature-name].stories.tsx`
65
- - `[feature-name].docs.mdx` (usage, examples, behavior, accessibility)
66
- - `[feature-name].api.mdx` (API reference only; no usage examples)
67
- - Some docs are intentionally guide-only or scope-specific (for example introduction, provider docs, or focused feature guides) and may not use the full triplet.
68
- - MUST keep props/types in docs aligned with implementation.
69
- - MUST include animation docs only when the component actually supports an `animation` prop.
70
-
71
- For docs-heavy tasks with many repeated steps, agents may use the optional skill:
72
-
73
- - `.agents/skills/charts-docs.md`
25
+ - For docs tasks agents should use the skill at `.agents/skills/charts-docs.md`.
26
+ - For public chart/component docs, maintain the standard set when applicable: `[feature-name].stories.tsx` + `.docs.mdx` + `.api.mdx`. Some docs are intentionally guide-only and skip the full triplet.
27
+ - Only include animation docs when the component actually supports an `animation` prop.
74
28
 
75
29
  ## Conventions
76
30
 
77
- ### Code and APIs
78
-
79
31
  - Preserve backward compatibility for existing public APIs unless a breaking change is explicitly requested.
80
32
  - Prefer extending existing chart components/patterns over introducing new surface area.
81
33
  - Reuse existing hooks/providers/utilities before adding new abstractions.
82
-
83
- ### Styling
84
-
85
- - Follow existing CSS Module + Sass patterns.
86
- - Use existing chart theme integration patterns instead of ad-hoc color/style logic.
87
34
  - Avoid `!important` unless there is no viable alternative and the rationale is documented.
88
-
89
- ### Testing
90
-
91
- - Use Jest + Testing Library patterns already present in this package.
92
- - Add focused behavioral tests for changed behavior (interaction, rendering state, accessibility behavior).
93
- - For behavior or UI changes, verify in Storybook using browser automation (browser MCP) against relevant stories/states, not only unit tests.
94
- - Avoid speculative tests for behavior not implemented in code.
95
-
96
- ### PR and Changelog
97
-
98
- - Prefer charts-scoped PR titles consistent with current repo patterns (e.g. `Charts: ...`, `CHARTS-###: ...`).
99
- - Include a changelog entry for user-facing changes under `projects/js-packages/charts/changelog/`.
100
- - Include test steps and outcomes in PR descriptions.
101
- - Include visual evidence (screenshots/GIFs) for visible UI changes.
35
+ - Add focused behavioral tests for changed behavior; avoid speculative tests for unimplemented behavior.
36
+ - Verify behavior/UI changes in Storybook using browser automation, not only unit tests.
37
+ - Prefer charts-scoped PR titles (e.g. `Charts: ...`, `CHARTS-###: ...`).
38
+ - Include test steps and visual evidence (screenshots/GIFs) in PR descriptions for UI changes.
102
39
 
103
40
  ## Common Pitfalls
104
41
 
105
- - Claiming Rollup is used for charts builds.
106
- - Referring to wildcard exports like `./*` or `./providers/*` (which don't exist). Use explicit exports like `./providers` instead.
107
- - Updating `.docs.mdx` without the corresponding `.api.mdx` when API docs are affected.
108
- - Not checking CSF file references in `.docs.mdx` when changing or removing stories.
42
+ - Claiming Rollup is used for builds (it's tsup).
109
43
  - Documenting props or behavior not present in stories and implementation.
110
44
  - Refactoring core composition/provider patterns as if they are accidental complexity.
111
- - Using ad-hoc flexbox layouts where established shared layout primitives/patterns (for example, `Stack`) should be preferred.
112
- - Accessing colors and styles directly from the `theme` rather than using `getElementStyles` from the `GlobalChartsProvider`.
113
45
  - Defining new chart prop interfaces that diverge from established base chart contracts (for example, not aligning with `BaseChartProps` when appropriate).
114
- - Implementing responsive wrappers that conflict with component sizing semantics (fixed-height charts, resize behavior, or aspect-ratio assumptions).
115
- - Adding stories that do not visibly demonstrate the documented behavior/props, or stories that render clipped due to container sizing.
116
- - Tooltip styles/positioning that only work on default backgrounds or fail at chart edges (for example, shadows fading to opaque white instead of transparent).
46
+ - Using ad-hoc flexbox layouts where established layout primitives (e.g. `Stack`) should be preferred.
47
+ - Accessing colors/styles directly from `theme` rather than using `getElementStyles` from `GlobalChartsProvider`.
48
+ - Responsive wrappers that conflict with component sizing semantics (fixed-height charts, resize behavior, aspect-ratio assumptions).
49
+ - Updating `.docs.mdx` without the corresponding `.api.mdx` when API docs are affected.
50
+ - Not checking CSF file references in `.docs.mdx` when changing or removing stories.
51
+ - Stories that don't visibly demonstrate documented behavior/props, or render clipped due to container sizing.
52
+ - Breaking MDX `<Source code={\`...\` } />` rendering by malformed/flattened indentation inside template literals.
53
+ - Tooltip styles/positioning that only work on default backgrounds or fail at chart edges.
117
54
  - Using mock/placeholder series data in production code.
118
- - Introducing avoidable multi-pass data transformations in render paths when a single pass is sufficient.
119
- - Adding CSS layout/overflow workarounds without documenting why the workaround is needed.
55
+ - Avoidable multi-pass data transformations in render paths when a single pass suffices.
56
+ - CSS layout/overflow workarounds without documenting why they're needed.
120
57
 
121
58
  ## Definition of Done
122
59
 
123
- Before handing off, verify:
124
-
125
- - Guidelines: changes follow this file, root monorepo guidance, and charts docs standards.
126
- - Build/tests: `pnpm run typecheck` and relevant tests pass for modified behavior.
127
- - Behavior verification: changed chart behavior is validated in Storybook and/or tests, not only by static checks.
128
- - Safe scope: edits remain in package boundaries and avoid unrelated refactors.
60
+ - Behavior verified in Storybook and/or tests, not only by static checks.
61
+ - Edits remain in package boundaries; avoid unrelated refactors.
129
62
 
130
63
  ## References
131
64
 
132
- - Root repo guidance: `AGENTS.md`
133
- - Package docs guide: `projects/js-packages/charts/docs/ai-documentation-guide.md`
134
- - Package readme: `projects/js-packages/charts/README.md`
135
- - Published Storybook docs: `https://automattic.github.io/jetpack-storybook/?path=/docs/js-packages-charts-library`
65
+ - Published Storybook: `https://automattic.github.io/jetpack-storybook/?path=/docs/js-packages-charts-library`
package/CHANGELOG.md CHANGED
@@ -5,6 +5,34 @@ 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.58.0] - 2026-03-16
9
+ ### Security
10
+ - Fix ReDoS vulnerability in date parsing timezone detection. [#47524]
11
+
12
+ ### Changed
13
+ - Breaking: Consolidate flat legend props into a nested legend configuration object on BaseChartProps. [#47506]
14
+ - Charts: Fix Legend position prop in the composition API so that legends render in the correct top or bottom slot. [#47478]
15
+ - Remove useHasLegendChild hook from @automattic/charts/hooks (charts now derive legend presence from useChartChildren). [#47478]
16
+ - Update dependencies. [#47472]
17
+
18
+ ### Fixed
19
+ - Bundle fast-deep-equal as a non-external dependency to fix compatibility with webpack strict ESM mode. [#47372]
20
+
21
+ ## [0.57.0] - 2026-03-09
22
+ ### Added
23
+ - Add identity-obj-proxy to enable CSS module class assertions in tests. [#47476]
24
+
25
+ ### Changed
26
+ - BREAKING: Legend: Replace individual visx styling props with itemStyles, labelStyles, shapeStyles objects, rename legendItemClassName to itemClassName, add labelClassName, and move maxWidth/textOverflow into labelStyles. LeaderboardChart: replace legendShapeWidth/legendShapeHeight with legendShapeStyles. [#47454]
27
+ - Breaking: Legend theme properties (`legendShapeStyles`, `legendLabelStyles`, `legendContainerStyles`) are now nested under a `legend` object (`legend.shapeStyles`, `legend.labelStyles`, `legend.containerStyles`) in `ChartTheme`. [#47439]
28
+ - Switch to Native TypeScript compiler based on Go. [#47375]
29
+ - Update package dependencies. [#47496]
30
+
31
+ ### Fixed
32
+ - Fix leaderboard chart height calculation to include legend layout and keep responsive sizing by default. [#47369]
33
+ - Fix zero-value bars not visible in small chart heights by ensuring minimum pixel-based value. [#47477]
34
+ - Legend: Fix value rendering for falsy values (e.g. 0), guard against empty string spans, make value optional in types, and use index-based lookup for better performance. [#47459]
35
+
8
36
  ## [0.56.7] - 2026-03-02
9
37
  ### Changed
10
38
  - Improve AI agent documentation and validation workflow for chart development. [#47334]
@@ -713,6 +741,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
713
741
  - Fixed lints following ESLint rule changes for TS [#40584]
714
742
  - Fixing a bug in Chart storybook data. [#40640]
715
743
 
744
+ [0.58.0]: https://github.com/Automattic/charts/compare/v0.57.0...v0.58.0
745
+ [0.57.0]: https://github.com/Automattic/charts/compare/v0.56.7...v0.57.0
716
746
  [0.56.7]: https://github.com/Automattic/charts/compare/v0.56.6...v0.56.7
717
747
  [0.56.6]: https://github.com/Automattic/charts/compare/v0.56.5...v0.56.6
718
748
  [0.56.5]: https://github.com/Automattic/charts/compare/v0.56.4...v0.56.5
@@ -1,16 +1,17 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkX7JL2NYJcjs = require('../../chunk-X7JL2NYJ.cjs');
4
+ var _chunkXC4KHJYXcjs = require('../../chunk-XC4KHJYX.cjs');
5
+ require('../../chunk-TZRUHQOH.cjs');
6
+ require('../../chunk-XVBH5XHE.cjs');
5
7
  require('../../chunk-Y3NNQMAX.cjs');
6
- require('../../chunk-UFRBUT2D.cjs');
7
- require('../../chunk-SUDERBUA.cjs');
8
+ require('../../chunk-REZTQ4PH.cjs');
8
9
  require('../../chunk-ASLARV7L.cjs');
9
- require('../../chunk-YDVHT7GS.cjs');
10
- require('../../chunk-ZVGEDXDP.cjs');
10
+ require('../../chunk-WYK7EL5R.cjs');
11
+ require('../../chunk-MXGLYWVP.cjs');
11
12
  require('../../chunk-EMMSS5I5.cjs');
12
13
 
13
14
 
14
15
 
15
- exports.BarChart = _chunkX7JL2NYJcjs.BarChartResponsive; exports.BarChartUnresponsive = _chunkX7JL2NYJcjs.BarChart;
16
+ exports.BarChart = _chunkXC4KHJYXcjs.BarChartResponsive; exports.BarChartUnresponsive = _chunkXC4KHJYXcjs.BarChart;
16
17
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/jetpack/jetpack/projects/js-packages/charts/dist/charts/bar-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;AACE;AACA;AACF,mHAAC","file":"/home/runner/work/jetpack/jetpack/projects/js-packages/charts/dist/charts/bar-chart/index.cjs"}
1
+ {"version":3,"sources":["/home/runner/work/jetpack/jetpack/projects/js-packages/charts/dist/charts/bar-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;AACE;AACA;AACF,mHAAC","file":"/home/runner/work/jetpack/jetpack/projects/js-packages/charts/dist/charts/bar-chart/index.cjs"}
@@ -8,6 +8,9 @@
8
8
  }
9
9
 
10
10
  /* esbuild-sass-plugin:css-chunk:src/components/legend/private/base-legend.module.scss */
11
+ .a8ccharts-89ApsU {
12
+ align-self: stretch;
13
+ }
11
14
  .a8ccharts-AELBvX {
12
15
  display: flex;
13
16
  flex-direction: row;
@@ -19,38 +22,23 @@
19
22
  flex-direction: column;
20
23
  gap: 8px;
21
24
  }
22
- .a8ccharts-fX8uQe.a8ccharts-DEe0wg {
23
- align-items: flex-start;
24
- }
25
- .a8ccharts-fX8uQe.a8ccharts-WBKF9I {
26
- align-items: center;
27
- }
28
- .a8ccharts-fX8uQe.a8ccharts-JfwMng {
29
- align-items: flex-end;
30
- }
31
- .a8ccharts-8Y73Kh {
32
- position: relative;
33
- }
34
- .a8ccharts-8Y73Kh.a8ccharts-DEe0wg {
25
+ .a8ccharts-DEe0wg {
35
26
  justify-content: flex-start;
36
27
  }
37
- .a8ccharts-8Y73Kh.a8ccharts-WBKF9I {
28
+ .a8ccharts-WBKF9I {
38
29
  justify-content: center;
39
30
  }
40
- .a8ccharts-8Y73Kh.a8ccharts-JfwMng {
31
+ .a8ccharts-JfwMng {
41
32
  justify-content: flex-end;
42
33
  }
43
- .a8ccharts-TVM-IY {
44
- position: relative;
45
- }
46
- .a8ccharts-TVM-IY.a8ccharts-DEe0wg {
47
- justify-content: flex-start;
34
+ .a8ccharts-fX8uQe.a8ccharts-DEe0wg {
35
+ align-items: flex-start;
48
36
  }
49
- .a8ccharts-TVM-IY.a8ccharts-WBKF9I {
50
- justify-content: center;
37
+ .a8ccharts-fX8uQe.a8ccharts-WBKF9I {
38
+ align-items: center;
51
39
  }
52
- .a8ccharts-TVM-IY.a8ccharts-JfwMng {
53
- justify-content: flex-end;
40
+ .a8ccharts-fX8uQe.a8ccharts-JfwMng {
41
+ align-items: flex-end;
54
42
  }
55
43
  .a8ccharts-Vflwq8 {
56
44
  display: flex;
@@ -1 +1 @@
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/bar-chart/bar-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-AELBvX {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n gap: 16px;\n}\n.a8ccharts-fX8uQe {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n.a8ccharts-fX8uQe.a8ccharts-DEe0wg {\n align-items: flex-start;\n}\n.a8ccharts-fX8uQe.a8ccharts-WBKF9I {\n align-items: center;\n}\n.a8ccharts-fX8uQe.a8ccharts-JfwMng {\n align-items: flex-end;\n}\n.a8ccharts-8Y73Kh {\n position: relative;\n}\n.a8ccharts-8Y73Kh.a8ccharts-DEe0wg {\n justify-content: flex-start;\n}\n.a8ccharts-8Y73Kh.a8ccharts-WBKF9I {\n justify-content: center;\n}\n.a8ccharts-8Y73Kh.a8ccharts-JfwMng {\n justify-content: flex-end;\n}\n.a8ccharts-TVM-IY {\n position: relative;\n}\n.a8ccharts-TVM-IY.a8ccharts-DEe0wg {\n justify-content: flex-start;\n}\n.a8ccharts-TVM-IY.a8ccharts-WBKF9I {\n justify-content: center;\n}\n.a8ccharts-TVM-IY.a8ccharts-JfwMng {\n justify-content: flex-end;\n}\n\n.a8ccharts-Vflwq8 {\n display: flex;\n align-items: center;\n font-size: 0.875rem;\n}\n.a8ccharts-qGsavM {\n cursor: pointer;\n user-select: none;\n transition: opacity 0.2s ease;\n}\n.a8ccharts-qGsavM:hover {\n opacity: 0.8;\n}\n.a8ccharts-qGsavM:focus {\n outline: 2px solid currentColor;\n outline-offset: 2px;\n border-radius: 4px;\n}\n.a8ccharts-qGsavM:focus:not(:focus-visible) {\n outline: none;\n}\n.a8ccharts-ZtDY-Q {\n opacity: 0.4;\n}\n.a8ccharts-ZtDY-Q .a8ccharts-2H65Kr {\n text-decoration: line-through;\n}\n\n.a8ccharts-2H65Kr {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n /* Text wrapping is handled at the text level, not the label container */\n}\n\n.a8ccharts-faSDBI {\n 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-9CsqC0 {\n flex: 1;\n min-height: 0;\n}\n.a8ccharts-3gflnB svg {\n overflow: visible;\n}\n.a8ccharts-98W-yu rect {\n transform-origin: bottom;\n transform-box: fill-box;\n transform: scaleY(0);\n animation: a8ccharts-z6AsiQ 1s ease-out forwards;\n}\n@keyframes a8ccharts-z6AsiQ {\n to {\n transform: scaleY(1);\n }\n}\n.a8ccharts-HFA3FF rect {\n transform-origin: left;\n transform-box: fill-box;\n transform: scaleX(0);\n animation: a8ccharts-DQp37O 1s ease-out forwards;\n}\n@keyframes a8ccharts-DQp37O {\n to {\n transform: scaleX(1);\n }\n}"],"mappings":";AAAA,CAAC;AACC,YAAU;AACV,SAAO;AACP,YAAU;AACV,WAAS;AACT,kBAAgB;AAClB;;;ACNA,CAAC;AACC,WAAS;AACT,kBAAgB;AAChB,aAAW;AACX,OAAK;AACP;AACA,CAAC;AACC,WAAS;AACT,kBAAgB;AAChB,OAAK;AACP;AACA,CALC,gBAKgB,CAAC;AAChB,eAAa;AACf;AACA,CARC,gBAQgB,CAAC;AAChB,eAAa;AACf;AACA,CAXC,gBAWgB,CAAC;AAChB,eAAa;AACf;AACA,CAAC;AACC,YAAU;AACZ;AACA,CAHC,gBAGgB,CAZC;AAahB,mBAAiB;AACnB;AACA,CANC,gBAMgB,CAZC;AAahB,mBAAiB;AACnB;AACA,CATC,gBASgB,CAZC;AAahB,mBAAiB;AACnB;AACA,CAAC;AACC,YAAU;AACZ;AACA,CAHC,gBAGgB,CAxBC;AAyBhB,mBA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AAW,OAAO;AAClB,aAAW,iBAAiB,GAAG,SAAS;AAC1C;AACA,WAFa;AAGX;AACE,eAAW,OAAO;AACpB;AACF;","names":[]}
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/bar-chart/bar-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-9CsqC0 {\n flex: 1;\n min-height: 0;\n}\n.a8ccharts-3gflnB svg {\n overflow: visible;\n}\n.a8ccharts-98W-yu rect {\n transform-origin: bottom;\n transform-box: fill-box;\n transform: scaleY(0);\n animation: a8ccharts-z6AsiQ 1s ease-out forwards;\n}\n@keyframes a8ccharts-z6AsiQ {\n to {\n transform: scaleY(1);\n }\n}\n.a8ccharts-HFA3FF rect {\n transform-origin: left;\n transform-box: fill-box;\n transform: scaleX(0);\n animation: a8ccharts-DQp37O 1s ease-out forwards;\n}\n@keyframes a8ccharts-DQp37O {\n to {\n transform: scaleX(1);\n }\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,C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,CAAC,iBAAiB;AAChB,oBAAkB;AAClB,iBAAe;AACf,aAAW,OAAO;AAClB,aAAW,iBAAiB,GAAG,SAAS;AAC1C;AACA,WAFa;AAGX;AACE,eAAW,OAAO;AACpB;AACF;","names":[]}
@@ -1,9 +1,9 @@
1
- import { L as Legend } from '../../legend-C9ahiwOt.cjs';
2
- import { O as Optional, B as BaseChartProps, j as SeriesData, c as DataPointDate } from '../../types-CzdN7rUe.cjs';
1
+ import { L as Legend } from '../../legend-DFkosEvC.cjs';
2
+ import { O as Optional, B as BaseChartProps, o as SeriesData, d as DataPointDate } from '../../types-ChOUI9-N.cjs';
3
3
  import { FC, ReactNode, ComponentType } from 'react';
4
4
  import { R as ResponsiveConfig } from '../../with-responsive-CNfhzAUu.cjs';
5
5
  import { RenderTooltipParams } from '@visx/xychart/lib/components/Tooltip';
6
- import '../../types-C05PdDJa.cjs';
6
+ import '../../types-Dfw9VOKI.cjs';
7
7
  import '@visx/legend';
8
8
  import '@visx/xychart';
9
9
  import '@visx/annotation/lib/components/CircleSubject';
@@ -22,7 +22,6 @@ interface BarChartProps extends BaseChartProps<SeriesData[]> {
22
22
  orientation?: 'horizontal' | 'vertical';
23
23
  withPatterns?: boolean;
24
24
  showZeroValues?: boolean;
25
- legendInteractive?: boolean;
26
25
  children?: ReactNode;
27
26
  }
28
27
  type BarChartBaseProps = Optional<BarChartProps, 'width' | 'height' | 'size'>;
@@ -1,9 +1,9 @@
1
- import { L as Legend } from '../../legend-jjMmhSg3.js';
2
- import { O as Optional, B as BaseChartProps, j as SeriesData, c as DataPointDate } from '../../types-CzdN7rUe.js';
1
+ import { L as Legend } from '../../legend-DLswHhOk.js';
2
+ import { O as Optional, B as BaseChartProps, o as SeriesData, d as DataPointDate } from '../../types-ChOUI9-N.js';
3
3
  import { FC, ReactNode, ComponentType } from 'react';
4
4
  import { R as ResponsiveConfig } from '../../with-responsive-CNfhzAUu.js';
5
5
  import { RenderTooltipParams } from '@visx/xychart/lib/components/Tooltip';
6
- import '../../types-C05PdDJa.js';
6
+ import '../../types-BuSrRM4p.js';
7
7
  import '@visx/legend';
8
8
  import '@visx/xychart';
9
9
  import '@visx/annotation/lib/components/CircleSubject';
@@ -22,7 +22,6 @@ interface BarChartProps extends BaseChartProps<SeriesData[]> {
22
22
  orientation?: 'horizontal' | 'vertical';
23
23
  withPatterns?: boolean;
24
24
  showZeroValues?: boolean;
25
- legendInteractive?: boolean;
26
25
  children?: ReactNode;
27
26
  }
28
27
  type BarChartBaseProps = Optional<BarChartProps, 'width' | 'height' | 'size'>;
@@ -1,13 +1,14 @@
1
1
  import {
2
2
  BarChart,
3
3
  BarChartResponsive
4
- } from "../../chunk-SSFFCBCF.js";
4
+ } from "../../chunk-B6NLZFRW.js";
5
+ import "../../chunk-KRWGSOJ2.js";
6
+ import "../../chunk-WTQYGUNF.js";
5
7
  import "../../chunk-BPYKWMI7.js";
6
- import "../../chunk-IS5YYLTV.js";
7
- import "../../chunk-KNIMXN6Z.js";
8
+ import "../../chunk-YAFQVVDI.js";
8
9
  import "../../chunk-OP6PHB2U.js";
9
- import "../../chunk-RFSHE3HL.js";
10
- import "../../chunk-TE63Y5PX.js";
10
+ import "../../chunk-2I67QUIV.js";
11
+ import "../../chunk-JJIMABHT.js";
11
12
  import "../../chunk-G3PMV62Z.js";
12
13
  export {
13
14
  BarChartResponsive as BarChart,
@@ -1,17 +1,18 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkK6TGILHXcjs = require('../../chunk-K6TGILHX.cjs');
5
- require('../../chunk-X7JL2NYJ.cjs');
4
+ var _chunkWSG64BVNcjs = require('../../chunk-WSG64BVN.cjs');
5
+ require('../../chunk-XC4KHJYX.cjs');
6
+ require('../../chunk-TZRUHQOH.cjs');
7
+ require('../../chunk-XVBH5XHE.cjs');
6
8
  require('../../chunk-Y3NNQMAX.cjs');
7
- require('../../chunk-UFRBUT2D.cjs');
8
- require('../../chunk-SUDERBUA.cjs');
9
+ require('../../chunk-REZTQ4PH.cjs');
9
10
  require('../../chunk-ASLARV7L.cjs');
10
- require('../../chunk-YDVHT7GS.cjs');
11
- require('../../chunk-ZVGEDXDP.cjs');
11
+ require('../../chunk-WYK7EL5R.cjs');
12
+ require('../../chunk-MXGLYWVP.cjs');
12
13
  require('../../chunk-EMMSS5I5.cjs');
13
14
 
14
15
 
15
16
 
16
- exports.BarListChart = _chunkK6TGILHXcjs.BarListChartResponsive; exports.BarListChartUnresponsive = _chunkK6TGILHXcjs.BarListChart;
17
+ exports.BarListChart = _chunkWSG64BVNcjs.BarListChartResponsive; exports.BarListChartUnresponsive = _chunkWSG64BVNcjs.BarListChart;
17
18
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/jetpack/jetpack/projects/js-packages/charts/dist/charts/bar-list-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;AACE;AACA;AACF,mIAAC","file":"/home/runner/work/jetpack/jetpack/projects/js-packages/charts/dist/charts/bar-list-chart/index.cjs"}
1
+ {"version":3,"sources":["/home/runner/work/jetpack/jetpack/projects/js-packages/charts/dist/charts/bar-list-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,mIAAC","file":"/home/runner/work/jetpack/jetpack/projects/js-packages/charts/dist/charts/bar-list-chart/index.cjs"}
@@ -8,6 +8,9 @@
8
8
  }
9
9
 
10
10
  /* esbuild-sass-plugin:css-chunk:src/components/legend/private/base-legend.module.scss */
11
+ .a8ccharts-89ApsU {
12
+ align-self: stretch;
13
+ }
11
14
  .a8ccharts-AELBvX {
12
15
  display: flex;
13
16
  flex-direction: row;
@@ -19,38 +22,23 @@
19
22
  flex-direction: column;
20
23
  gap: 8px;
21
24
  }
22
- .a8ccharts-fX8uQe.a8ccharts-DEe0wg {
23
- align-items: flex-start;
24
- }
25
- .a8ccharts-fX8uQe.a8ccharts-WBKF9I {
26
- align-items: center;
27
- }
28
- .a8ccharts-fX8uQe.a8ccharts-JfwMng {
29
- align-items: flex-end;
30
- }
31
- .a8ccharts-8Y73Kh {
32
- position: relative;
33
- }
34
- .a8ccharts-8Y73Kh.a8ccharts-DEe0wg {
25
+ .a8ccharts-DEe0wg {
35
26
  justify-content: flex-start;
36
27
  }
37
- .a8ccharts-8Y73Kh.a8ccharts-WBKF9I {
28
+ .a8ccharts-WBKF9I {
38
29
  justify-content: center;
39
30
  }
40
- .a8ccharts-8Y73Kh.a8ccharts-JfwMng {
31
+ .a8ccharts-JfwMng {
41
32
  justify-content: flex-end;
42
33
  }
43
- .a8ccharts-TVM-IY {
44
- position: relative;
45
- }
46
- .a8ccharts-TVM-IY.a8ccharts-DEe0wg {
47
- justify-content: flex-start;
34
+ .a8ccharts-fX8uQe.a8ccharts-DEe0wg {
35
+ align-items: flex-start;
48
36
  }
49
- .a8ccharts-TVM-IY.a8ccharts-WBKF9I {
50
- justify-content: center;
37
+ .a8ccharts-fX8uQe.a8ccharts-WBKF9I {
38
+ align-items: center;
51
39
  }
52
- .a8ccharts-TVM-IY.a8ccharts-JfwMng {
53
- justify-content: flex-end;
40
+ .a8ccharts-fX8uQe.a8ccharts-JfwMng {
41
+ align-items: flex-end;
54
42
  }
55
43
  .a8ccharts-Vflwq8 {
56
44
  display: flex;
@@ -1 +1 @@
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/bar-chart/bar-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-AELBvX {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n gap: 16px;\n}\n.a8ccharts-fX8uQe {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n.a8ccharts-fX8uQe.a8ccharts-DEe0wg {\n align-items: flex-start;\n}\n.a8ccharts-fX8uQe.a8ccharts-WBKF9I {\n align-items: center;\n}\n.a8ccharts-fX8uQe.a8ccharts-JfwMng {\n align-items: flex-end;\n}\n.a8ccharts-8Y73Kh {\n position: relative;\n}\n.a8ccharts-8Y73Kh.a8ccharts-DEe0wg {\n justify-content: flex-start;\n}\n.a8ccharts-8Y73Kh.a8ccharts-WBKF9I {\n justify-content: center;\n}\n.a8ccharts-8Y73Kh.a8ccharts-JfwMng {\n justify-content: flex-end;\n}\n.a8ccharts-TVM-IY {\n position: relative;\n}\n.a8ccharts-TVM-IY.a8ccharts-DEe0wg {\n justify-content: flex-start;\n}\n.a8ccharts-TVM-IY.a8ccharts-WBKF9I {\n justify-content: center;\n}\n.a8ccharts-TVM-IY.a8ccharts-JfwMng {\n justify-content: flex-end;\n}\n\n.a8ccharts-Vflwq8 {\n display: flex;\n align-items: center;\n font-size: 0.875rem;\n}\n.a8ccharts-qGsavM {\n cursor: pointer;\n user-select: none;\n transition: opacity 0.2s ease;\n}\n.a8ccharts-qGsavM:hover {\n opacity: 0.8;\n}\n.a8ccharts-qGsavM:focus {\n outline: 2px solid currentColor;\n outline-offset: 2px;\n border-radius: 4px;\n}\n.a8ccharts-qGsavM:focus:not(:focus-visible) {\n outline: none;\n}\n.a8ccharts-ZtDY-Q {\n opacity: 0.4;\n}\n.a8ccharts-ZtDY-Q .a8ccharts-2H65Kr {\n text-decoration: line-through;\n}\n\n.a8ccharts-2H65Kr {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n /* Text wrapping is handled at the text level, not the label container */\n}\n\n.a8ccharts-faSDBI {\n 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-9CsqC0 {\n flex: 1;\n min-height: 0;\n}\n.a8ccharts-3gflnB svg {\n overflow: visible;\n}\n.a8ccharts-98W-yu rect {\n transform-origin: bottom;\n transform-box: fill-box;\n transform: scaleY(0);\n animation: a8ccharts-z6AsiQ 1s ease-out forwards;\n}\n@keyframes a8ccharts-z6AsiQ {\n to {\n transform: scaleY(1);\n }\n}\n.a8ccharts-HFA3FF rect {\n transform-origin: left;\n transform-box: fill-box;\n transform: scaleX(0);\n animation: a8ccharts-DQp37O 1s ease-out forwards;\n}\n@keyframes a8ccharts-DQp37O {\n to {\n transform: scaleX(1);\n }\n}"],"mappings":";AAAA,CAAC;AACC,YAAU;AACV,SAAO;AACP,YAAU;AACV,WAAS;AACT,kBAAgB;AAClB;;;ACNA,CAAC;AACC,WAAS;AACT,kBAAgB;AAChB,aAAW;AACX,OAAK;AACP;AACA,CAAC;AACC,WAAS;AACT,kBAAgB;AAChB,OAAK;AACP;AACA,CALC,gBAKgB,CAAC;AAChB,eAAa;AACf;AACA,CARC,gBAQgB,CAAC;AAChB,eAAa;AACf;AACA,CA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C,QAAM;AACN,cAAY;AACd;AACA,CAAC,iBAAiB;AAChB,YAAU;AACZ;AACA,CAAC,iBAAiB;AAChB,oBAAkB;AAClB,iBAAe;AACf,aAAW,OAAO;AAClB,aAAW,iBAAiB,GAAG,SAAS;AAC1C;AACA,WAFa;AAGX;AACE,eAAW,OAAO;AACpB;AACF;AACA,CAAC,iBAAiB;AAChB,oBAAkB;AAClB,iBAAe;AACf,aAAW,OAAO;AAClB,aAAW,iBAAiB,GAAG,SAAS;AAC1C;AACA,WAFa;AAGX;AACE,eAAW,OAAO;AACpB;AACF;","names":[]}
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/bar-chart/bar-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-9CsqC0 {\n flex: 1;\n min-height: 0;\n}\n.a8ccharts-3gflnB svg {\n overflow: visible;\n}\n.a8ccharts-98W-yu rect {\n transform-origin: bottom;\n transform-box: fill-box;\n transform: scaleY(0);\n animation: a8ccharts-z6AsiQ 1s ease-out forwards;\n}\n@keyframes a8ccharts-z6AsiQ {\n to {\n transform: scaleY(1);\n }\n}\n.a8ccharts-HFA3FF rect {\n transform-origin: left;\n transform-box: fill-box;\n transform: scaleX(0);\n animation: a8ccharts-DQp37O 1s ease-out forwards;\n}\n@keyframes a8ccharts-DQp37O {\n to {\n transform: scaleX(1);\n }\n}"],"mappings":";AAAA,CAAC;AACC,YAAU;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CAAC;AACC,aAAW;AACX,cAAY;AACd;;;ACHA,CAAC;AACC,QAAM;AACN,cAAY;AACd;AACA,CAAC,iBAAiB;AAChB,YAAU;AACZ;AACA,CAAC,iBAAiB;AAChB,oBAAkB;AAClB,iBAAe;AACf,aAAW,OAAO;AAClB,aAAW,iBAAiB,GAAG,SAAS;AAC1C;AACA,WAFa;AAGX;AACE,eAAW,OAAO;AACpB;AACF;AACA,CAAC,iBAAiB;AAChB,oBAAkB;AAClB,iBAAe;AACf,aAAW,OAAO;AAClB,aAAW,iBAAiB,GAAG,SAAS;AAC1C;AACA,WAFa;AAGX;AACE,eAAW,OAAO;AACpB;AACF;","names":[]}
@@ -2,10 +2,10 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { R as ResponsiveConfig } from '../../with-responsive-CNfhzAUu.cjs';
3
3
  import { TextProps } from '@visx/text';
4
4
  import { BarChartProps } from '../bar-chart/index.cjs';
5
- import { S as ScaleOptions, j as SeriesData } from '../../types-CzdN7rUe.cjs';
5
+ import { S as ScaleOptions, o as SeriesData } from '../../types-ChOUI9-N.cjs';
6
6
  import { ComponentType, FC } from 'react';
7
- import '../../legend-C9ahiwOt.cjs';
8
- import '../../types-C05PdDJa.cjs';
7
+ import '../../legend-DFkosEvC.cjs';
8
+ import '../../types-Dfw9VOKI.cjs';
9
9
  import '@visx/legend';
10
10
  import '@visx/xychart';
11
11
  import '@visx/xychart/lib/components/Tooltip';
@@ -2,10 +2,10 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { R as ResponsiveConfig } from '../../with-responsive-CNfhzAUu.js';
3
3
  import { TextProps } from '@visx/text';
4
4
  import { BarChartProps } from '../bar-chart/index.js';
5
- import { S as ScaleOptions, j as SeriesData } from '../../types-CzdN7rUe.js';
5
+ import { S as ScaleOptions, o as SeriesData } from '../../types-ChOUI9-N.js';
6
6
  import { ComponentType, FC } from 'react';
7
- import '../../legend-jjMmhSg3.js';
8
- import '../../types-C05PdDJa.js';
7
+ import '../../legend-DLswHhOk.js';
8
+ import '../../types-BuSrRM4p.js';
9
9
  import '@visx/legend';
10
10
  import '@visx/xychart';
11
11
  import '@visx/xychart/lib/components/Tooltip';
@@ -1,14 +1,15 @@
1
1
  import {
2
2
  BarListChart,
3
3
  BarListChartResponsive
4
- } from "../../chunk-MDRCAGKZ.js";
5
- import "../../chunk-SSFFCBCF.js";
4
+ } from "../../chunk-DKU775VC.js";
5
+ import "../../chunk-B6NLZFRW.js";
6
+ import "../../chunk-KRWGSOJ2.js";
7
+ import "../../chunk-WTQYGUNF.js";
6
8
  import "../../chunk-BPYKWMI7.js";
7
- import "../../chunk-IS5YYLTV.js";
8
- import "../../chunk-KNIMXN6Z.js";
9
+ import "../../chunk-YAFQVVDI.js";
9
10
  import "../../chunk-OP6PHB2U.js";
10
- import "../../chunk-RFSHE3HL.js";
11
- import "../../chunk-TE63Y5PX.js";
11
+ import "../../chunk-2I67QUIV.js";
12
+ import "../../chunk-JJIMABHT.js";
12
13
  import "../../chunk-G3PMV62Z.js";
13
14
  export {
14
15
  BarListChartResponsive as BarListChart,
@@ -1,12 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkCAFJRZPZcjs = require('../../chunk-CAFJRZPZ.cjs');
4
- require('../../chunk-UFRBUT2D.cjs');
5
- require('../../chunk-SUDERBUA.cjs');
6
- require('../../chunk-YDVHT7GS.cjs');
7
- require('../../chunk-ZVGEDXDP.cjs');
3
+ var _chunkPQL5I3F6cjs = require('../../chunk-PQL5I3F6.cjs');
4
+ require('../../chunk-REZTQ4PH.cjs');
5
+ require('../../chunk-WYK7EL5R.cjs');
6
+ require('../../chunk-MXGLYWVP.cjs');
8
7
  require('../../chunk-EMMSS5I5.cjs');
9
8
 
10
9
 
11
- exports.ConversionFunnelChart = _chunkCAFJRZPZcjs.ConversionFunnelChartWithProvider;
10
+ exports.ConversionFunnelChart = _chunkPQL5I3F6cjs.ConversionFunnelChartWithProvider;
12
11
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/jetpack/jetpack/projects/js-packages/charts/dist/charts/conversion-funnel-chart/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACF,4DAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC;AACE;AACF,oFAAC","file":"/home/runner/work/jetpack/jetpack/projects/js-packages/charts/dist/charts/conversion-funnel-chart/index.cjs"}
1
+ {"version":3,"sources":["/home/runner/work/jetpack/jetpack/projects/js-packages/charts/dist/charts/conversion-funnel-chart/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACF,4DAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC;AACE;AACF,oFAAC","file":"/home/runner/work/jetpack/jetpack/projects/js-packages/charts/dist/charts/conversion-funnel-chart/index.cjs"}