@mui/x-charts 7.15.0 → 7.16.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 (470) hide show
  1. package/BarChart/BarChart.js +23 -12
  2. package/BarChart/BarClipPath.js +1 -1
  3. package/BarChart/BarElement.js +2 -2
  4. package/BarChart/BarLabel/BarLabel.js +1 -1
  5. package/BarChart/BarLabel/BarLabelItem.js +4 -4
  6. package/BarChart/BarLabel/BarLabelPlot.js +1 -1
  7. package/BarChart/BarLabel/index.js +2 -2
  8. package/BarChart/BarPlot.js +8 -8
  9. package/BarChart/checkScaleErrors.js +2 -2
  10. package/BarChart/formatter.js +2 -2
  11. package/BarChart/index.js +4 -4
  12. package/BarChart/legend.js +1 -1
  13. package/BarChart/plugin.js +3 -3
  14. package/BarChart/useBarChartProps.js +1 -1
  15. package/CHANGELOG.md +98 -1
  16. package/ChartContainer/ChartContainer.js +9 -9
  17. package/ChartContainer/index.js +1 -1
  18. package/ChartContainer/useChartContainerProps.js +2 -2
  19. package/ChartContainer/useDefaultizeAxis.js +1 -1
  20. package/ChartsAxis/ChartsAxis.js +3 -3
  21. package/ChartsAxis/index.js +2 -2
  22. package/ChartsAxisHighlight/ChartsAxisHighlight.js +4 -4
  23. package/ChartsAxisHighlight/index.js +1 -1
  24. package/ChartsClipPath/ChartsClipPath.js +1 -1
  25. package/ChartsClipPath/index.js +1 -1
  26. package/ChartsGrid/ChartsGrid.js +18 -66
  27. package/ChartsGrid/ChartsHorizontalGrid.d.ts +14 -0
  28. package/ChartsGrid/ChartsHorizontalGrid.js +36 -0
  29. package/ChartsGrid/ChartsVerticalGrid.d.ts +14 -0
  30. package/ChartsGrid/ChartsVerticalGrid.js +36 -0
  31. package/ChartsGrid/index.js +2 -2
  32. package/ChartsGrid/styledCommonents.d.ts +2 -0
  33. package/ChartsGrid/styledCommonents.js +22 -0
  34. package/ChartsLegend/ChartsLegend.d.ts +4 -13
  35. package/ChartsLegend/ChartsLegend.js +59 -25
  36. package/ChartsLegend/ContinuousColorLegend.js +7 -7
  37. package/ChartsLegend/DefaultChartsLegend.d.ts +6 -1
  38. package/ChartsLegend/DefaultChartsLegend.js +7 -3
  39. package/ChartsLegend/LegendPerItem.d.ts +9 -6
  40. package/ChartsLegend/LegendPerItem.js +4 -8
  41. package/ChartsLegend/PiecewiseColorLegend.js +3 -8
  42. package/ChartsLegend/index.js +6 -6
  43. package/ChartsLegend/useAxis.js +2 -2
  44. package/ChartsLegend/utils.js +4 -4
  45. package/ChartsOnAxisClickHandler/ChartsOnAxisClickHandler.js +4 -4
  46. package/ChartsOnAxisClickHandler/index.js +1 -1
  47. package/ChartsOverlay/ChartsLoadingOverlay.js +1 -1
  48. package/ChartsOverlay/ChartsNoDataOverlay.js +1 -1
  49. package/ChartsOverlay/ChartsOverlay.js +3 -3
  50. package/ChartsOverlay/index.js +3 -3
  51. package/ChartsReferenceLine/ChartsReferenceLine.js +2 -2
  52. package/ChartsReferenceLine/ChartsXReferenceLine.js +5 -5
  53. package/ChartsReferenceLine/ChartsYReferenceLine.js +5 -5
  54. package/ChartsReferenceLine/common.js +1 -1
  55. package/ChartsReferenceLine/index.js +2 -2
  56. package/ChartsSurface/ChartsSurface.js +1 -1
  57. package/ChartsSurface/index.js +1 -1
  58. package/ChartsText/ChartsText.js +1 -1
  59. package/ChartsText/index.js +1 -1
  60. package/ChartsTooltip/ChartsAxisTooltipContent.js +6 -6
  61. package/ChartsTooltip/ChartsItemTooltipContent.d.ts +1 -1
  62. package/ChartsTooltip/ChartsItemTooltipContent.js +5 -5
  63. package/ChartsTooltip/ChartsTooltip.d.ts +2 -2
  64. package/ChartsTooltip/ChartsTooltip.js +13 -11
  65. package/ChartsTooltip/ChartsTooltipTable.js +10 -5
  66. package/ChartsTooltip/DefaultChartsAxisTooltipContent.js +5 -5
  67. package/ChartsTooltip/DefaultChartsItemTooltipContent.js +3 -3
  68. package/ChartsTooltip/chartsTooltipClasses.d.ts +2 -0
  69. package/ChartsTooltip/chartsTooltipClasses.js +1 -1
  70. package/ChartsTooltip/index.js +7 -7
  71. package/ChartsTooltip/utils.js +1 -1
  72. package/ChartsVoronoiHandler/ChartsVoronoiHandler.js +7 -7
  73. package/ChartsVoronoiHandler/index.js +1 -1
  74. package/ChartsXAxis/ChartsXAxis.js +18 -13
  75. package/ChartsXAxis/index.js +1 -1
  76. package/ChartsYAxis/ChartsYAxis.js +15 -10
  77. package/ChartsYAxis/index.js +1 -1
  78. package/Gauge/Gauge.js +5 -5
  79. package/Gauge/GaugeContainer.js +4 -4
  80. package/Gauge/GaugeProvider.js +3 -3
  81. package/Gauge/GaugeReferenceArc.js +1 -1
  82. package/Gauge/GaugeValueArc.js +1 -1
  83. package/Gauge/GaugeValueText.js +2 -2
  84. package/Gauge/index.js +7 -7
  85. package/LineChart/AnimatedArea.js +31 -14
  86. package/LineChart/AnimatedLine.js +32 -15
  87. package/LineChart/AreaElement.js +3 -3
  88. package/LineChart/AreaPlot.js +83 -78
  89. package/LineChart/LineChart.js +26 -15
  90. package/LineChart/LineElement.js +3 -3
  91. package/LineChart/LineHighlightPlot.js +8 -8
  92. package/LineChart/LinePlot.js +65 -60
  93. package/LineChart/MarkElement.js +4 -4
  94. package/LineChart/MarkPlot.js +9 -9
  95. package/LineChart/formatter.js +2 -2
  96. package/LineChart/index.js +11 -11
  97. package/LineChart/legend.js +1 -1
  98. package/LineChart/plugin.js +3 -3
  99. package/LineChart/useLineChartProps.js +1 -1
  100. package/PieChart/PieArc.js +1 -1
  101. package/PieChart/PieArcLabelPlot.js +4 -4
  102. package/PieChart/PieArcPlot.js +4 -4
  103. package/PieChart/PieChart.js +19 -8
  104. package/PieChart/PiePlot.js +6 -6
  105. package/PieChart/dataTransform/useTransformData.js +1 -1
  106. package/PieChart/formatter.js +1 -1
  107. package/PieChart/getPieCoordinates.js +1 -1
  108. package/PieChart/index.js +7 -7
  109. package/PieChart/legend.js +1 -1
  110. package/PieChart/plugin.js +2 -2
  111. package/ResponsiveChartContainer/ResponsiveChartContainer.js +3 -3
  112. package/ResponsiveChartContainer/index.js +1 -1
  113. package/ResponsiveChartContainer/useResponsiveChartContainerProps.js +1 -1
  114. package/ScatterChart/Scatter.js +5 -5
  115. package/ScatterChart/ScatterChart.js +23 -12
  116. package/ScatterChart/ScatterPlot.js +5 -5
  117. package/ScatterChart/formatter.js +1 -1
  118. package/ScatterChart/index.js +3 -3
  119. package/ScatterChart/legend.js +1 -1
  120. package/ScatterChart/plugin.js +3 -3
  121. package/SparkLineChart/SparkLineChart.js +6 -6
  122. package/SparkLineChart/index.js +1 -1
  123. package/colorPalettes/index.js +1 -1
  124. package/context/CartesianProvider/CartesianProvider.js +6 -6
  125. package/context/CartesianProvider/computeValue.js +6 -6
  126. package/context/CartesianProvider/defaultizeAxis.js +1 -1
  127. package/context/CartesianProvider/index.js +5 -5
  128. package/context/CartesianProvider/useCartesianContext.js +1 -1
  129. package/context/DrawingProvider.js +1 -1
  130. package/context/HighlightedProvider/HighlightedProvider.js +4 -4
  131. package/context/HighlightedProvider/index.js +4 -4
  132. package/context/HighlightedProvider/useHighlighted.js +1 -1
  133. package/context/HighlightedProvider/useItemHighlighted.js +1 -1
  134. package/context/PluginProvider/PluginProvider.js +2 -2
  135. package/context/PluginProvider/index.js +10 -10
  136. package/context/PluginProvider/mergePlugins.js +4 -4
  137. package/context/PluginProvider/useColorProcessor.js +1 -1
  138. package/context/PluginProvider/useSeriesFormatter.js +1 -1
  139. package/context/PluginProvider/useXExtremumGetter.js +1 -1
  140. package/context/PluginProvider/useYExtremumGetter.js +1 -1
  141. package/context/SeriesProvider/SeriesProvider.js +4 -4
  142. package/context/SeriesProvider/index.js +4 -4
  143. package/context/SeriesProvider/processSeries.js +1 -1
  144. package/context/ZAxisContextProvider.js +1 -1
  145. package/context/index.js +2 -2
  146. package/hooks/index.js +7 -7
  147. package/hooks/useAxis.js +1 -1
  148. package/hooks/useAxisEvents.js +6 -6
  149. package/hooks/useChartDimensions.js +1 -1
  150. package/hooks/useChartId.js +1 -1
  151. package/hooks/useColorScale.js +2 -2
  152. package/hooks/useDrawingArea.js +1 -1
  153. package/hooks/useInteractionItemProps.js +2 -2
  154. package/hooks/useReducedMotion.js +13 -12
  155. package/hooks/useScale.js +2 -2
  156. package/hooks/useSeries.js +1 -1
  157. package/hooks/useSvgRef.js +1 -1
  158. package/hooks/useTicks.js +2 -2
  159. package/index.js +27 -27
  160. package/internals/components/AxisSharedComponents.js +1 -1
  161. package/internals/components/ChartsAxesGradients/ChartsAxesGradients.js +5 -5
  162. package/internals/components/ChartsAxesGradients/index.js +1 -1
  163. package/internals/getWordsByLines.js +1 -1
  164. package/internals/index.js +31 -31
  165. package/internals/isCartesian.js +1 -1
  166. package/internals/useStringInterpolator.d.ts +1 -0
  167. package/internals/{useAnimatedPath.js → useStringInterpolator.js} +2 -15
  168. package/models/index.d.ts +1 -0
  169. package/models/index.js +5 -3
  170. package/models/seriesType/index.js +4 -4
  171. package/modern/BarChart/BarChart.js +23 -12
  172. package/modern/BarChart/BarClipPath.js +1 -1
  173. package/modern/BarChart/BarElement.js +2 -2
  174. package/modern/BarChart/BarLabel/BarLabel.js +1 -1
  175. package/modern/BarChart/BarLabel/BarLabelItem.js +4 -4
  176. package/modern/BarChart/BarLabel/BarLabelPlot.js +1 -1
  177. package/modern/BarChart/BarLabel/index.js +2 -2
  178. package/modern/BarChart/BarPlot.js +8 -8
  179. package/modern/BarChart/checkScaleErrors.js +2 -2
  180. package/modern/BarChart/formatter.js +2 -2
  181. package/modern/BarChart/index.js +4 -4
  182. package/modern/BarChart/legend.js +1 -1
  183. package/modern/BarChart/plugin.js +3 -3
  184. package/modern/BarChart/useBarChartProps.js +1 -1
  185. package/modern/ChartContainer/ChartContainer.js +9 -9
  186. package/modern/ChartContainer/index.js +1 -1
  187. package/modern/ChartContainer/useChartContainerProps.js +2 -2
  188. package/modern/ChartContainer/useDefaultizeAxis.js +1 -1
  189. package/modern/ChartsAxis/ChartsAxis.js +3 -3
  190. package/modern/ChartsAxis/index.js +2 -2
  191. package/modern/ChartsAxisHighlight/ChartsAxisHighlight.js +4 -4
  192. package/modern/ChartsAxisHighlight/index.js +1 -1
  193. package/modern/ChartsClipPath/ChartsClipPath.js +1 -1
  194. package/modern/ChartsClipPath/index.js +1 -1
  195. package/modern/ChartsGrid/ChartsGrid.js +18 -66
  196. package/modern/ChartsGrid/ChartsHorizontalGrid.js +36 -0
  197. package/modern/ChartsGrid/ChartsVerticalGrid.js +36 -0
  198. package/modern/ChartsGrid/index.js +2 -2
  199. package/modern/ChartsGrid/styledCommonents.js +22 -0
  200. package/modern/ChartsLegend/ChartsLegend.js +59 -25
  201. package/modern/ChartsLegend/ContinuousColorLegend.js +7 -7
  202. package/modern/ChartsLegend/DefaultChartsLegend.js +7 -3
  203. package/modern/ChartsLegend/LegendPerItem.js +4 -8
  204. package/modern/ChartsLegend/PiecewiseColorLegend.js +3 -8
  205. package/modern/ChartsLegend/index.js +6 -6
  206. package/modern/ChartsLegend/useAxis.js +2 -2
  207. package/modern/ChartsLegend/utils.js +4 -4
  208. package/modern/ChartsOnAxisClickHandler/ChartsOnAxisClickHandler.js +4 -4
  209. package/modern/ChartsOnAxisClickHandler/index.js +1 -1
  210. package/modern/ChartsOverlay/ChartsLoadingOverlay.js +1 -1
  211. package/modern/ChartsOverlay/ChartsNoDataOverlay.js +1 -1
  212. package/modern/ChartsOverlay/ChartsOverlay.js +3 -3
  213. package/modern/ChartsOverlay/index.js +3 -3
  214. package/modern/ChartsReferenceLine/ChartsReferenceLine.js +2 -2
  215. package/modern/ChartsReferenceLine/ChartsXReferenceLine.js +5 -5
  216. package/modern/ChartsReferenceLine/ChartsYReferenceLine.js +5 -5
  217. package/modern/ChartsReferenceLine/common.js +1 -1
  218. package/modern/ChartsReferenceLine/index.js +2 -2
  219. package/modern/ChartsSurface/ChartsSurface.js +1 -1
  220. package/modern/ChartsSurface/index.js +1 -1
  221. package/modern/ChartsText/ChartsText.js +1 -1
  222. package/modern/ChartsText/index.js +1 -1
  223. package/modern/ChartsTooltip/ChartsAxisTooltipContent.js +6 -6
  224. package/modern/ChartsTooltip/ChartsItemTooltipContent.js +5 -5
  225. package/modern/ChartsTooltip/ChartsTooltip.js +13 -11
  226. package/modern/ChartsTooltip/ChartsTooltipTable.js +10 -5
  227. package/modern/ChartsTooltip/DefaultChartsAxisTooltipContent.js +5 -5
  228. package/modern/ChartsTooltip/DefaultChartsItemTooltipContent.js +3 -3
  229. package/modern/ChartsTooltip/chartsTooltipClasses.js +1 -1
  230. package/modern/ChartsTooltip/index.js +7 -7
  231. package/modern/ChartsTooltip/utils.js +1 -1
  232. package/modern/ChartsVoronoiHandler/ChartsVoronoiHandler.js +7 -7
  233. package/modern/ChartsVoronoiHandler/index.js +1 -1
  234. package/modern/ChartsXAxis/ChartsXAxis.js +18 -13
  235. package/modern/ChartsXAxis/index.js +1 -1
  236. package/modern/ChartsYAxis/ChartsYAxis.js +15 -10
  237. package/modern/ChartsYAxis/index.js +1 -1
  238. package/modern/Gauge/Gauge.js +5 -5
  239. package/modern/Gauge/GaugeContainer.js +4 -4
  240. package/modern/Gauge/GaugeProvider.js +3 -3
  241. package/modern/Gauge/GaugeReferenceArc.js +1 -1
  242. package/modern/Gauge/GaugeValueArc.js +1 -1
  243. package/modern/Gauge/GaugeValueText.js +2 -2
  244. package/modern/Gauge/index.js +7 -7
  245. package/modern/LineChart/AnimatedArea.js +31 -14
  246. package/modern/LineChart/AnimatedLine.js +32 -15
  247. package/modern/LineChart/AreaElement.js +3 -3
  248. package/modern/LineChart/AreaPlot.js +83 -78
  249. package/modern/LineChart/LineChart.js +26 -15
  250. package/modern/LineChart/LineElement.js +3 -3
  251. package/modern/LineChart/LineHighlightPlot.js +8 -8
  252. package/modern/LineChart/LinePlot.js +65 -60
  253. package/modern/LineChart/MarkElement.js +4 -4
  254. package/modern/LineChart/MarkPlot.js +9 -9
  255. package/modern/LineChart/formatter.js +2 -2
  256. package/modern/LineChart/index.js +11 -11
  257. package/modern/LineChart/legend.js +1 -1
  258. package/modern/LineChart/plugin.js +3 -3
  259. package/modern/LineChart/useLineChartProps.js +1 -1
  260. package/modern/PieChart/PieArc.js +1 -1
  261. package/modern/PieChart/PieArcLabelPlot.js +4 -4
  262. package/modern/PieChart/PieArcPlot.js +4 -4
  263. package/modern/PieChart/PieChart.js +19 -8
  264. package/modern/PieChart/PiePlot.js +6 -6
  265. package/modern/PieChart/dataTransform/useTransformData.js +1 -1
  266. package/modern/PieChart/formatter.js +1 -1
  267. package/modern/PieChart/getPieCoordinates.js +1 -1
  268. package/modern/PieChart/index.js +7 -7
  269. package/modern/PieChart/legend.js +1 -1
  270. package/modern/PieChart/plugin.js +2 -2
  271. package/modern/ResponsiveChartContainer/ResponsiveChartContainer.js +3 -3
  272. package/modern/ResponsiveChartContainer/index.js +1 -1
  273. package/modern/ResponsiveChartContainer/useResponsiveChartContainerProps.js +1 -1
  274. package/modern/ScatterChart/Scatter.js +5 -5
  275. package/modern/ScatterChart/ScatterChart.js +23 -12
  276. package/modern/ScatterChart/ScatterPlot.js +5 -5
  277. package/modern/ScatterChart/formatter.js +1 -1
  278. package/modern/ScatterChart/index.js +3 -3
  279. package/modern/ScatterChart/legend.js +1 -1
  280. package/modern/ScatterChart/plugin.js +3 -3
  281. package/modern/SparkLineChart/SparkLineChart.js +6 -6
  282. package/modern/SparkLineChart/index.js +1 -1
  283. package/modern/colorPalettes/index.js +1 -1
  284. package/modern/context/CartesianProvider/CartesianProvider.js +6 -6
  285. package/modern/context/CartesianProvider/computeValue.js +6 -6
  286. package/modern/context/CartesianProvider/defaultizeAxis.js +1 -1
  287. package/modern/context/CartesianProvider/index.js +5 -5
  288. package/modern/context/CartesianProvider/useCartesianContext.js +1 -1
  289. package/modern/context/DrawingProvider.js +1 -1
  290. package/modern/context/HighlightedProvider/HighlightedProvider.js +4 -4
  291. package/modern/context/HighlightedProvider/index.js +4 -4
  292. package/modern/context/HighlightedProvider/useHighlighted.js +1 -1
  293. package/modern/context/HighlightedProvider/useItemHighlighted.js +1 -1
  294. package/modern/context/PluginProvider/PluginProvider.js +2 -2
  295. package/modern/context/PluginProvider/index.js +10 -10
  296. package/modern/context/PluginProvider/mergePlugins.js +4 -4
  297. package/modern/context/PluginProvider/useColorProcessor.js +1 -1
  298. package/modern/context/PluginProvider/useSeriesFormatter.js +1 -1
  299. package/modern/context/PluginProvider/useXExtremumGetter.js +1 -1
  300. package/modern/context/PluginProvider/useYExtremumGetter.js +1 -1
  301. package/modern/context/SeriesProvider/SeriesProvider.js +4 -4
  302. package/modern/context/SeriesProvider/index.js +4 -4
  303. package/modern/context/SeriesProvider/processSeries.js +1 -1
  304. package/modern/context/ZAxisContextProvider.js +1 -1
  305. package/modern/context/index.js +2 -2
  306. package/modern/hooks/index.js +7 -7
  307. package/modern/hooks/useAxis.js +1 -1
  308. package/modern/hooks/useAxisEvents.js +6 -6
  309. package/modern/hooks/useChartDimensions.js +1 -1
  310. package/modern/hooks/useChartId.js +1 -1
  311. package/modern/hooks/useColorScale.js +2 -2
  312. package/modern/hooks/useDrawingArea.js +1 -1
  313. package/modern/hooks/useInteractionItemProps.js +2 -2
  314. package/modern/hooks/useReducedMotion.js +13 -12
  315. package/modern/hooks/useScale.js +2 -2
  316. package/modern/hooks/useSeries.js +1 -1
  317. package/modern/hooks/useSvgRef.js +1 -1
  318. package/modern/hooks/useTicks.js +2 -2
  319. package/modern/index.js +27 -27
  320. package/modern/internals/components/AxisSharedComponents.js +1 -1
  321. package/modern/internals/components/ChartsAxesGradients/ChartsAxesGradients.js +5 -5
  322. package/modern/internals/components/ChartsAxesGradients/index.js +1 -1
  323. package/modern/internals/getWordsByLines.js +1 -1
  324. package/modern/internals/index.js +31 -31
  325. package/modern/internals/isCartesian.js +1 -1
  326. package/modern/internals/{useAnimatedPath.js → useStringInterpolator.js} +2 -15
  327. package/modern/models/index.js +5 -3
  328. package/modern/models/seriesType/index.js +4 -4
  329. package/modern/themeAugmentation/index.js +0 -3
  330. package/node/BarChart/BarChart.js +14 -4
  331. package/node/BarChart/BarClipPath.js +2 -3
  332. package/node/BarChart/BarElement.js +2 -3
  333. package/node/BarChart/BarLabel/BarLabel.js +2 -3
  334. package/node/BarChart/BarLabel/BarLabelItem.js +2 -3
  335. package/node/BarChart/BarLabel/BarLabelPlot.js +2 -3
  336. package/node/BarChart/BarLabel/barLabelClasses.js +1 -1
  337. package/node/BarChart/BarPlot.js +2 -3
  338. package/node/BarChart/formatter.js +1 -1
  339. package/node/BarChart/plugin.js +1 -1
  340. package/node/BarChart/useBarChartProps.js +1 -1
  341. package/node/ChartContainer/ChartContainer.js +2 -3
  342. package/node/ChartContainer/useChartContainerProps.js +2 -3
  343. package/node/ChartContainer/useDefaultizeAxis.js +2 -3
  344. package/node/ChartsAxis/ChartsAxis.js +2 -3
  345. package/node/ChartsAxisHighlight/ChartsAxisHighlight.js +2 -3
  346. package/node/ChartsClipPath/ChartsClipPath.js +2 -3
  347. package/node/ChartsGrid/ChartsGrid.js +17 -66
  348. package/node/ChartsGrid/ChartsHorizontalGrid.js +43 -0
  349. package/node/ChartsGrid/ChartsVerticalGrid.js +43 -0
  350. package/node/ChartsGrid/chartsGridClasses.js +1 -1
  351. package/node/ChartsGrid/styledCommonents.js +28 -0
  352. package/node/ChartsLegend/ChartsLegend.js +56 -23
  353. package/node/ChartsLegend/ContinuousColorLegend.js +2 -3
  354. package/node/ChartsLegend/DefaultChartsLegend.js +8 -5
  355. package/node/ChartsLegend/LegendPerItem.js +2 -7
  356. package/node/ChartsLegend/PiecewiseColorLegend.js +2 -8
  357. package/node/ChartsLegend/legendItemsPlacement.js +1 -1
  358. package/node/ChartsLegend/useAxis.js +1 -2
  359. package/node/ChartsLegend/utils.js +1 -1
  360. package/node/ChartsOnAxisClickHandler/ChartsOnAxisClickHandler.js +2 -3
  361. package/node/ChartsOverlay/ChartsLoadingOverlay.js +2 -3
  362. package/node/ChartsOverlay/ChartsNoDataOverlay.js +2 -3
  363. package/node/ChartsOverlay/ChartsOverlay.js +2 -3
  364. package/node/ChartsReferenceLine/ChartsReferenceLine.js +2 -3
  365. package/node/ChartsReferenceLine/ChartsXReferenceLine.js +2 -3
  366. package/node/ChartsReferenceLine/ChartsYReferenceLine.js +2 -3
  367. package/node/ChartsReferenceLine/chartsReferenceLineClasses.js +1 -1
  368. package/node/ChartsReferenceLine/common.js +1 -1
  369. package/node/ChartsSurface/ChartsSurface.js +2 -3
  370. package/node/ChartsText/ChartsText.js +2 -3
  371. package/node/ChartsTooltip/ChartsAxisTooltipContent.js +2 -3
  372. package/node/ChartsTooltip/ChartsItemTooltipContent.js +2 -3
  373. package/node/ChartsTooltip/ChartsTooltip.js +10 -9
  374. package/node/ChartsTooltip/ChartsTooltipTable.js +9 -4
  375. package/node/ChartsTooltip/DefaultChartsAxisTooltipContent.js +3 -4
  376. package/node/ChartsTooltip/DefaultChartsItemTooltipContent.js +3 -4
  377. package/node/ChartsTooltip/chartsTooltipClasses.js +1 -1
  378. package/node/ChartsTooltip/utils.js +2 -3
  379. package/node/ChartsVoronoiHandler/ChartsVoronoiHandler.js +2 -3
  380. package/node/ChartsXAxis/ChartsXAxis.js +8 -4
  381. package/node/ChartsYAxis/ChartsYAxis.js +8 -4
  382. package/node/Gauge/Gauge.js +2 -3
  383. package/node/Gauge/GaugeContainer.js +2 -3
  384. package/node/Gauge/GaugeProvider.js +1 -2
  385. package/node/Gauge/GaugeReferenceArc.js +2 -3
  386. package/node/Gauge/GaugeValueArc.js +2 -3
  387. package/node/Gauge/GaugeValueText.js +2 -3
  388. package/node/Gauge/gaugeClasses.js +1 -1
  389. package/node/LineChart/AnimatedArea.js +30 -14
  390. package/node/LineChart/AnimatedLine.js +30 -14
  391. package/node/LineChart/AreaElement.js +2 -3
  392. package/node/LineChart/AreaPlot.js +78 -74
  393. package/node/LineChart/LineChart.js +14 -4
  394. package/node/LineChart/LineElement.js +2 -3
  395. package/node/LineChart/LineHighlightElement.js +2 -3
  396. package/node/LineChart/LineHighlightPlot.js +2 -3
  397. package/node/LineChart/LinePlot.js +60 -56
  398. package/node/LineChart/MarkElement.js +2 -3
  399. package/node/LineChart/MarkPlot.js +2 -3
  400. package/node/LineChart/formatter.js +1 -1
  401. package/node/LineChart/plugin.js +1 -1
  402. package/node/LineChart/useLineChartProps.js +1 -1
  403. package/node/PieChart/PieArc.js +2 -3
  404. package/node/PieChart/PieArcLabel.js +2 -3
  405. package/node/PieChart/PieArcLabelPlot.js +2 -3
  406. package/node/PieChart/PieArcPlot.js +2 -3
  407. package/node/PieChart/PieChart.js +13 -3
  408. package/node/PieChart/PiePlot.js +2 -3
  409. package/node/PieChart/dataTransform/useTransformData.js +2 -3
  410. package/node/PieChart/formatter.js +1 -1
  411. package/node/PieChart/plugin.js +1 -1
  412. package/node/ResponsiveChartContainer/ResponsiveChartContainer.js +2 -3
  413. package/node/ResponsiveChartContainer/useChartContainerDimensions.js +2 -3
  414. package/node/ResponsiveChartContainer/useResponsiveChartContainerProps.js +1 -1
  415. package/node/ScatterChart/Scatter.js +2 -3
  416. package/node/ScatterChart/ScatterChart.js +14 -4
  417. package/node/ScatterChart/ScatterPlot.js +2 -3
  418. package/node/ScatterChart/plugin.js +1 -1
  419. package/node/ScatterChart/useScatterChartProps.js +1 -1
  420. package/node/SparkLineChart/SparkLineChart.js +2 -3
  421. package/node/context/CartesianProvider/CartesianContext.js +1 -2
  422. package/node/context/CartesianProvider/CartesianProvider.js +1 -2
  423. package/node/context/CartesianProvider/computeValue.js +1 -1
  424. package/node/context/CartesianProvider/defaultizeAxis.js +1 -1
  425. package/node/context/CartesianProvider/useCartesianContext.js +1 -2
  426. package/node/context/DrawingProvider.js +2 -3
  427. package/node/context/HighlightedProvider/HighlightedContext.js +1 -2
  428. package/node/context/HighlightedProvider/HighlightedProvider.js +2 -3
  429. package/node/context/HighlightedProvider/useHighlighted.js +1 -2
  430. package/node/context/InteractionProvider.js +2 -3
  431. package/node/context/PluginProvider/PluginContext.js +1 -2
  432. package/node/context/PluginProvider/PluginProvider.js +1 -2
  433. package/node/context/PluginProvider/useColorProcessor.js +1 -2
  434. package/node/context/PluginProvider/useSeriesFormatter.js +1 -2
  435. package/node/context/PluginProvider/useXExtremumGetter.js +1 -2
  436. package/node/context/PluginProvider/useYExtremumGetter.js +1 -2
  437. package/node/context/SeriesProvider/SeriesContext.js +1 -2
  438. package/node/context/SeriesProvider/SeriesProvider.js +1 -2
  439. package/node/context/SeriesProvider/processSeries.js +1 -1
  440. package/node/context/ZAxisContextProvider.js +2 -3
  441. package/node/hooks/useAxisEvents.js +1 -2
  442. package/node/hooks/useChartDimensions.js +2 -3
  443. package/node/hooks/useChartId.js +1 -2
  444. package/node/hooks/useColorScale.js +1 -2
  445. package/node/hooks/useDrawingArea.js +1 -2
  446. package/node/hooks/useInteractionItemProps.js +1 -2
  447. package/node/hooks/useMounted.js +2 -3
  448. package/node/hooks/useReducedMotion.js +14 -12
  449. package/node/hooks/useSeries.js +1 -2
  450. package/node/hooks/useSvgRef.js +1 -2
  451. package/node/hooks/useTicks.js +1 -2
  452. package/node/index.js +1 -1
  453. package/node/internals/components/AxisSharedComponents.js +1 -1
  454. package/node/internals/components/ChartsAxesGradients/ChartsAxesGradients.js +2 -3
  455. package/node/internals/components/ChartsAxesGradients/ChartsContinuousGradient.js +1 -2
  456. package/node/internals/components/ChartsAxesGradients/ChartsPiecewiseGradient.js +1 -2
  457. package/node/internals/defaultizeColor.js +1 -1
  458. package/node/internals/defaultizeValueFormatter.js +1 -1
  459. package/node/internals/domUtils.js +1 -1
  460. package/node/internals/getWordsByLines.js +1 -1
  461. package/node/internals/useStringInterpolator.js +28 -0
  462. package/node/tests/firePointerEvent.js +1 -1
  463. package/node/themeAugmentation/index.js +1 -38
  464. package/package.json +4 -3
  465. package/themeAugmentation/components.d.ts +2 -0
  466. package/themeAugmentation/index.d.ts +3 -3
  467. package/themeAugmentation/index.js +0 -3
  468. package/themeAugmentation/overrides.d.ts +6 -4
  469. package/internals/useAnimatedPath.d.ts +0 -1
  470. package/node/internals/useAnimatedPath.js +0 -42
@@ -0,0 +1,2 @@
1
+ export declare const GridRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, Pick<import("react").SVGProps<SVGGElement>, keyof import("react").SVGProps<SVGGElement>>, {}>;
2
+ export declare const GridLine: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, Pick<import("react").SVGLineElementAttributes<SVGLineElement>, keyof import("react").SVGLineElementAttributes<SVGLineElement>>, {}>;
@@ -0,0 +1,22 @@
1
+ import { styled } from '@mui/material/styles';
2
+ import { chartsGridClasses } from "./chartsGridClasses.js";
3
+ export const GridRoot = styled('g', {
4
+ name: 'MuiChartsGrid',
5
+ slot: 'Root',
6
+ overridesResolver: (props, styles) => [{
7
+ [`&.${chartsGridClasses.verticalLine}`]: styles.verticalLine
8
+ }, {
9
+ [`&.${chartsGridClasses.horizontalLine}`]: styles.horizontalLine
10
+ }, styles.root]
11
+ })({});
12
+ export const GridLine = styled('line', {
13
+ name: 'MuiChartsGrid',
14
+ slot: 'Line',
15
+ overridesResolver: (props, styles) => styles.line
16
+ })(({
17
+ theme
18
+ }) => ({
19
+ stroke: (theme.vars || theme).palette.divider,
20
+ shapeRendering: 'crispEdges',
21
+ strokeWidth: 1
22
+ }));
@@ -1,27 +1,18 @@
1
1
  import * as React from 'react';
2
- import { ChartsLegendClasses } from './chartsLegendClasses';
3
2
  import { LegendRendererProps } from './DefaultChartsLegend';
4
3
  import { LegendPlacement } from './legend.types';
4
+ export type ChartsLegendPropsBase = Omit<LegendRendererProps, keyof LegendPlacement | 'series' | 'seriesToDisplay' | 'drawingArea'> & LegendPlacement;
5
5
  export interface ChartsLegendSlots {
6
6
  /**
7
7
  * Custom rendering of the legend.
8
8
  * @default DefaultChartsLegend
9
9
  */
10
- legend?: React.JSXElementConstructor<LegendRendererProps>;
10
+ legend?: React.JSXElementConstructor<ChartsLegendPropsBase>;
11
11
  }
12
12
  export interface ChartsLegendSlotProps {
13
- legend?: Partial<LegendRendererProps>;
13
+ legend?: Partial<ChartsLegendPropsBase>;
14
14
  }
15
- export interface ChartsLegendProps extends LegendPlacement {
16
- /**
17
- * Override or extend the styles applied to the component.
18
- */
19
- classes?: Partial<ChartsLegendClasses>;
20
- /**
21
- * Set to true to hide the legend.
22
- * @default false
23
- */
24
- hidden?: boolean;
15
+ export interface ChartsLegendProps extends ChartsLegendPropsBase {
25
16
  /**
26
17
  * Overridable component slots.
27
18
  * @default {}
@@ -1,14 +1,16 @@
1
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
1
2
  import _extends from "@babel/runtime/helpers/esm/extends";
3
+ const _excluded = ["slots", "slotProps"];
2
4
  import * as React from 'react';
3
5
  import PropTypes from 'prop-types';
4
6
  import useSlotProps from '@mui/utils/useSlotProps';
5
7
  import composeClasses from '@mui/utils/composeClasses';
6
8
  import { useThemeProps, useTheme } from '@mui/material/styles';
7
- import { getSeriesToDisplay } from './utils';
8
- import { getLegendUtilityClass } from './chartsLegendClasses';
9
- import { DefaultChartsLegend } from './DefaultChartsLegend';
10
- import { useDrawingArea } from '../hooks';
11
- import { useSeries } from '../hooks/useSeries';
9
+ import { getSeriesToDisplay } from "./utils.js";
10
+ import { getLegendUtilityClass } from "./chartsLegendClasses.js";
11
+ import { DefaultChartsLegend } from "./DefaultChartsLegend.js";
12
+ import { useDrawingArea } from "../hooks/index.js";
13
+ import { useSeries } from "../hooks/useSeries.js";
12
14
  import { jsx as _jsx } from "react/jsx-runtime";
13
15
  const useUtilityClasses = ownerState => {
14
16
  const {
@@ -23,27 +25,26 @@ const useUtilityClasses = ownerState => {
23
25
  };
24
26
  return composeClasses(slots, getLegendUtilityClass, classes);
25
27
  };
26
- const defaultProps = {
27
- position: {
28
- horizontal: 'middle',
29
- vertical: 'top'
30
- },
31
- direction: 'row'
32
- };
33
28
  function ChartsLegend(inProps) {
34
29
  const props = useThemeProps({
35
- props: _extends({}, defaultProps, inProps),
30
+ props: inProps,
36
31
  name: 'MuiChartsLegend'
37
32
  });
33
+ const defaultizedProps = _extends({
34
+ direction: 'row'
35
+ }, props, {
36
+ position: _extends({
37
+ horizontal: 'middle',
38
+ vertical: 'top'
39
+ }, props.position)
40
+ });
38
41
  const {
39
- position,
40
- direction,
41
- hidden,
42
- slots,
43
- slotProps
44
- } = props;
42
+ slots,
43
+ slotProps
44
+ } = defaultizedProps,
45
+ other = _objectWithoutPropertiesLoose(defaultizedProps, _excluded);
45
46
  const theme = useTheme();
46
- const classes = useUtilityClasses(_extends({}, props, {
47
+ const classes = useUtilityClasses(_extends({}, defaultizedProps, {
47
48
  theme
48
49
  }));
49
50
  const drawingArea = useDrawingArea();
@@ -53,15 +54,12 @@ function ChartsLegend(inProps) {
53
54
  const chartLegendRenderProps = useSlotProps({
54
55
  elementType: ChartLegendRender,
55
56
  externalSlotProps: slotProps?.legend,
56
- additionalProps: {
57
- position,
58
- direction,
57
+ additionalProps: _extends({}, other, {
59
58
  classes,
60
59
  drawingArea,
61
60
  series,
62
- hidden,
63
61
  seriesToDisplay
64
- },
62
+ }),
65
63
  ownerState: {}
66
64
  });
67
65
  return /*#__PURE__*/_jsx(ChartLegendRender, _extends({}, chartLegendRenderProps));
@@ -85,6 +83,42 @@ process.env.NODE_ENV !== "production" ? ChartsLegend.propTypes = {
85
83
  * @default false
86
84
  */
87
85
  hidden: PropTypes.bool,
86
+ /**
87
+ * Space between two legend items (in px).
88
+ * @default 10
89
+ */
90
+ itemGap: PropTypes.number,
91
+ /**
92
+ * Height of the item mark (in px).
93
+ * @default 20
94
+ */
95
+ itemMarkHeight: PropTypes.number,
96
+ /**
97
+ * Width of the item mark (in px).
98
+ * @default 20
99
+ */
100
+ itemMarkWidth: PropTypes.number,
101
+ /**
102
+ * Style applied to legend labels.
103
+ * @default theme.typography.subtitle1
104
+ */
105
+ labelStyle: PropTypes.object,
106
+ /**
107
+ * Space between the mark and the label (in px).
108
+ * @default 5
109
+ */
110
+ markGap: PropTypes.number,
111
+ /**
112
+ * Legend padding (in px).
113
+ * Can either be a single number, or an object with top, left, bottom, right properties.
114
+ * @default 10
115
+ */
116
+ padding: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
117
+ bottom: PropTypes.number,
118
+ left: PropTypes.number,
119
+ right: PropTypes.number,
120
+ top: PropTypes.number
121
+ })]),
88
122
  /**
89
123
  * The position of the legend.
90
124
  */
@@ -3,13 +3,13 @@ import * as React from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import { useTheme } from '@mui/material/styles';
5
5
  import { useRtl } from '@mui/system/RtlProvider';
6
- import ChartsContinuousGradient from '../internals/components/ChartsAxesGradients/ChartsContinuousGradient';
7
- import { useChartId, useDrawingArea } from '../hooks';
8
- import { getScale } from '../internals/getScale';
9
- import { getPercentageValue } from '../internals/getPercentageValue';
10
- import { ChartsText } from '../ChartsText';
11
- import { getStringSize } from '../internals/domUtils';
12
- import { useAxis } from './useAxis';
6
+ import ChartsContinuousGradient from "../internals/components/ChartsAxesGradients/ChartsContinuousGradient.js";
7
+ import { useChartId, useDrawingArea } from "../hooks/index.js";
8
+ import { getScale } from "../internals/getScale.js";
9
+ import { getPercentageValue } from "../internals/getPercentageValue.js";
10
+ import { ChartsText } from "../ChartsText/index.js";
11
+ import { getStringSize } from "../internals/domUtils.js";
12
+ import { useAxis } from "./useAxis.js";
13
13
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
14
14
  function getPositionOffset(position, legendBox, svgBox) {
15
15
  let offsetX = 0;
@@ -9,8 +9,13 @@ export interface LegendRendererProps extends Omit<LegendPerItemProps, 'itemsToDi
9
9
  * @deprecated Use the `useDrawingArea` hook instead.
10
10
  */
11
11
  drawingArea: Omit<DrawingArea, 'isPointInside'>;
12
+ /**
13
+ * Set to true to hide the legend.
14
+ * @default false
15
+ */
16
+ hidden?: boolean;
12
17
  }
13
- declare function DefaultChartsLegend(props: LegendRendererProps): React.JSX.Element;
18
+ declare function DefaultChartsLegend(props: LegendRendererProps): React.JSX.Element | null;
14
19
  declare namespace DefaultChartsLegend {
15
20
  var propTypes: any;
16
21
  }
@@ -1,15 +1,19 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
- const _excluded = ["drawingArea", "seriesToDisplay"];
3
+ const _excluded = ["drawingArea", "seriesToDisplay", "hidden"];
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
- import { LegendPerItem } from './LegendPerItem';
6
+ import { LegendPerItem } from "./LegendPerItem.js";
7
7
  import { jsx as _jsx } from "react/jsx-runtime";
8
8
  function DefaultChartsLegend(props) {
9
9
  const {
10
- seriesToDisplay
10
+ seriesToDisplay,
11
+ hidden
11
12
  } = props,
12
13
  other = _objectWithoutPropertiesLoose(props, _excluded);
14
+ if (hidden) {
15
+ return null;
16
+ }
13
17
  return /*#__PURE__*/_jsx(LegendPerItem, _extends({}, other, {
14
18
  itemsToDisplay: seriesToDisplay
15
19
  }));
@@ -1,11 +1,11 @@
1
1
  import * as React from 'react';
2
2
  import { DrawingArea } from '../context/DrawingProvider';
3
- import { DefaultizedProps } from '../models/helpers';
4
3
  import { ChartsTextStyle } from '../ChartsText';
5
4
  import { CardinalDirections } from '../models/layout';
6
- import type { ChartsLegendProps } from './ChartsLegend';
7
5
  import { LegendItemParams } from './chartsLegend.types';
8
- import { AnchorPosition, Direction } from './legend.types';
6
+ import { AnchorPosition, Direction, LegendPlacement } from './legend.types';
7
+ import { ChartsLegendClasses } from './chartsLegendClasses';
8
+ import { DefaultizedProps } from '../models/helpers';
9
9
  export type ChartsLegendRootOwnerState = {
10
10
  position: AnchorPosition;
11
11
  direction: Direction;
@@ -15,12 +15,15 @@ export type ChartsLegendRootOwnerState = {
15
15
  seriesNumber: number;
16
16
  };
17
17
  export declare const ChartsLegendRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, Pick<React.SVGProps<SVGGElement>, keyof React.SVGProps<SVGGElement>>, {}>;
18
- export interface LegendPerItemProps extends DefaultizedProps<Omit<ChartsLegendProps, 'slots' | 'slotProps'>, 'direction' | 'position'> {
18
+ export interface LegendPerItemProps extends DefaultizedProps<LegendPlacement, keyof LegendPlacement> {
19
19
  /**
20
20
  * The ordered array of item to display in the legend.
21
21
  */
22
22
  itemsToDisplay: LegendItemParams[];
23
- classes?: Record<'mark' | 'series' | 'root', string>;
23
+ /**
24
+ * Override or extend the styles applied to the component.
25
+ */
26
+ classes?: Partial<ChartsLegendClasses>;
24
27
  /**
25
28
  * Style applied to legend labels.
26
29
  * @default theme.typography.subtitle1
@@ -58,4 +61,4 @@ export interface LegendPerItemProps extends DefaultizedProps<Omit<ChartsLegendPr
58
61
  * Used for series legend, and threshold color legend.
59
62
  * @ignore - Do not document
60
63
  */
61
- export declare function LegendPerItem(props: LegendPerItemProps): React.JSX.Element | null;
64
+ export declare function LegendPerItem(props: LegendPerItemProps): React.JSX.Element;
@@ -5,10 +5,10 @@ import * as React from 'react';
5
5
  import NoSsr from '@mui/material/NoSsr';
6
6
  import { useTheme, styled } from '@mui/material/styles';
7
7
  import { useRtl } from '@mui/system/RtlProvider';
8
- import { ChartsText } from '../ChartsText';
9
- import { getWordsByLines } from '../internals/getWordsByLines';
10
- import { legendItemPlacements } from './legendItemsPlacement';
11
- import { useDrawingArea } from '../hooks/useDrawingArea';
8
+ import { ChartsText } from "../ChartsText/index.js";
9
+ import { getWordsByLines } from "../internals/getWordsByLines.js";
10
+ import { legendItemPlacements } from "./legendItemsPlacement.js";
11
+ import { useDrawingArea } from "../hooks/useDrawingArea.js";
12
12
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
13
  export const ChartsLegendRoot = styled('g', {
14
14
  name: 'MuiChartsLegend',
@@ -42,7 +42,6 @@ const getStandardizedPadding = padding => {
42
42
  */
43
43
  export function LegendPerItem(props) {
44
44
  const {
45
- hidden,
46
45
  position,
47
46
  direction,
48
47
  itemsToDisplay,
@@ -108,9 +107,6 @@ export function LegendPerItem(props) {
108
107
  return (totalHeight - legendHeight) / 2;
109
108
  }
110
109
  }, [position.vertical, padding.top, padding.bottom, totalHeight, legendHeight]);
111
- if (hidden) {
112
- return null;
113
- }
114
110
  return /*#__PURE__*/_jsx(NoSsr, {
115
111
  children: /*#__PURE__*/_jsx(ChartsLegendRoot, {
116
112
  className: classes?.root,
@@ -3,9 +3,9 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
3
3
  const _excluded = ["axisDirection", "axisId", "hideFirst", "hideLast", "labelFormatter"];
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
- import { useAxis } from './useAxis';
7
- import { LegendPerItem } from './LegendPerItem';
8
- import { notNull } from '../internals/notNull';
6
+ import { useAxis } from "./useAxis.js";
7
+ import { LegendPerItem } from "./LegendPerItem.js";
8
+ import { notNull } from "../internals/notNull.js";
9
9
  import { jsx as _jsx } from "react/jsx-runtime";
10
10
  function defaultLabelFormatter(params) {
11
11
  if (params.min === null) {
@@ -93,11 +93,6 @@ process.env.NODE_ENV !== "production" ? PiecewiseColorLegend.propTypes = {
93
93
  * The default depends on the chart.
94
94
  */
95
95
  direction: PropTypes.oneOf(['column', 'row']).isRequired,
96
- /**
97
- * Set to true to hide the legend.
98
- * @default false
99
- */
100
- hidden: PropTypes.bool,
101
96
  /**
102
97
  * Hide the first item of the legend, corresponding to the [-infinity, min] piece.
103
98
  * @default false
@@ -1,6 +1,6 @@
1
- export * from './ChartsLegend';
2
- export * from './DefaultChartsLegend';
3
- export * from './ContinuousColorLegend';
4
- export * from './PiecewiseColorLegend';
5
- export * from './chartsLegendClasses';
6
- export * from './utils';
1
+ export * from "./ChartsLegend.js";
2
+ export * from "./DefaultChartsLegend.js";
3
+ export * from "./ContinuousColorLegend.js";
4
+ export * from "./PiecewiseColorLegend.js";
5
+ export * from "./chartsLegendClasses.js";
6
+ export * from "./utils.js";
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- import { ZAxisContext } from '../context/ZAxisContextProvider';
3
- import { useCartesianContext } from '../context/CartesianProvider/useCartesianContext';
2
+ import { ZAxisContext } from "../context/ZAxisContextProvider.js";
3
+ import { useCartesianContext } from "../context/CartesianProvider/useCartesianContext.js";
4
4
  /**
5
5
  * Helper to select an axis definition according to its direction and id.
6
6
  */
@@ -1,7 +1,7 @@
1
- import getBarLegend from '../BarChart/legend';
2
- import getScatterLegend from '../ScatterChart/legend';
3
- import getLineLegend from '../LineChart/legend';
4
- import getPieLegend from '../PieChart/legend';
1
+ import getBarLegend from "../BarChart/legend.js";
2
+ import getScatterLegend from "../ScatterChart/legend.js";
3
+ import getLineLegend from "../LineChart/legend.js";
4
+ import getPieLegend from "../PieChart/legend.js";
5
5
  const legendGetter = {
6
6
  bar: getBarLegend,
7
7
  scatter: getScatterLegend,
@@ -1,9 +1,9 @@
1
1
  import * as React from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import { InteractionContext } from '../context/InteractionProvider';
4
- import { useSeries } from '../hooks/useSeries';
5
- import { useSvgRef } from '../hooks';
6
- import { useCartesianContext } from '../context/CartesianProvider';
3
+ import { InteractionContext } from "../context/InteractionProvider.js";
4
+ import { useSeries } from "../hooks/useSeries.js";
5
+ import { useSvgRef } from "../hooks/index.js";
6
+ import { useCartesianContext } from "../context/CartesianProvider/index.js";
7
7
  import { jsx as _jsx } from "react/jsx-runtime";
8
8
  function ChartsOnAxisClickHandler(props) {
9
9
  const {
@@ -1 +1 @@
1
- export * from './ChartsOnAxisClickHandler';
1
+ export * from "./ChartsOnAxisClickHandler.js";
@@ -3,7 +3,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
3
3
  const _excluded = ["message"];
4
4
  import * as React from 'react';
5
5
  import { styled } from '@mui/material/styles';
6
- import { useDrawingArea } from '../hooks/useDrawingArea';
6
+ import { useDrawingArea } from "../hooks/useDrawingArea.js";
7
7
  import { jsx as _jsx } from "react/jsx-runtime";
8
8
  const StyledText = styled('text')(({
9
9
  theme
@@ -3,7 +3,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
3
3
  const _excluded = ["message"];
4
4
  import * as React from 'react';
5
5
  import { styled } from '@mui/material/styles';
6
- import { useDrawingArea } from '../hooks/useDrawingArea';
6
+ import { useDrawingArea } from "../hooks/useDrawingArea.js";
7
7
  import { jsx as _jsx } from "react/jsx-runtime";
8
8
  const StyledText = styled('text')(({
9
9
  theme
@@ -1,8 +1,8 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import * as React from 'react';
3
- import { ChartsLoadingOverlay } from './ChartsLoadingOverlay';
4
- import { useSeries } from '../hooks/useSeries';
5
- import { ChartsNoDataOverlay } from './ChartsNoDataOverlay';
3
+ import { ChartsLoadingOverlay } from "./ChartsLoadingOverlay.js";
4
+ import { useSeries } from "../hooks/useSeries.js";
5
+ import { ChartsNoDataOverlay } from "./ChartsNoDataOverlay.js";
6
6
  import { jsx as _jsx } from "react/jsx-runtime";
7
7
  export function useNoData() {
8
8
  const seriesPerType = useSeries();
@@ -1,3 +1,3 @@
1
- export { ChartsOverlay } from './ChartsOverlay';
2
- export { ChartsLoadingOverlay } from './ChartsLoadingOverlay';
3
- export { ChartsNoDataOverlay } from './ChartsNoDataOverlay';
1
+ export { ChartsOverlay } from "./ChartsOverlay.js";
2
+ export { ChartsLoadingOverlay } from "./ChartsLoadingOverlay.js";
3
+ export { ChartsNoDataOverlay } from "./ChartsNoDataOverlay.js";
@@ -1,8 +1,8 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import * as React from 'react';
3
3
  import PropTypes from 'prop-types';
4
- import { ChartsXReferenceLine } from './ChartsXReferenceLine';
5
- import { ChartsYReferenceLine } from './ChartsYReferenceLine';
4
+ import { ChartsXReferenceLine } from "./ChartsXReferenceLine.js";
5
+ import { ChartsYReferenceLine } from "./ChartsYReferenceLine.js";
6
6
  import { jsx as _jsx } from "react/jsx-runtime";
7
7
  function ChartsReferenceLine(props) {
8
8
  const {
@@ -1,11 +1,11 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import * as React from 'react';
3
3
  import composeClasses from '@mui/utils/composeClasses';
4
- import { useDrawingArea, useXScale } from '../hooks';
5
- import { ReferenceLineRoot } from './common';
6
- import { ChartsText } from '../ChartsText';
7
- import { getReferenceLineUtilityClass } from './chartsReferenceLineClasses';
8
- import { warnOnce } from '../internals/warning';
4
+ import { useDrawingArea, useXScale } from "../hooks/index.js";
5
+ import { ReferenceLineRoot } from "./common.js";
6
+ import { ChartsText } from "../ChartsText/index.js";
7
+ import { getReferenceLineUtilityClass } from "./chartsReferenceLineClasses.js";
8
+ import { warnOnce } from "../internals/warning.js";
9
9
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
10
10
  const getTextParams = ({
11
11
  top,
@@ -1,11 +1,11 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import * as React from 'react';
3
3
  import composeClasses from '@mui/utils/composeClasses';
4
- import { useDrawingArea, useYScale } from '../hooks';
5
- import { ReferenceLineRoot } from './common';
6
- import { ChartsText } from '../ChartsText';
7
- import { getReferenceLineUtilityClass } from './chartsReferenceLineClasses';
8
- import { warnOnce } from '../internals/warning';
4
+ import { useDrawingArea, useYScale } from "../hooks/index.js";
5
+ import { ReferenceLineRoot } from "./common.js";
6
+ import { ChartsText } from "../ChartsText/index.js";
7
+ import { getReferenceLineUtilityClass } from "./chartsReferenceLineClasses.js";
8
+ import { warnOnce } from "../internals/warning.js";
9
9
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
10
10
  const getTextParams = ({
11
11
  left,
@@ -1,6 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import { styled } from '@mui/material/styles';
3
- import { referenceLineClasses } from './chartsReferenceLineClasses';
3
+ import { referenceLineClasses } from "./chartsReferenceLineClasses.js";
4
4
  export const ReferenceLineRoot = styled('g')(({
5
5
  theme
6
6
  }) => ({
@@ -1,2 +1,2 @@
1
- export * from './ChartsReferenceLine';
2
- export * from './chartsReferenceLineClasses';
1
+ export * from "./ChartsReferenceLine.js";
2
+ export * from "./chartsReferenceLineClasses.js";
@@ -4,7 +4,7 @@ const _excluded = ["children", "width", "height", "viewBox", "disableAxisListene
4
4
  import { styled, useThemeProps } from '@mui/material/styles';
5
5
  import PropTypes from 'prop-types';
6
6
  import * as React from 'react';
7
- import { useAxisEvents } from '../hooks/useAxisEvents';
7
+ import { useAxisEvents } from "../hooks/useAxisEvents.js";
8
8
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
9
  const ChartChartsSurfaceStyles = styled('svg', {
10
10
  name: 'MuiChartsSurface',
@@ -1 +1 @@
1
- export * from './ChartsSurface';
1
+ export * from "./ChartsSurface.js";
@@ -4,7 +4,7 @@ const _excluded = ["x", "y", "style", "text", "ownerState"],
4
4
  _excluded2 = ["angle", "textAnchor", "dominantBaseline"];
5
5
  import * as React from 'react';
6
6
  import PropTypes from 'prop-types';
7
- import { getWordsByLines } from '../internals/getWordsByLines';
7
+ import { getWordsByLines } from "../internals/getWordsByLines.js";
8
8
  import { jsx as _jsx } from "react/jsx-runtime";
9
9
  /**
10
10
  * Helper component to manage multiline text in SVG
@@ -1 +1 @@
1
- export { ChartsText } from './ChartsText';
1
+ export { ChartsText } from "./ChartsText.js";
@@ -1,12 +1,12 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import * as React from 'react';
3
3
  import useSlotProps from '@mui/utils/useSlotProps';
4
- import { useCartesianContext } from '../context/CartesianProvider';
5
- import { DefaultChartsAxisTooltipContent } from './DefaultChartsAxisTooltipContent';
6
- import { ZAxisContext } from '../context/ZAxisContextProvider';
7
- import { useColorProcessor } from '../context/PluginProvider/useColorProcessor';
8
- import { isCartesianSeriesType } from '../internals/isCartesian';
9
- import { useSeries } from '../hooks/useSeries';
4
+ import { useCartesianContext } from "../context/CartesianProvider/index.js";
5
+ import { DefaultChartsAxisTooltipContent } from "./DefaultChartsAxisTooltipContent.js";
6
+ import { ZAxisContext } from "../context/ZAxisContextProvider.js";
7
+ import { useColorProcessor } from "../context/PluginProvider/useColorProcessor.js";
8
+ import { isCartesianSeriesType } from "../internals/isCartesian.js";
9
+ import { useSeries } from "../hooks/useSeries.js";
10
10
  import { jsx as _jsx } from "react/jsx-runtime";
11
11
  /**
12
12
  * @ignore - internal component.
@@ -9,7 +9,7 @@ export interface ChartsItemContentProps<T extends ChartSeriesType> {
9
9
  */
10
10
  itemData: ItemInteractionData<T>;
11
11
  /**
12
- * The series linked to the triggered axis.
12
+ * The series linked to the triggered item.
13
13
  */
14
14
  series: ChartSeriesDefaultized<T>;
15
15
  /**
@@ -1,11 +1,11 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import * as React from 'react';
3
3
  import useSlotProps from '@mui/utils/useSlotProps';
4
- import { DefaultChartsItemTooltipContent } from './DefaultChartsItemTooltipContent';
5
- import { useCartesianContext } from '../context/CartesianProvider';
6
- import { ZAxisContext } from '../context/ZAxisContextProvider';
7
- import { useColorProcessor } from '../context/PluginProvider/useColorProcessor';
8
- import { useSeries } from '../hooks/useSeries';
4
+ import { DefaultChartsItemTooltipContent } from "./DefaultChartsItemTooltipContent.js";
5
+ import { useCartesianContext } from "../context/CartesianProvider/index.js";
6
+ import { ZAxisContext } from "../context/ZAxisContextProvider.js";
7
+ import { useColorProcessor } from "../context/PluginProvider/useColorProcessor.js";
8
+ import { useSeries } from "../hooks/useSeries.js";
9
9
  import { jsx as _jsx } from "react/jsx-runtime";
10
10
  /**
11
11
  * @ignore - internal component.
@@ -40,7 +40,7 @@ export interface ChartsTooltipProps<T extends ChartSeriesType> {
40
40
  * - 'item': Shows data about the item below the mouse.
41
41
  * - 'axis': Shows values associated with the hovered x value
42
42
  * - 'none': Does not display tooltip
43
- * @default 'item'
43
+ * @default 'axis'
44
44
  */
45
45
  trigger?: TriggerOptions;
46
46
  /**
@@ -77,7 +77,7 @@ export interface ChartsTooltipProps<T extends ChartSeriesType> {
77
77
  *
78
78
  * - [ChartsTooltip API](https://mui.com/x/api/charts/charts-tool-tip/)
79
79
  */
80
- declare function ChartsTooltip<T extends ChartSeriesType>(props: ChartsTooltipProps<T>): React.JSX.Element | null;
80
+ declare function ChartsTooltip<T extends ChartSeriesType>(inProps: ChartsTooltipProps<T>): React.JSX.Element | null;
81
81
  declare namespace ChartsTooltip {
82
82
  var propTypes: any;
83
83
  }