@mui/x-charts 8.1.0 → 8.3.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 (508) hide show
  1. package/BarChart/BarChart.js +1 -1
  2. package/BarChart/BarLabel/BarLabel.types.d.ts +1 -1
  3. package/BarChart/BarLabel/BarLabelPlot.d.ts +1 -1
  4. package/BarChart/BarLabel/barLabelClasses.d.ts +1 -1
  5. package/BarChart/BarLabel/index.d.ts +4 -4
  6. package/BarChart/checkScaleErrors.d.ts +3 -3
  7. package/BarChart/checkScaleErrors.js +4 -4
  8. package/BarChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
  9. package/BarChart/seriesConfig/seriesProcessor.js +2 -2
  10. package/BarChart/seriesConfig/tooltip.d.ts +1 -1
  11. package/BarChart/types.d.ts +2 -2
  12. package/BarChart/useBarChartProps.d.ts +2 -2
  13. package/BarChart/useBarChartProps.js +20 -2
  14. package/CHANGELOG.md +233 -7
  15. package/ChartContainer/ChartContainer.js +1 -1
  16. package/ChartContainer/useChartContainerProps.d.ts +1 -1
  17. package/ChartDataProvider/useChartDataProviderProps.d.ts +2 -2
  18. package/ChartsAxisHighlight/ChartsXAxisHighlight.js +1 -1
  19. package/ChartsAxisHighlight/ChartsYAxisHighlight.js +1 -1
  20. package/ChartsClipPath/ChartsClipPath.d.ts +8 -0
  21. package/ChartsClipPath/ChartsClipPath.js +8 -0
  22. package/ChartsGrid/ChartsHorizontalGrid.d.ts +2 -2
  23. package/ChartsGrid/ChartsVerticalGrid.d.ts +2 -2
  24. package/ChartsLabel/ChartsLabelMark.js +8 -4
  25. package/ChartsLabel/index.d.ts +4 -4
  26. package/ChartsLabel/labelClasses.d.ts +1 -1
  27. package/ChartsLabel/labelGradientClasses.d.ts +1 -1
  28. package/ChartsLabel/labelMarkClasses.d.ts +1 -1
  29. package/ChartsLegend/ChartsLegend.d.ts +2 -2
  30. package/ChartsLegend/ContinuousColorLegend.d.ts +1 -1
  31. package/ChartsLegend/PiecewiseColorLegend.d.ts +1 -1
  32. package/ChartsLegend/chartsLegend.types.d.ts +1 -1
  33. package/ChartsLegend/chartsLegendClasses.d.ts +2 -2
  34. package/ChartsLegend/continuousColorLegendClasses.d.ts +2 -2
  35. package/ChartsLegend/index.d.ts +4 -4
  36. package/ChartsLegend/piecewiseColorLegendClasses.d.ts +2 -2
  37. package/ChartsLegend/useAxis.d.ts +2 -2
  38. package/ChartsLocalizationProvider/ChartsLocalizationProvider.d.ts +1 -1
  39. package/ChartsLocalizationProvider/index.d.ts +1 -1
  40. package/ChartsOverlay/ChartsLoadingOverlay.d.ts +1 -1
  41. package/ChartsOverlay/ChartsNoDataOverlay.d.ts +1 -1
  42. package/ChartsOverlay/index.d.ts +1 -1
  43. package/ChartsReferenceLine/ChartsReferenceLine.js +2 -2
  44. package/ChartsReferenceLine/ChartsXReferenceLine.js +1 -1
  45. package/ChartsReferenceLine/ChartsYReferenceLine.js +1 -1
  46. package/ChartsText/index.d.ts +2 -2
  47. package/ChartsTooltip/ChartsTooltipContainer.js +1 -0
  48. package/ChartsTooltip/index.d.ts +3 -3
  49. package/ChartsTooltip/useAxisTooltip.d.ts +2 -2
  50. package/LineChart/AnimatedArea.d.ts +1 -1
  51. package/LineChart/AnimatedLine.d.ts +1 -1
  52. package/LineChart/AppearingMask.js +1 -2
  53. package/LineChart/AreaPlot.js +2 -2
  54. package/LineChart/CircleMarkElement.d.ts +10 -0
  55. package/LineChart/CircleMarkElement.js +5 -15
  56. package/LineChart/LineChart.js +1 -1
  57. package/LineChart/LineHighlightPlot.js +1 -1
  58. package/LineChart/LinePlot.js +2 -2
  59. package/LineChart/MarkElement.d.ts +10 -0
  60. package/LineChart/MarkElement.js +15 -15
  61. package/LineChart/MarkPlot.js +19 -3
  62. package/LineChart/index.d.ts +1 -1
  63. package/LineChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
  64. package/LineChart/seriesConfig/seriesProcessor.js +2 -2
  65. package/LineChart/seriesConfig/tooltip.d.ts +1 -1
  66. package/LineChart/useLineChartProps.d.ts +2 -2
  67. package/PieChart/PieArcLabel.js +3 -4
  68. package/PieChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
  69. package/PieChart/seriesConfig/tooltip.d.ts +1 -1
  70. package/RadarChart/RadarGrid/index.d.ts +1 -1
  71. package/RadarChart/RadarSeriesPlot/index.d.ts +2 -2
  72. package/RadarChart/RadarSeriesPlot/useRadarSeriesData.d.ts +3 -3
  73. package/RadarChart/index.d.ts +2 -2
  74. package/RadarChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
  75. package/RadarChart/seriesConfig/tooltip.d.ts +1 -1
  76. package/RadarChart/useRadarChartProps.d.ts +2 -2
  77. package/ScatterChart/ScatterChart.js +1 -1
  78. package/ScatterChart/ScatterMarker.types.d.ts +1 -1
  79. package/ScatterChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
  80. package/ScatterChart/seriesConfig/seriesProcessor.js +1 -1
  81. package/ScatterChart/seriesConfig/tooltip.d.ts +1 -1
  82. package/ScatterChart/useScatterChartProps.d.ts +3 -3
  83. package/SparkLineChart/SparkLineChart.d.ts +19 -0
  84. package/SparkLineChart/SparkLineChart.js +53 -16
  85. package/Toolbar/Toolbar.d.ts +5 -0
  86. package/Toolbar/Toolbar.js +34 -0
  87. package/Toolbar/ToolbarButton.d.ts +5 -0
  88. package/Toolbar/ToolbarButton.js +27 -0
  89. package/Toolbar/index.d.ts +2 -0
  90. package/Toolbar/index.js +27 -0
  91. package/colorPalettes/categorical/blueberryTwilight.d.ts +4 -0
  92. package/colorPalettes/categorical/blueberryTwilight.js +10 -0
  93. package/colorPalettes/categorical/cheerfulFiesta.d.ts +4 -0
  94. package/colorPalettes/categorical/cheerfulFiesta.js +10 -0
  95. package/colorPalettes/categorical/mangoFusion.d.ts +4 -0
  96. package/colorPalettes/categorical/mangoFusion.js +10 -0
  97. package/colorPalettes/categorical/rainbowSurge.d.ts +4 -0
  98. package/colorPalettes/categorical/rainbowSurge.js +10 -0
  99. package/colorPalettes/index.d.ts +14 -1
  100. package/colorPalettes/index.js +147 -4
  101. package/colorPalettes/sequential/blue.d.ts +4 -0
  102. package/colorPalettes/sequential/blue.js +12 -0
  103. package/colorPalettes/sequential/cyan.d.ts +4 -0
  104. package/colorPalettes/sequential/cyan.js +12 -0
  105. package/colorPalettes/sequential/green.d.ts +4 -0
  106. package/colorPalettes/sequential/green.js +12 -0
  107. package/colorPalettes/sequential/orange.d.ts +4 -0
  108. package/colorPalettes/sequential/orange.js +12 -0
  109. package/colorPalettes/sequential/pink.d.ts +4 -0
  110. package/colorPalettes/sequential/pink.js +12 -0
  111. package/colorPalettes/sequential/purple.d.ts +4 -0
  112. package/colorPalettes/sequential/purple.js +12 -0
  113. package/colorPalettes/sequential/red.d.ts +4 -0
  114. package/colorPalettes/sequential/red.js +12 -0
  115. package/colorPalettes/sequential/strawberrySky.d.ts +4 -0
  116. package/colorPalettes/sequential/strawberrySky.js +10 -0
  117. package/colorPalettes/sequential/yellow.d.ts +4 -0
  118. package/colorPalettes/sequential/yellow.js +12 -0
  119. package/colorPalettes/types.d.ts +4 -0
  120. package/colorPalettes/types.js +5 -0
  121. package/context/ChartProvider/ChartContext.d.ts +1 -1
  122. package/context/ChartProvider/ChartProvider.d.ts +1 -1
  123. package/context/ChartProvider/ChartProvider.types.d.ts +6 -6
  124. package/context/ChartProvider/useChartContext.js +1 -1
  125. package/context/index.d.ts +1 -1
  126. package/esm/BarChart/BarChart.js +1 -1
  127. package/esm/BarChart/BarLabel/BarLabel.types.d.ts +1 -1
  128. package/esm/BarChart/BarLabel/BarLabelPlot.d.ts +1 -1
  129. package/esm/BarChart/BarLabel/barLabelClasses.d.ts +1 -1
  130. package/esm/BarChart/BarLabel/index.d.ts +4 -4
  131. package/esm/BarChart/checkScaleErrors.d.ts +3 -3
  132. package/esm/BarChart/checkScaleErrors.js +4 -4
  133. package/esm/BarChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
  134. package/esm/BarChart/seriesConfig/seriesProcessor.js +2 -2
  135. package/esm/BarChart/seriesConfig/tooltip.d.ts +1 -1
  136. package/esm/BarChart/types.d.ts +2 -2
  137. package/esm/BarChart/useBarChartProps.d.ts +2 -2
  138. package/esm/BarChart/useBarChartProps.js +20 -2
  139. package/esm/ChartContainer/ChartContainer.js +1 -1
  140. package/esm/ChartContainer/useChartContainerProps.d.ts +1 -1
  141. package/esm/ChartDataProvider/useChartDataProviderProps.d.ts +2 -2
  142. package/esm/ChartsAxisHighlight/ChartsXAxisHighlight.js +1 -1
  143. package/esm/ChartsAxisHighlight/ChartsYAxisHighlight.js +1 -1
  144. package/esm/ChartsClipPath/ChartsClipPath.d.ts +8 -0
  145. package/esm/ChartsClipPath/ChartsClipPath.js +8 -0
  146. package/esm/ChartsGrid/ChartsHorizontalGrid.d.ts +2 -2
  147. package/esm/ChartsGrid/ChartsVerticalGrid.d.ts +2 -2
  148. package/esm/ChartsLabel/ChartsLabelMark.js +8 -4
  149. package/esm/ChartsLabel/index.d.ts +4 -4
  150. package/esm/ChartsLabel/labelClasses.d.ts +1 -1
  151. package/esm/ChartsLabel/labelGradientClasses.d.ts +1 -1
  152. package/esm/ChartsLabel/labelMarkClasses.d.ts +1 -1
  153. package/esm/ChartsLegend/ChartsLegend.d.ts +2 -2
  154. package/esm/ChartsLegend/ContinuousColorLegend.d.ts +1 -1
  155. package/esm/ChartsLegend/PiecewiseColorLegend.d.ts +1 -1
  156. package/esm/ChartsLegend/chartsLegend.types.d.ts +1 -1
  157. package/esm/ChartsLegend/chartsLegendClasses.d.ts +2 -2
  158. package/esm/ChartsLegend/continuousColorLegendClasses.d.ts +2 -2
  159. package/esm/ChartsLegend/index.d.ts +4 -4
  160. package/esm/ChartsLegend/piecewiseColorLegendClasses.d.ts +2 -2
  161. package/esm/ChartsLegend/useAxis.d.ts +2 -2
  162. package/esm/ChartsLocalizationProvider/ChartsLocalizationProvider.d.ts +1 -1
  163. package/esm/ChartsLocalizationProvider/index.d.ts +1 -1
  164. package/esm/ChartsOverlay/ChartsLoadingOverlay.d.ts +1 -1
  165. package/esm/ChartsOverlay/ChartsNoDataOverlay.d.ts +1 -1
  166. package/esm/ChartsOverlay/index.d.ts +1 -1
  167. package/esm/ChartsReferenceLine/ChartsReferenceLine.js +2 -2
  168. package/esm/ChartsReferenceLine/ChartsXReferenceLine.js +1 -1
  169. package/esm/ChartsReferenceLine/ChartsYReferenceLine.js +1 -1
  170. package/esm/ChartsText/index.d.ts +2 -2
  171. package/esm/ChartsTooltip/ChartsTooltipContainer.js +1 -0
  172. package/esm/ChartsTooltip/index.d.ts +3 -3
  173. package/esm/ChartsTooltip/useAxisTooltip.d.ts +2 -2
  174. package/esm/LineChart/AnimatedArea.d.ts +1 -1
  175. package/esm/LineChart/AnimatedLine.d.ts +1 -1
  176. package/esm/LineChart/AppearingMask.js +1 -2
  177. package/esm/LineChart/AreaPlot.js +2 -2
  178. package/esm/LineChart/CircleMarkElement.d.ts +10 -0
  179. package/esm/LineChart/CircleMarkElement.js +5 -15
  180. package/esm/LineChart/LineChart.js +1 -1
  181. package/esm/LineChart/LineHighlightPlot.js +1 -1
  182. package/esm/LineChart/LinePlot.js +2 -2
  183. package/esm/LineChart/MarkElement.d.ts +10 -0
  184. package/esm/LineChart/MarkElement.js +15 -15
  185. package/esm/LineChart/MarkPlot.js +20 -4
  186. package/esm/LineChart/index.d.ts +1 -1
  187. package/esm/LineChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
  188. package/esm/LineChart/seriesConfig/seriesProcessor.js +2 -2
  189. package/esm/LineChart/seriesConfig/tooltip.d.ts +1 -1
  190. package/esm/LineChart/useLineChartProps.d.ts +2 -2
  191. package/esm/PieChart/PieArcLabel.js +3 -4
  192. package/esm/PieChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
  193. package/esm/PieChart/seriesConfig/tooltip.d.ts +1 -1
  194. package/esm/RadarChart/RadarGrid/index.d.ts +1 -1
  195. package/esm/RadarChart/RadarSeriesPlot/index.d.ts +2 -2
  196. package/esm/RadarChart/RadarSeriesPlot/useRadarSeriesData.d.ts +3 -3
  197. package/esm/RadarChart/index.d.ts +2 -2
  198. package/esm/RadarChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
  199. package/esm/RadarChart/seriesConfig/tooltip.d.ts +1 -1
  200. package/esm/RadarChart/useRadarChartProps.d.ts +2 -2
  201. package/esm/ScatterChart/ScatterChart.js +1 -1
  202. package/esm/ScatterChart/ScatterMarker.types.d.ts +1 -1
  203. package/esm/ScatterChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
  204. package/esm/ScatterChart/seriesConfig/seriesProcessor.js +1 -1
  205. package/esm/ScatterChart/seriesConfig/tooltip.d.ts +1 -1
  206. package/esm/ScatterChart/useScatterChartProps.d.ts +3 -3
  207. package/esm/SparkLineChart/SparkLineChart.d.ts +19 -0
  208. package/esm/SparkLineChart/SparkLineChart.js +53 -16
  209. package/esm/Toolbar/Toolbar.d.ts +5 -0
  210. package/esm/Toolbar/Toolbar.js +27 -0
  211. package/esm/Toolbar/ToolbarButton.d.ts +5 -0
  212. package/esm/Toolbar/ToolbarButton.js +20 -0
  213. package/esm/Toolbar/index.d.ts +2 -0
  214. package/esm/Toolbar/index.js +2 -0
  215. package/esm/colorPalettes/categorical/blueberryTwilight.d.ts +4 -0
  216. package/esm/colorPalettes/categorical/blueberryTwilight.js +3 -0
  217. package/esm/colorPalettes/categorical/cheerfulFiesta.d.ts +4 -0
  218. package/esm/colorPalettes/categorical/cheerfulFiesta.js +3 -0
  219. package/esm/colorPalettes/categorical/mangoFusion.d.ts +4 -0
  220. package/esm/colorPalettes/categorical/mangoFusion.js +3 -0
  221. package/esm/colorPalettes/categorical/rainbowSurge.d.ts +4 -0
  222. package/esm/colorPalettes/categorical/rainbowSurge.js +3 -0
  223. package/esm/colorPalettes/index.d.ts +14 -1
  224. package/esm/colorPalettes/index.js +20 -1
  225. package/esm/colorPalettes/sequential/blue.d.ts +4 -0
  226. package/esm/colorPalettes/sequential/blue.js +5 -0
  227. package/esm/colorPalettes/sequential/cyan.d.ts +4 -0
  228. package/esm/colorPalettes/sequential/cyan.js +5 -0
  229. package/esm/colorPalettes/sequential/green.d.ts +4 -0
  230. package/esm/colorPalettes/sequential/green.js +5 -0
  231. package/esm/colorPalettes/sequential/orange.d.ts +4 -0
  232. package/esm/colorPalettes/sequential/orange.js +5 -0
  233. package/esm/colorPalettes/sequential/pink.d.ts +4 -0
  234. package/esm/colorPalettes/sequential/pink.js +5 -0
  235. package/esm/colorPalettes/sequential/purple.d.ts +4 -0
  236. package/esm/colorPalettes/sequential/purple.js +5 -0
  237. package/esm/colorPalettes/sequential/red.d.ts +4 -0
  238. package/esm/colorPalettes/sequential/red.js +5 -0
  239. package/esm/colorPalettes/sequential/strawberrySky.d.ts +4 -0
  240. package/esm/colorPalettes/sequential/strawberrySky.js +3 -0
  241. package/esm/colorPalettes/sequential/yellow.d.ts +4 -0
  242. package/esm/colorPalettes/sequential/yellow.js +5 -0
  243. package/esm/colorPalettes/types.d.ts +4 -0
  244. package/esm/colorPalettes/types.js +1 -0
  245. package/esm/context/ChartProvider/ChartContext.d.ts +1 -1
  246. package/esm/context/ChartProvider/ChartProvider.d.ts +1 -1
  247. package/esm/context/ChartProvider/ChartProvider.types.d.ts +6 -6
  248. package/esm/context/ChartProvider/useChartContext.js +1 -1
  249. package/esm/context/index.d.ts +1 -1
  250. package/esm/hooks/animation/useAnimateArea.d.ts +1 -1
  251. package/esm/hooks/animation/useAnimateBar.d.ts +1 -1
  252. package/esm/hooks/animation/useAnimateBarLabel.d.ts +1 -1
  253. package/esm/hooks/animation/useAnimateLine.d.ts +1 -1
  254. package/esm/hooks/animation/useAnimatePieArc.d.ts +1 -1
  255. package/esm/hooks/animation/useAnimatePieArcLabel.d.ts +11 -2
  256. package/esm/hooks/animation/useAnimatePieArcLabel.js +4 -4
  257. package/esm/hooks/useAxis.d.ts +6 -6
  258. package/esm/hooks/useChartsLocalization.d.ts +1 -1
  259. package/esm/hooks/useChartsLocalization.js +1 -1
  260. package/esm/hooks/useItemHighlightedGetter.d.ts +2 -2
  261. package/esm/hooks/useLegend.d.ts +1 -1
  262. package/esm/hooks/useSeries.d.ts +1 -1
  263. package/esm/hooks/useSvgRef.js +1 -1
  264. package/esm/hooks/useZAxis.d.ts +3 -3
  265. package/esm/index.d.ts +2 -1
  266. package/esm/index.js +3 -2
  267. package/esm/internals/constants.d.ts +4 -0
  268. package/esm/internals/constants.js +5 -0
  269. package/esm/internals/createSeriesSelectorOfType.d.ts +1 -1
  270. package/esm/internals/createSeriesSelectorOfType.js +1 -1
  271. package/esm/internals/createSvgIcon.d.ts +3 -0
  272. package/esm/internals/createSvgIcon.js +2 -0
  273. package/esm/internals/defaultizeMargin.d.ts +1 -1
  274. package/esm/internals/geometry.js +1 -1
  275. package/esm/internals/getPercentageValue.js +1 -1
  276. package/esm/internals/index.d.ts +4 -1
  277. package/esm/internals/index.js +4 -1
  278. package/esm/internals/material/index.d.ts +4 -0
  279. package/esm/internals/material/index.js +7 -0
  280. package/esm/internals/plugins/allPlugins.d.ts +1 -1
  281. package/esm/internals/plugins/corePlugins/corePlugins.d.ts +6 -4
  282. package/esm/internals/plugins/corePlugins/corePlugins.js +1 -1
  283. package/esm/internals/plugins/corePlugins/index.d.ts +1 -1
  284. package/esm/internals/plugins/corePlugins/useChartAnimation/index.d.ts +1 -1
  285. package/esm/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.d.ts +1 -1
  286. package/esm/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.selectors.d.ts +3 -3
  287. package/esm/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types.d.ts +1 -1
  288. package/esm/internals/plugins/corePlugins/useChartDimensions/index.d.ts +1 -1
  289. package/esm/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.d.ts +1 -1
  290. package/esm/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.js +2 -2
  291. package/esm/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.d.ts +177 -142
  292. package/esm/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.js +1 -1
  293. package/esm/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types.d.ts +1 -1
  294. package/esm/internals/plugins/corePlugins/useChartId/index.d.ts +1 -1
  295. package/esm/internals/plugins/corePlugins/useChartId/useChartId.selectors.d.ts +2 -2
  296. package/esm/internals/plugins/corePlugins/useChartSeries/index.d.ts +1 -1
  297. package/esm/internals/plugins/corePlugins/useChartSeries/processSeries.js +1 -1
  298. package/esm/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.ts +20 -20
  299. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.d.ts +6 -7
  300. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.d.ts +12 -5
  301. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.js +22 -10
  302. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeZoom.js +7 -2
  303. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisValue.d.ts +3 -3
  304. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/index.d.ts +1 -1
  305. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.d.ts +68 -68
  306. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.js +5 -4
  307. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.js +1 -1
  308. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.types.d.ts +20 -15
  309. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisLayout.selectors.d.ts +26 -26
  310. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +1051 -892
  311. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.js +2 -1
  312. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.d.ts +5 -5
  313. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/zoom.types.d.ts +11 -1
  314. package/esm/internals/plugins/featurePlugins/useChartHighlight/index.d.ts +2 -2
  315. package/esm/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.js +28 -13
  316. package/esm/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.d.ts +77 -77
  317. package/esm/internals/plugins/featurePlugins/useChartInteraction/index.d.ts +1 -1
  318. package/esm/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.d.ts +68 -68
  319. package/esm/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.d.ts +1 -1
  320. package/esm/internals/plugins/featurePlugins/useChartPolarAxis/defaultizeAxis.js +1 -1
  321. package/esm/internals/plugins/featurePlugins/useChartPolarAxis/getAxisIndex.js +1 -1
  322. package/esm/internals/plugins/featurePlugins/useChartPolarAxis/index.d.ts +1 -1
  323. package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.js +1 -1
  324. package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.d.ts +512 -512
  325. package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.d.ts +3 -3
  326. package/esm/internals/plugins/featurePlugins/useChartVoronoi/index.d.ts +1 -1
  327. package/esm/internals/plugins/featurePlugins/useChartVoronoi/useChartVoronoi.selectors.d.ts +2 -2
  328. package/esm/internals/plugins/featurePlugins/useChartZAxis/index.d.ts +1 -1
  329. package/esm/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.js +1 -1
  330. package/esm/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.selectors.d.ts +10 -10
  331. package/esm/internals/plugins/models/chart.d.ts +3 -3
  332. package/esm/internals/plugins/models/helpers.d.ts +1 -2
  333. package/esm/internals/plugins/models/plugin.d.ts +2 -32
  334. package/esm/internals/plugins/models/seriesConfig/cartesianExtremumGetter.types.d.ts +3 -3
  335. package/esm/internals/plugins/models/seriesConfig/colorProcessor.types.d.ts +5 -5
  336. package/esm/internals/plugins/models/seriesConfig/getSeriesWithDefaultValues.types.d.ts +2 -2
  337. package/esm/internals/plugins/models/seriesConfig/legendGetter.types.d.ts +3 -3
  338. package/esm/internals/plugins/models/seriesConfig/polarExtremumGetter.types.d.ts +3 -3
  339. package/esm/internals/plugins/models/seriesConfig/seriesConfig.types.d.ts +6 -6
  340. package/esm/internals/plugins/models/seriesConfig/seriesProcessor.types.d.ts +3 -3
  341. package/esm/internals/plugins/models/seriesConfig/tooltipGetter.types.d.ts +4 -4
  342. package/esm/internals/plugins/utils/ChartStore.d.ts +2 -2
  343. package/esm/internals/stackSeries.d.ts +1 -1
  344. package/esm/internals/store/useCharts.d.ts +2 -2
  345. package/esm/internals/store/useCharts.js +11 -12
  346. package/esm/internals/store/useStore.js +1 -1
  347. package/esm/locales/enUS.d.ts +2 -0
  348. package/esm/locales/enUS.js +3 -1
  349. package/esm/locales/frFR.d.ts +2 -0
  350. package/esm/locales/frFR.js +2 -0
  351. package/esm/locales/index.d.ts +1 -1
  352. package/esm/locales/utils/chartsLocaleTextApi.d.ts +8 -0
  353. package/esm/locales/utils/getChartsLocalization.d.ts +2 -0
  354. package/esm/models/axis.d.ts +22 -3
  355. package/esm/models/axis.js +12 -0
  356. package/esm/models/index.d.ts +4 -3
  357. package/esm/models/seriesType/bar.d.ts +1 -1
  358. package/esm/models/seriesType/common.d.ts +2 -2
  359. package/esm/models/seriesType/line.d.ts +1 -1
  360. package/esm/models/seriesType/pie.d.ts +1 -1
  361. package/esm/models/slots/chartsBaseSlotProps.d.ts +13 -0
  362. package/esm/models/slots/chartsBaseSlotProps.js +1 -0
  363. package/esm/models/slots/chartsBaseSlots.d.ts +5 -0
  364. package/esm/models/slots/chartsBaseSlots.js +1 -0
  365. package/esm/models/slots/chartsIconSlots.d.ts +1 -0
  366. package/esm/models/slots/chartsIconSlots.js +1 -0
  367. package/esm/models/slots/index.d.ts +3 -0
  368. package/esm/models/slots/index.js +3 -0
  369. package/esm/themeAugmentation/components.js +1 -0
  370. package/esm/themeAugmentation/index.d.ts +3 -3
  371. package/esm/themeAugmentation/overrides.d.ts +3 -12
  372. package/esm/themeAugmentation/overrides.js +2 -0
  373. package/esm/themeAugmentation/props.d.ts +0 -7
  374. package/esm/themeAugmentation/props.js +2 -0
  375. package/hooks/animation/useAnimateArea.d.ts +1 -1
  376. package/hooks/animation/useAnimateBar.d.ts +1 -1
  377. package/hooks/animation/useAnimateBarLabel.d.ts +1 -1
  378. package/hooks/animation/useAnimateLine.d.ts +1 -1
  379. package/hooks/animation/useAnimatePieArc.d.ts +1 -1
  380. package/hooks/animation/useAnimatePieArcLabel.d.ts +11 -2
  381. package/hooks/animation/useAnimatePieArcLabel.js +4 -4
  382. package/hooks/useAxis.d.ts +6 -6
  383. package/hooks/useChartsLocalization.d.ts +1 -1
  384. package/hooks/useChartsLocalization.js +1 -1
  385. package/hooks/useItemHighlightedGetter.d.ts +2 -2
  386. package/hooks/useLegend.d.ts +1 -1
  387. package/hooks/useSeries.d.ts +1 -1
  388. package/hooks/useSvgRef.js +1 -1
  389. package/hooks/useZAxis.d.ts +3 -3
  390. package/index.d.ts +2 -1
  391. package/index.js +12 -1
  392. package/internals/constants.d.ts +4 -0
  393. package/internals/constants.js +11 -0
  394. package/internals/createSeriesSelectorOfType.d.ts +1 -1
  395. package/internals/createSeriesSelectorOfType.js +1 -1
  396. package/internals/createSvgIcon.d.ts +3 -0
  397. package/internals/createSvgIcon.js +8 -0
  398. package/internals/defaultizeMargin.d.ts +1 -1
  399. package/internals/geometry.js +1 -1
  400. package/internals/getPercentageValue.js +1 -1
  401. package/internals/index.d.ts +4 -1
  402. package/internals/index.js +36 -0
  403. package/internals/material/index.d.ts +4 -0
  404. package/internals/material/index.js +14 -0
  405. package/internals/plugins/allPlugins.d.ts +1 -1
  406. package/internals/plugins/corePlugins/corePlugins.d.ts +6 -4
  407. package/internals/plugins/corePlugins/corePlugins.js +1 -1
  408. package/internals/plugins/corePlugins/index.d.ts +1 -1
  409. package/internals/plugins/corePlugins/useChartAnimation/index.d.ts +1 -1
  410. package/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.d.ts +1 -1
  411. package/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.selectors.d.ts +3 -3
  412. package/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types.d.ts +1 -1
  413. package/internals/plugins/corePlugins/useChartDimensions/index.d.ts +1 -1
  414. package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.d.ts +1 -1
  415. package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.js +2 -2
  416. package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.d.ts +177 -142
  417. package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.js +2 -2
  418. package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types.d.ts +1 -1
  419. package/internals/plugins/corePlugins/useChartId/index.d.ts +1 -1
  420. package/internals/plugins/corePlugins/useChartId/useChartId.selectors.d.ts +2 -2
  421. package/internals/plugins/corePlugins/useChartSeries/index.d.ts +1 -1
  422. package/internals/plugins/corePlugins/useChartSeries/processSeries.js +1 -1
  423. package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.ts +20 -20
  424. package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.d.ts +6 -7
  425. package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.d.ts +12 -5
  426. package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.js +27 -15
  427. package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeZoom.js +7 -2
  428. package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisValue.d.ts +3 -3
  429. package/internals/plugins/featurePlugins/useChartCartesianAxis/index.d.ts +1 -1
  430. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.d.ts +68 -68
  431. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.js +5 -4
  432. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.js +1 -1
  433. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.types.d.ts +20 -15
  434. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisLayout.selectors.d.ts +26 -26
  435. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +1051 -892
  436. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.js +3 -2
  437. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.d.ts +5 -5
  438. package/internals/plugins/featurePlugins/useChartCartesianAxis/zoom.types.d.ts +11 -1
  439. package/internals/plugins/featurePlugins/useChartHighlight/index.d.ts +2 -2
  440. package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.js +28 -13
  441. package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.d.ts +77 -77
  442. package/internals/plugins/featurePlugins/useChartInteraction/index.d.ts +1 -1
  443. package/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.d.ts +68 -68
  444. package/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.d.ts +1 -1
  445. package/internals/plugins/featurePlugins/useChartPolarAxis/defaultizeAxis.js +1 -1
  446. package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisIndex.js +1 -1
  447. package/internals/plugins/featurePlugins/useChartPolarAxis/index.d.ts +1 -1
  448. package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.js +1 -1
  449. package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.d.ts +512 -512
  450. package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.d.ts +3 -3
  451. package/internals/plugins/featurePlugins/useChartVoronoi/index.d.ts +1 -1
  452. package/internals/plugins/featurePlugins/useChartVoronoi/useChartVoronoi.selectors.d.ts +2 -2
  453. package/internals/plugins/featurePlugins/useChartZAxis/index.d.ts +1 -1
  454. package/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.js +1 -1
  455. package/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.selectors.d.ts +10 -10
  456. package/internals/plugins/models/chart.d.ts +3 -3
  457. package/internals/plugins/models/helpers.d.ts +1 -2
  458. package/internals/plugins/models/plugin.d.ts +2 -32
  459. package/internals/plugins/models/seriesConfig/cartesianExtremumGetter.types.d.ts +3 -3
  460. package/internals/plugins/models/seriesConfig/colorProcessor.types.d.ts +5 -5
  461. package/internals/plugins/models/seriesConfig/getSeriesWithDefaultValues.types.d.ts +2 -2
  462. package/internals/plugins/models/seriesConfig/legendGetter.types.d.ts +3 -3
  463. package/internals/plugins/models/seriesConfig/polarExtremumGetter.types.d.ts +3 -3
  464. package/internals/plugins/models/seriesConfig/seriesConfig.types.d.ts +6 -6
  465. package/internals/plugins/models/seriesConfig/seriesProcessor.types.d.ts +3 -3
  466. package/internals/plugins/models/seriesConfig/tooltipGetter.types.d.ts +4 -4
  467. package/internals/plugins/utils/ChartStore.d.ts +2 -2
  468. package/internals/stackSeries.d.ts +1 -1
  469. package/internals/store/useCharts.d.ts +2 -2
  470. package/internals/store/useCharts.js +11 -12
  471. package/internals/store/useStore.js +1 -1
  472. package/locales/enUS.d.ts +2 -0
  473. package/locales/enUS.js +3 -1
  474. package/locales/frFR.d.ts +2 -0
  475. package/locales/frFR.js +2 -0
  476. package/locales/index.d.ts +1 -1
  477. package/locales/utils/chartsLocaleTextApi.d.ts +8 -0
  478. package/locales/utils/getChartsLocalization.d.ts +2 -0
  479. package/models/axis.d.ts +22 -3
  480. package/models/axis.js +12 -0
  481. package/models/index.d.ts +4 -3
  482. package/models/seriesType/bar.d.ts +1 -1
  483. package/models/seriesType/common.d.ts +2 -2
  484. package/models/seriesType/line.d.ts +1 -1
  485. package/models/seriesType/pie.d.ts +1 -1
  486. package/models/slots/chartsBaseSlotProps.d.ts +13 -0
  487. package/models/slots/chartsBaseSlotProps.js +5 -0
  488. package/models/slots/chartsBaseSlots.d.ts +5 -0
  489. package/models/slots/chartsBaseSlots.js +5 -0
  490. package/models/slots/chartsIconSlots.d.ts +1 -0
  491. package/models/slots/chartsIconSlots.js +5 -0
  492. package/models/slots/index.d.ts +3 -0
  493. package/models/slots/index.js +38 -0
  494. package/package.json +5 -5
  495. package/themeAugmentation/components.js +5 -0
  496. package/themeAugmentation/index.d.ts +3 -3
  497. package/themeAugmentation/overrides.d.ts +3 -12
  498. package/themeAugmentation/overrides.js +5 -0
  499. package/themeAugmentation/props.d.ts +0 -7
  500. package/themeAugmentation/props.js +5 -0
  501. package/colorPalettes/colorPalettes.d.ts +0 -16
  502. package/colorPalettes/colorPalettes.js +0 -22
  503. package/esm/colorPalettes/colorPalettes.d.ts +0 -16
  504. package/esm/colorPalettes/colorPalettes.js +0 -12
  505. package/esm/internals/store/useChartModels.d.ts +0 -7
  506. package/esm/internals/store/useChartModels.js +0 -64
  507. package/internals/store/useChartModels.d.ts +0 -7
  508. package/internals/store/useChartModels.js +0 -73
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ import { ChartBaseIconButtonProps } from "./chartsBaseSlotProps.js";
3
+ export interface ChartsBaseSlots {
4
+ baseIconButton: React.ComponentType<ChartBaseIconButtonProps>;
5
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export interface ChartsIconSlots {}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ export * from "./chartsBaseSlots.js";
2
+ export * from "./chartsBaseSlotProps.js";
3
+ export * from "./chartsIconSlots.js";
@@ -0,0 +1,3 @@
1
+ export * from "./chartsBaseSlots.js";
2
+ export * from "./chartsBaseSlotProps.js";
3
+ export * from "./chartsIconSlots.js";
@@ -0,0 +1 @@
1
+ export {};
@@ -1,3 +1,3 @@
1
- export type * from './overrides';
2
- export type * from './props';
3
- export type * from './components';
1
+ export type * from "./overrides.js";
2
+ export type * from "./props.js";
3
+ export type * from "./components.js";
@@ -5,30 +5,21 @@ import { ChartsGridClassKey } from "../ChartsGrid/index.js";
5
5
  import { ChartsTooltipClassKey } from "../ChartsTooltip/index.js";
6
6
  import { AreaElementClassKey, LineElementClassKey, MarkElementClassKey } from "../LineChart/index.js";
7
7
  export interface ChartsComponentNameToClassKey {
8
- MuiChartsAxis: 'root'; // Only the root component of axes is styled. We should probably remove this one in v8
9
- MuiChartsXAxis: 'root'; // Only the root component of axes is styled
10
- MuiChartsYAxis: 'root'; // Only the root component of axes is styled
11
-
8
+ MuiChartsAxis: 'root';
9
+ MuiChartsXAxis: 'root';
10
+ MuiChartsYAxis: 'root';
12
11
  MuiChartsAxisHighlight: ChartsAxisHighlightClassKey;
13
12
  MuiChartsLegend: 'root';
14
13
  MuiChartsGrid: ChartsGridClassKey;
15
14
  MuiChartsTooltip: ChartsTooltipClassKey;
16
15
  MuiChartsSurface: 'root';
17
-
18
- // BarChart components
19
16
  MuiBarElement: BarElementClassKey;
20
17
  MuiBarLabel: BarLabelClassKey;
21
-
22
- // LineChart components
23
18
  MuiAreaElement: AreaElementClassKey;
24
19
  MuiLineElement: LineElementClassKey;
25
20
  MuiMarkElement: MarkElementClassKey;
26
-
27
- // ScatterChart components
28
21
  }
29
22
  declare module '@mui/material/styles' {
30
23
  interface ComponentNameToClassKey extends ChartsComponentNameToClassKey {}
31
24
  }
32
-
33
- // disable automatic export
34
25
  export {};
@@ -0,0 +1,2 @@
1
+ // disable automatic export
2
+ export {};
@@ -17,20 +17,13 @@ export interface ChartsComponentsPropsList {
17
17
  MuiChartsLocalizationProvider: ChartsLocalizationProviderProps;
18
18
  MuiChartsTooltip: ChartsTooltipProps;
19
19
  MuiChartsSurface: ChartsSurfaceProps;
20
-
21
- // BarChart components
22
20
  MuiBarChart: BarChartProps;
23
21
  MuiBarLabel: BarLabelProps;
24
- // LineChart components
25
22
  MuiLineChart: LineChartProps;
26
- // ScatterChart components
27
23
  MuiScatterChart: ScatterChartProps;
28
- // PieChart components
29
24
  MuiPieChart: PieChartProps;
30
25
  }
31
26
  declare module '@mui/material/styles' {
32
27
  interface ComponentsPropsList extends ChartsComponentsPropsList {}
33
28
  }
34
-
35
- // disable automatic export
36
29
  export {};
@@ -0,0 +1,2 @@
1
+ // disable automatic export
2
+ export {};
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import type { AnimatedAreaProps } from '../../LineChart';
2
+ import type { AnimatedAreaProps } from "../../LineChart/index.js";
3
3
  type UseAnimateAreaParams = Pick<AnimatedAreaProps, 'd' | 'skipAnimation'> & {
4
4
  ref?: React.Ref<SVGPathElement>;
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import type { BarProps } from '../../BarChart/AnimatedBarElement';
2
+ import type { BarProps } from "../../BarChart/AnimatedBarElement.js";
3
3
  type UseAnimateBarParams = Pick<BarProps, 'x' | 'y' | 'xOrigin' | 'yOrigin' | 'width' | 'height' | 'skipAnimation' | 'layout'> & {
4
4
  ref?: React.Ref<SVGRectElement>;
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import type { BarLabelProps } from '../../BarChart';
2
+ import type { BarLabelProps } from "../../BarChart/index.js";
3
3
  type UseAnimateBarLabelParams = Pick<BarLabelProps, 'xOrigin' | 'yOrigin' | 'x' | 'y' | 'width' | 'height' | 'layout' | 'skipAnimation'> & {
4
4
  ref?: React.Ref<SVGTextElement>;
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import type { AnimatedLineProps } from '../../LineChart';
2
+ import type { AnimatedLineProps } from "../../LineChart/index.js";
3
3
  type UseAnimateLineParams = Pick<AnimatedLineProps, 'd' | 'skipAnimation'> & {
4
4
  ref?: React.Ref<SVGPathElement>;
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import type { PieArcProps } from '../../PieChart';
2
+ import type { PieArcProps } from "../../PieChart/index.js";
3
3
  type UseAnimatePieArcParams = Pick<PieArcProps, 'startAngle' | 'endAngle' | 'cornerRadius' | 'paddingAngle' | 'innerRadius' | 'outerRadius' | 'skipAnimation'> & {
4
4
  ref?: React.Ref<SVGPathElement>;
5
5
  };
@@ -1,7 +1,16 @@
1
1
  import * as React from 'react';
2
- import type { PieArcLabelProps } from '../../PieChart';
3
- type UseAnimatePieArcLabelParams = Pick<PieArcLabelProps, 'startAngle' | 'endAngle' | 'cornerRadius' | 'paddingAngle' | 'innerRadius' | 'outerRadius' | 'skipAnimation'> & {
2
+ import type { PieArcLabelProps } from "../../PieChart/index.js";
3
+ type UseAnimatePieArcLabelParams = Pick<PieArcLabelProps, 'startAngle' | 'endAngle' | 'cornerRadius' | 'paddingAngle' | 'skipAnimation'> & {
4
4
  ref?: React.Ref<SVGTextElement>;
5
+ arcLabelRadius?: number;
6
+ /**
7
+ * @deprecated Use `arcLabelRadius` instead. This prop will be removed in the next major version.
8
+ */
9
+ innerRadius: PieArcLabelProps['innerRadius'];
10
+ /**
11
+ * @deprecated Use `arcLabelRadius` instead. This prop will be removed in the next major version.
12
+ */
13
+ outerRadius: PieArcLabelProps['outerRadius'];
5
14
  };
6
15
  type UseAnimatePieArcLabelReturn = {
7
16
  ref: React.Ref<SVGTextElement>;
@@ -33,16 +33,16 @@ function useAnimatePieArcLabel(props) {
33
33
  const initialProps = {
34
34
  startAngle: (props.startAngle + props.endAngle) / 2,
35
35
  endAngle: (props.startAngle + props.endAngle) / 2,
36
- innerRadius: props.innerRadius,
37
- outerRadius: props.outerRadius,
36
+ innerRadius: props.arcLabelRadius ?? props.innerRadius,
37
+ outerRadius: props.arcLabelRadius ?? props.outerRadius,
38
38
  paddingAngle: props.paddingAngle,
39
39
  cornerRadius: props.cornerRadius
40
40
  };
41
41
  return (0, _useAnimate.useAnimate)({
42
42
  startAngle: props.startAngle,
43
43
  endAngle: props.endAngle,
44
- innerRadius: props.innerRadius,
45
- outerRadius: props.outerRadius,
44
+ innerRadius: props?.arcLabelRadius ?? props.innerRadius,
45
+ outerRadius: props?.arcLabelRadius ?? props.outerRadius,
46
46
  paddingAngle: props.paddingAngle,
47
47
  cornerRadius: props.cornerRadius
48
48
  }, {
@@ -10,7 +10,7 @@ import { AxisId, ChartsRadiusAxisProps, ChartsRotationAxisProps, PolarAxisDefaul
10
10
  * @returns `{ xAxis, xAxisIds }` - The x-axes and their IDs.
11
11
  */
12
12
  export declare function useXAxes(): {
13
- xAxis: import("../internals").DefaultizedAxisConfig<import("..").ChartsXAxisProps>;
13
+ xAxis: import("../internals/index.js").ComputedAxisConfig<import("../index.js").ChartsXAxisProps>;
14
14
  xAxisIds: string[];
15
15
  };
16
16
  /**
@@ -24,7 +24,7 @@ export declare function useXAxes(): {
24
24
  * @returns `{ yAxis, yAxisIds }` - The y-axes and their IDs.
25
25
  */
26
26
  export declare function useYAxes(): {
27
- yAxis: import("../internals").DefaultizedAxisConfig<import("..").ChartsYAxisProps>;
27
+ yAxis: import("../internals/index.js").ComputedAxisConfig<import("../index.js").ChartsYAxisProps>;
28
28
  yAxisIds: string[];
29
29
  };
30
30
  /**
@@ -32,19 +32,19 @@ export declare function useYAxes(): {
32
32
  * @param {AxisId | undefined} axisId - If provided returns the x axis with axisId, else returns the values for the default x axis.
33
33
  * @returns The X axis.
34
34
  */
35
- export declare function useXAxis(axisId?: AxisId): import("../internals").AxisDefaultized<keyof import("../internals").AxisScaleConfig, any, import("..").ChartsXAxisProps>;
35
+ export declare function useXAxis(axisId?: AxisId): import("../internals/index.js").ComputedAxis<keyof import("../internals/index.js").AxisScaleConfig, any, import("../index.js").ChartsXAxisProps>;
36
36
  /**
37
37
  * Get the Y axis.
38
38
  * @param {AxisId | undefined} axisId - If provided returns the y axis with axisId, else returns the values for the default y axis.
39
39
  * @returns The Y axis.
40
40
  */
41
- export declare function useYAxis(axisId?: AxisId): import("../internals").AxisDefaultized<keyof import("../internals").AxisScaleConfig, any, import("..").ChartsYAxisProps>;
41
+ export declare function useYAxis(axisId?: AxisId): import("../internals/index.js").ComputedAxis<keyof import("../internals/index.js").AxisScaleConfig, any, import("../index.js").ChartsYAxisProps>;
42
42
  export declare function useRotationAxes(): {
43
- rotationAxis: import("../internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue").DefaultizedAxisConfig<ChartsRotationAxisProps>;
43
+ rotationAxis: import("../internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.js").DefaultizedAxisConfig<ChartsRotationAxisProps>;
44
44
  rotationAxisIds: string[];
45
45
  };
46
46
  export declare function useRadiusAxes(): {
47
- radiusAxis: import("../internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue").DefaultizedAxisConfig<ChartsRadiusAxisProps>;
47
+ radiusAxis: import("../internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.js").DefaultizedAxisConfig<ChartsRadiusAxisProps>;
48
48
  radiusAxisIds: string[];
49
49
  };
50
50
  export declare function useRotationAxis(identifier?: number | string): PolarAxisDefaultized<ScaleName, any, ChartsRotationAxisProps> | undefined;
@@ -1 +1 @@
1
- export declare const useChartsLocalization: () => import("../ChartsLocalizationProvider/ChartsLocalizationProvider").ChartsLocalizationContextValue;
1
+ export declare const useChartsLocalization: () => import("../ChartsLocalizationProvider/ChartsLocalizationProvider.js").ChartsLocalizationContextValue;
@@ -10,7 +10,7 @@ var _ChartsLocalizationProvider = require("../ChartsLocalizationProvider/ChartsL
10
10
  const useChartsLocalization = () => {
11
11
  const localization = React.useContext(_ChartsLocalizationProvider.ChartsLocalizationContext);
12
12
  if (localization === null) {
13
- throw new Error(['MUI X: Can not find the charts localization context.', 'It looks like you forgot to wrap your component in ChartsLocalizationProvider.', 'This can also happen if you are bundling multiple versions of the `@mui/x-charts` package'].join('\n'));
13
+ throw new Error(['MUI X Charts: Can not find the charts localization context.', 'It looks like you forgot to wrap your component in ChartsLocalizationProvider.', 'This can also happen if you are bundling multiple versions of the `@mui/x-charts` package'].join('\n'));
14
14
  }
15
15
  return localization;
16
16
  };
@@ -7,6 +7,6 @@
7
7
  * @returns {{ isHighlighted, isFaded }} callbacks to get the state of the item.
8
8
  */
9
9
  export declare function useItemHighlightedGetter(): {
10
- isHighlighted: (item: import("..").HighlightItemData | null) => boolean;
11
- isFaded: (item: import("..").HighlightItemData | null) => boolean;
10
+ isHighlighted: (item: import("../index.js").HighlightItemData | null) => boolean;
11
+ isFaded: (item: import("../index.js").HighlightItemData | null) => boolean;
12
12
  };
@@ -1,4 +1,4 @@
1
- import type { LegendItemParams } from '../ChartsLegend';
1
+ import type { LegendItemParams } from "../ChartsLegend/index.js";
2
2
  /**
3
3
  * Get the legend items to display.
4
4
  *
@@ -4,4 +4,4 @@
4
4
  * { seriesType?: { series: { id1: precessedValue, ... }, seriesOrder: [id1, ...] } }
5
5
  * @returns FormattedSeries series
6
6
  */
7
- export declare function useSeries(): import("../internals").ProcessedSeries<keyof import("../internals").ChartsSeriesConfig>;
7
+ export declare function useSeries(): import("../internals/index.js").ProcessedSeries<keyof import("../internals/index.js").ChartsSeriesConfig>;
@@ -13,7 +13,7 @@ var _ChartProvider = require("../context/ChartProvider");
13
13
  function useSvgRef() {
14
14
  const context = (0, _ChartProvider.useChartContext)();
15
15
  if (!context) {
16
- throw new Error(['MUI X: Could not find the svg ref context.', 'It looks like you rendered your component outside of a ChartContainer parent component.'].join('\n'));
16
+ throw new Error(['MUI X Charts: Could not find the svg ref context.', 'It looks like you rendered your component outside of a ChartContainer parent component.'].join('\n'));
17
17
  }
18
18
  return context.svgRef;
19
19
  }
@@ -1,7 +1,7 @@
1
1
  export declare function useZAxes(): {
2
2
  zAxis: {
3
- [axisId: string]: import("../internals").ZAxisDefaultized;
3
+ [axisId: string]: import("../internals/index.js").ZAxisDefaultized;
4
4
  };
5
- zAxisIds: import("../internals").AxisId[];
5
+ zAxisIds: import("../internals/index.js").AxisId[];
6
6
  };
7
- export declare function useZAxis(identifier?: number | string): import("../internals").ZAxisDefaultized;
7
+ export declare function useZAxis(identifier?: number | string): import("../internals/index.js").ZAxisDefaultized;
package/index.d.ts CHANGED
@@ -24,4 +24,5 @@ export * from "./Gauge/index.js";
24
24
  export * from "./RadarChart/index.js";
25
25
  export * from "./ChartsSurface/index.js";
26
26
  export * from "./ChartContainer/index.js";
27
- export * from "./ChartDataProvider/index.js";
27
+ export * from "./ChartDataProvider/index.js";
28
+ export * from "./Toolbar/index.js";
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-charts v8.1.0
2
+ * @mui/x-charts v8.3.0
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -306,4 +306,15 @@ Object.keys(_ChartDataProvider).forEach(function (key) {
306
306
  return _ChartDataProvider[key];
307
307
  }
308
308
  });
309
+ });
310
+ var _Toolbar = require("./Toolbar");
311
+ Object.keys(_Toolbar).forEach(function (key) {
312
+ if (key === "default" || key === "__esModule") return;
313
+ if (key in exports && exports[key] === _Toolbar[key]) return;
314
+ Object.defineProperty(exports, key, {
315
+ enumerable: true,
316
+ get: function () {
317
+ return _Toolbar[key];
318
+ }
319
+ });
309
320
  });
@@ -0,0 +1,4 @@
1
+ /** Margin in the opposite direction of the axis, i.e., horizontal if the axis is vertical and vice versa. */
2
+ export declare const ZOOM_SLIDER_MARGIN = 4;
3
+ /** Size reserved for the zoom slider. The actual size of the slider might be smaller. */
4
+ export declare const ZOOM_SLIDER_SIZE: number;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.ZOOM_SLIDER_SIZE = exports.ZOOM_SLIDER_MARGIN = void 0;
7
+ /** Margin in the opposite direction of the axis, i.e., horizontal if the axis is vertical and vice versa. */
8
+ const ZOOM_SLIDER_MARGIN = exports.ZOOM_SLIDER_MARGIN = 4;
9
+
10
+ /** Size reserved for the zoom slider. The actual size of the slider might be smaller. */
11
+ const ZOOM_SLIDER_SIZE = exports.ZOOM_SLIDER_SIZE = 20 + 2 * ZOOM_SLIDER_MARGIN;
@@ -1,4 +1,4 @@
1
1
  import { ChartSeriesDefaultized, ChartsSeriesConfig } from "../models/seriesType/config.js";
2
2
  import { SeriesId } from "../models/seriesType/common.js";
3
3
  export declare function createSeriesSelectorsOfType<T extends keyof ChartsSeriesConfig>(seriesType: T): (ids?: SeriesId | SeriesId[]) => ChartSeriesDefaultized<T> | (ChartSeriesDefaultized<T> | undefined)[] | undefined;
4
- export declare function createAllSeriesSelectorOfType<T extends keyof ChartsSeriesConfig>(seriesType: T): () => import(".").ProcessedSeries<keyof ChartsSeriesConfig>[T];
4
+ export declare function createAllSeriesSelectorOfType<T extends keyof ChartsSeriesConfig>(seriesType: T): () => import("./index.js").ProcessedSeries<keyof ChartsSeriesConfig>[T];
@@ -32,7 +32,7 @@ function createSeriesSelectorsOfType(seriesType) {
32
32
  if (process.env.NODE_ENV !== 'production' && failedIds.length > 0) {
33
33
  const formattedIds = failedIds.map(v => JSON.stringify(v)).join(', ');
34
34
  const fnName = `use${seriesType.charAt(0).toUpperCase()}${seriesType.slice(1)}Series`;
35
- (0, _warning.warnOnce)([`MUI X: The following ids provided to "${fnName}" could not be found: ${formattedIds}.`, `Make sure that they exist and their series are using the "${seriesType}" series type.`]);
35
+ (0, _warning.warnOnce)([`MUI X Charts: The following ids provided to "${fnName}" could not be found: ${formattedIds}.`, `Make sure that they exist and their series are using the "${seriesType}" series type.`]);
36
36
  }
37
37
  return result;
38
38
  });
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ import { ChartBaseIconProps } from "../models/slots/chartsBaseSlotProps.js";
3
+ export declare const createSvgIcon: (path: React.ReactNode, displayName?: string) => (props: ChartBaseIconProps) => React.ReactNode;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.createSvgIcon = void 0;
7
+ var _utils = require("@mui/material/utils");
8
+ const createSvgIcon = exports.createSvgIcon = _utils.createSvgIcon;
@@ -1,3 +1,3 @@
1
- import type { ChartMargin, UseChartDimensionsParameters } from './plugins/corePlugins/useChartDimensions/useChartDimensions.types';
1
+ import type { ChartMargin, UseChartDimensionsParameters } from "./plugins/corePlugins/useChartDimensions/useChartDimensions.types.js";
2
2
  export declare function defaultizeMargin(input: UseChartDimensionsParameters['margin'], defaultMargin: ChartMargin): ChartMargin;
3
3
  export declare function defaultizeMargin(input: UseChartDimensionsParameters['margin'], defaultMargin?: ChartMargin): Partial<ChartMargin> | undefined;
@@ -19,7 +19,7 @@ const ANGLE_APPROX = 5; // Angle (in deg) for which we approximate the rectangle
19
19
  function getMinXTranslation(width, height, angle = 0) {
20
20
  if (process.env.NODE_ENV !== 'production') {
21
21
  if (angle > 90 && angle < -90) {
22
- (0, _warning.warnOnce)([`MUI X: It seems you applied an angle larger than 90° or smaller than -90° to an axis text.`, `This could cause some text overlapping.`, `If you encounter a use case where it's needed, please open an issue.`]);
22
+ (0, _warning.warnOnce)([`MUI X Charts: It seems you applied an angle larger than 90° or smaller than -90° to an axis text.`, `This could cause some text overlapping.`, `If you encounter a use case where it's needed, please open an issue.`]);
23
23
  }
24
24
  }
25
25
  const standardAngle = Math.min(Math.abs(angle) % 180, Math.abs(Math.abs(angle) % 180 - 180) % 180); // Map from R to [0, 90]
@@ -30,5 +30,5 @@ function getPercentageValue(value, refValue) {
30
30
  return val;
31
31
  }
32
32
  }
33
- throw new Error(`MUI X: Received an unknown value "${value}". It should be a number, or a string with a percentage value.`);
33
+ throw new Error(`MUI X Charts: Received an unknown value "${value}". It should be a number, or a string with a percentage value.`);
34
34
  }
@@ -44,4 +44,7 @@ export * from "../models/seriesType/config.js";
44
44
  export * from "../models/seriesType/common.js";
45
45
  export * from "../models/z-axis.js";
46
46
  export * from "../models/axis.js";
47
- export * from "./plugins/models/index.js";
47
+ export * from "./plugins/models/index.js";
48
+ export * from "./material/index.js";
49
+ export * from "./createSvgIcon.js";
50
+ export * from "./constants.js";
@@ -536,4 +536,40 @@ Object.keys(_models).forEach(function (key) {
536
536
  return _models[key];
537
537
  }
538
538
  });
539
+ });
540
+ var _material = require("./material");
541
+ Object.keys(_material).forEach(function (key) {
542
+ if (key === "default" || key === "__esModule") return;
543
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
544
+ if (key in exports && exports[key] === _material[key]) return;
545
+ Object.defineProperty(exports, key, {
546
+ enumerable: true,
547
+ get: function () {
548
+ return _material[key];
549
+ }
550
+ });
551
+ });
552
+ var _createSvgIcon = require("./createSvgIcon");
553
+ Object.keys(_createSvgIcon).forEach(function (key) {
554
+ if (key === "default" || key === "__esModule") return;
555
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
556
+ if (key in exports && exports[key] === _createSvgIcon[key]) return;
557
+ Object.defineProperty(exports, key, {
558
+ enumerable: true,
559
+ get: function () {
560
+ return _createSvgIcon[key];
561
+ }
562
+ });
563
+ });
564
+ var _constants = require("./constants");
565
+ Object.keys(_constants).forEach(function (key) {
566
+ if (key === "default" || key === "__esModule") return;
567
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
568
+ if (key in exports && exports[key] === _constants[key]) return;
569
+ Object.defineProperty(exports, key, {
570
+ enumerable: true,
571
+ get: function () {
572
+ return _constants[key];
573
+ }
574
+ });
539
575
  });
@@ -0,0 +1,4 @@
1
+ import { ChartsBaseSlots } from "../../models/slots/chartsBaseSlots.js";
2
+ import { ChartsIconSlots } from "../../models/slots/chartsIconSlots.js";
3
+ export type ChartsSlots = ChartsBaseSlots & ChartsIconSlots;
4
+ export declare const defaultSlotsMaterial: ChartsSlots;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.defaultSlotsMaterial = void 0;
8
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
+ var _IconButton = _interopRequireDefault(require("@mui/material/IconButton"));
10
+ const baseSlots = {
11
+ baseIconButton: _IconButton.default
12
+ };
13
+ const iconSlots = {};
14
+ const defaultSlotsMaterial = exports.defaultSlotsMaterial = (0, _extends2.default)({}, baseSlots, iconSlots);
@@ -6,4 +6,4 @@ import { UseChartPolarAxisSignature } from "./featurePlugins/useChartPolarAxis/i
6
6
  import { UseChartVoronoiSignature } from "./featurePlugins/useChartVoronoi/index.js";
7
7
  import { UseChartZAxisSignature } from "./featurePlugins/useChartZAxis/index.js";
8
8
  export type AllPluginSignatures<TSeries extends ChartSeriesType = ChartSeriesType> = [UseChartZAxisSignature, UseChartCartesianAxisSignature<TSeries>, UseChartPolarAxisSignature, UseChartInteractionSignature, UseChartHighlightSignature, UseChartVoronoiSignature];
9
- export declare const DEFAULT_PLUGINS: readonly [import("./models").ChartPlugin<UseChartZAxisSignature>, import("./models").ChartPlugin<UseChartCartesianAxisSignature<any>>, import("./models").ChartPlugin<UseChartInteractionSignature>, import("./models").ChartPlugin<UseChartHighlightSignature>, import("./models").ChartPlugin<UseChartVoronoiSignature>];
9
+ export declare const DEFAULT_PLUGINS: readonly [import("./models/index.js").ChartPlugin<UseChartZAxisSignature>, import("./models/index.js").ChartPlugin<UseChartCartesianAxisSignature<any>>, import("./models/index.js").ChartPlugin<UseChartInteractionSignature>, import("./models/index.js").ChartPlugin<UseChartHighlightSignature>, import("./models/index.js").ChartPlugin<UseChartVoronoiSignature>];
@@ -1,9 +1,11 @@
1
- import { ConvertPluginsIntoSignatures } from "../models/helpers.js";
2
- import { UseChartIdParameters } from "./useChartId/index.js";
1
+ import { type UseChartAnimationSignature } from "./useChartAnimation/index.js";
2
+ import { type UseChartDimensionsSignature } from "./useChartDimensions/index.js";
3
+ import { type UseChartIdSignature, UseChartIdParameters } from "./useChartId/index.js";
4
+ import { type UseChartSeriesSignature } from "./useChartSeries/index.js";
3
5
  /**
4
6
  * Internal plugins that create the tools used by the other plugins.
5
7
  * These plugins are used by the Charts components.
6
8
  */
7
- export declare const CHART_CORE_PLUGINS: readonly [import("../models").ChartPlugin<import("./useChartId").UseChartIdSignature>, import("../models").ChartPlugin<import("./useChartDimensions").UseChartDimensionsSignature>, import("../models").ChartPlugin<import("./useChartSeries").UseChartSeriesSignature>, import("../models").ChartPlugin<import("./useChartAnimation").UseChartAnimationSignature>];
8
- export type ChartCorePluginSignatures = ConvertPluginsIntoSignatures<typeof CHART_CORE_PLUGINS>;
9
+ export declare const CHART_CORE_PLUGINS: readonly [import("../models/index.js").ChartPlugin<UseChartIdSignature>, import("../models/index.js").ChartPlugin<UseChartDimensionsSignature>, import("../models/index.js").ChartPlugin<UseChartSeriesSignature>, import("../models/index.js").ChartPlugin<UseChartAnimationSignature>];
10
+ export type ChartCorePluginSignatures = [UseChartIdSignature, UseChartDimensionsSignature, UseChartSeriesSignature, UseChartAnimationSignature];
9
11
  export interface ChartCorePluginParameters extends UseChartIdParameters {}
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.CHART_CORE_PLUGINS = void 0;
7
7
  var _useChartAnimation = require("./useChartAnimation");
8
- var _useChartDimensions = require("./useChartDimensions/useChartDimensions");
8
+ var _useChartDimensions = require("./useChartDimensions");
9
9
  var _useChartId = require("./useChartId");
10
10
  var _useChartSeries = require("./useChartSeries");
11
11
  /**
@@ -1,2 +1,2 @@
1
1
  export { CHART_CORE_PLUGINS } from "./corePlugins.js";
2
- export type { ChartCorePluginSignatures, ChartCorePluginParameters } from './corePlugins';
2
+ export type { ChartCorePluginSignatures, ChartCorePluginParameters } from "./corePlugins.js";
@@ -1,3 +1,3 @@
1
1
  export { useChartAnimation } from "./useChartAnimation.js";
2
- export type { UseChartAnimationSignature, UseChartAnimationParameters, UseChartAnimationDefaultizedParameters } from './useChartAnimation.types';
2
+ export type { UseChartAnimationSignature, UseChartAnimationParameters, UseChartAnimationDefaultizedParameters } from "./useChartAnimation.types.js";
3
3
  export * from "./useChartAnimation.selectors.js";
@@ -1,3 +1,3 @@
1
1
  import { ChartPlugin } from "../../models/index.js";
2
- import type { UseChartAnimationSignature } from './useChartAnimation.types';
2
+ import type { UseChartAnimationSignature } from "./useChartAnimation.types.js";
3
3
  export declare const useChartAnimation: ChartPlugin<UseChartAnimationSignature>;
@@ -1,7 +1,7 @@
1
1
  import { ChartRootSelector } from "../../utils/selectors.js";
2
- import type { UseChartAnimationSignature } from './useChartAnimation.types';
3
- export declare const selectorChartSkipAnimation: ((state: import("../useChartId/useChartId.types").UseChartIdState & import("../useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("../useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("../../..").ChartsSeriesConfig> & import("./useChartAnimation.types").UseChartAnimationState & Partial<{}> & {
4
- cacheKey: import("../../models").ChartStateCacheKey;
2
+ import type { UseChartAnimationSignature } from "./useChartAnimation.types.js";
3
+ export declare const selectorChartSkipAnimation: ((state: import("../useChartId/useChartId.types.js").UseChartIdState & import("../useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("./useChartAnimation.types.js").UseChartAnimationState & Partial<{}> & {
4
+ cacheKey: import("../../models/index.js").ChartStateCacheKey;
5
5
  }) => boolean) & {
6
6
  clearCache: () => void;
7
7
  resultsCount: () => number;
@@ -1,5 +1,5 @@
1
1
  import { ChartPluginSignature } from "../../models/index.js";
2
- import type { UseChartCartesianAxisSignature } from '../../featurePlugins/useChartCartesianAxis';
2
+ import type { UseChartCartesianAxisSignature } from "../../featurePlugins/useChartCartesianAxis/index.js";
3
3
  export interface UseChartAnimationParameters {
4
4
  /**
5
5
  * If `true`, animations are skipped.
@@ -1,3 +1,3 @@
1
1
  export { useChartDimensions } from "./useChartDimensions.js";
2
- export type { UseChartDimensionsSignature, UseChartDimensionsParameters, UseChartDimensionsDefaultizedParameters } from './useChartDimensions.types';
2
+ export type { UseChartDimensionsSignature, UseChartDimensionsParameters, UseChartDimensionsDefaultizedParameters } from "./useChartDimensions.types.js";
3
3
  export * from "./useChartDimensions.selectors.js";
@@ -1,3 +1,3 @@
1
1
  import { ChartPlugin } from "../../models/index.js";
2
- import type { UseChartDimensionsSignature } from './useChartDimensions.types';
2
+ import type { UseChartDimensionsSignature } from "./useChartDimensions.types.js";
3
3
  export declare const useChartDimensions: ChartPlugin<UseChartDimensionsSignature>;
@@ -142,11 +142,11 @@ const useChartDimensions = ({
142
142
  }, [computeSize, hasInSize, svgRef]);
143
143
  if (process.env.NODE_ENV !== 'production') {
144
144
  if (stateRef.current.displayError && params.width === undefined && innerWidth === 0) {
145
- console.error(`MUI X: ChartContainer does not have \`width\` prop, and its container has no \`width\` defined.`);
145
+ console.error(`MUI X Charts: ChartContainer does not have \`width\` prop, and its container has no \`width\` defined.`);
146
146
  stateRef.current.displayError = false;
147
147
  }
148
148
  if (stateRef.current.displayError && params.height === undefined && innerHeight === 0) {
149
- console.error(`MUI X: ChartContainer does not have \`height\` prop, and its container has no \`height\` defined.`);
149
+ console.error(`MUI X Charts: ChartContainer does not have \`height\` prop, and its container has no \`height\` defined.`);
150
150
  stateRef.current.displayError = false;
151
151
  }
152
152
  }