@mui/x-charts 9.3.0 → 9.5.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 (264) hide show
  1. package/BarChart/BarElement.d.mts +3 -2
  2. package/BarChart/BarElement.d.ts +3 -2
  3. package/BarChart/BarLabel/BarLabelItem.d.mts +3 -2
  4. package/BarChart/BarLabel/BarLabelItem.d.ts +3 -2
  5. package/BarChart/seriesConfig/bar/extremums.js +7 -2
  6. package/BarChart/seriesConfig/bar/extremums.mjs +7 -2
  7. package/CHANGELOG.md +296 -0
  8. package/ChartsContainer/ChartsContainer.js +21 -0
  9. package/ChartsContainer/ChartsContainer.mjs +21 -0
  10. package/ChartsLabel/ChartsLabelMark.js +1 -21
  11. package/ChartsLabel/ChartsLabelMark.mjs +0 -20
  12. package/ChartsLegend/chartsLegend.types.d.mts +3 -2
  13. package/ChartsLegend/chartsLegend.types.d.ts +3 -2
  14. package/ChartsLegend/piecewiseColorLegendClasses.js +8 -2
  15. package/ChartsLegend/piecewiseColorLegendClasses.mjs +8 -2
  16. package/ChartsOverlay/ChartsOverlay.d.mts +5 -4
  17. package/ChartsOverlay/ChartsOverlay.d.ts +5 -4
  18. package/ChartsRadialAxisHighlight/index.d.mts +6 -1
  19. package/ChartsRadialAxisHighlight/index.d.ts +6 -1
  20. package/ChartsRadialAxisHighlight/index.js +9 -2
  21. package/ChartsRadialAxisHighlight/index.mjs +8 -1
  22. package/ChartsRadialDataProvider/ChartsRadialDataProvider.d.mts +1 -1
  23. package/ChartsRadialDataProvider/ChartsRadialDataProvider.d.ts +1 -1
  24. package/ChartsRadialDataProvider/ChartsRadialDataProvider.js +1 -1
  25. package/ChartsRadialDataProvider/ChartsRadialDataProvider.mjs +1 -1
  26. package/ChartsRadialDataProvider/index.d.mts +5 -0
  27. package/ChartsRadialDataProvider/index.d.ts +5 -0
  28. package/ChartsRadialDataProvider/index.js +12 -1
  29. package/ChartsRadialDataProvider/index.mjs +7 -0
  30. package/ChartsRadialGrid/index.d.mts +6 -1
  31. package/ChartsRadialGrid/index.d.ts +6 -1
  32. package/ChartsRadialGrid/index.js +8 -2
  33. package/ChartsRadialGrid/index.mjs +8 -1
  34. package/ChartsRadiusAxis/index.d.mts +6 -1
  35. package/ChartsRadiusAxis/index.d.ts +6 -1
  36. package/ChartsRadiusAxis/index.js +10 -2
  37. package/ChartsRadiusAxis/index.mjs +7 -1
  38. package/ChartsReferenceLine/ChartsXReferenceLine.js +6 -1
  39. package/ChartsReferenceLine/ChartsXReferenceLine.mjs +6 -1
  40. package/ChartsReferenceLine/ChartsYReferenceLine.js +5 -0
  41. package/ChartsReferenceLine/ChartsYReferenceLine.mjs +5 -0
  42. package/ChartsRotationAxis/index.d.mts +6 -1
  43. package/ChartsRotationAxis/index.d.ts +6 -1
  44. package/ChartsRotationAxis/index.js +10 -2
  45. package/ChartsRotationAxis/index.mjs +7 -1
  46. package/ChartsTooltip/ChartTooltip.types.d.mts +3 -2
  47. package/ChartsTooltip/ChartTooltip.types.d.ts +3 -2
  48. package/ChartsTooltip/ChartsTooltipContainer.js +11 -4
  49. package/ChartsTooltip/ChartsTooltipContainer.mjs +11 -4
  50. package/ChartsTooltip/useAxesTooltip.js +2 -2
  51. package/ChartsTooltip/useAxesTooltip.mjs +2 -2
  52. package/ChartsTooltip/useItemTooltip.js +2 -2
  53. package/ChartsTooltip/useItemTooltip.mjs +2 -2
  54. package/ChartsXAxis/useAxisTicksProps.d.mts +84 -3
  55. package/ChartsXAxis/useAxisTicksProps.d.ts +84 -3
  56. package/ChartsYAxis/useAxisTicksProps.d.mts +84 -3
  57. package/ChartsYAxis/useAxisTicksProps.d.ts +84 -3
  58. package/LineChart/AreaElement.d.mts +3 -2
  59. package/LineChart/AreaElement.d.ts +3 -2
  60. package/LineChart/AreaElement.js +1 -1
  61. package/LineChart/AreaElement.mjs +1 -1
  62. package/LineChart/CircleMarkElement.js +1 -1
  63. package/LineChart/CircleMarkElement.mjs +1 -1
  64. package/LineChart/LineElement.d.mts +3 -2
  65. package/LineChart/LineElement.d.ts +3 -2
  66. package/LineChart/LineElement.js +1 -1
  67. package/LineChart/LineElement.mjs +1 -1
  68. package/LineChart/LineHighlightPlot.d.mts +3 -2
  69. package/LineChart/LineHighlightPlot.d.ts +3 -2
  70. package/LineChart/LineHighlightPlot.js +65 -45
  71. package/LineChart/LineHighlightPlot.mjs +65 -45
  72. package/LineChart/MarkElement.js +1 -1
  73. package/LineChart/MarkElement.mjs +1 -1
  74. package/LineChart/MarkPlot.d.mts +3 -2
  75. package/LineChart/MarkPlot.d.ts +3 -2
  76. package/LineChart/seriesConfig/curveEvaluation.js +28 -14
  77. package/LineChart/seriesConfig/curveEvaluation.mjs +27 -14
  78. package/LineChart/seriesConfig/extremums.js +5 -1
  79. package/LineChart/seriesConfig/extremums.mjs +5 -1
  80. package/LineChart/useMarkPlotData.js +3 -1
  81. package/LineChart/useMarkPlotData.mjs +3 -1
  82. package/PieChart/PieArcLabelPlot.d.mts +3 -2
  83. package/PieChart/PieArcLabelPlot.d.ts +3 -2
  84. package/PieChart/PieArcPlot.d.mts +3 -2
  85. package/PieChart/PieArcPlot.d.ts +3 -2
  86. package/RadarChart/RadarAxis/RadarAxis.utils.d.mts +2 -2
  87. package/RadarChart/RadarAxis/RadarAxis.utils.d.ts +2 -2
  88. package/ScatterChart/BatchScatter.d.mts +2 -8
  89. package/ScatterChart/BatchScatter.d.ts +2 -8
  90. package/ScatterChart/BatchScatter.js +17 -12
  91. package/ScatterChart/BatchScatter.mjs +17 -12
  92. package/ScatterChart/FocusedScatterMark.js +2 -2
  93. package/ScatterChart/FocusedScatterMark.mjs +2 -2
  94. package/ScatterChart/HighlightedScatterMark.js +3 -3
  95. package/ScatterChart/HighlightedScatterMark.mjs +3 -3
  96. package/ScatterChart/Scatter.d.mts +5 -0
  97. package/ScatterChart/Scatter.d.ts +5 -0
  98. package/ScatterChart/Scatter.js +7 -2
  99. package/ScatterChart/Scatter.mjs +7 -2
  100. package/ScatterChart/ScatterChart.d.mts +2 -1
  101. package/ScatterChart/ScatterChart.d.ts +2 -1
  102. package/ScatterChart/ScatterChart.js +28 -3
  103. package/ScatterChart/ScatterChart.mjs +28 -3
  104. package/ScatterChart/ScatterChart.plugins.d.mts +2 -1
  105. package/ScatterChart/ScatterChart.plugins.d.ts +2 -1
  106. package/ScatterChart/ScatterChart.plugins.js +2 -1
  107. package/ScatterChart/ScatterChart.plugins.mjs +2 -1
  108. package/ScatterChart/ScatterMarker.types.d.mts +3 -2
  109. package/ScatterChart/ScatterMarker.types.d.ts +3 -2
  110. package/ScatterChart/ScatterPlot.d.mts +7 -4
  111. package/ScatterChart/ScatterPlot.d.ts +7 -4
  112. package/ScatterChart/ScatterPlot.js +31 -4
  113. package/ScatterChart/ScatterPlot.mjs +31 -4
  114. package/ScatterChart/async/ScatterAsync.d.mts +9 -0
  115. package/ScatterChart/async/ScatterAsync.d.ts +9 -0
  116. package/ScatterChart/async/ScatterAsync.js +71 -0
  117. package/ScatterChart/async/ScatterAsync.mjs +67 -0
  118. package/ScatterChart/async/ScatterAsyncBatch.d.mts +24 -0
  119. package/ScatterChart/async/ScatterAsyncBatch.d.ts +24 -0
  120. package/ScatterChart/async/ScatterAsyncBatch.js +112 -0
  121. package/ScatterChart/async/ScatterAsyncBatch.mjs +106 -0
  122. package/ScatterChart/async/scatterRenderData.selectors.d.mts +38 -0
  123. package/ScatterChart/async/scatterRenderData.selectors.d.ts +38 -0
  124. package/ScatterChart/async/scatterRenderData.selectors.js +93 -0
  125. package/ScatterChart/async/scatterRenderData.selectors.mjs +87 -0
  126. package/ScatterChart/seriesConfig/extremums.js +6 -0
  127. package/ScatterChart/seriesConfig/extremums.mjs +6 -0
  128. package/ScatterChart/seriesConfig/getColor.js +1 -1
  129. package/ScatterChart/seriesConfig/getColor.mjs +1 -1
  130. package/ScatterChart/seriesConfig/getMarkerSize.d.mts +18 -0
  131. package/ScatterChart/seriesConfig/getMarkerSize.d.ts +18 -0
  132. package/ScatterChart/seriesConfig/getMarkerSize.js +43 -0
  133. package/ScatterChart/seriesConfig/getMarkerSize.mjs +37 -0
  134. package/ScatterChart/seriesConfig/seriesProcessor.js +23 -8
  135. package/ScatterChart/seriesConfig/seriesProcessor.mjs +23 -8
  136. package/ScatterChart/useScatterItemPosition.d.mts +4 -0
  137. package/ScatterChart/useScatterItemPosition.d.ts +4 -0
  138. package/ScatterChart/useScatterItemPosition.js +9 -0
  139. package/ScatterChart/useScatterItemPosition.mjs +8 -0
  140. package/SparkLineChart/SparkLineChart.js +2 -1
  141. package/SparkLineChart/SparkLineChart.mjs +2 -1
  142. package/Toolbar/Toolbar.types.d.mts +3 -2
  143. package/Toolbar/Toolbar.types.d.ts +3 -2
  144. package/index.js +1 -1
  145. package/index.mjs +1 -1
  146. package/internals/animation/animation.d.mts +1 -2
  147. package/internals/animation/animation.d.ts +1 -2
  148. package/internals/commonNextFocusItem.d.mts +10 -2
  149. package/internals/commonNextFocusItem.d.ts +10 -2
  150. package/internals/commonNextFocusItem.js +12 -4
  151. package/internals/commonNextFocusItem.mjs +12 -4
  152. package/internals/createCommonKeyboardFocusHandler.d.mts +1 -1
  153. package/internals/createCommonKeyboardFocusHandler.d.ts +1 -1
  154. package/internals/createCommonKeyboardFocusHandler.js +3 -3
  155. package/internals/createCommonKeyboardFocusHandler.mjs +3 -3
  156. package/internals/getSeriesColorFn.d.mts +5 -5
  157. package/internals/getSeriesColorFn.d.ts +5 -5
  158. package/internals/incompleteDatasetKeysError.d.mts +1 -0
  159. package/internals/incompleteDatasetKeysError.d.ts +1 -0
  160. package/internals/incompleteDatasetKeysError.js +11 -0
  161. package/internals/incompleteDatasetKeysError.mjs +4 -0
  162. package/internals/index.d.mts +3 -0
  163. package/internals/index.d.ts +3 -0
  164. package/internals/index.js +36 -0
  165. package/internals/index.mjs +3 -0
  166. package/internals/plugins/allPlugins.d.mts +4 -3
  167. package/internals/plugins/allPlugins.d.ts +4 -3
  168. package/internals/plugins/allPlugins.js +2 -1
  169. package/internals/plugins/allPlugins.mjs +2 -1
  170. package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.d.mts +12 -3
  171. package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.d.ts +12 -3
  172. package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.js +10 -1
  173. package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.mjs +10 -1
  174. package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.d.mts +15 -1
  175. package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.d.ts +15 -1
  176. package/internals/plugins/featurePlugins/useChartCartesianAxis/createZoomLookup.js +3 -2
  177. package/internals/plugins/featurePlugins/useChartCartesianAxis/createZoomLookup.mjs +4 -3
  178. package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.js +2 -2
  179. package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.mjs +3 -3
  180. package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeZoom.d.mts +10 -1
  181. package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeZoom.d.ts +10 -1
  182. package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeZoom.js +18 -1
  183. package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeZoom.mjs +16 -0
  184. package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisScale.js +27 -2
  185. package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisScale.mjs +27 -2
  186. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.js +1 -3
  187. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.mjs +1 -3
  188. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.mts +11 -3
  189. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +11 -3
  190. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.js +24 -5
  191. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.mjs +24 -5
  192. package/internals/plugins/featurePlugins/useChartClosestPoint/findClosestPoints.d.mts +1 -1
  193. package/internals/plugins/featurePlugins/useChartClosestPoint/findClosestPoints.d.ts +1 -1
  194. package/internals/plugins/featurePlugins/useChartClosestPoint/findClosestPoints.js +46 -2
  195. package/internals/plugins/featurePlugins/useChartClosestPoint/findClosestPoints.mjs +47 -2
  196. package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.js +46 -11
  197. package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.mjs +46 -11
  198. package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.types.d.mts +2 -1
  199. package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.types.d.ts +2 -1
  200. package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.js +3 -2
  201. package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.mjs +3 -2
  202. package/internals/plugins/featurePlugins/useChartPolarAxis/coordinateTransformation.d.mts +4 -0
  203. package/internals/plugins/featurePlugins/useChartPolarAxis/coordinateTransformation.d.ts +4 -0
  204. package/internals/plugins/featurePlugins/useChartPolarAxis/coordinateTransformation.js +3 -1
  205. package/internals/plugins/featurePlugins/useChartPolarAxis/coordinateTransformation.mjs +1 -0
  206. package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.js +5 -3
  207. package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.mjs +7 -5
  208. package/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.js +17 -3
  209. package/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.mjs +17 -3
  210. package/internals/plugins/featurePlugins/useProgressiveRendering/index.d.mts +3 -0
  211. package/internals/plugins/featurePlugins/useProgressiveRendering/index.d.ts +3 -0
  212. package/internals/plugins/featurePlugins/useProgressiveRendering/index.js +27 -0
  213. package/internals/plugins/featurePlugins/useProgressiveRendering/index.mjs +2 -0
  214. package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.d.mts +13 -0
  215. package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.d.ts +13 -0
  216. package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.js +136 -0
  217. package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.mjs +128 -0
  218. package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.selectors.d.mts +42 -0
  219. package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.selectors.d.ts +42 -0
  220. package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.selectors.js +166 -0
  221. package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.selectors.mjs +159 -0
  222. package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.types.d.mts +34 -0
  223. package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.types.d.ts +34 -0
  224. package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.types.js +5 -0
  225. package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.types.mjs +1 -0
  226. package/internals/scales/scaleBand.js +70 -43
  227. package/internals/scales/scaleBand.mjs +71 -44
  228. package/internals/sizeScale.d.mts +6 -0
  229. package/internals/sizeScale.d.ts +6 -0
  230. package/internals/sizeScale.js +46 -0
  231. package/internals/sizeScale.mjs +38 -0
  232. package/models/axis.d.mts +18 -12
  233. package/models/axis.d.ts +18 -12
  234. package/models/chartsSlotsComponentsProps.d.mts +25 -0
  235. package/models/chartsSlotsComponentsProps.d.ts +25 -0
  236. package/models/chartsSlotsComponentsProps.js +5 -0
  237. package/models/chartsSlotsComponentsProps.mjs +1 -0
  238. package/models/index.d.mts +1 -0
  239. package/models/index.d.ts +1 -0
  240. package/models/index.js +11 -0
  241. package/models/index.mjs +1 -0
  242. package/models/seriesType/bar.d.mts +1 -1
  243. package/models/seriesType/bar.d.ts +1 -1
  244. package/models/seriesType/common.d.mts +4 -4
  245. package/models/seriesType/common.d.ts +4 -4
  246. package/models/seriesType/config.d.mts +3 -3
  247. package/models/seriesType/config.d.ts +3 -3
  248. package/models/seriesType/line.d.mts +6 -3
  249. package/models/seriesType/line.d.ts +6 -3
  250. package/models/seriesType/pie.d.mts +1 -1
  251. package/models/seriesType/pie.d.ts +1 -1
  252. package/models/seriesType/radar.d.mts +1 -1
  253. package/models/seriesType/radar.d.ts +1 -1
  254. package/models/seriesType/scatter.d.mts +35 -3
  255. package/models/seriesType/scatter.d.ts +35 -3
  256. package/models/sizeMapping.d.mts +64 -0
  257. package/models/sizeMapping.d.ts +64 -0
  258. package/models/sizeMapping.js +5 -0
  259. package/models/sizeMapping.mjs +1 -0
  260. package/models/slots/chartsBaseSlots.d.mts +6 -5
  261. package/models/slots/chartsBaseSlots.d.ts +6 -5
  262. package/models/z-axis.d.mts +10 -1
  263. package/models/z-axis.d.ts +10 -1
  264. package/package.json +5 -5
@@ -2,15 +2,16 @@ import * as React from 'react';
2
2
  import { type SlotComponentPropsFromProps } from '@mui/x-internals/types';
3
3
  import { type BarElementOwnerState } from "./barClasses.mjs";
4
4
  import { type BarProps } from "./AnimatedBarElement.mjs";
5
+ import type { BarPropsOverrides } from "../models/chartsSlotsComponentsProps.mjs";
5
6
  export interface BarElementSlots {
6
7
  /**
7
8
  * The component that renders the bar.
8
9
  * @default BarElementPath
9
10
  */
10
- bar?: React.JSXElementConstructor<BarProps>;
11
+ bar?: React.JSXElementConstructor<BarProps & BarPropsOverrides>;
11
12
  }
12
13
  export interface BarElementSlotProps {
13
- bar?: SlotComponentPropsFromProps<BarProps, {}, BarElementOwnerState>;
14
+ bar?: SlotComponentPropsFromProps<BarProps, BarPropsOverrides, BarElementOwnerState>;
14
15
  }
15
16
  export type BarElementProps = Omit<BarElementOwnerState, 'isFaded' | 'isHighlighted' | 'isFocused'> & Omit<React.SVGProps<SVGRectElement>, 'ref'> & {
16
17
  /**
@@ -2,15 +2,16 @@ import * as React from 'react';
2
2
  import { type SlotComponentPropsFromProps } from '@mui/x-internals/types';
3
3
  import { type BarElementOwnerState } from "./barClasses.js";
4
4
  import { type BarProps } from "./AnimatedBarElement.js";
5
+ import type { BarPropsOverrides } from "../models/chartsSlotsComponentsProps.js";
5
6
  export interface BarElementSlots {
6
7
  /**
7
8
  * The component that renders the bar.
8
9
  * @default BarElementPath
9
10
  */
10
- bar?: React.JSXElementConstructor<BarProps>;
11
+ bar?: React.JSXElementConstructor<BarProps & BarPropsOverrides>;
11
12
  }
12
13
  export interface BarElementSlotProps {
13
- bar?: SlotComponentPropsFromProps<BarProps, {}, BarElementOwnerState>;
14
+ bar?: SlotComponentPropsFromProps<BarProps, BarPropsOverrides, BarElementOwnerState>;
14
15
  }
15
16
  export type BarElementProps = Omit<BarElementOwnerState, 'isFaded' | 'isHighlighted' | 'isFocused'> & Omit<React.SVGProps<SVGRectElement>, 'ref'> & {
16
17
  /**
@@ -3,15 +3,16 @@ import { type SlotComponentPropsFromProps } from '@mui/x-internals/types';
3
3
  import { type BarLabelOwnerState, type BarItem, type BarLabelContext } from "./BarLabel.types.mjs";
4
4
  import { type BarLabelProps } from "./BarLabel.mjs";
5
5
  import { type BarValueType } from "../../models/index.mjs";
6
+ import type { BarLabelPropsOverrides } from "../../models/chartsSlotsComponentsProps.mjs";
6
7
  export interface BarLabelSlots {
7
8
  /**
8
9
  * The component that renders the bar label.
9
10
  * @default BarLabel
10
11
  */
11
- barLabel?: React.JSXElementConstructor<BarLabelProps>;
12
+ barLabel?: React.JSXElementConstructor<BarLabelProps & BarLabelPropsOverrides>;
12
13
  }
13
14
  export interface BarLabelSlotProps {
14
- barLabel?: SlotComponentPropsFromProps<BarLabelProps, {}, BarLabelOwnerState>;
15
+ barLabel?: SlotComponentPropsFromProps<BarLabelProps, BarLabelPropsOverrides, BarLabelOwnerState>;
15
16
  }
16
17
  export type BarLabelItemProps<V extends BarValueType | null> = Omit<BarLabelOwnerState, 'isFaded' | 'isHighlighted'> & Pick<BarLabelProps, 'style'> & {
17
18
  /**
@@ -3,15 +3,16 @@ import { type SlotComponentPropsFromProps } from '@mui/x-internals/types';
3
3
  import { type BarLabelOwnerState, type BarItem, type BarLabelContext } from "./BarLabel.types.js";
4
4
  import { type BarLabelProps } from "./BarLabel.js";
5
5
  import { type BarValueType } from "../../models/index.js";
6
+ import type { BarLabelPropsOverrides } from "../../models/chartsSlotsComponentsProps.js";
6
7
  export interface BarLabelSlots {
7
8
  /**
8
9
  * The component that renders the bar label.
9
10
  * @default BarLabel
10
11
  */
11
- barLabel?: React.JSXElementConstructor<BarLabelProps>;
12
+ barLabel?: React.JSXElementConstructor<BarLabelProps & BarLabelPropsOverrides>;
12
13
  }
13
14
  export interface BarLabelSlotProps {
14
- barLabel?: SlotComponentPropsFromProps<BarLabelProps, {}, BarLabelOwnerState>;
15
+ barLabel?: SlotComponentPropsFromProps<BarLabelProps, BarLabelPropsOverrides, BarLabelOwnerState>;
15
16
  }
16
17
  export type BarLabelItemProps<V extends BarValueType | null> = Omit<BarLabelOwnerState, 'isFaded' | 'isHighlighted'> & Pick<BarLabelProps, 'style'> & {
17
18
  /**
@@ -42,10 +42,14 @@ const getValueExtremum = direction => params => {
42
42
  } = params;
43
43
  return Object.keys(series).filter(seriesId => {
44
44
  const axisId = direction === 'x' ? series[seriesId].xAxisId : series[seriesId].yAxisId;
45
+ if (axis.domainSeries === 'visible' && series[seriesId].hidden) {
46
+ return false;
47
+ }
45
48
  return axisId === axis.id || isDefaultAxis && axisId === undefined;
46
49
  }).reduce((acc, seriesId) => {
47
50
  const {
48
- stackedData
51
+ stackedData,
52
+ visibleStackedData
49
53
  } = series[seriesId];
50
54
  const filter = getFilters?.({
51
55
  currentAxisId: axis.id,
@@ -53,7 +57,8 @@ const getValueExtremum = direction => params => {
53
57
  seriesXAxisId: series[seriesId].xAxisId,
54
58
  seriesYAxisId: series[seriesId].yAxisId
55
59
  });
56
- const [seriesMin, seriesMax] = stackedData?.reduce((seriesAcc, values, index) => {
60
+ const stackedDataToUse = axis.domainSeries === 'visible' ? visibleStackedData : stackedData;
61
+ const [seriesMin, seriesMax] = stackedDataToUse?.reduce((seriesAcc, values, index) => {
57
62
  if (filter && (!filter(createResult(values[0], direction), index) || !filter(createResult(values[1], direction), index))) {
58
63
  return seriesAcc;
59
64
  }
@@ -36,10 +36,14 @@ const getValueExtremum = direction => params => {
36
36
  } = params;
37
37
  return Object.keys(series).filter(seriesId => {
38
38
  const axisId = direction === 'x' ? series[seriesId].xAxisId : series[seriesId].yAxisId;
39
+ if (axis.domainSeries === 'visible' && series[seriesId].hidden) {
40
+ return false;
41
+ }
39
42
  return axisId === axis.id || isDefaultAxis && axisId === undefined;
40
43
  }).reduce((acc, seriesId) => {
41
44
  const {
42
- stackedData
45
+ stackedData,
46
+ visibleStackedData
43
47
  } = series[seriesId];
44
48
  const filter = getFilters?.({
45
49
  currentAxisId: axis.id,
@@ -47,7 +51,8 @@ const getValueExtremum = direction => params => {
47
51
  seriesXAxisId: series[seriesId].xAxisId,
48
52
  seriesYAxisId: series[seriesId].yAxisId
49
53
  });
50
- const [seriesMin, seriesMax] = stackedData?.reduce((seriesAcc, values, index) => {
54
+ const stackedDataToUse = axis.domainSeries === 'visible' ? visibleStackedData : stackedData;
55
+ const [seriesMin, seriesMax] = stackedDataToUse?.reduce((seriesAcc, values, index) => {
51
56
  if (filter && (!filter(createResult(values[0], direction), index) || !filter(createResult(values[1], direction), index))) {
52
57
  return seriesAcc;
53
58
  }
package/CHANGELOG.md CHANGED
@@ -1,5 +1,301 @@
1
1
  # Changelog
2
2
 
3
+ ## 9.5.0
4
+
5
+ _Jun 11, 2026_
6
+
7
+ We'd like to extend a big thank you to the 9 contributors who made this release possible. Here are some highlights ✨:
8
+
9
+ - 🎁 New [`multiSelect` column type for Data Grid Pro](https://mui.com/x/react-data-grid/column-definition/#MultiSelectColumn)
10
+ - 🚀 New [renderer="svg-progressive"](https://mui.com/x/react-charts/scatter/#progressive-renderer) paints scatter points in batched frames so large datasets render smoothly without blocking the main thread.
11
+ - 🐞 Bugfixes
12
+ - 📚 Documentation improvements
13
+
14
+ Special thanks go out to community members @mustafajw07 and @Anexus5919 for their valuable contribution.
15
+
16
+ The following team members contributed to this release:
17
+ @alexfauquette, @JCQuintas, @rita-codes, @rluzists1, @sai6855, @siriwatknp, @arminmeh, @brijeshb42
18
+
19
+ ### Data Grid
20
+
21
+ #### `@mui/x-data-grid@9.5.0`
22
+
23
+ - [DataGrid] Restrict warning messages to non-production environments in various components (#22461) @sai6855
24
+ - [DataGrid] Prevent React state update before mount (#22374) @arminmeh
25
+
26
+ #### `@mui/x-data-grid-pro@9.5.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
27
+
28
+ Same changes as in `@mui/x-data-grid@9.5.0`, plus:
29
+
30
+ - [DataGridPro] Add new `multiSelect` column type (#21157) @siriwatknp
31
+
32
+ #### `@mui/x-data-grid-premium@9.5.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
33
+
34
+ Same changes as in `@mui/x-data-grid-pro@9.5.0`.
35
+
36
+ ### Date and Time Pickers
37
+
38
+ #### `@mui/x-date-pickers@9.5.0`
39
+
40
+ - [pickers] Fix missing export of `th-TH` (#22703) @alexfauquette
41
+
42
+ #### `@mui/x-date-pickers-pro@9.5.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
43
+
44
+ Same changes as in `@mui/x-date-pickers@9.5.0`.
45
+
46
+ ### Charts
47
+
48
+ #### `@mui/x-charts@9.5.0`
49
+
50
+ - [charts] Add `FocusedBar` component to `BarScatterComposition` demo (#22704) @sai6855
51
+ - [charts] Add dedicated Bubble Chart documentation page (#22688) @mustafajw07
52
+ - [charts] Add progressive scatter renderer (#22518) @JCQuintas
53
+ - [charts] Avoid full axis pipeline rebuild on resize (#22695) @JCQuintas
54
+ - [charts] Document focus indicator in composition page (#22712) @JCQuintas
55
+ - [charts] Fix `ChartsTooltip` `container` and `disablePortal` props being ignored (#22690) @JCQuintas
56
+ - [charts] Make ordinal scales O(1) to copy and re-range (#22691) @JCQuintas
57
+ - [charts] Stabilize WebGL bar rendering at sub-pixel widths (#22678) @JCQuintas
58
+ - [charts] Use the series config to define value types (#22693) @sai6855
59
+ - [charts] Decouple interaction hook from the cartesian zoom (#22708) @alexfauquette
60
+
61
+ #### `@mui/x-charts-pro@9.5.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
62
+
63
+ Same changes as in `@mui/x-charts@9.5.0`, plus:
64
+
65
+ - [charts-pro] Add missing focus highlight (#22689) @alexfauquette
66
+
67
+ #### `@mui/x-charts-premium@9.5.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
68
+
69
+ Same changes as in `@mui/x-charts-pro@9.5.0`, plus:
70
+
71
+ - [charts-premium] Set `Heatmap` WebGL render as stable (#22665) @alexfauquette
72
+ - [charts-premium] Stabilize candlestick charts (#22666) @alexfauquette
73
+ - [charts-premium] Stabilize the radial charts (#22655) @alexfauquette
74
+
75
+ ### Scheduler
76
+
77
+ #### `@mui/x-scheduler@9.0.0-beta.1`
78
+
79
+ Internal changes.
80
+
81
+ #### `@mui/x-scheduler-premium@9.0.0-beta.1` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
82
+
83
+ Same changes as in `@mui/x-scheduler@9.0.0-beta.1`, plus:
84
+
85
+ - [scheduler] Remove dead CSS variable writes in `EventTimelinePremiumContent` (#22720) @rita-codes
86
+ - [scheduler] Show scope dialog when deleting a recurring event (#22552) @Anexus5919
87
+
88
+ ### Core
89
+
90
+ - [docs-infra] Fix immutable cache headers for `/\_next/static` assets (#22747) @brijeshb42
91
+ - [docs-infra] Prefix `/\_next/static` cache header rule with `/x` basePath (#22748) @brijeshb42
92
+ - [code-infra] Update dependencies to resolve Dependabot security alerts (#22714) @Janpot
93
+
94
+ ### Docs
95
+
96
+ - [docs] Fix broken links checker crashing on 404 known-targets fetch (#22707) @sai6855
97
+ - [docs] Fix country data (#22716) @alexfauquette
98
+
99
+ ### Miscellaneous
100
+
101
+ - [legal] Update EULA links in docs (#22717) @rluzists1
102
+
103
+ ## 9.4.0
104
+
105
+ <!-- generated comparing v9.3.0..master -->
106
+
107
+ _Jun 4, 2026_
108
+
109
+ We'd like to extend a big thank you to the 21 contributors who made this release possible. Here are some highlights ✨:
110
+
111
+ - 🎉 Scheduler is now in Beta shipping with Timeline vitualization and lazy loading
112
+ - 📆 Implement Event Timeline virtualization (#22339)
113
+ - 🫧 Introduce bubble charts (#22537)
114
+ - 🐞 Bugfixes
115
+ - 📚 Documentation improvements
116
+
117
+ Special thanks go out to these community members for their valuable contributions:
118
+ @imxv, @mixelburg, @mustafajw07
119
+
120
+ The following team members contributed to this release:
121
+ @aemartos, @alexfauquette, @arminmeh, @bernardobelchior, @cherniavskii, @flaviendelangle, @hasdfa, @Janpot, @JCQuintas, @joserodolfofreitas, @LukasTy, @MBilalShafi, @michelengelen, @mj12albert, @noraleonte, @oliviertassinari, @rita-codes, @romgrk, @sai6855
122
+
123
+ ### Data Grid
124
+
125
+ #### `@mui/x-data-grid@9.4.0`
126
+
127
+ - [DataGrid] Fix `avg` aggregation when the average is zero (#22652) @mj12albert
128
+ - [DataGrid] Inherit icon `fontSize` from `baseIconButton` size (#22187) @imxv
129
+ - [DataGrid] Fix `noRowsOverlay` flicker between `dataSource` re-fetches (#22465) @LukasTy
130
+
131
+ #### `@mui/x-data-grid-pro@9.4.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
132
+
133
+ Same changes as in `@mui/x-data-grid@9.4.0`.
134
+
135
+ #### `@mui/x-data-grid-premium@9.4.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
136
+
137
+ > This release includes a version bump of the `@mui/x-internal-exceljs-fork` package to address the vulnerable dependencies.
138
+ > The following CVEs are fixed:
139
+ >
140
+ > - <https://github.com/advisories/GHSA-ph9p-34f9-6g65>
141
+ > - <https://github.com/isaacs/minimatch/security/advisories/GHSA-23c5-xmqv-rm74>
142
+ > - <https://github.com/advisories/GHSA-w5hq-g745-h8pq>
143
+ >
144
+ > To make this security update possible, we bumped the `node` version requirement from `>=14.0.0` to `>=14.17.0`.
145
+ > [Node.js 14.17.0](https://nodejs.org/en/blog/release/v14.17.0) was released in May 2021, so we consider it safe to bump the requirement without causing issues for our users.
146
+
147
+ Same changes as in `@mui/x-data-grid-pro@9.4.0`, plus:
148
+
149
+ - [DataGridPremium] Nested Lazy Loading (#21043) @MBilalShafi
150
+ - [DataGridPremium] Update exceljs fork (#22658) @cherniavskii
151
+
152
+ ### Date and Time Pickers
153
+
154
+ #### `@mui/x-date-pickers@9.4.0`
155
+
156
+ Internal changes.
157
+
158
+ #### `@mui/x-date-pickers-pro@9.4.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
159
+
160
+ Same changes as in `@mui/x-date-pickers@9.4.0`.
161
+
162
+ ### Charts
163
+
164
+ #### `@mui/x-charts@9.4.0`
165
+
166
+ - [charts] Add functionality to hide elements during chart export (#22525) @sai6855
167
+ - [charts] Add option to show marks only on the first/last values (#22645) @alexfauquette
168
+ - [charts] Add text customization section and demo for axis labels (#22597) @sai6855
169
+ - [charts] Allow axes to scale according to the visible series only (#22566) @alexfauquette
170
+ - [charts] Correctly handle different identifiers for each series (#22556) @sai6855
171
+ - [charts] Fix inverted Y axis zoom/pan on ordinal scales (#22654) @JCQuintas
172
+ - [charts] Introduce bubble charts (#22537) @alexfauquette
173
+ - [charts] Let scatter chart tooltip ignore hidden series (#22614) @alexfauquette
174
+ - [charts] Make `'sqrt'` size mapping the default (#22683) @alexfauquette
175
+ - [charts] Remove unused proptypes (#22618) @alexfauquette
176
+ - [charts] Support module augmentation for slots (#22519) @sai6855
177
+ - [charts] Support multiple marker size in `findClosestPoint` (#22622) @alexfauquette
178
+ - [charts] Upgrade bezier-easing to v3 and use it for line chart hit-detection (#22608) @sai6855
179
+ - [charts] Use `useLayoutEffect` with `ResizeObserver` (#22646) @JCQuintas
180
+
181
+ #### `@mui/x-charts-pro@9.4.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
182
+
183
+ Same changes as in `@mui/x-charts@9.4.0`, plus:
184
+
185
+ - [charts-pro] Auto-select range button matching current zoom (#22137) @JCQuintas
186
+ - [charts-pro] Support range values in `initialZoom` (#22563) @JCQuintas
187
+
188
+ #### `@mui/x-charts-premium@9.4.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
189
+
190
+ Same changes as in `@mui/x-charts-pro@9.4.0`, plus:
191
+
192
+ - [charts-premium] Support range-bar series in WebGL bar renderer (#22607) @JCQuintas
193
+ - [charts-premium] Fix `onAxisClick` for radial bar and lines (#22522) @alexfauquette
194
+
195
+ ### Tree View
196
+
197
+ #### `@mui/x-tree-view@9.4.0`
198
+
199
+ Internal changes.
200
+
201
+ #### `@mui/x-tree-view-pro@9.4.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
202
+
203
+ Same changes as in `@mui/x-tree-view@9.4.0`.
204
+
205
+ ### Scheduler
206
+
207
+ #### Breaking changes
208
+
209
+ The theme `styleOverrides` slots for the skeleton and the error container were
210
+ renamed and unified. The CSS utility class names (for example
211
+ `.MuiEventCalendar-eventSkeleton`) are **not** affected — only
212
+ `theme.components.*` overrides need updating.
213
+
214
+ **Event skeleton**
215
+
216
+ | Before | After |
217
+ | --------------------------------------- | ------------------------------ |
218
+ | `MuiEventCalendar` slot `EventSkeleton` | `MuiEventSkeleton` slot `Root` |
219
+ | `MuiEventTimeline` slot `EventSkeleton` | `MuiEventSkeleton` slot `Root` |
220
+
221
+ **Error container**
222
+
223
+ | Before | After |
224
+ | ------------------------------------------------------------- | --------------------------------------- |
225
+ | `MuiEventCalendar` / `MuiEventTimeline` slot `ErrorContainer` | `MuiEventErrorContainer` slot `Root` |
226
+ | `MuiEventCalendar` / `MuiEventTimeline` slot `ErrorAlert` | `MuiEventErrorContainer` slot `Alert` |
227
+ | `MuiEventCalendar` / `MuiEventTimeline` slot `ErrorMessage` | `MuiEventErrorContainer` slot `Message` |
228
+
229
+ If you customized these through the theme, update the component name and slot
230
+ names accordingly:
231
+
232
+ ```diff
233
+ components: {
234
+ - MuiEventCalendar: {
235
+ + MuiEventSkeleton: {
236
+ styleOverrides: {
237
+ - EventSkeleton: { /* ... */ },
238
+ + Root: { /* ... */ },
239
+ },
240
+ },
241
+ },
242
+ }
243
+ ```
244
+
245
+ #### `@mui/x-scheduler@9.0.0-beta.0`
246
+
247
+ - [scheduler] Add a prop to control whether the resource of an event can be cleared (#22464) @rita-codes
248
+ - [scheduler] Add week number labels to agenda, day and week views (#22594) @mustafajw07
249
+ - [scheduler] Add `weekStartsOn` preference and update date functions to support custom week start (#22426) @mustafajw07
250
+ - [scheduler] Export premium version of the standalone views (#22621) @flaviendelangle
251
+ - [scheduler] Implement timeline virtualization (#22339) @romgrk
252
+ - [scheduler] Split scheduler overview (#22453) @joserodolfofreitas
253
+ - [scheduler] Unify `EventSkeleton` and `ErrorContainer` between `EventCalendar` and `EventTimeline` (#22676) @noraleonte
254
+
255
+ #### `@mui/x-scheduler-premium@9.0.0-beta.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
256
+
257
+ Same changes as in `@mui/x-scheduler@9.0.0-beta.0`.
258
+
259
+ ### Docs
260
+
261
+ - [docs] Add a performance docs page for charts (#22656) @alexfauquette
262
+ - [docs] Add real dataset for maps documentation (#22599) @alexfauquette
263
+ - [docs] Add spacing between selects on charts overview demo (#22589) @bernardobelchior
264
+ - [docs] Reorganize existing chat docs navigation (#22478) @hasdfa
265
+ - [docs] Switch to visionscarto's world atlas dataset (#22669) @cherniavskii
266
+ - [docs] Update TreeView `domstructure` docs and add demo (#22420) @mj12albert
267
+ - [docs] Fix indexation of Scheduler (#22567) @oliviertassinari
268
+ - [docs] Fix wide layout on event timeline lazy loading and Import title (#22604) @rita-codes
269
+ - [docs] Derive class name owners for shared charts classes (#22674) @JCQuintas
270
+
271
+ ### Core
272
+
273
+ - [code-infra] Drop unused and now-transitive deps from docs/package.json (#22549) @LukasTy
274
+ - [code-infra] Refresh CI Node pins to 22.22.3 (#22598) @LukasTy
275
+ - [code-infra] Skip empty product sections in changelog (#22541) @rita-codes
276
+ - [code-infra] Stabilize DataGridScrollRestoration visual regression test (#22553) @Janpot
277
+ - [internal] Add license to the `x-data-grid-generator` (#22240) @arminmeh
278
+ - [internal] Express default value for resource_class (#22569) @oliviertassinari
279
+ - [internal] Fix use of ellipsis (#21852) @oliviertassinari
280
+ - [internal] `useLayoutEffect` with `ResizeObserver` (#22428) @romgrk
281
+
282
+ ### Miscellaneous
283
+
284
+ - [chat-headless] Add built-in chat adapters (#22479) @hasdfa
285
+ - [chat-headless] Harden runtime model and message errors (#22480) @hasdfa
286
+ - [core] Prepare for TypeScript 6 bump (#22551) @LukasTy
287
+ - [core] Use CircleCI Gen2 resource classes (#22610) @LukasTy
288
+ - [infra] Fix broken tag retrieval on `master` during release (#22174) @michelengelen
289
+ - [infra] Group Base UI renovate updates (#22590) @LukasTy
290
+ - [pnpm] Add security settings to pnpm-workspace.yaml (#22611) @Janpot
291
+ - [release] Fix release PR scripts (#22680) @JCQuintas
292
+ - [test] Add a Tree View regression test for lazy loading with getChildrenCount returning -1 (#22605) @mixelburg
293
+ - [test] Disable LCD subpixel antialiasing in regression screenshots (#22602) @Janpot
294
+ - [test] Fix flaky Data Grid Pro data source tree data tests (#22659) @LukasTy
295
+ - [test] Remove stale form-submit TODO from e2e suite (#22564) @LukasTy
296
+ - [x-license] Exclude test keys from the published npm package (#22647) @aemartos
297
+ - [test] Fix flaky WebGL benchmark by polling for canvas content (#22535) @JCQuintas
298
+
3
299
  ## 9.3.0
4
300
 
5
301
  _May 21, 2026_
@@ -364,6 +364,27 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
364
364
  id: _propTypes.default.string,
365
365
  max: _propTypes.default.number,
366
366
  min: _propTypes.default.number,
367
+ sizeMap: _propTypes.default.oneOfType([_propTypes.default.shape({
368
+ interpolator: _propTypes.default.oneOf(['linear', 'log', 'sqrt']),
369
+ max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
370
+ min: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
371
+ size: _propTypes.default.arrayOf(_propTypes.default.number.isRequired).isRequired,
372
+ type: _propTypes.default.oneOf(['continuous']).isRequired
373
+ }), _propTypes.default.shape({
374
+ max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
375
+ min: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
376
+ size: _propTypes.default.func.isRequired,
377
+ type: _propTypes.default.oneOf(['continuous']).isRequired
378
+ }), _propTypes.default.shape({
379
+ sizes: _propTypes.default.arrayOf(_propTypes.default.number).isRequired,
380
+ thresholds: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]).isRequired).isRequired,
381
+ type: _propTypes.default.oneOf(['piecewise']).isRequired
382
+ }), _propTypes.default.shape({
383
+ sizes: _propTypes.default.arrayOf(_propTypes.default.number).isRequired,
384
+ type: _propTypes.default.oneOf(['ordinal']).isRequired,
385
+ unknownSize: _propTypes.default.number,
386
+ values: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number, _propTypes.default.string]).isRequired)
387
+ })]),
367
388
  valueGetter: _propTypes.default.func
368
389
  }))
369
390
  } : void 0;
@@ -357,6 +357,27 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes = {
357
357
  id: PropTypes.string,
358
358
  max: PropTypes.number,
359
359
  min: PropTypes.number,
360
+ sizeMap: PropTypes.oneOfType([PropTypes.shape({
361
+ interpolator: PropTypes.oneOf(['linear', 'log', 'sqrt']),
362
+ max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
363
+ min: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
364
+ size: PropTypes.arrayOf(PropTypes.number.isRequired).isRequired,
365
+ type: PropTypes.oneOf(['continuous']).isRequired
366
+ }), PropTypes.shape({
367
+ max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
368
+ min: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
369
+ size: PropTypes.func.isRequired,
370
+ type: PropTypes.oneOf(['continuous']).isRequired
371
+ }), PropTypes.shape({
372
+ sizes: PropTypes.arrayOf(PropTypes.number).isRequired,
373
+ thresholds: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]).isRequired).isRequired,
374
+ type: PropTypes.oneOf(['piecewise']).isRequired
375
+ }), PropTypes.shape({
376
+ sizes: PropTypes.arrayOf(PropTypes.number).isRequired,
377
+ type: PropTypes.oneOf(['ordinal']).isRequired,
378
+ unknownSize: PropTypes.number,
379
+ values: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number, PropTypes.string]).isRequired)
380
+ })]),
360
381
  valueGetter: PropTypes.func
361
382
  }))
362
383
  } : void 0;
@@ -10,7 +10,6 @@ exports.ChartsLabelMark = void 0;
10
10
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
11
  var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
12
12
  var React = _interopRequireWildcard(require("react"));
13
- var _propTypes = _interopRequireDefault(require("prop-types"));
14
13
  var _clsx = _interopRequireDefault(require("clsx"));
15
14
  var _styles = require("@mui/material/styles");
16
15
  var _d3Shape = require("@mui/x-charts-vendor/d3-shape");
@@ -133,23 +132,4 @@ const ChartsLabelMark = exports.ChartsLabelMark = (0, _consumeThemeProps.consume
133
132
  })]
134
133
  })
135
134
  }));
136
- });
137
- process.env.NODE_ENV !== "production" ? ChartsLabelMark.propTypes = {
138
- // ----------------------------- Warning --------------------------------
139
- // | These PropTypes are generated from the TypeScript type definitions |
140
- // | To update them edit the TypeScript types and run "pnpm proptypes" |
141
- // ----------------------------------------------------------------------
142
- /**
143
- * Override or extend the styles applied to the component.
144
- */
145
- classes: _propTypes.default.object,
146
- /**
147
- * The color of the mark.
148
- */
149
- color: _propTypes.default.string,
150
- /**
151
- * The type of the mark.
152
- * @default 'square'
153
- */
154
- type: _propTypes.default.oneOf(['circle', 'line', 'square'])
155
- } : void 0;
135
+ });
@@ -4,7 +4,6 @@ import _extends from "@babel/runtime/helpers/esm/extends";
4
4
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
5
5
  const _excluded = ["type", "markShape", "color", "className", "classes"];
6
6
  import * as React from 'react';
7
- import PropTypes from 'prop-types';
8
7
  import clsx from 'clsx';
9
8
  import { styled, useTheme } from '@mui/material/styles';
10
9
  import { symbol as d3Symbol, symbolsFill as d3SymbolsFill } from '@mui/x-charts-vendor/d3-shape';
@@ -127,23 +126,4 @@ const ChartsLabelMark = consumeThemeProps('MuiChartsLabelMark', {
127
126
  })
128
127
  }));
129
128
  });
130
- process.env.NODE_ENV !== "production" ? ChartsLabelMark.propTypes = {
131
- // ----------------------------- Warning --------------------------------
132
- // | These PropTypes are generated from the TypeScript type definitions |
133
- // | To update them edit the TypeScript types and run "pnpm proptypes" |
134
- // ----------------------------------------------------------------------
135
- /**
136
- * Override or extend the styles applied to the component.
137
- */
138
- classes: PropTypes.object,
139
- /**
140
- * The color of the mark.
141
- */
142
- color: PropTypes.string,
143
- /**
144
- * The type of the mark.
145
- * @default 'square'
146
- */
147
- type: PropTypes.oneOf(['circle', 'line', 'square'])
148
- } : void 0;
149
129
  export { ChartsLabelMark };
@@ -2,15 +2,16 @@ import type { ChartsLegendProps } from "./ChartsLegend.mjs";
2
2
  import { type ContinuousColorLegendProps } from "./ContinuousColorLegend.mjs";
3
3
  import { type ChartsLegendPosition } from "./legend.types.mjs";
4
4
  import { type PiecewiseColorLegendProps } from "./PiecewiseColorLegend.mjs";
5
+ import type { LegendPropsOverrides } from "../models/chartsSlotsComponentsProps.mjs";
5
6
  export interface ChartsLegendSlots {
6
7
  /**
7
8
  * Custom rendering of the legend.
8
9
  * @default ChartsLegend
9
10
  */
10
- legend?: React.JSXElementConstructor<ChartsLegendProps> | React.JSXElementConstructor<ContinuousColorLegendProps> | React.JSXElementConstructor<PiecewiseColorLegendProps>;
11
+ legend?: React.JSXElementConstructor<ChartsLegendProps & LegendPropsOverrides> | React.JSXElementConstructor<ContinuousColorLegendProps & LegendPropsOverrides> | React.JSXElementConstructor<PiecewiseColorLegendProps & LegendPropsOverrides>;
11
12
  }
12
13
  export interface ChartsLegendSlotProps {
13
- legend?: Partial<ChartsLegendProps | ContinuousColorLegendProps | PiecewiseColorLegendProps> & ChartsLegendPosition;
14
+ legend?: Partial<ChartsLegendProps | ContinuousColorLegendProps | PiecewiseColorLegendProps> & ChartsLegendPosition & LegendPropsOverrides;
14
15
  }
15
16
  export interface ChartsLegendSlotExtension {
16
17
  /**
@@ -2,15 +2,16 @@ import type { ChartsLegendProps } from "./ChartsLegend.js";
2
2
  import { type ContinuousColorLegendProps } from "./ContinuousColorLegend.js";
3
3
  import { type ChartsLegendPosition } from "./legend.types.js";
4
4
  import { type PiecewiseColorLegendProps } from "./PiecewiseColorLegend.js";
5
+ import type { LegendPropsOverrides } from "../models/chartsSlotsComponentsProps.js";
5
6
  export interface ChartsLegendSlots {
6
7
  /**
7
8
  * Custom rendering of the legend.
8
9
  * @default ChartsLegend
9
10
  */
10
- legend?: React.JSXElementConstructor<ChartsLegendProps> | React.JSXElementConstructor<ContinuousColorLegendProps> | React.JSXElementConstructor<PiecewiseColorLegendProps>;
11
+ legend?: React.JSXElementConstructor<ChartsLegendProps & LegendPropsOverrides> | React.JSXElementConstructor<ContinuousColorLegendProps & LegendPropsOverrides> | React.JSXElementConstructor<PiecewiseColorLegendProps & LegendPropsOverrides>;
11
12
  }
12
13
  export interface ChartsLegendSlotProps {
13
- legend?: Partial<ChartsLegendProps | ContinuousColorLegendProps | PiecewiseColorLegendProps> & ChartsLegendPosition;
14
+ legend?: Partial<ChartsLegendProps | ContinuousColorLegendProps | PiecewiseColorLegendProps> & ChartsLegendPosition & LegendPropsOverrides;
14
15
  }
15
16
  export interface ChartsLegendSlotExtension {
16
17
  /**
@@ -8,8 +8,14 @@ exports.useUtilityClasses = exports.piecewiseColorLegendClasses = void 0;
8
8
  var _generateUtilityClass = _interopRequireDefault(require("@mui/utils/generateUtilityClass"));
9
9
  var _generateUtilityClasses = _interopRequireDefault(require("@mui/utils/generateUtilityClasses"));
10
10
  var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
11
+ const CORRECT_PREFIX = 'MuiPiecewiseColorLegend';
12
+ // TODO v10: remove `MuiPiecewiseColorLegendClasses`. Kept for backwards compatibility with
13
+ // users targeting the historically-incorrect prefix.
14
+ const LEGACY_PREFIX = 'MuiPiecewiseColorLegendClasses';
15
+
16
+ // Used by `useUtilityClasses` to also emit the legacy prefix in the rendered className.
11
17
  function getLegendUtilityClass(slot) {
12
- return (0, _generateUtilityClass.default)('MuiPiecewiseColorLegendClasses', slot);
18
+ return `${(0, _generateUtilityClass.default)(CORRECT_PREFIX, slot)} ${(0, _generateUtilityClass.default)(LEGACY_PREFIX, slot)}`;
13
19
  }
14
20
  const useUtilityClasses = props => {
15
21
  const {
@@ -28,4 +34,4 @@ const useUtilityClasses = props => {
28
34
  return (0, _composeClasses.default)(slots, getLegendUtilityClass, classes);
29
35
  };
30
36
  exports.useUtilityClasses = useUtilityClasses;
31
- const piecewiseColorLegendClasses = exports.piecewiseColorLegendClasses = (0, _generateUtilityClasses.default)('MuiPiecewiseColorLegendClasses', ['root', 'minLabel', 'maxLabel', 'item', 'vertical', 'horizontal', 'start', 'end', 'extremes', 'inlineStart', 'inlineEnd', 'mark', 'label']);
37
+ const piecewiseColorLegendClasses = exports.piecewiseColorLegendClasses = (0, _generateUtilityClasses.default)(CORRECT_PREFIX, ['root', 'minLabel', 'maxLabel', 'item', 'vertical', 'horizontal', 'start', 'end', 'extremes', 'inlineStart', 'inlineEnd', 'mark', 'label']);
@@ -1,8 +1,14 @@
1
1
  import generateUtilityClass from '@mui/utils/generateUtilityClass';
2
2
  import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
3
3
  import composeClasses from '@mui/utils/composeClasses';
4
+ const CORRECT_PREFIX = 'MuiPiecewiseColorLegend';
5
+ // TODO v10: remove `MuiPiecewiseColorLegendClasses`. Kept for backwards compatibility with
6
+ // users targeting the historically-incorrect prefix.
7
+ const LEGACY_PREFIX = 'MuiPiecewiseColorLegendClasses';
8
+
9
+ // Used by `useUtilityClasses` to also emit the legacy prefix in the rendered className.
4
10
  function getLegendUtilityClass(slot) {
5
- return generateUtilityClass('MuiPiecewiseColorLegendClasses', slot);
11
+ return `${generateUtilityClass(CORRECT_PREFIX, slot)} ${generateUtilityClass(LEGACY_PREFIX, slot)}`;
6
12
  }
7
13
  export const useUtilityClasses = props => {
8
14
  const {
@@ -20,4 +26,4 @@ export const useUtilityClasses = props => {
20
26
  };
21
27
  return composeClasses(slots, getLegendUtilityClass, classes);
22
28
  };
23
- export const piecewiseColorLegendClasses = generateUtilityClasses('MuiPiecewiseColorLegendClasses', ['root', 'minLabel', 'maxLabel', 'item', 'vertical', 'horizontal', 'start', 'end', 'extremes', 'inlineStart', 'inlineEnd', 'mark', 'label']);
29
+ export const piecewiseColorLegendClasses = generateUtilityClasses(CORRECT_PREFIX, ['root', 'minLabel', 'maxLabel', 'item', 'vertical', 'horizontal', 'start', 'end', 'extremes', 'inlineStart', 'inlineEnd', 'mark', 'label']);