@mui/x-charts 9.14.0 → 9.15.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 (316) hide show
  1. package/BarChart/AnimatedBarElement.mjs +2 -2
  2. package/BarChart/BarChart.mjs +1 -1
  3. package/BarChart/BarElement.mjs +2 -2
  4. package/BarChart/BarLabel/BarLabel.mjs +2 -2
  5. package/BarChart/BarLabel/BarLabelItem.mjs +2 -2
  6. package/BarChart/BarLabel/BarLabelPlot.mjs +2 -2
  7. package/BarChart/BarPlot.mjs +2 -2
  8. package/BarChart/BatchBarPlot/BarGroup.mjs +2 -2
  9. package/BarChart/FocusedBar.mjs +1 -1
  10. package/BarChart/IndividualBarPlot.mjs +2 -2
  11. package/BarChart/checkBarChartScaleErrors.js +1 -1
  12. package/BarChart/checkBarChartScaleErrors.mjs +2 -2
  13. package/BarChart/seriesConfig/bar/getSeriesWithDefaultValues.mjs +1 -1
  14. package/BarChart/seriesConfig/bar/seriesProcessor.mjs +1 -1
  15. package/BarChart/seriesConfig/bar/tooltipPosition.js +1 -1
  16. package/BarChart/seriesConfig/bar/tooltipPosition.mjs +1 -1
  17. package/BarChart/useBarChartProps.mjs +2 -2
  18. package/BarChart/useBarPlotData.mjs +1 -1
  19. package/CHANGELOG.md +176 -0
  20. package/ChartsAxisHighlight/ChartsAxisHighlightPath.mjs +1 -1
  21. package/ChartsAxisHighlightValue/ChartsAxisHighlightValue.mjs +1 -1
  22. package/ChartsAxisHighlightValue/ChartsAxisHighlightValueItem.mjs +1 -1
  23. package/ChartsBrushOverlay/ChartsBrushOverlay.mjs +1 -1
  24. package/ChartsClipPath/ChartsClipPath.mjs +1 -1
  25. package/ChartsContainer/ChartsContainer.mjs +1 -1
  26. package/ChartsContainer/useChartsContainerProps.mjs +2 -2
  27. package/ChartsDataProvider/ChartsDataProvider.mjs +1 -1
  28. package/ChartsDataProvider/useChartsDataProviderProps.mjs +2 -2
  29. package/ChartsGrid/ChartsGrid.mjs +2 -2
  30. package/ChartsLabel/ChartsLabel.mjs +2 -2
  31. package/ChartsLabel/ChartsLabelGradient.mjs +2 -2
  32. package/ChartsLabel/ChartsLabelMark.mjs +2 -2
  33. package/ChartsLayerContainer/ChartsLayerContainer.js +1 -1
  34. package/ChartsLayerContainer/ChartsLayerContainer.mjs +4 -4
  35. package/ChartsLegend/ChartsLegend.mjs +2 -2
  36. package/ChartsLegend/ContinuousColorLegend.mjs +2 -2
  37. package/ChartsLegend/PiecewiseColorLegend.mjs +2 -2
  38. package/ChartsLocalizationProvider/ChartsLocalizationProvider.mjs +2 -2
  39. package/ChartsOverlay/ChartsLoadingOverlay.mjs +1 -1
  40. package/ChartsOverlay/ChartsNoDataOverlay.mjs +1 -1
  41. package/ChartsOverlay/ChartsOverlay.mjs +1 -1
  42. package/ChartsOverlay/common.mjs +1 -1
  43. package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlightPath.mjs +1 -1
  44. package/ChartsRadialDataProvider/ChartsRadialDataProvider.mjs +1 -1
  45. package/ChartsRadialDataProvider/useChartsRadialDataProviderProps.mjs +2 -2
  46. package/ChartsRadialGrid/ChartsRadialGrid.mjs +2 -2
  47. package/ChartsRadiusAxis/ChartsRadiusAxis.mjs +1 -1
  48. package/ChartsReferenceLine/ChartsReferenceLine.mjs +1 -1
  49. package/ChartsReferenceLine/ChartsXReferenceLine.js +1 -1
  50. package/ChartsReferenceLine/ChartsXReferenceLine.mjs +3 -3
  51. package/ChartsReferenceLine/ChartsYReferenceLine.js +1 -1
  52. package/ChartsReferenceLine/ChartsYReferenceLine.mjs +3 -3
  53. package/ChartsReferenceLine/common.mjs +1 -1
  54. package/ChartsRotationAxis/ChartsRotationAxis.mjs +1 -1
  55. package/ChartsSurface/ChartsSurface.mjs +2 -2
  56. package/ChartsSvgLayer/ChartsSvgLayer.mjs +2 -2
  57. package/ChartsText/ChartsText.mjs +2 -2
  58. package/ChartsTooltip/ChartsTooltip.mjs +2 -2
  59. package/ChartsTooltip/ChartsTooltipContainer.js +2 -2
  60. package/ChartsTooltip/ChartsTooltipContainer.mjs +5 -5
  61. package/ChartsWrapper/ChartsWrapper.mjs +2 -2
  62. package/ChartsXAxis/ChartsGroupedXAxisTicks.mjs +1 -1
  63. package/ChartsXAxis/ChartsSingleXAxisTicks.mjs +1 -1
  64. package/ChartsXAxis/ChartsXAxis.mjs +1 -1
  65. package/ChartsXAxis/ChartsXAxisImpl.js +2 -1
  66. package/ChartsXAxis/ChartsXAxisImpl.mjs +4 -3
  67. package/ChartsXAxis/useAxisTicksProps.d.mts +17 -17
  68. package/ChartsXAxis/useAxisTicksProps.d.ts +17 -17
  69. package/ChartsXAxis/useAxisTicksProps.js +2 -1
  70. package/ChartsXAxis/useAxisTicksProps.mjs +4 -3
  71. package/ChartsYAxis/ChartsGroupedYAxisTicks.mjs +1 -1
  72. package/ChartsYAxis/ChartsSingleYAxisTicks.mjs +1 -1
  73. package/ChartsYAxis/ChartsYAxis.mjs +1 -1
  74. package/ChartsYAxis/ChartsYAxisImpl.js +2 -1
  75. package/ChartsYAxis/ChartsYAxisImpl.mjs +4 -3
  76. package/ChartsYAxis/useAxisTicksProps.d.mts +17 -17
  77. package/ChartsYAxis/useAxisTicksProps.d.ts +17 -17
  78. package/ChartsYAxis/useAxisTicksProps.js +2 -1
  79. package/ChartsYAxis/useAxisTicksProps.mjs +4 -3
  80. package/Gauge/Gauge.mjs +2 -2
  81. package/Gauge/GaugeContainer.mjs +2 -2
  82. package/Gauge/GaugeReferenceArc.mjs +2 -2
  83. package/Gauge/GaugeValueArc.mjs +2 -2
  84. package/Gauge/GaugeValueText.mjs +2 -2
  85. package/LineChart/AnimatedArea.mjs +2 -2
  86. package/LineChart/AnimatedLine.mjs +2 -2
  87. package/LineChart/AreaElement.mjs +2 -2
  88. package/LineChart/AreaPlot.mjs +2 -2
  89. package/LineChart/CircleMarkElement.mjs +2 -2
  90. package/LineChart/LineChart.mjs +1 -1
  91. package/LineChart/LineElement.mjs +2 -2
  92. package/LineChart/LineHighlightElement.d.mts +3 -3
  93. package/LineChart/LineHighlightElement.d.ts +3 -3
  94. package/LineChart/LineHighlightElement.js +2 -2
  95. package/LineChart/LineHighlightElement.mjs +4 -4
  96. package/LineChart/LineHighlightPlot.mjs +2 -2
  97. package/LineChart/LinePlot.mjs +2 -2
  98. package/LineChart/MarkElement.mjs +2 -2
  99. package/LineChart/MarkPlot.mjs +2 -2
  100. package/LineChart/seriesConfig/getSeriesWithDefaultValues.mjs +1 -1
  101. package/LineChart/seriesConfig/tooltipPosition.js +1 -1
  102. package/LineChart/seriesConfig/tooltipPosition.mjs +1 -1
  103. package/LineChart/useLineChartProps.mjs +2 -2
  104. package/LineChart/useLinePlotData.js +1 -1
  105. package/LineChart/useLinePlotData.mjs +2 -2
  106. package/PieChart/FocusedPieArc.mjs +2 -2
  107. package/PieChart/PieArc.mjs +2 -2
  108. package/PieChart/PieArcLabel.mjs +2 -2
  109. package/PieChart/PieArcLabelPlot.mjs +2 -2
  110. package/PieChart/PieArcPlot.mjs +2 -2
  111. package/PieChart/PieChart.mjs +2 -2
  112. package/PieChart/dataTransform/getModifiedArcProperties.mjs +1 -1
  113. package/PieChart/dataTransform/useTransformData.mjs +1 -1
  114. package/PieChart/seriesConfig/getSeriesWithDefaultValues.mjs +1 -1
  115. package/PieChart/seriesConfig/seriesProcessor.mjs +1 -1
  116. package/PieChart/seriesConfig/tooltip.mjs +1 -1
  117. package/PieChart/seriesConfig/tooltipPosition.js +1 -1
  118. package/PieChart/seriesConfig/tooltipPosition.mjs +1 -1
  119. package/RadarChart/FocusedRadarMark.mjs +1 -1
  120. package/RadarChart/RadarAxis/RadarAxis.mjs +1 -1
  121. package/RadarChart/RadarAxis/useRadarAxis.js +1 -1
  122. package/RadarChart/RadarAxis/useRadarAxis.mjs +1 -1
  123. package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.mjs +1 -1
  124. package/RadarChart/RadarChart.mjs +1 -1
  125. package/RadarChart/RadarDataProvider/RadarDataProvider.mjs +2 -2
  126. package/RadarChart/RadarMetricLabels/RadarMetricLabels.js +2 -1
  127. package/RadarChart/RadarMetricLabels/RadarMetricLabels.mjs +3 -2
  128. package/RadarChart/RadarSeriesPlot/RadarSeriesArea.mjs +2 -2
  129. package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.mjs +2 -2
  130. package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.mjs +1 -1
  131. package/RadarChart/RadarSeriesPlot/useRadarSeriesData.mjs +1 -1
  132. package/RadarChart/seriesConfig/getSeriesWithDefaultValues.mjs +1 -1
  133. package/RadarChart/seriesConfig/seriesProcessor.mjs +1 -1
  134. package/RadarChart/seriesConfig/tooltipPosition.js +1 -1
  135. package/RadarChart/seriesConfig/tooltipPosition.mjs +1 -1
  136. package/RadarChart/useRadarChartProps.mjs +1 -1
  137. package/ScatterChart/FocusedScatterMark.mjs +2 -2
  138. package/ScatterChart/HighlightedScatterMark.mjs +2 -2
  139. package/ScatterChart/Scatter.mjs +2 -2
  140. package/ScatterChart/ScatterChart.mjs +1 -1
  141. package/ScatterChart/ScatterMarker.mjs +2 -2
  142. package/ScatterChart/ScatterPlot.mjs +1 -1
  143. package/ScatterChart/async/ScatterAsyncBatch.mjs +2 -2
  144. package/ScatterChart/async/scatterRenderData.selectors.js +1 -1
  145. package/ScatterChart/async/scatterRenderData.selectors.mjs +1 -1
  146. package/ScatterChart/seriesConfig/getSeriesWithDefaultValues.mjs +1 -1
  147. package/ScatterChart/seriesConfig/seriesProcessor.mjs +1 -1
  148. package/ScatterChart/seriesConfig/tooltipPosition.js +1 -1
  149. package/ScatterChart/seriesConfig/tooltipPosition.mjs +1 -1
  150. package/ScatterChart/useScatterChartProps.mjs +2 -2
  151. package/SparkLineChart/SparkLineChart.js +21 -21
  152. package/SparkLineChart/SparkLineChart.mjs +23 -23
  153. package/Toolbar/Toolbar.mjs +2 -2
  154. package/Toolbar/ToolbarButton.mjs +2 -2
  155. package/context/ChartsProvider/ChartsProvider.types.d.mts +1 -1
  156. package/context/ChartsProvider/ChartsProvider.types.d.ts +1 -1
  157. package/context/ChartsSlotsContext.mjs +1 -1
  158. package/hooks/animation/useAnimate.mjs +1 -1
  159. package/hooks/useAxisCoordinates.mjs +1 -1
  160. package/hooks/useAxisTicks.mjs +1 -1
  161. package/hooks/useIsItemFocusedGetter.js +1 -1
  162. package/hooks/useIsItemFocusedGetter.mjs +1 -1
  163. package/index.js +1 -1
  164. package/index.mjs +1 -1
  165. package/internals/Flatbush.js +9 -0
  166. package/internals/Flatbush.mjs +9 -0
  167. package/internals/commonNextFocusItem.d.mts +46 -0
  168. package/internals/commonNextFocusItem.d.ts +46 -0
  169. package/internals/commonNextFocusItem.js +241 -0
  170. package/internals/commonNextFocusItem.mjs +235 -0
  171. package/internals/components/AxisSharedComponents.mjs +1 -1
  172. package/internals/components/ChartsAxesGradients/ChartsContinuousGradientObjectBound.mjs +1 -1
  173. package/internals/consumeSlots.mjs +2 -2
  174. package/internals/consumeThemeProps.js +1 -2
  175. package/internals/consumeThemeProps.mjs +1 -1
  176. package/internals/createCommonKeyboardFocusHandler.js +16 -0
  177. package/internals/createCommonKeyboardFocusHandler.mjs +17 -1
  178. package/internals/defaultizeMargin.mjs +1 -1
  179. package/internals/geometry.js +1 -1
  180. package/internals/geometry.mjs +1 -1
  181. package/internals/getGroupingConfig.mjs +1 -1
  182. package/internals/getInlineTypographyStyle.d.mts +9 -0
  183. package/internals/getInlineTypographyStyle.d.ts +9 -0
  184. package/internals/getInlineTypographyStyle.js +22 -0
  185. package/internals/getInlineTypographyStyle.mjs +16 -0
  186. package/internals/getLineLikeTooltip.mjs +1 -1
  187. package/internals/getWordsByLines.mjs +1 -1
  188. package/internals/material/index.mjs +1 -1
  189. package/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.mjs +1 -1
  190. package/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.selectors.js +1 -1
  191. package/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.selectors.mjs +1 -1
  192. package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.mjs +1 -1
  193. package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.js +1 -1
  194. package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.mjs +1 -1
  195. package/internals/plugins/corePlugins/useChartId/useChartId.mjs +1 -1
  196. package/internals/plugins/corePlugins/useChartId/useChartId.selectors.js +1 -1
  197. package/internals/plugins/corePlugins/useChartId/useChartId.selectors.mjs +1 -1
  198. package/internals/plugins/corePlugins/useChartSeries/useChartSeries.mjs +1 -1
  199. package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.js +1 -1
  200. package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.mjs +1 -1
  201. package/internals/plugins/corePlugins/useChartSeries/useChartSeriesLayout.selectors.js +1 -1
  202. package/internals/plugins/corePlugins/useChartSeries/useChartSeriesLayout.selectors.mjs +1 -1
  203. package/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.mjs +1 -1
  204. package/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.selectors.js +1 -1
  205. package/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.selectors.mjs +1 -1
  206. package/internals/plugins/featurePlugins/useChartBrush/useChartBrush.mjs +1 -1
  207. package/internals/plugins/featurePlugins/useChartBrush/useChartBrush.selectors.js +1 -1
  208. package/internals/plugins/featurePlugins/useChartBrush/useChartBrush.selectors.mjs +1 -1
  209. package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisAutoSize.mjs +1 -1
  210. package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.mjs +1 -1
  211. package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.mjs +1 -1
  212. package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeZoom.mjs +1 -1
  213. package/internals/plugins/featurePlugins/useChartCartesianAxis/sampling.selectors.js +1 -1
  214. package/internals/plugins/featurePlugins/useChartCartesianAxis/sampling.selectors.mjs +1 -1
  215. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisAutoSize.selectors.js +1 -1
  216. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisAutoSize.selectors.mjs +1 -1
  217. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisDomains.selectors.js +1 -1
  218. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisDomains.selectors.mjs +1 -1
  219. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisExtrema.selectors.js +1 -1
  220. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisExtrema.selectors.mjs +1 -1
  221. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.js +1 -1
  222. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.mjs +1 -1
  223. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.js +3 -3
  224. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.mjs +4 -4
  225. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPosition.selectors.js +1 -1
  226. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPosition.selectors.mjs +1 -1
  227. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPreview.selectors.js +1 -1
  228. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPreview.selectors.mjs +1 -1
  229. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.mts +10 -10
  230. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +10 -10
  231. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.js +1 -1
  232. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.mjs +2 -2
  233. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianHighlight.selectors.d.mts +10 -10
  234. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianHighlight.selectors.d.ts +10 -10
  235. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianHighlight.selectors.js +1 -1
  236. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianHighlight.selectors.mjs +2 -2
  237. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.js +1 -1
  238. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.mjs +1 -1
  239. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianTooltip.selectors.js +1 -1
  240. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianTooltip.selectors.mjs +1 -1
  241. package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.mjs +1 -1
  242. package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.selectors.js +1 -1
  243. package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.selectors.mjs +1 -1
  244. package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.js +1 -1
  245. package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.mjs +2 -2
  246. package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.js +1 -1
  247. package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.mjs +1 -1
  248. package/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.js +1 -1
  249. package/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.mjs +2 -2
  250. package/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.js +1 -1
  251. package/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.mjs +1 -1
  252. package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.js +8 -4
  253. package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.mjs +9 -5
  254. package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.js +2 -2
  255. package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.mjs +2 -2
  256. package/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.mjs +1 -1
  257. package/internals/plugins/featurePlugins/useChartPolarAxis/defaultizeAxis.mjs +1 -1
  258. package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.js +1 -1
  259. package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.mjs +3 -3
  260. package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.js +1 -1
  261. package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.mjs +1 -1
  262. package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.d.mts +3 -3
  263. package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.d.ts +3 -3
  264. package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.js +3 -3
  265. package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.mjs +3 -3
  266. package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.js +1 -1
  267. package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.mjs +2 -2
  268. package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.js +1 -1
  269. package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.mjs +1 -1
  270. package/internals/plugins/featurePlugins/useChartVisibilityManager/useChartVisibilityManager.mjs +1 -1
  271. package/internals/plugins/featurePlugins/useChartVisibilityManager/useChartVisibilityManager.selectors.js +1 -1
  272. package/internals/plugins/featurePlugins/useChartVisibilityManager/useChartVisibilityManager.selectors.mjs +1 -1
  273. package/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.mjs +1 -1
  274. package/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.selectors.js +1 -1
  275. package/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.selectors.mjs +1 -1
  276. package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.mjs +1 -1
  277. package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.selectors.js +1 -1
  278. package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.selectors.mjs +1 -1
  279. package/internals/plugins/models/plugin.d.mts +1 -1
  280. package/internals/plugins/models/plugin.d.ts +1 -1
  281. package/internals/plugins/utils/useLazySelectorEffect.d.mts +1 -1
  282. package/internals/plugins/utils/useLazySelectorEffect.d.ts +1 -1
  283. package/internals/processLineLikeSeries.mjs +1 -1
  284. package/internals/seriesSelectorOfType.js +2 -2
  285. package/internals/seriesSelectorOfType.mjs +2 -2
  286. package/internals/store/extractPluginParamsFromProps.mjs +1 -1
  287. package/internals/store/useCharts.d.mts +1 -1
  288. package/internals/store/useCharts.d.ts +1 -1
  289. package/internals/store/useCharts.js +1 -1
  290. package/internals/store/useCharts.mjs +1 -1
  291. package/internals/store/useStore.d.mts +1 -1
  292. package/internals/store/useStore.d.ts +1 -1
  293. package/internals/ts-generic.d.mts +1 -1
  294. package/internals/ts-generic.d.ts +1 -1
  295. package/locales/elGR.d.mts +1 -1
  296. package/locales/elGR.d.ts +1 -1
  297. package/locales/enUS.d.mts +1 -1
  298. package/locales/enUS.d.ts +1 -1
  299. package/locales/frFR.d.mts +1 -1
  300. package/locales/frFR.d.ts +1 -1
  301. package/locales/nbNO.d.mts +1 -1
  302. package/locales/nbNO.d.ts +1 -1
  303. package/locales/ptBR.d.mts +1 -1
  304. package/locales/ptBR.d.ts +1 -1
  305. package/locales/ptPT.d.mts +1 -1
  306. package/locales/ptPT.d.ts +1 -1
  307. package/locales/svSE.d.mts +1 -1
  308. package/locales/svSE.d.ts +1 -1
  309. package/locales/utils/chartsLocaleTextApi.d.mts +1 -1
  310. package/locales/utils/chartsLocaleTextApi.d.ts +1 -1
  311. package/locales/utils/getChartsLocalization.d.mts +1 -1
  312. package/locales/utils/getChartsLocalization.d.ts +1 -1
  313. package/locales/utils/getChartsLocalization.mjs +1 -1
  314. package/package.json +7 -6
  315. package/tests/web-components.js +1 -0
  316. package/tests/web-components.mjs +1 -0
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
3
  import * as React from 'react';
4
- import { warnOnce } from '@mui/x-internals/warning';
4
+ import { errorOnce } from '@mui/x-internals/warning';
5
5
  import { line as d3Line } from '@mui/x-charts-vendor/d3-shape';
6
6
  import { useChartGradientIdBuilder } from "../hooks/useChartGradientId.mjs";
7
7
  import { isOrdinalScale } from "../internals/scaleGuards.mjs";
@@ -81,7 +81,7 @@ samplingOverride) {
81
81
  throw new Error(`MUI X Charts: ${xAxisId === DEFAULT_X_AXIS_KEY ? 'The first `xAxis`' : `The x-axis with id "${xAxisId}"`} should have a data property to be able to display a line plot. ` + 'The x-axis data defines the positions for each point in the line. ' + 'Provide a data array to the x-axis configuration.');
82
82
  }
83
83
  if (xData.length < stackedData.length) {
84
- warnOnce(`MUI X Charts: The data length of the x axis (${xData.length} items) is lower than the length of series (${stackedData.length} items).`, 'error');
84
+ errorOnce(`MUI X Charts: The data length of the x axis (${xData.length} items) is lower than the length of series (${stackedData.length} items).`);
85
85
  }
86
86
  }
87
87
  const shouldExpand = curve?.includes('step') && !strictStepCurve && isOrdinalScale(xScale);
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
4
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
+ import _extends from "@babel/runtime/helpers/extends";
4
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
5
5
  const _excluded = ["arcLabelRadius"];
6
6
  import { useTheme } from '@mui/material/styles';
7
7
  import PropTypes from 'prop-types';
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
4
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
+ import _extends from "@babel/runtime/helpers/extends";
4
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
5
5
  const _excluded = ["className", "classes", "color", "dataIndex", "seriesId", "isFaded", "isHighlighted", "isFocused", "onClick", "cornerRadius", "startAngle", "endAngle", "innerRadius", "outerRadius", "paddingAngle", "skipAnimation", "stroke", "skipInteraction"];
6
6
  import * as React from 'react';
7
7
  import PropTypes from 'prop-types';
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
4
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
+ import _extends from "@babel/runtime/helpers/extends";
4
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
5
5
  const _excluded = ["seriesId", "classes", "color", "startAngle", "endAngle", "paddingAngle", "arcLabelRadius", "cornerRadius", "formattedArcLabel", "isHighlighted", "isFaded", "skipAnimation", "hidden", "className"];
6
6
  import * as React from 'react';
7
7
  import PropTypes from 'prop-types';
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
4
- import _extends from "@babel/runtime/helpers/esm/extends";
3
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
4
+ import _extends from "@babel/runtime/helpers/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';
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
4
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
+ import _extends from "@babel/runtime/helpers/extends";
4
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
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';
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
4
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
+ import _extends from "@babel/runtime/helpers/extends";
4
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
5
5
  const _excluded = ["series", "width", "height", "margin", "colors", "sx", "skipAnimation", "hideLegend", "children", "slots", "slotProps", "onItemClick", "loading", "highlightedItem", "onHighlightChange", "className", "showToolbar"];
6
6
  import * as React from 'react';
7
7
  import PropTypes from 'prop-types';
@@ -1,4 +1,4 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
1
+ import _extends from "@babel/runtime/helpers/extends";
2
2
  import { deg2rad } from "../../internals/angleConversion.mjs";
3
3
 
4
4
  /**
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
3
+ import _extends from "@babel/runtime/helpers/extends";
4
4
  import * as React from 'react';
5
5
  import { useItemHighlightStateGetter } from "../../hooks/useItemHighlightStateGetter.mjs";
6
6
  import { useIsItemFocusedGetter } from "../../hooks/useIsItemFocusedGetter.mjs";
@@ -1,4 +1,4 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
1
+ import _extends from "@babel/runtime/helpers/extends";
2
2
  const getSeriesWithDefaultValues = (seriesData, seriesIndex, colors) => {
3
3
  return _extends({}, seriesData, {
4
4
  id: seriesData.id ?? `auto-generated-id-${seriesIndex}`,
@@ -1,4 +1,4 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
1
+ import _extends from "@babel/runtime/helpers/extends";
2
2
  import { pie as d3Pie } from '@mui/x-charts-vendor/d3-shape';
3
3
  import { getLabel } from "../../internals/getLabel.mjs";
4
4
  import { deg2rad } from "../../internals/angleConversion.mjs";
@@ -1,4 +1,4 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
1
+ import _extends from "@babel/runtime/helpers/extends";
2
2
  import { getLabel } from "../../internals/getLabel.mjs";
3
3
  const tooltipGetter = params => {
4
4
  const {
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.selectorTooltipItemPosition = void 0;
7
- var _store = require("@mui/x-internals/store");
7
+ var _store = require("@base-ui/utils/store");
8
8
  var _findMinMax = require("../../internals/findMinMax");
9
9
  var _useChartTooltip = require("../../internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors");
10
10
  var _useChartSeries = require("../../internals/plugins/corePlugins/useChartSeries");
@@ -1,4 +1,4 @@
1
- import { createSelectorMemoized } from '@mui/x-internals/store';
1
+ import { createSelectorMemoized } from '@base-ui/utils/store';
2
2
  import { findMinMax } from "../../internals/findMinMax.mjs";
3
3
  import { selectorChartsTooltipItem } from "../../internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.mjs";
4
4
  import { selectorChartSeriesProcessed, selectorChartSeriesLayout } from "../../internals/plugins/corePlugins/useChartSeries/index.mjs";
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
3
+ import _extends from "@babel/runtime/helpers/extends";
4
4
  import * as React from 'react';
5
5
  import { useTheme } from '@mui/material/styles';
6
6
  import { useFocusedItem } from "../hooks/useFocusedItem.mjs";
@@ -1,4 +1,4 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
1
+ import _extends from "@babel/runtime/helpers/extends";
2
2
  import * as React from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import clsx from 'clsx';
@@ -39,7 +39,7 @@ function useRadarAxis(params) {
39
39
  }
40
40
  const existingMetrics = rotationScale.domain();
41
41
  if (process.env.NODE_ENV !== 'production' && !existingMetrics.includes(metric)) {
42
- (0, _warning.warnOnce)([`MUI X Charts: Your radar axis tries to display values for the metric "${metric}" which does not exist.`, `Either add this metric to your radar, or pick one from the existing metrics: ${existingMetrics.join(', ')}`]);
42
+ (0, _warning.warnOnce)([`MUI X Charts: Your radar axis tries to display values for the metric "${metric}" which does not exist.`, `Either add this metric to your radar, or pick one from the existing metrics: ${existingMetrics.join(', ')}`].join('\n'));
43
43
  }
44
44
  const anglesWithDefault = angle !== undefined ? (0, _degToRad.degToRad)(angle) : rotationScale(metric) ?? 0;
45
45
  const radiusRatio = Array.from({
@@ -33,7 +33,7 @@ export function useRadarAxis(params) {
33
33
  }
34
34
  const existingMetrics = rotationScale.domain();
35
35
  if (process.env.NODE_ENV !== 'production' && !existingMetrics.includes(metric)) {
36
- warnOnce([`MUI X Charts: Your radar axis tries to display values for the metric "${metric}" which does not exist.`, `Either add this metric to your radar, or pick one from the existing metrics: ${existingMetrics.join(', ')}`]);
36
+ warnOnce([`MUI X Charts: Your radar axis tries to display values for the metric "${metric}" which does not exist.`, `Either add this metric to your radar, or pick one from the existing metrics: ${existingMetrics.join(', ')}`].join('\n'));
37
37
  }
38
38
  const anglesWithDefault = angle !== undefined ? degToRad(angle) : rotationScale(metric) ?? 0;
39
39
  const radiusRatio = Array.from({
@@ -1,4 +1,4 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
1
+ import _extends from "@babel/runtime/helpers/extends";
2
2
  import PropTypes from 'prop-types';
3
3
  import clsx from 'clsx';
4
4
  import { useTheme } from '@mui/material/styles';
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
3
+ import _extends from "@babel/runtime/helpers/extends";
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import { useThemeProps } from '@mui/material/styles';
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
4
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
+ import _extends from "@babel/runtime/helpers/extends";
4
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
5
5
  const _excluded = ["series", "children", "width", "height", "colors", "skipAnimation", "margin", "radar", "highlight", "plugins"];
6
6
  import * as React from 'react';
7
7
  import { RADAR_PLUGINS } from "../RadarChart.plugins.mjs";
@@ -12,6 +12,7 @@ var _styles = require("@mui/material/styles");
12
12
  var _useRadarMetricData = require("./useRadarMetricData");
13
13
  var _defaultTextPlacement = require("../../ChartsText/defaultTextPlacement");
14
14
  var _ChartsText = require("../../ChartsText");
15
+ var _getInlineTypographyStyle = require("../../internals/getInlineTypographyStyle");
15
16
  var _jsxRuntime = require("react/jsx-runtime");
16
17
  function RadarMetricLabels() {
17
18
  const {
@@ -31,7 +32,7 @@ function RadarMetricLabels() {
31
32
  fill: (theme.vars || theme).palette.text.primary,
32
33
  stroke: "none",
33
34
  text: label,
34
- style: (0, _extends2.default)({}, theme.typography.caption, {
35
+ style: (0, _extends2.default)({}, (0, _getInlineTypographyStyle.getInlineTypographyStyle)(theme.typography.caption), {
35
36
  fontSize: 12,
36
37
  lineHeight: 1.25,
37
38
  textAnchor: (0, _defaultTextPlacement.getDefaultTextAnchor)(180 + angle),
@@ -1,9 +1,10 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
1
+ import _extends from "@babel/runtime/helpers/extends";
2
2
  import * as React from 'react';
3
3
  import { useTheme } from '@mui/material/styles';
4
4
  import { useRadarMetricData } from "./useRadarMetricData.mjs";
5
5
  import { getDefaultBaseline, getDefaultTextAnchor } from "../../ChartsText/defaultTextPlacement.mjs";
6
6
  import { ChartsText } from "../../ChartsText/index.mjs";
7
+ import { getInlineTypographyStyle } from "../../internals/getInlineTypographyStyle.mjs";
7
8
  import { jsx as _jsx } from "react/jsx-runtime";
8
9
  function RadarMetricLabels() {
9
10
  const {
@@ -23,7 +24,7 @@ function RadarMetricLabels() {
23
24
  fill: (theme.vars || theme).palette.text.primary,
24
25
  stroke: "none",
25
26
  text: label,
26
- style: _extends({}, theme.typography.caption, {
27
+ style: _extends({}, getInlineTypographyStyle(theme.typography.caption), {
27
28
  fontSize: 12,
28
29
  lineHeight: 1.25,
29
30
  textAnchor: getDefaultTextAnchor(180 + angle),
@@ -1,5 +1,5 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
2
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
3
3
  const _excluded = ["seriesId", "onItemClick", "classes"];
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
@@ -1,5 +1,5 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
2
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
3
3
  const _excluded = ["seriesId", "onItemClick", "classes"];
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
@@ -1,4 +1,4 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
1
+ import _extends from "@babel/runtime/helpers/extends";
2
2
  import PropTypes from 'prop-types';
3
3
  import clsx from 'clsx';
4
4
  import { useRadarSeriesData } from "./useRadarSeriesData.mjs";
@@ -1,4 +1,4 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
1
+ import _extends from "@babel/runtime/helpers/extends";
2
2
  import { useRotationScale } from "../../hooks/useScale.mjs";
3
3
  import { useRadarSeries } from "../../hooks/useRadarSeries.mjs";
4
4
  import { useRadiusAxes } from "../../hooks/useAxis.mjs";
@@ -1,4 +1,4 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
1
+ import _extends from "@babel/runtime/helpers/extends";
2
2
  const getSeriesWithDefaultValues = (seriesData, seriesIndex, colors) => {
3
3
  return _extends({}, seriesData, {
4
4
  id: seriesData.id ?? `auto-generated-id-${seriesIndex}`,
@@ -1,4 +1,4 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
1
+ import _extends from "@babel/runtime/helpers/extends";
2
2
  const defaultRadarValueFormatter = v => v == null ? '' : v.toLocaleString();
3
3
  const seriesProcessor = (params, _, isItemVisible) => {
4
4
  const {
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.selectorTooltipItemPosition = void 0;
7
- var _store = require("@mui/x-internals/store");
7
+ var _store = require("@base-ui/utils/store");
8
8
  var _coordinateTransformation = require("../../internals/plugins/featurePlugins/useChartPolarAxis/coordinateTransformation");
9
9
  var _useChartPolarAxis = require("../../internals/plugins/featurePlugins/useChartPolarAxis");
10
10
  var _useChartPolarAxis2 = require("../../internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors");
@@ -1,4 +1,4 @@
1
- import { createSelectorMemoized } from '@mui/x-internals/store';
1
+ import { createSelectorMemoized } from '@base-ui/utils/store';
2
2
  import { generatePolar2svg } from "../../internals/plugins/featurePlugins/useChartPolarAxis/coordinateTransformation.mjs";
3
3
  import { getDrawingAreaCenter } from "../../internals/plugins/featurePlugins/useChartPolarAxis/index.mjs";
4
4
  import { selectorChartRotationAxis, selectorChartRadiusAxis } from "../../internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.mjs";
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
 
3
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
4
4
  const _excluded = ["apiRef", "series", "radar", "width", "height", "margin", "colors", "sx", "children", "slots", "slotProps", "skipAnimation", "loading", "highlightedItem", "onHighlightChange", "hideLegend", "divisions", "shape", "stripeColor", "highlight", "showToolbar", "onAxisClick", "onAreaClick", "onMarkClick", "disableKeyboardNavigation", "focusItemOnClick", "experimentalFeatures", "className"];
5
5
  import { RADAR_PLUGINS } from "./RadarChart.plugins.mjs";
6
6
  /**
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
4
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
+ import _extends from "@babel/runtime/helpers/extends";
4
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
5
5
  const _excluded = ["className"];
6
6
  import * as React from 'react';
7
7
  import clsx from 'clsx';
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
4
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
+ import _extends from "@babel/runtime/helpers/extends";
4
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
5
5
  const _excluded = ["className"];
6
6
  import * as React from 'react';
7
7
  import clsx from 'clsx';
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
4
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
+ import _extends from "@babel/runtime/helpers/extends";
4
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
5
5
  const _excluded = ["ownerState"];
6
6
  import * as React from 'react';
7
7
  import PropTypes from 'prop-types';
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
3
+ import _extends from "@babel/runtime/helpers/extends";
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import { useThemeProps } from '@mui/material/styles';
@@ -1,5 +1,5 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
2
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
3
3
  const _excluded = ["seriesId", "isFaded", "isHighlighted", "x", "y", "color", "size", "dataIndex"];
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
3
+ import _extends from "@babel/runtime/helpers/extends";
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import clsx from 'clsx';
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
4
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
+ import _extends from "@babel/runtime/helpers/extends";
4
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
5
5
  const _excluded = ["ownerState"];
6
6
  import * as React from 'react';
7
7
  import clsx from 'clsx';
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.packScatterSeriesCoords = packScatterSeriesCoords;
7
7
  exports.selectorScatterSeriesRenderData = exports.selectorScatterRenderData = void 0;
8
- var _store = require("@mui/x-internals/store");
8
+ var _store = require("@base-ui/utils/store");
9
9
  var _getValueToPositionMapper = require("../../hooks/getValueToPositionMapper");
10
10
  var _useChartSeries = require("../../internals/plugins/corePlugins/useChartSeries");
11
11
  var _useChartDimensions = require("../../internals/plugins/corePlugins/useChartDimensions");
@@ -1,4 +1,4 @@
1
- import { createSelector, createSelectorMemoized } from '@mui/x-internals/store';
1
+ import { createSelector, createSelectorMemoized } from '@base-ui/utils/store';
2
2
  import { getValueToPositionMapper } from "../../hooks/getValueToPositionMapper.mjs";
3
3
  import { selectorChartSeriesProcessed } from "../../internals/plugins/corePlugins/useChartSeries/index.mjs";
4
4
  import { selectorChartDrawingArea } from "../../internals/plugins/corePlugins/useChartDimensions/index.mjs";
@@ -1,4 +1,4 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
1
+ import _extends from "@babel/runtime/helpers/extends";
2
2
  const getSeriesWithDefaultValues = (seriesData, seriesIndex, colors) => {
3
3
  return _extends({}, seriesData, {
4
4
  id: seriesData.id ?? `auto-generated-id-${seriesIndex}`,
@@ -1,4 +1,4 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
1
+ import _extends from "@babel/runtime/helpers/extends";
2
2
  import { incompleteDatasetKeysError } from "../../internals/incompleteDatasetKeysError.mjs";
3
3
  const seriesProcessor = ({
4
4
  series,
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.selectorTooltipItemPosition = void 0;
7
- var _store = require("@mui/x-internals/store");
7
+ var _store = require("@base-ui/utils/store");
8
8
  var _useChartTooltip = require("../../internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors");
9
9
  var _useChartSeries = require("../../internals/plugins/corePlugins/useChartSeries");
10
10
  var _useChartCartesianAxisRendering = require("../../internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors");
@@ -1,4 +1,4 @@
1
- import { createSelectorMemoized } from '@mui/x-internals/store';
1
+ import { createSelectorMemoized } from '@base-ui/utils/store';
2
2
  import { selectorChartsTooltipItem } from "../../internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.mjs";
3
3
  import { selectorChartSeriesProcessed } from "../../internals/plugins/corePlugins/useChartSeries/index.mjs";
4
4
  import { selectorChartXAxis, selectorChartYAxis } from "../../internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.mjs";
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
4
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
+ import _extends from "@babel/runtime/helpers/extends";
4
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
5
5
  const _excluded = ["xAxis", "yAxis", "zAxis", "series", "axisHighlight", "hitAreaRadius", "disableHitArea", "hideLegend", "width", "height", "margin", "colors", "sx", "grid", "onItemClick", "children", "slots", "slotProps", "loading", "highlightedItem", "onHighlightChange", "className", "showToolbar", "renderer", "brushConfig"];
6
6
  import * as React from 'react';
7
7
  import { SCATTER_CHART_PLUGINS } from "./ScatterChart.plugins.mjs";
@@ -16,13 +16,14 @@ var _ChartsClipPath = require("../ChartsClipPath");
16
16
  var _BarChart = require("../BarChart");
17
17
  var _LineChart = require("../LineChart");
18
18
  var _ChartsDataProvider = require("../ChartsDataProvider");
19
+ var _useChartsContainerProps = require("../ChartsContainer/useChartsContainerProps");
19
20
  var _ChartsSurface = require("../ChartsSurface");
20
21
  var _constants = require("../constants");
21
22
  var _ChartsTooltip = require("../ChartsTooltip");
22
23
  var _ChartsAxisHighlight = require("../ChartsAxisHighlight");
23
24
  var _FocusedLineMark = require("../LineChart/FocusedLineMark");
24
25
  var _jsxRuntime = require("react/jsx-runtime");
25
- const _excluded = ["xAxis", "yAxis", "width", "height", "margin", "color", "baseline", "sx", "showTooltip", "showHighlight", "axisHighlight", "children", "slots", "slotProps", "data", "plotType", "valueFormatter", "area", "curve", "className", "disableClipping", "clipAreaOffset", "onHighlightChange", "onHighlightedAxisChange", "highlightedAxis", "highlightedItem"];
26
+ const _excluded = ["xAxis", "yAxis", "width", "height", "margin", "color", "baseline", "sx", "showTooltip", "showHighlight", "axisHighlight", "children", "slots", "slotProps", "data", "plotType", "valueFormatter", "area", "curve", "className", "disableClipping", "clipAreaOffset", "onHighlightedAxisChange", "disableAxisListener"];
26
27
  const SPARK_LINE_DEFAULT_MARGIN = 5;
27
28
 
28
29
  /**
@@ -58,10 +59,8 @@ const SparkLineChart = exports.SparkLineChart = /*#__PURE__*/React.forwardRef(fu
58
59
  className,
59
60
  disableClipping,
60
61
  clipAreaOffset,
61
- onHighlightChange,
62
62
  onHighlightedAxisChange,
63
- highlightedAxis,
64
- highlightedItem
63
+ disableAxisListener
65
64
  } = props,
66
65
  other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
67
66
  const id = (0, _useId.default)();
@@ -110,24 +109,25 @@ const SparkLineChart = exports.SparkLineChart = /*#__PURE__*/React.forwardRef(fu
110
109
  }, yAxisProps, {
111
110
  position: 'none'
112
111
  })], [yAxisProps]);
113
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_ChartsDataProvider.ChartsDataProvider, {
114
- series: series,
115
- width: width,
116
- height: height,
117
- margin: margin,
118
- xAxis: xAxis,
119
- yAxis: yAxis,
120
- colors: colors,
121
- disableAxisListener: onHighlightedAxisChange === undefined && (!showTooltip || slotProps?.tooltip?.trigger !== 'axis') && axisHighlight?.x === 'none' && axisHighlight?.y === 'none',
122
- onHighlightChange: onHighlightChange,
123
- onHighlightedAxisChange: onHighlightedAxisChange,
124
- highlightedAxis: highlightedAxis,
125
- highlightedItem: highlightedItem,
126
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_ChartsSurface.ChartsSurface, (0, _extends2.default)({
112
+ const {
113
+ chartsDataProviderProps,
114
+ chartsSurfaceProps
115
+ } = (0, _useChartsContainerProps.useChartsContainerProps)((0, _extends2.default)({}, other, {
116
+ series,
117
+ width,
118
+ height,
119
+ margin,
120
+ colors,
121
+ xAxis,
122
+ yAxis,
123
+ onHighlightedAxisChange,
124
+ sx,
125
+ disableAxisListener: disableAxisListener ?? (onHighlightedAxisChange === undefined && (!showTooltip || (slotProps?.tooltip?.trigger ?? 'axis') !== 'axis') && !(showHighlight && plotType === 'line') && (axisHighlight?.x ?? 'none') === 'none' && (axisHighlight?.y ?? 'none') === 'none')
126
+ }));
127
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_ChartsDataProvider.ChartsDataProvider, (0, _extends2.default)({}, chartsDataProviderProps, {
128
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_ChartsSurface.ChartsSurface, (0, _extends2.default)({}, chartsSurfaceProps, {
127
129
  className: className,
128
130
  ref: ref,
129
- sx: sx
130
- }, other, {
131
131
  children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("g", {
132
132
  clipPath: `url(#${clipPathId})`,
133
133
  children: [plotType === 'bar' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_BarChart.BarPlot, {
@@ -155,7 +155,7 @@ const SparkLineChart = exports.SparkLineChart = /*#__PURE__*/React.forwardRef(fu
155
155
  offset: clipPathOffset
156
156
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsAxisHighlight.ChartsAxisHighlight, (0, _extends2.default)({}, axisHighlight)), children]
157
157
  })), showTooltip && /*#__PURE__*/(0, _jsxRuntime.jsx)(Tooltip, (0, _extends2.default)({}, props.slotProps?.tooltip))]
158
- });
158
+ }));
159
159
  });
160
160
  if (process.env.NODE_ENV !== "production") SparkLineChart.displayName = "SparkLineChart";
161
161
  process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes /* remove-proptypes */ = {