@mui/x-charts 9.0.0-alpha.3 → 9.0.0-beta.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 (627) hide show
  1. package/BarChart/BarChart.d.mts +2 -2
  2. package/BarChart/BarChart.d.ts +2 -2
  3. package/BarChart/BarChart.js +55 -34
  4. package/BarChart/BarChart.mjs +55 -34
  5. package/BarChart/BarElement.js +4 -8
  6. package/BarChart/BarElement.mjs +4 -8
  7. package/BarChart/BarLabel/BarLabel.js +1 -11
  8. package/BarChart/BarLabel/BarLabel.mjs +1 -11
  9. package/BarChart/BarLabel/BarLabelItem.js +1 -3
  10. package/BarChart/BarLabel/BarLabelItem.mjs +1 -3
  11. package/BarChart/BarLabel/BarLabelPlot.d.mts +0 -2
  12. package/BarChart/BarLabel/BarLabelPlot.d.ts +0 -2
  13. package/BarChart/BarLabel/BarLabelPlot.js +2 -3
  14. package/BarChart/BarLabel/BarLabelPlot.mjs +2 -3
  15. package/BarChart/BarLabel/index.d.mts +1 -3
  16. package/BarChart/BarLabel/index.d.ts +1 -3
  17. package/BarChart/BarLabel/index.js +1 -14
  18. package/BarChart/BarLabel/index.mjs +1 -2
  19. package/BarChart/BarPlot.d.mts +6 -12
  20. package/BarChart/BarPlot.d.ts +6 -12
  21. package/BarChart/BarPlot.js +11 -19
  22. package/BarChart/BarPlot.mjs +11 -19
  23. package/BarChart/BatchBarPlot/BatchBarPlot.js +3 -30
  24. package/BarChart/BatchBarPlot/BatchBarPlot.mjs +3 -30
  25. package/BarChart/IndividualBarPlot.d.mts +1 -2
  26. package/BarChart/IndividualBarPlot.d.ts +1 -2
  27. package/BarChart/IndividualBarPlot.js +5 -10
  28. package/BarChart/IndividualBarPlot.mjs +5 -10
  29. package/BarChart/index.d.mts +0 -1
  30. package/BarChart/index.d.ts +0 -1
  31. package/BarChart/index.js +0 -12
  32. package/BarChart/index.mjs +0 -1
  33. package/BarChart/seriesConfig/bar/descriptionGetter.d.mts +3 -0
  34. package/BarChart/seriesConfig/bar/descriptionGetter.d.ts +3 -0
  35. package/BarChart/seriesConfig/bar/descriptionGetter.js +36 -0
  36. package/BarChart/seriesConfig/bar/descriptionGetter.mjs +30 -0
  37. package/BarChart/seriesConfig/bar/legend.js +2 -21
  38. package/BarChart/seriesConfig/bar/legend.mjs +2 -21
  39. package/BarChart/seriesConfig/index.js +5 -1
  40. package/BarChart/seriesConfig/index.mjs +5 -1
  41. package/BarChart/useBarChartProps.d.mts +2 -2
  42. package/BarChart/useBarChartProps.d.ts +2 -2
  43. package/BarChart/useBarChartProps.js +4 -6
  44. package/BarChart/useBarChartProps.mjs +4 -6
  45. package/BarChart/useRegisterItemClickHandlers.js +2 -2
  46. package/BarChart/useRegisterItemClickHandlers.mjs +2 -2
  47. package/CHANGELOG.md +229 -0
  48. package/ChartsAxis/index.d.mts +2 -1
  49. package/ChartsAxis/index.d.ts +2 -1
  50. package/ChartsAxis/index.js +11 -11
  51. package/ChartsAxis/index.mjs +1 -1
  52. package/ChartsAxisHighlight/index.d.mts +2 -1
  53. package/ChartsAxisHighlight/index.d.ts +2 -1
  54. package/ChartsAxisHighlight/index.js +12 -10
  55. package/ChartsAxisHighlight/index.mjs +1 -1
  56. package/ChartsBrushOverlay/ChartsBrushOverlay.d.mts +6 -1
  57. package/ChartsBrushOverlay/ChartsBrushOverlay.d.ts +6 -1
  58. package/ChartsBrushOverlay/ChartsBrushOverlay.js +12 -9
  59. package/ChartsBrushOverlay/ChartsBrushOverlay.mjs +12 -9
  60. package/ChartsContainer/ChartsContainer.js +77 -43
  61. package/ChartsContainer/ChartsContainer.mjs +77 -43
  62. package/ChartsContainer/useChartsContainerProps.d.mts +2 -2
  63. package/ChartsContainer/useChartsContainerProps.d.ts +2 -2
  64. package/ChartsContainer/useChartsContainerProps.js +8 -8
  65. package/ChartsContainer/useChartsContainerProps.mjs +8 -8
  66. package/ChartsDataProvider/ChartsDataProvider.js +0 -6
  67. package/ChartsDataProvider/ChartsDataProvider.mjs +0 -6
  68. package/ChartsDataProvider/useChartsDataProviderProps.js +1 -1
  69. package/ChartsDataProvider/useChartsDataProviderProps.mjs +1 -1
  70. package/ChartsGrid/ChartsGrid.d.mts +4 -0
  71. package/ChartsGrid/ChartsGrid.d.ts +4 -0
  72. package/ChartsGrid/ChartsGrid.js +4 -2
  73. package/ChartsGrid/ChartsGrid.mjs +4 -2
  74. package/ChartsGrid/ChartsHorizontalGrid.js +2 -2
  75. package/ChartsGrid/ChartsHorizontalGrid.mjs +2 -2
  76. package/ChartsGrid/ChartsVerticalGrid.js +2 -2
  77. package/ChartsGrid/ChartsVerticalGrid.mjs +2 -2
  78. package/ChartsGrid/index.d.mts +2 -1
  79. package/ChartsGrid/index.d.ts +2 -1
  80. package/ChartsGrid/index.js +11 -11
  81. package/ChartsGrid/index.mjs +1 -1
  82. package/ChartsLayerContainer/ChartsLayerContainer.d.mts +10 -0
  83. package/ChartsLayerContainer/ChartsLayerContainer.d.ts +10 -0
  84. package/ChartsLayerContainer/ChartsLayerContainer.js +53 -9
  85. package/ChartsLayerContainer/ChartsLayerContainer.mjs +55 -10
  86. package/ChartsLayerContainer/chartsLayerContainerClasses.d.mts +6 -0
  87. package/ChartsLayerContainer/chartsLayerContainerClasses.d.ts +6 -0
  88. package/ChartsLayerContainer/chartsLayerContainerClasses.js +21 -0
  89. package/ChartsLayerContainer/chartsLayerContainerClasses.mjs +13 -0
  90. package/ChartsLegend/ChartsLegend.js +2 -2
  91. package/ChartsLegend/ChartsLegend.mjs +2 -2
  92. package/ChartsLegend/legendContext.types.d.mts +0 -6
  93. package/ChartsLegend/legendContext.types.d.ts +0 -6
  94. package/ChartsLegend/onClickContextBuilder.js +0 -1
  95. package/ChartsLegend/onClickContextBuilder.mjs +0 -1
  96. package/ChartsOverlay/ChartsLoadingOverlay.js +2 -8
  97. package/ChartsOverlay/ChartsLoadingOverlay.mjs +2 -8
  98. package/ChartsOverlay/ChartsNoDataOverlay.js +2 -8
  99. package/ChartsOverlay/ChartsNoDataOverlay.mjs +2 -8
  100. package/ChartsOverlay/ChartsOverlay.d.mts +0 -6
  101. package/ChartsOverlay/ChartsOverlay.d.ts +0 -6
  102. package/ChartsReferenceLine/index.d.mts +2 -1
  103. package/ChartsReferenceLine/index.d.ts +2 -1
  104. package/ChartsReferenceLine/index.js +11 -11
  105. package/ChartsReferenceLine/index.mjs +1 -2
  106. package/ChartsSurface/ChartsSurface.d.mts +2 -3
  107. package/ChartsSurface/ChartsSurface.d.ts +2 -3
  108. package/ChartsSurface/ChartsSurface.js +14 -2
  109. package/ChartsSurface/ChartsSurface.mjs +14 -2
  110. package/ChartsSvgLayer/ChartsSvgLayer.d.mts +0 -4
  111. package/ChartsSvgLayer/ChartsSvgLayer.d.ts +0 -4
  112. package/ChartsSvgLayer/ChartsSvgLayer.js +8 -30
  113. package/ChartsSvgLayer/ChartsSvgLayer.mjs +8 -30
  114. package/ChartsTooltip/ChartsAxisTooltipContent.js +45 -31
  115. package/ChartsTooltip/ChartsAxisTooltipContent.mjs +45 -31
  116. package/ChartsTooltip/ChartsItemTooltipContent.js +77 -41
  117. package/ChartsTooltip/ChartsItemTooltipContent.mjs +76 -41
  118. package/ChartsTooltip/ChartsTooltipContainer.js +5 -1
  119. package/ChartsTooltip/ChartsTooltipContainer.mjs +5 -1
  120. package/ChartsTooltip/index.d.mts +1 -2
  121. package/ChartsTooltip/index.d.ts +1 -2
  122. package/ChartsTooltip/index.js +1 -16
  123. package/ChartsTooltip/index.mjs +1 -2
  124. package/ChartsTooltip/useAxesTooltip.d.mts +2 -3
  125. package/ChartsTooltip/useAxesTooltip.d.ts +2 -3
  126. package/ChartsTooltip/useItemTooltip.d.mts +2 -4
  127. package/ChartsTooltip/useItemTooltip.d.ts +2 -4
  128. package/ChartsTooltip/utils.d.mts +0 -4
  129. package/ChartsTooltip/utils.d.ts +0 -4
  130. package/ChartsTooltip/utils.js +0 -39
  131. package/ChartsTooltip/utils.mjs +0 -38
  132. package/ChartsXAxis/ChartsGroupedXAxisTicks.js +14 -5
  133. package/ChartsXAxis/ChartsGroupedXAxisTicks.mjs +14 -5
  134. package/ChartsXAxis/ChartsSingleXAxisTicks.js +2 -2
  135. package/ChartsXAxis/ChartsSingleXAxisTicks.mjs +2 -2
  136. package/ChartsXAxis/ChartsXAxisImpl.js +3 -1
  137. package/ChartsXAxis/ChartsXAxisImpl.mjs +3 -1
  138. package/ChartsXAxis/useAxisTicksProps.d.mts +170 -89
  139. package/ChartsXAxis/useAxisTicksProps.d.ts +170 -89
  140. package/ChartsYAxis/ChartsGroupedYAxisTicks.js +14 -5
  141. package/ChartsYAxis/ChartsGroupedYAxisTicks.mjs +14 -5
  142. package/ChartsYAxis/ChartsSingleYAxisTicks.js +2 -2
  143. package/ChartsYAxis/ChartsSingleYAxisTicks.mjs +2 -2
  144. package/ChartsYAxis/ChartsYAxisImpl.js +3 -1
  145. package/ChartsYAxis/ChartsYAxisImpl.mjs +3 -1
  146. package/ChartsYAxis/useAxisTicksProps.d.mts +170 -89
  147. package/ChartsYAxis/useAxisTicksProps.d.ts +170 -89
  148. package/Gauge/Gauge.js +8 -0
  149. package/Gauge/Gauge.mjs +8 -0
  150. package/Gauge/GaugeContainer.d.mts +1 -1
  151. package/Gauge/GaugeContainer.d.ts +1 -1
  152. package/Gauge/GaugeContainer.js +10 -2
  153. package/Gauge/GaugeContainer.mjs +10 -2
  154. package/Gauge/index.d.mts +2 -1
  155. package/Gauge/index.d.ts +2 -1
  156. package/Gauge/index.js +7 -11
  157. package/Gauge/index.mjs +1 -1
  158. package/LineChart/AreaElement.d.mts +2 -35
  159. package/LineChart/AreaElement.d.ts +2 -35
  160. package/LineChart/AreaElement.js +8 -42
  161. package/LineChart/AreaElement.mjs +8 -42
  162. package/LineChart/CircleMarkElement.d.mts +1 -1
  163. package/LineChart/CircleMarkElement.d.ts +1 -1
  164. package/LineChart/CircleMarkElement.js +11 -16
  165. package/LineChart/CircleMarkElement.mjs +12 -17
  166. package/LineChart/LineChart.d.mts +2 -2
  167. package/LineChart/LineChart.d.ts +2 -2
  168. package/LineChart/LineChart.js +51 -25
  169. package/LineChart/LineChart.mjs +51 -25
  170. package/LineChart/LineElement.d.mts +2 -35
  171. package/LineChart/LineElement.d.ts +2 -35
  172. package/LineChart/LineElement.js +8 -42
  173. package/LineChart/LineElement.mjs +8 -42
  174. package/LineChart/LineHighlightElement.d.mts +0 -20
  175. package/LineChart/LineHighlightElement.d.ts +0 -20
  176. package/LineChart/LineHighlightElement.js +2 -39
  177. package/LineChart/LineHighlightElement.mjs +2 -39
  178. package/LineChart/LineHighlightPlot.js +2 -2
  179. package/LineChart/LineHighlightPlot.mjs +2 -2
  180. package/LineChart/MarkElement.d.mts +1 -1
  181. package/LineChart/MarkElement.d.ts +1 -1
  182. package/LineChart/MarkElement.js +10 -8
  183. package/LineChart/MarkElement.mjs +11 -9
  184. package/LineChart/MarkPlot.js +2 -2
  185. package/LineChart/MarkPlot.mjs +2 -2
  186. package/LineChart/index.d.mts +0 -2
  187. package/LineChart/index.d.ts +0 -2
  188. package/LineChart/index.js +0 -15
  189. package/LineChart/index.mjs +0 -1
  190. package/LineChart/seriesConfig/curveEvaluation.d.mts +11 -0
  191. package/LineChart/seriesConfig/curveEvaluation.d.ts +11 -0
  192. package/LineChart/seriesConfig/curveEvaluation.js +134 -0
  193. package/LineChart/seriesConfig/curveEvaluation.mjs +129 -0
  194. package/LineChart/seriesConfig/descriptionGetter.d.mts +3 -0
  195. package/LineChart/seriesConfig/descriptionGetter.d.ts +3 -0
  196. package/LineChart/seriesConfig/descriptionGetter.js +37 -0
  197. package/LineChart/seriesConfig/descriptionGetter.mjs +31 -0
  198. package/LineChart/seriesConfig/getItemAtPosition.d.mts +7 -0
  199. package/LineChart/seriesConfig/getItemAtPosition.d.ts +7 -0
  200. package/LineChart/seriesConfig/getItemAtPosition.js +356 -0
  201. package/LineChart/seriesConfig/getItemAtPosition.mjs +351 -0
  202. package/LineChart/seriesConfig/index.js +4 -0
  203. package/LineChart/seriesConfig/index.mjs +4 -0
  204. package/LineChart/seriesConfig/seriesProcessor.js +8 -5
  205. package/LineChart/seriesConfig/seriesProcessor.mjs +8 -5
  206. package/LineChart/useLineChartProps.d.mts +2 -2
  207. package/LineChart/useLineChartProps.d.ts +2 -2
  208. package/LineChart/useLineChartProps.js +2 -2
  209. package/LineChart/useLineChartProps.mjs +2 -2
  210. package/LineChart/useMarkPlotData.js +2 -2
  211. package/LineChart/useMarkPlotData.mjs +2 -2
  212. package/PieChart/FocusedPieArc.js +1 -4
  213. package/PieChart/FocusedPieArc.mjs +2 -4
  214. package/PieChart/PieArc.d.mts +0 -37
  215. package/PieChart/PieArc.d.ts +0 -37
  216. package/PieChart/PieArc.js +5 -45
  217. package/PieChart/PieArc.mjs +5 -45
  218. package/PieChart/PieArcLabel.d.mts +2 -43
  219. package/PieChart/PieArcLabel.d.ts +2 -43
  220. package/PieChart/PieArcLabel.js +3 -46
  221. package/PieChart/PieArcLabel.mjs +5 -48
  222. package/PieChart/PieArcLabelPlot.js +0 -2
  223. package/PieChart/PieArcLabelPlot.mjs +0 -2
  224. package/PieChart/PieChart.d.mts +2 -2
  225. package/PieChart/PieChart.d.ts +2 -2
  226. package/PieChart/PieChart.js +17 -5
  227. package/PieChart/PieChart.mjs +17 -5
  228. package/PieChart/index.d.mts +1 -1
  229. package/PieChart/index.d.ts +1 -1
  230. package/PieChart/seriesConfig/descriptionGetter.d.mts +3 -0
  231. package/PieChart/seriesConfig/descriptionGetter.d.ts +3 -0
  232. package/PieChart/seriesConfig/descriptionGetter.js +26 -0
  233. package/PieChart/seriesConfig/descriptionGetter.mjs +20 -0
  234. package/PieChart/seriesConfig/index.js +2 -0
  235. package/PieChart/seriesConfig/index.mjs +2 -0
  236. package/PieChart/seriesConfig/legend.js +0 -2
  237. package/PieChart/seriesConfig/legend.mjs +0 -2
  238. package/RadarChart/RadarAxis/RadarAxis.d.mts +6 -2
  239. package/RadarChart/RadarAxis/RadarAxis.d.ts +6 -2
  240. package/RadarChart/RadarAxis/RadarAxis.js +7 -5
  241. package/RadarChart/RadarAxis/RadarAxis.mjs +6 -4
  242. package/RadarChart/RadarAxis/index.d.mts +1 -2
  243. package/RadarChart/RadarAxis/index.d.ts +1 -2
  244. package/RadarChart/RadarAxis/index.js +1 -13
  245. package/RadarChart/RadarAxis/index.mjs +1 -2
  246. package/RadarChart/RadarAxis/useRadarAxis.js +2 -2
  247. package/RadarChart/RadarAxis/useRadarAxis.mjs +2 -2
  248. package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.d.mts +6 -2
  249. package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.d.ts +6 -2
  250. package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.js +9 -14
  251. package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.mjs +8 -13
  252. package/RadarChart/RadarAxisHighlight/index.d.mts +1 -2
  253. package/RadarChart/RadarAxisHighlight/index.d.ts +1 -2
  254. package/RadarChart/RadarAxisHighlight/index.mjs +1 -2
  255. package/RadarChart/RadarAxisHighlight/useRadarAxisHighlight.js +2 -2
  256. package/RadarChart/RadarAxisHighlight/useRadarAxisHighlight.mjs +2 -2
  257. package/RadarChart/RadarChart.js +15 -0
  258. package/RadarChart/RadarChart.mjs +15 -0
  259. package/RadarChart/RadarDataProvider/RadarDataProvider.d.mts +2 -2
  260. package/RadarChart/RadarDataProvider/RadarDataProvider.d.ts +2 -2
  261. package/RadarChart/RadarDataProvider/RadarDataProvider.js +2 -2
  262. package/RadarChart/RadarDataProvider/RadarDataProvider.mjs +2 -2
  263. package/RadarChart/RadarGrid/CircularRadarGrid.js +2 -2
  264. package/RadarChart/RadarGrid/CircularRadarGrid.mjs +2 -2
  265. package/RadarChart/RadarGrid/CircularRadarStripes.js +1 -1
  266. package/RadarChart/RadarGrid/CircularRadarStripes.mjs +1 -1
  267. package/RadarChart/RadarGrid/RadarGrid.js +2 -2
  268. package/RadarChart/RadarGrid/RadarGrid.mjs +2 -2
  269. package/RadarChart/RadarGrid/RadarGrid.types.d.mts +6 -7
  270. package/RadarChart/RadarGrid/RadarGrid.types.d.ts +6 -7
  271. package/RadarChart/RadarGrid/SharpRadarGrid.js +2 -2
  272. package/RadarChart/RadarGrid/SharpRadarGrid.mjs +2 -2
  273. package/RadarChart/RadarGrid/SharpRadarStripes.js +1 -1
  274. package/RadarChart/RadarGrid/SharpRadarStripes.mjs +1 -1
  275. package/RadarChart/RadarGrid/index.d.mts +1 -2
  276. package/RadarChart/RadarGrid/index.d.ts +1 -2
  277. package/RadarChart/RadarGrid/useRadarGridData.js +2 -2
  278. package/RadarChart/RadarGrid/useRadarGridData.mjs +2 -2
  279. package/RadarChart/RadarSeriesPlot/RadarSeriesArea.d.mts +2 -2
  280. package/RadarChart/RadarSeriesPlot/RadarSeriesArea.d.ts +2 -2
  281. package/RadarChart/RadarSeriesPlot/RadarSeriesArea.js +6 -6
  282. package/RadarChart/RadarSeriesPlot/RadarSeriesArea.mjs +6 -6
  283. package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.d.mts +13 -4
  284. package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.d.ts +13 -4
  285. package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.js +8 -6
  286. package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.mjs +8 -6
  287. package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.js +5 -3
  288. package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.mjs +4 -2
  289. package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.types.d.mts +6 -4
  290. package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.types.d.ts +6 -4
  291. package/RadarChart/RadarSeriesPlot/index.d.mts +1 -3
  292. package/RadarChart/RadarSeriesPlot/index.d.ts +1 -3
  293. package/RadarChart/RadarSeriesPlot/index.js +2 -10
  294. package/RadarChart/RadarSeriesPlot/index.mjs +1 -2
  295. package/RadarChart/RadarSeriesPlot/useInteractionAllItemProps.js +2 -2
  296. package/RadarChart/RadarSeriesPlot/useInteractionAllItemProps.mjs +2 -2
  297. package/RadarChart/RadarSeriesPlot/useRadarSeriesData.js +2 -2
  298. package/RadarChart/RadarSeriesPlot/useRadarSeriesData.mjs +2 -2
  299. package/RadarChart/index.d.mts +3 -1
  300. package/RadarChart/index.d.ts +3 -1
  301. package/RadarChart/index.js +9 -1
  302. package/RadarChart/index.mjs +2 -1
  303. package/RadarChart/radarClasses.d.mts +30 -0
  304. package/RadarChart/radarClasses.d.ts +30 -0
  305. package/RadarChart/radarClasses.js +33 -0
  306. package/RadarChart/radarClasses.mjs +24 -0
  307. package/RadarChart/seriesConfig/descriptionGetter.d.mts +3 -0
  308. package/RadarChart/seriesConfig/descriptionGetter.d.ts +3 -0
  309. package/RadarChart/seriesConfig/descriptionGetter.js +37 -0
  310. package/RadarChart/seriesConfig/descriptionGetter.mjs +31 -0
  311. package/RadarChart/seriesConfig/index.js +2 -0
  312. package/RadarChart/seriesConfig/index.mjs +2 -0
  313. package/RadarChart/seriesConfig/legend.js +2 -21
  314. package/RadarChart/seriesConfig/legend.mjs +2 -21
  315. package/ScatterChart/BatchScatter.js +3 -3
  316. package/ScatterChart/BatchScatter.mjs +3 -3
  317. package/ScatterChart/Scatter.js +3 -3
  318. package/ScatterChart/Scatter.mjs +3 -3
  319. package/ScatterChart/ScatterChart.d.mts +15 -3
  320. package/ScatterChart/ScatterChart.d.ts +15 -3
  321. package/ScatterChart/ScatterChart.js +73 -31
  322. package/ScatterChart/ScatterChart.mjs +73 -31
  323. package/ScatterChart/seriesConfig/descriptionGetter.d.mts +3 -0
  324. package/ScatterChart/seriesConfig/descriptionGetter.d.ts +3 -0
  325. package/ScatterChart/seriesConfig/descriptionGetter.js +34 -0
  326. package/ScatterChart/seriesConfig/descriptionGetter.mjs +28 -0
  327. package/ScatterChart/seriesConfig/index.js +2 -0
  328. package/ScatterChart/seriesConfig/index.mjs +2 -0
  329. package/ScatterChart/seriesConfig/legend.js +2 -21
  330. package/ScatterChart/seriesConfig/legend.mjs +2 -21
  331. package/ScatterChart/useScatterChartProps.d.mts +2 -2
  332. package/ScatterChart/useScatterChartProps.d.ts +2 -2
  333. package/ScatterChart/useScatterChartProps.js +9 -8
  334. package/ScatterChart/useScatterChartProps.mjs +9 -8
  335. package/SparkLineChart/SparkLineChart.d.mts +2 -2
  336. package/SparkLineChart/SparkLineChart.d.ts +2 -2
  337. package/SparkLineChart/SparkLineChart.js +60 -28
  338. package/SparkLineChart/SparkLineChart.mjs +60 -28
  339. package/constants/index.js +0 -2
  340. package/constants/index.mjs +0 -2
  341. package/context/useChartApiContext.d.mts +1 -1
  342. package/context/useChartApiContext.d.ts +1 -1
  343. package/context/useChartApiContext.js +3 -3
  344. package/context/useChartApiContext.mjs +3 -3
  345. package/hooks/animation/useAnimatePieArcLabel.d.mts +1 -10
  346. package/hooks/animation/useAnimatePieArcLabel.d.ts +1 -10
  347. package/hooks/animation/useAnimatePieArcLabel.js +6 -10
  348. package/hooks/animation/useAnimatePieArcLabel.mjs +6 -10
  349. package/hooks/useChartRootRef.js +2 -2
  350. package/hooks/useChartRootRef.mjs +2 -2
  351. package/hooks/useChartsLayerContainerRef.js +2 -2
  352. package/hooks/useChartsLayerContainerRef.mjs +2 -2
  353. package/hooks/useDataset.js +1 -1
  354. package/hooks/useDataset.mjs +2 -2
  355. package/hooks/useInteractionItemProps.d.mts +1 -1
  356. package/hooks/useInteractionItemProps.d.ts +1 -1
  357. package/hooks/useInteractionItemProps.js +5 -5
  358. package/hooks/useInteractionItemProps.mjs +5 -5
  359. package/hooks/useTicks.js +2 -2
  360. package/hooks/useTicks.mjs +2 -2
  361. package/index.d.mts +0 -3
  362. package/index.d.ts +0 -3
  363. package/index.js +2 -22
  364. package/index.mjs +1 -3
  365. package/internals/components/ChartsAccessibilityProxy/ChartsAccessibilityProxy.d.mts +5 -0
  366. package/internals/components/ChartsAccessibilityProxy/ChartsAccessibilityProxy.d.ts +5 -0
  367. package/internals/components/ChartsAccessibilityProxy/ChartsAccessibilityProxy.js +100 -0
  368. package/internals/components/ChartsAccessibilityProxy/ChartsAccessibilityProxy.mjs +96 -0
  369. package/internals/components/ChartsAccessibilityProxy/index.d.mts +1 -0
  370. package/internals/components/ChartsAccessibilityProxy/index.d.ts +1 -0
  371. package/internals/components/ChartsAccessibilityProxy/index.js +16 -0
  372. package/internals/components/ChartsAccessibilityProxy/index.mjs +1 -0
  373. package/internals/components/ChartsAccessibilityProxy/useDescription.d.mts +5 -0
  374. package/internals/components/ChartsAccessibilityProxy/useDescription.d.ts +5 -0
  375. package/internals/components/ChartsAccessibilityProxy/useDescription.js +71 -0
  376. package/internals/components/ChartsAccessibilityProxy/useDescription.mjs +66 -0
  377. package/internals/consumeSlots.d.mts +1 -1
  378. package/internals/consumeSlots.d.ts +1 -1
  379. package/internals/getChartPoint.js +18 -1
  380. package/internals/getChartPoint.mjs +18 -1
  381. package/internals/identifierCleaner.d.mts +5 -5
  382. package/internals/identifierCleaner.d.ts +5 -5
  383. package/internals/identifierCleaner.js +0 -1
  384. package/internals/identifierCleaner.mjs +0 -1
  385. package/internals/index.d.mts +2 -3
  386. package/internals/index.d.ts +2 -3
  387. package/internals/index.js +27 -36
  388. package/internals/index.mjs +2 -3
  389. package/internals/legendUtils.d.mts +11 -0
  390. package/internals/legendUtils.d.ts +11 -0
  391. package/internals/legendUtils.js +28 -0
  392. package/internals/legendUtils.mjs +22 -0
  393. package/internals/plugins/corePlugins/corePlugins.d.mts +2 -2
  394. package/internals/plugins/corePlugins/corePlugins.d.ts +2 -2
  395. package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.js +2 -2
  396. package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.mjs +2 -2
  397. package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.d.mts +2 -1
  398. package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.d.ts +2 -1
  399. package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.d.mts +2 -4
  400. package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.d.ts +2 -4
  401. package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.js +2 -4
  402. package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.mjs +1 -3
  403. package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.d.mts +19 -9
  404. package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.d.ts +19 -9
  405. package/internals/plugins/corePlugins/useChartSeries/index.d.mts +2 -1
  406. package/internals/plugins/corePlugins/useChartSeries/index.d.ts +2 -1
  407. package/internals/plugins/corePlugins/useChartSeries/index.js +12 -0
  408. package/internals/plugins/corePlugins/useChartSeries/index.mjs +2 -1
  409. package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.mts +21 -6
  410. package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.ts +21 -6
  411. package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.js +20 -9
  412. package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.mjs +20 -9
  413. package/internals/plugins/corePlugins/useChartSeries/useChartSeriesLayout.selectors.d.mts +8 -0
  414. package/internals/plugins/corePlugins/useChartSeries/useChartSeriesLayout.selectors.d.ts +8 -0
  415. package/internals/plugins/corePlugins/useChartSeries/useChartSeriesLayout.selectors.js +19 -0
  416. package/internals/plugins/corePlugins/useChartSeries/useChartSeriesLayout.selectors.mjs +14 -0
  417. package/internals/plugins/corePlugins/useChartSeriesConfig/types/TooltipContent.types.d.mts +18 -0
  418. package/internals/plugins/corePlugins/useChartSeriesConfig/types/TooltipContent.types.d.ts +18 -0
  419. package/internals/plugins/corePlugins/useChartSeriesConfig/types/descriptionGetter.types.d.mts +5 -0
  420. package/internals/plugins/corePlugins/useChartSeriesConfig/types/descriptionGetter.types.d.ts +5 -0
  421. package/internals/plugins/corePlugins/useChartSeriesConfig/types/descriptionGetter.types.js +5 -0
  422. package/internals/plugins/corePlugins/useChartSeriesConfig/types/descriptionGetter.types.mjs +1 -0
  423. package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.d.mts +3 -1
  424. package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.d.ts +3 -1
  425. package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.js +22 -0
  426. package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.mjs +3 -1
  427. package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesConfig.types.d.mts +7 -0
  428. package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesConfig.types.d.ts +7 -0
  429. package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipGetter.types.d.mts +16 -37
  430. package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipGetter.types.d.ts +16 -37
  431. package/internals/plugins/featurePlugins/shared/useRegisterPointerInteractions.d.mts +4 -10
  432. package/internals/plugins/featurePlugins/shared/useRegisterPointerInteractions.d.ts +4 -10
  433. package/internals/plugins/featurePlugins/shared/useRegisterPointerInteractions.js +30 -21
  434. package/internals/plugins/featurePlugins/shared/useRegisterPointerInteractions.mjs +30 -20
  435. package/internals/plugins/featurePlugins/useChartCartesianAxis/autoSizeConstants.d.mts +5 -0
  436. package/internals/plugins/featurePlugins/useChartCartesianAxis/autoSizeConstants.d.ts +5 -0
  437. package/internals/plugins/featurePlugins/useChartCartesianAxis/autoSizeConstants.js +11 -0
  438. package/internals/plugins/featurePlugins/useChartCartesianAxis/autoSizeConstants.mjs +5 -0
  439. package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisAutoSize.d.mts +33 -0
  440. package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisAutoSize.d.ts +33 -0
  441. package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisAutoSize.js +318 -0
  442. package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisAutoSize.mjs +311 -0
  443. package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.d.mts +5 -1
  444. package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.d.ts +5 -1
  445. package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.js +63 -8
  446. package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.mjs +62 -8
  447. package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.js +12 -4
  448. package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.mjs +12 -4
  449. package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.d.mts +13 -3
  450. package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.d.ts +13 -3
  451. package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.js +32 -7
  452. package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.mjs +31 -7
  453. package/internals/plugins/featurePlugins/useChartCartesianAxis/index.d.mts +3 -1
  454. package/internals/plugins/featurePlugins/useChartCartesianAxis/index.d.ts +3 -1
  455. package/internals/plugins/featurePlugins/useChartCartesianAxis/index.js +22 -2
  456. package/internals/plugins/featurePlugins/useChartCartesianAxis/index.mjs +3 -1
  457. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisAutoSize.selectors.d.mts +30 -0
  458. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisAutoSize.selectors.d.ts +30 -0
  459. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisAutoSize.selectors.js +96 -0
  460. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisAutoSize.selectors.mjs +91 -0
  461. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisDomains.selectors.d.mts +16 -0
  462. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisDomains.selectors.d.ts +16 -0
  463. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisDomains.selectors.js +36 -0
  464. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisDomains.selectors.mjs +31 -0
  465. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisExtrema.selectors.d.mts +15 -0
  466. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisExtrema.selectors.d.ts +15 -0
  467. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisExtrema.selectors.js +45 -0
  468. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisExtrema.selectors.mjs +39 -0
  469. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.d.mts +11 -0
  470. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.d.ts +11 -0
  471. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.js +53 -11
  472. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.mjs +52 -11
  473. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.mts +4 -9
  474. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +4 -9
  475. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.js +20 -45
  476. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.mjs +23 -48
  477. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.d.mts +5 -5
  478. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.d.ts +5 -5
  479. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianTooltip.selectors.d.mts +1 -1
  480. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianTooltip.selectors.d.ts +1 -1
  481. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianTooltip.selectors.js +20 -2
  482. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianTooltip.selectors.mjs +20 -2
  483. package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.js +13 -11
  484. package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.mjs +13 -11
  485. package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.types.d.mts +4 -9
  486. package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.types.d.ts +4 -9
  487. package/internals/plugins/featurePlugins/useChartItemClick/useChartItemClick.types.d.mts +3 -3
  488. package/internals/plugins/featurePlugins/useChartItemClick/useChartItemClick.types.d.ts +3 -3
  489. package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.js +36 -30
  490. package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.mjs +36 -30
  491. package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.d.mts +8 -0
  492. package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.d.ts +8 -0
  493. package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.js +9 -2
  494. package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.mjs +9 -2
  495. package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.types.d.mts +6 -0
  496. package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.types.d.ts +6 -0
  497. package/internals/seriesSelectorOfType.d.mts +3 -3
  498. package/internals/seriesSelectorOfType.d.ts +3 -3
  499. package/internals/store/useCharts.d.mts +1 -1
  500. package/internals/store/useCharts.d.ts +1 -1
  501. package/internals/store/useStore.js +2 -2
  502. package/internals/store/useStore.mjs +2 -2
  503. package/locales/elGR.d.mts +80 -0
  504. package/locales/elGR.d.ts +80 -0
  505. package/locales/elGR.js +95 -0
  506. package/locales/elGR.mjs +95 -0
  507. package/locales/enUS.d.mts +80 -0
  508. package/locales/enUS.d.ts +80 -0
  509. package/locales/enUS.js +94 -1
  510. package/locales/enUS.mjs +94 -1
  511. package/locales/frFR.d.mts +80 -0
  512. package/locales/frFR.d.ts +80 -0
  513. package/locales/frFR.js +95 -1
  514. package/locales/frFR.mjs +95 -1
  515. package/locales/nbNO.d.mts +80 -0
  516. package/locales/nbNO.d.ts +80 -0
  517. package/locales/nbNO.js +95 -0
  518. package/locales/nbNO.mjs +95 -0
  519. package/locales/ptBR.d.mts +80 -0
  520. package/locales/ptBR.d.ts +80 -0
  521. package/locales/ptBR.js +95 -0
  522. package/locales/ptBR.mjs +95 -0
  523. package/locales/ptPT.d.mts +80 -0
  524. package/locales/ptPT.d.ts +80 -0
  525. package/locales/ptPT.js +191 -99
  526. package/locales/ptPT.mjs +191 -99
  527. package/locales/svSE.d.mts +80 -0
  528. package/locales/svSE.d.ts +80 -0
  529. package/locales/svSE.js +95 -0
  530. package/locales/svSE.mjs +95 -0
  531. package/locales/utils/chartsLocaleTextApi.d.mts +205 -0
  532. package/locales/utils/chartsLocaleTextApi.d.ts +205 -0
  533. package/locales/utils/getChartsLocalization.d.mts +80 -0
  534. package/locales/utils/getChartsLocalization.d.ts +80 -0
  535. package/models/axis.d.mts +15 -5
  536. package/models/axis.d.ts +15 -5
  537. package/models/seriesType/composition.d.mts +1 -1
  538. package/models/seriesType/composition.d.ts +1 -1
  539. package/models/seriesType/composition.js +1 -1
  540. package/models/seriesType/composition.mjs +1 -1
  541. package/models/seriesType/config.d.mts +29 -0
  542. package/models/seriesType/config.d.ts +29 -0
  543. package/models/seriesType/line.d.mts +2 -1
  544. package/models/seriesType/line.d.ts +2 -1
  545. package/models/seriesType/scatter.d.mts +0 -7
  546. package/models/seriesType/scatter.d.ts +0 -7
  547. package/package.json +3 -31
  548. package/themeAugmentation/components.d.mts +5 -25
  549. package/themeAugmentation/components.d.ts +5 -25
  550. package/themeAugmentation/overrides.d.mts +3 -15
  551. package/themeAugmentation/overrides.d.ts +3 -15
  552. package/themeAugmentation/props.d.mts +0 -2
  553. package/themeAugmentation/props.d.ts +0 -2
  554. package/BarChart/BarLabel/barLabelClasses.d.mts +0 -41
  555. package/BarChart/BarLabel/barLabelClasses.d.ts +0 -41
  556. package/BarChart/BarLabel/barLabelClasses.js +0 -49
  557. package/BarChart/BarLabel/barLabelClasses.mjs +0 -40
  558. package/BarChart/barElementClasses.d.mts +0 -40
  559. package/BarChart/barElementClasses.d.ts +0 -40
  560. package/BarChart/barElementClasses.js +0 -48
  561. package/BarChart/barElementClasses.mjs +0 -39
  562. package/ChartContainer/ChartContainer.d.mts +0 -22
  563. package/ChartContainer/ChartContainer.d.ts +0 -22
  564. package/ChartContainer/ChartContainer.js +0 -24
  565. package/ChartContainer/ChartContainer.mjs +0 -20
  566. package/ChartContainer/index.d.mts +0 -1
  567. package/ChartContainer/index.d.ts +0 -1
  568. package/ChartContainer/index.js +0 -16
  569. package/ChartContainer/index.mjs +0 -1
  570. package/ChartContainer/useChartContainerProps.d.mts +0 -13
  571. package/ChartContainer/useChartContainerProps.d.ts +0 -13
  572. package/ChartContainer/useChartContainerProps.js +0 -19
  573. package/ChartContainer/useChartContainerProps.mjs +0 -14
  574. package/ChartDataProvider/ChartDataProvider.d.mts +0 -20
  575. package/ChartDataProvider/ChartDataProvider.d.ts +0 -20
  576. package/ChartDataProvider/ChartDataProvider.js +0 -24
  577. package/ChartDataProvider/ChartDataProvider.mjs +0 -20
  578. package/ChartDataProvider/index.d.mts +0 -1
  579. package/ChartDataProvider/index.d.ts +0 -1
  580. package/ChartDataProvider/index.js +0 -16
  581. package/ChartDataProvider/index.mjs +0 -1
  582. package/ChartDataProvider/useChartDataProviderProps.d.mts +0 -10
  583. package/ChartDataProvider/useChartDataProviderProps.d.ts +0 -10
  584. package/ChartDataProvider/useChartDataProviderProps.js +0 -12
  585. package/ChartDataProvider/useChartDataProviderProps.mjs +0 -8
  586. package/LineChart/markElementClasses.d.mts +0 -42
  587. package/LineChart/markElementClasses.d.ts +0 -42
  588. package/LineChart/markElementClasses.js +0 -48
  589. package/LineChart/markElementClasses.mjs +0 -40
  590. package/RadarChart/RadarAxis/radarAxisClasses.d.mts +0 -12
  591. package/RadarChart/RadarAxis/radarAxisClasses.d.ts +0 -12
  592. package/RadarChart/RadarAxis/radarAxisClasses.js +0 -25
  593. package/RadarChart/RadarAxis/radarAxisClasses.mjs +0 -15
  594. package/RadarChart/RadarAxisHighlight/radarAxisHighlightClasses.d.mts +0 -11
  595. package/RadarChart/RadarAxisHighlight/radarAxisHighlightClasses.d.ts +0 -11
  596. package/RadarChart/RadarAxisHighlight/radarAxisHighlightClasses.js +0 -14
  597. package/RadarChart/RadarAxisHighlight/radarAxisHighlightClasses.mjs +0 -6
  598. package/RadarChart/RadarGrid/radarGridClasses.d.mts +0 -12
  599. package/RadarChart/RadarGrid/radarGridClasses.d.ts +0 -12
  600. package/RadarChart/RadarGrid/radarGridClasses.js +0 -25
  601. package/RadarChart/RadarGrid/radarGridClasses.mjs +0 -15
  602. package/RadarChart/RadarSeriesPlot/radarSeriesPlotClasses.d.mts +0 -22
  603. package/RadarChart/RadarSeriesPlot/radarSeriesPlotClasses.d.ts +0 -22
  604. package/RadarChart/RadarSeriesPlot/radarSeriesPlotClasses.js +0 -26
  605. package/RadarChart/RadarSeriesPlot/radarSeriesPlotClasses.mjs +0 -17
  606. package/context/ChartProvider/ChartContext.d.mts +0 -5
  607. package/context/ChartProvider/ChartContext.d.ts +0 -5
  608. package/context/ChartProvider/ChartContext.js +0 -13
  609. package/context/ChartProvider/ChartContext.mjs +0 -9
  610. package/context/ChartProvider/ChartProvider.d.mts +0 -5
  611. package/context/ChartProvider/ChartProvider.d.ts +0 -5
  612. package/context/ChartProvider/ChartProvider.js +0 -12
  613. package/context/ChartProvider/ChartProvider.mjs +0 -8
  614. package/context/ChartProvider/ChartProvider.types.d.mts +0 -15
  615. package/context/ChartProvider/ChartProvider.types.d.ts +0 -15
  616. package/context/ChartProvider/index.d.mts +0 -3
  617. package/context/ChartProvider/index.d.ts +0 -3
  618. package/context/ChartProvider/index.js +0 -38
  619. package/context/ChartProvider/index.mjs +0 -3
  620. package/context/ChartProvider/useChartContext.d.mts +0 -4
  621. package/context/ChartProvider/useChartContext.d.ts +0 -4
  622. package/context/ChartProvider/useChartContext.js +0 -12
  623. package/context/ChartProvider/useChartContext.mjs +0 -8
  624. package/tests/constants.js +0 -7
  625. package/tests/constants.mjs +0 -1
  626. /package/{context/ChartProvider/ChartProvider.types.js → internals/plugins/corePlugins/useChartSeriesConfig/types/TooltipContent.types.js} +0 -0
  627. /package/{context/ChartProvider/ChartProvider.types.mjs → internals/plugins/corePlugins/useChartSeriesConfig/types/TooltipContent.types.mjs} +0 -0
@@ -13,9 +13,9 @@ import { ChartsClipPath } from "../ChartsClipPath/index.mjs";
13
13
  import { ChartsGrid } from "../ChartsGrid/index.mjs";
14
14
  import { ChartsOverlay } from "../ChartsOverlay/ChartsOverlay.mjs";
15
15
  import { useBarChartProps } from "./useBarChartProps.mjs";
16
- import { ChartDataProvider } from "../ChartDataProvider/index.mjs";
16
+ import { ChartsDataProvider } from "../ChartsDataProvider/index.mjs";
17
17
  import { ChartsSurface } from "../ChartsSurface/index.mjs";
18
- import { useChartContainerProps } from "../ChartContainer/useChartContainerProps.mjs";
18
+ import { useChartsContainerProps } from "../ChartsContainer/useChartsContainerProps.mjs";
19
19
  import { ChartsWrapper } from "../ChartsWrapper/index.mjs";
20
20
  import { FocusedBar } from "./FocusedBar.mjs";
21
21
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
@@ -37,7 +37,7 @@ const BarChart = /*#__PURE__*/React.forwardRef(function BarChart(inProps, ref) {
37
37
  });
38
38
  const {
39
39
  chartsWrapperProps,
40
- chartContainerProps,
40
+ chartsContainerProps,
41
41
  barPlotProps,
42
42
  gridProps,
43
43
  clipPathProps,
@@ -49,12 +49,12 @@ const BarChart = /*#__PURE__*/React.forwardRef(function BarChart(inProps, ref) {
49
49
  children
50
50
  } = useBarChartProps(props);
51
51
  const {
52
- chartDataProviderProps,
52
+ chartsDataProviderProps,
53
53
  chartsSurfaceProps
54
- } = useChartContainerProps(chartContainerProps);
54
+ } = useChartsContainerProps(chartsContainerProps);
55
55
  const Tooltip = props.slots?.tooltip ?? ChartsTooltip;
56
56
  const Toolbar = props.slots?.toolbar;
57
- return /*#__PURE__*/_jsx(ChartDataProvider, _extends({}, chartDataProviderProps, {
57
+ return /*#__PURE__*/_jsx(ChartsDataProvider, _extends({}, chartsDataProviderProps, {
58
58
  children: /*#__PURE__*/_jsxs(ChartsWrapper, _extends({}, chartsWrapperProps, {
59
59
  ref: ref,
60
60
  children: [props.showToolbar && Toolbar ? /*#__PURE__*/_jsx(Toolbar, _extends({}, props.slotProps?.toolbar)) : null, !props.hideLegend && /*#__PURE__*/_jsx(ChartsLegend, _extends({}, legendProps)), /*#__PURE__*/_jsxs(ChartsSurface, _extends({}, chartsSurfaceProps, {
@@ -89,15 +89,6 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
89
89
  x: PropTypes.oneOf(['band', 'line', 'none']),
90
90
  y: PropTypes.oneOf(['band', 'line', 'none'])
91
91
  }),
92
- /**
93
- * @deprecated Use `barLabel` in the chart series instead.
94
- * If provided, the function will be used to format the label of the bar.
95
- * It can be set to 'value' to display the current value.
96
- * @param {BarItem} item The item to format.
97
- * @param {BarLabelContext} context data about the bar.
98
- * @returns {string} The formatted label.
99
- */
100
- barLabel: PropTypes.oneOfType([PropTypes.oneOf(['value']), PropTypes.func]),
101
92
  /**
102
93
  * Defines the border radius of the bar element.
103
94
  */
@@ -121,6 +112,10 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
121
112
  * An array of objects that can be used to populate series and axes data using their `dataKey` property.
122
113
  */
123
114
  dataset: PropTypes.arrayOf(PropTypes.object),
115
+ /**
116
+ * The description of the chart.
117
+ * Used to provide an accessible description for the chart.
118
+ */
124
119
  desc: PropTypes.string,
125
120
  /**
126
121
  * If `true`, the charts will not listen to the mouse move event.
@@ -132,6 +127,10 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
132
127
  * If `true`, disables keyboard navigation for the chart.
133
128
  */
134
129
  disableKeyboardNavigation: PropTypes.bool,
130
+ /**
131
+ * Options to enable features planned for the next major.
132
+ */
133
+ experimentalFeatures: PropTypes.object,
135
134
  /**
136
135
  * Option to display a cartesian grid in the background.
137
136
  */
@@ -285,7 +284,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
285
284
  onHighlightedAxisChange: PropTypes.func,
286
285
  /**
287
286
  * Callback fired when a bar item is clicked.
288
- * @param {React.MouseEvent<SVGElement, MouseEvent>} event The event source of the callback.
287
+ * @param {MouseEvent} event The event source of the callback.
289
288
  * @param {BarItemIdentifier} barItemIdentifier The bar item identifier.
290
289
  */
291
290
  onItemClick: PropTypes.func,
@@ -339,6 +338,10 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
339
338
  slots: PropTypes.object,
340
339
  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
341
340
  theme: PropTypes.oneOf(['dark', 'light']),
341
+ /**
342
+ * The title of the chart.
343
+ * Used to provide an accessible label for the chart.
344
+ */
342
345
  title: PropTypes.string,
343
346
  /**
344
347
  * The controlled axis tooltip.
@@ -374,6 +377,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
374
377
  barGapRatio: PropTypes.number,
375
378
  categoryGapRatio: PropTypes.number,
376
379
  classes: PropTypes.object,
380
+ className: PropTypes.string,
377
381
  colorMap: PropTypes.oneOfType([PropTypes.shape({
378
382
  colors: PropTypes.arrayOf(PropTypes.string).isRequired,
379
383
  type: PropTypes.oneOf(['ordinal']).isRequired,
@@ -399,7 +403,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
399
403
  tickLabelStyle: PropTypes.object,
400
404
  tickSize: PropTypes.number
401
405
  })),
402
- height: PropTypes.number,
406
+ height: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
403
407
  hideTooltip: PropTypes.bool,
404
408
  id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
405
409
  ignoreTooltip: PropTypes.bool,
@@ -432,6 +436,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
432
436
  }), PropTypes.shape({
433
437
  axis: PropTypes.oneOf(['x']),
434
438
  classes: PropTypes.object,
439
+ className: PropTypes.string,
435
440
  colorMap: PropTypes.oneOfType([PropTypes.shape({
436
441
  colors: PropTypes.arrayOf(PropTypes.string).isRequired,
437
442
  type: PropTypes.oneOf(['ordinal']).isRequired,
@@ -457,7 +462,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
457
462
  tickLabelStyle: PropTypes.object,
458
463
  tickSize: PropTypes.number
459
464
  })),
460
- height: PropTypes.number,
465
+ height: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
461
466
  hideTooltip: PropTypes.bool,
462
467
  id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
463
468
  ignoreTooltip: PropTypes.bool,
@@ -490,6 +495,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
490
495
  }), PropTypes.shape({
491
496
  axis: PropTypes.oneOf(['x']),
492
497
  classes: PropTypes.object,
498
+ className: PropTypes.string,
493
499
  colorMap: PropTypes.oneOfType([PropTypes.shape({
494
500
  color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
495
501
  max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
@@ -505,7 +511,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
505
511
  disableLine: PropTypes.bool,
506
512
  disableTicks: PropTypes.bool,
507
513
  domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
508
- height: PropTypes.number,
514
+ height: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
509
515
  hideTooltip: PropTypes.bool,
510
516
  id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
511
517
  ignoreTooltip: PropTypes.bool,
@@ -535,6 +541,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
535
541
  }), PropTypes.shape({
536
542
  axis: PropTypes.oneOf(['x']),
537
543
  classes: PropTypes.object,
544
+ className: PropTypes.string,
538
545
  colorMap: PropTypes.oneOfType([PropTypes.shape({
539
546
  color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
540
547
  max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
@@ -551,7 +558,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
551
558
  disableLine: PropTypes.bool,
552
559
  disableTicks: PropTypes.bool,
553
560
  domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
554
- height: PropTypes.number,
561
+ height: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
555
562
  hideTooltip: PropTypes.bool,
556
563
  id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
557
564
  ignoreTooltip: PropTypes.bool,
@@ -581,6 +588,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
581
588
  }), PropTypes.shape({
582
589
  axis: PropTypes.oneOf(['x']),
583
590
  classes: PropTypes.object,
591
+ className: PropTypes.string,
584
592
  colorMap: PropTypes.oneOfType([PropTypes.shape({
585
593
  color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
586
594
  max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
@@ -596,7 +604,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
596
604
  disableLine: PropTypes.bool,
597
605
  disableTicks: PropTypes.bool,
598
606
  domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
599
- height: PropTypes.number,
607
+ height: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
600
608
  hideTooltip: PropTypes.bool,
601
609
  id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
602
610
  ignoreTooltip: PropTypes.bool,
@@ -626,6 +634,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
626
634
  }), PropTypes.shape({
627
635
  axis: PropTypes.oneOf(['x']),
628
636
  classes: PropTypes.object,
637
+ className: PropTypes.string,
629
638
  colorMap: PropTypes.oneOfType([PropTypes.shape({
630
639
  color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
631
640
  max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
@@ -641,7 +650,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
641
650
  disableLine: PropTypes.bool,
642
651
  disableTicks: PropTypes.bool,
643
652
  domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
644
- height: PropTypes.number,
653
+ height: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
645
654
  hideTooltip: PropTypes.bool,
646
655
  id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
647
656
  ignoreTooltip: PropTypes.bool,
@@ -671,6 +680,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
671
680
  }), PropTypes.shape({
672
681
  axis: PropTypes.oneOf(['x']),
673
682
  classes: PropTypes.object,
683
+ className: PropTypes.string,
674
684
  colorMap: PropTypes.oneOfType([PropTypes.shape({
675
685
  color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
676
686
  max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
@@ -686,7 +696,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
686
696
  disableLine: PropTypes.bool,
687
697
  disableTicks: PropTypes.bool,
688
698
  domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
689
- height: PropTypes.number,
699
+ height: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
690
700
  hideTooltip: PropTypes.bool,
691
701
  id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
692
702
  ignoreTooltip: PropTypes.bool,
@@ -720,6 +730,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
720
730
  }), PropTypes.shape({
721
731
  axis: PropTypes.oneOf(['x']),
722
732
  classes: PropTypes.object,
733
+ className: PropTypes.string,
723
734
  colorMap: PropTypes.oneOfType([PropTypes.shape({
724
735
  color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
725
736
  max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
@@ -735,7 +746,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
735
746
  disableLine: PropTypes.bool,
736
747
  disableTicks: PropTypes.bool,
737
748
  domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
738
- height: PropTypes.number,
749
+ height: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
739
750
  hideTooltip: PropTypes.bool,
740
751
  id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
741
752
  ignoreTooltip: PropTypes.bool,
@@ -769,6 +780,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
769
780
  }), PropTypes.shape({
770
781
  axis: PropTypes.oneOf(['x']),
771
782
  classes: PropTypes.object,
783
+ className: PropTypes.string,
772
784
  colorMap: PropTypes.oneOfType([PropTypes.shape({
773
785
  color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
774
786
  max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
@@ -784,7 +796,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
784
796
  disableLine: PropTypes.bool,
785
797
  disableTicks: PropTypes.bool,
786
798
  domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
787
- height: PropTypes.number,
799
+ height: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
788
800
  hideTooltip: PropTypes.bool,
789
801
  id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
790
802
  ignoreTooltip: PropTypes.bool,
@@ -822,6 +834,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
822
834
  barGapRatio: PropTypes.number,
823
835
  categoryGapRatio: PropTypes.number,
824
836
  classes: PropTypes.object,
837
+ className: PropTypes.string,
825
838
  colorMap: PropTypes.oneOfType([PropTypes.shape({
826
839
  colors: PropTypes.arrayOf(PropTypes.string).isRequired,
827
840
  type: PropTypes.oneOf(['ordinal']).isRequired,
@@ -875,10 +888,11 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
875
888
  tickSize: PropTypes.number,
876
889
  tickSpacing: PropTypes.number,
877
890
  valueFormatter: PropTypes.func,
878
- width: PropTypes.number
891
+ width: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number])
879
892
  }), PropTypes.shape({
880
893
  axis: PropTypes.oneOf(['y']),
881
894
  classes: PropTypes.object,
895
+ className: PropTypes.string,
882
896
  colorMap: PropTypes.oneOfType([PropTypes.shape({
883
897
  colors: PropTypes.arrayOf(PropTypes.string).isRequired,
884
898
  type: PropTypes.oneOf(['ordinal']).isRequired,
@@ -932,10 +946,11 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
932
946
  tickSize: PropTypes.number,
933
947
  tickSpacing: PropTypes.number,
934
948
  valueFormatter: PropTypes.func,
935
- width: PropTypes.number
949
+ width: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number])
936
950
  }), PropTypes.shape({
937
951
  axis: PropTypes.oneOf(['y']),
938
952
  classes: PropTypes.object,
953
+ className: PropTypes.string,
939
954
  colorMap: PropTypes.oneOfType([PropTypes.shape({
940
955
  color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
941
956
  max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
@@ -976,10 +991,11 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
976
991
  tickSize: PropTypes.number,
977
992
  tickSpacing: PropTypes.number,
978
993
  valueFormatter: PropTypes.func,
979
- width: PropTypes.number
994
+ width: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number])
980
995
  }), PropTypes.shape({
981
996
  axis: PropTypes.oneOf(['y']),
982
997
  classes: PropTypes.object,
998
+ className: PropTypes.string,
983
999
  colorMap: PropTypes.oneOfType([PropTypes.shape({
984
1000
  color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
985
1001
  max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
@@ -1021,10 +1037,11 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
1021
1037
  tickSize: PropTypes.number,
1022
1038
  tickSpacing: PropTypes.number,
1023
1039
  valueFormatter: PropTypes.func,
1024
- width: PropTypes.number
1040
+ width: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number])
1025
1041
  }), PropTypes.shape({
1026
1042
  axis: PropTypes.oneOf(['y']),
1027
1043
  classes: PropTypes.object,
1044
+ className: PropTypes.string,
1028
1045
  colorMap: PropTypes.oneOfType([PropTypes.shape({
1029
1046
  color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
1030
1047
  max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
@@ -1065,10 +1082,11 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
1065
1082
  tickSize: PropTypes.number,
1066
1083
  tickSpacing: PropTypes.number,
1067
1084
  valueFormatter: PropTypes.func,
1068
- width: PropTypes.number
1085
+ width: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number])
1069
1086
  }), PropTypes.shape({
1070
1087
  axis: PropTypes.oneOf(['y']),
1071
1088
  classes: PropTypes.object,
1089
+ className: PropTypes.string,
1072
1090
  colorMap: PropTypes.oneOfType([PropTypes.shape({
1073
1091
  color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
1074
1092
  max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
@@ -1109,10 +1127,11 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
1109
1127
  tickSize: PropTypes.number,
1110
1128
  tickSpacing: PropTypes.number,
1111
1129
  valueFormatter: PropTypes.func,
1112
- width: PropTypes.number
1130
+ width: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number])
1113
1131
  }), PropTypes.shape({
1114
1132
  axis: PropTypes.oneOf(['y']),
1115
1133
  classes: PropTypes.object,
1134
+ className: PropTypes.string,
1116
1135
  colorMap: PropTypes.oneOfType([PropTypes.shape({
1117
1136
  color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
1118
1137
  max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
@@ -1157,10 +1176,11 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
1157
1176
  tickSize: PropTypes.number,
1158
1177
  tickSpacing: PropTypes.number,
1159
1178
  valueFormatter: PropTypes.func,
1160
- width: PropTypes.number
1179
+ width: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number])
1161
1180
  }), PropTypes.shape({
1162
1181
  axis: PropTypes.oneOf(['y']),
1163
1182
  classes: PropTypes.object,
1183
+ className: PropTypes.string,
1164
1184
  colorMap: PropTypes.oneOfType([PropTypes.shape({
1165
1185
  color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
1166
1186
  max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
@@ -1205,10 +1225,11 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
1205
1225
  tickSize: PropTypes.number,
1206
1226
  tickSpacing: PropTypes.number,
1207
1227
  valueFormatter: PropTypes.func,
1208
- width: PropTypes.number
1228
+ width: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number])
1209
1229
  }), PropTypes.shape({
1210
1230
  axis: PropTypes.oneOf(['y']),
1211
1231
  classes: PropTypes.object,
1232
+ className: PropTypes.string,
1212
1233
  colorMap: PropTypes.oneOfType([PropTypes.shape({
1213
1234
  color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
1214
1235
  max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
@@ -1249,7 +1270,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
1249
1270
  tickSize: PropTypes.number,
1250
1271
  tickSpacing: PropTypes.number,
1251
1272
  valueFormatter: PropTypes.func,
1252
- width: PropTypes.number
1273
+ width: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number])
1253
1274
  })]).isRequired)
1254
1275
  } : void 0;
1255
1276
  export { BarChart };
@@ -13,8 +13,6 @@ var React = _interopRequireWildcard(require("react"));
13
13
  var _propTypes = _interopRequireDefault(require("prop-types"));
14
14
  var _useSlotProps = _interopRequireDefault(require("@mui/utils/useSlotProps"));
15
15
  var _barClasses = require("./barClasses");
16
- var _barElementClasses = require("./barElementClasses");
17
- var _useInteractionItemProps = require("../hooks/useInteractionItemProps");
18
16
  var _useItemHighlightState = require("../hooks/useItemHighlightState");
19
17
  var _AnimatedBarElement = require("./AnimatedBarElement");
20
18
  var _useIsItemFocused = require("../hooks/useIsItemFocused");
@@ -46,7 +44,6 @@ function BarElement(props) {
46
44
  seriesId,
47
45
  dataIndex
48
46
  }), [seriesId, dataIndex]);
49
- const interactionProps = (0, _useInteractionItemProps.useInteractionItemProps)(itemIdentifier);
50
47
  const highlightState = (0, _useItemHighlightState.useItemHighlightState)(itemIdentifier);
51
48
  const isHighlighted = highlightState === 'highlighted';
52
49
  const isFaded = highlightState === 'faded';
@@ -65,13 +62,12 @@ function BarElement(props) {
65
62
  isFocused
66
63
  };
67
64
  const classes = (0, _barClasses.useUtilityClasses)(ownerState);
68
- const deprecatedClasses = (0, _barElementClasses.useUtilityClasses)(ownerState);
69
65
  const Bar = slots?.bar ?? _AnimatedBarElement.AnimatedBarElement;
70
66
  const barProps = (0, _useSlotProps.default)({
71
67
  elementType: Bar,
72
68
  externalSlotProps: slotProps?.bar,
73
69
  externalForwardedProps: other,
74
- additionalProps: (0, _extends2.default)({}, interactionProps, {
70
+ additionalProps: {
75
71
  seriesId,
76
72
  dataIndex,
77
73
  color,
@@ -83,14 +79,14 @@ function BarElement(props) {
83
79
  height,
84
80
  style,
85
81
  onClick,
86
- cursor: onClick ? 'pointer' : 'unset',
82
+ cursor: onClick ? 'pointer' : undefined,
87
83
  stroke: 'none',
88
84
  fill: color,
89
85
  skipAnimation,
90
86
  layout,
91
87
  hidden
92
- }),
93
- className: `${classes.element} ${deprecatedClasses.root}`,
88
+ },
89
+ className: classes.element,
94
90
  ownerState
95
91
  });
96
92
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(Bar, (0, _extends2.default)({}, barProps));
@@ -7,8 +7,6 @@ import * as React from 'react';
7
7
  import PropTypes from 'prop-types';
8
8
  import useSlotProps from '@mui/utils/useSlotProps';
9
9
  import { useUtilityClasses } from "./barClasses.mjs";
10
- import { useUtilityClasses as useDeprecatedUtilityClasses } from "./barElementClasses.mjs";
11
- import { useInteractionItemProps } from "../hooks/useInteractionItemProps.mjs";
12
10
  import { useItemHighlightState } from "../hooks/useItemHighlightState.mjs";
13
11
  import { AnimatedBarElement } from "./AnimatedBarElement.mjs";
14
12
  import { useIsItemFocused } from "../hooks/useIsItemFocused.mjs";
@@ -39,7 +37,6 @@ function BarElement(props) {
39
37
  seriesId,
40
38
  dataIndex
41
39
  }), [seriesId, dataIndex]);
42
- const interactionProps = useInteractionItemProps(itemIdentifier);
43
40
  const highlightState = useItemHighlightState(itemIdentifier);
44
41
  const isHighlighted = highlightState === 'highlighted';
45
42
  const isFaded = highlightState === 'faded';
@@ -58,13 +55,12 @@ function BarElement(props) {
58
55
  isFocused
59
56
  };
60
57
  const classes = useUtilityClasses(ownerState);
61
- const deprecatedClasses = useDeprecatedUtilityClasses(ownerState);
62
58
  const Bar = slots?.bar ?? AnimatedBarElement;
63
59
  const barProps = useSlotProps({
64
60
  elementType: Bar,
65
61
  externalSlotProps: slotProps?.bar,
66
62
  externalForwardedProps: other,
67
- additionalProps: _extends({}, interactionProps, {
63
+ additionalProps: {
68
64
  seriesId,
69
65
  dataIndex,
70
66
  color,
@@ -76,14 +72,14 @@ function BarElement(props) {
76
72
  height,
77
73
  style,
78
74
  onClick,
79
- cursor: onClick ? 'pointer' : 'unset',
75
+ cursor: onClick ? 'pointer' : undefined,
80
76
  stroke: 'none',
81
77
  fill: color,
82
78
  skipAnimation,
83
79
  layout,
84
80
  hidden
85
- }),
86
- className: `${classes.element} ${deprecatedClasses.root}`,
81
+ },
82
+ className: classes.element,
87
83
  ownerState
88
84
  });
89
85
  return /*#__PURE__*/_jsx(Bar, _extends({}, barProps));
@@ -14,22 +14,12 @@ var React = _interopRequireWildcard(require("react"));
14
14
  var _styles = require("@mui/material/styles");
15
15
  var _propTypes = _interopRequireDefault(require("prop-types"));
16
16
  var _useAnimateBarLabel = require("../../hooks/animation/useAnimateBarLabel");
17
- var _barLabelClasses = require("./barLabelClasses");
18
17
  var _animation = require("../../internals/animation/animation");
19
18
  var _jsxRuntime = require("react/jsx-runtime");
20
19
  const _excluded = ["seriesId", "dataIndex", "color", "isFaded", "isHighlighted", "classes", "skipAnimation", "layout", "xOrigin", "yOrigin", "placement", "hidden"];
21
20
  const BarLabelComponent = exports.BarLabelComponent = (0, _styles.styled)('text', {
22
21
  name: 'MuiBarLabel',
23
- slot: 'Root',
24
- overridesResolver: (_, styles) => [{
25
- [`&.${_barLabelClasses.barLabelClasses.faded}`]: styles.faded
26
- }, {
27
- [`&.${_barLabelClasses.barLabelClasses.highlighted}`]: styles.highlighted
28
- }, {
29
- [`&[data-faded]`]: styles.faded
30
- }, {
31
- [`&[data-highlighted]`]: styles.highlighted
32
- }, styles.root]
22
+ slot: 'Root'
33
23
  })(({
34
24
  theme
35
25
  }) => (0, _extends2.default)({}, theme?.typography?.body2, {
@@ -7,21 +7,11 @@ import * as React from 'react';
7
7
  import { styled, useThemeProps } from '@mui/material/styles';
8
8
  import PropTypes from 'prop-types';
9
9
  import { useAnimateBarLabel } from "../../hooks/animation/useAnimateBarLabel.mjs";
10
- import { barLabelClasses } from "./barLabelClasses.mjs";
11
10
  import { ANIMATION_DURATION_MS, ANIMATION_TIMING_FUNCTION } from "../../internals/animation/animation.mjs";
12
11
  import { jsx as _jsx } from "react/jsx-runtime";
13
12
  export const BarLabelComponent = styled('text', {
14
13
  name: 'MuiBarLabel',
15
- slot: 'Root',
16
- overridesResolver: (_, styles) => [{
17
- [`&.${barLabelClasses.faded}`]: styles.faded
18
- }, {
19
- [`&.${barLabelClasses.highlighted}`]: styles.highlighted
20
- }, {
21
- [`&[data-faded]`]: styles.faded
22
- }, {
23
- [`&[data-highlighted]`]: styles.highlighted
24
- }, styles.root]
14
+ slot: 'Root'
25
15
  })(({
26
16
  theme
27
17
  }) => _extends({}, theme?.typography?.body2, {
@@ -12,7 +12,6 @@ var React = _interopRequireWildcard(require("react"));
12
12
  var _useSlotProps2 = _interopRequireDefault(require("@mui/utils/useSlotProps"));
13
13
  var _propTypes = _interopRequireDefault(require("prop-types"));
14
14
  var _barClasses = require("../barClasses");
15
- var _barLabelClasses = require("./barLabelClasses");
16
15
  var _getBarLabel = require("./getBarLabel");
17
16
  var _BarLabel = require("./BarLabel");
18
17
  var _useItemHighlightState = require("../../hooks/useItemHighlightState");
@@ -62,7 +61,6 @@ function BarLabelItem(props) {
62
61
  layout
63
62
  };
64
63
  const classes = (0, _barClasses.useUtilityClasses)(ownerState);
65
- const deprecatedClasses = (0, _barLabelClasses.useUtilityClasses)(ownerState);
66
64
  const Component = slots?.barLabel ?? _BarLabel.BarLabel;
67
65
  const _useSlotProps = (0, _useSlotProps2.default)({
68
66
  elementType: Component,
@@ -75,7 +73,7 @@ function BarLabelItem(props) {
75
73
  width,
76
74
  height,
77
75
  placement: barLabelPlacement,
78
- className: `${classes.label} ${deprecatedClasses.root}`,
76
+ className: classes.label,
79
77
  'data-highlighted': isHighlighted || undefined,
80
78
  'data-faded': isFaded || undefined
81
79
  }),
@@ -6,7 +6,6 @@ import * as React from 'react';
6
6
  import useSlotProps from '@mui/utils/useSlotProps';
7
7
  import PropTypes from 'prop-types';
8
8
  import { useUtilityClasses } from "../barClasses.mjs";
9
- import { useUtilityClasses as useDeprecatedUtilityClasses } from "./barLabelClasses.mjs";
10
9
  import { getBarLabel } from "./getBarLabel.mjs";
11
10
  import { BarLabel } from "./BarLabel.mjs";
12
11
  import { useItemHighlightState } from "../../hooks/useItemHighlightState.mjs";
@@ -54,7 +53,6 @@ function BarLabelItem(props) {
54
53
  layout
55
54
  };
56
55
  const classes = useUtilityClasses(ownerState);
57
- const deprecatedClasses = useDeprecatedUtilityClasses(ownerState);
58
56
  const Component = slots?.barLabel ?? BarLabel;
59
57
  const _useSlotProps = useSlotProps({
60
58
  elementType: Component,
@@ -67,7 +65,7 @@ function BarLabelItem(props) {
67
65
  width,
68
66
  height,
69
67
  placement: barLabelPlacement,
70
- className: `${classes.label} ${deprecatedClasses.root}`,
68
+ className: classes.label,
71
69
  'data-highlighted': isHighlighted || undefined,
72
70
  'data-faded': isFaded || undefined
73
71
  }),
@@ -1,5 +1,4 @@
1
1
  import { type AnimationData } from "../types.mjs";
2
- import { type BarLabelItemProps } from "./BarLabelItem.mjs";
3
2
  import type { SeriesId } from "../../models/seriesType/common.mjs";
4
3
  import { type BarSeriesType, type BarValueType } from "../../models/seriesType/bar.mjs";
5
4
  import { type BarLabelFunction } from "./BarLabel.types.mjs";
@@ -7,7 +6,6 @@ interface BarLabelPlotProps {
7
6
  processedSeries: ProcessedBarLabelSeriesData;
8
7
  className: string;
9
8
  skipAnimation?: boolean;
10
- barLabel?: BarLabelItemProps<BarValueType | null>['barLabel'];
11
9
  }
12
10
  export interface ProcessedBarLabelSeriesData {
13
11
  seriesId: SeriesId;
@@ -1,5 +1,4 @@
1
1
  import { type AnimationData } from "../types.js";
2
- import { type BarLabelItemProps } from "./BarLabelItem.js";
3
2
  import type { SeriesId } from "../../models/seriesType/common.js";
4
3
  import { type BarSeriesType, type BarValueType } from "../../models/seriesType/bar.js";
5
4
  import { type BarLabelFunction } from "./BarLabel.types.js";
@@ -7,7 +6,6 @@ interface BarLabelPlotProps {
7
6
  processedSeries: ProcessedBarLabelSeriesData;
8
7
  className: string;
9
8
  skipAnimation?: boolean;
10
- barLabel?: BarLabelItemProps<BarValueType | null>['barLabel'];
11
9
  }
12
10
  export interface ProcessedBarLabelSeriesData {
13
11
  seriesId: SeriesId;
@@ -29,8 +29,7 @@ function BarLabelPlot(props) {
29
29
  xOrigin,
30
30
  yOrigin
31
31
  } = processedSeries;
32
- const barLabel = processedSeries.barLabel ?? props.barLabel;
33
- if (!barLabel) {
32
+ if (!processedSeries.barLabel) {
34
33
  return null;
35
34
  }
36
35
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("g", {
@@ -60,7 +59,7 @@ function BarLabelPlot(props) {
60
59
  layout: layout ?? 'vertical',
61
60
  hidden: hidden
62
61
  }, other, {
63
- barLabel: barLabel,
62
+ barLabel: processedSeries.barLabel,
64
63
  barLabelPlacement: processedSeries.barLabelPlacement || 'center'
65
64
  }), dataIndex))
66
65
  }, seriesId);
@@ -21,8 +21,7 @@ function BarLabelPlot(props) {
21
21
  xOrigin,
22
22
  yOrigin
23
23
  } = processedSeries;
24
- const barLabel = processedSeries.barLabel ?? props.barLabel;
25
- if (!barLabel) {
24
+ if (!processedSeries.barLabel) {
26
25
  return null;
27
26
  }
28
27
  return /*#__PURE__*/_jsx("g", {
@@ -52,7 +51,7 @@ function BarLabelPlot(props) {
52
51
  layout: layout ?? 'vertical',
53
52
  hidden: hidden
54
53
  }, other, {
55
- barLabel: barLabel,
54
+ barLabel: processedSeries.barLabel,
56
55
  barLabelPlacement: processedSeries.barLabelPlacement || 'center'
57
56
  }), dataIndex))
58
57
  }, seriesId);
@@ -1,6 +1,4 @@
1
1
  export { BarLabel } from "./BarLabel.mjs";
2
2
  export type { BarLabelProps } from "./BarLabel.mjs";
3
- export { barLabelClasses, getBarLabelUtilityClass } from "./barLabelClasses.mjs";
4
3
  export type { BarLabelSlotProps, BarLabelSlots } from "./BarLabelItem.mjs";
5
- export type { BarLabelOwnerState, BarItem, BarLabelContext } from "./BarLabel.types.mjs";
6
- export type { BarLabelClasses, BarLabelClassKey } from "./barLabelClasses.mjs";
4
+ export type { BarLabelOwnerState, BarItem, BarLabelContext } from "./BarLabel.types.mjs";
@@ -1,6 +1,4 @@
1
1
  export { BarLabel } from "./BarLabel.js";
2
2
  export type { BarLabelProps } from "./BarLabel.js";
3
- export { barLabelClasses, getBarLabelUtilityClass } from "./barLabelClasses.js";
4
3
  export type { BarLabelSlotProps, BarLabelSlots } from "./BarLabelItem.js";
5
- export type { BarLabelOwnerState, BarItem, BarLabelContext } from "./BarLabel.types.js";
6
- export type { BarLabelClasses, BarLabelClassKey } from "./barLabelClasses.js";
4
+ export type { BarLabelOwnerState, BarItem, BarLabelContext } from "./BarLabel.types.js";
@@ -9,17 +9,4 @@ Object.defineProperty(exports, "BarLabel", {
9
9
  return _BarLabel.BarLabel;
10
10
  }
11
11
  });
12
- Object.defineProperty(exports, "barLabelClasses", {
13
- enumerable: true,
14
- get: function () {
15
- return _barLabelClasses.barLabelClasses;
16
- }
17
- });
18
- Object.defineProperty(exports, "getBarLabelUtilityClass", {
19
- enumerable: true,
20
- get: function () {
21
- return _barLabelClasses.getBarLabelUtilityClass;
22
- }
23
- });
24
- var _BarLabel = require("./BarLabel");
25
- var _barLabelClasses = require("./barLabelClasses");
12
+ var _BarLabel = require("./BarLabel");