@mui/x-charts 9.4.0 → 9.6.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 (288) hide show
  1. package/BarChart/BarChart.js +1 -1
  2. package/BarChart/BarChart.mjs +1 -1
  3. package/BarChart/BarElement.js +2 -1
  4. package/BarChart/BarElement.mjs +2 -1
  5. package/BarChart/BarLabel/BarLabel.js +1 -1
  6. package/BarChart/BarLabel/BarLabel.mjs +1 -1
  7. package/BarChart/BarPlot.js +1 -1
  8. package/BarChart/BarPlot.mjs +1 -1
  9. package/CHANGELOG.md +251 -0
  10. package/ChartsAxis/ChartsAxis.js +1 -1
  11. package/ChartsAxis/ChartsAxis.mjs +1 -1
  12. package/ChartsAxisHighlight/ChartsAxisHighlight.js +1 -1
  13. package/ChartsAxisHighlight/ChartsAxisHighlight.mjs +1 -1
  14. package/ChartsAxisHighlightValue/ChartsAxisHighlightValue.js +2 -2
  15. package/ChartsAxisHighlightValue/ChartsAxisHighlightValue.mjs +2 -2
  16. package/ChartsBrushOverlay/ChartsBrushOverlay.d.mts +5 -1
  17. package/ChartsBrushOverlay/ChartsBrushOverlay.d.ts +5 -1
  18. package/ChartsBrushOverlay/ChartsBrushOverlay.js +12 -1
  19. package/ChartsBrushOverlay/ChartsBrushOverlay.mjs +14 -2
  20. package/ChartsClipPath/ChartsClipPath.js +1 -1
  21. package/ChartsClipPath/ChartsClipPath.mjs +1 -1
  22. package/ChartsContainer/ChartsContainer.js +5 -3
  23. package/ChartsContainer/ChartsContainer.mjs +5 -3
  24. package/ChartsDataProvider/ChartsDataProvider.js +5 -1
  25. package/ChartsDataProvider/ChartsDataProvider.mjs +5 -1
  26. package/ChartsGrid/ChartsGrid.js +5 -1
  27. package/ChartsGrid/ChartsGrid.mjs +5 -1
  28. package/ChartsLayerContainer/ChartsLayerContainer.js +1 -1
  29. package/ChartsLayerContainer/ChartsLayerContainer.mjs +1 -1
  30. package/ChartsLocalizationProvider/ChartsLocalizationProvider.js +1 -1
  31. package/ChartsLocalizationProvider/ChartsLocalizationProvider.mjs +1 -1
  32. package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlight.js +2 -2
  33. package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlight.mjs +2 -2
  34. package/ChartsRadialAxisHighlight/index.d.mts +6 -1
  35. package/ChartsRadialAxisHighlight/index.d.ts +6 -1
  36. package/ChartsRadialAxisHighlight/index.js +9 -2
  37. package/ChartsRadialAxisHighlight/index.mjs +8 -1
  38. package/ChartsRadialDataProvider/ChartsRadialDataProvider.d.mts +1 -1
  39. package/ChartsRadialDataProvider/ChartsRadialDataProvider.d.ts +1 -1
  40. package/ChartsRadialDataProvider/ChartsRadialDataProvider.js +10 -2
  41. package/ChartsRadialDataProvider/ChartsRadialDataProvider.mjs +10 -2
  42. package/ChartsRadialDataProvider/index.d.mts +5 -0
  43. package/ChartsRadialDataProvider/index.d.ts +5 -0
  44. package/ChartsRadialDataProvider/index.js +12 -1
  45. package/ChartsRadialDataProvider/index.mjs +7 -0
  46. package/ChartsRadialGrid/ChartsRadialGrid.js +5 -1
  47. package/ChartsRadialGrid/ChartsRadialGrid.mjs +5 -1
  48. package/ChartsRadialGrid/index.d.mts +6 -1
  49. package/ChartsRadialGrid/index.d.ts +6 -1
  50. package/ChartsRadialGrid/index.js +8 -2
  51. package/ChartsRadialGrid/index.mjs +8 -1
  52. package/ChartsRadiusAxis/ChartsRadiusAxis.d.mts +8 -2
  53. package/ChartsRadiusAxis/ChartsRadiusAxis.d.ts +8 -2
  54. package/ChartsRadiusAxis/ChartsRadiusAxis.js +143 -3
  55. package/ChartsRadiusAxis/ChartsRadiusAxis.mjs +144 -5
  56. package/ChartsRadiusAxis/index.d.mts +6 -1
  57. package/ChartsRadiusAxis/index.d.ts +6 -1
  58. package/ChartsRadiusAxis/index.js +10 -2
  59. package/ChartsRadiusAxis/index.mjs +7 -1
  60. package/ChartsReferenceLine/ChartsReferenceLine.js +1 -1
  61. package/ChartsReferenceLine/ChartsReferenceLine.mjs +1 -1
  62. package/ChartsRotationAxis/ChartsRotationAxis.d.mts +8 -2
  63. package/ChartsRotationAxis/ChartsRotationAxis.d.ts +8 -2
  64. package/ChartsRotationAxis/ChartsRotationAxis.js +140 -3
  65. package/ChartsRotationAxis/ChartsRotationAxis.mjs +141 -5
  66. package/ChartsRotationAxis/index.d.mts +6 -1
  67. package/ChartsRotationAxis/index.d.ts +6 -1
  68. package/ChartsRotationAxis/index.js +10 -2
  69. package/ChartsRotationAxis/index.mjs +7 -1
  70. package/ChartsSurface/ChartsSurface.js +1 -1
  71. package/ChartsSurface/ChartsSurface.mjs +1 -1
  72. package/ChartsSvgLayer/ChartsSvgLayer.js +1 -1
  73. package/ChartsSvgLayer/ChartsSvgLayer.mjs +1 -1
  74. package/ChartsText/ChartsText.js +2 -2
  75. package/ChartsText/ChartsText.mjs +2 -2
  76. package/ChartsTooltip/ChartsAxisTooltipContent.js +22 -3
  77. package/ChartsTooltip/ChartsAxisTooltipContent.mjs +22 -3
  78. package/ChartsTooltip/ChartsItemTooltipContent.js +52 -1
  79. package/ChartsTooltip/ChartsItemTooltipContent.mjs +52 -1
  80. package/ChartsTooltip/ChartsTooltip.js +13 -33
  81. package/ChartsTooltip/ChartsTooltip.mjs +13 -33
  82. package/ChartsTooltip/ChartsTooltipContainer.js +17 -30
  83. package/ChartsTooltip/ChartsTooltipContainer.mjs +17 -30
  84. package/ChartsWrapper/ChartsWrapper.js +1 -1
  85. package/ChartsWrapper/ChartsWrapper.mjs +1 -1
  86. package/ChartsXAxis/ChartsSingleXAxisTicks.js +1 -1
  87. package/ChartsXAxis/ChartsSingleXAxisTicks.mjs +1 -1
  88. package/ChartsXAxis/ChartsXAxis.js +11 -2
  89. package/ChartsXAxis/ChartsXAxis.mjs +11 -2
  90. package/ChartsYAxis/ChartsSingleYAxisTicks.js +1 -1
  91. package/ChartsYAxis/ChartsSingleYAxisTicks.mjs +1 -1
  92. package/ChartsYAxis/ChartsYAxis.js +11 -2
  93. package/ChartsYAxis/ChartsYAxis.mjs +11 -2
  94. package/ChartsYAxis/ChartsYAxisImpl.js +1 -1
  95. package/ChartsYAxis/ChartsYAxisImpl.mjs +1 -1
  96. package/Gauge/Gauge.js +1 -1
  97. package/Gauge/Gauge.mjs +1 -1
  98. package/Gauge/GaugeContainer.js +1 -1
  99. package/Gauge/GaugeContainer.mjs +1 -1
  100. package/Gauge/GaugeValueArc.js +2 -2
  101. package/Gauge/GaugeValueArc.mjs +2 -2
  102. package/Gauge/GaugeValueText.js +1 -1
  103. package/Gauge/GaugeValueText.mjs +1 -1
  104. package/LineChart/AnimatedArea.js +3 -3
  105. package/LineChart/AnimatedArea.mjs +3 -3
  106. package/LineChart/AnimatedLine.js +1 -1
  107. package/LineChart/AnimatedLine.mjs +1 -1
  108. package/LineChart/AreaElement.js +2 -2
  109. package/LineChart/AreaElement.mjs +2 -2
  110. package/LineChart/AreaPlot.js +1 -1
  111. package/LineChart/AreaPlot.mjs +1 -1
  112. package/LineChart/CircleMarkElement.js +1 -1
  113. package/LineChart/CircleMarkElement.mjs +1 -1
  114. package/LineChart/LineChart.js +1 -1
  115. package/LineChart/LineChart.mjs +1 -1
  116. package/LineChart/LineElement.js +5 -3
  117. package/LineChart/LineElement.mjs +5 -3
  118. package/LineChart/LineHighlightElement.js +1 -2
  119. package/LineChart/LineHighlightElement.mjs +1 -2
  120. package/LineChart/LineHighlightPlot.js +1 -1
  121. package/LineChart/LineHighlightPlot.mjs +1 -1
  122. package/LineChart/LinePlot.js +1 -1
  123. package/LineChart/LinePlot.mjs +1 -1
  124. package/LineChart/MarkElement.js +4 -3
  125. package/LineChart/MarkElement.mjs +4 -3
  126. package/LineChart/MarkPlot.js +2 -1
  127. package/LineChart/MarkPlot.mjs +2 -1
  128. package/PieChart/FocusedPieArc.d.mts +5 -1
  129. package/PieChart/FocusedPieArc.d.ts +5 -1
  130. package/PieChart/FocusedPieArc.js +22 -1
  131. package/PieChart/FocusedPieArc.mjs +24 -2
  132. package/PieChart/PieArc.js +1 -1
  133. package/PieChart/PieArc.mjs +1 -1
  134. package/PieChart/PieArcLabel.js +1 -1
  135. package/PieChart/PieArcLabel.mjs +1 -1
  136. package/PieChart/PieArcLabelPlot.js +7 -6
  137. package/PieChart/PieArcLabelPlot.mjs +7 -6
  138. package/PieChart/PieArcPlot.js +7 -6
  139. package/PieChart/PieArcPlot.mjs +7 -6
  140. package/PieChart/PieChart.js +1 -1
  141. package/PieChart/PieChart.mjs +1 -1
  142. package/PieChart/PiePlot.js +2 -1
  143. package/PieChart/PiePlot.mjs +2 -1
  144. package/RadarChart/RadarAxis/RadarAxis.js +5 -1
  145. package/RadarChart/RadarAxis/RadarAxis.mjs +5 -1
  146. package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.js +6 -2
  147. package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.mjs +6 -2
  148. package/RadarChart/RadarChart.js +1 -1
  149. package/RadarChart/RadarChart.mjs +1 -1
  150. package/RadarChart/RadarGrid/RadarGrid.js +1 -5
  151. package/RadarChart/RadarGrid/RadarGrid.mjs +1 -5
  152. package/RadarChart/RadarSeriesPlot/RadarSeriesArea.js +5 -1
  153. package/RadarChart/RadarSeriesPlot/RadarSeriesArea.mjs +5 -1
  154. package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.js +5 -1
  155. package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.mjs +5 -1
  156. package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.js +5 -1
  157. package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.mjs +5 -1
  158. package/ScatterChart/Scatter.js +1 -1
  159. package/ScatterChart/Scatter.mjs +1 -1
  160. package/ScatterChart/ScatterChart.js +12 -6
  161. package/ScatterChart/ScatterChart.mjs +12 -6
  162. package/ScatterChart/ScatterChart.plugins.d.mts +2 -1
  163. package/ScatterChart/ScatterChart.plugins.d.ts +2 -1
  164. package/ScatterChart/ScatterChart.plugins.js +2 -1
  165. package/ScatterChart/ScatterChart.plugins.mjs +2 -1
  166. package/ScatterChart/ScatterMarker.js +2 -2
  167. package/ScatterChart/ScatterMarker.mjs +2 -2
  168. package/ScatterChart/ScatterPlot.d.mts +12 -3
  169. package/ScatterChart/ScatterPlot.d.ts +12 -3
  170. package/ScatterChart/ScatterPlot.js +30 -5
  171. package/ScatterChart/ScatterPlot.mjs +30 -5
  172. package/ScatterChart/async/ScatterAsync.d.mts +9 -0
  173. package/ScatterChart/async/ScatterAsync.d.ts +9 -0
  174. package/ScatterChart/async/ScatterAsync.js +71 -0
  175. package/ScatterChart/async/ScatterAsync.mjs +67 -0
  176. package/ScatterChart/async/ScatterAsyncBatch.d.mts +24 -0
  177. package/ScatterChart/async/ScatterAsyncBatch.d.ts +24 -0
  178. package/ScatterChart/async/ScatterAsyncBatch.js +112 -0
  179. package/ScatterChart/async/ScatterAsyncBatch.mjs +106 -0
  180. package/ScatterChart/async/scatterRenderData.selectors.d.mts +38 -0
  181. package/ScatterChart/async/scatterRenderData.selectors.d.ts +38 -0
  182. package/ScatterChart/async/scatterRenderData.selectors.js +93 -0
  183. package/ScatterChart/async/scatterRenderData.selectors.mjs +87 -0
  184. package/ScatterChart/seriesConfig/getColor.js +6 -15
  185. package/ScatterChart/seriesConfig/getColor.mjs +6 -15
  186. package/SparkLineChart/SparkLineChart.js +3 -2
  187. package/SparkLineChart/SparkLineChart.mjs +3 -2
  188. package/Toolbar/Toolbar.js +1 -1
  189. package/Toolbar/Toolbar.mjs +1 -1
  190. package/Toolbar/ToolbarButton.js +1 -1
  191. package/Toolbar/ToolbarButton.mjs +1 -1
  192. package/index.d.mts +1 -1
  193. package/index.d.ts +1 -1
  194. package/index.js +1 -1
  195. package/index.mjs +1 -1
  196. package/internals/colorScale.d.mts +2 -2
  197. package/internals/colorScale.d.ts +2 -2
  198. package/internals/colorScale.js +2 -2
  199. package/internals/colorScale.mjs +2 -2
  200. package/internals/getSeriesColorFn.d.mts +5 -5
  201. package/internals/getSeriesColorFn.d.ts +5 -5
  202. package/internals/index.d.mts +3 -0
  203. package/internals/index.d.ts +3 -0
  204. package/internals/index.js +20 -0
  205. package/internals/index.mjs +3 -0
  206. package/internals/plugins/allPlugins.d.mts +4 -3
  207. package/internals/plugins/allPlugins.d.ts +4 -3
  208. package/internals/plugins/allPlugins.js +2 -1
  209. package/internals/plugins/allPlugins.mjs +2 -1
  210. package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.d.mts +12 -3
  211. package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.d.ts +12 -3
  212. package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.js +10 -1
  213. package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.mjs +10 -1
  214. package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.d.mts +15 -1
  215. package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.d.ts +15 -1
  216. package/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.js +16 -30
  217. package/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.mjs +17 -31
  218. package/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.types.d.mts +8 -1
  219. package/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.types.d.ts +8 -1
  220. package/internals/plugins/corePlugins/useChartSeriesConfig/types/colorProcessor.types.d.mts +1 -1
  221. package/internals/plugins/corePlugins/useChartSeriesConfig/types/colorProcessor.types.d.ts +1 -1
  222. package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipItemPositionGetter.types.d.mts +7 -0
  223. package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipItemPositionGetter.types.d.ts +7 -0
  224. package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.d.mts +0 -8
  225. package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.d.ts +0 -8
  226. package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.js +1 -2
  227. package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.mjs +2 -2
  228. package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisScale.js +27 -2
  229. package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisScale.mjs +27 -2
  230. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.js +1 -3
  231. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.mjs +1 -3
  232. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.js +1 -1
  233. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.mjs +1 -1
  234. package/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.js +6 -1
  235. package/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.mjs +6 -1
  236. package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.js +6 -2
  237. package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.mjs +6 -2
  238. package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.selectors.d.mts +49 -0
  239. package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.selectors.d.ts +49 -0
  240. package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.selectors.js +124 -0
  241. package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.selectors.mjs +117 -0
  242. package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.types.d.mts +64 -0
  243. package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.types.d.ts +64 -0
  244. package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.types.js +5 -0
  245. package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.types.mjs +1 -0
  246. package/internals/plugins/featurePlugins/useProgressiveRendering/index.d.mts +3 -0
  247. package/internals/plugins/featurePlugins/useProgressiveRendering/index.d.ts +3 -0
  248. package/internals/plugins/featurePlugins/useProgressiveRendering/index.js +27 -0
  249. package/internals/plugins/featurePlugins/useProgressiveRendering/index.mjs +2 -0
  250. package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.d.mts +13 -0
  251. package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.d.ts +13 -0
  252. package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.js +136 -0
  253. package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.mjs +128 -0
  254. package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.selectors.d.mts +42 -0
  255. package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.selectors.d.ts +42 -0
  256. package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.selectors.js +166 -0
  257. package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.selectors.mjs +159 -0
  258. package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.types.d.mts +34 -0
  259. package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.types.d.ts +34 -0
  260. package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.types.js +5 -0
  261. package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.types.mjs +1 -0
  262. package/internals/resolveColorProcessor.js +4 -7
  263. package/internals/resolveColorProcessor.mjs +4 -7
  264. package/internals/scales/scaleBand.js +70 -43
  265. package/internals/scales/scaleBand.mjs +71 -44
  266. package/models/axis.d.mts +20 -4
  267. package/models/axis.d.ts +20 -4
  268. package/models/colorMapping.d.mts +8 -0
  269. package/models/colorMapping.d.ts +8 -0
  270. package/models/seriesType/bar.d.mts +1 -1
  271. package/models/seriesType/bar.d.ts +1 -1
  272. package/models/seriesType/common.d.mts +4 -4
  273. package/models/seriesType/common.d.ts +4 -4
  274. package/models/seriesType/config.d.mts +3 -3
  275. package/models/seriesType/config.d.ts +3 -3
  276. package/models/seriesType/line.d.mts +1 -1
  277. package/models/seriesType/line.d.ts +1 -1
  278. package/models/seriesType/pie.d.mts +1 -1
  279. package/models/seriesType/pie.d.ts +1 -1
  280. package/models/seriesType/radar.d.mts +1 -1
  281. package/models/seriesType/radar.d.ts +1 -1
  282. package/models/seriesType/scatter.d.mts +1 -1
  283. package/models/seriesType/scatter.d.ts +1 -1
  284. package/package.json +8 -5
  285. package/hooks/useIsHydrated.d.mts +0 -4
  286. package/hooks/useIsHydrated.d.ts +0 -4
  287. package/hooks/useIsHydrated.js +0 -19
  288. package/hooks/useIsHydrated.mjs +0 -14
@@ -3,12 +3,13 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- Object.defineProperty(exports, "Unstable_ChartsRotationAxis", {
6
+ Object.defineProperty(exports, "ChartsRotationAxis", {
7
7
  enumerable: true,
8
8
  get: function () {
9
9
  return _ChartsRotationAxis.ChartsRotationAxis;
10
10
  }
11
11
  });
12
+ exports.Unstable_ChartsRotationAxis = void 0;
12
13
  Object.defineProperty(exports, "chartsRadialAxisClasses", {
13
14
  enumerable: true,
14
15
  get: function () {
@@ -16,4 +17,11 @@ Object.defineProperty(exports, "chartsRadialAxisClasses", {
16
17
  }
17
18
  });
18
19
  var _ChartsRotationAxis = require("./ChartsRotationAxis");
19
- var _chartsRotationAxisClasses = require("./chartsRotationAxisClasses");
20
+ var _chartsRotationAxisClasses = require("./chartsRotationAxisClasses");
21
+ /**
22
+ * @deprecated rotation axis is now stable, import `ChartsRotationAxis` instead
23
+ */
24
+ // eslint-disable-next-line @typescript-eslint/naming-convention
25
+ const Unstable_ChartsRotationAxis = exports.Unstable_ChartsRotationAxis = _ChartsRotationAxis.ChartsRotationAxis;
26
+
27
+ // Re-export types
@@ -1,4 +1,10 @@
1
- export { ChartsRotationAxis as Unstable_ChartsRotationAxis } from "./ChartsRotationAxis.mjs";
1
+ import { ChartsRotationAxis } from "./ChartsRotationAxis.mjs";
2
+ export { ChartsRotationAxis } from "./ChartsRotationAxis.mjs";
3
+ /**
4
+ * @deprecated rotation axis is now stable, import `ChartsRotationAxis` instead
5
+ */
6
+ // eslint-disable-next-line @typescript-eslint/naming-convention
7
+ export const Unstable_ChartsRotationAxis = ChartsRotationAxis;
2
8
  export { chartsRadialAxisClasses } from "./chartsRotationAxisClasses.mjs";
3
9
 
4
10
  // Re-export types
@@ -54,7 +54,7 @@ const ChartsSurface = exports.ChartsSurface = /*#__PURE__*/React.forwardRef(func
54
54
  });
55
55
  });
56
56
  if (process.env.NODE_ENV !== "production") ChartsSurface.displayName = "ChartsSurface";
57
- process.env.NODE_ENV !== "production" ? ChartsSurface.propTypes = {
57
+ process.env.NODE_ENV !== "production" ? ChartsSurface.propTypes /* remove-proptypes */ = {
58
58
  // ----------------------------- Warning --------------------------------
59
59
  // | These PropTypes are generated from the TypeScript type definitions |
60
60
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -48,7 +48,7 @@ const ChartsSurface = /*#__PURE__*/React.forwardRef(function ChartsSurface(inPro
48
48
  });
49
49
  });
50
50
  if (process.env.NODE_ENV !== "production") ChartsSurface.displayName = "ChartsSurface";
51
- process.env.NODE_ENV !== "production" ? ChartsSurface.propTypes = {
51
+ process.env.NODE_ENV !== "production" ? ChartsSurface.propTypes /* remove-proptypes */ = {
52
52
  // ----------------------------- Warning --------------------------------
53
53
  // | These PropTypes are generated from the TypeScript type definitions |
54
54
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -68,7 +68,7 @@ const ChartsSvgLayer = exports.ChartsSvgLayer = /*#__PURE__*/React.forwardRef(fu
68
68
  }));
69
69
  });
70
70
  if (process.env.NODE_ENV !== "production") ChartsSvgLayer.displayName = "ChartsSvgLayer";
71
- process.env.NODE_ENV !== "production" ? ChartsSvgLayer.propTypes = {
71
+ process.env.NODE_ENV !== "production" ? ChartsSvgLayer.propTypes /* remove-proptypes */ = {
72
72
  // ----------------------------- Warning --------------------------------
73
73
  // | These PropTypes are generated from the TypeScript type definitions |
74
74
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -61,7 +61,7 @@ const ChartsSvgLayer = /*#__PURE__*/React.forwardRef(function ChartsSvgLayer(inP
61
61
  }));
62
62
  });
63
63
  if (process.env.NODE_ENV !== "production") ChartsSvgLayer.displayName = "ChartsSvgLayer";
64
- process.env.NODE_ENV !== "production" ? ChartsSvgLayer.propTypes = {
64
+ process.env.NODE_ENV !== "production" ? ChartsSvgLayer.propTypes /* remove-proptypes */ = {
65
65
  // ----------------------------- Warning --------------------------------
66
66
  // | These PropTypes are generated from the TypeScript type definitions |
67
67
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -11,8 +11,8 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
11
11
  var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
12
12
  var React = _interopRequireWildcard(require("react"));
13
13
  var _propTypes = _interopRequireDefault(require("prop-types"));
14
+ var _useIsHydrated = require("@mui/x-internals/useIsHydrated");
14
15
  var _getWordsByLines = require("../internals/getWordsByLines");
15
- var _useIsHydrated = require("../hooks/useIsHydrated");
16
16
  var _jsxRuntime = require("react/jsx-runtime");
17
17
  const _excluded = ["x", "y", "style", "text", "ownerState"],
18
18
  _excluded2 = ["angle", "textAnchor", "dominantBaseline"];
@@ -69,7 +69,7 @@ function ChartsText(props) {
69
69
  }, index))
70
70
  }));
71
71
  }
72
- process.env.NODE_ENV !== "production" ? ChartsText.propTypes = {
72
+ process.env.NODE_ENV !== "production" ? ChartsText.propTypes /* remove-proptypes */ = {
73
73
  // ----------------------------- Warning --------------------------------
74
74
  // | These PropTypes are generated from the TypeScript type definitions |
75
75
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -6,8 +6,8 @@ const _excluded = ["x", "y", "style", "text", "ownerState"],
6
6
  _excluded2 = ["angle", "textAnchor", "dominantBaseline"];
7
7
  import * as React from 'react';
8
8
  import PropTypes from 'prop-types';
9
+ import { useIsHydrated } from '@mui/x-internals/useIsHydrated';
9
10
  import { getWordsByLines } from "../internals/getWordsByLines.mjs";
10
- import { useIsHydrated } from "../hooks/useIsHydrated.mjs";
11
11
  import { jsx as _jsx } from "react/jsx-runtime";
12
12
  /**
13
13
  * Helper component to manage multiline text in SVG
@@ -62,7 +62,7 @@ function ChartsText(props) {
62
62
  }, index))
63
63
  }));
64
64
  }
65
- process.env.NODE_ENV !== "production" ? ChartsText.propTypes = {
65
+ process.env.NODE_ENV !== "production" ? ChartsText.propTypes /* remove-proptypes */ = {
66
66
  // ----------------------------- Warning --------------------------------
67
67
  // | These PropTypes are generated from the TypeScript type definitions |
68
68
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -101,7 +101,26 @@ function DefaultContent(props) {
101
101
  })]
102
102
  });
103
103
  }
104
- process.env.NODE_ENV !== "production" ? ChartsAxisTooltipContent.propTypes = {
104
+ process.env.NODE_ENV !== "production" ? DefaultContent.propTypes /* remove-proptypes */ = {
105
+ // ----------------------------- Warning --------------------------------
106
+ // | These PropTypes are generated from the TypeScript type definitions |
107
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
108
+ // ----------------------------------------------------------------------
109
+ /**
110
+ * Override or extend the styles applied to the component.
111
+ */
112
+ classes: _propTypes.default.object,
113
+ item: _propTypes.default.shape({
114
+ color: _propTypes.default.string.isRequired,
115
+ formattedLabel: _propTypes.default.string,
116
+ formattedValue: _propTypes.default.object.isRequired,
117
+ markShape: _propTypes.default.oneOf(['circle', 'cross', 'diamond', 'square', 'star', 'triangle', 'wye']),
118
+ markType: _propTypes.default.oneOfType([_propTypes.default.oneOf(['circle', 'line', 'line+mark', 'square']), _propTypes.default.func]),
119
+ seriesId: _propTypes.default.string.isRequired,
120
+ value: _propTypes.default.any.isRequired
121
+ }).isRequired
122
+ } : void 0;
123
+ process.env.NODE_ENV !== "production" ? ChartsAxisTooltipContent.propTypes /* remove-proptypes */ = {
105
124
  // ----------------------------- Warning --------------------------------
106
125
  // | These PropTypes are generated from the TypeScript type definitions |
107
126
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -110,11 +129,11 @@ process.env.NODE_ENV !== "production" ? ChartsAxisTooltipContent.propTypes = {
110
129
  * Override or extend the styles applied to the component.
111
130
  */
112
131
  classes: _propTypes.default.object,
113
- sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object]),
114
132
  /**
115
133
  * The sort in which series items are displayed in the tooltip.
116
134
  * When set to `none`, series are sorted as they are provided in the series property. Otherwise they are sorted by their value.
117
135
  * @default 'none'
118
136
  */
119
- sort: _propTypes.default.oneOf(['none', 'asc', 'desc'])
137
+ sort: _propTypes.default.oneOf(['asc', 'desc', 'none']),
138
+ sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object])
120
139
  } : void 0;
@@ -95,7 +95,26 @@ function DefaultContent(props) {
95
95
  })]
96
96
  });
97
97
  }
98
- process.env.NODE_ENV !== "production" ? ChartsAxisTooltipContent.propTypes = {
98
+ process.env.NODE_ENV !== "production" ? DefaultContent.propTypes /* remove-proptypes */ = {
99
+ // ----------------------------- Warning --------------------------------
100
+ // | These PropTypes are generated from the TypeScript type definitions |
101
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
102
+ // ----------------------------------------------------------------------
103
+ /**
104
+ * Override or extend the styles applied to the component.
105
+ */
106
+ classes: PropTypes.object,
107
+ item: PropTypes.shape({
108
+ color: PropTypes.string.isRequired,
109
+ formattedLabel: PropTypes.string,
110
+ formattedValue: PropTypes.object.isRequired,
111
+ markShape: PropTypes.oneOf(['circle', 'cross', 'diamond', 'square', 'star', 'triangle', 'wye']),
112
+ markType: PropTypes.oneOfType([PropTypes.oneOf(['circle', 'line', 'line+mark', 'square']), PropTypes.func]),
113
+ seriesId: PropTypes.string.isRequired,
114
+ value: PropTypes.any.isRequired
115
+ }).isRequired
116
+ } : void 0;
117
+ process.env.NODE_ENV !== "production" ? ChartsAxisTooltipContent.propTypes /* remove-proptypes */ = {
99
118
  // ----------------------------- Warning --------------------------------
100
119
  // | These PropTypes are generated from the TypeScript type definitions |
101
120
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -104,12 +123,12 @@ process.env.NODE_ENV !== "production" ? ChartsAxisTooltipContent.propTypes = {
104
123
  * Override or extend the styles applied to the component.
105
124
  */
106
125
  classes: PropTypes.object,
107
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
108
126
  /**
109
127
  * The sort in which series items are displayed in the tooltip.
110
128
  * When set to `none`, series are sorted as they are provided in the series property. Otherwise they are sorted by their value.
111
129
  * @default 'none'
112
130
  */
113
- sort: PropTypes.oneOf(['none', 'asc', 'desc'])
131
+ sort: PropTypes.oneOf(['asc', 'desc', 'none']),
132
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
114
133
  } : void 0;
115
134
  export { ChartsAxisTooltipContent };
@@ -105,6 +105,34 @@ function DefaultMultipleValueContent({
105
105
  }, value.label))
106
106
  });
107
107
  }
108
+ process.env.NODE_ENV !== "production" ? DefaultMultipleValueContent.propTypes /* remove-proptypes */ = {
109
+ // ----------------------------- Warning --------------------------------
110
+ // | These PropTypes are generated from the TypeScript type definitions |
111
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
112
+ // ----------------------------------------------------------------------
113
+ /**
114
+ * Override or extend the styles applied to the component.
115
+ */
116
+ classes: _propTypes.default.object,
117
+ item: _propTypes.default.shape({
118
+ color: _propTypes.default.string.isRequired,
119
+ identifier: _propTypes.default.shape({
120
+ dataIndex: _propTypes.default.number,
121
+ seriesId: _propTypes.default.string.isRequired,
122
+ type: _propTypes.default.oneOf(['radar']).isRequired
123
+ }).isRequired,
124
+ label: _propTypes.default.string,
125
+ markShape: _propTypes.default.oneOf(['circle', 'cross', 'diamond', 'square', 'star', 'triangle', 'wye']),
126
+ markType: _propTypes.default.oneOfType([_propTypes.default.oneOf(['circle', 'line', 'line+mark', 'square']), _propTypes.default.func]),
127
+ values: _propTypes.default.arrayOf(_propTypes.default.shape({
128
+ formattedValue: _propTypes.default.string,
129
+ label: _propTypes.default.string,
130
+ markShape: _propTypes.default.oneOf(['circle', 'cross', 'diamond', 'square', 'star', 'triangle', 'wye']),
131
+ markType: _propTypes.default.oneOfType([_propTypes.default.oneOf(['circle', 'line', 'line+mark', 'square']), _propTypes.default.func]),
132
+ value: _propTypes.default.number.isRequired
133
+ })).isRequired
134
+ }).isRequired
135
+ } : void 0;
108
136
  function DefaultSingleValueContent({
109
137
  classes: propClasses,
110
138
  item
@@ -143,7 +171,30 @@ function DefaultSingleValueContent({
143
171
  })]
144
172
  });
145
173
  }
146
- process.env.NODE_ENV !== "production" ? ChartsItemTooltipContent.propTypes = {
174
+ process.env.NODE_ENV !== "production" ? DefaultSingleValueContent.propTypes /* remove-proptypes */ = {
175
+ // ----------------------------- Warning --------------------------------
176
+ // | These PropTypes are generated from the TypeScript type definitions |
177
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
178
+ // ----------------------------------------------------------------------
179
+ /**
180
+ * Override or extend the styles applied to the component.
181
+ */
182
+ classes: _propTypes.default.object,
183
+ item: _propTypes.default.shape({
184
+ color: _propTypes.default.string.isRequired,
185
+ formattedValue: _propTypes.default.any.isRequired,
186
+ identifier: _propTypes.default.shape({
187
+ dataIndex: _propTypes.default.number,
188
+ seriesId: _propTypes.default.string.isRequired,
189
+ type: _propTypes.default.oneOf(['bar', 'line', 'pie', 'radar', 'scatter']).isRequired
190
+ }).isRequired,
191
+ label: _propTypes.default.string,
192
+ markShape: _propTypes.default.oneOf(['circle', 'cross', 'diamond', 'square', 'star', 'triangle', 'wye']),
193
+ markType: _propTypes.default.oneOfType([_propTypes.default.oneOf(['circle', 'line', 'line+mark', 'square']), _propTypes.default.func]),
194
+ value: _propTypes.default.any.isRequired
195
+ }).isRequired
196
+ } : void 0;
197
+ process.env.NODE_ENV !== "production" ? ChartsItemTooltipContent.propTypes /* remove-proptypes */ = {
147
198
  // ----------------------------- Warning --------------------------------
148
199
  // | These PropTypes are generated from the TypeScript type definitions |
149
200
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -98,6 +98,34 @@ function DefaultMultipleValueContent({
98
98
  }, value.label))
99
99
  });
100
100
  }
101
+ process.env.NODE_ENV !== "production" ? DefaultMultipleValueContent.propTypes /* remove-proptypes */ = {
102
+ // ----------------------------- Warning --------------------------------
103
+ // | These PropTypes are generated from the TypeScript type definitions |
104
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
105
+ // ----------------------------------------------------------------------
106
+ /**
107
+ * Override or extend the styles applied to the component.
108
+ */
109
+ classes: PropTypes.object,
110
+ item: PropTypes.shape({
111
+ color: PropTypes.string.isRequired,
112
+ identifier: PropTypes.shape({
113
+ dataIndex: PropTypes.number,
114
+ seriesId: PropTypes.string.isRequired,
115
+ type: PropTypes.oneOf(['radar']).isRequired
116
+ }).isRequired,
117
+ label: PropTypes.string,
118
+ markShape: PropTypes.oneOf(['circle', 'cross', 'diamond', 'square', 'star', 'triangle', 'wye']),
119
+ markType: PropTypes.oneOfType([PropTypes.oneOf(['circle', 'line', 'line+mark', 'square']), PropTypes.func]),
120
+ values: PropTypes.arrayOf(PropTypes.shape({
121
+ formattedValue: PropTypes.string,
122
+ label: PropTypes.string,
123
+ markShape: PropTypes.oneOf(['circle', 'cross', 'diamond', 'square', 'star', 'triangle', 'wye']),
124
+ markType: PropTypes.oneOfType([PropTypes.oneOf(['circle', 'line', 'line+mark', 'square']), PropTypes.func]),
125
+ value: PropTypes.number.isRequired
126
+ })).isRequired
127
+ }).isRequired
128
+ } : void 0;
101
129
  function DefaultSingleValueContent({
102
130
  classes: propClasses,
103
131
  item
@@ -136,7 +164,30 @@ function DefaultSingleValueContent({
136
164
  })]
137
165
  });
138
166
  }
139
- process.env.NODE_ENV !== "production" ? ChartsItemTooltipContent.propTypes = {
167
+ process.env.NODE_ENV !== "production" ? DefaultSingleValueContent.propTypes /* remove-proptypes */ = {
168
+ // ----------------------------- Warning --------------------------------
169
+ // | These PropTypes are generated from the TypeScript type definitions |
170
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
171
+ // ----------------------------------------------------------------------
172
+ /**
173
+ * Override or extend the styles applied to the component.
174
+ */
175
+ classes: PropTypes.object,
176
+ item: PropTypes.shape({
177
+ color: PropTypes.string.isRequired,
178
+ formattedValue: PropTypes.any.isRequired,
179
+ identifier: PropTypes.shape({
180
+ dataIndex: PropTypes.number,
181
+ seriesId: PropTypes.string.isRequired,
182
+ type: PropTypes.oneOf(['bar', 'line', 'pie', 'radar', 'scatter']).isRequired
183
+ }).isRequired,
184
+ label: PropTypes.string,
185
+ markShape: PropTypes.oneOf(['circle', 'cross', 'diamond', 'square', 'star', 'triangle', 'wye']),
186
+ markType: PropTypes.oneOfType([PropTypes.oneOf(['circle', 'line', 'line+mark', 'square']), PropTypes.func]),
187
+ value: PropTypes.any.isRequired
188
+ }).isRequired
189
+ } : void 0;
190
+ process.env.NODE_ENV !== "production" ? ChartsItemTooltipContent.propTypes /* remove-proptypes */ = {
140
191
  // ----------------------------- Warning --------------------------------
141
192
  // | These PropTypes are generated from the TypeScript type definitions |
142
193
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -45,7 +45,7 @@ function ChartsTooltip(props) {
45
45
  })
46
46
  }));
47
47
  }
48
- process.env.NODE_ENV !== "production" ? ChartsTooltip.propTypes = {
48
+ process.env.NODE_ENV !== "production" ? ChartsTooltip.propTypes /* remove-proptypes */ = {
49
49
  // ----------------------------- Warning --------------------------------
50
50
  // | These PropTypes are generated from the TypeScript type definitions |
51
51
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -54,7 +54,7 @@ process.env.NODE_ENV !== "production" ? ChartsTooltip.propTypes = {
54
54
  * Determine if the tooltip should be placed on the pointer location or on the node.
55
55
  * @default 'pointer'
56
56
  */
57
- anchor: _propTypes.default.oneOf(['node', 'pointer']),
57
+ anchor: _propTypes.default.oneOf(['chart', 'node', 'pointer']),
58
58
  /**
59
59
  * An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),
60
60
  * or a function that returns either.
@@ -71,25 +71,6 @@ process.env.NODE_ENV !== "production" ? ChartsTooltip.propTypes = {
71
71
  * Either a string to use a HTML element or a component.
72
72
  */
73
73
  component: _propTypes.default.elementType,
74
- /**
75
- * The components used for each slot inside the Popper.
76
- * Either a string to use a HTML element or a component.
77
- *
78
- * @deprecated use the `slots` prop instead. This prop will be removed in a future major release. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
79
- * @default {}
80
- */
81
- components: _propTypes.default.shape({
82
- Root: _propTypes.default.elementType
83
- }),
84
- /**
85
- * The props used for each slot inside the Popper.
86
- *
87
- * @deprecated use the `slotProps` prop instead. This prop will be removed in a future major release. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
88
- * @default {}
89
- */
90
- componentsProps: _propTypes.default.shape({
91
- root: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object])
92
- }),
93
74
  /**
94
75
  * An HTML element or function that returns one.
95
76
  * The `container` will have the portal children appended to it.
@@ -102,10 +83,10 @@ process.env.NODE_ENV !== "production" ? ChartsTooltip.propTypes = {
102
83
  */
103
84
  container: _propTypes.default.oneOfType([(props, propName) => {
104
85
  if (props[propName] == null) {
105
- return new Error(process.env.NODE_ENV !== "production" ? `MUI X: Prop '${propName}' is required but wasn't specified` : (0, _formatErrorMessage2.default)(6, propName));
86
+ return new Error(process.env.NODE_ENV !== "production" ? `Prop '${propName}' is required but wasn't specified` : (0, _formatErrorMessage2.default)(6, propName));
106
87
  }
107
88
  if (typeof props[propName] !== 'object' || props[propName].nodeType !== 1) {
108
- return new Error(process.env.NODE_ENV !== "production" ? `MUI X: Expected prop '${propName}' to be of type Element` : (0, _formatErrorMessage2.default)(7, propName));
89
+ return new Error(process.env.NODE_ENV !== "production" ? `Expected prop '${propName}' to be of type Element` : (0, _formatErrorMessage2.default)(49, propName));
109
90
  }
110
91
  return null;
111
92
  }, _propTypes.default.func]),
@@ -145,13 +126,6 @@ process.env.NODE_ENV !== "production" ? ChartsTooltip.propTypes = {
145
126
  * If `true`, the component is shown.
146
127
  */
147
128
  open: _propTypes.default.bool,
148
- /**
149
- * The sort in which series items are displayed in the axis tooltip.
150
- * When set to `none`, series are sorted as they are provided in the series property. Otherwise they are sorted by their value.
151
- * Only applies when `trigger='axis'`.
152
- * @default 'none'
153
- */
154
- sort: _propTypes.default.oneOf(['none', 'asc', 'desc']),
155
129
  /**
156
130
  * Popper placement.
157
131
  * @default 'bottom'
@@ -196,16 +170,22 @@ process.env.NODE_ENV !== "production" ? ChartsTooltip.propTypes = {
196
170
  */
197
171
  position: _propTypes.default.oneOf(['bottom', 'left', 'right', 'top']),
198
172
  /**
199
- * The props used for each slot inside the Popper.
173
+ * The props used for each component slot.
200
174
  * @default {}
201
175
  */
202
176
  slotProps: _propTypes.default.object,
203
177
  /**
204
- * The components used for each slot inside the Popper.
205
- * Either a string to use a HTML element or a component.
178
+ * Overridable component slots.
206
179
  * @default {}
207
180
  */
208
181
  slots: _propTypes.default.object,
182
+ /**
183
+ * Defines the sort order in which series items are displayed in the axis tooltip.
184
+ * When set to `none`, series are displayed in the same order they are provided in the series property. Otherwise they are sorted by their value.
185
+ * Only applies when `trigger='axis'`.
186
+ * @default 'none'
187
+ */
188
+ sort: _propTypes.default.oneOf(['asc', 'desc', 'none']),
209
189
  /**
210
190
  * The system prop that allows defining system overrides as well as additional CSS styles.
211
191
  */
@@ -39,7 +39,7 @@ function ChartsTooltip(props) {
39
39
  })
40
40
  }));
41
41
  }
42
- process.env.NODE_ENV !== "production" ? ChartsTooltip.propTypes = {
42
+ process.env.NODE_ENV !== "production" ? ChartsTooltip.propTypes /* remove-proptypes */ = {
43
43
  // ----------------------------- Warning --------------------------------
44
44
  // | These PropTypes are generated from the TypeScript type definitions |
45
45
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -48,7 +48,7 @@ process.env.NODE_ENV !== "production" ? ChartsTooltip.propTypes = {
48
48
  * Determine if the tooltip should be placed on the pointer location or on the node.
49
49
  * @default 'pointer'
50
50
  */
51
- anchor: PropTypes.oneOf(['node', 'pointer']),
51
+ anchor: PropTypes.oneOf(['chart', 'node', 'pointer']),
52
52
  /**
53
53
  * An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),
54
54
  * or a function that returns either.
@@ -65,25 +65,6 @@ process.env.NODE_ENV !== "production" ? ChartsTooltip.propTypes = {
65
65
  * Either a string to use a HTML element or a component.
66
66
  */
67
67
  component: PropTypes.elementType,
68
- /**
69
- * The components used for each slot inside the Popper.
70
- * Either a string to use a HTML element or a component.
71
- *
72
- * @deprecated use the `slots` prop instead. This prop will be removed in a future major release. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
73
- * @default {}
74
- */
75
- components: PropTypes.shape({
76
- Root: PropTypes.elementType
77
- }),
78
- /**
79
- * The props used for each slot inside the Popper.
80
- *
81
- * @deprecated use the `slotProps` prop instead. This prop will be removed in a future major release. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
82
- * @default {}
83
- */
84
- componentsProps: PropTypes.shape({
85
- root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
86
- }),
87
68
  /**
88
69
  * An HTML element or function that returns one.
89
70
  * The `container` will have the portal children appended to it.
@@ -96,10 +77,10 @@ process.env.NODE_ENV !== "production" ? ChartsTooltip.propTypes = {
96
77
  */
97
78
  container: PropTypes.oneOfType([(props, propName) => {
98
79
  if (props[propName] == null) {
99
- return new Error(process.env.NODE_ENV !== "production" ? `MUI X: Prop '${propName}' is required but wasn't specified` : _formatErrorMessage(6, propName));
80
+ return new Error(process.env.NODE_ENV !== "production" ? `Prop '${propName}' is required but wasn't specified` : _formatErrorMessage(6, propName));
100
81
  }
101
82
  if (typeof props[propName] !== 'object' || props[propName].nodeType !== 1) {
102
- return new Error(process.env.NODE_ENV !== "production" ? `MUI X: Expected prop '${propName}' to be of type Element` : _formatErrorMessage(7, propName));
83
+ return new Error(process.env.NODE_ENV !== "production" ? `Expected prop '${propName}' to be of type Element` : _formatErrorMessage(49, propName));
103
84
  }
104
85
  return null;
105
86
  }, PropTypes.func]),
@@ -139,13 +120,6 @@ process.env.NODE_ENV !== "production" ? ChartsTooltip.propTypes = {
139
120
  * If `true`, the component is shown.
140
121
  */
141
122
  open: PropTypes.bool,
142
- /**
143
- * The sort in which series items are displayed in the axis tooltip.
144
- * When set to `none`, series are sorted as they are provided in the series property. Otherwise they are sorted by their value.
145
- * Only applies when `trigger='axis'`.
146
- * @default 'none'
147
- */
148
- sort: PropTypes.oneOf(['none', 'asc', 'desc']),
149
123
  /**
150
124
  * Popper placement.
151
125
  * @default 'bottom'
@@ -190,16 +164,22 @@ process.env.NODE_ENV !== "production" ? ChartsTooltip.propTypes = {
190
164
  */
191
165
  position: PropTypes.oneOf(['bottom', 'left', 'right', 'top']),
192
166
  /**
193
- * The props used for each slot inside the Popper.
167
+ * The props used for each component slot.
194
168
  * @default {}
195
169
  */
196
170
  slotProps: PropTypes.object,
197
171
  /**
198
- * The components used for each slot inside the Popper.
199
- * Either a string to use a HTML element or a component.
172
+ * Overridable component slots.
200
173
  * @default {}
201
174
  */
202
175
  slots: PropTypes.object,
176
+ /**
177
+ * Defines the sort order in which series items are displayed in the axis tooltip.
178
+ * When set to `none`, series are displayed in the same order they are provided in the series property. Otherwise they are sorted by their value.
179
+ * Only applies when `trigger='axis'`.
180
+ * @default 'none'
181
+ */
182
+ sort: PropTypes.oneOf(['asc', 'desc', 'none']),
203
183
  /**
204
184
  * The system prop that allows defining system overrides as well as additional CSS styles.
205
185
  */