@mui/x-charts-pro 7.0.0-alpha.2 → 7.0.0-beta.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 (99) hide show
  1. package/BarChartPro/BarChartPro.js +47 -54
  2. package/BarChartPro/index.js +1 -1
  3. package/CHANGELOG.md +167 -1
  4. package/ChartContainerPro/ChartContainerPro.js +4 -4
  5. package/ChartContainerPro/index.js +1 -1
  6. package/Heatmap/DefaultHeatmapTooltip.js +1 -1
  7. package/Heatmap/Heatmap.js +11 -6
  8. package/Heatmap/HeatmapItem.js +1 -1
  9. package/Heatmap/HeatmapPlot.js +2 -2
  10. package/Heatmap/index.js +4 -4
  11. package/Heatmap/plugin.js +3 -3
  12. package/LineChartPro/LineChartPro.js +63 -112
  13. package/LineChartPro/index.js +1 -1
  14. package/ResponsiveChartContainerPro/ResponsiveChartContainerPro.js +3 -3
  15. package/ResponsiveChartContainerPro/index.js +1 -1
  16. package/ScatterChartPro/ScatterChartPro.js +20 -4
  17. package/ScatterChartPro/index.js +1 -1
  18. package/context/CartesianProviderPro/CartesianProviderPro.js +2 -2
  19. package/context/CartesianProviderPro/createAxisFilterMapper.js +1 -2
  20. package/context/CartesianProviderPro/index.js +1 -1
  21. package/context/ZoomProvider/ZoomProvider.js +3 -3
  22. package/context/ZoomProvider/ZoomSetup.js +2 -2
  23. package/context/ZoomProvider/index.js +3 -3
  24. package/context/ZoomProvider/useSetupPan.js +1 -1
  25. package/context/ZoomProvider/useSetupZoom.js +1 -1
  26. package/context/ZoomProvider/useZoom.js +1 -1
  27. package/context/index.js +2 -2
  28. package/hooks/index.js +1 -1
  29. package/index.js +9 -9
  30. package/internals/utils/releaseInfo.js +1 -1
  31. package/models/index.js +1 -1
  32. package/models/seriesType/index.js +1 -1
  33. package/modern/BarChartPro/BarChartPro.js +47 -54
  34. package/modern/BarChartPro/index.js +1 -1
  35. package/modern/ChartContainerPro/ChartContainerPro.js +4 -4
  36. package/modern/ChartContainerPro/index.js +1 -1
  37. package/modern/Heatmap/DefaultHeatmapTooltip.js +1 -1
  38. package/modern/Heatmap/Heatmap.js +11 -6
  39. package/modern/Heatmap/HeatmapItem.js +1 -1
  40. package/modern/Heatmap/HeatmapPlot.js +2 -2
  41. package/modern/Heatmap/index.js +4 -4
  42. package/modern/Heatmap/plugin.js +3 -3
  43. package/modern/LineChartPro/LineChartPro.js +63 -112
  44. package/modern/LineChartPro/index.js +1 -1
  45. package/modern/ResponsiveChartContainerPro/ResponsiveChartContainerPro.js +3 -3
  46. package/modern/ResponsiveChartContainerPro/index.js +1 -1
  47. package/modern/ScatterChartPro/ScatterChartPro.js +20 -4
  48. package/modern/ScatterChartPro/index.js +1 -1
  49. package/modern/context/CartesianProviderPro/CartesianProviderPro.js +2 -2
  50. package/modern/context/CartesianProviderPro/createAxisFilterMapper.js +1 -2
  51. package/modern/context/CartesianProviderPro/index.js +1 -1
  52. package/modern/context/ZoomProvider/ZoomProvider.js +3 -3
  53. package/modern/context/ZoomProvider/ZoomSetup.js +2 -2
  54. package/modern/context/ZoomProvider/index.js +3 -3
  55. package/modern/context/ZoomProvider/useSetupPan.js +1 -1
  56. package/modern/context/ZoomProvider/useSetupZoom.js +1 -1
  57. package/modern/context/ZoomProvider/useZoom.js +1 -1
  58. package/modern/context/index.js +2 -2
  59. package/modern/hooks/index.js +1 -1
  60. package/modern/index.js +9 -9
  61. package/modern/internals/utils/releaseInfo.js +1 -1
  62. package/modern/models/index.js +1 -1
  63. package/modern/models/seriesType/index.js +1 -1
  64. package/modern/themeAugmentation/index.js +0 -0
  65. package/modern/typeOverloads/index.js +1 -1
  66. package/node/BarChartPro/BarChartPro.js +46 -54
  67. package/node/ChartContainerPro/ChartContainerPro.js +2 -3
  68. package/node/ChartContainerPro/useChartContainerProProps.js +1 -1
  69. package/node/Heatmap/DefaultHeatmapTooltip.js +3 -4
  70. package/node/Heatmap/Heatmap.js +9 -5
  71. package/node/Heatmap/HeatmapItem.js +2 -3
  72. package/node/Heatmap/HeatmapPlot.js +2 -3
  73. package/node/Heatmap/formatter.js +1 -1
  74. package/node/Heatmap/heatmapClasses.js +1 -1
  75. package/node/Heatmap/plugin.js +1 -1
  76. package/node/LineChartPro/LineChartPro.js +62 -112
  77. package/node/ResponsiveChartContainerPro/ResponsiveChartContainerPro.js +2 -3
  78. package/node/ResponsiveChartContainerPro/useResponsiveChartContainerProProps.js +1 -1
  79. package/node/ScatterChartPro/ScatterChartPro.js +20 -5
  80. package/node/context/CartesianProviderPro/CartesianProviderPro.js +2 -3
  81. package/node/context/CartesianProviderPro/createAxisFilterMapper.js +1 -2
  82. package/node/context/ZoomProvider/ZoomContext.js +1 -2
  83. package/node/context/ZoomProvider/ZoomProvider.js +2 -3
  84. package/node/context/ZoomProvider/defaultizeZoom.js +1 -1
  85. package/node/context/ZoomProvider/useSetupPan.js +2 -3
  86. package/node/context/ZoomProvider/useSetupZoom.js +1 -2
  87. package/node/context/ZoomProvider/useZoom.js +1 -2
  88. package/node/hooks/useSeries.js +1 -2
  89. package/node/index.js +1 -1
  90. package/node/internals/utils/releaseInfo.js +1 -1
  91. package/node/themeAugmentation/index.js +1 -0
  92. package/package.json +8 -7
  93. package/themeAugmentation/components.d.ts +25 -0
  94. package/themeAugmentation/index.d.ts +4 -0
  95. package/themeAugmentation/index.js +0 -0
  96. package/themeAugmentation/overrides.d.ts +13 -0
  97. package/themeAugmentation/package.json +6 -0
  98. package/themeAugmentation/props.d.ts +22 -0
  99. package/typeOverloads/index.js +1 -1
@@ -1,8 +1,9 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
2
1
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
2
+ import _extends from "@babel/runtime/helpers/esm/extends";
3
3
  const _excluded = ["zoom", "onZoomChange"];
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
+ import { useThemeProps } from '@mui/material/styles';
6
7
  import { BarPlot } from '@mui/x-charts/BarChart';
7
8
  import { ChartsOnAxisClickHandler } from '@mui/x-charts/ChartsOnAxisClickHandler';
8
9
  import { ChartsGrid } from '@mui/x-charts/ChartsGrid';
@@ -13,10 +14,18 @@ import { ChartsAxisHighlight } from '@mui/x-charts/ChartsAxisHighlight';
13
14
  import { ChartsTooltip } from '@mui/x-charts/ChartsTooltip';
14
15
  import { ChartsClipPath } from '@mui/x-charts/ChartsClipPath';
15
16
  import { useBarChartProps } from '@mui/x-charts/internals';
16
- import { ResponsiveChartContainerPro } from '../ResponsiveChartContainerPro';
17
- import { ZoomSetup } from '../context/ZoomProvider/ZoomSetup';
18
- import { useZoom } from '../context/ZoomProvider/useZoom';
17
+ import { ResponsiveChartContainerPro } from "../ResponsiveChartContainerPro/index.js";
18
+ import { ZoomSetup } from "../context/ZoomProvider/ZoomSetup.js";
19
+ import { useZoom } from "../context/ZoomProvider/useZoom.js";
19
20
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
21
+ function BarChartPlotZoom(props) {
22
+ const {
23
+ isInteracting
24
+ } = useZoom();
25
+ return /*#__PURE__*/_jsx(BarPlot, _extends({}, props, {
26
+ skipAnimation: isInteracting ? true : props.skipAnimation
27
+ }));
28
+ }
20
29
  /**
21
30
  * Demos:
22
31
  *
@@ -28,7 +37,11 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
28
37
  *
29
38
  * - [BarChart API](https://mui.com/x/api/charts/bar-chart/)
30
39
  */
31
- const BarChartPro = /*#__PURE__*/React.forwardRef(function BarChartPro(props, ref) {
40
+ const BarChartPro = /*#__PURE__*/React.forwardRef(function BarChartPro(inProps, ref) {
41
+ const props = useThemeProps({
42
+ props: inProps,
43
+ name: 'MuiBarChartPro'
44
+ });
32
45
  const {
33
46
  zoom,
34
47
  onZoomChange
@@ -53,7 +66,7 @@ const BarChartPro = /*#__PURE__*/React.forwardRef(function BarChartPro(props, re
53
66
  }, chartContainerProps, {
54
67
  zoom: zoom,
55
68
  onZoomChange: onZoomChange,
56
- children: [props.onAxisClick && /*#__PURE__*/_jsx(ChartsOnAxisClickHandler, _extends({}, axisClickHandlerProps)), props.grid && /*#__PURE__*/_jsx(ChartsGrid, _extends({}, gridProps)), /*#__PURE__*/_jsxs("g", _extends({}, clipPathGroupProps, {
69
+ children: [props.onAxisClick && /*#__PURE__*/_jsx(ChartsOnAxisClickHandler, _extends({}, axisClickHandlerProps)), /*#__PURE__*/_jsx(ChartsGrid, _extends({}, gridProps)), /*#__PURE__*/_jsxs("g", _extends({}, clipPathGroupProps, {
57
70
  children: [/*#__PURE__*/_jsx(BarChartPlotZoom, _extends({}, barPlotProps)), /*#__PURE__*/_jsx(ChartsOverlay, _extends({}, overlayProps)), /*#__PURE__*/_jsx(ChartsAxisHighlight, _extends({}, axisHighlightProps))]
58
71
  })), /*#__PURE__*/_jsx(ChartsAxis, _extends({}, chartsAxisProps)), /*#__PURE__*/_jsx(ChartsLegend, _extends({}, legendProps)), !props.loading && /*#__PURE__*/_jsx(ChartsTooltip, _extends({}, tooltipProps)), /*#__PURE__*/_jsx(ChartsClipPath, _extends({}, clipPathProps)), /*#__PURE__*/_jsx(ZoomSetup, {}), children]
59
72
  }));
@@ -145,6 +158,17 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
145
158
  classes: PropTypes.object,
146
159
  direction: PropTypes.oneOf(['column', 'row']),
147
160
  hidden: PropTypes.bool,
161
+ itemGap: PropTypes.number,
162
+ itemMarkHeight: PropTypes.number,
163
+ itemMarkWidth: PropTypes.number,
164
+ labelStyle: PropTypes.object,
165
+ markGap: PropTypes.number,
166
+ padding: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
167
+ bottom: PropTypes.number,
168
+ left: PropTypes.number,
169
+ right: PropTypes.number,
170
+ top: PropTypes.number
171
+ })]),
148
172
  position: PropTypes.shape({
149
173
  horizontal: PropTypes.oneOf(['left', 'middle', 'right']).isRequired,
150
174
  vertical: PropTypes.oneOf(['bottom', 'middle', 'top']).isRequired
@@ -188,6 +212,12 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
188
212
  * @param {BarItemIdentifier} barItemIdentifier The bar item identifier.
189
213
  */
190
214
  onItemClick: PropTypes.func,
215
+ /**
216
+ * Callback fired when the zoom has changed.
217
+ *
218
+ * @param {ZoomData[]} zoomData Updated zoom data.
219
+ */
220
+ onZoomChange: PropTypes.func,
191
221
  /**
192
222
  * Indicate which axis to display the right of the charts.
193
223
  * Can be a string (the id of the axis) or an object `ChartsYAxisProps`.
@@ -250,7 +280,6 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
250
280
  * An array of [[AxisConfig]] objects.
251
281
  */
252
282
  xAxis: PropTypes.arrayOf(PropTypes.shape({
253
- axisId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
254
283
  classes: PropTypes.object,
255
284
  colorMap: PropTypes.oneOfType([PropTypes.shape({
256
285
  colors: PropTypes.arrayOf(PropTypes.string).isRequired,
@@ -285,6 +314,7 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
285
314
  slotProps: PropTypes.object,
286
315
  slots: PropTypes.object,
287
316
  stroke: PropTypes.string,
317
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
288
318
  tickFontSize: PropTypes.number,
289
319
  tickInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.array, PropTypes.func]),
290
320
  tickLabelInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.func]),
@@ -297,6 +327,7 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
297
327
  tickSize: PropTypes.number,
298
328
  valueFormatter: PropTypes.func,
299
329
  zoom: PropTypes.oneOfType([PropTypes.shape({
330
+ filterMode: PropTypes.oneOf(['discard', 'keep']),
300
331
  maxEnd: PropTypes.number,
301
332
  maxSpan: PropTypes.number,
302
333
  minSpan: PropTypes.number,
@@ -311,7 +342,6 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
311
342
  * An array of [[AxisConfig]] objects.
312
343
  */
313
344
  yAxis: PropTypes.arrayOf(PropTypes.shape({
314
- axisId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
315
345
  classes: PropTypes.object,
316
346
  colorMap: PropTypes.oneOfType([PropTypes.shape({
317
347
  colors: PropTypes.arrayOf(PropTypes.string).isRequired,
@@ -346,6 +376,7 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
346
376
  slotProps: PropTypes.object,
347
377
  slots: PropTypes.object,
348
378
  stroke: PropTypes.string,
379
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
349
380
  tickFontSize: PropTypes.number,
350
381
  tickInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.array, PropTypes.func]),
351
382
  tickLabelInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.func]),
@@ -358,6 +389,7 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
358
389
  tickSize: PropTypes.number,
359
390
  valueFormatter: PropTypes.func,
360
391
  zoom: PropTypes.oneOfType([PropTypes.shape({
392
+ filterMode: PropTypes.oneOf(['discard', 'keep']),
361
393
  maxEnd: PropTypes.number,
362
394
  maxSpan: PropTypes.number,
363
395
  minSpan: PropTypes.number,
@@ -365,53 +397,14 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
365
397
  panning: PropTypes.bool,
366
398
  step: PropTypes.number
367
399
  }), PropTypes.bool])
368
- }))
369
- } : void 0;
370
- function BarChartPlotZoom(props) {
371
- const {
372
- isInteracting
373
- } = useZoom();
374
- return /*#__PURE__*/_jsx(BarPlot, _extends({}, props, {
375
- skipAnimation: isInteracting ? true : props.skipAnimation
376
- }));
377
- }
378
- process.env.NODE_ENV !== "production" ? BarChartPlotZoom.propTypes = {
379
- // ----------------------------- Warning --------------------------------
380
- // | These PropTypes are generated from the TypeScript type definitions |
381
- // | To update them edit the TypeScript types and run "pnpm proptypes" |
382
- // ----------------------------------------------------------------------
383
- /**
384
- * If provided, the function will be used to format the label of the bar.
385
- * It can be set to 'value' to display the current value.
386
- * @param {BarItem} item The item to format.
387
- * @param {BarLabelContext} context data about the bar.
388
- * @returns {string} The formatted label.
389
- */
390
- barLabel: PropTypes.oneOfType([PropTypes.oneOf(['value']), PropTypes.func]),
391
- /**
392
- * Defines the border radius of the bar element.
393
- */
394
- borderRadius: PropTypes.number,
395
- /**
396
- * Callback fired when a bar item is clicked.
397
- * @param {React.MouseEvent<SVGElement, MouseEvent>} event The event source of the callback.
398
- * @param {BarItemIdentifier} barItemIdentifier The bar item identifier.
399
- */
400
- onItemClick: PropTypes.func,
401
- /**
402
- * If `true`, animations are skipped.
403
- * @default false
404
- */
405
- skipAnimation: PropTypes.bool,
406
- /**
407
- * The props used for each component slot.
408
- * @default {}
409
- */
410
- slotProps: PropTypes.object,
400
+ })),
411
401
  /**
412
- * Overridable component slots.
413
- * @default {}
402
+ * The list of zoom data related to each axis.
414
403
  */
415
- slots: PropTypes.object
404
+ zoom: PropTypes.arrayOf(PropTypes.shape({
405
+ axisId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
406
+ end: PropTypes.number.isRequired,
407
+ start: PropTypes.number.isRequired
408
+ }))
416
409
  } : void 0;
417
410
  export { BarChartPro };
@@ -1 +1 @@
1
- export * from './BarChartPro';
1
+ export * from "./BarChartPro.js";
package/CHANGELOG.md CHANGED
@@ -1,8 +1,174 @@
1
- # Change Log
1
+ # Changelog
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## 7.16.0
7
+
8
+ _Sep 5, 2024_
9
+
10
+ We'd like to offer a big thanks to the 13 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 🎨 Update the design of Data Grid column headers (#14293)
13
+ - 🧠 Add the `slots` concept introduction documentation page (#13881)
14
+ - 🌍 Improve Chinese (zh-CN) and Dutch (nl-NL) locales on the Data Grid
15
+ - 🐞 Bugfixes
16
+ - 📚 Documentation improvements
17
+
18
+ <!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
19
+
20
+ ### Data Grid
21
+
22
+ #### `@mui/x-data-grid@7.16.0`
23
+
24
+ - [DataGrid] Add key prop to `GridFilterInputMultipleValue` (#14302) @sai6855
25
+ - [DataGrid] Allow to control the indeterminate checkbox behavior (#14247) @MBilalShafi
26
+ - [DataGrid] Column header design updates (#14293) @KenanYusuf
27
+ - [DataGrid] Fix error on simultaneous `columns` and `columnGroupingModel` update (#14368) @cherniavskii
28
+ - [DataGrid] Fix first row flickering with `autoHeight` prop enabled (#14235) @KenanYusuf
29
+ - [DataGrid] Remove cell min-width / max-width styles (#14448) @oliviertassinari
30
+ - [DataGrid] Restore reselect behavior (#14410) @romgrk
31
+ - [l10n] Improve Chinese (zh-CN) locale (#14394) @lawvs
32
+ - [l10n] Improve Dutch (nl-NL) locale (#14398) @Janpot
33
+
34
+ #### `@mui/x-data-grid-pro@7.16.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
35
+
36
+ Same changes as in `@mui/x-data-grid@7.16.0`, plus:
37
+
38
+ - [DataGridPro] Fix duplicate top border in header filters (#14375) @MBilalShafi
39
+
40
+ #### `@mui/x-data-grid-premium@7.16.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
41
+
42
+ Same changes as in `@mui/x-data-grid-pro@7.16.0`.
43
+
44
+ ### Date and Time Pickers
45
+
46
+ #### `@mui/x-date-pickers@7.16.0`
47
+
48
+ - [pickers] Improve `onError` JSDoc (#14492) @flaviendelangle
49
+ - [pickers] Keep the calendar header and content in sync when switching locale (#14125) @flaviendelangle
50
+ - [pickers] Move multi input range field validation tests to the describe test file (#14501) @flaviendelangle
51
+
52
+ #### `@mui/x-date-pickers-pro@7.16.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
53
+
54
+ Same changes as in `@mui/x-date-pickers@7.16.0`.
55
+
56
+ ### Charts
57
+
58
+ #### `@mui/x-charts@7.16.0`
59
+
60
+ - [charts] Fix JSDoc typos (#14497) @alexfauquette
61
+ - [charts] Fix `LineChart` not properly animating when hydrating (#14355) @JCQuintas
62
+ - [charts] Fix theme augmentation (#14372) @alexfauquette
63
+ - [charts] Pass all props to legend (#14392) @JCQuintas
64
+ - [charts] Use `.mjs` extension for ESM build (#14387) @alexfauquette
65
+ - [charts] Update `package.json` for vendor package (#14465) @alexfauquette
66
+
67
+ #### `@mui/x-charts-pro@7.0.0-beta.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
68
+
69
+ Same changes as in `@mui/x-charts@7.16.0`, plus:
70
+
71
+ - [charts-pro] Fix props and automated documentation on `BarChartPro` and `LineChartPro` (#14391) @JCQuintas
72
+
73
+ ### Tree View
74
+
75
+ #### `@mui/x-tree-view@7.16.0`
76
+
77
+ - [TreeView] Clean label editing code (#14264) @flaviendelangle
78
+
79
+ ### `@mui/x-codemod@7.16.0`
80
+
81
+ - [codemod] Fix `experimentalFeatures` codemod for typescript parser (#14150) @MBilalShafi
82
+
83
+ ### Docs
84
+
85
+ - [docs] Add RTL documentation for the pickers (#13855) @flaviendelangle
86
+ - [docs] Add the `slots` concept introduction page (#13881) @flaviendelangle
87
+ - [docs] Remove TypeScript v3 outdated version mentions (#14443) @k-rajat19
88
+ - [docs] Remove notion of seats (#14351) @oliviertassinari
89
+ - [docs] Use real world data for `PieChart` examples (#14297) @JCQuintas
90
+
91
+ ### Core
92
+
93
+ - [core] Fix changelog spelling @oliviertassinari
94
+ - [core] Fix failing tests on the pickers (#14457) @flaviendelangle
95
+ - [core] Reset permissions for codspeed GitHub Action (#14420) @oliviertassinari
96
+ - [code-infra] Add babel runtime version check (#14483) @Janpot
97
+ - [code-infra] Fully resolve imports in ESM target (#14234) @Janpot
98
+ - [code-infra] Update runners from node 18 to 20 (#14466) @JCQuintas
99
+ - [infra] Added `secrets: inherit` to workflow call (#14454) @michelengelen
100
+ - [infra] Switch "add closing message" to reusable workflow (#14499) @michelengelen
101
+ - [infra] Switch "issue triage workflow" to reusable workflows (#14390) @michelengelen
102
+
103
+ ## 7.15.0
104
+
105
+ _Aug 29, 2024_
106
+
107
+ We'd like to offer a big thanks to the 8 contributors who made this release possible. Here are some highlights ✨:
108
+
109
+ - 💫 Support Material UI v6 (`@mui/material@6`) peer dependency (#14142) @cherniavskii
110
+
111
+ You can now use MUI X components with either v5 or v6 of `@mui/material` package 🎉
112
+
113
+ - 🐞 Bugfixes
114
+
115
+ ### Data Grid
116
+
117
+ #### `@mui/x-data-grid-pro@7.15.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
118
+
119
+ - [DataGridPro] Export `GridRowReorderCell` component (#14079) @genepaul
120
+
121
+ #### `@mui/x-data-grid-premium@7.15.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
122
+
123
+ Same changes as in `@mui/x-data-grid-pro@7.15.0`.
124
+
125
+ ### Date and Time Pickers
126
+
127
+ #### `@mui/x-date-pickers@7.15.0`
128
+
129
+ - [pickers] Add `onTouchStart` handler for `TimeClock` (#14305) @arthurbalduini
130
+
131
+ #### `@mui/x-date-pickers-pro@7.15.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-date-pickers@7.15.0`, plus:
134
+
135
+ - [DateTimeRangePicker] Fix date format resolving from views on 24hr locales (#14341) @arthurbalduini
136
+
137
+ ### Charts
138
+
139
+ #### `@mui/x-charts@7.15.0`
140
+
141
+ - [charts] Add missing `themeAugmentation` in pro plan (#14313) @lhilgert9
142
+ - [charts] Fix `LineChart` transition stopping before completion (#14366) @JCQuintas
143
+ - [charts] Fix tooltip with horizontal layout (#14337) @alexfauquette
144
+ - [charts] Keep axis root classe usage explicit (#14378) @alexfauquette
145
+
146
+ #### `@mui/x-charts-pro@7.0.0-alpha.3` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
147
+
148
+ Same changes as in `@mui/x-charts@7.15.0`, plus:
149
+
150
+ - [charts pro] Avoid relative reference to `@mui/x-charts` package (#14335) @LukasTy
151
+
152
+ ### Docs
153
+
154
+ - [docs] Fix sentence case `h2` @oliviertassinari
155
+ - [docs] Clarify contribution guide references @oliviertassinari
156
+ - [docs] Fix Stack Overflow issue canned response @oliviertassinari
157
+ - [docs] Fix outdated link to support page @oliviertassinari
158
+ - [docs] Fix use of Material UI @oliviertassinari
159
+ - [docs] Update deprecated props in docs (#14295) @JCQuintas
160
+
161
+ ### Core
162
+
163
+ - [core] Allow only v5.x for `MUI Core` renovate group (#14382) @LukasTy
164
+ - [core] Avoid visual regression when using `@mui/material@6` (#14357) @cherniavskii
165
+ - [core] Remove renovate rule targeting only `next` releases of `@mui/docs` (#14364) @LukasTy
166
+ - [core] Support `@mui/material@6` peer dependency (#14142) @cherniavskii
167
+ - [core] Use `useRtl` instead of `useTheme` to access direction (#14359) @LukasTy
168
+ - [code-infra] Typecheck nested folders in playground (#14352) @JCQuintas
169
+ - [infra] Fix Issue cleanup action @oliviertassinari
170
+ - [license] Prepare renaming of argument names @oliviertassinari
171
+
6
172
  ## 7.14.0
7
173
 
8
174
  _Aug 23, 2024_
@@ -5,10 +5,10 @@ import { ChartsSurface } from '@mui/x-charts/ChartsSurface';
5
5
  import { HighlightedProvider, ZAxisContextProvider } from '@mui/x-charts/context';
6
6
  import { ChartsAxesGradients, DrawingProvider, InteractionProvider, PluginProvider, SeriesProvider } from '@mui/x-charts/internals';
7
7
  import { useLicenseVerifier } from '@mui/x-license/useLicenseVerifier';
8
- import { getReleaseInfo } from '../internals/utils/releaseInfo';
9
- import { CartesianProviderPro } from '../context/CartesianProviderPro';
10
- import { ZoomProvider } from '../context/ZoomProvider';
11
- import { useChartContainerProProps } from './useChartContainerProProps';
8
+ import { getReleaseInfo } from "../internals/utils/releaseInfo.js";
9
+ import { CartesianProviderPro } from "../context/CartesianProviderPro/index.js";
10
+ import { ZoomProvider } from "../context/ZoomProvider/index.js";
11
+ import { useChartContainerProProps } from "./useChartContainerProProps.js";
12
12
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
13
  const releaseInfo = getReleaseInfo();
14
14
  const ChartContainerPro = /*#__PURE__*/React.forwardRef(function ChartContainer(props, ref) {
@@ -1 +1 @@
1
- export * from './ChartContainerPro';
1
+ export * from "./ChartContainerPro.js";
@@ -89,7 +89,7 @@ process.env.NODE_ENV !== "production" ? DefaultHeatmapTooltip.propTypes = {
89
89
  type: PropTypes.oneOf(['heatmap']).isRequired
90
90
  }).isRequired,
91
91
  /**
92
- * The series linked to the triggered axis.
92
+ * The series linked to the triggered item.
93
93
  */
94
94
  series: PropTypes.object.isRequired,
95
95
  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
@@ -1,21 +1,26 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import * as React from 'react';
3
3
  import PropTypes from 'prop-types';
4
- import { interpolateRgbBasis } from '@mui/x-charts-vendor/d3-interpolate';
4
+ import { useThemeProps } from '@mui/material/styles';
5
5
  import useId from '@mui/utils/useId';
6
+ import { interpolateRgbBasis } from '@mui/x-charts-vendor/d3-interpolate';
6
7
  import { ChartsAxis } from '@mui/x-charts/ChartsAxis';
7
8
  import { ChartsTooltip } from '@mui/x-charts/ChartsTooltip';
8
9
  import { ChartsClipPath } from '@mui/x-charts/ChartsClipPath';
9
10
  import { ChartsOnAxisClickHandler } from '@mui/x-charts/ChartsOnAxisClickHandler';
10
11
  import { ChartsOverlay } from '@mui/x-charts/ChartsOverlay';
11
- import { ResponsiveChartContainerPro } from '../ResponsiveChartContainerPro';
12
- import { HeatmapPlot } from './HeatmapPlot';
13
- import { plugin as heatmapPlugin } from './plugin';
14
- import { DefaultHeatmapTooltip } from './DefaultHeatmapTooltip';
12
+ import { ResponsiveChartContainerPro } from "../ResponsiveChartContainerPro/index.js";
13
+ import { HeatmapPlot } from "./HeatmapPlot.js";
14
+ import { plugin as heatmapPlugin } from "./plugin.js";
15
+ import { DefaultHeatmapTooltip } from "./DefaultHeatmapTooltip.js";
15
16
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
16
17
  // The GnBu: https://github.com/d3/d3-scale-chromatic/blob/main/src/sequential-multi/GnBu.js
17
18
  const defaultColorMap = interpolateRgbBasis(['#f7fcf0', '#e0f3db', '#ccebc5', '#a8ddb5', '#7bccc4', '#4eb3d3', '#2b8cbe', '#0868ac', '#084081']);
18
- const Heatmap = /*#__PURE__*/React.forwardRef(function Heatmap(props, ref) {
19
+ const Heatmap = /*#__PURE__*/React.forwardRef(function Heatmap(inProps, ref) {
20
+ const props = useThemeProps({
21
+ props: inProps,
22
+ name: 'MuiHeatmap'
23
+ });
19
24
  const {
20
25
  xAxis,
21
26
  yAxis,
@@ -8,7 +8,7 @@ import useSlotProps from '@mui/utils/useSlotProps';
8
8
  import composeClasses from '@mui/utils/composeClasses';
9
9
  import { useItemHighlighted } from '@mui/x-charts/context';
10
10
  import { useInteractionItemProps } from '@mui/x-charts/internals';
11
- import { getHeatmapUtilityClass } from './heatmapClasses';
11
+ import { getHeatmapUtilityClass } from "./heatmapClasses.js";
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
13
  const HeatmapCell = styled('rect', {
14
14
  name: 'MuiHeatmap',
@@ -1,8 +1,8 @@
1
1
  import * as React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { useXScale, useYScale, useZColorScale } from '@mui/x-charts/hooks';
4
- import { useHeatmapSeries } from '../hooks/useSeries';
5
- import { HeatmapItem } from './HeatmapItem';
4
+ import { useHeatmapSeries } from "../hooks/useSeries.js";
5
+ import { HeatmapItem } from "./HeatmapItem.js";
6
6
  import { jsx as _jsx } from "react/jsx-runtime";
7
7
  function HeatmapPlot(props) {
8
8
  const xScale = useXScale();
package/Heatmap/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { Heatmap } from './Heatmap';
2
- export { HeatmapPlot } from './HeatmapPlot';
3
- export * from './DefaultHeatmapTooltip';
4
- export * from './heatmapClasses';
1
+ export { Heatmap } from "./Heatmap.js";
2
+ export { HeatmapPlot } from "./HeatmapPlot.js";
3
+ export * from "./DefaultHeatmapTooltip.js";
4
+ export * from "./heatmapClasses.js";
package/Heatmap/plugin.js CHANGED
@@ -1,6 +1,6 @@
1
- import { getBaseExtremum } from './extremums';
2
- import formatter from './formatter';
3
- import getColor from './getColor';
1
+ import { getBaseExtremum } from "./extremums.js";
2
+ import formatter from "./formatter.js";
3
+ import getColor from "./getColor.js";
4
4
  export const plugin = {
5
5
  seriesType: 'heatmap',
6
6
  seriesFormatter: formatter,