@mui/x-charts 8.5.2 → 8.6.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 (188) hide show
  1. package/BarChart/AnimatedBarElement.js +3 -1
  2. package/BarChart/BarLabel/BarLabelPlot.d.ts +2 -2
  3. package/BarChart/BarLabel/BarLabelPlot.js +33 -25
  4. package/BarChart/BarPlot.js +55 -40
  5. package/BarChart/barClasses.d.ts +12 -0
  6. package/BarChart/barClasses.js +25 -0
  7. package/BarChart/index.d.ts +3 -1
  8. package/BarChart/index.js +23 -1
  9. package/BarChart/types.d.ts +5 -1
  10. package/CHANGELOG.md +203 -11
  11. package/ChartsLegend/ChartsLegend.d.ts +1 -0
  12. package/ChartsLegend/ChartsLegend.js +2 -0
  13. package/ChartsLegend/ContinuousColorLegend.d.ts +1 -0
  14. package/ChartsLegend/PiecewiseColorLegend.d.ts +1 -0
  15. package/ChartsLegend/chartsLegendClasses.d.ts +3 -1
  16. package/ChartsLegend/chartsLegendClasses.js +2 -1
  17. package/ChartsSurface/ChartsSurface.d.ts +1 -1
  18. package/ChartsXAxis/ChartsXAxis.js +4 -108
  19. package/ChartsXAxis/getVisibleLabels.d.ts +14 -0
  20. package/ChartsXAxis/getVisibleLabels.js +71 -0
  21. package/ChartsXAxis/shortenLabels.d.ts +4 -0
  22. package/ChartsXAxis/shortenLabels.js +48 -0
  23. package/ChartsYAxis/ChartsYAxis.js +2 -39
  24. package/ChartsYAxis/shortenLabels.d.ts +4 -0
  25. package/ChartsYAxis/shortenLabels.js +46 -0
  26. package/LineChart/AnimatedArea.js +4 -1
  27. package/LineChart/AnimatedLine.js +4 -1
  28. package/LineChart/CircleMarkElement.js +4 -1
  29. package/LineChart/MarkElement.js +4 -1
  30. package/LineChart/MarkPlot.js +1 -0
  31. package/PieChart/PieArc.js +3 -1
  32. package/PieChart/PiePlot.js +6 -0
  33. package/PieChart/index.d.ts +3 -1
  34. package/PieChart/index.js +18 -1
  35. package/PieChart/pieClasses.d.ts +12 -0
  36. package/PieChart/pieClasses.js +24 -0
  37. package/ScatterChart/Scatter.d.ts +2 -0
  38. package/ScatterChart/Scatter.js +9 -1
  39. package/ScatterChart/index.d.ts +3 -1
  40. package/ScatterChart/index.js +16 -1
  41. package/ScatterChart/scatterClasses.d.ts +8 -0
  42. package/ScatterChart/scatterClasses.js +22 -0
  43. package/Toolbar/ToolbarButton.js +2 -0
  44. package/esm/BarChart/AnimatedBarElement.js +3 -1
  45. package/esm/BarChart/BarLabel/BarLabelPlot.d.ts +2 -2
  46. package/esm/BarChart/BarLabel/BarLabelPlot.js +33 -25
  47. package/esm/BarChart/BarPlot.js +55 -40
  48. package/esm/BarChart/barClasses.d.ts +12 -0
  49. package/esm/BarChart/barClasses.js +15 -0
  50. package/esm/BarChart/index.d.ts +3 -1
  51. package/esm/BarChart/index.js +2 -1
  52. package/esm/BarChart/types.d.ts +5 -1
  53. package/esm/ChartsLegend/ChartsLegend.d.ts +1 -0
  54. package/esm/ChartsLegend/ChartsLegend.js +2 -0
  55. package/esm/ChartsLegend/ContinuousColorLegend.d.ts +1 -0
  56. package/esm/ChartsLegend/PiecewiseColorLegend.d.ts +1 -0
  57. package/esm/ChartsLegend/chartsLegendClasses.d.ts +3 -1
  58. package/esm/ChartsLegend/chartsLegendClasses.js +2 -1
  59. package/esm/ChartsSurface/ChartsSurface.d.ts +1 -1
  60. package/esm/ChartsXAxis/ChartsXAxis.js +2 -106
  61. package/esm/ChartsXAxis/getVisibleLabels.d.ts +14 -0
  62. package/esm/ChartsXAxis/getVisibleLabels.js +67 -0
  63. package/esm/ChartsXAxis/shortenLabels.d.ts +4 -0
  64. package/esm/ChartsXAxis/shortenLabels.js +42 -0
  65. package/esm/ChartsYAxis/ChartsYAxis.js +1 -38
  66. package/esm/ChartsYAxis/shortenLabels.d.ts +4 -0
  67. package/esm/ChartsYAxis/shortenLabels.js +41 -0
  68. package/esm/LineChart/AnimatedArea.js +4 -1
  69. package/esm/LineChart/AnimatedLine.js +4 -1
  70. package/esm/LineChart/CircleMarkElement.js +4 -1
  71. package/esm/LineChart/MarkElement.js +4 -1
  72. package/esm/LineChart/MarkPlot.js +1 -0
  73. package/esm/PieChart/PieArc.js +3 -1
  74. package/esm/PieChart/PiePlot.js +6 -0
  75. package/esm/PieChart/index.d.ts +3 -1
  76. package/esm/PieChart/index.js +2 -1
  77. package/esm/PieChart/pieClasses.d.ts +12 -0
  78. package/esm/PieChart/pieClasses.js +15 -0
  79. package/esm/ScatterChart/Scatter.d.ts +2 -0
  80. package/esm/ScatterChart/Scatter.js +9 -1
  81. package/esm/ScatterChart/index.d.ts +3 -1
  82. package/esm/ScatterChart/index.js +2 -1
  83. package/esm/ScatterChart/scatterClasses.d.ts +8 -0
  84. package/esm/ScatterChart/scatterClasses.js +13 -0
  85. package/esm/Toolbar/ToolbarButton.js +2 -0
  86. package/esm/hooks/useItemHighlighted.js +2 -2
  87. package/esm/index.js +1 -1
  88. package/esm/internals/components/NotRendered.d.ts +9 -0
  89. package/esm/internals/components/NotRendered.js +10 -0
  90. package/esm/internals/createSeriesSelectorOfType.js +2 -2
  91. package/esm/internals/index.d.ts +1 -0
  92. package/esm/internals/index.js +1 -0
  93. package/esm/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.selectors.d.ts +3 -29
  94. package/esm/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.selectors.js +1 -1
  95. package/esm/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.js +30 -2
  96. package/esm/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.d.ts +14 -724
  97. package/esm/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.js +10 -10
  98. package/esm/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types.d.ts +8 -2
  99. package/esm/internals/plugins/corePlugins/useChartId/useChartId.selectors.d.ts +3 -29
  100. package/esm/internals/plugins/corePlugins/useChartId/useChartId.selectors.js +1 -1
  101. package/esm/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.ts +6 -54
  102. package/esm/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.js +2 -2
  103. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.d.ts +12 -208
  104. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisLayout.selectors.d.ts +7 -66
  105. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisLayout.selectors.js +2 -3
  106. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +21 -6222
  107. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.js +4 -6
  108. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.d.ts +50 -5
  109. package/esm/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.d.ts +18 -622
  110. package/esm/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.js +3 -3
  111. package/esm/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.d.ts +18 -230
  112. package/esm/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.js +6 -6
  113. package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.js +20 -4
  114. package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.d.ts +17 -2012
  115. package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.js +2 -2
  116. package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.d.ts +39 -4
  117. package/esm/internals/plugins/featurePlugins/useChartVoronoi/useChartVoronoi.selectors.d.ts +3 -27
  118. package/esm/internals/plugins/featurePlugins/useChartVoronoi/useChartVoronoi.selectors.js +1 -1
  119. package/esm/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.selectors.d.ts +5 -40
  120. package/esm/internals/plugins/utils/selectors.d.ts +18 -6
  121. package/esm/internals/plugins/utils/selectors.js +3 -3
  122. package/esm/internals/store/useSelector.d.ts +2 -2
  123. package/esm/internals/store/useSelector.js +2 -2
  124. package/esm/locales/enUS.d.ts +3 -0
  125. package/esm/locales/enUS.js +8 -2
  126. package/esm/locales/frFR.d.ts +3 -0
  127. package/esm/locales/frFR.js +7 -0
  128. package/esm/locales/ptBR.d.ts +3 -0
  129. package/esm/locales/ptBR.js +7 -1
  130. package/esm/locales/ptPT.d.ts +3 -0
  131. package/esm/locales/ptPT.js +7 -1
  132. package/esm/locales/utils/chartsLocaleTextApi.d.ts +17 -0
  133. package/esm/locales/utils/getChartsLocalization.d.ts +3 -0
  134. package/esm/locales/utils/imageMimeTypes.d.ts +2 -0
  135. package/esm/locales/utils/imageMimeTypes.js +5 -0
  136. package/esm/models/slots/chartsBaseSlotProps.d.ts +4 -0
  137. package/hooks/useItemHighlighted.js +2 -2
  138. package/index.js +1 -1
  139. package/internals/components/NotRendered.d.ts +9 -0
  140. package/internals/components/NotRendered.js +16 -0
  141. package/internals/createSeriesSelectorOfType.js +2 -2
  142. package/internals/index.d.ts +1 -0
  143. package/internals/index.js +12 -0
  144. package/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.selectors.d.ts +3 -29
  145. package/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.selectors.js +1 -1
  146. package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.js +30 -2
  147. package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.d.ts +14 -724
  148. package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.js +11 -10
  149. package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types.d.ts +8 -2
  150. package/internals/plugins/corePlugins/useChartId/useChartId.selectors.d.ts +3 -29
  151. package/internals/plugins/corePlugins/useChartId/useChartId.selectors.js +1 -1
  152. package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.ts +6 -54
  153. package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.js +2 -2
  154. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.d.ts +12 -208
  155. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisLayout.selectors.d.ts +7 -66
  156. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisLayout.selectors.js +4 -3
  157. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +21 -6222
  158. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.js +4 -6
  159. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.d.ts +50 -5
  160. package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.d.ts +18 -622
  161. package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.js +3 -3
  162. package/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.d.ts +18 -230
  163. package/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.js +6 -6
  164. package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.js +20 -4
  165. package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.d.ts +17 -2012
  166. package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.js +2 -2
  167. package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.d.ts +39 -4
  168. package/internals/plugins/featurePlugins/useChartVoronoi/useChartVoronoi.selectors.d.ts +3 -27
  169. package/internals/plugins/featurePlugins/useChartVoronoi/useChartVoronoi.selectors.js +1 -1
  170. package/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.selectors.d.ts +5 -40
  171. package/internals/plugins/utils/selectors.d.ts +18 -6
  172. package/internals/plugins/utils/selectors.js +3 -3
  173. package/internals/store/useSelector.d.ts +2 -2
  174. package/internals/store/useSelector.js +2 -2
  175. package/locales/enUS.d.ts +3 -0
  176. package/locales/enUS.js +8 -2
  177. package/locales/frFR.d.ts +3 -0
  178. package/locales/frFR.js +7 -0
  179. package/locales/ptBR.d.ts +3 -0
  180. package/locales/ptBR.js +7 -1
  181. package/locales/ptPT.d.ts +3 -0
  182. package/locales/ptPT.js +7 -1
  183. package/locales/utils/chartsLocaleTextApi.d.ts +17 -0
  184. package/locales/utils/getChartsLocalization.d.ts +3 -0
  185. package/locales/utils/imageMimeTypes.d.ts +2 -0
  186. package/locales/utils/imageMimeTypes.js +11 -0
  187. package/models/slots/chartsBaseSlotProps.d.ts +4 -0
  188. package/package.json +3 -3
@@ -21,6 +21,8 @@ function AnimatedBarElement(props) {
21
21
  const animatedProps = (0, _useAnimateBar.useAnimateBar)(props);
22
22
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("rect", (0, _extends2.default)({}, other, {
23
23
  filter: ownerState.isHighlighted ? 'brightness(120%)' : undefined,
24
- opacity: ownerState.isFaded ? 0.3 : 1
24
+ opacity: ownerState.isFaded ? 0.3 : 1,
25
+ "data-highlighted": ownerState.isHighlighted || undefined,
26
+ "data-faded": ownerState.isFaded || undefined
25
27
  }, animatedProps));
26
28
  }
@@ -1,8 +1,8 @@
1
1
  import * as React from 'react';
2
- import type { CompletedBarData } from "../types.js";
2
+ import type { ProcessedBarSeriesData } from "../types.js";
3
3
  import { BarLabelItemProps } from "./BarLabelItem.js";
4
4
  type BarLabelPlotProps = {
5
- bars: CompletedBarData[];
5
+ bars: ProcessedBarSeriesData[];
6
6
  skipAnimation?: boolean;
7
7
  barLabel?: BarLabelItemProps['barLabel'];
8
8
  };
@@ -10,6 +10,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
10
10
  var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
11
11
  var React = _interopRequireWildcard(require("react"));
12
12
  var _BarLabelItem = require("./BarLabelItem");
13
+ var _barClasses = require("../barClasses");
13
14
  var _jsxRuntime = require("react/jsx-runtime");
14
15
  const _excluded = ["bars", "skipAnimation"];
15
16
  /**
@@ -21,32 +22,39 @@ function BarLabelPlot(props) {
21
22
  skipAnimation
22
23
  } = props,
23
24
  other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
25
+ const classes = (0, _barClasses.useUtilityClasses)();
24
26
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(React.Fragment, {
25
- children: bars.map(({
26
- xOrigin,
27
- yOrigin,
28
- x,
29
- y,
27
+ children: bars.flatMap(({
30
28
  seriesId,
31
- dataIndex,
32
- color,
33
- value,
34
- width,
35
- height,
36
- layout
37
- }) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_BarLabelItem.BarLabelItem, (0, _extends2.default)({
38
- seriesId: seriesId,
39
- dataIndex: dataIndex,
40
- value: value,
41
- color: color,
42
- xOrigin: xOrigin,
43
- yOrigin: yOrigin,
44
- x: x,
45
- y: y,
46
- width: width,
47
- height: height,
48
- skipAnimation: skipAnimation ?? false,
49
- layout: layout ?? 'vertical'
50
- }, other), `${seriesId}-${dataIndex}`))
29
+ data
30
+ }) => /*#__PURE__*/(0, _jsxRuntime.jsx)("g", {
31
+ className: classes.seriesLabels,
32
+ "data-series": seriesId,
33
+ children: data.map(({
34
+ xOrigin,
35
+ yOrigin,
36
+ x,
37
+ y,
38
+ dataIndex,
39
+ color,
40
+ value,
41
+ width,
42
+ height,
43
+ layout
44
+ }) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_BarLabelItem.BarLabelItem, (0, _extends2.default)({
45
+ seriesId: seriesId,
46
+ dataIndex: dataIndex,
47
+ value: value,
48
+ color: color,
49
+ xOrigin: xOrigin,
50
+ yOrigin: yOrigin,
51
+ x: x,
52
+ y: y,
53
+ width: width,
54
+ height: height,
55
+ skipAnimation: skipAnimation ?? false,
56
+ layout: layout ?? 'vertical'
57
+ }, other), dataIndex))
58
+ }, seriesId))
51
59
  });
52
60
  }
@@ -22,6 +22,7 @@ var _checkScaleErrors = require("./checkScaleErrors");
22
22
  var _useBarSeries = require("../hooks/useBarSeries");
23
23
  var _useSkipAnimation = require("../hooks/useSkipAnimation");
24
24
  var _useInternalIsZoomInteracting = require("../internals/plugins/featurePlugins/useChartCartesianAxis/useInternalIsZoomInteracting");
25
+ var _barClasses = require("./barClasses");
25
26
  var _jsxRuntime = require("react/jsx-runtime");
26
27
  const _excluded = ["skipAnimation", "onItemClick", "borderRadius", "barLabel"];
27
28
  /**
@@ -75,13 +76,13 @@ const useAggregatedData = () => {
75
76
  const defaultYAxisId = yAxisIds[0];
76
77
  const masks = {};
77
78
  const data = stackingGroups.flatMap(({
78
- ids: groupIds
79
+ ids: seriesIds
79
80
  }, groupIndex) => {
80
81
  const xMin = drawingArea.left;
81
82
  const xMax = drawingArea.left + drawingArea.width;
82
83
  const yMin = drawingArea.top;
83
84
  const yMax = drawingArea.top + drawingArea.height;
84
- return groupIds.flatMap(seriesId => {
85
+ return seriesIds.map(seriesId => {
85
86
  const xAxisId = series[seriesId].xAxisId ?? defaultXAxisId;
86
87
  const yAxisId = series[seriesId].yAxisId ?? defaultYAxisId;
87
88
  const xAxisConfig = xAxis[xAxisId];
@@ -107,7 +108,7 @@ const useAggregatedData = () => {
107
108
  data: currentSeriesData,
108
109
  layout
109
110
  } = series[seriesId];
110
- return baseScaleConfig.data.map((baseValue, dataIndex) => {
111
+ const seriesDataPoints = baseScaleConfig.data.map((baseValue, dataIndex) => {
111
112
  if (currentSeriesData[dataIndex] == null) {
112
113
  return null;
113
114
  }
@@ -156,6 +157,10 @@ const useAggregatedData = () => {
156
157
  mask.hasPositive = mask.hasPositive || (result.value ?? 0) > 0;
157
158
  return result;
158
159
  }).filter(rectangle => rectangle !== null);
160
+ return {
161
+ seriesId,
162
+ data: seriesDataPoints
163
+ };
159
164
  });
160
165
  });
161
166
  return {
@@ -198,7 +203,9 @@ function BarPlot(props) {
198
203
  const isZoomInteracting = (0, _useInternalIsZoomInteracting.useInternalIsZoomInteracting)();
199
204
  const skipAnimation = (0, _useSkipAnimation.useSkipAnimation)(isZoomInteracting || inSkipAnimation);
200
205
  const withoutBorderRadius = !borderRadius || borderRadius <= 0;
206
+ const classes = (0, _barClasses.useUtilityClasses)();
201
207
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(BarPlotRoot, {
208
+ className: classes.root,
202
209
  children: [!withoutBorderRadius && masksData.map(({
203
210
  id,
204
211
  x,
@@ -223,45 +230,53 @@ function BarPlot(props) {
223
230
  }, id);
224
231
  }), completedData.map(({
225
232
  seriesId,
226
- dataIndex,
227
- color,
228
- maskId,
229
- layout,
230
- x,
231
- xOrigin,
232
- y,
233
- yOrigin,
234
- width,
235
- height
233
+ data
236
234
  }) => {
237
- const barElement = /*#__PURE__*/(0, _jsxRuntime.jsx)(_BarElement.BarElement, (0, _extends2.default)({
238
- id: seriesId,
239
- dataIndex: dataIndex,
240
- color: color,
241
- skipAnimation: skipAnimation ?? false,
242
- layout: layout ?? 'vertical',
243
- x: x,
244
- xOrigin: xOrigin,
245
- y: y,
246
- yOrigin: yOrigin,
247
- width: width,
248
- height: height
249
- }, other, {
250
- onClick: onItemClick && (event => {
251
- onItemClick(event, {
252
- type: 'bar',
253
- seriesId,
254
- dataIndex
255
- });
256
- })
257
- }), `${seriesId}-${dataIndex}`);
258
- if (withoutBorderRadius) {
259
- return barElement;
260
- }
261
235
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("g", {
262
- clipPath: `url(#${maskId})`,
263
- children: barElement
264
- }, `${seriesId}-${dataIndex}`);
236
+ "data-series": seriesId,
237
+ className: classes.series,
238
+ children: data.map(({
239
+ dataIndex,
240
+ color,
241
+ maskId,
242
+ layout,
243
+ x,
244
+ xOrigin,
245
+ y,
246
+ yOrigin,
247
+ width,
248
+ height
249
+ }) => {
250
+ const barElement = /*#__PURE__*/(0, _jsxRuntime.jsx)(_BarElement.BarElement, (0, _extends2.default)({
251
+ id: seriesId,
252
+ dataIndex: dataIndex,
253
+ color: color,
254
+ skipAnimation: skipAnimation ?? false,
255
+ layout: layout ?? 'vertical',
256
+ x: x,
257
+ xOrigin: xOrigin,
258
+ y: y,
259
+ yOrigin: yOrigin,
260
+ width: width,
261
+ height: height
262
+ }, other, {
263
+ onClick: onItemClick && (event => {
264
+ onItemClick(event, {
265
+ type: 'bar',
266
+ seriesId,
267
+ dataIndex
268
+ });
269
+ })
270
+ }), dataIndex);
271
+ if (withoutBorderRadius) {
272
+ return barElement;
273
+ }
274
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("g", {
275
+ clipPath: `url(#${maskId})`,
276
+ children: barElement
277
+ }, dataIndex);
278
+ })
279
+ }, seriesId);
265
280
  }), barLabel && /*#__PURE__*/(0, _jsxRuntime.jsx)(_BarLabelPlot.BarLabelPlot, (0, _extends2.default)({
266
281
  bars: completedData,
267
282
  skipAnimation: skipAnimation,
@@ -0,0 +1,12 @@
1
+ export interface BarClasses {
2
+ /** Styles applied to the bar plot element. */
3
+ root: string;
4
+ /** Styles applied to the group surrounding a series' bar elements. */
5
+ series: string;
6
+ /** Styles applied to the group surrounding a series' labels. */
7
+ seriesLabels: string;
8
+ }
9
+ export type BarClassKey = keyof BarClasses;
10
+ export declare function getBarUtilityClass(slot: string): string;
11
+ export declare const barClasses: BarClasses;
12
+ export declare const useUtilityClasses: (classes?: Partial<BarClasses>) => Record<"root" | "series" | "seriesLabels", string>;
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.barClasses = void 0;
8
+ exports.getBarUtilityClass = getBarUtilityClass;
9
+ exports.useUtilityClasses = void 0;
10
+ var _generateUtilityClass = _interopRequireDefault(require("@mui/utils/generateUtilityClass"));
11
+ var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
12
+ var _generateUtilityClasses = _interopRequireDefault(require("@mui/utils/generateUtilityClasses"));
13
+ function getBarUtilityClass(slot) {
14
+ return (0, _generateUtilityClass.default)('MuiBar', slot);
15
+ }
16
+ const barClasses = exports.barClasses = (0, _generateUtilityClasses.default)('MuiBar', ['root', 'series', 'seriesLabels']);
17
+ const useUtilityClasses = classes => {
18
+ const slots = {
19
+ root: ['root'],
20
+ series: ['series'],
21
+ seriesLabels: ['seriesLabels']
22
+ };
23
+ return (0, _composeClasses.default)(slots, getBarUtilityClass, classes);
24
+ };
25
+ exports.useUtilityClasses = useUtilityClasses;
@@ -2,4 +2,6 @@ export * from "./BarChart.js";
2
2
  export * from "./BarPlot.js";
3
3
  export * from "./BarElement.js";
4
4
  export * from "./BarLabel/index.js";
5
- export * from "./barElementClasses.js";
5
+ export * from "./barElementClasses.js";
6
+ export { barClasses, getBarUtilityClass } from "./barClasses.js";
7
+ export type { BarClassKey, BarClasses } from "./barClasses.js";
package/BarChart/index.js CHANGED
@@ -3,9 +3,26 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
+ var _exportNames = {
7
+ barClasses: true,
8
+ getBarUtilityClass: true
9
+ };
10
+ Object.defineProperty(exports, "barClasses", {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _barClasses.barClasses;
14
+ }
15
+ });
16
+ Object.defineProperty(exports, "getBarUtilityClass", {
17
+ enumerable: true,
18
+ get: function () {
19
+ return _barClasses.getBarUtilityClass;
20
+ }
21
+ });
6
22
  var _BarChart = require("./BarChart");
7
23
  Object.keys(_BarChart).forEach(function (key) {
8
24
  if (key === "default" || key === "__esModule") return;
25
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
9
26
  if (key in exports && exports[key] === _BarChart[key]) return;
10
27
  Object.defineProperty(exports, key, {
11
28
  enumerable: true,
@@ -17,6 +34,7 @@ Object.keys(_BarChart).forEach(function (key) {
17
34
  var _BarPlot = require("./BarPlot");
18
35
  Object.keys(_BarPlot).forEach(function (key) {
19
36
  if (key === "default" || key === "__esModule") return;
37
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
20
38
  if (key in exports && exports[key] === _BarPlot[key]) return;
21
39
  Object.defineProperty(exports, key, {
22
40
  enumerable: true,
@@ -28,6 +46,7 @@ Object.keys(_BarPlot).forEach(function (key) {
28
46
  var _BarElement = require("./BarElement");
29
47
  Object.keys(_BarElement).forEach(function (key) {
30
48
  if (key === "default" || key === "__esModule") return;
49
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
31
50
  if (key in exports && exports[key] === _BarElement[key]) return;
32
51
  Object.defineProperty(exports, key, {
33
52
  enumerable: true,
@@ -39,6 +58,7 @@ Object.keys(_BarElement).forEach(function (key) {
39
58
  var _BarLabel = require("./BarLabel");
40
59
  Object.keys(_BarLabel).forEach(function (key) {
41
60
  if (key === "default" || key === "__esModule") return;
61
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
42
62
  if (key in exports && exports[key] === _BarLabel[key]) return;
43
63
  Object.defineProperty(exports, key, {
44
64
  enumerable: true,
@@ -50,6 +70,7 @@ Object.keys(_BarLabel).forEach(function (key) {
50
70
  var _barElementClasses = require("./barElementClasses");
51
71
  Object.keys(_barElementClasses).forEach(function (key) {
52
72
  if (key === "default" || key === "__esModule") return;
73
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
53
74
  if (key in exports && exports[key] === _barElementClasses[key]) return;
54
75
  Object.defineProperty(exports, key, {
55
76
  enumerable: true,
@@ -57,4 +78,5 @@ Object.keys(_barElementClasses).forEach(function (key) {
57
78
  return _barElementClasses[key];
58
79
  }
59
80
  });
60
- });
81
+ });
82
+ var _barClasses = require("./barClasses");
@@ -9,7 +9,11 @@ export type AnimationData = {
9
9
  xOrigin: number;
10
10
  layout: BarSeriesType['layout'];
11
11
  };
12
- export interface CompletedBarData extends AnimationData {
12
+ export interface ProcessedBarSeriesData {
13
+ seriesId: SeriesId;
14
+ data: ProcessedBarData[];
15
+ }
16
+ export interface ProcessedBarData extends AnimationData {
13
17
  seriesId: SeriesId;
14
18
  dataIndex: number;
15
19
  color: string;
package/CHANGELOG.md CHANGED
@@ -5,6 +5,208 @@
5
5
  All notable changes to this project will be documented in this file.
6
6
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
7
7
 
8
+ ## 8.6.0
9
+
10
+ _Jun 27, 2025_
11
+
12
+ We'd like to extend a big thank you to the 12 contributors who made this release possible. Here are some highlights ✨:
13
+
14
+ - 📊 Add export menu to charts toolbar
15
+ - 📅 Add `usePickerAdapter` hook to access the date adapter.
16
+
17
+ You can use the adapter in your custom components if you need them to work with multiple date libraries — [Learn more](https://mui.com/x/react-date-pickers/custom-components/#access-date-adapter).
18
+ - 🌎 Improve Danish (da-DK) locale
19
+ - 🌎 Improve German (de-DE) locale
20
+
21
+ Special thanks go out to the community members for their valuable contributions:
22
+ @ShahrazH, @vadimka123
23
+
24
+ The following are all team members who have contributed to this release:
25
+ @arminmeh, @bernardobelchior, @JCQuintas, @KenanYusuf, @LukasTy, @MBilalShafi, @michelengelen, @noraleonte, @rita-codes, @sai6855
26
+
27
+ ### Data Grid
28
+
29
+ #### `@mui/x-data-grid@8.6.0`
30
+
31
+ - [DataGrid] Fix `label` type in `GridActionsCellItem` type (#18175) @sai6855
32
+ - [DataGrid] Fix grid menu not closing when pressing escape/tab (#18300) @KenanYusuf
33
+ - [l10n] Improve Danish (da-DK) locale (#18428) @ShahrazH
34
+ - [l10n] Improve German (de-DE) locale (#18388) @omalyutin
35
+
36
+ #### `@mui/x-data-grid-pro@8.6.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link "Pro plan")
37
+
38
+ Same changes as in `@mui/x-data-grid@8.6.0`, plus:
39
+
40
+ - [DataGridPro] Fix lazy loading params calculated from rendering context (#18460) @arminmeh
41
+
42
+ #### `@mui/x-data-grid-premium@8.6.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link "Premium plan")
43
+
44
+ Same changes as in `@mui/x-data-grid-pro@8.6.0`.
45
+
46
+ ### Date and Time Pickers
47
+
48
+ #### `@mui/x-date-pickers@8.6.0`
49
+
50
+ - [pickers] Add `usePickerAdapter` hook (#18457) @LukasTy
51
+ - [pickers] Fix to use latest `value` when updating `lastCommittedValue` in internal state (#18518) @LukasTy
52
+ - [pickers] Use `usePickerAdapter` hook internally instead of `useUtils` (#18465) @LukasTy
53
+
54
+ #### `@mui/x-date-pickers-pro@8.6.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link "Pro plan")
55
+
56
+ Same changes as in `@mui/x-date-pickers@8.6.0`.
57
+
58
+ ### Charts
59
+
60
+ #### `@mui/x-charts@8.6.0`
61
+
62
+ - [charts] Add `data-series` to charts legend item (#18414) @bernardobelchior
63
+ - [charts] Add `data-series` to bar charts (#18413) @bernardobelchior
64
+ - [charts] Add `data-series` to elements of line chart (#18409) @bernardobelchior
65
+ - [charts] Add `data-series` to pie charts (#18432) @bernardobelchior
66
+ - [charts] Fix missing key in bar plot (#18502) @bernardobelchior
67
+ - [charts] Split axis utils from main file (#18517) @JCQuintas
68
+ - [charts] Improve touch behavior for polar axis (#18531) @JCQuintas
69
+ - [charts] Add `isElementInside` helper (#18530) @JCQuintas
70
+
71
+ #### `@mui/x-charts-pro@8.6.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link "Pro plan")
72
+
73
+ Same changes as in `@mui/x-charts@8.6.0`, plus:
74
+
75
+ - [charts-pro] Add export menu to charts toolbar (#18210) @bernardobelchior
76
+ - [charts-pro] Fix export docs mentioning tooltip instead of toolbar (#18490) @bernardobelchior
77
+ - [charts-pro] Fix iframe not being removed after print export (#18500) @bernardobelchior
78
+
79
+ ### Tree View
80
+
81
+ #### `@mui/x-tree-view@8.6.0`
82
+
83
+ Internal changes.
84
+
85
+ #### `@mui/x-tree-view-pro@8.6.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link "Pro plan")
86
+
87
+ Same changes as in `@mui/x-tree-view@8.6.0`, plus:
88
+
89
+ - [tree view pro] Fix theme augmentation (#18437) @LukasTy
90
+
91
+ ### Codemod
92
+
93
+ #### `@mui/x-codemod@8.6.0`
94
+
95
+ Internal changes.
96
+
97
+ ### Docs
98
+
99
+ - [docs] Document `GridRenderContext` (#18492) @arminmeh
100
+ - [docs] Prevent stale rows to appear on sort and filter change in the lazy loading demo (#18461) @arminmeh
101
+ - [docs][pickers] Update action bar demo to use the `nextOrAccept` action (#18505) @LukasTy
102
+ - [docs] Update indeterminate checkbox section in migration guide (#18229) @michelengelen
103
+ - [docs] Data source nested pagination recipe (#14777) @MBilalShafi
104
+
105
+ ### Core
106
+
107
+ - [core] Avoid json stringify whole window object (#18512) @vadimka123
108
+
109
+ ### Miscellaneous
110
+
111
+ - [code-infra] Dynamically get pickers adapters dependencies versions (#18446) @JCQuintas
112
+ - [infra] Adjust inquirer version and usage (#18495) @michelengelen
113
+ - [infra] Use `String.raw` for creating the remote regex (#18462) @michelengelen
114
+
115
+ ## 8.5.3
116
+
117
+ _Jun 19, 2025_
118
+
119
+ We'd like to extend a big thank you to the 10 contributors who made this release possible. Here are some highlights ✨:
120
+
121
+ - 📚 Documentation improvements
122
+ - 🐞 Bugfixes
123
+
124
+ Special thanks go out to the community members for their valuable contributions:
125
+ @alisasanib, @arminmeh, @sai6855
126
+
127
+ The following are all team members who have contributed to this release:
128
+ @alexfauquette, @bernardobelchior, @flaviendelangle, @JCQuintas, @LukasTy, @MBilalShafi, @oliviertassinari
129
+
130
+ ### Data Grid
131
+
132
+ #### `@mui/x-data-grid@8.5.3`
133
+
134
+ - [DataGrid] Fix export menu button tooltip being interactive when menu is open (#18327) @bernardobelchior
135
+ - [DataGrid] Fix column menu scroll close (#18065) @alisasanib
136
+ - [DataGrid] Fix page size issue with data source (#18419) @MBilalShafi
137
+
138
+ #### `@mui/x-data-grid-pro@8.5.3` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
139
+
140
+ Same changes as in `@mui/x-data-grid@8.5.3`, plus:
141
+
142
+ - [DataGridPro] Ignore missing `rowCount` response when new children are fetched with the data source (#17711) @arminmeh
143
+
144
+ #### `@mui/x-data-grid-premium@8.5.3` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
145
+
146
+ Same changes as in `@mui/x-data-grid-pro@8.5.3`.
147
+
148
+ ### Date and Time Pickers
149
+
150
+ #### `@mui/x-date-pickers@8.5.3`
151
+
152
+ - [pickers] Add `inputSizeSmall` to classes interface (#18242) @sai6855
153
+
154
+ #### `@mui/x-date-pickers-pro@8.5.3` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
155
+
156
+ Same changes as in `@mui/x-date-pickers@8.5.3`.
157
+
158
+ ### Charts
159
+
160
+ #### `@mui/x-charts@8.5.3`
161
+
162
+ - [charts] Add item class to list item around each series in legend (#18411) @bernardobelchior
163
+ - [charts] Allow `tabIndex` in surface and legend (#18344) @JCQuintas
164
+ - [charts] Explore selector typing (#18362) @alexfauquette
165
+ - [charts] Fix highlight with number ids (#18423) @alexfauquette
166
+ - [charts] Make scatter chart use data attributes (#18048) @alexfauquette
167
+
168
+ #### `@mui/x-charts-pro@8.5.3` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
169
+
170
+ Same changes as in `@mui/x-charts@8.5.3`, plus:
171
+
172
+ - [charts-pro] Add data-series to elements of funnel chart (#18067) @JCQuintas
173
+ - [charts-pro] Hide values outside minStart and maxEnd in zoom slider (#18336) @bernardobelchior
174
+ - [charts-pro] Fix `FunnelChart` label positioning with different curves (#18354) @JCQuintas
175
+
176
+ ### Tree View
177
+
178
+ #### `@mui/x-tree-view@8.5.3`
179
+
180
+ Internal changes.
181
+
182
+ #### `@mui/x-tree-view-pro@8.5.3` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
183
+
184
+ Same changes as in `@mui/x-tree-view@8.5.3`.
185
+
186
+ ### Codemod
187
+
188
+ #### `@mui/x-codemod@8.5.3`
189
+
190
+ Internal changes.
191
+
192
+ ### Docs
193
+
194
+ - [docs] Fix 404 in charts docs (#18440) @alexfauquette
195
+ - [docs][pickers] Fix adapter version resolving when opening demo to edit (#18363) @LukasTy
196
+
197
+ ### Core
198
+
199
+ - [core] Fix pnpm valelint error (#18420) @oliviertassinari
200
+
201
+ ### Miscellaneous
202
+
203
+ - [code-infra] Add back a `Playwright` renovate group (#18397) @LukasTy
204
+ - [code-infra] Setup `CODEOWNERS` for charts repositories (#18418) @JCQuintas
205
+ - [code-infra] Strengthen `URL` usage for test config (#18444) @LukasTy
206
+ - [code-infra] Use `vitest` bundled types (#17758) @JCQuintas
207
+ - [infra] Stabilise tests by removing babel and plugins from vitest (#18341) @JCQuintas
208
+ - [infra] Add automated release PR creation script (#18345) @michelengelen
209
+
8
210
  ## 8.5.2
9
211
 
10
212
  _Jun 12, 2025_
@@ -94,7 +296,7 @@ Same changes as in `@mui/x-tree-view@8.5.2`.
94
296
  - [code-infra] Revert `React` to `19.0.0` (#18265) @LukasTy
95
297
  - [code-infra] Use `catalog` for reused dependencies (#18302) @LukasTy
96
298
  - [infra] Remove unused karma/mocha deps and files (#18340) @JCQuintas
97
- - [infra] Update github label references to use 'scope' instead of 'component' (#18260) @michelengelen
299
+ - [infra] Update GitHub label references to use 'scope' instead of 'component' (#18260) @michelengelen
98
300
  - [infra] Use a single browser server in CI (#18230) @JCQuintas
99
301
 
100
302
  ## 8.5.1
@@ -189,15 +391,6 @@ Same changes as in `@mui/x-tree-view@8.5.1`.
189
391
 
190
392
  ### Core
191
393
 
192
- - chore(deps): bump @next/eslint-plugin-next to 15.3.3 (#18155) @renovate[bot]
193
- - chore(deps): bump @types/lodash to ^4.17.17 (#17990) @renovate[bot]
194
- - chore(deps): bump babel (#18157) @renovate[bot]
195
- - chore(deps): bump eslint to ^9.28.0 (#17352) @renovate[bot]
196
- - chore(deps): bump material ui (#17802) @renovate[bot]
197
- - chore(deps): bump next to ^15.3.3 (#18159) @renovate[bot]
198
- - chore(deps): bump ossf/scorecard-action action to v2.4.2 (#18160) @renovate[bot]
199
- - chore(deps): bump react-router to ^7.6.1 (#18162) @renovate[bot]
200
- - chore(deps): bump yargs to ^18.0.0 (#18169) @renovate[bot]
201
394
  - [code-infra] Different approach to console testing for `processRowUpdate` (#18213) @JCQuintas
202
395
  - [code-infra] Fix act warnings in DataGrid/toolbar (#18207) @JCQuintas
203
396
  - [code-infra] Remove `istanbul` references (#18194) @JCQuintas
@@ -4641,7 +4834,6 @@ No changes since `@mui/x-charts@7.22.2`.
4641
4834
  - [docs] Add `next` version links (#15423) @LukasTy
4642
4835
  - [docs] Use the `loading` state in the demos (#15538) @cherniavskii
4643
4836
  - [docs] Add data caching to lazy loaded detail panel demo (#15506) @cherniavskii
4644
-
4645
4837
  - [code-infra] Tentative fix for Argos flaky screenshot tests (#15399) @JCQuintas
4646
4838
  - [docs-infra] Transpile `.ts` demo files (#15421) @KenanYusuf
4647
4839
  - [core] Clarify release version bump strategy (#15536) @cherniavskii
@@ -22,6 +22,7 @@ export interface ChartsLegendProps {
22
22
  classes?: Partial<ChartsLegendClasses>;
23
23
  className?: string;
24
24
  sx?: SxProps<Theme>;
25
+ tabIndex?: number;
25
26
  }
26
27
  declare const ChartsLegend: React.ForwardRefExoticComponent<ChartsLegendProps & import("./chartsLegend.types.js").ChartsLegendSlotExtension & React.RefAttributes<{}>>;
27
28
  export { ChartsLegend };
@@ -87,6 +87,8 @@ const ChartsLegend = exports.ChartsLegend = (0, _consumeSlots.consumeSlots)('Mui
87
87
  ownerState: props,
88
88
  children: data.items.map((item, i) => {
89
89
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("li", {
90
+ className: classes?.item,
91
+ "data-series": item.id,
90
92
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(Element, {
91
93
  className: classes?.series,
92
94
  role: onItemClick ? 'button' : undefined,
@@ -51,6 +51,7 @@ export interface ContinuousColorLegendProps extends ColorLegendSelector, AppendK
51
51
  classes?: Partial<ContinuousColorLegendClasses>;
52
52
  className?: string;
53
53
  sx?: SxProps<Theme>;
54
+ tabIndex?: number;
54
55
  }
55
56
  declare const ContinuousColorLegend: React.ForwardRefExoticComponent<ContinuousColorLegendProps & import("./chartsLegend.types.js").ChartsLegendSlotExtension & React.RefAttributes<{}>>;
56
57
  export { ContinuousColorLegend };
@@ -37,6 +37,7 @@ export interface PiecewiseColorLegendProps extends ColorLegendSelector, PrependK
37
37
  classes?: Partial<PiecewiseColorLegendClasses>;
38
38
  className?: string;
39
39
  sx?: SxProps<Theme>;
40
+ tabIndex?: number;
40
41
  }
41
42
  declare const PiecewiseColorLegend: React.ForwardRefExoticComponent<PiecewiseColorLegendProps & import("./chartsLegend.types.js").ChartsLegendSlotExtension & React.RefAttributes<{}>>;
42
43
  export { PiecewiseColorLegend };
@@ -3,6 +3,8 @@ import type { ChartsLegendSlotExtension } from "./chartsLegend.types.js";
3
3
  export interface ChartsLegendClasses {
4
4
  /** Styles applied to the root element. */
5
5
  root: string;
6
+ /** Styles applied to the list item around each series in the legend. */
7
+ item: string;
6
8
  /** Styles applied to a series element. */
7
9
  series: string;
8
10
  /** Styles applied to series mark element. */
@@ -14,5 +16,5 @@ export interface ChartsLegendClasses {
14
16
  /** Styles applied to the legend in row layout. */
15
17
  horizontal: string;
16
18
  }
17
- export declare const useUtilityClasses: (props: ChartsLegendProps & ChartsLegendSlotExtension) => Record<"root" | "label" | "mark" | "series", string>;
19
+ export declare const useUtilityClasses: (props: ChartsLegendProps & ChartsLegendSlotExtension) => Record<"root" | "label" | "mark" | "item" | "series", string>;
18
20
  export declare const legendClasses: ChartsLegendClasses;
@@ -18,6 +18,7 @@ const useUtilityClasses = props => {
18
18
  } = props;
19
19
  const slots = {
20
20
  root: ['root', direction],
21
+ item: ['item'],
21
22
  mark: ['mark'],
22
23
  label: ['label'],
23
24
  series: ['series']
@@ -25,4 +26,4 @@ const useUtilityClasses = props => {
25
26
  return (0, _composeClasses.default)(slots, getLegendUtilityClass, classes);
26
27
  };
27
28
  exports.useUtilityClasses = useUtilityClasses;
28
- const legendClasses = exports.legendClasses = (0, _generateUtilityClasses.default)('MuiChartsLegend', ['root', 'series', 'mark', 'label', 'vertical', 'horizontal']);
29
+ const legendClasses = exports.legendClasses = (0, _generateUtilityClasses.default)('MuiChartsLegend', ['root', 'item', 'series', 'mark', 'label', 'vertical', 'horizontal']);