@mui/x-charts 7.0.0-alpha.2 → 7.0.0-alpha.4

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 (142) hide show
  1. package/BarChart/BarElement.d.ts +5 -1
  2. package/BarChart/BarElement.js +24 -1
  3. package/BarChart/index.d.ts +2 -1
  4. package/BarChart/index.js +15 -4
  5. package/CHANGELOG.md +364 -0
  6. package/ChartsLegend/index.d.ts +1 -0
  7. package/ChartsLegend/index.js +11 -0
  8. package/ChartsTooltip/ChartsAxisTooltipContent.d.ts +5 -2
  9. package/ChartsTooltip/ChartsAxisTooltipContent.js +93 -73
  10. package/ChartsTooltip/ChartsItemTooltipContent.d.ts +5 -2
  11. package/ChartsTooltip/ChartsItemTooltipContent.js +38 -57
  12. package/ChartsTooltip/DefaultChartsAxisTooltipContent.d.ts +7 -0
  13. package/ChartsTooltip/DefaultChartsAxisTooltipContent.js +174 -0
  14. package/ChartsTooltip/DefaultChartsItemTooltipContent.d.ts +8 -0
  15. package/ChartsTooltip/DefaultChartsItemTooltipContent.js +99 -0
  16. package/ChartsTooltip/index.d.ts +4 -0
  17. package/ChartsTooltip/index.js +44 -0
  18. package/ChartsVoronoiHandler/ChartsVoronoiHandler.d.ts +14 -0
  19. package/ChartsVoronoiHandler/ChartsVoronoiHandler.js +174 -0
  20. package/ChartsVoronoiHandler/index.d.ts +1 -0
  21. package/ChartsVoronoiHandler/index.js +16 -0
  22. package/ChartsVoronoiHandler/package.json +6 -0
  23. package/ChartsYAxis/ChartsYAxis.js +6 -4
  24. package/LineChart/extremums.js +25 -8
  25. package/LineChart/index.d.ts +1 -1
  26. package/LineChart/index.js +11 -11
  27. package/PieChart/PieArc.d.ts +5 -2
  28. package/PieChart/PieArc.js +17 -2
  29. package/PieChart/PieArcLabel.d.ts +1 -1
  30. package/PieChart/PieArcLabel.js +5 -10
  31. package/PieChart/PieArcLabelPlot.d.ts +5 -1
  32. package/PieChart/PieArcLabelPlot.js +91 -3
  33. package/PieChart/PieArcPlot.d.ts +5 -1
  34. package/PieChart/PieArcPlot.js +90 -3
  35. package/PieChart/index.d.ts +3 -1
  36. package/PieChart/index.js +26 -4
  37. package/README.md +0 -1
  38. package/ScatterChart/Scatter.js +15 -6
  39. package/ScatterChart/ScatterChart.d.ts +7 -1
  40. package/ScatterChart/ScatterChart.js +18 -1
  41. package/ScatterChart/index.d.ts +1 -1
  42. package/ScatterChart/index.js +8 -8
  43. package/SparkLineChart/SparkLineChart.js +1 -0
  44. package/context/InteractionProvider.d.ts +10 -0
  45. package/context/InteractionProvider.js +21 -1
  46. package/esm/BarChart/BarElement.js +26 -2
  47. package/esm/BarChart/index.js +2 -1
  48. package/esm/ChartsLegend/index.js +2 -1
  49. package/esm/ChartsTooltip/ChartsAxisTooltipContent.js +95 -75
  50. package/esm/ChartsTooltip/ChartsItemTooltipContent.js +40 -58
  51. package/esm/ChartsTooltip/DefaultChartsAxisTooltipContent.js +168 -0
  52. package/esm/ChartsTooltip/DefaultChartsItemTooltipContent.js +92 -0
  53. package/esm/ChartsTooltip/index.js +5 -1
  54. package/esm/ChartsVoronoiHandler/ChartsVoronoiHandler.js +168 -0
  55. package/esm/ChartsVoronoiHandler/index.js +1 -0
  56. package/esm/ChartsYAxis/ChartsYAxis.js +6 -4
  57. package/esm/LineChart/extremums.js +25 -8
  58. package/esm/LineChart/index.js +1 -1
  59. package/esm/PieChart/PieArc.js +18 -2
  60. package/esm/PieChart/PieArcLabel.js +7 -11
  61. package/esm/PieChart/PieArcLabelPlot.js +92 -3
  62. package/esm/PieChart/PieArcPlot.js +91 -3
  63. package/esm/PieChart/index.js +3 -1
  64. package/esm/ScatterChart/Scatter.js +15 -6
  65. package/esm/ScatterChart/ScatterChart.js +18 -1
  66. package/esm/ScatterChart/index.js +1 -1
  67. package/esm/SparkLineChart/SparkLineChart.js +1 -0
  68. package/esm/context/InteractionProvider.js +21 -1
  69. package/esm/hooks/useAxisEvents.js +20 -27
  70. package/esm/hooks/useInteractionItemProps.js +4 -1
  71. package/esm/index.js +1 -0
  72. package/esm/internals/defaultizeValueFormatter.js +4 -3
  73. package/esm/internals/utils.js +11 -0
  74. package/hooks/useAxisEvents.js +20 -27
  75. package/hooks/useInteractionItemProps.d.ts +2 -2
  76. package/hooks/useInteractionItemProps.js +4 -1
  77. package/index.d.ts +1 -0
  78. package/index.js +12 -1
  79. package/internals/defaultizeColor.d.ts +1 -0
  80. package/internals/defaultizeValueFormatter.d.ts +3 -1
  81. package/internals/defaultizeValueFormatter.js +3 -3
  82. package/internals/utils.d.ts +6 -0
  83. package/internals/utils.js +12 -0
  84. package/legacy/BarChart/BarElement.js +26 -2
  85. package/legacy/BarChart/index.js +2 -1
  86. package/legacy/ChartsLegend/index.js +2 -1
  87. package/legacy/ChartsTooltip/ChartsAxisTooltipContent.js +95 -74
  88. package/legacy/ChartsTooltip/ChartsItemTooltipContent.js +40 -55
  89. package/legacy/ChartsTooltip/DefaultChartsAxisTooltipContent.js +167 -0
  90. package/legacy/ChartsTooltip/DefaultChartsItemTooltipContent.js +89 -0
  91. package/legacy/ChartsTooltip/index.js +5 -1
  92. package/legacy/ChartsVoronoiHandler/ChartsVoronoiHandler.js +162 -0
  93. package/legacy/ChartsVoronoiHandler/index.js +1 -0
  94. package/legacy/ChartsYAxis/ChartsYAxis.js +6 -4
  95. package/legacy/LineChart/extremums.js +29 -14
  96. package/legacy/LineChart/index.js +1 -1
  97. package/legacy/PieChart/PieArc.js +18 -2
  98. package/legacy/PieChart/PieArcLabel.js +7 -11
  99. package/legacy/PieChart/PieArcLabelPlot.js +92 -3
  100. package/legacy/PieChart/PieArcPlot.js +91 -3
  101. package/legacy/PieChart/index.js +3 -1
  102. package/legacy/ScatterChart/Scatter.js +18 -7
  103. package/legacy/ScatterChart/ScatterChart.js +18 -1
  104. package/legacy/ScatterChart/index.js +1 -1
  105. package/legacy/SparkLineChart/SparkLineChart.js +1 -0
  106. package/legacy/context/InteractionProvider.js +21 -1
  107. package/legacy/hooks/useAxisEvents.js +20 -27
  108. package/legacy/hooks/useInteractionItemProps.js +6 -1
  109. package/legacy/index.js +2 -1
  110. package/legacy/internals/defaultizeValueFormatter.js +4 -3
  111. package/legacy/internals/utils.js +11 -0
  112. package/models/seriesType/config.d.ts +5 -1
  113. package/models/seriesType/scatter.d.ts +6 -1
  114. package/modern/BarChart/BarElement.js +26 -2
  115. package/modern/BarChart/index.js +2 -1
  116. package/modern/ChartsLegend/index.js +2 -1
  117. package/modern/ChartsTooltip/ChartsAxisTooltipContent.js +95 -74
  118. package/modern/ChartsTooltip/ChartsItemTooltipContent.js +40 -58
  119. package/modern/ChartsTooltip/DefaultChartsAxisTooltipContent.js +167 -0
  120. package/modern/ChartsTooltip/DefaultChartsItemTooltipContent.js +92 -0
  121. package/modern/ChartsTooltip/index.js +5 -1
  122. package/modern/ChartsVoronoiHandler/ChartsVoronoiHandler.js +166 -0
  123. package/modern/ChartsVoronoiHandler/index.js +1 -0
  124. package/modern/ChartsYAxis/ChartsYAxis.js +6 -4
  125. package/modern/LineChart/extremums.js +25 -8
  126. package/modern/LineChart/index.js +1 -1
  127. package/modern/PieChart/PieArc.js +18 -2
  128. package/modern/PieChart/PieArcLabel.js +7 -11
  129. package/modern/PieChart/PieArcLabelPlot.js +92 -3
  130. package/modern/PieChart/PieArcPlot.js +91 -3
  131. package/modern/PieChart/index.js +3 -1
  132. package/modern/ScatterChart/Scatter.js +15 -6
  133. package/modern/ScatterChart/ScatterChart.js +18 -1
  134. package/modern/ScatterChart/index.js +1 -1
  135. package/modern/SparkLineChart/SparkLineChart.js +1 -0
  136. package/modern/context/InteractionProvider.js +21 -1
  137. package/modern/hooks/useAxisEvents.js +20 -27
  138. package/modern/hooks/useInteractionItemProps.js +4 -1
  139. package/modern/index.js +2 -1
  140. package/modern/internals/defaultizeValueFormatter.js +3 -3
  141. package/modern/internals/utils.js +11 -0
  142. package/package.json +6 -4
@@ -1355,4 +1355,8 @@ export type BarElementProps = Omit<BarElementOwnerState, 'isFaded' | 'isHighligh
1355
1355
  bar?: React.ElementType;
1356
1356
  };
1357
1357
  };
1358
- export declare function BarElement(props: BarElementProps): React.JSX.Element;
1358
+ declare function BarElement(props: BarElementProps): React.JSX.Element;
1359
+ declare namespace BarElement {
1360
+ var propTypes: any;
1361
+ }
1362
+ export { BarElement };
@@ -10,6 +10,7 @@ exports.getBarElementUtilityClass = getBarElementUtilityClass;
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"));
13
14
  var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
14
15
  var _utils = require("@mui/base/utils");
15
16
  var _generateUtilityClass = _interopRequireDefault(require("@mui/utils/generateUtilityClass"));
@@ -100,4 +101,26 @@ function BarElement(props) {
100
101
  ownerState
101
102
  });
102
103
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(Bar, (0, _extends2.default)({}, barProps));
103
- }
104
+ }
105
+ process.env.NODE_ENV !== "production" ? BarElement.propTypes = {
106
+ // ----------------------------- Warning --------------------------------
107
+ // | These PropTypes are generated from the TypeScript type definitions |
108
+ // | To update them edit the TypeScript types and run "yarn proptypes" |
109
+ // ----------------------------------------------------------------------
110
+ classes: _propTypes.default.object,
111
+ dataIndex: _propTypes.default.number.isRequired,
112
+ highlightScope: _propTypes.default.shape({
113
+ faded: _propTypes.default.oneOf(['global', 'none', 'series']),
114
+ highlighted: _propTypes.default.oneOf(['item', 'none', 'series'])
115
+ }),
116
+ /**
117
+ * The props used for each component slot.
118
+ * @default {}
119
+ */
120
+ slotProps: _propTypes.default.object,
121
+ /**
122
+ * Overridable component slots.
123
+ * @default {}
124
+ */
125
+ slots: _propTypes.default.object
126
+ } : void 0;
@@ -1,2 +1,3 @@
1
- export * from './BarPlot';
2
1
  export * from './BarChart';
2
+ export * from './BarPlot';
3
+ export * from './BarElement';
package/BarChart/index.js CHANGED
@@ -3,6 +3,17 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
+ var _BarChart = require("./BarChart");
7
+ Object.keys(_BarChart).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _BarChart[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _BarChart[key];
14
+ }
15
+ });
16
+ });
6
17
  var _BarPlot = require("./BarPlot");
7
18
  Object.keys(_BarPlot).forEach(function (key) {
8
19
  if (key === "default" || key === "__esModule") return;
@@ -14,14 +25,14 @@ Object.keys(_BarPlot).forEach(function (key) {
14
25
  }
15
26
  });
16
27
  });
17
- var _BarChart = require("./BarChart");
18
- Object.keys(_BarChart).forEach(function (key) {
28
+ var _BarElement = require("./BarElement");
29
+ Object.keys(_BarElement).forEach(function (key) {
19
30
  if (key === "default" || key === "__esModule") return;
20
- if (key in exports && exports[key] === _BarChart[key]) return;
31
+ if (key in exports && exports[key] === _BarElement[key]) return;
21
32
  Object.defineProperty(exports, key, {
22
33
  enumerable: true,
23
34
  get: function () {
24
- return _BarChart[key];
35
+ return _BarElement[key];
25
36
  }
26
37
  });
27
38
  });
package/CHANGELOG.md CHANGED
@@ -3,6 +3,271 @@
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.0.0-alpha.4
7
+
8
+ _Dec 8, 2023_
9
+
10
+ We'd like to offer a big thanks to the 11 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 🚀 The scatter charts now use voronoi to trigger items
13
+
14
+ Users needed to hover the item to highlight the scatter item or show the tooltip.
15
+ Now they can interact with data by triggering the closest element. See the [docs page](https://next.mui.com/x/react-charts/scatter/#interaction) for more info.
16
+
17
+ - 📚 Add [Pickers FAQ page](https://next.mui.com/x/react-date-pickers/faq/)
18
+ - 🎉 The Data Grid Header filters feature is now stable
19
+ - 🌍 Improve Danish (da-DK) locale on Data Grid
20
+ - 🐞 Bugfixes
21
+
22
+ ### Data Grid
23
+
24
+ #### Breaking changes
25
+
26
+ - The header filters feature is now stable. `unstable_` prefix is removed from prop `headerFilters` and related exports.
27
+ See [migration docs](https://next.mui.com/x/migration/migration-data-grid-v6/#filtering) for more details.
28
+
29
+ - The `GridColDef['type']` has been narrowed down to only accept the built-in column types.
30
+ TypeScript users need to use the `GridColDef` interface when defining columns:
31
+
32
+ ```tsx
33
+ // 🛑 `type` is inferred as `string` and is too wide
34
+ const columns = [{ type: 'number', field: 'id' }];
35
+ <DataGrid columns={columns} />;
36
+
37
+ // ✅ `type` is `'number'`
38
+ const columns: GridColDef[] = [{ type: 'number', field: 'id' }];
39
+ <DataGrid columns={columns} />;
40
+
41
+ // ✅ Alternalively, `as const` can be used to narrow down the type
42
+ const columns = [{ type: 'number' as const, field: 'id' }];
43
+ <DataGrid columns={columns} />;
44
+ ```
45
+
46
+ #### `@mui/x-data-grid@7.0.0-alpha.4`
47
+
48
+ - [DataGrid] Added a guard for reorder cells (#11159) @michelengelen
49
+ - [DataGrid] Narrow down `GridColDef['type']` (#11270) @cherniavskii
50
+ - [l10n] Improve Danish (da-DK) locale (#11304) @goibon
51
+
52
+ #### `@mui/x-data-grid-pro@7.0.0-alpha.4` [![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-data-grid@7.0.0-alpha.4`, plus:
55
+
56
+ - [DataGridPro] Make header filters feature stable (#11243) @MBilalShafi
57
+
58
+ #### `@mui/x-data-grid-premium@7.0.0-alpha.4` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
59
+
60
+ Same changes as in `@mui/x-data-grid-pro@7.0.0-alpha.4`.
61
+
62
+ ### Date Pickers
63
+
64
+ #### `@mui/x-date-pickers@7.0.0-alpha.4`
65
+
66
+ - [fields] Rework `PickersTextField` (#11258) @flaviendelangle
67
+ - [pickers] Fix `MultiSectionDigitalClock` issues (#11305) @LukasTy
68
+ - [pickers] Fix views height consistency (#11337) @LukasTy
69
+
70
+ #### `@mui/x-date-pickers-pro@7.0.0-alpha.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
71
+
72
+ Same changes as in `@mui/x-date-pickers@7.0.0-alpha.4`.
73
+
74
+ ### Charts / `@mui/x-charts@7.0.0-alpha.4`
75
+
76
+ - [charts] Remove animation on sparkline (#11311) @oliviertassinari
77
+ - [charts] Use voronoi cells to trigger interaction with scatter items (#10981) @alexfauquette
78
+ - [charts] Add `@mui/utils` as a dependency (#11351) @michelengelen
79
+
80
+ ### Docs
81
+
82
+ - [docs] Add FAQ page (#11271) @noraleonte
83
+ - [docs] Add a doc section on how to override the start of the week with each adapter (#11223) @flaviendelangle
84
+ - [docs] Added params to `onPaginationModelChange` docs (#10191) @JFBenzs
85
+ - [docs] Fix typo (#11324) @cadam11
86
+ - [docs] Improve `DemoContainer` styling coverage (#11315) @LukasTy
87
+ - [docs] General revision of the Charts docs (#11249) @danilo-leal
88
+
89
+ ## 7.0.0-alpha.3
90
+
91
+ _Dec 4, 2023_
92
+
93
+ We'd like to offer a big thanks to the 15 contributors who made this release possible. Here are some highlights ✨:
94
+
95
+ - 🚀 Support localized start of the week on pickers' `AdapterLuxon`
96
+
97
+ When using Luxon 3.4.4 or higher, the start of the week will be defined by the date locale (e.g.: Sunday for `en-US`, Monday for `fr-FR`).
98
+
99
+ - 📈 Fix a lot of Charts package issues
100
+ - 🎉 The Data Grid features Cell selection and Clipboard paste are now stable
101
+ - 🌍 Improve Bulgarian (bg-BG) locale on Data Grid
102
+ - 🐞 Bugfixes
103
+ - 📚 Documentation improvements
104
+
105
+ ### Data Grid
106
+
107
+ #### Breaking changes
108
+
109
+ - The clipboard paste feature is now enabled by default. The flag `clipboardPaste` is no longer needed to be passed to the `experimentalFeatures` prop.
110
+
111
+ - The clipboard related exports `ignoreValueFormatterDuringExport` and `splitClipboardPastedText` are no longer prefixed with `unstable_`.
112
+
113
+ - The deprecated constants `SUBMIT_FILTER_STROKE_TIME` and `SUBMIT_FILTER_DATE_STROKE_TIME` have been removed from the `DataGrid` exports. Use the [`filterDebounceMs`](https://next.mui.com/x/api/data-grid/data-grid/#DataGrid-prop-filterDebounceMs) prop to customize filter debounce time.
114
+
115
+ - The `slots.preferencesPanel` slot and the `slotProps.preferencesPanel` prop were removed. Use `slots.panel` and `slotProps.panel` instead.
116
+
117
+ - The `GridPreferencesPanel` component is not exported anymore as it wasn't meant to be used outside of the Data Grid.
118
+
119
+ - The `unstable_` prefix has been removed from the cell selection props listed below.
120
+
121
+ | Old name | New name |
122
+ | :------------------------------------ | :--------------------------- |
123
+ | `unstable_cellSelection` | `cellSelection` |
124
+ | `unstable_cellSelectionModel` | `cellSelectionModel` |
125
+ | `unstable_onCellSelectionModelChange` | `onCellSelectionModelChange` |
126
+
127
+ - The `unstable_` prefix has been removed from the cell selection API methods listed below.
128
+
129
+ | Old name | New name |
130
+ | :--------------------------------- | :------------------------ |
131
+ | `unstable_getCellSelectionModel` | `getCellSelectionModel` |
132
+ | `unstable_getSelectedCellsAsArray` | `getSelectedCellsAsArray` |
133
+ | `unstable_isCellSelected` | `isCellSelected` |
134
+ | `unstable_selectCellRange` | `selectCellRange` |
135
+ | `unstable_setCellSelectionModel` | `setCellSelectionModel` |
136
+
137
+ - The Quick Filter now ignores hidden columns by default.
138
+ See [including hidden columns](https://next.mui.com/x/react-data-grid/filtering/quick-filter/#including-hidden-columns) section for more details.
139
+
140
+ #### `@mui/x-data-grid@7.0.0-alpha.3`
141
+
142
+ - [DataGrid] Fix cell editing adding a leading "v" on paste (#9205) @prasad5795
143
+ - [DataGrid] Exclude hidden columns from quick filtering by default (#11229) @cherniavskii
144
+ - [DataGrid] Fix `onFilterModelChange` being fired with stale field value (#11000) @gitstart
145
+ - [DataGrid] Fix handling of event target in portal (#11174) @cherniavskii
146
+ - [DataGrid] Remove deprecated constants (#11233) @michelengelen
147
+ - [DataGrid] Remove the `preferencesPanel` slot (#11228) @cherniavskii
148
+ - [l10n] Improve Bulgarian (bg-BG) locale (#10856) @Kristiqn95
149
+
150
+ #### `@mui/x-data-grid-pro@7.0.0-alpha.3` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
151
+
152
+ Same changes as in `@mui/x-data-grid@7.0.0-alpha.3`.
153
+
154
+ #### `@mui/x-data-grid-premium@7.0.0-alpha.3` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
155
+
156
+ Same changes as in `@mui/x-data-grid-pro@7.0.0-alpha.3`, plus:
157
+
158
+ - [DataGridPremium] Fix aggregated column ignoring column definition changes (#11129) @cherniavskii
159
+ - [DataGridPremium] Make Cell selection feature stable (#11246) @MBilalShafi
160
+ - [DataGridPremium] Make Clipboard paste feature stable (#11248) @MBilalShafi
161
+
162
+ ### Date Pickers
163
+
164
+ #### Breaking changes
165
+
166
+ - The Date and Time Pickers now use the localized week when using `AdapterLuxon` and Luxon v3.4.4 or higher is installed.
167
+ This new behavior allows `AdapterLuxon` to have the same behavior as the other adapters.
168
+ If you want to keep the start of the week on Monday even if your locale says otherwise, you can hardcode the week settings as follows:
169
+ The Firefox browser currently does not support this behavior because the [getWeekInfo](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getWeekInfo) API is not yet implemented.
170
+
171
+ ```ts
172
+ import { Settings } from 'luxon';
173
+
174
+ Settings.defaultWeekSettings = {
175
+ firstDay: 1,
176
+ minimalDays: Info.getMinimumDaysInFirstWeek(),
177
+ weekend: [6, 7],
178
+ };
179
+ ```
180
+
181
+ - Add new parameters to the `shortcuts` slot `onChange` callback
182
+
183
+ The `onChange` callback fired when selecting a shortcut now requires two new parameters (previously they were optional):
184
+
185
+ - The [`changeImportance`](/x/react-date-pickers/shortcuts/#behavior-when-selecting-a-shortcut) of the shortcut.
186
+ - The `item` containing the entire shortcut object.
187
+
188
+ ```diff
189
+ const CustomShortcuts = (props) => {
190
+ return (
191
+ <React.Fragment>
192
+ {props.items.map(item => {
193
+ const value = item.getValue({ isValid: props.isValid });
194
+ return (
195
+ <button
196
+ - onClick={() => onChange(value)}
197
+ + onClick={() => onChange(value, props.changeImportance ?? 'accept', item)}
198
+ >
199
+ {value}
200
+ </button>
201
+ )
202
+ }}
203
+ </React.Fragment>
204
+ )
205
+ }
206
+
207
+ <DatePicker slots={{ shortcuts: CustomShortcuts }} />
208
+ ```
209
+
210
+ - Usage of `AdapterDayjs` with the `customParseFormat` plugin
211
+ The call to `dayjs.extend(customParseFormatPlugin)` has been moved to the `AdapterDayjs` constructor. This allows users to pass custom options to this plugin before the adapter uses it.
212
+
213
+ If you are using this plugin before the rendering of the first `LocalizationProvider` component and did not call `dayjs.extend` in your own codebase, you will need to manually extend `dayjs`:
214
+
215
+ ```tsx
216
+ import dayjs from 'dayjs';
217
+ import customParseFormatPlugin from 'dayjs/plugin/customParseFormat';
218
+
219
+ dayjs.extend(customParseFormatPlugin);
220
+ ```
221
+
222
+ The other plugins are still added before the adapter initialization.
223
+
224
+ #### `@mui/x-date-pickers@7.0.0-alpha.3`
225
+
226
+ - [pickers] Expand field placeholder methods flexibility by providing `format` parameter (#11130) @LukasTy
227
+ - [pickers] Make `changeImportance` and `shortcut` mandatory in `PickersShortcuts` (#10941) @flaviendelangle
228
+ - [pickers] Moved extend with `customParseFormat` to constructor (#11151) @michelengelen
229
+ - [pickers] POC: `PickersTextField` styling - outlined variant (#10778) @noraleonte
230
+ - [pickers] Support localized start of the week on `AdapterLuxon` (#10964) @flaviendelangle
231
+ - [pickers] Use adapter methods instead of date library ones whenever possible (#11142) @flaviendelangle
232
+
233
+ #### `@mui/x-date-pickers-pro@7.0.0-alpha.3` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
234
+
235
+ Same changes as in `@mui/x-date-pickers@7.0.0-alpha.3`.
236
+
237
+ ### Charts / `@mui/x-charts@7.0.0-alpha.3`
238
+
239
+ - [charts] Adjusted `defaultizeValueFormatter` util to accept an optional `series.valueFormatter` value (#11144) @michelengelen
240
+ - [charts] Apply `labelStyle` and `tickLabelStyle` props on `<ChartsYAxis />` (#11180) @akamfoad
241
+ - [charts] Fix TS config (#11259) @alexfauquette
242
+ - [charts] Fix error with empty dataset (#11063) @alexfauquette
243
+ - [charts] Fix export strategy (#11235) @alexfauquette
244
+ - [charts] Remove outdated prop-types (#11045) @alexfauquette
245
+
246
+ ### Docs
247
+
248
+ - [docs] Add `TextField` styling example to customization playground (#10812) @noraleonte
249
+ - [docs] Add a card grid to the installation page (#11177) @danilo-leal
250
+ - [docs] Add end v6 blogpost to whats new page (#10999) @joserodolfofreitas
251
+ - [docs] Add small formatting improvements to the licensing page (#11178) @danilo-leal
252
+ - [docs] Document charts composition (#10710) (#11239) @alexfauquette
253
+ - [docs] Fix <title> generation (#11182) @oliviertassinari
254
+ - [docs] Fix dead anchor link (#11265) @oliviertassinari
255
+ - [docs] Improve Data Grid togglable columns example (#11238) @MBilalShafi
256
+ - [docs] Improve the prop descriptions of `DayCalendar` (#11158) @flaviendelangle
257
+ - [docs] Move the adapter breaking changes in a collapsable block (#11205) @flaviendelangle
258
+ - [docs] Polish Next.js header description @oliviertassinari
259
+ - [docs] Remove the `newFeature` flag on v6 features (#11168) @flaviendelangle
260
+ - [docs] Simplify a bit chart demo (#11173) @oliviertassinari
261
+ - [docs] Standardize the usage of callouts in the MUI X docs (#7127) @samuelsycamore
262
+ - [docs] Adjust the Data Grid demo page design (#11231) @danilo-leal
263
+
264
+ ### Core
265
+
266
+ - [core] Make `@mui/system` a direct dependency (#11128) @LukasTy
267
+ - [core] Remove blank lines, coding style @oliviertassinari
268
+ - [core] Remove outdated `ENABLE_AD` env variable (#11181) @oliviertassinari
269
+ - [github] Do not add `plan: Pro` and `plan: Premium` labels on pro / premium issue templates (#10183) @flaviendelangle
270
+
6
271
  ## 7.0.0-alpha.2
7
272
 
8
273
  _Nov 23, 2023_
@@ -684,6 +949,105 @@ Here is an example of the renaming for the `<ChartsTooltip />` component.
684
949
  - [core] Update release instructions as per v7 configuration (#10962) @MBilalShafi
685
950
  - [license] Correctly throw errors (#10924) @oliviertassinari
686
951
 
952
+ ## 6.18.4
953
+
954
+ _Dec 8, 2023_
955
+
956
+ We'd like to offer a big thanks to the 6 contributors who made this release possible. Here are some highlights ✨:
957
+
958
+ - 📚 Add [Pickers FAQ page](https://mui.com/x/react-date-pickers/faq/)
959
+ - 🌍 Improve Danish (da-DK) locale on Data Grid
960
+ - 🐞 Bugfixes
961
+
962
+ ### Data Grid
963
+
964
+ #### `@mui/x-data-grid@6.18.4`
965
+
966
+ - [DataGrid] Fix cell slot style override (#11215) @oliviertassinari
967
+ - [l10n] Improve Danish (da-DK) locale (#11346) @goibon
968
+
969
+ #### `@mui/x-data-grid-pro@6.18.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
970
+
971
+ Same changes as in `@mui/x-data-grid@6.18.4`.
972
+
973
+ #### `@mui/x-data-grid-premium@6.18.4` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
974
+
975
+ Same changes as in `@mui/x-data-grid-pro@6.18.4`.
976
+
977
+ ### Date Pickers
978
+
979
+ #### `@mui/x-date-pickers@6.18.4`
980
+
981
+ - [pickers] Fix `MultiSectionDigitalClock` issues (#11308) @LukasTy
982
+
983
+ #### `@mui/x-date-pickers-pro@6.18.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
984
+
985
+ Same changes as in `@mui/x-date-pickers@6.18.4`.
986
+
987
+ ### Docs
988
+
989
+ - [docs] Fix typo (#11323) @cadam11
990
+ - [docs] Add FAQ page (#11347) @noraleonte
991
+
992
+ ## 6.18.3
993
+
994
+ _Dec 4, 2023_
995
+
996
+ We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
997
+
998
+ - 📈 Fix a lot of Charts package issues
999
+ - 🌍 Improve Bulgarian (bg-BG) locale on Data Grid
1000
+ - 🐞 Bugfixes
1001
+ - 📚 Documentation improvements
1002
+
1003
+ ### Data Grid
1004
+
1005
+ #### `@mui/x-data-grid@6.18.3`
1006
+
1007
+ - [DataGrid] Fix cell editing adding a leading "v" on paste (#11166) @prasad5795
1008
+ - [DataGrid] Fix handling of event target in portal (#11209) @cherniavskii
1009
+ - [DataGrid] Fix `onFilterModelChange` being fired with stale field value (#11244) @gitstart
1010
+ - [l10n] Improve Bulgarian (bg-BG) locale (#10856) (#11206) @Kristiqn95
1011
+
1012
+ #### `@mui/x-data-grid-pro@6.18.3` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
1013
+
1014
+ Same changes as in `@mui/x-data-grid@6.18.3`.
1015
+
1016
+ #### `@mui/x-data-grid-premium@6.18.3` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
1017
+
1018
+ Same changes as in `@mui/x-data-grid-pro@6.18.3`, plus:
1019
+
1020
+ - [DataGridPremium] Fix aggregated column ignoring column definition changes (#11176) @cherniavskii
1021
+ - [DataGridPremium] Fix custom filter operators not working on aggregated column (#11201) @cherniavskii
1022
+
1023
+ ### Date Pickers
1024
+
1025
+ #### `@mui/x-date-pickers@6.18.3`
1026
+
1027
+ - [pickers] Correctly format `MultiSectionDigitalClock` number sections (#11297) @LukasTy
1028
+ - [pickers] Expand field placeholder methods flexibility by providing `format` parameter (#11254) @LukasTy
1029
+
1030
+ #### `@mui/x-date-pickers-pro@6.18.3` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
1031
+
1032
+ Same changes as in `@mui/x-date-pickers@6.18.3`.
1033
+
1034
+ ### Charts / `@mui/x-charts@6.18.3`
1035
+
1036
+ - [charts] Adjusted `defaultizeValueFormatter` util to accept an optional `series.valueFormatter` value (#11213) @michelengelen
1037
+ - [charts] Apply `labelStyle` and `tickLabelStyle` props on `<ChartsYAxis />` (#11180) @akamfoad
1038
+ - [charts] Fix TS config (#11259) @alexfauquette
1039
+ - [charts] Fix error with empty dataset (#11063) @alexfauquette
1040
+ - [charts] Fix export strategy (#11235) @alexfauquette
1041
+
1042
+ ### Docs
1043
+
1044
+ - [docs] Add LTS section to support page (#11300) @joserodolfofreitas
1045
+ - [docs] Add end v6 blogpost to whats new page (#11299) @joserodolfofreitas
1046
+ - [docs] Document charts composition (#10710) @alexfauquette
1047
+ - [docs] Fix version links (#11167) @LukasTy
1048
+ - [docs] Improve Data Grid togglable columns example (#11241) @MBilalShafi
1049
+ - [docs] Split charts overview and getting started in distinct pages (#10910) @alexfauquette
1050
+
687
1051
  ## 6.18.2
688
1052
 
689
1053
  _Nov 23, 2023_
@@ -1,2 +1,3 @@
1
1
  export * from './ChartsLegend';
2
2
  export * from './chartsLegendClasses';
3
+ export * from './utils';
@@ -24,4 +24,15 @@ Object.keys(_chartsLegendClasses).forEach(function (key) {
24
24
  return _chartsLegendClasses[key];
25
25
  }
26
26
  });
27
+ });
28
+ var _utils = require("./utils");
29
+ Object.keys(_utils).forEach(function (key) {
30
+ if (key === "default" || key === "__esModule") return;
31
+ if (key in exports && exports[key] === _utils[key]) return;
32
+ Object.defineProperty(exports, key, {
33
+ enumerable: true,
34
+ get: function () {
35
+ return _utils[key];
36
+ }
37
+ });
27
38
  });
@@ -31,11 +31,14 @@ export type ChartsAxisContentProps = {
31
31
  classes: ChartsTooltipClasses;
32
32
  sx?: SxProps<Theme>;
33
33
  };
34
- export declare function DefaultChartsAxisContent(props: ChartsAxisContentProps): React.JSX.Element | null;
35
- export declare function ChartsAxisTooltipContent(props: {
34
+ declare function ChartsAxisTooltipContent(props: {
36
35
  axisData: AxisInteractionData;
37
36
  content?: React.ElementType<ChartsAxisContentProps>;
38
37
  contentProps?: Partial<ChartsAxisContentProps>;
39
38
  sx?: SxProps<Theme>;
40
39
  classes: ChartsAxisContentProps['classes'];
41
40
  }): React.JSX.Element;
41
+ declare namespace ChartsAxisTooltipContent {
42
+ var propTypes: any;
43
+ }
44
+ export { ChartsAxisTooltipContent };