@mui/x-charts 9.0.0-alpha.2 → 9.0.0-alpha.3

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 (329) hide show
  1. package/BarChart/AnimatedBarElement.d.mts +1 -1
  2. package/BarChart/AnimatedBarElement.d.ts +1 -1
  3. package/BarChart/BarChart.js +5 -2
  4. package/BarChart/BarChart.mjs +5 -2
  5. package/BarChart/BarElement.d.mts +1 -1
  6. package/BarChart/BarElement.d.ts +1 -1
  7. package/BarChart/BarElement.js +8 -7
  8. package/BarChart/BarElement.mjs +8 -7
  9. package/BarChart/BarLabel/BarLabel.js +4 -0
  10. package/BarChart/BarLabel/BarLabel.mjs +4 -0
  11. package/BarChart/BarLabel/BarLabel.types.d.mts +2 -2
  12. package/BarChart/BarLabel/BarLabel.types.d.ts +2 -2
  13. package/BarChart/BarLabel/BarLabelItem.js +8 -7
  14. package/BarChart/BarLabel/BarLabelItem.mjs +8 -7
  15. package/BarChart/BarLabel/barLabelClasses.d.mts +15 -0
  16. package/BarChart/BarLabel/barLabelClasses.d.ts +15 -0
  17. package/BarChart/BarLabel/barLabelClasses.js +19 -0
  18. package/BarChart/BarLabel/barLabelClasses.mjs +20 -0
  19. package/BarChart/BarPlot.js +1 -2
  20. package/BarChart/BarPlot.mjs +2 -3
  21. package/BarChart/barClasses.d.mts +21 -1
  22. package/BarChart/barClasses.d.ts +21 -1
  23. package/BarChart/barClasses.js +9 -3
  24. package/BarChart/barClasses.mjs +9 -3
  25. package/BarChart/barElementClasses.d.mts +17 -10
  26. package/BarChart/barElementClasses.d.ts +17 -10
  27. package/BarChart/barElementClasses.js +19 -0
  28. package/BarChart/barElementClasses.mjs +20 -0
  29. package/BarChart/index.d.mts +1 -1
  30. package/BarChart/index.d.ts +1 -1
  31. package/BarChart/index.js +1 -8
  32. package/BarChart/index.mjs +1 -1
  33. package/CHANGELOG.md +123 -1
  34. package/ChartContainer/ChartContainer.d.mts +1 -1
  35. package/ChartContainer/ChartContainer.d.ts +1 -1
  36. package/ChartContainer/useChartContainerProps.d.mts +2 -2
  37. package/ChartContainer/useChartContainerProps.d.ts +2 -2
  38. package/ChartDataProvider/ChartDataProvider.d.mts +1 -1
  39. package/ChartDataProvider/ChartDataProvider.d.ts +1 -1
  40. package/ChartDataProvider/useChartDataProviderProps.d.mts +2 -2
  41. package/ChartDataProvider/useChartDataProviderProps.d.ts +2 -2
  42. package/ChartsContainer/ChartsContainer.d.mts +1 -1
  43. package/ChartsContainer/ChartsContainer.d.ts +1 -1
  44. package/ChartsContainer/ChartsContainer.js +5 -2
  45. package/ChartsContainer/ChartsContainer.mjs +5 -2
  46. package/ChartsContainer/useChartsContainerProps.d.mts +3 -3
  47. package/ChartsContainer/useChartsContainerProps.d.ts +3 -3
  48. package/ChartsContainer/useChartsContainerProps.js +3 -3
  49. package/ChartsContainer/useChartsContainerProps.mjs +3 -3
  50. package/ChartsDataProvider/ChartsDataProvider.d.mts +2 -2
  51. package/ChartsDataProvider/ChartsDataProvider.d.ts +2 -2
  52. package/ChartsDataProvider/useChartsDataProviderProps.d.mts +2 -2
  53. package/ChartsDataProvider/useChartsDataProviderProps.d.ts +2 -2
  54. package/ChartsLabel/ChartsLabelMark.d.mts +8 -1
  55. package/ChartsLabel/ChartsLabelMark.d.ts +8 -1
  56. package/ChartsLabel/ChartsLabelMark.js +29 -3
  57. package/ChartsLabel/ChartsLabelMark.mjs +29 -3
  58. package/ChartsLabel/labelMarkClasses.d.mts +2 -0
  59. package/ChartsLabel/labelMarkClasses.d.ts +2 -0
  60. package/ChartsLabel/labelMarkClasses.js +1 -1
  61. package/ChartsLabel/labelMarkClasses.mjs +1 -1
  62. package/ChartsLegend/ChartsLegend.js +4 -2
  63. package/ChartsLegend/ChartsLegend.mjs +4 -2
  64. package/ChartsLegend/legendContext.types.d.mts +1 -0
  65. package/ChartsLegend/legendContext.types.d.ts +1 -0
  66. package/ChartsTooltip/ChartsAxisTooltipContent.js +3 -1
  67. package/ChartsTooltip/ChartsAxisTooltipContent.mjs +3 -1
  68. package/ChartsTooltip/ChartsItemTooltipContent.js +6 -2
  69. package/ChartsTooltip/ChartsItemTooltipContent.mjs +6 -2
  70. package/ChartsTooltip/ChartsTooltipContainer.js +7 -5
  71. package/ChartsTooltip/ChartsTooltipContainer.mjs +6 -4
  72. package/ChartsTooltip/ChartsTooltipTable.d.mts +1 -1
  73. package/ChartsTooltip/ChartsTooltipTable.d.ts +1 -1
  74. package/ChartsTooltip/useAxesTooltip.d.mts +1 -0
  75. package/ChartsTooltip/useAxesTooltip.d.ts +1 -0
  76. package/ChartsTooltip/useAxesTooltip.js +6 -4
  77. package/ChartsTooltip/useAxesTooltip.mjs +6 -4
  78. package/ChartsTooltip/useItemTooltip.d.mts +5 -3
  79. package/ChartsTooltip/useItemTooltip.d.ts +5 -3
  80. package/ChartsXAxis/useAxisTicksProps.d.mts +286 -286
  81. package/ChartsXAxis/useAxisTicksProps.d.ts +286 -286
  82. package/ChartsYAxis/useAxisTicksProps.d.mts +286 -286
  83. package/ChartsYAxis/useAxisTicksProps.d.ts +286 -286
  84. package/LineChart/AreaElement.d.mts +12 -0
  85. package/LineChart/AreaElement.d.ts +12 -0
  86. package/LineChart/AreaElement.js +28 -9
  87. package/LineChart/AreaElement.mjs +30 -9
  88. package/LineChart/AreaPlot.js +10 -4
  89. package/LineChart/AreaPlot.mjs +11 -5
  90. package/LineChart/CircleMarkElement.js +9 -2
  91. package/LineChart/CircleMarkElement.mjs +10 -3
  92. package/LineChart/LineChart.js +5 -2
  93. package/LineChart/LineChart.mjs +5 -2
  94. package/LineChart/LineElement.d.mts +12 -0
  95. package/LineChart/LineElement.d.ts +12 -0
  96. package/LineChart/LineElement.js +28 -9
  97. package/LineChart/LineElement.mjs +30 -9
  98. package/LineChart/LineHighlightElement.d.mts +12 -0
  99. package/LineChart/LineHighlightElement.d.ts +12 -0
  100. package/LineChart/LineHighlightElement.js +22 -3
  101. package/LineChart/LineHighlightElement.mjs +24 -3
  102. package/LineChart/LinePlot.js +11 -5
  103. package/LineChart/LinePlot.mjs +12 -6
  104. package/LineChart/MarkElement.js +9 -2
  105. package/LineChart/MarkElement.mjs +10 -3
  106. package/LineChart/MarkPlot.js +19 -9
  107. package/LineChart/MarkPlot.mjs +20 -10
  108. package/LineChart/index.d.mts +3 -1
  109. package/LineChart/index.d.ts +3 -1
  110. package/LineChart/index.js +10 -2
  111. package/LineChart/index.mjs +2 -1
  112. package/LineChart/lineClasses.d.mts +34 -0
  113. package/LineChart/lineClasses.d.ts +34 -0
  114. package/LineChart/lineClasses.js +32 -0
  115. package/LineChart/lineClasses.mjs +23 -0
  116. package/LineChart/markElementClasses.d.mts +17 -8
  117. package/LineChart/markElementClasses.d.ts +17 -8
  118. package/LineChart/markElementClasses.js +19 -0
  119. package/LineChart/markElementClasses.mjs +20 -0
  120. package/LineChart/seriesConfig/legend.js +1 -0
  121. package/LineChart/seriesConfig/legend.mjs +1 -0
  122. package/LineChart/seriesConfig/seriesProcessor.js +1 -1
  123. package/LineChart/seriesConfig/seriesProcessor.mjs +1 -1
  124. package/LineChart/seriesConfig/tooltip.js +2 -1
  125. package/LineChart/seriesConfig/tooltip.mjs +2 -1
  126. package/PieChart/FocusedPieArc.js +8 -6
  127. package/PieChart/FocusedPieArc.mjs +8 -6
  128. package/PieChart/PieArc.d.mts +14 -11
  129. package/PieChart/PieArc.d.ts +14 -11
  130. package/PieChart/PieArc.js +22 -4
  131. package/PieChart/PieArc.mjs +24 -4
  132. package/PieChart/PieArcLabel.d.mts +16 -2
  133. package/PieChart/PieArcLabel.d.ts +16 -2
  134. package/PieChart/PieArcLabel.js +26 -5
  135. package/PieChart/PieArcLabel.mjs +28 -5
  136. package/PieChart/PieArcLabelPlot.js +6 -1
  137. package/PieChart/PieArcLabelPlot.mjs +6 -1
  138. package/PieChart/PieArcPlot.js +6 -1
  139. package/PieChart/PieArcPlot.mjs +6 -1
  140. package/PieChart/PieChart.js +5 -2
  141. package/PieChart/PieChart.mjs +5 -2
  142. package/PieChart/PiePlot.d.mts +1 -0
  143. package/PieChart/PiePlot.d.ts +1 -0
  144. package/PieChart/PiePlot.js +4 -1
  145. package/PieChart/PiePlot.mjs +4 -1
  146. package/PieChart/dataTransform/useTransformData.js +6 -8
  147. package/PieChart/dataTransform/useTransformData.mjs +6 -8
  148. package/PieChart/pieClasses.d.mts +22 -1
  149. package/PieChart/pieClasses.d.ts +22 -1
  150. package/PieChart/pieClasses.js +10 -3
  151. package/PieChart/pieClasses.mjs +10 -3
  152. package/RadarChart/RadarChart.js +5 -2
  153. package/RadarChart/RadarChart.mjs +5 -2
  154. package/RadarChart/RadarSeriesPlot/RadarSeriesArea.d.mts +3 -3
  155. package/RadarChart/RadarSeriesPlot/RadarSeriesArea.d.ts +3 -3
  156. package/RadarChart/RadarSeriesPlot/RadarSeriesArea.js +7 -14
  157. package/RadarChart/RadarSeriesPlot/RadarSeriesArea.mjs +7 -14
  158. package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.d.mts +2 -2
  159. package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.d.ts +2 -2
  160. package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.js +7 -14
  161. package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.mjs +7 -14
  162. package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.js +4 -9
  163. package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.mjs +4 -9
  164. package/RadarChart/RadarSeriesPlot/useRadarSeriesData.d.mts +1 -1
  165. package/RadarChart/RadarSeriesPlot/useRadarSeriesData.d.ts +1 -1
  166. package/RadarChart/RadarSeriesPlot/useRadarSeriesData.js +8 -16
  167. package/RadarChart/RadarSeriesPlot/useRadarSeriesData.mjs +8 -16
  168. package/RadarChart/seriesConfig/tooltip.js +13 -8
  169. package/RadarChart/seriesConfig/tooltip.mjs +13 -8
  170. package/RadarChart/useRadarChartProps.js +3 -3
  171. package/RadarChart/useRadarChartProps.mjs +3 -3
  172. package/ScatterChart/BatchScatter.d.mts +2 -1
  173. package/ScatterChart/BatchScatter.d.ts +2 -1
  174. package/ScatterChart/BatchScatter.js +5 -3
  175. package/ScatterChart/BatchScatter.mjs +4 -3
  176. package/ScatterChart/FocusedScatterMark.d.mts +4 -1
  177. package/ScatterChart/FocusedScatterMark.d.ts +4 -1
  178. package/ScatterChart/FocusedScatterMark.js +12 -2
  179. package/ScatterChart/FocusedScatterMark.mjs +11 -1
  180. package/ScatterChart/Scatter.d.mts +1 -1
  181. package/ScatterChart/Scatter.d.ts +1 -1
  182. package/ScatterChart/Scatter.js +11 -9
  183. package/ScatterChart/Scatter.mjs +11 -9
  184. package/ScatterChart/ScatterChart.js +5 -2
  185. package/ScatterChart/ScatterChart.mjs +5 -2
  186. package/ScatterChart/ScatterPlot.d.mts +2 -1
  187. package/ScatterChart/ScatterPlot.d.ts +2 -1
  188. package/ScatterChart/ScatterPlot.js +16 -2
  189. package/ScatterChart/ScatterPlot.mjs +16 -2
  190. package/ScatterChart/index.d.mts +2 -2
  191. package/ScatterChart/index.d.ts +2 -2
  192. package/ScatterChart/scatterClasses.d.mts +14 -2
  193. package/ScatterChart/scatterClasses.d.ts +14 -2
  194. package/ScatterChart/scatterClasses.js +9 -3
  195. package/ScatterChart/scatterClasses.mjs +9 -3
  196. package/SparkLineChart/SparkLineChart.js +5 -2
  197. package/SparkLineChart/SparkLineChart.mjs +5 -2
  198. package/context/ChartApi.d.mts +1 -1
  199. package/context/ChartApi.d.ts +1 -1
  200. package/context/ChartProvider/ChartProvider.types.d.mts +2 -2
  201. package/context/ChartProvider/ChartProvider.types.d.ts +2 -2
  202. package/context/ChartsProvider/ChartsProvider.d.mts +1 -1
  203. package/context/ChartsProvider/ChartsProvider.d.ts +1 -1
  204. package/context/ChartsProvider/ChartsProvider.types.d.mts +3 -3
  205. package/context/ChartsProvider/ChartsProvider.types.d.ts +3 -3
  206. package/hooks/index.d.mts +2 -2
  207. package/hooks/index.d.ts +2 -2
  208. package/hooks/index.js +8 -8
  209. package/hooks/index.mjs +2 -2
  210. package/hooks/useInteractionItemProps.d.mts +1 -2
  211. package/hooks/useInteractionItemProps.d.ts +1 -2
  212. package/hooks/{useItemHighlighted.d.mts → useItemHighlightState.d.mts} +5 -13
  213. package/hooks/{useItemHighlighted.d.ts → useItemHighlightState.d.ts} +5 -13
  214. package/hooks/{useItemHighlighted.js → useItemHighlightState.js} +5 -10
  215. package/hooks/useItemHighlightState.mjs +17 -0
  216. package/hooks/useItemHighlightStateGetter.d.mts +9 -0
  217. package/hooks/useItemHighlightStateGetter.d.ts +9 -0
  218. package/hooks/useItemHighlightStateGetter.js +21 -0
  219. package/hooks/useItemHighlightStateGetter.mjs +16 -0
  220. package/index.js +1 -1
  221. package/index.mjs +1 -1
  222. package/internals/commonNextFocusItem.d.mts +5 -5
  223. package/internals/commonNextFocusItem.d.ts +5 -5
  224. package/internals/createCommonKeyboardFocusHandler.d.mts +2 -2
  225. package/internals/createCommonKeyboardFocusHandler.d.ts +2 -2
  226. package/internals/identifierCleaner.d.mts +8 -4
  227. package/internals/identifierCleaner.d.ts +8 -4
  228. package/internals/identifierCleaner.js +5 -1
  229. package/internals/identifierCleaner.mjs +5 -1
  230. package/internals/identifierSerializer.d.mts +10 -2
  231. package/internals/identifierSerializer.d.ts +10 -2
  232. package/internals/identifierSerializer.js +8 -0
  233. package/internals/identifierSerializer.mjs +8 -0
  234. package/internals/plugins/allPlugins.d.mts +2 -2
  235. package/internals/plugins/allPlugins.d.ts +2 -2
  236. package/internals/plugins/corePlugins/corePlugins.d.mts +1 -1
  237. package/internals/plugins/corePlugins/corePlugins.d.ts +1 -1
  238. package/internals/plugins/corePlugins/useChartSeries/processSeries.d.mts +6 -6
  239. package/internals/plugins/corePlugins/useChartSeries/processSeries.d.ts +6 -6
  240. package/internals/plugins/corePlugins/useChartSeries/useChartSeries.types.d.mts +9 -9
  241. package/internals/plugins/corePlugins/useChartSeries/useChartSeries.types.d.ts +9 -9
  242. package/internals/plugins/corePlugins/useChartSeries/useColorProcessor.d.mts +2 -2
  243. package/internals/plugins/corePlugins/useChartSeries/useColorProcessor.d.ts +2 -2
  244. package/internals/plugins/corePlugins/useChartSeriesConfig/types/cartesianExtremumGetter.types.d.mts +3 -3
  245. package/internals/plugins/corePlugins/useChartSeriesConfig/types/cartesianExtremumGetter.types.d.ts +3 -3
  246. package/internals/plugins/corePlugins/useChartSeriesConfig/types/colorProcessor.types.d.mts +4 -4
  247. package/internals/plugins/corePlugins/useChartSeriesConfig/types/colorProcessor.types.d.ts +4 -4
  248. package/internals/plugins/corePlugins/useChartSeriesConfig/types/getItemAtPosition.types.d.mts +2 -2
  249. package/internals/plugins/corePlugins/useChartSeriesConfig/types/getItemAtPosition.types.d.ts +2 -2
  250. package/internals/plugins/corePlugins/useChartSeriesConfig/types/getSeriesWithDefaultValues.types.d.mts +1 -1
  251. package/internals/plugins/corePlugins/useChartSeriesConfig/types/getSeriesWithDefaultValues.types.d.ts +1 -1
  252. package/internals/plugins/corePlugins/useChartSeriesConfig/types/identifierCleaner.types.d.mts +1 -1
  253. package/internals/plugins/corePlugins/useChartSeriesConfig/types/identifierCleaner.types.d.ts +1 -1
  254. package/internals/plugins/corePlugins/useChartSeriesConfig/types/identifierSerializer.types.d.mts +1 -1
  255. package/internals/plugins/corePlugins/useChartSeriesConfig/types/identifierSerializer.types.d.ts +1 -1
  256. package/internals/plugins/corePlugins/useChartSeriesConfig/types/legendGetter.types.d.mts +1 -1
  257. package/internals/plugins/corePlugins/useChartSeriesConfig/types/legendGetter.types.d.ts +1 -1
  258. package/internals/plugins/corePlugins/useChartSeriesConfig/types/polarExtremumGetter.types.d.mts +3 -3
  259. package/internals/plugins/corePlugins/useChartSeriesConfig/types/polarExtremumGetter.types.d.ts +3 -3
  260. package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesConfig.types.d.mts +28 -28
  261. package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesConfig.types.d.ts +28 -28
  262. package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesLayout.types.d.mts +2 -2
  263. package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesLayout.types.d.ts +2 -2
  264. package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesProcessor.types.d.mts +6 -6
  265. package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesProcessor.types.d.ts +6 -6
  266. package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipGetter.types.d.mts +21 -11
  267. package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipGetter.types.d.ts +21 -11
  268. package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipItemPositionGetter.types.d.mts +4 -4
  269. package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipItemPositionGetter.types.d.ts +4 -4
  270. package/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.d.mts +10 -10
  271. package/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.d.ts +10 -10
  272. package/internals/plugins/corePlugins/useChartSeriesConfig/utils/cleanIdentifier.d.mts +3 -3
  273. package/internals/plugins/corePlugins/useChartSeriesConfig/utils/cleanIdentifier.d.ts +3 -3
  274. package/internals/plugins/corePlugins/useChartSeriesConfig/utils/serializeIdentifier.d.mts +3 -3
  275. package/internals/plugins/corePlugins/useChartSeriesConfig/utils/serializeIdentifier.d.ts +3 -3
  276. package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.d.mts +5 -5
  277. package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.d.ts +5 -5
  278. package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisTriggerTooltip.d.mts +1 -1
  279. package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisTriggerTooltip.d.ts +1 -1
  280. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.mts +5 -5
  281. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +5 -5
  282. package/internals/plugins/featurePlugins/useChartHighlight/highlightStates.d.mts +1 -2
  283. package/internals/plugins/featurePlugins/useChartHighlight/highlightStates.d.ts +1 -2
  284. package/internals/plugins/featurePlugins/useChartHighlight/highlightStates.js +0 -5
  285. package/internals/plugins/featurePlugins/useChartHighlight/highlightStates.mjs +0 -4
  286. package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.d.mts +10 -29
  287. package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.d.ts +10 -29
  288. package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.js +27 -64
  289. package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.mjs +24 -60
  290. package/internals/plugins/featurePlugins/useChartKeyboardNavigation/keyboardFocusHandler.types.d.mts +3 -3
  291. package/internals/plugins/featurePlugins/useChartKeyboardNavigation/keyboardFocusHandler.types.d.ts +3 -3
  292. package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.js +8 -10
  293. package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.mjs +8 -10
  294. package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.js +1 -1
  295. package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.mjs +1 -1
  296. package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.types.d.mts +8 -2
  297. package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.types.d.ts +8 -2
  298. package/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.d.mts +5 -5
  299. package/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.d.ts +5 -5
  300. package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisExtremum.d.mts +1 -1
  301. package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisExtremum.d.ts +1 -1
  302. package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisTriggerTooltip.d.mts +1 -1
  303. package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisTriggerTooltip.d.ts +1 -1
  304. package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.js +6 -4
  305. package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.mjs +6 -4
  306. package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.types.d.mts +10 -10
  307. package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.types.d.ts +10 -10
  308. package/internals/plugins/featurePlugins/useChartVisibilityManager/useChartVisibilityManager.types.d.mts +16 -16
  309. package/internals/plugins/featurePlugins/useChartVisibilityManager/useChartVisibilityManager.types.d.ts +16 -16
  310. package/internals/plugins/models/chart.d.mts +1 -1
  311. package/internals/plugins/models/chart.d.ts +1 -1
  312. package/models/seriesType/config.d.mts +18 -6
  313. package/models/seriesType/config.d.ts +18 -6
  314. package/models/seriesType/index.d.mts +8 -8
  315. package/models/seriesType/index.d.ts +8 -8
  316. package/models/seriesType/line.d.mts +2 -1
  317. package/models/seriesType/line.d.ts +2 -1
  318. package/models/seriesType/radar.d.mts +1 -1
  319. package/models/seriesType/radar.d.ts +1 -1
  320. package/package.json +3 -3
  321. package/themeAugmentation/components.d.mts +26 -1
  322. package/themeAugmentation/components.d.ts +26 -1
  323. package/themeAugmentation/overrides.d.mts +15 -1
  324. package/themeAugmentation/overrides.d.ts +15 -1
  325. package/hooks/useItemHighlighted.mjs +0 -22
  326. package/hooks/useItemHighlightedGetter.d.mts +0 -53
  327. package/hooks/useItemHighlightedGetter.d.ts +0 -53
  328. package/hooks/useItemHighlightedGetter.js +0 -26
  329. package/hooks/useItemHighlightedGetter.mjs +0 -21
@@ -0,0 +1,23 @@
1
+ import generateUtilityClass from '@mui/utils/generateUtilityClass';
2
+ import composeClasses from '@mui/utils/composeClasses';
3
+ import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
4
+ export function getLineUtilityClass(slot) {
5
+ return generateUtilityClass('MuiLineChart', slot);
6
+ }
7
+ export const lineClasses = generateUtilityClasses('MuiLineChart', ['area', 'line', 'mark', 'markAnimate', 'highlight', 'areaPlot', 'linePlot', 'markPlot']);
8
+ export const useUtilityClasses = options => {
9
+ const {
10
+ skipAnimation,
11
+ classes
12
+ } = options ?? {};
13
+ const slots = {
14
+ area: ['area'],
15
+ line: ['line'],
16
+ mark: ['mark', !skipAnimation && 'markAnimate'],
17
+ highlight: ['highlight'],
18
+ areaPlot: ['areaPlot'],
19
+ linePlot: ['linePlot'],
20
+ markPlot: ['markPlot']
21
+ };
22
+ return composeClasses(slots, getLineUtilityClass, classes);
23
+ };
@@ -1,4 +1,8 @@
1
- import { type SeriesId } from "../models/seriesType/common.mjs";
1
+ import type { MarkElementOwnerState } from "./lineClasses.mjs";
2
+ export { type MarkElementOwnerState };
3
+ /**
4
+ * @deprecated Use `LineClasses` from `./lineClasses` instead.
5
+ */
2
6
  export interface MarkElementClasses {
3
7
  /** Styles applied to the root element. */
4
8
  root: string;
@@ -20,14 +24,19 @@ export interface MarkElementClasses {
20
24
  */
21
25
  series: string;
22
26
  }
27
+ /**
28
+ * @deprecated Use `LineClassKey` from `./lineClasses` instead.
29
+ */
23
30
  export type MarkElementClassKey = keyof MarkElementClasses;
24
- export interface MarkElementOwnerState {
25
- seriesId: SeriesId;
26
- isFaded: boolean;
27
- isHighlighted: boolean;
28
- classes?: Partial<MarkElementClasses>;
29
- skipAnimation?: boolean;
30
- }
31
+ /**
32
+ * @deprecated Use `getLineUtilityClass` from `./lineClasses` instead.
33
+ */
31
34
  export declare function getMarkElementUtilityClass(slot: string): string;
35
+ /**
36
+ * @deprecated Use `lineClasses` from `./lineClasses` instead.
37
+ */
32
38
  export declare const markElementClasses: MarkElementClasses;
39
+ /**
40
+ * @deprecated Use `useUtilityClasses` from `./lineClasses` instead.
41
+ */
33
42
  export declare const useUtilityClasses: (ownerState: MarkElementOwnerState) => Record<"root", string>;
@@ -1,4 +1,8 @@
1
- import { type SeriesId } from "../models/seriesType/common.js";
1
+ import type { MarkElementOwnerState } from "./lineClasses.js";
2
+ export { type MarkElementOwnerState };
3
+ /**
4
+ * @deprecated Use `LineClasses` from `./lineClasses` instead.
5
+ */
2
6
  export interface MarkElementClasses {
3
7
  /** Styles applied to the root element. */
4
8
  root: string;
@@ -20,14 +24,19 @@ export interface MarkElementClasses {
20
24
  */
21
25
  series: string;
22
26
  }
27
+ /**
28
+ * @deprecated Use `LineClassKey` from `./lineClasses` instead.
29
+ */
23
30
  export type MarkElementClassKey = keyof MarkElementClasses;
24
- export interface MarkElementOwnerState {
25
- seriesId: SeriesId;
26
- isFaded: boolean;
27
- isHighlighted: boolean;
28
- classes?: Partial<MarkElementClasses>;
29
- skipAnimation?: boolean;
30
- }
31
+ /**
32
+ * @deprecated Use `getLineUtilityClass` from `./lineClasses` instead.
33
+ */
31
34
  export declare function getMarkElementUtilityClass(slot: string): string;
35
+ /**
36
+ * @deprecated Use `lineClasses` from `./lineClasses` instead.
37
+ */
32
38
  export declare const markElementClasses: MarkElementClasses;
39
+ /**
40
+ * @deprecated Use `useUtilityClasses` from `./lineClasses` instead.
41
+ */
33
42
  export declare const useUtilityClasses: (ownerState: MarkElementOwnerState) => Record<"root", string>;
@@ -9,10 +9,29 @@ exports.useUtilityClasses = exports.markElementClasses = void 0;
9
9
  var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
10
10
  var _generateUtilityClass = _interopRequireDefault(require("@mui/utils/generateUtilityClass"));
11
11
  var _generateUtilityClasses = _interopRequireDefault(require("@mui/utils/generateUtilityClasses"));
12
+ /**
13
+ * @deprecated Use `LineClasses` from `./lineClasses` instead.
14
+ */
15
+
16
+ /**
17
+ * @deprecated Use `LineClassKey` from `./lineClasses` instead.
18
+ */
19
+
20
+ /**
21
+ * @deprecated Use `getLineUtilityClass` from `./lineClasses` instead.
22
+ */
12
23
  function getMarkElementUtilityClass(slot) {
13
24
  return (0, _generateUtilityClass.default)('MuiMarkElement', slot);
14
25
  }
26
+
27
+ /**
28
+ * @deprecated Use `lineClasses` from `./lineClasses` instead.
29
+ */
15
30
  const markElementClasses = exports.markElementClasses = (0, _generateUtilityClasses.default)('MuiMarkElement', ['root', 'highlighted', 'faded', 'animate', 'series']);
31
+
32
+ /**
33
+ * @deprecated Use `useUtilityClasses` from `./lineClasses` instead.
34
+ */
16
35
  const useUtilityClasses = ownerState => {
17
36
  const {
18
37
  classes,
@@ -1,10 +1,30 @@
1
1
  import composeClasses from '@mui/utils/composeClasses';
2
2
  import generateUtilityClass from '@mui/utils/generateUtilityClass';
3
3
  import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
4
+
5
+ /**
6
+ * @deprecated Use `LineClasses` from `./lineClasses` instead.
7
+ */
8
+
9
+ /**
10
+ * @deprecated Use `LineClassKey` from `./lineClasses` instead.
11
+ */
12
+
13
+ /**
14
+ * @deprecated Use `getLineUtilityClass` from `./lineClasses` instead.
15
+ */
4
16
  export function getMarkElementUtilityClass(slot) {
5
17
  return generateUtilityClass('MuiMarkElement', slot);
6
18
  }
19
+
20
+ /**
21
+ * @deprecated Use `lineClasses` from `./lineClasses` instead.
22
+ */
7
23
  export const markElementClasses = generateUtilityClasses('MuiMarkElement', ['root', 'highlighted', 'faded', 'animate', 'series']);
24
+
25
+ /**
26
+ * @deprecated Use `useUtilityClasses` from `./lineClasses` instead.
27
+ */
8
28
  export const useUtilityClasses = ownerState => {
9
29
  const {
10
30
  classes,
@@ -18,6 +18,7 @@ const legendGetter = params => {
18
18
  acc.push({
19
19
  type: 'line',
20
20
  markType: series[seriesId].labelMarkType,
21
+ markShape: series[seriesId].showMark ? series[seriesId].shape ?? 'circle' : undefined,
21
22
  seriesId,
22
23
  color: series[seriesId].color,
23
24
  label: formattedLabel
@@ -12,6 +12,7 @@ const legendGetter = params => {
12
12
  acc.push({
13
13
  type: 'line',
14
14
  markType: series[seriesId].labelMarkType,
15
+ markShape: series[seriesId].showMark ? series[seriesId].shape ?? 'circle' : undefined,
15
16
  seriesId,
16
17
  color: series[seriesId].color,
17
18
  label: formattedLabel
@@ -96,7 +96,7 @@ Line plots only support numeric and null values.`);
96
96
  seriesId: id
97
97
  });
98
98
  completedSeries[id] = (0, _extends2.default)({
99
- labelMarkType: 'line'
99
+ labelMarkType: 'line+mark'
100
100
  }, series[id], {
101
101
  data,
102
102
  valueFormatter: series[id].valueFormatter ?? lineValueFormatter,
@@ -89,7 +89,7 @@ Line plots only support numeric and null values.`);
89
89
  seriesId: id
90
90
  });
91
91
  completedSeries[id] = _extends({
92
- labelMarkType: 'line'
92
+ labelMarkType: 'line+mark'
93
93
  }, series[id], {
94
94
  data,
95
95
  valueFormatter: series[id].valueFormatter ?? lineValueFormatter,
@@ -25,7 +25,8 @@ const tooltipGetter = params => {
25
25
  label,
26
26
  value,
27
27
  formattedValue,
28
- markType: series.labelMarkType
28
+ markType: series.labelMarkType,
29
+ markShape: series.showMark ? series.shape : undefined
29
30
  };
30
31
  };
31
32
  const axisTooltipGetter = series => {
@@ -19,7 +19,8 @@ const tooltipGetter = params => {
19
19
  label,
20
20
  value,
21
21
  formattedValue,
22
- markType: series.labelMarkType
22
+ markType: series.labelMarkType,
23
+ markShape: series.showMark ? series.shape : undefined
23
24
  };
24
25
  };
25
26
  export const axisTooltipGetter = series => {
@@ -10,11 +10,13 @@ exports.FocusedPieArc = FocusedPieArc;
10
10
  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
+ var _clsx = _interopRequireDefault(require("clsx"));
13
14
  var _styles = require("@mui/material/styles");
14
15
  var _useFocusedItem = require("../hooks/useFocusedItem");
15
16
  var _usePieSeries = require("../hooks/usePieSeries");
16
17
  var _PieArc = require("./PieArc");
17
- var _useItemHighlighted = require("../hooks/useItemHighlighted");
18
+ var _pieClasses = require("./pieClasses");
19
+ var _useItemHighlightState = require("../hooks/useItemHighlightState");
18
20
  var _getModifiedArcProperties = require("./dataTransform/getModifiedArcProperties");
19
21
  var _jsxRuntime = require("react/jsx-runtime");
20
22
  const _excluded = ["arcLabelRadius"];
@@ -22,11 +24,11 @@ function FocusedPieArc(props) {
22
24
  const theme = (0, _styles.useTheme)();
23
25
  const focusedItem = (0, _useFocusedItem.useFocusedItem)();
24
26
  const pieSeriesLayout = (0, _usePieSeries.usePieSeriesLayout)();
25
- const {
26
- isHighlighted,
27
- isFaded
28
- } = (0, _useItemHighlighted.useItemHighlighted)(focusedItem);
27
+ const highlightState = (0, _useItemHighlightState.useItemHighlightState)(focusedItem);
28
+ const isHighlighted = highlightState === 'highlighted';
29
+ const isFaded = highlightState === 'faded';
29
30
  const pieSeries = (0, _usePieSeries.usePieSeriesContext)();
31
+ const classes = (0, _pieClasses.useUtilityClasses)();
30
32
  if (focusedItem === null || focusedItem.type !== 'pie' || !pieSeries) {
31
33
  return null;
32
34
  }
@@ -51,7 +53,7 @@ function FocusedPieArc(props) {
51
53
  skipAnimation: true,
52
54
  stroke: (theme.vars ?? theme).palette.text.primary,
53
55
  seriesId: series.id,
54
- className: _PieArc.pieArcClasses.focusIndicator,
56
+ className: (0, _clsx.default)(classes.focusIndicator, _PieArc.pieArcClasses.focusIndicator),
55
57
  dataIndex: focusedItem.dataIndex,
56
58
  isFaded: false,
57
59
  isHighlighted: false,
@@ -4,22 +4,24 @@ import _extends from "@babel/runtime/helpers/esm/extends";
4
4
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
5
5
  const _excluded = ["arcLabelRadius"];
6
6
  import * as React from 'react';
7
+ import clsx from 'clsx';
7
8
  import { useTheme } from '@mui/material/styles';
8
9
  import { useFocusedItem } from "../hooks/useFocusedItem.mjs";
9
10
  import { usePieSeriesContext, usePieSeriesLayout } from "../hooks/usePieSeries.mjs";
10
11
  import { PieArc, pieArcClasses } from "./PieArc.mjs";
11
- import { useItemHighlighted } from "../hooks/useItemHighlighted.mjs";
12
+ import { useUtilityClasses } from "./pieClasses.mjs";
13
+ import { useItemHighlightState } from "../hooks/useItemHighlightState.mjs";
12
14
  import { getModifiedArcProperties } from "./dataTransform/getModifiedArcProperties.mjs";
13
15
  import { jsx as _jsx } from "react/jsx-runtime";
14
16
  export function FocusedPieArc(props) {
15
17
  const theme = useTheme();
16
18
  const focusedItem = useFocusedItem();
17
19
  const pieSeriesLayout = usePieSeriesLayout();
18
- const {
19
- isHighlighted,
20
- isFaded
21
- } = useItemHighlighted(focusedItem);
20
+ const highlightState = useItemHighlightState(focusedItem);
21
+ const isHighlighted = highlightState === 'highlighted';
22
+ const isFaded = highlightState === 'faded';
22
23
  const pieSeries = usePieSeriesContext();
24
+ const classes = useUtilityClasses();
23
25
  if (focusedItem === null || focusedItem.type !== 'pie' || !pieSeries) {
24
26
  return null;
25
27
  }
@@ -44,7 +46,7 @@ export function FocusedPieArc(props) {
44
46
  skipAnimation: true,
45
47
  stroke: (theme.vars ?? theme).palette.text.primary,
46
48
  seriesId: series.id,
47
- className: pieArcClasses.focusIndicator,
49
+ className: clsx(classes.focusIndicator, pieArcClasses.focusIndicator),
48
50
  dataIndex: focusedItem.dataIndex,
49
51
  isFaded: false,
50
52
  isHighlighted: false,
@@ -1,5 +1,9 @@
1
1
  import * as React from 'react';
2
- import { type SeriesId } from "../models/index.mjs";
2
+ import { type PieArcOwnerState } from "./pieClasses.mjs";
3
+ export { type PieArcOwnerState };
4
+ /**
5
+ * @deprecated Use `PieClasses` from `./pieClasses` instead.
6
+ */
3
7
  export interface PieArcClasses {
4
8
  /** Styles applied to the root element. */
5
9
  root: string;
@@ -21,18 +25,17 @@ export interface PieArcClasses {
21
25
  /** Styles applied to the focus indicator element. */
22
26
  focusIndicator: string;
23
27
  }
28
+ /**
29
+ * @deprecated Use `PieClassKey` from `./pieClasses` instead.
30
+ */
24
31
  export type PieArcClassKey = keyof PieArcClasses;
25
- interface PieArcOwnerState {
26
- seriesId: SeriesId;
27
- dataIndex: number;
28
- color: string;
29
- isFaded: boolean;
30
- isHighlighted: boolean;
31
- isFocused: boolean;
32
- stroke?: string;
33
- classes?: Partial<PieArcClasses>;
34
- }
32
+ /**
33
+ * @deprecated Use `getPieUtilityClass` from `./pieClasses` instead.
34
+ */
35
35
  export declare function getPieArcUtilityClass(slot: string): string;
36
+ /**
37
+ * @deprecated Use `pieClasses` from `./pieClasses` instead.
38
+ */
36
39
  export declare const pieArcClasses: PieArcClasses;
37
40
  export type PieArcProps = Omit<React.SVGProps<SVGPathElement>, 'ref'> & PieArcOwnerState & {
38
41
  cornerRadius: number;
@@ -1,5 +1,9 @@
1
1
  import * as React from 'react';
2
- import { type SeriesId } from "../models/index.js";
2
+ import { type PieArcOwnerState } from "./pieClasses.js";
3
+ export { type PieArcOwnerState };
4
+ /**
5
+ * @deprecated Use `PieClasses` from `./pieClasses` instead.
6
+ */
3
7
  export interface PieArcClasses {
4
8
  /** Styles applied to the root element. */
5
9
  root: string;
@@ -21,18 +25,17 @@ export interface PieArcClasses {
21
25
  /** Styles applied to the focus indicator element. */
22
26
  focusIndicator: string;
23
27
  }
28
+ /**
29
+ * @deprecated Use `PieClassKey` from `./pieClasses` instead.
30
+ */
24
31
  export type PieArcClassKey = keyof PieArcClasses;
25
- interface PieArcOwnerState {
26
- seriesId: SeriesId;
27
- dataIndex: number;
28
- color: string;
29
- isFaded: boolean;
30
- isHighlighted: boolean;
31
- isFocused: boolean;
32
- stroke?: string;
33
- classes?: Partial<PieArcClasses>;
34
- }
32
+ /**
33
+ * @deprecated Use `getPieUtilityClass` from `./pieClasses` instead.
34
+ */
35
35
  export declare function getPieArcUtilityClass(slot: string): string;
36
+ /**
37
+ * @deprecated Use `pieClasses` from `./pieClasses` instead.
38
+ */
36
39
  export declare const pieArcClasses: PieArcClasses;
37
40
  export type PieArcProps = Omit<React.SVGProps<SVGPathElement>, 'ref'> & PieArcOwnerState & {
38
41
  cornerRadius: number;
@@ -21,12 +21,30 @@ var _generateUtilityClasses = _interopRequireDefault(require("@mui/utils/generat
21
21
  var _hooks = require("../hooks");
22
22
  var _animation = require("../internals/animation/animation");
23
23
  var _useInteractionItemProps = require("../hooks/useInteractionItemProps");
24
+ var _pieClasses = require("./pieClasses");
24
25
  var _jsxRuntime = require("react/jsx-runtime");
25
26
  const _excluded = ["className", "classes", "color", "dataIndex", "seriesId", "isFaded", "isHighlighted", "isFocused", "onClick", "cornerRadius", "startAngle", "endAngle", "innerRadius", "outerRadius", "paddingAngle", "skipAnimation", "stroke", "skipInteraction"];
27
+ /**
28
+ * @deprecated Use `PieClasses` from `./pieClasses` instead.
29
+ */
30
+ /**
31
+ * @deprecated Use `PieClassKey` from `./pieClasses` instead.
32
+ */
33
+ /**
34
+ * @deprecated Use `getPieUtilityClass` from `./pieClasses` instead.
35
+ */
26
36
  function getPieArcUtilityClass(slot) {
27
37
  return (0, _generateUtilityClass.default)('MuiPieArc', slot);
28
38
  }
39
+
40
+ /**
41
+ * @deprecated Use `pieClasses` from `./pieClasses` instead.
42
+ */
29
43
  const pieArcClasses = exports.pieArcClasses = (0, _generateUtilityClasses.default)('MuiPieArc', ['root', 'highlighted', 'faded', 'series', 'focusIndicator']);
44
+
45
+ /**
46
+ * @deprecated Use `useUtilityClasses` from `./pieClasses` instead.
47
+ */
30
48
  const useUtilityClasses = ownerState => {
31
49
  const {
32
50
  classes,
@@ -42,8 +60,7 @@ const useUtilityClasses = ownerState => {
42
60
  };
43
61
  const PieArcRoot = (0, _styles.styled)('path', {
44
62
  name: 'MuiPieArc',
45
- slot: 'Root',
46
- overridesResolver: (_, styles) => styles.arc // FIXME: Inconsistent naming with slot
63
+ slot: 'Root'
47
64
  })({
48
65
  transitionProperty: 'opacity, fill, filter',
49
66
  transitionDuration: `${_animation.ANIMATION_DURATION_MS}ms`,
@@ -82,7 +99,8 @@ const PieArc = exports.PieArc = /*#__PURE__*/React.forwardRef(function PieArc(pr
82
99
  isHighlighted,
83
100
  isFocused
84
101
  };
85
- const classes = useUtilityClasses(ownerState);
102
+ const classes = (0, _pieClasses.useUtilityClasses)(ownerState);
103
+ const deprecatedClasses = useUtilityClasses(ownerState);
86
104
  const interactionProps = (0, _useInteractionItemProps.useInteractionItemProps)({
87
105
  type: 'pie',
88
106
  seriesId,
@@ -102,7 +120,7 @@ const PieArc = exports.PieArc = /*#__PURE__*/React.forwardRef(function PieArc(pr
102
120
  onClick: onClick,
103
121
  cursor: onClick ? 'pointer' : 'unset',
104
122
  ownerState: ownerState,
105
- className: (0, _clsx.default)(classes.root, className),
123
+ className: (0, _clsx.default)(classes.arc, deprecatedClasses.root, className),
106
124
  fill: color,
107
125
  opacity: isFaded ? 0.3 : 1,
108
126
  filter: isHighlighted ? 'brightness(120%)' : 'none',
@@ -13,11 +13,31 @@ import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
13
13
  import { useAnimatePieArc } from "../hooks/index.mjs";
14
14
  import { ANIMATION_DURATION_MS, ANIMATION_TIMING_FUNCTION } from "../internals/animation/animation.mjs";
15
15
  import { useInteractionItemProps } from "../hooks/useInteractionItemProps.mjs";
16
+ import { useUtilityClasses as usePieUtilityClasses } from "./pieClasses.mjs";
17
+
18
+ /**
19
+ * @deprecated Use `PieClasses` from `./pieClasses` instead.
20
+ */
21
+
22
+ /**
23
+ * @deprecated Use `PieClassKey` from `./pieClasses` instead.
24
+ */
16
25
  import { jsx as _jsx } from "react/jsx-runtime";
26
+ /**
27
+ * @deprecated Use `getPieUtilityClass` from `./pieClasses` instead.
28
+ */
17
29
  export function getPieArcUtilityClass(slot) {
18
30
  return generateUtilityClass('MuiPieArc', slot);
19
31
  }
32
+
33
+ /**
34
+ * @deprecated Use `pieClasses` from `./pieClasses` instead.
35
+ */
20
36
  export const pieArcClasses = generateUtilityClasses('MuiPieArc', ['root', 'highlighted', 'faded', 'series', 'focusIndicator']);
37
+
38
+ /**
39
+ * @deprecated Use `useUtilityClasses` from `./pieClasses` instead.
40
+ */
21
41
  const useUtilityClasses = ownerState => {
22
42
  const {
23
43
  classes,
@@ -33,8 +53,7 @@ const useUtilityClasses = ownerState => {
33
53
  };
34
54
  const PieArcRoot = styled('path', {
35
55
  name: 'MuiPieArc',
36
- slot: 'Root',
37
- overridesResolver: (_, styles) => styles.arc // FIXME: Inconsistent naming with slot
56
+ slot: 'Root'
38
57
  })({
39
58
  transitionProperty: 'opacity, fill, filter',
40
59
  transitionDuration: `${ANIMATION_DURATION_MS}ms`,
@@ -73,7 +92,8 @@ const PieArc = /*#__PURE__*/React.forwardRef(function PieArc(props, ref) {
73
92
  isHighlighted,
74
93
  isFocused
75
94
  };
76
- const classes = useUtilityClasses(ownerState);
95
+ const classes = usePieUtilityClasses(ownerState);
96
+ const deprecatedClasses = useUtilityClasses(ownerState);
77
97
  const interactionProps = useInteractionItemProps({
78
98
  type: 'pie',
79
99
  seriesId,
@@ -93,7 +113,7 @@ const PieArc = /*#__PURE__*/React.forwardRef(function PieArc(props, ref) {
93
113
  onClick: onClick,
94
114
  cursor: onClick ? 'pointer' : 'unset',
95
115
  ownerState: ownerState,
96
- className: clsx(classes.root, className),
116
+ className: clsx(classes.arc, deprecatedClasses.root, className),
97
117
  fill: color,
98
118
  opacity: isFaded ? 0.3 : 1,
99
119
  filter: isHighlighted ? 'brightness(120%)' : 'none',
@@ -1,5 +1,8 @@
1
1
  import * as React from 'react';
2
2
  import { type SeriesId } from "../models/index.mjs";
3
+ /**
4
+ * @deprecated Use `PieClasses` from `./pieClasses` instead.
5
+ */
3
6
  export interface PieArcLabelClasses {
4
7
  /** Styles applied to the root element. */
5
8
  root: string;
@@ -13,7 +16,9 @@ export interface PieArcLabelClasses {
13
16
  * @deprecated Use `[data-faded]` selector instead.
14
17
  */
15
18
  faded: string;
16
- /** Styles applied to the root element when animation is not skipped. */
19
+ /** Styles applied to the root element when animation is not skipped.
20
+ * @deprecated Use the `animate` class from `./pieClasses` instead.
21
+ */
17
22
  animate: string;
18
23
  /**
19
24
  * Styles applied to the root element for a specified series.
@@ -21,6 +26,9 @@ export interface PieArcLabelClasses {
21
26
  */
22
27
  series: string;
23
28
  }
29
+ /**
30
+ * @deprecated Use `PieClassKey` from `./pieClasses` instead.
31
+ */
24
32
  export type PieArcLabelClassKey = keyof PieArcLabelClasses;
25
33
  interface PieArcLabelOwnerState {
26
34
  seriesId: SeriesId;
@@ -30,7 +38,13 @@ interface PieArcLabelOwnerState {
30
38
  skipAnimation: boolean;
31
39
  classes?: Partial<PieArcLabelClasses>;
32
40
  }
41
+ /**
42
+ * @deprecated Use `getPieUtilityClass` from `./pieClasses` instead.
43
+ */
33
44
  export declare function getPieArcLabelUtilityClass(slot: string): string;
45
+ /**
46
+ * @deprecated Use `pieClasses` from `./pieClasses` instead.
47
+ */
34
48
  export declare const pieArcLabelClasses: PieArcLabelClasses;
35
49
  export type PieArcLabelProps = PieArcLabelOwnerState & Omit<React.SVGProps<SVGTextElement>, 'ref' | 'color'> & {
36
50
  startAngle: number;
@@ -44,7 +58,7 @@ export type PieArcLabelProps = PieArcLabelOwnerState & Omit<React.SVGProps<SVGTe
44
58
  formattedArcLabel?: string | null;
45
59
  hidden?: boolean;
46
60
  };
47
- declare const PieArcLabel: React.ForwardRefExoticComponent<PieArcLabelOwnerState & Omit<React.SVGProps<SVGTextElement>, "ref" | "color"> & {
61
+ declare const PieArcLabel: React.ForwardRefExoticComponent<PieArcLabelOwnerState & Omit<React.SVGProps<SVGTextElement>, "color" | "ref"> & {
48
62
  startAngle: number;
49
63
  endAngle: number;
50
64
  innerRadius: number;
@@ -1,5 +1,8 @@
1
1
  import * as React from 'react';
2
2
  import { type SeriesId } from "../models/index.js";
3
+ /**
4
+ * @deprecated Use `PieClasses` from `./pieClasses` instead.
5
+ */
3
6
  export interface PieArcLabelClasses {
4
7
  /** Styles applied to the root element. */
5
8
  root: string;
@@ -13,7 +16,9 @@ export interface PieArcLabelClasses {
13
16
  * @deprecated Use `[data-faded]` selector instead.
14
17
  */
15
18
  faded: string;
16
- /** Styles applied to the root element when animation is not skipped. */
19
+ /** Styles applied to the root element when animation is not skipped.
20
+ * @deprecated Use the `animate` class from `./pieClasses` instead.
21
+ */
17
22
  animate: string;
18
23
  /**
19
24
  * Styles applied to the root element for a specified series.
@@ -21,6 +26,9 @@ export interface PieArcLabelClasses {
21
26
  */
22
27
  series: string;
23
28
  }
29
+ /**
30
+ * @deprecated Use `PieClassKey` from `./pieClasses` instead.
31
+ */
24
32
  export type PieArcLabelClassKey = keyof PieArcLabelClasses;
25
33
  interface PieArcLabelOwnerState {
26
34
  seriesId: SeriesId;
@@ -30,7 +38,13 @@ interface PieArcLabelOwnerState {
30
38
  skipAnimation: boolean;
31
39
  classes?: Partial<PieArcLabelClasses>;
32
40
  }
41
+ /**
42
+ * @deprecated Use `getPieUtilityClass` from `./pieClasses` instead.
43
+ */
33
44
  export declare function getPieArcLabelUtilityClass(slot: string): string;
45
+ /**
46
+ * @deprecated Use `pieClasses` from `./pieClasses` instead.
47
+ */
34
48
  export declare const pieArcLabelClasses: PieArcLabelClasses;
35
49
  export type PieArcLabelProps = PieArcLabelOwnerState & Omit<React.SVGProps<SVGTextElement>, 'ref' | 'color'> & {
36
50
  startAngle: number;
@@ -44,7 +58,7 @@ export type PieArcLabelProps = PieArcLabelOwnerState & Omit<React.SVGProps<SVGTe
44
58
  formattedArcLabel?: string | null;
45
59
  hidden?: boolean;
46
60
  };
47
- declare const PieArcLabel: React.ForwardRefExoticComponent<PieArcLabelOwnerState & Omit<React.SVGProps<SVGTextElement>, "ref" | "color"> & {
61
+ declare const PieArcLabel: React.ForwardRefExoticComponent<PieArcLabelOwnerState & Omit<React.SVGProps<SVGTextElement>, "color" | "ref"> & {
48
62
  startAngle: number;
49
63
  endAngle: number;
50
64
  innerRadius: number;