@mui/x-charts 6.19.4 → 6.19.5

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.
package/CHANGELOG.md CHANGED
@@ -3,7 +3,68 @@
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
- ## v6.19.4
6
+ ## 6.19.5
7
+
8
+ _Feb 23, 2024_
9
+
10
+ We'd like to offer a big thanks to the 6 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 🐞 Bugfixes
13
+ - 📚 Documentation improvements
14
+
15
+ ### Data Grid
16
+
17
+ #### `@mui/x-data-grid@6.19.5`
18
+
19
+ - [DataGrid] Fix styling grid filter input single select (#12079) @FreakDroid
20
+
21
+ #### `@mui/x-data-grid-pro@6.19.5` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
22
+
23
+ Same changes as in `@mui/x-data-grid@6.19.5`.
24
+
25
+ #### `@mui/x-data-grid-premium@6.19.5` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
26
+
27
+ Same changes as in `@mui/x-data-grid-pro@6.19.5`.
28
+
29
+ ### Date Pickers
30
+
31
+ #### `@mui/x-date-pickers@6.19.5`
32
+
33
+ - [pickers] Fix `referenceDate` day calendar focus (#12136) @LukasTy
34
+ - [pickers] Fix styling props propagation to `DateTimePickerTabs` (#12131) @LukasTy
35
+
36
+ #### `@mui/x-date-pickers-pro@6.19.5` [![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-date-pickers@6.19.5`.
39
+
40
+ ### Charts / `@mui/x-charts@6.19.5`
41
+
42
+ - [charts] Allow to skip animation on sparkline bar (#12160) @alexfauquette
43
+
44
+ ### Docs
45
+
46
+ - [docs] Clarify Pickers 'Component composition' section (#12147) @LukasTy
47
+ - [docs] Fix 301 redirection to StackBlitz @oliviertassinari
48
+ - [docs] Fix 301 to Material UI @oliviertassinari
49
+ - [docs] Fix 301 to Material UI @oliviertassinari
50
+ - [docs] Fix 404 links to translation source @oliviertassinari
51
+ - [docs] Fix dead link to translations @oliviertassinari
52
+ - [docs] Fix the Treemap illustration (#12189) @danilo-leal
53
+ - [docs] Fix typo for `AdapterDateFnsV3` (#12037) @flaviendelangle
54
+ - [docs] Improve performance on Charts entry point @oliviertassinari
55
+ - [docs] Move Heatmap to pro (#12170) @alexfauquette
56
+ - [docs] Remove Charts installation next tag call-out (#12133) @LukasTy
57
+ - [docs] Removed `focused` prop from demo (#12126) @michelengelen
58
+ - [docs] Add missing Heatmap pro icon @oliviertassinari
59
+ - [docs] Add more illustrations to the Overview page (#12041) @danilo-leal
60
+ - [docs] Avoid use of shorthand (#12009) @oliviertassinari
61
+
62
+ ### Core
63
+
64
+ - [core] Fix CI @oliviertassinari
65
+ - [core] Fix docs link check (#12137) @LukasTy
66
+
67
+ ## 6.19.4
7
68
 
8
69
  _Feb 9, 2024_
9
70
 
@@ -15,7 +76,7 @@ We'd like to offer a big thanks to the 10 contributors who made this release pos
15
76
 
16
77
  ### Data Grid
17
78
 
18
- #### `@mui/x-data-grid@v6.19.4`
79
+ #### `@mui/x-data-grid@6.19.4`
19
80
 
20
81
  - [DataGrid] Add support for dialogs in menu actions (#11937) @cherniavskii
21
82
  - [DataGrid] Allow passing readonly arrays to `pageSizeOptions` prop (#11992) @pcorpet
@@ -23,28 +84,28 @@ We'd like to offer a big thanks to the 10 contributors who made this release pos
23
84
  - [DataGrid] Replace `eval` with `new Function` (#11962) @cherniavskii
24
85
  - [l10n] Improve Danish (da-DK) locale (#11972) @ShahrazH
25
86
 
26
- #### `@mui/x-data-grid-pro@v6.19.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
87
+ #### `@mui/x-data-grid-pro@6.19.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
27
88
 
28
- Same changes as in `@mui/x-data-grid@v6.19.4`.
89
+ Same changes as in `@mui/x-data-grid@6.19.4`.
29
90
 
30
- #### `@mui/x-data-grid-premium@v6.19.4` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
91
+ #### `@mui/x-data-grid-premium@6.19.4` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
31
92
 
32
- Same changes as in `@mui/x-data-grid-pro@v6.19.4`, plus:
93
+ Same changes as in `@mui/x-data-grid-pro@6.19.4`, plus:
33
94
 
34
95
  - [DataGridPremium] Fix autosize grouping cell (#11990) @romgrk
35
96
  - [DataGridPremium] Fix error after closing print export (#11889) @cherniavskii
36
97
 
37
98
  ### Date Pickers
38
99
 
39
- #### `@mui/x-date-pickers@v6.19.4`
100
+ #### `@mui/x-date-pickers@6.19.4`
40
101
 
41
102
  - [pickers] Avoid relying on locale in Luxon `isWithinRange` method (#11940) @LukasTy
42
103
 
43
- #### `@mui/x-date-pickers-pro@v6.19.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
104
+ #### `@mui/x-date-pickers-pro@6.19.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
44
105
 
45
- Same changes as in `@mui/x-date-pickers@v6.19.4`.
106
+ Same changes as in `@mui/x-date-pickers@6.19.4`.
46
107
 
47
- ### Charts / `@mui/x-charts@v6.19.4`
108
+ ### Charts / `@mui/x-charts@6.19.4`
48
109
 
49
110
  - [charts] Add `reverse` property to axes (#11959) @alexfauquette
50
111
  - [charts] Allow series ids to be numbers (#11960) @alexfauquette
@@ -36,7 +36,7 @@ export interface SparkLineChartProps extends Omit<ResponsiveChartContainerProps,
36
36
  * Formatter used by the tooltip.
37
37
  * @param {number} value The value to format.
38
38
  * @returns {string} the formatted value.
39
- * @default (v: number) => v.toString()
39
+ * @default (value: number | null) => (value === null ? '' : value.toString())
40
40
  */
41
41
  valueFormatter?: (value: number) => string;
42
42
  /**
@@ -73,6 +73,12 @@ export interface SparkLineChartProps extends Omit<ResponsiveChartContainerProps,
73
73
  * }
74
74
  */
75
75
  margin?: Partial<CardinalDirections<number>>;
76
+ /**
77
+ * If `true`, bar animations are skiped.
78
+ * @deprecated In v7 animations are skipped for sparkline.
79
+ * @default false
80
+ */
81
+ skipAnimation?: boolean;
76
82
  /**
77
83
  * Overridable component slots.
78
84
  * @default {}
@@ -50,9 +50,10 @@ const SparkLineChart = exports.SparkLineChart = /*#__PURE__*/React.forwardRef(fu
50
50
  slotProps,
51
51
  data,
52
52
  plotType = 'line',
53
- valueFormatter = v => v.toString(),
53
+ valueFormatter = value => value === null ? '' : value.toString(),
54
54
  area,
55
- curve = 'linear'
55
+ curve = 'linear',
56
+ skipAnimation = false
56
57
  } = props;
57
58
  const defaultXHighlight = showHighlight && plotType === 'bar' ? {
58
59
  x: 'band'
@@ -86,6 +87,7 @@ const SparkLineChart = exports.SparkLineChart = /*#__PURE__*/React.forwardRef(fu
86
87
  sx: sx,
87
88
  disableAxisListener: (!showTooltip || tooltip?.trigger !== 'axis') && axisHighlight?.x === 'none' && axisHighlight?.y === 'none',
88
89
  children: [plotType === 'bar' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_BarChart.BarPlot, {
90
+ skipAnimation: skipAnimation,
89
91
  slots: slots,
90
92
  slotProps: slotProps,
91
93
  sx: {
@@ -188,6 +190,12 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
188
190
  * @default false
189
191
  */
190
192
  showTooltip: _propTypes.default.bool,
193
+ /**
194
+ * If `true`, bar animations are skiped.
195
+ * @deprecated In v7 animations are skipped for sparkline.
196
+ * @default false
197
+ */
198
+ skipAnimation: _propTypes.default.bool,
191
199
  /**
192
200
  * The props used for each component slot.
193
201
  * @default {}
@@ -212,7 +220,7 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
212
220
  * Formatter used by the tooltip.
213
221
  * @param {number} value The value to format.
214
222
  * @returns {string} the formatted value.
215
- * @default (v: number) => v.toString()
223
+ * @default (value: number | null) => (value === null ? '' : value.toString())
216
224
  */
217
225
  valueFormatter: _propTypes.default.func,
218
226
  viewBox: _propTypes.default.shape({
@@ -42,9 +42,10 @@ const SparkLineChart = /*#__PURE__*/React.forwardRef(function SparkLineChart(pro
42
42
  slotProps,
43
43
  data,
44
44
  plotType = 'line',
45
- valueFormatter = v => v.toString(),
45
+ valueFormatter = value => value === null ? '' : value.toString(),
46
46
  area,
47
- curve = 'linear'
47
+ curve = 'linear',
48
+ skipAnimation = false
48
49
  } = props;
49
50
  const defaultXHighlight = showHighlight && plotType === 'bar' ? {
50
51
  x: 'band'
@@ -78,6 +79,7 @@ const SparkLineChart = /*#__PURE__*/React.forwardRef(function SparkLineChart(pro
78
79
  sx: sx,
79
80
  disableAxisListener: (!showTooltip || (tooltip == null ? void 0 : tooltip.trigger) !== 'axis') && (axisHighlight == null ? void 0 : axisHighlight.x) === 'none' && (axisHighlight == null ? void 0 : axisHighlight.y) === 'none',
80
81
  children: [plotType === 'bar' && /*#__PURE__*/_jsx(BarPlot, {
82
+ skipAnimation: skipAnimation,
81
83
  slots: slots,
82
84
  slotProps: slotProps,
83
85
  sx: {
@@ -180,6 +182,12 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
180
182
  * @default false
181
183
  */
182
184
  showTooltip: PropTypes.bool,
185
+ /**
186
+ * If `true`, bar animations are skiped.
187
+ * @deprecated In v7 animations are skipped for sparkline.
188
+ * @default false
189
+ */
190
+ skipAnimation: PropTypes.bool,
183
191
  /**
184
192
  * The props used for each component slot.
185
193
  * @default {}
@@ -204,7 +212,7 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
204
212
  * Formatter used by the tooltip.
205
213
  * @param {number} value The value to format.
206
214
  * @returns {string} the formatted value.
207
- * @default (v: number) => v.toString()
215
+ * @default (value: number | null) => (value === null ? '' : value.toString())
208
216
  */
209
217
  valueFormatter: PropTypes.func,
210
218
  viewBox: PropTypes.shape({
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-charts v6.19.4
2
+ * @mui/x-charts v6.19.5
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -44,12 +44,14 @@ var SparkLineChart = /*#__PURE__*/React.forwardRef(function SparkLineChart(props
44
44
  _props$plotType = props.plotType,
45
45
  plotType = _props$plotType === void 0 ? 'line' : _props$plotType,
46
46
  _props$valueFormatter = props.valueFormatter,
47
- valueFormatter = _props$valueFormatter === void 0 ? function (v) {
48
- return v.toString();
47
+ valueFormatter = _props$valueFormatter === void 0 ? function (value) {
48
+ return value === null ? '' : value.toString();
49
49
  } : _props$valueFormatter,
50
50
  area = props.area,
51
51
  _props$curve = props.curve,
52
- curve = _props$curve === void 0 ? 'linear' : _props$curve;
52
+ curve = _props$curve === void 0 ? 'linear' : _props$curve,
53
+ _props$skipAnimation = props.skipAnimation,
54
+ skipAnimation = _props$skipAnimation === void 0 ? false : _props$skipAnimation;
53
55
  var defaultXHighlight = showHighlight && plotType === 'bar' ? {
54
56
  x: 'band'
55
57
  } : {
@@ -84,6 +86,7 @@ var SparkLineChart = /*#__PURE__*/React.forwardRef(function SparkLineChart(props
84
86
  sx: sx,
85
87
  disableAxisListener: (!showTooltip || (tooltip == null ? void 0 : tooltip.trigger) !== 'axis') && (axisHighlight == null ? void 0 : axisHighlight.x) === 'none' && (axisHighlight == null ? void 0 : axisHighlight.y) === 'none',
86
88
  children: [plotType === 'bar' && /*#__PURE__*/_jsx(BarPlot, {
89
+ skipAnimation: skipAnimation,
87
90
  slots: slots,
88
91
  slotProps: slotProps,
89
92
  sx: {
@@ -186,6 +189,12 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
186
189
  * @default false
187
190
  */
188
191
  showTooltip: PropTypes.bool,
192
+ /**
193
+ * If `true`, bar animations are skiped.
194
+ * @deprecated In v7 animations are skipped for sparkline.
195
+ * @default false
196
+ */
197
+ skipAnimation: PropTypes.bool,
189
198
  /**
190
199
  * The props used for each component slot.
191
200
  * @default {}
@@ -210,7 +219,7 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
210
219
  * Formatter used by the tooltip.
211
220
  * @param {number} value The value to format.
212
221
  * @returns {string} the formatted value.
213
- * @default (v: number) => v.toString()
222
+ * @default (value: number | null) => (value === null ? '' : value.toString())
214
223
  */
215
224
  valueFormatter: PropTypes.func,
216
225
  viewBox: PropTypes.shape({
package/legacy/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-charts v6.19.4
2
+ * @mui/x-charts v6.19.5
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -42,9 +42,10 @@ const SparkLineChart = /*#__PURE__*/React.forwardRef(function SparkLineChart(pro
42
42
  slotProps,
43
43
  data,
44
44
  plotType = 'line',
45
- valueFormatter = v => v.toString(),
45
+ valueFormatter = value => value === null ? '' : value.toString(),
46
46
  area,
47
- curve = 'linear'
47
+ curve = 'linear',
48
+ skipAnimation = false
48
49
  } = props;
49
50
  const defaultXHighlight = showHighlight && plotType === 'bar' ? {
50
51
  x: 'band'
@@ -78,6 +79,7 @@ const SparkLineChart = /*#__PURE__*/React.forwardRef(function SparkLineChart(pro
78
79
  sx: sx,
79
80
  disableAxisListener: (!showTooltip || tooltip?.trigger !== 'axis') && axisHighlight?.x === 'none' && axisHighlight?.y === 'none',
80
81
  children: [plotType === 'bar' && /*#__PURE__*/_jsx(BarPlot, {
82
+ skipAnimation: skipAnimation,
81
83
  slots: slots,
82
84
  slotProps: slotProps,
83
85
  sx: {
@@ -180,6 +182,12 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
180
182
  * @default false
181
183
  */
182
184
  showTooltip: PropTypes.bool,
185
+ /**
186
+ * If `true`, bar animations are skiped.
187
+ * @deprecated In v7 animations are skipped for sparkline.
188
+ * @default false
189
+ */
190
+ skipAnimation: PropTypes.bool,
183
191
  /**
184
192
  * The props used for each component slot.
185
193
  * @default {}
@@ -204,7 +212,7 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
204
212
  * Formatter used by the tooltip.
205
213
  * @param {number} value The value to format.
206
214
  * @returns {string} the formatted value.
207
- * @default (v: number) => v.toString()
215
+ * @default (value: number | null) => (value === null ? '' : value.toString())
208
216
  */
209
217
  valueFormatter: PropTypes.func,
210
218
  viewBox: PropTypes.shape({
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-charts v6.19.4
2
+ * @mui/x-charts v6.19.5
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-charts",
3
- "version": "6.19.4",
3
+ "version": "6.19.5",
4
4
  "description": "The community edition of the charts components (MUI X).",
5
5
  "author": "MUI Team",
6
6
  "main": "./index.js",