@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
@@ -13,18 +13,37 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
13
13
  var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
14
14
  var React = _interopRequireWildcard(require("react"));
15
15
  var _propTypes = _interopRequireDefault(require("prop-types"));
16
+ var _clsx = _interopRequireDefault(require("clsx"));
16
17
  var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
17
18
  var _generateUtilityClass = _interopRequireDefault(require("@mui/utils/generateUtilityClass"));
18
19
  var _styles = require("@mui/material/styles");
19
20
  var _generateUtilityClasses = _interopRequireDefault(require("@mui/utils/generateUtilityClasses"));
20
21
  var _animation = require("../internals/animation/animation");
21
22
  var _useAnimatePieArcLabel = require("../hooks/animation/useAnimatePieArcLabel");
23
+ var _pieClasses = require("./pieClasses");
22
24
  var _jsxRuntime = require("react/jsx-runtime");
23
- const _excluded = ["seriesId", "classes", "color", "startAngle", "endAngle", "paddingAngle", "arcLabelRadius", "innerRadius", "outerRadius", "cornerRadius", "formattedArcLabel", "isHighlighted", "isFaded", "skipAnimation", "hidden"];
25
+ const _excluded = ["seriesId", "classes", "color", "startAngle", "endAngle", "paddingAngle", "arcLabelRadius", "innerRadius", "outerRadius", "cornerRadius", "formattedArcLabel", "isHighlighted", "isFaded", "skipAnimation", "hidden", "className"];
26
+ /**
27
+ * @deprecated Use `PieClasses` from `./pieClasses` instead.
28
+ */
29
+ /**
30
+ * @deprecated Use `PieClassKey` from `./pieClasses` instead.
31
+ */
32
+ /**
33
+ * @deprecated Use `getPieUtilityClass` from `./pieClasses` instead.
34
+ */
24
35
  function getPieArcLabelUtilityClass(slot) {
25
36
  return (0, _generateUtilityClass.default)('MuiPieArcLabel', slot);
26
37
  }
38
+
39
+ /**
40
+ * @deprecated Use `pieClasses` from `./pieClasses` instead.
41
+ */
27
42
  const pieArcLabelClasses = exports.pieArcLabelClasses = (0, _generateUtilityClasses.default)('MuiPieArcLabel', ['root', 'highlighted', 'faded', 'animate', 'series']);
43
+
44
+ /**
45
+ * @deprecated Use `useUtilityClasses` from `./pieClasses` instead.
46
+ */
28
47
  const useUtilityClasses = ownerState => {
29
48
  const {
30
49
  classes,
@@ -54,7 +73,7 @@ const PieArcLabelRoot = (0, _styles.styled)('text', {
54
73
  transitionDuration: `${_animation.ANIMATION_DURATION_MS}ms`,
55
74
  transitionProperty: 'opacity',
56
75
  transitionTimingFunction: _animation.ANIMATION_TIMING_FUNCTION,
57
- [`&.${pieArcLabelClasses.animate}`]: {
76
+ [`&.${_pieClasses.pieClasses.animate}`]: {
58
77
  animationDuration: `${_animation.ANIMATION_DURATION_MS}ms`
59
78
  },
60
79
  '@keyframes animate-opacity': {
@@ -77,7 +96,8 @@ const PieArcLabel = exports.PieArcLabel = /*#__PURE__*/React.forwardRef(function
77
96
  isHighlighted,
78
97
  isFaded,
79
98
  skipAnimation,
80
- hidden
99
+ hidden,
100
+ className
81
101
  } = props,
82
102
  other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
83
103
  const ownerState = {
@@ -88,7 +108,8 @@ const PieArcLabel = exports.PieArcLabel = /*#__PURE__*/React.forwardRef(function
88
108
  isHighlighted,
89
109
  skipAnimation
90
110
  };
91
- const classes = useUtilityClasses(ownerState);
111
+ const classes = (0, _pieClasses.useUtilityClasses)(ownerState);
112
+ const deprecatedClasses = useUtilityClasses(ownerState);
92
113
  const animatedProps = (0, _useAnimatePieArcLabel.useAnimatePieArcLabel)({
93
114
  cornerRadius,
94
115
  startAngle,
@@ -100,7 +121,7 @@ const PieArcLabel = exports.PieArcLabel = /*#__PURE__*/React.forwardRef(function
100
121
  ref
101
122
  });
102
123
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(PieArcLabelRoot, (0, _extends2.default)({
103
- className: classes.root,
124
+ className: (0, _clsx.default)(classes.arcLabel, deprecatedClasses.root, className),
104
125
  "data-highlighted": isHighlighted || undefined,
105
126
  "data-faded": isFaded || undefined
106
127
  }, other, animatedProps, {
@@ -2,20 +2,41 @@
2
2
 
3
3
  import _extends from "@babel/runtime/helpers/esm/extends";
4
4
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
5
- const _excluded = ["seriesId", "classes", "color", "startAngle", "endAngle", "paddingAngle", "arcLabelRadius", "innerRadius", "outerRadius", "cornerRadius", "formattedArcLabel", "isHighlighted", "isFaded", "skipAnimation", "hidden"];
5
+ const _excluded = ["seriesId", "classes", "color", "startAngle", "endAngle", "paddingAngle", "arcLabelRadius", "innerRadius", "outerRadius", "cornerRadius", "formattedArcLabel", "isHighlighted", "isFaded", "skipAnimation", "hidden", "className"];
6
6
  import * as React from 'react';
7
7
  import PropTypes from 'prop-types';
8
+ import clsx from 'clsx';
8
9
  import composeClasses from '@mui/utils/composeClasses';
9
10
  import generateUtilityClass from '@mui/utils/generateUtilityClass';
10
11
  import { styled } from '@mui/material/styles';
11
12
  import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
12
13
  import { ANIMATION_DURATION_MS, ANIMATION_TIMING_FUNCTION } from "../internals/animation/animation.mjs";
13
14
  import { useAnimatePieArcLabel } from "../hooks/animation/useAnimatePieArcLabel.mjs";
15
+ import { pieClasses, useUtilityClasses as usePieUtilityClasses } from "./pieClasses.mjs";
16
+
17
+ /**
18
+ * @deprecated Use `PieClasses` from `./pieClasses` instead.
19
+ */
20
+
21
+ /**
22
+ * @deprecated Use `PieClassKey` from `./pieClasses` instead.
23
+ */
14
24
  import { jsx as _jsx } from "react/jsx-runtime";
25
+ /**
26
+ * @deprecated Use `getPieUtilityClass` from `./pieClasses` instead.
27
+ */
15
28
  export function getPieArcLabelUtilityClass(slot) {
16
29
  return generateUtilityClass('MuiPieArcLabel', slot);
17
30
  }
31
+
32
+ /**
33
+ * @deprecated Use `pieClasses` from `./pieClasses` instead.
34
+ */
18
35
  export const pieArcLabelClasses = generateUtilityClasses('MuiPieArcLabel', ['root', 'highlighted', 'faded', 'animate', 'series']);
36
+
37
+ /**
38
+ * @deprecated Use `useUtilityClasses` from `./pieClasses` instead.
39
+ */
19
40
  const useUtilityClasses = ownerState => {
20
41
  const {
21
42
  classes,
@@ -45,7 +66,7 @@ const PieArcLabelRoot = styled('text', {
45
66
  transitionDuration: `${ANIMATION_DURATION_MS}ms`,
46
67
  transitionProperty: 'opacity',
47
68
  transitionTimingFunction: ANIMATION_TIMING_FUNCTION,
48
- [`&.${pieArcLabelClasses.animate}`]: {
69
+ [`&.${pieClasses.animate}`]: {
49
70
  animationDuration: `${ANIMATION_DURATION_MS}ms`
50
71
  },
51
72
  '@keyframes animate-opacity': {
@@ -68,7 +89,8 @@ const PieArcLabel = /*#__PURE__*/React.forwardRef(function PieArcLabel(props, re
68
89
  isHighlighted,
69
90
  isFaded,
70
91
  skipAnimation,
71
- hidden
92
+ hidden,
93
+ className
72
94
  } = props,
73
95
  other = _objectWithoutPropertiesLoose(props, _excluded);
74
96
  const ownerState = {
@@ -79,7 +101,8 @@ const PieArcLabel = /*#__PURE__*/React.forwardRef(function PieArcLabel(props, re
79
101
  isHighlighted,
80
102
  skipAnimation
81
103
  };
82
- const classes = useUtilityClasses(ownerState);
104
+ const classes = usePieUtilityClasses(ownerState);
105
+ const deprecatedClasses = useUtilityClasses(ownerState);
83
106
  const animatedProps = useAnimatePieArcLabel({
84
107
  cornerRadius,
85
108
  startAngle,
@@ -91,7 +114,7 @@ const PieArcLabel = /*#__PURE__*/React.forwardRef(function PieArcLabel(props, re
91
114
  ref
92
115
  });
93
116
  return /*#__PURE__*/_jsx(PieArcLabelRoot, _extends({
94
- className: classes.root,
117
+ className: clsx(classes.arcLabel, deprecatedClasses.root, className),
95
118
  "data-highlighted": isHighlighted || undefined,
96
119
  "data-faded": isFaded || undefined
97
120
  }, other, animatedProps, {
@@ -11,6 +11,7 @@ var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runt
11
11
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
12
12
  var React = _interopRequireWildcard(require("react"));
13
13
  var _propTypes = _interopRequireDefault(require("prop-types"));
14
+ var _styles = require("@mui/material/styles");
14
15
  var _useTransformData = require("./dataTransform/useTransformData");
15
16
  var _PieArcLabel = require("./PieArcLabel");
16
17
  var _getLabel = require("../internals/getLabel");
@@ -38,6 +39,10 @@ function getItemLabel(arcLabel, arcLabelMinAngle, item) {
38
39
  }));
39
40
  }
40
41
  }
42
+ const PieArcLabelPlotRoot = (0, _styles.styled)('g', {
43
+ name: 'MuiPieArcLabelPlot',
44
+ slot: 'Root'
45
+ })();
41
46
  function PieArcLabelPlot(props) {
42
47
  const {
43
48
  arcLabel,
@@ -73,7 +78,7 @@ function PieArcLabelPlot(props) {
73
78
  return null;
74
79
  }
75
80
  const ArcLabel = slots?.pieArcLabel ?? _PieArcLabel.PieArcLabel;
76
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("g", (0, _extends2.default)({}, other, {
81
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(PieArcLabelPlotRoot, (0, _extends2.default)({}, other, {
77
82
  children: transformedData.map(item => /*#__PURE__*/(0, _jsxRuntime.jsx)(ArcLabel, (0, _extends2.default)({
78
83
  startAngle: item.startAngle,
79
84
  endAngle: item.endAngle,
@@ -5,6 +5,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
5
5
  const _excluded = ["arcLabel", "arcLabelMinAngle", "arcLabelRadius", "cornerRadius", "data", "faded", "highlighted", "seriesId", "innerRadius", "outerRadius", "paddingAngle", "skipAnimation", "slotProps", "slots"];
6
6
  import * as React from 'react';
7
7
  import PropTypes from 'prop-types';
8
+ import { styled } from '@mui/material/styles';
8
9
  import { useTransformData } from "./dataTransform/useTransformData.mjs";
9
10
  import { PieArcLabel } from "./PieArcLabel.mjs";
10
11
  import { getLabel } from "../internals/getLabel.mjs";
@@ -31,6 +32,10 @@ function getItemLabel(arcLabel, arcLabelMinAngle, item) {
31
32
  }));
32
33
  }
33
34
  }
35
+ const PieArcLabelPlotRoot = styled('g', {
36
+ name: 'MuiPieArcLabelPlot',
37
+ slot: 'Root'
38
+ })();
34
39
  function PieArcLabelPlot(props) {
35
40
  const {
36
41
  arcLabel,
@@ -66,7 +71,7 @@ function PieArcLabelPlot(props) {
66
71
  return null;
67
72
  }
68
73
  const ArcLabel = slots?.pieArcLabel ?? PieArcLabel;
69
- return /*#__PURE__*/_jsx("g", _extends({}, other, {
74
+ return /*#__PURE__*/_jsx(PieArcLabelPlotRoot, _extends({}, other, {
70
75
  children: transformedData.map(item => /*#__PURE__*/_jsx(ArcLabel, _extends({
71
76
  startAngle: item.startAngle,
72
77
  endAngle: item.endAngle,
@@ -11,10 +11,15 @@ 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 _styles = require("@mui/material/styles");
14
15
  var _PieArc = require("./PieArc");
15
16
  var _useTransformData = require("./dataTransform/useTransformData");
16
17
  var _jsxRuntime = require("react/jsx-runtime");
17
18
  const _excluded = ["slots", "slotProps", "innerRadius", "outerRadius", "cornerRadius", "paddingAngle", "seriesId", "highlighted", "faded", "data", "onItemClick", "skipAnimation"];
19
+ const PieArcPlotRoot = (0, _styles.styled)('g', {
20
+ name: 'MuiPieArcPlot',
21
+ slot: 'Root'
22
+ })();
18
23
  function PieArcPlot(props) {
19
24
  const {
20
25
  slots,
@@ -47,7 +52,7 @@ function PieArcPlot(props) {
47
52
  return null;
48
53
  }
49
54
  const Arc = slots?.pieArc ?? _PieArc.PieArc;
50
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("g", (0, _extends2.default)({}, other, {
55
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(PieArcPlotRoot, (0, _extends2.default)({}, other, {
51
56
  children: transformedData.map((item, index) => /*#__PURE__*/(0, _jsxRuntime.jsx)(Arc, (0, _extends2.default)({
52
57
  startAngle: item.startAngle,
53
58
  endAngle: item.endAngle,
@@ -5,9 +5,14 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
5
5
  const _excluded = ["slots", "slotProps", "innerRadius", "outerRadius", "cornerRadius", "paddingAngle", "seriesId", "highlighted", "faded", "data", "onItemClick", "skipAnimation"];
6
6
  import * as React from 'react';
7
7
  import PropTypes from 'prop-types';
8
+ import { styled } from '@mui/material/styles';
8
9
  import { PieArc } from "./PieArc.mjs";
9
10
  import { useTransformData } from "./dataTransform/useTransformData.mjs";
10
11
  import { jsx as _jsx } from "react/jsx-runtime";
12
+ const PieArcPlotRoot = styled('g', {
13
+ name: 'MuiPieArcPlot',
14
+ slot: 'Root'
15
+ })();
11
16
  function PieArcPlot(props) {
12
17
  const {
13
18
  slots,
@@ -40,7 +45,7 @@ function PieArcPlot(props) {
40
45
  return null;
41
46
  }
42
47
  const Arc = slots?.pieArc ?? PieArc;
43
- return /*#__PURE__*/_jsx("g", _extends({}, other, {
48
+ return /*#__PURE__*/_jsx(PieArcPlotRoot, _extends({}, other, {
44
49
  children: transformedData.map((item, index) => /*#__PURE__*/_jsx(Arc, _extends({
45
50
  startAngle: item.startAngle,
46
51
  endAngle: item.endAngle,
@@ -129,7 +129,10 @@ process.env.NODE_ENV !== "production" ? PieChart.propTypes = {
129
129
  */
130
130
  dataset: _propTypes.default.arrayOf(_propTypes.default.object),
131
131
  desc: _propTypes.default.string,
132
- enableKeyboardNavigation: _propTypes.default.bool,
132
+ /**
133
+ * If `true`, disables keyboard navigation for the chart.
134
+ */
135
+ disableKeyboardNavigation: _propTypes.default.bool,
133
136
  /**
134
137
  * The height of the chart in px. If not defined, it takes the height of the parent element.
135
138
  */
@@ -253,7 +256,7 @@ process.env.NODE_ENV !== "production" ? PieChart.propTypes = {
253
256
  /**
254
257
  * The callback fired when the tooltip item changes.
255
258
  *
256
- * @param {SeriesItemIdentifier<TSeries> | null} tooltipItem The newly highlighted item.
259
+ * @param {SeriesItemIdentifier<SeriesType> | null} tooltipItem The newly highlighted item.
257
260
  */
258
261
  onTooltipItemChange: _propTypes.default.func,
259
262
  /**
@@ -122,7 +122,10 @@ process.env.NODE_ENV !== "production" ? PieChart.propTypes = {
122
122
  */
123
123
  dataset: PropTypes.arrayOf(PropTypes.object),
124
124
  desc: PropTypes.string,
125
- enableKeyboardNavigation: PropTypes.bool,
125
+ /**
126
+ * If `true`, disables keyboard navigation for the chart.
127
+ */
128
+ disableKeyboardNavigation: PropTypes.bool,
126
129
  /**
127
130
  * The height of the chart in px. If not defined, it takes the height of the parent element.
128
131
  */
@@ -246,7 +249,7 @@ process.env.NODE_ENV !== "production" ? PieChart.propTypes = {
246
249
  /**
247
250
  * The callback fired when the tooltip item changes.
248
251
  *
249
- * @param {SeriesItemIdentifier<TSeries> | null} tooltipItem The newly highlighted item.
252
+ * @param {SeriesItemIdentifier<SeriesType> | null} tooltipItem The newly highlighted item.
250
253
  */
251
254
  onTooltipItemChange: PropTypes.func,
252
255
  /**
@@ -3,6 +3,7 @@ import { type PieArcLabelPlotSlots, type PieArcLabelPlotSlotProps } from "./PieA
3
3
  export interface PiePlotSlots extends PieArcPlotSlots, PieArcLabelPlotSlots {}
4
4
  export interface PiePlotSlotProps extends PieArcPlotSlotProps, PieArcLabelPlotSlotProps {}
5
5
  export interface PiePlotProps extends Pick<PieArcPlotProps, 'skipAnimation' | 'onItemClick'> {
6
+ className?: string;
6
7
  /**
7
8
  * Overridable component slots.
8
9
  * @default {}
@@ -3,6 +3,7 @@ import { type PieArcLabelPlotSlots, type PieArcLabelPlotSlotProps } from "./PieA
3
3
  export interface PiePlotSlots extends PieArcPlotSlots, PieArcLabelPlotSlots {}
4
4
  export interface PiePlotSlotProps extends PieArcPlotSlotProps, PieArcLabelPlotSlotProps {}
5
5
  export interface PiePlotProps extends Pick<PieArcPlotProps, 'skipAnimation' | 'onItemClick'> {
6
+ className?: string;
6
7
  /**
7
8
  * Overridable component slots.
8
9
  * @default {}
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
8
  exports.PiePlot = PiePlot;
9
+ var _clsx = _interopRequireDefault(require("clsx"));
9
10
  var _propTypes = _interopRequireDefault(require("prop-types"));
10
11
  var _PieArcPlot = require("./PieArcPlot");
11
12
  var _PieArcLabelPlot = require("./PieArcLabelPlot");
@@ -28,7 +29,8 @@ function PiePlot(props) {
28
29
  skipAnimation: inSkipAnimation,
29
30
  slots,
30
31
  slotProps,
31
- onItemClick
32
+ onItemClick,
33
+ className
32
34
  } = props;
33
35
  const seriesData = (0, _usePieSeries.usePieSeriesContext)();
34
36
  const seriesLayout = (0, _usePieSeries.usePieSeriesLayout)();
@@ -42,6 +44,7 @@ function PiePlot(props) {
42
44
  seriesOrder
43
45
  } = seriesData;
44
46
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("g", {
47
+ className: (0, _clsx.default)(classes.root, className),
45
48
  children: [seriesOrder.map(seriesId => {
46
49
  const {
47
50
  cornerRadius,
@@ -1,5 +1,6 @@
1
1
  'use client';
2
2
 
3
+ import clsx from 'clsx';
3
4
  import PropTypes from 'prop-types';
4
5
  import { PieArcPlot } from "./PieArcPlot.mjs";
5
6
  import { PieArcLabelPlot } from "./PieArcLabelPlot.mjs";
@@ -22,7 +23,8 @@ function PiePlot(props) {
22
23
  skipAnimation: inSkipAnimation,
23
24
  slots,
24
25
  slotProps,
25
- onItemClick
26
+ onItemClick,
27
+ className
26
28
  } = props;
27
29
  const seriesData = usePieSeriesContext();
28
30
  const seriesLayout = usePieSeriesLayout();
@@ -36,6 +38,7 @@ function PiePlot(props) {
36
38
  seriesOrder
37
39
  } = seriesData;
38
40
  return /*#__PURE__*/_jsxs("g", {
41
+ className: clsx(classes.root, className),
39
42
  children: [seriesOrder.map(seriesId => {
40
43
  const {
41
44
  cornerRadius,
@@ -9,7 +9,7 @@ Object.defineProperty(exports, "__esModule", {
9
9
  exports.useTransformData = useTransformData;
10
10
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
11
  var React = _interopRequireWildcard(require("react"));
12
- var _useItemHighlightedGetter = require("../../hooks/useItemHighlightedGetter");
12
+ var _useItemHighlightStateGetter = require("../../hooks/useItemHighlightStateGetter");
13
13
  var _useIsItemFocusedGetter = require("../../hooks/useIsItemFocusedGetter");
14
14
  var _getModifiedArcProperties = require("./getModifiedArcProperties");
15
15
  function useTransformData(series) {
@@ -19,10 +19,7 @@ function useTransformData(series) {
19
19
  faded,
20
20
  highlighted
21
21
  } = series;
22
- const {
23
- isFaded: isItemFaded,
24
- isHighlighted: isItemHighlighted
25
- } = (0, _useItemHighlightedGetter.useItemHighlightedGetter)();
22
+ const getHighlightState = (0, _useItemHighlightStateGetter.useItemHighlightStateGetter)();
26
23
  const isItemFocused = (0, _useIsItemFocusedGetter.useIsItemFocusedGetter)();
27
24
  const dataWithHighlight = React.useMemo(() => data.map((item, itemIndex) => {
28
25
  const identifier = {
@@ -30,8 +27,9 @@ function useTransformData(series) {
30
27
  seriesId,
31
28
  dataIndex: itemIndex
32
29
  };
33
- const isHighlighted = isItemHighlighted(identifier);
34
- const isFaded = !isHighlighted && isItemFaded(identifier);
30
+ const highlightState = getHighlightState(identifier);
31
+ const isHighlighted = highlightState === 'highlighted';
32
+ const isFaded = highlightState === 'faded';
35
33
  const isFocused = isItemFocused(identifier);
36
34
 
37
35
  // TODO v9: Replace the second argument with the result of useSeriesLayout
@@ -52,6 +50,6 @@ function useTransformData(series) {
52
50
  isHighlighted,
53
51
  isFocused
54
52
  }, arcSizes);
55
- }), [data, seriesId, isItemHighlighted, isItemFaded, isItemFocused, series, faded, highlighted]);
53
+ }), [data, seriesId, getHighlightState, isItemFocused, series, faded, highlighted]);
56
54
  return dataWithHighlight;
57
55
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  import _extends from "@babel/runtime/helpers/esm/extends";
4
4
  import * as React from 'react';
5
- import { useItemHighlightedGetter } from "../../hooks/useItemHighlightedGetter.mjs";
5
+ import { useItemHighlightStateGetter } from "../../hooks/useItemHighlightStateGetter.mjs";
6
6
  import { useIsItemFocusedGetter } from "../../hooks/useIsItemFocusedGetter.mjs";
7
7
  import { getModifiedArcProperties } from "./getModifiedArcProperties.mjs";
8
8
  export function useTransformData(series) {
@@ -12,10 +12,7 @@ export function useTransformData(series) {
12
12
  faded,
13
13
  highlighted
14
14
  } = series;
15
- const {
16
- isFaded: isItemFaded,
17
- isHighlighted: isItemHighlighted
18
- } = useItemHighlightedGetter();
15
+ const getHighlightState = useItemHighlightStateGetter();
19
16
  const isItemFocused = useIsItemFocusedGetter();
20
17
  const dataWithHighlight = React.useMemo(() => data.map((item, itemIndex) => {
21
18
  const identifier = {
@@ -23,8 +20,9 @@ export function useTransformData(series) {
23
20
  seriesId,
24
21
  dataIndex: itemIndex
25
22
  };
26
- const isHighlighted = isItemHighlighted(identifier);
27
- const isFaded = !isHighlighted && isItemFaded(identifier);
23
+ const highlightState = getHighlightState(identifier);
24
+ const isHighlighted = highlightState === 'highlighted';
25
+ const isFaded = highlightState === 'faded';
28
26
  const isFocused = isItemFocused(identifier);
29
27
 
30
28
  // TODO v9: Replace the second argument with the result of useSeriesLayout
@@ -45,6 +43,6 @@ export function useTransformData(series) {
45
43
  isHighlighted,
46
44
  isFocused
47
45
  }, arcSizes);
48
- }), [data, seriesId, isItemHighlighted, isItemFaded, isItemFocused, series, faded, highlighted]);
46
+ }), [data, seriesId, getHighlightState, isItemFocused, series, faded, highlighted]);
49
47
  return dataWithHighlight;
50
48
  }
@@ -1,3 +1,4 @@
1
+ import { type SeriesId } from "../models/seriesType/common.mjs";
1
2
  export interface PieClasses {
2
3
  /** Styles applied to the root element. */
3
4
  root: string;
@@ -5,8 +6,28 @@ export interface PieClasses {
5
6
  series: string;
6
7
  /** Styles applied to the `g` element that contains all pie arc labels of a series. */
7
8
  seriesLabels: string;
9
+ /** Styles applied to an individual pie arc element. */
10
+ arc: string;
11
+ /** Styles applied to an individual pie arc label element. */
12
+ arcLabel: string;
13
+ /** Styles applied when animation is not skipped. */
14
+ animate: string;
15
+ /** Styles applied to the focused pie arc element. */
16
+ focusIndicator: string;
8
17
  }
9
18
  export type PieClassKey = keyof PieClasses;
19
+ export interface PieArcOwnerState {
20
+ seriesId: SeriesId;
21
+ dataIndex: number;
22
+ color: string;
23
+ isFaded: boolean;
24
+ isHighlighted: boolean;
25
+ isFocused: boolean;
26
+ classes?: Partial<PieClasses>;
27
+ }
10
28
  export declare function getPieUtilityClass(slot: string): string;
11
29
  export declare const pieClasses: PieClasses;
12
- export declare const useUtilityClasses: (classes?: Partial<PieClasses>) => Record<"root" | "series" | "seriesLabels", string>;
30
+ export declare const useUtilityClasses: (options?: {
31
+ classes?: Partial<PieClasses>;
32
+ skipAnimation?: boolean;
33
+ }) => Record<"root" | "series" | "seriesLabels" | "arcLabel" | "arc" | "focusIndicator", string>;
@@ -1,3 +1,4 @@
1
+ import { type SeriesId } from "../models/seriesType/common.js";
1
2
  export interface PieClasses {
2
3
  /** Styles applied to the root element. */
3
4
  root: string;
@@ -5,8 +6,28 @@ export interface PieClasses {
5
6
  series: string;
6
7
  /** Styles applied to the `g` element that contains all pie arc labels of a series. */
7
8
  seriesLabels: string;
9
+ /** Styles applied to an individual pie arc element. */
10
+ arc: string;
11
+ /** Styles applied to an individual pie arc label element. */
12
+ arcLabel: string;
13
+ /** Styles applied when animation is not skipped. */
14
+ animate: string;
15
+ /** Styles applied to the focused pie arc element. */
16
+ focusIndicator: string;
8
17
  }
9
18
  export type PieClassKey = keyof PieClasses;
19
+ export interface PieArcOwnerState {
20
+ seriesId: SeriesId;
21
+ dataIndex: number;
22
+ color: string;
23
+ isFaded: boolean;
24
+ isHighlighted: boolean;
25
+ isFocused: boolean;
26
+ classes?: Partial<PieClasses>;
27
+ }
10
28
  export declare function getPieUtilityClass(slot: string): string;
11
29
  export declare const pieClasses: PieClasses;
12
- export declare const useUtilityClasses: (classes?: Partial<PieClasses>) => Record<"root" | "series" | "seriesLabels", string>;
30
+ export declare const useUtilityClasses: (options?: {
31
+ classes?: Partial<PieClasses>;
32
+ skipAnimation?: boolean;
33
+ }) => Record<"root" | "series" | "seriesLabels" | "arcLabel" | "arc" | "focusIndicator", string>;
@@ -12,12 +12,19 @@ var _generateUtilityClasses = _interopRequireDefault(require("@mui/utils/generat
12
12
  function getPieUtilityClass(slot) {
13
13
  return (0, _generateUtilityClass.default)('MuiPieChart', slot);
14
14
  }
15
- const pieClasses = exports.pieClasses = (0, _generateUtilityClasses.default)('MuiPieChart', ['root', 'series', 'seriesLabels']);
16
- const useUtilityClasses = classes => {
15
+ const pieClasses = exports.pieClasses = (0, _generateUtilityClasses.default)('MuiPieChart', ['root', 'series', 'seriesLabels', 'arc', 'arcLabel', 'animate', 'focusIndicator']);
16
+ const useUtilityClasses = options => {
17
+ const {
18
+ classes,
19
+ skipAnimation
20
+ } = options ?? {};
17
21
  const slots = {
18
22
  root: ['root'],
19
23
  series: ['series'],
20
- seriesLabels: ['seriesLabels']
24
+ seriesLabels: ['seriesLabels'],
25
+ arc: ['arc'],
26
+ arcLabel: ['arcLabel', !skipAnimation && 'animate'],
27
+ focusIndicator: ['focusIndicator']
21
28
  };
22
29
  return (0, _composeClasses.default)(slots, getPieUtilityClass, classes);
23
30
  };
@@ -4,12 +4,19 @@ import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
4
4
  export function getPieUtilityClass(slot) {
5
5
  return generateUtilityClass('MuiPieChart', slot);
6
6
  }
7
- export const pieClasses = generateUtilityClasses('MuiPieChart', ['root', 'series', 'seriesLabels']);
8
- export const useUtilityClasses = classes => {
7
+ export const pieClasses = generateUtilityClasses('MuiPieChart', ['root', 'series', 'seriesLabels', 'arc', 'arcLabel', 'animate', 'focusIndicator']);
8
+ export const useUtilityClasses = options => {
9
+ const {
10
+ classes,
11
+ skipAnimation
12
+ } = options ?? {};
9
13
  const slots = {
10
14
  root: ['root'],
11
15
  series: ['series'],
12
- seriesLabels: ['seriesLabels']
16
+ seriesLabels: ['seriesLabels'],
17
+ arc: ['arc'],
18
+ arcLabel: ['arcLabel', !skipAnimation && 'animate'],
19
+ focusIndicator: ['focusIndicator']
13
20
  };
14
21
  return composeClasses(slots, getPieUtilityClass, classes);
15
22
  };
@@ -83,12 +83,15 @@ process.env.NODE_ENV !== "production" ? RadarChart.propTypes = {
83
83
  * @default false
84
84
  */
85
85
  disableAxisListener: _propTypes.default.bool,
86
+ /**
87
+ * If `true`, disables keyboard navigation for the chart.
88
+ */
89
+ disableKeyboardNavigation: _propTypes.default.bool,
86
90
  /**
87
91
  * The number of divisions in the radar grid.
88
92
  * @default 5
89
93
  */
90
94
  divisions: _propTypes.default.number,
91
- enableKeyboardNavigation: _propTypes.default.bool,
92
95
  /**
93
96
  * The height of the chart in px. If not defined, it takes the height of the parent element.
94
97
  */
@@ -232,7 +235,7 @@ process.env.NODE_ENV !== "production" ? RadarChart.propTypes = {
232
235
  /**
233
236
  * The callback fired when the tooltip item changes.
234
237
  *
235
- * @param {SeriesItemIdentifier<TSeries> | null} tooltipItem The newly highlighted item.
238
+ * @param {SeriesItemIdentifier<SeriesType> | null} tooltipItem The newly highlighted item.
236
239
  */
237
240
  onTooltipItemChange: _propTypes.default.func,
238
241
  /**
@@ -76,12 +76,15 @@ process.env.NODE_ENV !== "production" ? RadarChart.propTypes = {
76
76
  * @default false
77
77
  */
78
78
  disableAxisListener: PropTypes.bool,
79
+ /**
80
+ * If `true`, disables keyboard navigation for the chart.
81
+ */
82
+ disableKeyboardNavigation: PropTypes.bool,
79
83
  /**
80
84
  * The number of divisions in the radar grid.
81
85
  * @default 5
82
86
  */
83
87
  divisions: PropTypes.number,
84
- enableKeyboardNavigation: PropTypes.bool,
85
88
  /**
86
89
  * The height of the chart in px. If not defined, it takes the height of the parent element.
87
90
  */
@@ -225,7 +228,7 @@ process.env.NODE_ENV !== "production" ? RadarChart.propTypes = {
225
228
  /**
226
229
  * The callback fired when the tooltip item changes.
227
230
  *
228
- * @param {SeriesItemIdentifier<TSeries> | null} tooltipItem The newly highlighted item.
231
+ * @param {SeriesItemIdentifier<SeriesType> | null} tooltipItem The newly highlighted item.
229
232
  */
230
233
  onTooltipItemChange: PropTypes.func,
231
234
  /**
@@ -1,11 +1,11 @@
1
1
  import { type RadarSeriesAreaProps } from "./RadarSeriesPlot.types.mjs";
2
2
  import { type RadarSeriesPlotClasses } from "./radarSeriesPlotClasses.mjs";
3
- import type { HighlightItemIdentifierWithType, SeriesId } from "../../models/seriesType/index.mjs";
3
+ import type { SeriesId, HighlightItemIdentifierWithType } from "../../models/seriesType/index.mjs";
4
+ import type { HighlightState } from "../../hooks/useItemHighlightState.mjs";
4
5
  interface GetPathPropsParams {
5
6
  seriesId: SeriesId;
6
7
  classes: RadarSeriesPlotClasses;
7
- isFaded: (item: HighlightItemIdentifierWithType<'radar'> | null) => boolean;
8
- isHighlighted: (item: HighlightItemIdentifierWithType<'radar'> | null) => boolean;
8
+ getHighlightState: (item: HighlightItemIdentifierWithType<'radar'> | null) => HighlightState;
9
9
  points: {
10
10
  x: number;
11
11
  y: number;