@mui/x-charts 9.7.0 → 9.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (334) hide show
  1. package/BarChart/AnimatedBarElement.d.mts +1 -1
  2. package/BarChart/AnimatedBarElement.d.ts +1 -1
  3. package/BarChart/BarClipPath.d.mts +1 -1
  4. package/BarChart/BarClipPath.d.ts +1 -1
  5. package/BarChart/BarElement.d.mts +1 -1
  6. package/BarChart/BarElement.d.ts +1 -1
  7. package/BarChart/BarLabel/BarLabelItem.d.mts +1 -1
  8. package/BarChart/BarLabel/BarLabelItem.d.ts +1 -1
  9. package/BarChart/BarLabel/BarLabelPlot.d.mts +2 -1
  10. package/BarChart/BarLabel/BarLabelPlot.d.ts +2 -1
  11. package/BarChart/BatchBarPlot/BarGroup.d.mts +1 -1
  12. package/BarChart/BatchBarPlot/BarGroup.d.ts +1 -1
  13. package/BarChart/BatchBarPlot/BatchBarPlot.d.mts +2 -1
  14. package/BarChart/BatchBarPlot/BatchBarPlot.d.ts +2 -1
  15. package/BarChart/FocusedBar.d.mts +1 -1
  16. package/BarChart/FocusedBar.d.ts +1 -1
  17. package/BarChart/IndividualBarPlot.d.mts +2 -1
  18. package/BarChart/IndividualBarPlot.d.ts +2 -1
  19. package/BarChart/seriesConfig/bar/tooltipPosition.d.mts +2 -3
  20. package/BarChart/seriesConfig/bar/tooltipPosition.d.ts +2 -3
  21. package/BarChart/seriesConfig/bar/tooltipPosition.js +19 -15
  22. package/BarChart/seriesConfig/bar/tooltipPosition.mjs +18 -14
  23. package/BarChart/seriesConfig/index.js +2 -2
  24. package/BarChart/seriesConfig/index.mjs +2 -2
  25. package/BarChart/useBarPlotData.d.mts +5 -1
  26. package/BarChart/useBarPlotData.d.ts +5 -1
  27. package/BarChart/useBarPlotData.js +102 -25
  28. package/BarChart/useBarPlotData.mjs +102 -26
  29. package/CHANGELOG.md +249 -1
  30. package/ChartsAxis/ChartsAxis.d.mts +2 -1
  31. package/ChartsAxis/ChartsAxis.d.ts +2 -1
  32. package/ChartsAxisHighlight/ChartsAxisHighlight.d.mts +2 -1
  33. package/ChartsAxisHighlight/ChartsAxisHighlight.d.ts +2 -1
  34. package/ChartsAxisHighlight/ChartsXAxisHighlight.d.mts +2 -1
  35. package/ChartsAxisHighlight/ChartsXAxisHighlight.d.ts +2 -1
  36. package/ChartsAxisHighlight/ChartsXAxisHighlight.js +22 -5
  37. package/ChartsAxisHighlight/ChartsXAxisHighlight.mjs +23 -6
  38. package/ChartsAxisHighlight/ChartsYAxisHighlight.d.mts +2 -1
  39. package/ChartsAxisHighlight/ChartsYAxisHighlight.d.ts +2 -1
  40. package/ChartsAxisHighlight/ChartsYAxisHighlight.js +22 -5
  41. package/ChartsAxisHighlight/ChartsYAxisHighlight.mjs +23 -6
  42. package/ChartsAxisHighlight/getSampledBandHighlight.d.mts +27 -0
  43. package/ChartsAxisHighlight/getSampledBandHighlight.d.ts +27 -0
  44. package/ChartsAxisHighlight/getSampledBandHighlight.js +35 -0
  45. package/ChartsAxisHighlight/getSampledBandHighlight.mjs +29 -0
  46. package/ChartsAxisHighlightValue/ChartsAxisHighlightValue.d.mts +1 -1
  47. package/ChartsAxisHighlightValue/ChartsAxisHighlightValue.d.ts +1 -1
  48. package/ChartsAxisHighlightValue/ChartsAxisHighlightValueItem.d.mts +2 -1
  49. package/ChartsAxisHighlightValue/ChartsAxisHighlightValueItem.d.ts +2 -1
  50. package/ChartsBrushOverlay/ChartsBrushOverlay.d.mts +2 -1
  51. package/ChartsBrushOverlay/ChartsBrushOverlay.d.ts +2 -1
  52. package/ChartsClipPath/ChartsClipPath.d.mts +1 -1
  53. package/ChartsClipPath/ChartsClipPath.d.ts +1 -1
  54. package/ChartsDataProvider/ChartsDataProvider.d.mts +1 -1
  55. package/ChartsDataProvider/ChartsDataProvider.d.ts +1 -1
  56. package/ChartsGrid/ChartsGrid.d.mts +1 -1
  57. package/ChartsGrid/ChartsGrid.d.ts +1 -1
  58. package/ChartsGrid/ChartsHorizontalGrid.d.mts +2 -1
  59. package/ChartsGrid/ChartsHorizontalGrid.d.ts +2 -1
  60. package/ChartsGrid/ChartsVerticalGrid.d.mts +2 -1
  61. package/ChartsGrid/ChartsVerticalGrid.d.ts +2 -1
  62. package/ChartsLocalizationProvider/ChartsLocalizationProvider.d.mts +1 -1
  63. package/ChartsLocalizationProvider/ChartsLocalizationProvider.d.ts +1 -1
  64. package/ChartsOverlay/ChartsLoadingOverlay.d.mts +1 -1
  65. package/ChartsOverlay/ChartsLoadingOverlay.d.ts +1 -1
  66. package/ChartsOverlay/ChartsNoDataOverlay.d.mts +1 -1
  67. package/ChartsOverlay/ChartsNoDataOverlay.d.ts +1 -1
  68. package/ChartsOverlay/ChartsOverlay.d.mts +1 -1
  69. package/ChartsOverlay/ChartsOverlay.d.ts +1 -1
  70. package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlight.d.mts +2 -1
  71. package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlight.d.ts +2 -1
  72. package/ChartsRadialAxisHighlight/ChartsRadiusAxisHighlight.d.mts +2 -1
  73. package/ChartsRadialAxisHighlight/ChartsRadiusAxisHighlight.d.ts +2 -1
  74. package/ChartsRadialAxisHighlight/ChartsRotationAxisHighlight.d.mts +2 -1
  75. package/ChartsRadialAxisHighlight/ChartsRotationAxisHighlight.d.ts +2 -1
  76. package/ChartsRadialDataProvider/ChartsRadialDataProvider.d.mts +1 -1
  77. package/ChartsRadialDataProvider/ChartsRadialDataProvider.d.ts +1 -1
  78. package/ChartsRadialGrid/ChartsRadialGrid.d.mts +1 -1
  79. package/ChartsRadialGrid/ChartsRadialGrid.d.ts +1 -1
  80. package/ChartsRadialGrid/ChartsRadiusGrid.d.mts +2 -1
  81. package/ChartsRadialGrid/ChartsRadiusGrid.d.ts +2 -1
  82. package/ChartsRadialGrid/ChartsRotationGrid.d.mts +2 -1
  83. package/ChartsRadialGrid/ChartsRotationGrid.d.ts +2 -1
  84. package/ChartsRadiusAxis/ChartsRadiusAxis.d.mts +1 -1
  85. package/ChartsRadiusAxis/ChartsRadiusAxis.d.ts +1 -1
  86. package/ChartsReferenceLine/ChartsReferenceLine.d.mts +1 -1
  87. package/ChartsReferenceLine/ChartsReferenceLine.d.ts +1 -1
  88. package/ChartsReferenceLine/ChartsXReferenceLine.d.mts +1 -1
  89. package/ChartsReferenceLine/ChartsXReferenceLine.d.ts +1 -1
  90. package/ChartsReferenceLine/ChartsYReferenceLine.d.mts +1 -1
  91. package/ChartsReferenceLine/ChartsYReferenceLine.d.ts +1 -1
  92. package/ChartsRotationAxis/ChartsRotationAxis.d.mts +1 -1
  93. package/ChartsRotationAxis/ChartsRotationAxis.d.ts +1 -1
  94. package/ChartsText/ChartsText.d.mts +1 -1
  95. package/ChartsText/ChartsText.d.ts +1 -1
  96. package/ChartsTooltip/ChartsAxisTooltipContent.d.mts +1 -1
  97. package/ChartsTooltip/ChartsAxisTooltipContent.d.ts +1 -1
  98. package/ChartsTooltip/ChartsItemTooltipContent.d.mts +2 -1
  99. package/ChartsTooltip/ChartsItemTooltipContent.d.ts +2 -1
  100. package/ChartsTooltip/ChartsTooltip.d.mts +1 -1
  101. package/ChartsTooltip/ChartsTooltip.d.ts +1 -1
  102. package/ChartsTooltip/ChartsTooltipContainer.d.mts +1 -1
  103. package/ChartsTooltip/ChartsTooltipContainer.d.ts +1 -1
  104. package/ChartsTooltip/ChartsTooltipContainer.js +10 -3
  105. package/ChartsTooltip/ChartsTooltipContainer.mjs +11 -4
  106. package/ChartsXAxis/ChartsGroupedXAxisTicks.d.mts +2 -1
  107. package/ChartsXAxis/ChartsGroupedXAxisTicks.d.ts +2 -1
  108. package/ChartsXAxis/ChartsGroupedXAxisTicks.js +3 -13
  109. package/ChartsXAxis/ChartsGroupedXAxisTicks.mjs +2 -12
  110. package/ChartsXAxis/ChartsSingleXAxisTicks.d.mts +2 -1
  111. package/ChartsXAxis/ChartsSingleXAxisTicks.d.ts +2 -1
  112. package/ChartsXAxis/ChartsXAxis.d.mts +1 -1
  113. package/ChartsXAxis/ChartsXAxis.d.ts +1 -1
  114. package/ChartsXAxis/ChartsXAxisImpl.d.mts +2 -1
  115. package/ChartsXAxis/ChartsXAxisImpl.d.ts +2 -1
  116. package/ChartsYAxis/ChartsGroupedYAxisTicks.d.mts +2 -1
  117. package/ChartsYAxis/ChartsGroupedYAxisTicks.d.ts +2 -1
  118. package/ChartsYAxis/ChartsGroupedYAxisTicks.js +4 -16
  119. package/ChartsYAxis/ChartsGroupedYAxisTicks.mjs +3 -13
  120. package/ChartsYAxis/ChartsSingleYAxisTicks.d.mts +2 -1
  121. package/ChartsYAxis/ChartsSingleYAxisTicks.d.ts +2 -1
  122. package/ChartsYAxis/ChartsYAxis.d.mts +1 -1
  123. package/ChartsYAxis/ChartsYAxis.d.ts +1 -1
  124. package/ChartsYAxis/ChartsYAxisImpl.d.mts +2 -1
  125. package/ChartsYAxis/ChartsYAxisImpl.d.ts +2 -1
  126. package/Gauge/GaugeProvider.d.mts +1 -1
  127. package/Gauge/GaugeProvider.d.ts +1 -1
  128. package/Gauge/GaugeReferenceArc.d.mts +1 -1
  129. package/Gauge/GaugeReferenceArc.d.ts +1 -1
  130. package/Gauge/GaugeValueArc.d.mts +1 -1
  131. package/Gauge/GaugeValueArc.d.ts +1 -1
  132. package/Gauge/GaugeValueText.d.mts +1 -1
  133. package/Gauge/GaugeValueText.d.ts +1 -1
  134. package/LineChart/AnimatedArea.d.mts +1 -1
  135. package/LineChart/AnimatedArea.d.ts +1 -1
  136. package/LineChart/AppearingMask.d.mts +1 -1
  137. package/LineChart/AppearingMask.d.ts +1 -1
  138. package/LineChart/AreaElement.d.mts +1 -1
  139. package/LineChart/AreaElement.d.ts +1 -1
  140. package/LineChart/AreaPlot.d.mts +1 -1
  141. package/LineChart/AreaPlot.d.ts +1 -1
  142. package/LineChart/CircleMarkElement.d.mts +1 -1
  143. package/LineChart/CircleMarkElement.d.ts +1 -1
  144. package/LineChart/FocusedLineMark.d.mts +1 -1
  145. package/LineChart/FocusedLineMark.d.ts +1 -1
  146. package/LineChart/LineElement.d.mts +1 -1
  147. package/LineChart/LineElement.d.ts +1 -1
  148. package/LineChart/LineHighlightElement.d.mts +1 -1
  149. package/LineChart/LineHighlightElement.d.ts +1 -1
  150. package/LineChart/LineHighlightPlot.d.mts +1 -1
  151. package/LineChart/LineHighlightPlot.d.ts +1 -1
  152. package/LineChart/LinePlot.d.mts +1 -1
  153. package/LineChart/LinePlot.d.ts +1 -1
  154. package/LineChart/LinePlot.js +3 -2
  155. package/LineChart/LinePlot.mjs +3 -2
  156. package/LineChart/MarkElement.d.mts +1 -1
  157. package/LineChart/MarkElement.d.ts +1 -1
  158. package/LineChart/MarkPlot.d.mts +1 -1
  159. package/LineChart/MarkPlot.d.ts +1 -1
  160. package/LineChart/seriesConfig/index.js +2 -2
  161. package/LineChart/seriesConfig/index.mjs +2 -2
  162. package/LineChart/seriesConfig/tooltipPosition.d.mts +2 -3
  163. package/LineChart/seriesConfig/tooltipPosition.d.ts +2 -3
  164. package/LineChart/seriesConfig/tooltipPosition.js +14 -14
  165. package/LineChart/seriesConfig/tooltipPosition.mjs +13 -13
  166. package/LineChart/useLinePlotData.d.mts +13 -1
  167. package/LineChart/useLinePlotData.d.ts +13 -1
  168. package/LineChart/useLinePlotData.js +90 -33
  169. package/LineChart/useLinePlotData.mjs +92 -34
  170. package/PieChart/FocusedPieArc.d.mts +1 -1
  171. package/PieChart/FocusedPieArc.d.ts +1 -1
  172. package/PieChart/PieArcLabelPlot.d.mts +1 -1
  173. package/PieChart/PieArcLabelPlot.d.ts +1 -1
  174. package/PieChart/PieArcPlot.d.mts +1 -1
  175. package/PieChart/PieArcPlot.d.ts +1 -1
  176. package/PieChart/PiePlot.d.mts +1 -1
  177. package/PieChart/PiePlot.d.ts +1 -1
  178. package/PieChart/seriesConfig/index.js +2 -2
  179. package/PieChart/seriesConfig/index.mjs +2 -2
  180. package/PieChart/seriesConfig/tooltipPosition.d.mts +2 -3
  181. package/PieChart/seriesConfig/tooltipPosition.d.ts +2 -3
  182. package/PieChart/seriesConfig/tooltipPosition.js +7 -11
  183. package/PieChart/seriesConfig/tooltipPosition.mjs +6 -10
  184. package/RadarChart/FocusedRadarMark.d.mts +1 -1
  185. package/RadarChart/FocusedRadarMark.d.ts +1 -1
  186. package/RadarChart/RadarAxis/RadarAxis.d.mts +1 -1
  187. package/RadarChart/RadarAxis/RadarAxis.d.ts +1 -1
  188. package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.d.mts +1 -1
  189. package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.d.ts +1 -1
  190. package/RadarChart/RadarDataProvider/RadarDataProvider.d.mts +2 -1
  191. package/RadarChart/RadarDataProvider/RadarDataProvider.d.ts +2 -1
  192. package/RadarChart/RadarGrid/CircularRadarGrid.d.mts +2 -1
  193. package/RadarChart/RadarGrid/CircularRadarGrid.d.ts +2 -1
  194. package/RadarChart/RadarGrid/CircularRadarStripes.d.mts +2 -1
  195. package/RadarChart/RadarGrid/CircularRadarStripes.d.ts +2 -1
  196. package/RadarChart/RadarGrid/RadarGrid.d.mts +2 -1
  197. package/RadarChart/RadarGrid/RadarGrid.d.ts +2 -1
  198. package/RadarChart/RadarGrid/SharpRadarGrid.d.mts +2 -1
  199. package/RadarChart/RadarGrid/SharpRadarGrid.d.ts +2 -1
  200. package/RadarChart/RadarGrid/SharpRadarStripes.d.mts +2 -1
  201. package/RadarChart/RadarGrid/SharpRadarStripes.d.ts +2 -1
  202. package/RadarChart/RadarMetricLabels/RadarMetricLabels.d.mts +2 -1
  203. package/RadarChart/RadarMetricLabels/RadarMetricLabels.d.ts +2 -1
  204. package/RadarChart/RadarSeriesPlot/RadarSeriesArea.d.mts +2 -1
  205. package/RadarChart/RadarSeriesPlot/RadarSeriesArea.d.ts +2 -1
  206. package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.d.mts +2 -1
  207. package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.d.ts +2 -1
  208. package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.d.mts +1 -1
  209. package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.d.ts +1 -1
  210. package/RadarChart/seriesConfig/index.js +2 -2
  211. package/RadarChart/seriesConfig/index.mjs +2 -2
  212. package/RadarChart/seriesConfig/tooltipPosition.d.mts +2 -3
  213. package/RadarChart/seriesConfig/tooltipPosition.d.ts +2 -3
  214. package/RadarChart/seriesConfig/tooltipPosition.js +9 -16
  215. package/RadarChart/seriesConfig/tooltipPosition.mjs +8 -15
  216. package/ScatterChart/BatchScatter.d.mts +2 -1
  217. package/ScatterChart/BatchScatter.d.ts +2 -1
  218. package/ScatterChart/FocusedScatterMark.d.mts +1 -1
  219. package/ScatterChart/FocusedScatterMark.d.ts +1 -1
  220. package/ScatterChart/HighlightedScatterMark.d.mts +1 -1
  221. package/ScatterChart/HighlightedScatterMark.d.ts +1 -1
  222. package/ScatterChart/Scatter.d.mts +1 -1
  223. package/ScatterChart/Scatter.d.ts +1 -1
  224. package/ScatterChart/ScatterMarker.d.mts +1 -1
  225. package/ScatterChart/ScatterMarker.d.ts +1 -1
  226. package/ScatterChart/ScatterPlot.d.mts +1 -1
  227. package/ScatterChart/ScatterPlot.d.ts +1 -1
  228. package/ScatterChart/async/ScatterAsync.d.mts +2 -1
  229. package/ScatterChart/async/ScatterAsync.d.ts +2 -1
  230. package/ScatterChart/async/ScatterAsyncBatch.d.mts +1 -1
  231. package/ScatterChart/async/ScatterAsyncBatch.d.ts +1 -1
  232. package/ScatterChart/seriesConfig/index.js +2 -2
  233. package/ScatterChart/seriesConfig/index.mjs +2 -2
  234. package/ScatterChart/seriesConfig/tooltipPosition.d.mts +2 -3
  235. package/ScatterChart/seriesConfig/tooltipPosition.d.ts +2 -3
  236. package/ScatterChart/seriesConfig/tooltipPosition.js +13 -13
  237. package/ScatterChart/seriesConfig/tooltipPosition.mjs +12 -12
  238. package/context/ChartsProvider/ChartsProvider.d.mts +1 -1
  239. package/context/ChartsProvider/ChartsProvider.d.ts +1 -1
  240. package/context/ChartsSlotsContext.d.mts +1 -1
  241. package/context/ChartsSlotsContext.d.ts +1 -1
  242. package/hooks/index.d.mts +2 -1
  243. package/hooks/index.d.ts +2 -1
  244. package/hooks/index.js +10 -2
  245. package/hooks/index.mjs +2 -1
  246. package/hooks/usePolarGeometry.d.mts +51 -0
  247. package/hooks/usePolarGeometry.d.ts +51 -0
  248. package/hooks/usePolarGeometry.js +47 -0
  249. package/hooks/usePolarGeometry.mjs +41 -0
  250. package/index.js +1 -1
  251. package/index.mjs +1 -1
  252. package/internals/animation/animation.d.mts +1 -1
  253. package/internals/animation/animation.d.ts +1 -1
  254. package/internals/commonNextFocusItem.d.mts +15 -5
  255. package/internals/commonNextFocusItem.d.ts +15 -5
  256. package/internals/commonNextFocusItem.js +6 -0
  257. package/internals/commonNextFocusItem.mjs +7 -0
  258. package/internals/components/ChartsAccessibilityProxy/ChartsAccessibilityProxy.d.mts +2 -1
  259. package/internals/components/ChartsAccessibilityProxy/ChartsAccessibilityProxy.d.ts +2 -1
  260. package/internals/components/ChartsAxesGradients/ChartsAxesGradients.d.mts +2 -1
  261. package/internals/components/ChartsAxesGradients/ChartsAxesGradients.d.ts +2 -1
  262. package/internals/components/ChartsAxesGradients/ChartsContinuousGradient.d.mts +1 -1
  263. package/internals/components/ChartsAxesGradients/ChartsContinuousGradient.d.ts +1 -1
  264. package/internals/components/ChartsAxesGradients/ChartsContinuousGradientObjectBound.d.mts +1 -1
  265. package/internals/components/ChartsAxesGradients/ChartsContinuousGradientObjectBound.d.ts +1 -1
  266. package/internals/components/ChartsAxesGradients/ChartsPiecewiseGradient.d.mts +2 -1
  267. package/internals/components/ChartsAxesGradients/ChartsPiecewiseGradient.d.ts +2 -1
  268. package/internals/createCommonKeyboardFocusHandler.d.mts +5 -1
  269. package/internals/createCommonKeyboardFocusHandler.d.ts +5 -1
  270. package/internals/createGetBarDimensions.d.mts +14 -1
  271. package/internals/createGetBarDimensions.d.ts +14 -1
  272. package/internals/createGetBarDimensions.js +45 -0
  273. package/internals/createGetBarDimensions.mjs +45 -0
  274. package/internals/geometry.js +1 -1
  275. package/internals/geometry.mjs +1 -1
  276. package/internals/getGroupingConfig.d.mts +6 -0
  277. package/internals/getGroupingConfig.d.ts +6 -0
  278. package/internals/getGroupingConfig.js +20 -0
  279. package/internals/getGroupingConfig.mjs +12 -0
  280. package/internals/index.d.mts +1 -2
  281. package/internals/index.d.ts +1 -2
  282. package/internals/index.js +12 -8
  283. package/internals/index.mjs +1 -2
  284. package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.mts +2 -1
  285. package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.ts +2 -1
  286. package/internals/plugins/corePlugins/useChartSeriesConfig/types/colorProcessor.types.d.mts +1 -1
  287. package/internals/plugins/corePlugins/useChartSeriesConfig/types/colorProcessor.types.d.ts +1 -1
  288. package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.d.mts +1 -1
  289. package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.d.ts +1 -1
  290. package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.js +4 -4
  291. package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.mjs +1 -1
  292. package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesConfig.types.d.mts +13 -2
  293. package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesConfig.types.d.ts +13 -2
  294. package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipItemPositionSelector.types.d.mts +18 -0
  295. package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipItemPositionSelector.types.d.ts +18 -0
  296. package/internals/plugins/featurePlugins/useChartCartesianAxis/index.d.mts +2 -0
  297. package/internals/plugins/featurePlugins/useChartCartesianAxis/index.d.ts +2 -0
  298. package/internals/plugins/featurePlugins/useChartCartesianAxis/index.js +12 -0
  299. package/internals/plugins/featurePlugins/useChartCartesianAxis/index.mjs +1 -0
  300. package/internals/plugins/featurePlugins/useChartCartesianAxis/sampling.selectors.d.mts +26 -0
  301. package/internals/plugins/featurePlugins/useChartCartesianAxis/sampling.selectors.d.ts +26 -0
  302. package/internals/plugins/featurePlugins/useChartCartesianAxis/sampling.selectors.js +89 -0
  303. package/internals/plugins/featurePlugins/useChartCartesianAxis/sampling.selectors.mjs +81 -0
  304. package/internals/plugins/featurePlugins/useChartCartesianAxis/sampling.types.d.mts +93 -0
  305. package/internals/plugins/featurePlugins/useChartCartesianAxis/sampling.types.d.ts +93 -0
  306. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.types.d.mts +5 -0
  307. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.types.d.ts +5 -0
  308. package/internals/plugins/featurePlugins/useChartHighlight/createIsFaded.d.mts +1 -1
  309. package/internals/plugins/featurePlugins/useChartHighlight/createIsFaded.d.ts +1 -1
  310. package/internals/plugins/featurePlugins/useChartHighlight/createIsHighlighted.d.mts +1 -1
  311. package/internals/plugins/featurePlugins/useChartHighlight/createIsHighlighted.d.ts +1 -1
  312. package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.d.mts +3 -8
  313. package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.d.ts +3 -8
  314. package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.js +2 -57
  315. package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.mjs +2 -57
  316. package/internals/shallowEqual.d.mts +1 -1
  317. package/internals/shallowEqual.d.ts +1 -1
  318. package/internals/shallowEqual.js +1 -1
  319. package/internals/shallowEqual.mjs +1 -1
  320. package/models/seriesType/config.d.mts +6 -2
  321. package/models/seriesType/config.d.ts +6 -2
  322. package/package.json +6 -6
  323. package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipItemPositionGetter.types.d.mts +0 -34
  324. package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipItemPositionGetter.types.d.ts +0 -34
  325. package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.selectors.d.mts +0 -49
  326. package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.selectors.d.ts +0 -49
  327. package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.selectors.js +0 -124
  328. package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.selectors.mjs +0 -117
  329. package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.types.d.mts +0 -64
  330. package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.types.d.ts +0 -64
  331. /package/internals/plugins/corePlugins/useChartSeriesConfig/types/{tooltipItemPositionGetter.types.js → tooltipItemPositionSelector.types.js} +0 -0
  332. /package/internals/plugins/corePlugins/useChartSeriesConfig/types/{tooltipItemPositionGetter.types.mjs → tooltipItemPositionSelector.types.mjs} +0 -0
  333. /package/internals/plugins/featurePlugins/{useGeoProjection/useGeoProjection.types.js → useChartCartesianAxis/sampling.types.js} +0 -0
  334. /package/internals/plugins/featurePlugins/{useGeoProjection/useGeoProjection.types.mjs → useChartCartesianAxis/sampling.types.mjs} +0 -0
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import type { ChartsRadialGridClasses } from "./chartsRadialGridClasses.js";
2
3
  import type { PolarAxisDefaultized } from "../models/axis.js";
3
4
  interface ChartsRotationGridProps {
@@ -9,5 +10,5 @@ interface ChartsRotationGridProps {
9
10
  /**
10
11
  * @ignore - internal component.
11
12
  */
12
- export declare function ChartsRotationGrid(props: ChartsRotationGridProps): import("react/jsx-runtime").JSX.Element;
13
+ export declare function ChartsRotationGrid(props: ChartsRotationGridProps): React.JSX.Element;
13
14
  export {};
@@ -1,7 +1,7 @@
1
1
  import type { ChartsRadiusAxisProps, ChartsAxisSlots, ChartsAxisSlotProps } from "../models/axis.mjs";
2
2
  export interface ChartsRadiusAxisSlots extends ChartsAxisSlots {}
3
3
  export interface ChartsRadiusAxisSlotProps extends ChartsAxisSlotProps {}
4
- declare function ChartsRadiusAxis(props: ChartsRadiusAxisProps): import("react/jsx-runtime").JSX.Element | null;
4
+ declare function ChartsRadiusAxis(props: ChartsRadiusAxisProps): import("react").JSX.Element | null;
5
5
  declare namespace ChartsRadiusAxis {
6
6
  var propTypes: any;
7
7
  }
@@ -1,7 +1,7 @@
1
1
  import type { ChartsRadiusAxisProps, ChartsAxisSlots, ChartsAxisSlotProps } from "../models/axis.js";
2
2
  export interface ChartsRadiusAxisSlots extends ChartsAxisSlots {}
3
3
  export interface ChartsRadiusAxisSlotProps extends ChartsAxisSlotProps {}
4
- declare function ChartsRadiusAxis(props: ChartsRadiusAxisProps): import("react/jsx-runtime").JSX.Element | null;
4
+ declare function ChartsRadiusAxis(props: ChartsRadiusAxisProps): import("react").JSX.Element | null;
5
5
  declare namespace ChartsRadiusAxis {
6
6
  var propTypes: any;
7
7
  }
@@ -2,7 +2,7 @@ import type { ChartsXReferenceLineProps } from "./ChartsXReferenceLine.mjs";
2
2
  import type { ChartsYReferenceLineProps } from "./ChartsYReferenceLine.mjs";
3
3
  import type { XOR } from "../internals/ts-generic.mjs";
4
4
  type ChartsReferenceLineProps<TValue extends string | number | Date = string | number | Date> = XOR<ChartsXReferenceLineProps<TValue>, ChartsYReferenceLineProps<TValue>>;
5
- declare function ChartsReferenceLine(props: ChartsReferenceLineProps): import("react/jsx-runtime").JSX.Element;
5
+ declare function ChartsReferenceLine(props: ChartsReferenceLineProps): import("react").JSX.Element;
6
6
  declare namespace ChartsReferenceLine {
7
7
  var propTypes: any;
8
8
  }
@@ -2,7 +2,7 @@ import type { ChartsXReferenceLineProps } from "./ChartsXReferenceLine.js";
2
2
  import type { ChartsYReferenceLineProps } from "./ChartsYReferenceLine.js";
3
3
  import type { XOR } from "../internals/ts-generic.js";
4
4
  type ChartsReferenceLineProps<TValue extends string | number | Date = string | number | Date> = XOR<ChartsXReferenceLineProps<TValue>, ChartsYReferenceLineProps<TValue>>;
5
- declare function ChartsReferenceLine(props: ChartsReferenceLineProps): import("react/jsx-runtime").JSX.Element;
5
+ declare function ChartsReferenceLine(props: ChartsReferenceLineProps): import("react").JSX.Element;
6
6
  declare namespace ChartsReferenceLine {
7
7
  var propTypes: any;
8
8
  }
@@ -8,7 +8,7 @@ export type ChartsXReferenceLineProps<TValue extends string | number | Date = st
8
8
  x: TValue;
9
9
  };
10
10
  export declare function getXReferenceLineClasses(classes?: Partial<ChartsReferenceLineClasses>): Record<"root" | "line" | "label", string>;
11
- declare function ChartsXReferenceLine(props: ChartsXReferenceLineProps): import("react/jsx-runtime").JSX.Element | null;
11
+ declare function ChartsXReferenceLine(props: ChartsXReferenceLineProps): import("react").JSX.Element | null;
12
12
  declare namespace ChartsXReferenceLine {
13
13
  var propTypes: any;
14
14
  }
@@ -8,7 +8,7 @@ export type ChartsXReferenceLineProps<TValue extends string | number | Date = st
8
8
  x: TValue;
9
9
  };
10
10
  export declare function getXReferenceLineClasses(classes?: Partial<ChartsReferenceLineClasses>): Record<"root" | "line" | "label", string>;
11
- declare function ChartsXReferenceLine(props: ChartsXReferenceLineProps): import("react/jsx-runtime").JSX.Element | null;
11
+ declare function ChartsXReferenceLine(props: ChartsXReferenceLineProps): import("react").JSX.Element | null;
12
12
  declare namespace ChartsXReferenceLine {
13
13
  var propTypes: any;
14
14
  }
@@ -8,7 +8,7 @@ export type ChartsYReferenceLineProps<TValue extends string | number | Date = st
8
8
  y: TValue;
9
9
  };
10
10
  export declare function getYReferenceLineClasses(classes?: Partial<ChartsReferenceLineClasses>): Record<"root" | "line" | "label", string>;
11
- declare function ChartsYReferenceLine(props: ChartsYReferenceLineProps): import("react/jsx-runtime").JSX.Element | null;
11
+ declare function ChartsYReferenceLine(props: ChartsYReferenceLineProps): import("react").JSX.Element | null;
12
12
  declare namespace ChartsYReferenceLine {
13
13
  var propTypes: any;
14
14
  }
@@ -8,7 +8,7 @@ export type ChartsYReferenceLineProps<TValue extends string | number | Date = st
8
8
  y: TValue;
9
9
  };
10
10
  export declare function getYReferenceLineClasses(classes?: Partial<ChartsReferenceLineClasses>): Record<"root" | "line" | "label", string>;
11
- declare function ChartsYReferenceLine(props: ChartsYReferenceLineProps): import("react/jsx-runtime").JSX.Element | null;
11
+ declare function ChartsYReferenceLine(props: ChartsYReferenceLineProps): import("react").JSX.Element | null;
12
12
  declare namespace ChartsYReferenceLine {
13
13
  var propTypes: any;
14
14
  }
@@ -1,7 +1,7 @@
1
1
  import type { ChartsRotationAxisProps, ChartsAxisSlots, ChartsAxisSlotProps } from "../models/axis.mjs";
2
2
  export interface ChartsRotationAxisSlots extends ChartsAxisSlots {}
3
3
  export interface ChartsRotationAxisSlotProps extends ChartsAxisSlotProps {}
4
- declare function ChartsRotationAxis(props: ChartsRotationAxisProps): import("react/jsx-runtime").JSX.Element | null;
4
+ declare function ChartsRotationAxis(props: ChartsRotationAxisProps): import("react").JSX.Element | null;
5
5
  declare namespace ChartsRotationAxis {
6
6
  var propTypes: any;
7
7
  }
@@ -1,7 +1,7 @@
1
1
  import type { ChartsRotationAxisProps, ChartsAxisSlots, ChartsAxisSlotProps } from "../models/axis.js";
2
2
  export interface ChartsRotationAxisSlots extends ChartsAxisSlots {}
3
3
  export interface ChartsRotationAxisSlotProps extends ChartsAxisSlotProps {}
4
- declare function ChartsRotationAxis(props: ChartsRotationAxisProps): import("react/jsx-runtime").JSX.Element | null;
4
+ declare function ChartsRotationAxis(props: ChartsRotationAxisProps): import("react").JSX.Element | null;
5
5
  declare namespace ChartsRotationAxis {
6
6
  var propTypes: any;
7
7
  }
@@ -10,7 +10,7 @@ export interface ChartsTextProps extends Omit<React.SVGTextElementAttributes<SVG
10
10
  /**
11
11
  * Helper component to manage multiline text in SVG
12
12
  */
13
- declare function ChartsText(props: ChartsTextProps): import("react/jsx-runtime").JSX.Element;
13
+ declare function ChartsText(props: ChartsTextProps): React.JSX.Element;
14
14
  declare namespace ChartsText {
15
15
  var propTypes: any;
16
16
  }
@@ -10,7 +10,7 @@ export interface ChartsTextProps extends Omit<React.SVGTextElementAttributes<SVG
10
10
  /**
11
11
  * Helper component to manage multiline text in SVG
12
12
  */
13
- declare function ChartsText(props: ChartsTextProps): import("react/jsx-runtime").JSX.Element;
13
+ declare function ChartsText(props: ChartsTextProps): React.JSX.Element;
14
14
  declare namespace ChartsText {
15
15
  var propTypes: any;
16
16
  }
@@ -14,7 +14,7 @@ export interface ChartsAxisTooltipContentProps {
14
14
  */
15
15
  sort?: 'none' | 'asc' | 'desc';
16
16
  }
17
- declare function ChartsAxisTooltipContent(props: ChartsAxisTooltipContentProps): import("react/jsx-runtime").JSX.Element | null;
17
+ declare function ChartsAxisTooltipContent(props: ChartsAxisTooltipContentProps): import("react").JSX.Element | null;
18
18
  declare namespace ChartsAxisTooltipContent {
19
19
  var propTypes: any;
20
20
  }
@@ -14,7 +14,7 @@ export interface ChartsAxisTooltipContentProps {
14
14
  */
15
15
  sort?: 'none' | 'asc' | 'desc';
16
16
  }
17
- declare function ChartsAxisTooltipContent(props: ChartsAxisTooltipContentProps): import("react/jsx-runtime").JSX.Element | null;
17
+ declare function ChartsAxisTooltipContent(props: ChartsAxisTooltipContentProps): import("react").JSX.Element | null;
18
18
  declare namespace ChartsAxisTooltipContent {
19
19
  var propTypes: any;
20
20
  }
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import type { SxProps, Theme } from '@mui/material/styles';
2
3
  import type { ChartsTooltipClasses } from "./chartsTooltipClasses.mjs";
3
4
  export interface ChartsItemTooltipContentClasses extends ChartsTooltipClasses {}
@@ -8,7 +9,7 @@ export interface ChartsItemTooltipContentProps {
8
9
  classes?: Partial<ChartsTooltipClasses>;
9
10
  sx?: SxProps<Theme>;
10
11
  }
11
- declare function ChartsItemTooltipContent(props: ChartsItemTooltipContentProps): import("react/jsx-runtime").JSX.Element | null;
12
+ declare function ChartsItemTooltipContent(props: ChartsItemTooltipContentProps): React.JSX.Element | null;
12
13
  declare namespace ChartsItemTooltipContent {
13
14
  var propTypes: any;
14
15
  }
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import type { SxProps, Theme } from '@mui/material/styles';
2
3
  import type { ChartsTooltipClasses } from "./chartsTooltipClasses.js";
3
4
  export interface ChartsItemTooltipContentClasses extends ChartsTooltipClasses {}
@@ -8,7 +9,7 @@ export interface ChartsItemTooltipContentProps {
8
9
  classes?: Partial<ChartsTooltipClasses>;
9
10
  sx?: SxProps<Theme>;
10
11
  }
11
- declare function ChartsItemTooltipContent(props: ChartsItemTooltipContentProps): import("react/jsx-runtime").JSX.Element | null;
12
+ declare function ChartsItemTooltipContent(props: ChartsItemTooltipContentProps): React.JSX.Element | null;
12
13
  declare namespace ChartsItemTooltipContent {
13
14
  var propTypes: any;
14
15
  }
@@ -18,7 +18,7 @@ export type ChartsTooltipProps<T extends TriggerOptions = TriggerOptions> = T ex
18
18
  *
19
19
  * - [ChartsTooltip API](https://mui.com/x/api/charts/charts-tool-tip/)
20
20
  */
21
- declare function ChartsTooltip<T extends TriggerOptions>(props: ChartsTooltipProps<T>): import("react/jsx-runtime").JSX.Element;
21
+ declare function ChartsTooltip<T extends TriggerOptions>(props: ChartsTooltipProps<T>): import("react").JSX.Element;
22
22
  declare namespace ChartsTooltip {
23
23
  var propTypes: any;
24
24
  }
@@ -18,7 +18,7 @@ export type ChartsTooltipProps<T extends TriggerOptions = TriggerOptions> = T ex
18
18
  *
19
19
  * - [ChartsTooltip API](https://mui.com/x/api/charts/charts-tool-tip/)
20
20
  */
21
- declare function ChartsTooltip<T extends TriggerOptions>(props: ChartsTooltipProps<T>): import("react/jsx-runtime").JSX.Element;
21
+ declare function ChartsTooltip<T extends TriggerOptions>(props: ChartsTooltipProps<T>): import("react").JSX.Element;
22
22
  declare namespace ChartsTooltip {
23
23
  var propTypes: any;
24
24
  }
@@ -50,7 +50,7 @@ export interface ChartsTooltipContainerProps<T extends TriggerOptions = TriggerO
50
50
  *
51
51
  * - [ChartsTooltip API](https://mui.com/x/api/charts/charts-tool-tip/)
52
52
  */
53
- declare function ChartsTooltipContainer(inProps: ChartsTooltipContainerProps): import("react/jsx-runtime").JSX.Element | null;
53
+ declare function ChartsTooltipContainer(inProps: ChartsTooltipContainerProps): React.JSX.Element | null;
54
54
  declare namespace ChartsTooltipContainer {
55
55
  var propTypes: any;
56
56
  }
@@ -50,7 +50,7 @@ export interface ChartsTooltipContainerProps<T extends TriggerOptions = TriggerO
50
50
  *
51
51
  * - [ChartsTooltip API](https://mui.com/x/api/charts/charts-tool-tip/)
52
52
  */
53
- declare function ChartsTooltipContainer(inProps: ChartsTooltipContainerProps): import("react/jsx-runtime").JSX.Element | null;
53
+ declare function ChartsTooltipContainer(inProps: ChartsTooltipContainerProps): React.JSX.Element | null;
54
54
  declare namespace ChartsTooltipContainer {
55
55
  var propTypes: any;
56
56
  }
@@ -25,6 +25,7 @@ var _warning = require("@mui/x-internals/warning");
25
25
  var _utils = require("./utils");
26
26
  var _chartsTooltipClasses = require("./chartsTooltipClasses");
27
27
  var _useStore = require("../internals/store/useStore");
28
+ var _useChartSeriesConfig = require("../internals/plugins/corePlugins/useChartSeriesConfig");
28
29
  var _useChartInteraction = require("../internals/plugins/featurePlugins/useChartInteraction");
29
30
  var _useChartTooltip = require("../internals/plugins/featurePlugins/useChartTooltip");
30
31
  var _useChartCartesianTooltip = require("../internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianTooltip.selectors");
@@ -56,10 +57,13 @@ const defaultAnchorByTrigger = {
56
57
  axis: 'chart',
57
58
  none: 'pointer'
58
59
  };
59
- const getPositionSelectorByAnchor = anchor => {
60
+
61
+ // The axis and null selectors take a state the item selector's state is
62
+ // assignable to, so they all converge to `TooltipItemPositionSelector`.
63
+ const getPositionSelectorByAnchor = (anchor, selectorItemPosition) => {
60
64
  switch (anchor) {
61
65
  case 'node':
62
- return _useChartTooltip.selectorChartsTooltipItemPosition;
66
+ return selectorItemPosition;
63
67
  case 'chart':
64
68
  return _useChartCartesianTooltip.selectorChartsTooltipAxisPosition;
65
69
  default:
@@ -125,7 +129,10 @@ function ChartsTooltipContainer(inProps) {
125
129
  const lastInteraction = store.use(_useChartInteraction.selectorChartsLastInteraction);
126
130
  const pointerAnchorUnavailable = lastInteraction === 'keyboard' || pointerType === null;
127
131
  const computedAnchor = pointerAnchorUnavailable ? defaultAnchorByTrigger[trigger] : anchor;
128
- const itemPosition = store.use(getPositionSelectorByAnchor(computedAnchor), props.position);
132
+ const tooltipItem = store.use(_useChartTooltip.selectorChartsTooltipItem);
133
+ const seriesConfig = store.use(_useChartSeriesConfig.selectorChartSeriesConfig);
134
+ const selectorItemPosition = tooltipItem && seriesConfig[tooltipItem.type]?.selectorTooltipItemPosition || selectorReturnNull;
135
+ const itemPosition = store.use(getPositionSelectorByAnchor(computedAnchor, selectorItemPosition), props.position);
129
136
  const isTooltipNodeAnchored = itemPosition !== null;
130
137
  React.useEffect(() => {
131
138
  const svgElement = chartsLayerContainerRef.current;
@@ -18,8 +18,9 @@ import { warnOnce } from '@mui/x-internals/warning';
18
18
  import { useIsFineMainPointer } from "./utils.mjs";
19
19
  import { useUtilityClasses } from "./chartsTooltipClasses.mjs";
20
20
  import { useStore } from "../internals/store/useStore.mjs";
21
+ import { selectorChartSeriesConfig } from "../internals/plugins/corePlugins/useChartSeriesConfig/index.mjs";
21
22
  import { selectorChartsLastInteraction, selectorChartsPointerType } from "../internals/plugins/featurePlugins/useChartInteraction/index.mjs";
22
- import { selectorChartsTooltipItemIsDefined, selectorChartsTooltipItemPosition } from "../internals/plugins/featurePlugins/useChartTooltip/index.mjs";
23
+ import { selectorChartsTooltipItem, selectorChartsTooltipItemIsDefined } from "../internals/plugins/featurePlugins/useChartTooltip/index.mjs";
23
24
  import { selectorChartsInteractionAxisTooltip, selectorChartsTooltipAxisPosition } from "../internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianTooltip.selectors.mjs";
24
25
  import { selectorChartsInteractionPolarAxisTooltip } from "../internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.mjs";
25
26
  import { useAxisSystem } from "../hooks/useAxisSystem.mjs";
@@ -49,10 +50,13 @@ const defaultAnchorByTrigger = {
49
50
  axis: 'chart',
50
51
  none: 'pointer'
51
52
  };
52
- const getPositionSelectorByAnchor = anchor => {
53
+
54
+ // The axis and null selectors take a state the item selector's state is
55
+ // assignable to, so they all converge to `TooltipItemPositionSelector`.
56
+ const getPositionSelectorByAnchor = (anchor, selectorItemPosition) => {
53
57
  switch (anchor) {
54
58
  case 'node':
55
- return selectorChartsTooltipItemPosition;
59
+ return selectorItemPosition;
56
60
  case 'chart':
57
61
  return selectorChartsTooltipAxisPosition;
58
62
  default:
@@ -118,7 +122,10 @@ function ChartsTooltipContainer(inProps) {
118
122
  const lastInteraction = store.use(selectorChartsLastInteraction);
119
123
  const pointerAnchorUnavailable = lastInteraction === 'keyboard' || pointerType === null;
120
124
  const computedAnchor = pointerAnchorUnavailable ? defaultAnchorByTrigger[trigger] : anchor;
121
- const itemPosition = store.use(getPositionSelectorByAnchor(computedAnchor), props.position);
125
+ const tooltipItem = store.use(selectorChartsTooltipItem);
126
+ const seriesConfig = store.use(selectorChartSeriesConfig);
127
+ const selectorItemPosition = tooltipItem && seriesConfig[tooltipItem.type]?.selectorTooltipItemPosition || selectorReturnNull;
128
+ const itemPosition = store.use(getPositionSelectorByAnchor(computedAnchor, selectorItemPosition), props.position);
122
129
  const isTooltipNodeAnchored = itemPosition !== null;
123
130
  React.useEffect(() => {
124
131
  const svgElement = chartsLayerContainerRef.current;
@@ -1,7 +1,8 @@
1
+ import * as React from 'react';
1
2
  import type { ChartsXAxisProps } from "../models/axis.mjs";
2
3
  interface ChartsGroupedXAxisProps extends ChartsXAxisProps {}
3
4
  /**
4
5
  * @ignore - internal component.
5
6
  */
6
- declare function ChartsGroupedXAxisTicks(inProps: ChartsGroupedXAxisProps): import("react/jsx-runtime").JSX.Element;
7
+ declare function ChartsGroupedXAxisTicks(inProps: ChartsGroupedXAxisProps): React.JSX.Element;
7
8
  export { ChartsGroupedXAxisTicks };
@@ -1,7 +1,8 @@
1
+ import * as React from 'react';
1
2
  import type { ChartsXAxisProps } from "../models/axis.js";
2
3
  interface ChartsGroupedXAxisProps extends ChartsXAxisProps {}
3
4
  /**
4
5
  * @ignore - internal component.
5
6
  */
6
- declare function ChartsGroupedXAxisTicks(inProps: ChartsGroupedXAxisProps): import("react/jsx-runtime").JSX.Element;
7
+ declare function ChartsGroupedXAxisTicks(inProps: ChartsGroupedXAxisProps): React.JSX.Element;
7
8
  export { ChartsGroupedXAxisTicks };
@@ -7,8 +7,8 @@ Object.defineProperty(exports, "__esModule", {
7
7
  value: true
8
8
  });
9
9
  exports.ChartsGroupedXAxisTicks = ChartsGroupedXAxisTicks;
10
- var _formatErrorMessage2 = _interopRequireDefault(require("@mui/x-internals/formatErrorMessage"));
11
10
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
+ var _formatErrorMessage2 = _interopRequireDefault(require("@mui/x-internals/formatErrorMessage"));
12
12
  var React = _interopRequireWildcard(require("react"));
13
13
  var _scaleGuards = require("../internals/scaleGuards");
14
14
  var _useChartsContext = require("../context/ChartsProvider/useChartsContext");
@@ -17,18 +17,8 @@ var _useTicksGrouped = require("../hooks/useTicksGrouped");
17
17
  var _useAxisTicksProps = require("./useAxisTicksProps");
18
18
  var _useStore = require("../internals/store/useStore");
19
19
  var _useChartAxisAutoSize = require("../internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisAutoSize.selectors");
20
+ var _getGroupingConfig = require("../internals/getGroupingConfig");
20
21
  var _jsxRuntime = require("react/jsx-runtime");
21
- const DEFAULT_GROUPING_CONFIG = {
22
- tickSize: 6
23
- };
24
- const getGroupingConfig = (groups, groupIndex, tickSize, computedGroupTickSizes) => {
25
- const config = groups[groupIndex] ?? {};
26
- const defaultTickSize = tickSize ?? DEFAULT_GROUPING_CONFIG.tickSize;
27
- const calculatedTickSize = defaultTickSize * groupIndex * 2 + defaultTickSize;
28
- return (0, _extends2.default)({}, DEFAULT_GROUPING_CONFIG, config, {
29
- tickSize: computedGroupTickSizes?.[groupIndex] ?? config.tickSize ?? calculatedTickSize
30
- });
31
- };
32
22
  /**
33
23
  * @ignore - internal component.
34
24
  */
@@ -87,7 +77,7 @@ function ChartsGroupedXAxisTicks(inProps) {
87
77
  const tickLabel = item.formattedValue;
88
78
  const ignoreTick = item.ignoreTick ?? false;
89
79
  const groupIndex = item.groupIndex ?? 0;
90
- const groupConfig = getGroupingConfig(groups, groupIndex, tickSize, computedGroupTickSizes);
80
+ const groupConfig = (0, _getGroupingConfig.getGroupingConfig)(groups, groupIndex, tickSize, computedGroupTickSizes);
91
81
  const tickYSize = positionSign * groupConfig.tickSize;
92
82
  const labelPositionY = positionSign * (groupConfig.tickSize + _utilities.TICK_LABEL_GAP);
93
83
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("g", {
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
- import _formatErrorMessage from "@mui/x-internals/formatErrorMessage";
4
3
  import _extends from "@babel/runtime/helpers/esm/extends";
4
+ import _formatErrorMessage from "@mui/x-internals/formatErrorMessage";
5
5
  import * as React from 'react';
6
6
  import { isOrdinalScale } from "../internals/scaleGuards.mjs";
7
7
  import { useChartsContext } from "../context/ChartsProvider/useChartsContext.mjs";
@@ -10,18 +10,8 @@ import { useTicksGrouped } from "../hooks/useTicksGrouped.mjs";
10
10
  import { useAxisTicksProps } from "./useAxisTicksProps.mjs";
11
11
  import { useStore } from "../internals/store/useStore.mjs";
12
12
  import { selectorChartXAxisAutoSizeResults } from "../internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisAutoSize.selectors.mjs";
13
+ import { getGroupingConfig } from "../internals/getGroupingConfig.mjs";
13
14
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
14
- const DEFAULT_GROUPING_CONFIG = {
15
- tickSize: 6
16
- };
17
- const getGroupingConfig = (groups, groupIndex, tickSize, computedGroupTickSizes) => {
18
- const config = groups[groupIndex] ?? {};
19
- const defaultTickSize = tickSize ?? DEFAULT_GROUPING_CONFIG.tickSize;
20
- const calculatedTickSize = defaultTickSize * groupIndex * 2 + defaultTickSize;
21
- return _extends({}, DEFAULT_GROUPING_CONFIG, config, {
22
- tickSize: computedGroupTickSizes?.[groupIndex] ?? config.tickSize ?? calculatedTickSize
23
- });
24
- };
25
15
  /**
26
16
  * @ignore - internal component.
27
17
  */
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import type { ChartsXAxisProps } from "../models/axis.mjs";
2
3
  import type { OrdinalTimeTicks } from "../models/timeTicks.mjs";
3
4
  interface ChartsSingleXAxisProps extends ChartsXAxisProps {
@@ -7,5 +8,5 @@ interface ChartsSingleXAxisProps extends ChartsXAxisProps {
7
8
  /**
8
9
  * @ignore - internal component.
9
10
  */
10
- declare function ChartsSingleXAxisTicks(inProps: ChartsSingleXAxisProps): import("react/jsx-runtime").JSX.Element;
11
+ declare function ChartsSingleXAxisTicks(inProps: ChartsSingleXAxisProps): React.JSX.Element;
11
12
  export { ChartsSingleXAxisTicks };
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import type { ChartsXAxisProps } from "../models/axis.js";
2
3
  import type { OrdinalTimeTicks } from "../models/timeTicks.js";
3
4
  interface ChartsSingleXAxisProps extends ChartsXAxisProps {
@@ -7,5 +8,5 @@ interface ChartsSingleXAxisProps extends ChartsXAxisProps {
7
8
  /**
8
9
  * @ignore - internal component.
9
10
  */
10
- declare function ChartsSingleXAxisTicks(inProps: ChartsSingleXAxisProps): import("react/jsx-runtime").JSX.Element;
11
+ declare function ChartsSingleXAxisTicks(inProps: ChartsSingleXAxisProps): React.JSX.Element;
11
12
  export { ChartsSingleXAxisTicks };
@@ -10,7 +10,7 @@ export interface ChartsXAxisSlotProps extends ChartsAxisSlotProps {}
10
10
  *
11
11
  * - [ChartsXAxis API](https://mui.com/x/api/charts/charts-x-axis/)
12
12
  */
13
- declare function ChartsXAxis(inProps: ChartsXAxisProps): import("react/jsx-runtime").JSX.Element | null;
13
+ declare function ChartsXAxis(inProps: ChartsXAxisProps): import("react").JSX.Element | null;
14
14
  declare namespace ChartsXAxis {
15
15
  var propTypes: any;
16
16
  }
@@ -10,7 +10,7 @@ export interface ChartsXAxisSlotProps extends ChartsAxisSlotProps {}
10
10
  *
11
11
  * - [ChartsXAxis API](https://mui.com/x/api/charts/charts-x-axis/)
12
12
  */
13
- declare function ChartsXAxis(inProps: ChartsXAxisProps): import("react/jsx-runtime").JSX.Element | null;
13
+ declare function ChartsXAxis(inProps: ChartsXAxisProps): import("react").JSX.Element | null;
14
14
  declare namespace ChartsXAxis {
15
15
  var propTypes: any;
16
16
  }
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import type { ChartsXAxisProps, ComputedAxis, ScaleName } from "../models/axis.mjs";
2
3
  interface ChartsXAxisImplProps extends Omit<ChartsXAxisProps, 'axis'> {
3
4
  axis: ComputedAxis<ScaleName, any, ChartsXAxisProps>;
@@ -8,5 +9,5 @@ interface ChartsXAxisImplProps extends Omit<ChartsXAxisProps, 'axis'> {
8
9
  export declare function ChartsXAxisImpl({
9
10
  axis,
10
11
  ...inProps
11
- }: ChartsXAxisImplProps): import("react/jsx-runtime").JSX.Element | null;
12
+ }: ChartsXAxisImplProps): React.JSX.Element | null;
12
13
  export {};
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import type { ChartsXAxisProps, ComputedAxis, ScaleName } from "../models/axis.js";
2
3
  interface ChartsXAxisImplProps extends Omit<ChartsXAxisProps, 'axis'> {
3
4
  axis: ComputedAxis<ScaleName, any, ChartsXAxisProps>;
@@ -8,5 +9,5 @@ interface ChartsXAxisImplProps extends Omit<ChartsXAxisProps, 'axis'> {
8
9
  export declare function ChartsXAxisImpl({
9
10
  axis,
10
11
  ...inProps
11
- }: ChartsXAxisImplProps): import("react/jsx-runtime").JSX.Element | null;
12
+ }: ChartsXAxisImplProps): React.JSX.Element | null;
12
13
  export {};
@@ -1,6 +1,7 @@
1
+ import * as React from 'react';
1
2
  import type { ChartsYAxisProps } from "../models/axis.mjs";
2
3
  /**
3
4
  * @ignore - internal component.
4
5
  */
5
- declare function ChartsGroupedYAxisTicks(inProps: ChartsYAxisProps): import("react/jsx-runtime").JSX.Element;
6
+ declare function ChartsGroupedYAxisTicks(inProps: ChartsYAxisProps): React.JSX.Element;
6
7
  export { ChartsGroupedYAxisTicks };
@@ -1,6 +1,7 @@
1
+ import * as React from 'react';
1
2
  import type { ChartsYAxisProps } from "../models/axis.js";
2
3
  /**
3
4
  * @ignore - internal component.
4
5
  */
5
- declare function ChartsGroupedYAxisTicks(inProps: ChartsYAxisProps): import("react/jsx-runtime").JSX.Element;
6
+ declare function ChartsGroupedYAxisTicks(inProps: ChartsYAxisProps): React.JSX.Element;
6
7
  export { ChartsGroupedYAxisTicks };
@@ -7,8 +7,8 @@ Object.defineProperty(exports, "__esModule", {
7
7
  value: true
8
8
  });
9
9
  exports.ChartsGroupedYAxisTicks = ChartsGroupedYAxisTicks;
10
- var _formatErrorMessage2 = _interopRequireDefault(require("@mui/x-internals/formatErrorMessage"));
11
10
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
+ var _formatErrorMessage2 = _interopRequireDefault(require("@mui/x-internals/formatErrorMessage"));
12
12
  var React = _interopRequireWildcard(require("react"));
13
13
  var _scaleGuards = require("../internals/scaleGuards");
14
14
  var _useChartsContext = require("../context/ChartsProvider/useChartsContext");
@@ -17,23 +17,11 @@ var _useTicksGrouped = require("../hooks/useTicksGrouped");
17
17
  var _useAxisTicksProps = require("./useAxisTicksProps");
18
18
  var _useStore = require("../internals/store/useStore");
19
19
  var _useChartAxisAutoSize = require("../internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisAutoSize.selectors");
20
+ var _getGroupingConfig = require("../internals/getGroupingConfig");
20
21
  var _jsxRuntime = require("react/jsx-runtime");
21
- const DEFAULT_GROUPING_CONFIG = {
22
- tickSize: 6
23
- };
24
- const getGroupingConfig = (groups, groupIndex, tickSize, computedGroupTickSizes) => {
25
- const config = groups[groupIndex] ?? {};
26
- const defaultTickSize = tickSize ?? DEFAULT_GROUPING_CONFIG.tickSize;
27
- const calculatedTickSize = defaultTickSize * groupIndex * 2 + defaultTickSize;
28
- return (0, _extends2.default)({}, DEFAULT_GROUPING_CONFIG, config, {
29
- tickSize: computedGroupTickSizes?.[groupIndex] ?? config.tickSize ?? calculatedTickSize
30
- });
31
- };
32
-
33
22
  /**
34
23
  * @ignore - internal component.
35
- */
36
- function ChartsGroupedYAxisTicks(inProps) {
24
+ */function ChartsGroupedYAxisTicks(inProps) {
37
25
  const {
38
26
  yScale,
39
27
  defaultizedProps,
@@ -88,7 +76,7 @@ function ChartsGroupedYAxisTicks(inProps) {
88
76
  const tickLabel = item.formattedValue;
89
77
  const ignoreTick = item.ignoreTick ?? false;
90
78
  const groupIndex = item.groupIndex ?? 0;
91
- const groupConfig = getGroupingConfig(groups, groupIndex, tickSize, computedGroupTickSizes);
79
+ const groupConfig = (0, _getGroupingConfig.getGroupingConfig)(groups, groupIndex, tickSize, computedGroupTickSizes);
92
80
  const tickXSize = positionSign * groupConfig.tickSize;
93
81
  const labelPositionX = positionSign * (groupConfig.tickSize + _utilities.TICK_LABEL_GAP);
94
82
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("g", {
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
- import _formatErrorMessage from "@mui/x-internals/formatErrorMessage";
4
3
  import _extends from "@babel/runtime/helpers/esm/extends";
4
+ import _formatErrorMessage from "@mui/x-internals/formatErrorMessage";
5
5
  import * as React from 'react';
6
6
  import { isOrdinalScale } from "../internals/scaleGuards.mjs";
7
7
  import { useChartsContext } from "../context/ChartsProvider/useChartsContext.mjs";
@@ -10,22 +10,12 @@ import { useTicksGrouped } from "../hooks/useTicksGrouped.mjs";
10
10
  import { useAxisTicksProps } from "./useAxisTicksProps.mjs";
11
11
  import { useStore } from "../internals/store/useStore.mjs";
12
12
  import { selectorChartYAxisAutoSizeResults } from "../internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisAutoSize.selectors.mjs";
13
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
14
- const DEFAULT_GROUPING_CONFIG = {
15
- tickSize: 6
16
- };
17
- const getGroupingConfig = (groups, groupIndex, tickSize, computedGroupTickSizes) => {
18
- const config = groups[groupIndex] ?? {};
19
- const defaultTickSize = tickSize ?? DEFAULT_GROUPING_CONFIG.tickSize;
20
- const calculatedTickSize = defaultTickSize * groupIndex * 2 + defaultTickSize;
21
- return _extends({}, DEFAULT_GROUPING_CONFIG, config, {
22
- tickSize: computedGroupTickSizes?.[groupIndex] ?? config.tickSize ?? calculatedTickSize
23
- });
24
- };
13
+ import { getGroupingConfig } from "../internals/getGroupingConfig.mjs";
25
14
 
26
15
  /**
27
16
  * @ignore - internal component.
28
17
  */
18
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
29
19
  function ChartsGroupedYAxisTicks(inProps) {
30
20
  const {
31
21
  yScale,
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import type { ChartsYAxisProps } from "../models/axis.mjs";
2
3
  import type { OrdinalTimeTicks } from "../models/timeTicks.mjs";
3
4
  interface ChartsSingleYAxisProps extends ChartsYAxisProps {
@@ -7,5 +8,5 @@ interface ChartsSingleYAxisProps extends ChartsYAxisProps {
7
8
  /**
8
9
  * @ignore - internal component.
9
10
  */
10
- declare function ChartsSingleYAxisTicks(inProps: ChartsSingleYAxisProps): import("react/jsx-runtime").JSX.Element;
11
+ declare function ChartsSingleYAxisTicks(inProps: ChartsSingleYAxisProps): React.JSX.Element;
11
12
  export { ChartsSingleYAxisTicks };
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import type { ChartsYAxisProps } from "../models/axis.js";
2
3
  import type { OrdinalTimeTicks } from "../models/timeTicks.js";
3
4
  interface ChartsSingleYAxisProps extends ChartsYAxisProps {
@@ -7,5 +8,5 @@ interface ChartsSingleYAxisProps extends ChartsYAxisProps {
7
8
  /**
8
9
  * @ignore - internal component.
9
10
  */
10
- declare function ChartsSingleYAxisTicks(inProps: ChartsSingleYAxisProps): import("react/jsx-runtime").JSX.Element;
11
+ declare function ChartsSingleYAxisTicks(inProps: ChartsSingleYAxisProps): React.JSX.Element;
11
12
  export { ChartsSingleYAxisTicks };
@@ -10,7 +10,7 @@ export interface ChartsYAxisSlotProps extends ChartsAxisSlotProps {}
10
10
  *
11
11
  * - [ChartsYAxis API](https://mui.com/x/api/charts/charts-y-axis/)
12
12
  */
13
- declare function ChartsYAxis(inProps: ChartsYAxisProps): import("react/jsx-runtime").JSX.Element | null;
13
+ declare function ChartsYAxis(inProps: ChartsYAxisProps): import("react").JSX.Element | null;
14
14
  declare namespace ChartsYAxis {
15
15
  var propTypes: any;
16
16
  }
@@ -10,7 +10,7 @@ export interface ChartsYAxisSlotProps extends ChartsAxisSlotProps {}
10
10
  *
11
11
  * - [ChartsYAxis API](https://mui.com/x/api/charts/charts-y-axis/)
12
12
  */
13
- declare function ChartsYAxis(inProps: ChartsYAxisProps): import("react/jsx-runtime").JSX.Element | null;
13
+ declare function ChartsYAxis(inProps: ChartsYAxisProps): import("react").JSX.Element | null;
14
14
  declare namespace ChartsYAxis {
15
15
  var propTypes: any;
16
16
  }
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import type { ChartsYAxisProps, ComputedAxis, ScaleName } from "../models/axis.mjs";
2
3
  interface ChartsYAxisImplProps extends Omit<ChartsYAxisProps, 'axis'> {
3
4
  axis: ComputedAxis<ScaleName, any, ChartsYAxisProps>;
@@ -8,5 +9,5 @@ interface ChartsYAxisImplProps extends Omit<ChartsYAxisProps, 'axis'> {
8
9
  export declare function ChartsYAxisImpl({
9
10
  axis,
10
11
  ...inProps
11
- }: ChartsYAxisImplProps): import("react/jsx-runtime").JSX.Element | null;
12
+ }: ChartsYAxisImplProps): React.JSX.Element | null;
12
13
  export {};