@mui/x-charts 7.0.0-alpha.5 → 7.0.0-alpha.8

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 (140) hide show
  1. package/BarChart/BarChart.js +1 -0
  2. package/BarChart/BarElement.d.ts +37 -20
  3. package/BarChart/BarPlot.js +4 -4
  4. package/BarChart/formatter.js +1 -1
  5. package/CHANGELOG.md +357 -49
  6. package/ChartsAxis/ChartsAxis.js +4 -4
  7. package/ChartsReferenceLine/ChartsReferenceLine.js +9 -5
  8. package/ChartsSurface.d.ts +2 -2
  9. package/ChartsSurface.js +33 -1
  10. package/ChartsTooltip/ChartsTooltipTable.d.ts +1 -1
  11. package/ChartsTooltip/ChartsTooltipTable.js +2 -0
  12. package/LineChart/AreaPlot.js +2 -2
  13. package/LineChart/LineChart.d.ts +1 -0
  14. package/LineChart/LineChart.js +2 -0
  15. package/LineChart/LineHighlightPlot.js +1 -1
  16. package/LineChart/LinePlot.js +2 -2
  17. package/LineChart/MarkPlot.js +1 -1
  18. package/LineChart/formatter.js +2 -2
  19. package/PieChart/PieArcLabel.d.ts +1 -0
  20. package/PieChart/PieArcLabel.js +7 -8
  21. package/PieChart/PieArcLabelPlot.d.ts +5 -0
  22. package/PieChart/PieArcLabelPlot.js +16 -3
  23. package/PieChart/PieArcPlot.d.ts +5 -0
  24. package/PieChart/PieArcPlot.js +9 -1
  25. package/PieChart/PieChart.d.ts +14 -2
  26. package/PieChart/PieChart.js +6 -2
  27. package/PieChart/PiePlot.js +3 -0
  28. package/PieChart/dataTransform/transition.js +9 -2
  29. package/PieChart/dataTransform/useTransformData.d.ts +1 -0
  30. package/PieChart/dataTransform/useTransformData.js +11 -8
  31. package/ResponsiveChartContainer/index.js +2 -2
  32. package/ScatterChart/ScatterChart.js +1 -0
  33. package/SparkLineChart/SparkLineChart.d.ts +15 -1
  34. package/SparkLineChart/SparkLineChart.js +8 -1
  35. package/context/CartesianContextProvider.d.ts +1 -1
  36. package/context/CartesianContextProvider.js +9 -8
  37. package/context/DrawingProvider.d.ts +1 -1
  38. package/context/DrawingProvider.js +8 -7
  39. package/context/HighlightProvider.d.ts +2 -2
  40. package/context/HighlightProvider.js +4 -3
  41. package/context/InteractionProvider.d.ts +2 -2
  42. package/context/InteractionProvider.js +4 -3
  43. package/context/SeriesContextProvider.d.ts +3 -1
  44. package/context/SeriesContextProvider.js +8 -7
  45. package/esm/BarChart/BarChart.js +1 -0
  46. package/esm/BarChart/BarPlot.js +4 -4
  47. package/esm/BarChart/formatter.js +1 -1
  48. package/esm/ChartsAxis/ChartsAxis.js +4 -4
  49. package/esm/ChartsReferenceLine/ChartsReferenceLine.js +9 -5
  50. package/esm/ChartsSurface.js +35 -2
  51. package/esm/ChartsTooltip/ChartsTooltipTable.js +2 -0
  52. package/esm/LineChart/AreaPlot.js +2 -2
  53. package/esm/LineChart/LineChart.js +2 -0
  54. package/esm/LineChart/LineHighlightPlot.js +1 -1
  55. package/esm/LineChart/LinePlot.js +2 -2
  56. package/esm/LineChart/MarkPlot.js +1 -1
  57. package/esm/LineChart/formatter.js +2 -2
  58. package/esm/PieChart/PieArcLabel.js +7 -8
  59. package/esm/PieChart/PieArcLabelPlot.js +16 -3
  60. package/esm/PieChart/PieArcPlot.js +9 -1
  61. package/esm/PieChart/PieChart.js +6 -2
  62. package/esm/PieChart/PiePlot.js +3 -0
  63. package/esm/PieChart/dataTransform/transition.js +9 -2
  64. package/esm/PieChart/dataTransform/useTransformData.js +12 -9
  65. package/esm/ResponsiveChartContainer/index.js +2 -2
  66. package/esm/ScatterChart/ScatterChart.js +1 -0
  67. package/esm/SparkLineChart/SparkLineChart.js +8 -1
  68. package/esm/context/CartesianContextProvider.js +9 -8
  69. package/esm/context/DrawingProvider.js +8 -7
  70. package/esm/context/HighlightProvider.js +6 -4
  71. package/esm/context/InteractionProvider.js +6 -4
  72. package/esm/context/SeriesContextProvider.js +10 -8
  73. package/esm/index.js +1 -0
  74. package/esm/internals/domUtils.js +3 -1
  75. package/index.d.ts +1 -0
  76. package/index.js +12 -1
  77. package/internals/defaultizeColor.d.ts +3 -0
  78. package/internals/domUtils.js +3 -1
  79. package/legacy/BarChart/BarChart.js +1 -0
  80. package/legacy/BarChart/BarPlot.js +4 -4
  81. package/legacy/BarChart/formatter.js +1 -1
  82. package/legacy/ChartsAxis/ChartsAxis.js +4 -4
  83. package/legacy/ChartsReferenceLine/ChartsReferenceLine.js +7 -5
  84. package/legacy/ChartsSurface.js +35 -2
  85. package/legacy/ChartsTooltip/ChartsTooltipTable.js +2 -0
  86. package/legacy/LineChart/AreaPlot.js +2 -2
  87. package/legacy/LineChart/LineChart.js +2 -0
  88. package/legacy/LineChart/LineHighlightPlot.js +1 -1
  89. package/legacy/LineChart/LinePlot.js +2 -2
  90. package/legacy/LineChart/MarkPlot.js +1 -1
  91. package/legacy/LineChart/formatter.js +2 -2
  92. package/legacy/PieChart/PieArcLabel.js +7 -8
  93. package/legacy/PieChart/PieArcLabelPlot.js +16 -4
  94. package/legacy/PieChart/PieArcPlot.js +10 -1
  95. package/legacy/PieChart/PieChart.js +6 -2
  96. package/legacy/PieChart/PiePlot.js +3 -0
  97. package/legacy/PieChart/dataTransform/transition.js +9 -2
  98. package/legacy/PieChart/dataTransform/useTransformData.js +12 -9
  99. package/legacy/ResponsiveChartContainer/index.js +2 -2
  100. package/legacy/ScatterChart/ScatterChart.js +1 -0
  101. package/legacy/SparkLineChart/SparkLineChart.js +8 -1
  102. package/legacy/context/CartesianContextProvider.js +17 -17
  103. package/legacy/context/DrawingProvider.js +6 -6
  104. package/legacy/context/HighlightProvider.js +4 -3
  105. package/legacy/context/InteractionProvider.js +4 -3
  106. package/legacy/context/SeriesContextProvider.js +9 -8
  107. package/legacy/index.js +2 -1
  108. package/legacy/internals/domUtils.js +3 -3
  109. package/models/seriesType/pie.d.ts +15 -0
  110. package/modern/BarChart/BarChart.js +1 -0
  111. package/modern/BarChart/BarPlot.js +4 -4
  112. package/modern/BarChart/formatter.js +1 -1
  113. package/modern/ChartsAxis/ChartsAxis.js +4 -4
  114. package/modern/ChartsReferenceLine/ChartsReferenceLine.js +9 -5
  115. package/modern/ChartsSurface.js +35 -2
  116. package/modern/ChartsTooltip/ChartsTooltipTable.js +2 -0
  117. package/modern/LineChart/AreaPlot.js +2 -2
  118. package/modern/LineChart/LineChart.js +2 -0
  119. package/modern/LineChart/LineHighlightPlot.js +1 -1
  120. package/modern/LineChart/LinePlot.js +2 -2
  121. package/modern/LineChart/MarkPlot.js +1 -1
  122. package/modern/LineChart/formatter.js +2 -2
  123. package/modern/PieChart/PieArcLabel.js +7 -8
  124. package/modern/PieChart/PieArcLabelPlot.js +16 -3
  125. package/modern/PieChart/PieArcPlot.js +9 -1
  126. package/modern/PieChart/PieChart.js +6 -2
  127. package/modern/PieChart/PiePlot.js +3 -0
  128. package/modern/PieChart/dataTransform/transition.js +9 -2
  129. package/modern/PieChart/dataTransform/useTransformData.js +11 -8
  130. package/modern/ResponsiveChartContainer/index.js +2 -2
  131. package/modern/ScatterChart/ScatterChart.js +1 -0
  132. package/modern/SparkLineChart/SparkLineChart.js +8 -1
  133. package/modern/context/CartesianContextProvider.js +9 -8
  134. package/modern/context/DrawingProvider.js +8 -7
  135. package/modern/context/HighlightProvider.js +6 -4
  136. package/modern/context/InteractionProvider.js +6 -4
  137. package/modern/context/SeriesContextProvider.js +10 -8
  138. package/modern/index.js +2 -1
  139. package/modern/internals/domUtils.js +3 -1
  140. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -3,6 +3,230 @@
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.8
7
+
8
+ _Jan 11, 2024_
9
+
10
+ We'd like to offer a big thanks to the 7 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - ⏰ Support date-fns v3 (#11659) @LukasTy
13
+ Pickers support both v2 and v3 of date-fns. For v3 use `AdapterDateFnsV3`.
14
+ ```js
15
+ // with date-fns v2.x
16
+ import { AdapterDateFns } from '@mui/x-date-pickers/AdapterDateFns';
17
+ import de from 'date-fns/locale/de';
18
+ ```
19
+ ```js
20
+ // with date-fns v3.x
21
+ import { AdapterDateFns } from '@mui/x-date-pickers/AdapterDateFnsV3';
22
+ import { de } from 'date-fns/locale/de';
23
+ ```
24
+
25
+ ### Data Grid
26
+
27
+ #### Breaking changes
28
+
29
+ - The import path for locales has been changed:
30
+
31
+ ```diff
32
+ -import { enUS } from '@mui/x-data-grid';
33
+ +import { enUS } from '@mui/x-data-grid/locales';
34
+
35
+ -import { enUS } from '@mui/x-data-grid-pro';
36
+ +import { enUS } from '@mui/x-data-grid-pro/locales';
37
+
38
+ -import { enUS } from '@mui/x-data-grid-premium';
39
+ +import { enUS } from '@mui/x-data-grid-premium/locales';
40
+ ```
41
+
42
+ #### `@mui/x-data-grid@7.0.0-alpha.8`
43
+
44
+ - [DataGrid] Stop exporting locales from the package root (#11614) @cherniavskii
45
+
46
+ #### `@mui/x-data-grid-pro@7.0.0-alpha.8` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
47
+
48
+ Same changes as in `@mui/x-data-grid@7.0.0-alpha.8`.
49
+
50
+ #### `@mui/x-data-grid-premium@7.0.0-alpha.8` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
51
+
52
+ Same changes as in `@mui/x-data-grid-pro@7.0.0-alpha.8`.
53
+
54
+ ### Date Pickers
55
+
56
+ #### `@mui/x-date-pickers@7.0.0-alpha.8`
57
+
58
+ - [pickers] Add `date-fns@3.x` adapter (#11462) @LukasTy
59
+ - [pickers] Avoid deeper than 2nd level imports (#11588) @LukasTy
60
+ - [pickers] Fix clearable behavior blocking focus return to `OpenPickerButton` (#11642) @noraleonte
61
+ - [pickers] Move `DateRange` to `@mui/x-date-pickers-pro/models` (#11611) @flaviendelangle
62
+ - [l10n] Add missing Danish (da-DK) locale export (#11640) @etlos
63
+
64
+ #### `@mui/x-date-pickers-pro@7.0.0-alpha.8` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
65
+
66
+ Same changes as in `@mui/x-date-pickers@7.0.0-alpha.8`.
67
+
68
+ ### Tree View / `@mui/x-tree-view@7.0.0-alpha.8`
69
+
70
+ - [tree view] Cleanup `onKeyDown` handler (#11481) @flaviendelangle
71
+ - [tree view] Define the parameters used by each plugin to avoid listing them in each component (#11473) @flaviendelangle
72
+
73
+ ### Docs
74
+
75
+ - [docs] Fix parsing of `x-date-pickers-pro` demo adapter imports (#11628) @LukasTy
76
+ - [docs] Improve `git diff` format @oliviertassinari
77
+ - [docs] Push up the MUI X brand (#11533) @oliviertassinari
78
+ - [docs] Remove old data grid translation files (#11646) @cherniavskii
79
+ - [docs] Improve Server-side data grid docs (#11589) @oliviertassinari
80
+ - [docs] Improve charts landing page (#11570) @oliviertassinari
81
+
82
+ ### Core
83
+
84
+ - [core] Lock `jsdom` version (#11652) @cherniavskii
85
+ - [core] Remove PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD (#11608) @oliviertassinari
86
+ - [core] Simplify isSsr logic (#11606) @oliviertassinari
87
+ - [core] Sync playwright cache between MUI X and Material UI (#11607) @oliviertassinari
88
+ - [core] Use MUI X official name in errors (#11645) @oliviertassinari
89
+
90
+ ## 7.0.0-alpha.7
91
+
92
+ _Jan 5, 2024_
93
+
94
+ We'd like to offer a big thanks to the 7 contributors who made this release possible. Here are some highlights ✨:
95
+
96
+ - 🎁 New component to create a Tree View from a structured data source:
97
+
98
+ You can now directly pass your data to the `RichTreeView` component instead of manually converting it into JSX `TreeItem` components:
99
+
100
+ ```tsx
101
+ const ITEMS = [
102
+ {
103
+ id: 'node-1',
104
+ label: 'Node 1',
105
+ children: [
106
+ { id: 'node-1-1', label: Node 1.1' },
107
+ { id: 'node-1-2', label: Node 1.2' },
108
+ ],
109
+ },
110
+ {
111
+ id: 'node-2',
112
+ label: 'Node 2',
113
+ },
114
+ ];
115
+
116
+ <RichTreeView
117
+ items={MUI_X_PRODUCTS}
118
+ defaultCollapseIcon={<ExpandMoreIcon />}
119
+ defaultExpandIcon={<ChevronRightIcon />}
120
+ />
121
+ ```
122
+
123
+ - 🌍 Improve Czech (cs-CZ) locale on the Data Grid
124
+ - 🐞 Bugfixes
125
+
126
+ ### Data Grid
127
+
128
+ #### `@mui/x-data-grid@7.0.0-alpha.7`
129
+
130
+ - [DataGrid] Don't evaluate `hasEval` when `disableEval` is set (#11516) @reihwald
131
+ - [DataGrid] follow warning message guideline for `autoPageSize` and `autoHeight` (#11585) @Sboonny
132
+ - [DataGrid] Replace `eval` with `new Function` (#11557) @oliviertassinari
133
+ - [DataGrid] Warn devs when `autoPageSize` is used with `autoHeight` (#11554) @Sboonny
134
+ - [l10n] Improve Czech (cs-CZ) locale (#11526) @fdebef
135
+
136
+ #### `@mui/x-data-grid-pro@7.0.0-alpha.7` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
137
+
138
+ Same changes as in `@mui/x-data-grid@7.0.0-alpha.7`.
139
+
140
+ #### `@mui/x-data-grid-premium@7.0.0-alpha.7` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
141
+
142
+ Same changes as in `@mui/x-data-grid-pro@7.0.0-alpha.7`.
143
+
144
+ ### Date Pickers
145
+
146
+ #### `@mui/x-date-pickers@7.0.0-alpha.7`
147
+
148
+ - [pickers] Fix views management (#11419) @LukasTy
149
+
150
+ #### `@mui/x-date-pickers-pro@7.0.0-alpha.7` [![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-date-pickers@7.0.0-alpha.7`.
153
+
154
+ ### Charts / `@mui/x-charts@7.0.0-alpha.7`
155
+
156
+ - [charts] Add `arcLabelRadius` property (#11487) @alexfauquette
157
+ - [charts] Fix `null` in line chart using dataset (#11550) @alexfauquette
158
+
159
+ ### Tree View
160
+
161
+ #### Breaking changes
162
+
163
+ - The expansion props have been renamed to better describe their behaviors:
164
+
165
+ | Old name | New name |
166
+ | :---------------- | :---------------------- |
167
+ | `onNodeToggle` | `onExpandedNodesChange` |
168
+ | `expanded` | `expandedNodes` |
169
+ | `defaultExpanded` | `defaultExpandedNodes` |
170
+
171
+ ```diff
172
+ <TreeView
173
+ - onNodeToggle={handleExpansionChange}
174
+ + onExpandedNodesChange={handleExpansionChange}
175
+
176
+ - expanded={expandedNodes}
177
+ + expandedNodes={expandedNodes}
178
+
179
+ - defaultExpanded={defaultExpandedNodes}
180
+ + defaultExpandedNodes={defaultExpandedNodes}
181
+ />
182
+ ```
183
+
184
+ - The selection props have been renamed to better describe their behaviors:
185
+
186
+ | Old name | New name |
187
+ | :---------------- | :---------------------- |
188
+ | `onNodeSelect` | `onSelectedNodesChange` |
189
+ | `selected` | `selectedNodes` |
190
+ | `defaultSelected` | `defaultSelectedNodes` |
191
+
192
+ ```diff
193
+ <TreeView
194
+ - onNodeSelect={handleSelectionChange}
195
+ + onSelectedNodesChange={handleSelectionChange}
196
+
197
+ - selected={selectedNodes}
198
+ + selectedNodes={selectedNodes}
199
+
200
+ - defaultSelected={defaultSelectedNodes}
201
+ + defaultSelectedNodes={defaultSelectedNodes}
202
+ />
203
+ ```
204
+
205
+ #### `@mui/x-tree-view@7.0.0-alpha.7`
206
+
207
+ - [TreeView] Improve the expansion API (#11476) @flaviendelangle
208
+ - [TreeView] Improve the selection API (#11560) @flaviendelangle
209
+ - [TreeView] Introduce the `items` prop (#11059) @flaviendelangle
210
+
211
+ ### Docs
212
+
213
+ - [docs] Add example for TreeView `onNodeExpansionToggle` prop (#11547) @flaviendelangle
214
+ - [docs] Clarify Pickers usage with Luxon (#11545) @LukasTy
215
+ - [docs] Complete transition to next branch (#11521) @oliviertassinari
216
+ - [docs] Fix 404 links in the docs @oliviertassinari
217
+ - [docs] Fix over page fetching @oliviertassinari
218
+ - [docs] Lint `next.config.js` (#11514) @oliviertassinari
219
+
220
+ ### Core
221
+
222
+ - [core] Fix release changelog (#11496) @romgrk
223
+ - [core] Fix use of ::before & ::after (#11515) @oliviertassinari
224
+ - [core] Localize the issue template to MUI X (#11511) @oliviertassinari
225
+ - [core] Regen api files (#11542) @flaviendelangle
226
+ - [core] Remove issue emoji @oliviertassinari
227
+ - [core] Sync the release instructions with MUI Core @oliviertassinari
228
+ - [core] Yaml format match most common convention @oliviertassinari
229
+
6
230
  ## 7.0.0-alpha.6
7
231
 
8
232
  _Dec 22, 2023_
@@ -65,7 +289,6 @@ Same changes as in `@mui/x-data-grid-pro@7.0.0-alpha.6`.
65
289
  - [fields] Adjust `PickersInput` sizing styles (#11392) @noraleonte
66
290
  - [fields] Fix section pasting (#11447) @LukasTy
67
291
  - [pickers] Add `PickersTextField` `standard` and `filled` variants (#11250) @noraleonte
68
- - [pickers] Add missing breaking changes to changelog (#11420) @MBilalShafi
69
292
  - [pickers] Cleanup error messages in `PickersSectionList` (#11449) @flaviendelangle
70
293
  - [pickers] Create new component `PickersSectionList` (#11352) @flaviendelangle
71
294
 
@@ -73,7 +296,7 @@ Same changes as in `@mui/x-data-grid-pro@7.0.0-alpha.6`.
73
296
 
74
297
  Same changes as in `@mui/x-date-pickers@7.0.0-alpha.6`.
75
298
 
76
- ### Charts / `@mui/x-charts@7.0.0-alpha.6`
299
+ ### Charts / `@mui/x-charts@7.0.0-alpha.5`
77
300
 
78
301
  - [charts] Allow percentage values for pie chart center and radius (#11464) @alexfauquette
79
302
  - [charts] Improve dataset typing (#11372) @alexfauquette
@@ -88,6 +311,7 @@ Same changes as in `@mui/x-date-pickers@7.0.0-alpha.6`.
88
311
 
89
312
  ### Core
90
313
 
314
+ - [core] Add missing breaking changes to changelog (#11420) @MBilalShafi
91
315
  - [core] Cherry pick follow up (#11469) @LukasTy
92
316
  - [core] Fix `cherry-pick` action (#11446) @LukasTy
93
317
  - [core] Fix security regressions in cherry-pick-next-to-master.yml (#11482) @MBilalShafi
@@ -134,10 +358,10 @@ Same changes as in `@mui/x-data-grid-pro@7.0.0-alpha.5`.
134
358
  The `SlotsComponent` suffix has been replaced with `Slots` and `SlotsComponentsProps` with `SlotProps`.
135
359
 
136
360
  ```diff
137
- - DateCalendarSlotsComponent
138
- + DateCalendarSlots
139
- - DateCalendarSlotsComponentsProps
140
- + DateCalendarSlotProps
361
+ -DateCalendarSlotsComponent
362
+ -DateCalendarSlotsComponentsProps
363
+ +DateCalendarSlots
364
+ +DateCalendarSlotProps
141
365
  ```
142
366
 
143
367
  - Move `inputRef` inside the props passed to the field hooks
@@ -145,26 +369,26 @@ The `SlotsComponent` suffix has been replaced with `Slots` and `SlotsComponentsP
145
369
  The field hooks now only receive the props instead of an object containing both the props and the `inputRef`.
146
370
 
147
371
  ```diff
148
- - const { inputRef, ...otherProps } = props
149
- - const fieldResponse = useDateField({ props: otherProps, inputRef });
150
- + const fieldResponse = useDateField(props);
372
+ -const { inputRef, ...otherProps } = props
373
+ -const fieldResponse = useDateField({ props: otherProps, inputRef });
374
+ +const fieldResponse = useDateField(props);
151
375
  ```
152
376
 
153
377
  If you are using a multi input range field hook, the same applies to `startInputRef` and `endInputRef` params
154
378
 
155
379
  ```diff
156
- - const { inputRef: startInputRef, ...otherStartTextFieldProps } = startTextFieldProps
157
- - const { inputRef: endInputRef, ...otherEndTextFieldProps } = endTextFieldProps
158
-
159
- const fieldResponse = useMultiInputDateRangeField({
160
- sharedProps,
161
- - startTextFieldProps: otherStartTextFieldProps,
162
- - endTextFieldProps: otherEndTextFieldProps,
163
- - startInputRef
164
- - endInputRef,
165
- + startTextFieldProps,
166
- + endTextFieldProps
167
- });
380
+ -const { inputRef: startInputRef, ...otherStartTextFieldProps } = startTextFieldProps
381
+ -const { inputRef: endInputRef, ...otherEndTextFieldProps } = endTextFieldProps
382
+
383
+ const fieldResponse = useMultiInputDateRangeField({
384
+ sharedProps,
385
+ - startTextFieldProps: otherStartTextFieldProps,
386
+ - endTextFieldProps: otherEndTextFieldProps,
387
+ - startInputRef
388
+ - endInputRef,
389
+ + startTextFieldProps,
390
+ + endTextFieldProps
391
+ });
168
392
  ```
169
393
 
170
394
  - Rename the ref returned by the field hooks to `inputRef`
@@ -173,26 +397,26 @@ The `SlotsComponent` suffix has been replaced with `Slots` and `SlotsComponentsP
173
397
  This ref was previously named `ref` and has been renamed `inputRef` for extra clarity.
174
398
 
175
399
  ```diff
176
- const fieldResponse = useDateField(props);
400
+ const fieldResponse = useDateField(props);
177
401
 
178
- - return <input ref={fieldResponse.ref} />
179
- + return <input ref={fieldResponse.inputRef} />
402
+ -return <input ref={fieldResponse.ref} />
403
+ +return <input ref={fieldResponse.inputRef} />
180
404
  ```
181
405
 
182
406
  If you are using a multi input range field hook, the same applies to the ref in the `startDate` and `endDate` objects
183
407
 
184
408
  ```diff
185
- const fieldResponse = useDateField(props);
409
+ const fieldResponse = useDateField(props);
186
410
 
187
- return (
188
- <div>
189
- - <input ref={fieldResponse.startDate.ref} />
190
- + <input ref={fieldResponse.startDate.inputRef} />
191
- <span>–</span>
192
- - <input ref={fieldResponse.endDate.ref} />
193
- + <input ref={fieldResponse.endDate.inputRef} />
194
- </div>
195
- )
411
+ return (
412
+ <div>
413
+ - <input ref={fieldResponse.startDate.ref} />
414
+ + <input ref={fieldResponse.startDate.inputRef} />
415
+ <span>–</span>
416
+ - <input ref={fieldResponse.endDate.ref} />
417
+ + <input ref={fieldResponse.endDate.inputRef} />
418
+ </div>
419
+ )
196
420
  ```
197
421
 
198
422
  - Restructure the API of `useClearableField`
@@ -202,23 +426,23 @@ The `SlotsComponent` suffix has been replaced with `Slots` and `SlotsComponentsP
202
426
  You should now be able to directly pass the returned value from your field hook (e.g: `useDateField`) to `useClearableField`
203
427
 
204
428
  ```diff
205
- const fieldResponse = useDateField(props);
206
-
207
- - const { InputProps, onClear, clearable, slots, slotProps, ...otherFieldProps } = fieldResponse
208
- - const { InputProps: ProcessedInputProps, fieldProps: processedFieldProps } = useClearableField({
209
- - fieldProps: otherFieldProps,
210
- - InputProps,
211
- - clearable,
212
- - onClear,
213
- - slots,
214
- - slotProps,
215
- - });
429
+ const fieldResponse = useDateField(props);
430
+
431
+ -const { InputProps, onClear, clearable, slots, slotProps, ...otherFieldProps } = fieldResponse
432
+ -const { InputProps: ProcessedInputProps, fieldProps: processedFieldProps } = useClearableField({
433
+ - fieldProps: otherFieldProps,
434
+ - InputProps,
435
+ - clearable,
436
+ - onClear,
437
+ - slots,
438
+ - slotProps,
439
+ -});
216
440
  -
217
- - return <MyCustomTextField {...processedFieldProps} InputProps={ProcessedInputProps} />
441
+ - return <MyCustomTextField {...processedFieldProps} InputProps={ProcessedInputProps} />
218
442
 
219
- + const processedFieldProps = useClearableField(fieldResponse);
443
+ +const processedFieldProps = useClearableField(fieldResponse);
220
444
  +
221
- + return <MyCustomTextField {...processedFieldProps} />
445
+ +return <MyCustomTextField {...processedFieldProps} />
222
446
  ```
223
447
 
224
448
  #### `@mui/x-date-pickers@7.0.0-alpha.5`
@@ -1200,6 +1424,90 @@ Here is an example of the renaming for the `<ChartsTooltip />` component.
1200
1424
  - [core] Update release instructions as per v7 configuration (#10962) @MBilalShafi
1201
1425
  - [license] Correctly throw errors (#10924) @oliviertassinari
1202
1426
 
1427
+ ## 6.19.0
1428
+
1429
+ _Jan 11, 2024_
1430
+
1431
+ We'd like to offer a big thanks to the 3 contributors who made this release possible. Here are some highlights ✨:
1432
+
1433
+ - ⏰ Support date-fns v3 (#11659) @LukasTy
1434
+ Pickers support both v2 and v3 of date-fns. For v3 use `AdapterDateFnsV3`.
1435
+ ```js
1436
+ // with date-fns v2.x
1437
+ import { AdapterDateFns } from '@mui/x-date-pickers/AdapterDateFns';
1438
+ import de from 'date-fns/locale/de';
1439
+ ```
1440
+ ```js
1441
+ // with date-fns v3.x
1442
+ import { AdapterDateFns } from '@mui/x-date-pickers/AdapterDateFnsV3';
1443
+ import { de } from 'date-fns/locale/de';
1444
+ ```
1445
+
1446
+ ### Date Pickers
1447
+
1448
+ #### `@mui/x-date-pickers@6.19.0`
1449
+
1450
+ - [pickers] Add date-fns@3.x adapter (#11659) @LukasTy
1451
+ - [pickers] Fix clearable behavior blocking focus return to `OpenPickerButton` (#11643) @noraleonte
1452
+ - [l10n] Add missing Danish (da-DK) locale export (#11641) @etlos
1453
+
1454
+ #### `@mui/x-date-pickers-pro@6.19.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
1455
+
1456
+ Same changes as in `@mui/x-date-pickers@6.19.0`.
1457
+
1458
+ ### Docs
1459
+
1460
+ - [docs] Add missing component @oliviertassinari
1461
+ - [docs] Fix parsing of `x-date-pickers-pro` demo adapter imports (#11637) @LukasTy
1462
+ - [docs] Push up the MUI X brand (#11533) @oliviertassinari
1463
+ - [docs] Improve Server-side data grid docs (#11589) @oliviertassinari
1464
+ - [docs] Add demo to the charts overview page (#11586) @danilo-leal
1465
+ - [docs] Fix 404 links in the docs @oliviertassinari
1466
+ - [docs] Improve landing page (#11570) @oliviertassinari
1467
+ - [docs] Give a general revision to the docs (#11249) @danilo-leal
1468
+
1469
+ ## 6.18.7
1470
+
1471
+ _Jan 5, 2024_
1472
+
1473
+ We'd like to offer a big thanks to the 4 contributors who made this release possible. Here are some highlights ✨:
1474
+
1475
+ - 🌍 Improve Czech (cs-CZ) locale on Data Grid (#11429) @wensiet
1476
+ - 🐞 Bugfixes
1477
+
1478
+ ### Data Grid
1479
+
1480
+ #### `@mui/x-data-grid@6.18.7`
1481
+
1482
+ - [DataGrid] Don't evaluate `hasEval` when `disableEval` is set (#11553) @reihwald
1483
+ - [l10n] Update Czech (cs-CZ) locale (#11498) @fdebef
1484
+
1485
+ #### `@mui/x-data-grid-pro@6.18.7` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
1486
+
1487
+ Same changes as in `@mui/x-data-grid@6.18.7`.
1488
+
1489
+ #### `@mui/x-data-grid-premium@6.18.7` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
1490
+
1491
+ Same changes as in `@mui/x-data-grid-pro@6.18.7`.
1492
+
1493
+ ### Date Pickers
1494
+
1495
+ #### `@mui/x-date-pickers@6.18.7`
1496
+
1497
+ - [pickers] Fix views management (@LukasTy) (#11572)
1498
+
1499
+ #### `@mui/x-date-pickers-pro@6.18.7` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
1500
+
1501
+ Same changes as in `@mui/x-date-pickers@6.18.7`.
1502
+
1503
+ ### Charts / `@mui/x-charts@6.18.7`
1504
+
1505
+ - [charts] Fix `null` in line chart using dataset (@alexfauquette) (#11561)
1506
+
1507
+ ### Docs
1508
+
1509
+ - [docs] Clarify Pickers usage with Luxon (#11566) @LukasTy
1510
+
1203
1511
  ## 6.18.6
1204
1512
 
1205
1513
  _Dec 22, 2023_
@@ -1234,7 +1542,7 @@ Same changes as in `@mui/x-data-grid-pro@6.18.6`.
1234
1542
 
1235
1543
  Same changes as in `@mui/x-date-pickers@6.18.6`.
1236
1544
 
1237
- ### Charts / `@mui/x-charts@6.18.6`
1545
+ ### Charts / `@mui/x-charts@6.18.4`
1238
1546
 
1239
1547
  - [charts] Allow percentage values for pie chart center and radius (#11464) @alexfauquette
1240
1548
  - [charts] Make error message more explicit (#11457) @alexfauquette
@@ -66,16 +66,16 @@ function ChartsAxis(props) {
66
66
  const topId = getAxisId(topAxis);
67
67
  const rightId = getAxisId(rightAxis);
68
68
  if (topId !== null && !xAxis[topId]) {
69
- throw Error([`MUI-X-Charts: id used for top axis "${topId}" is not defined.`, `Available ids are: ${xAxisIds.join(', ')}.`].join('\n'));
69
+ throw Error([`MUI X Charts: id used for top axis "${topId}" is not defined.`, `Available ids are: ${xAxisIds.join(', ')}.`].join('\n'));
70
70
  }
71
71
  if (leftId !== null && !yAxis[leftId]) {
72
- throw Error([`MUI-X-Charts: id used for left axis "${leftId}" is not defined.`, `Available ids are: ${yAxisIds.join(', ')}.`].join('\n'));
72
+ throw Error([`MUI X Charts: id used for left axis "${leftId}" is not defined.`, `Available ids are: ${yAxisIds.join(', ')}.`].join('\n'));
73
73
  }
74
74
  if (rightId !== null && !yAxis[rightId]) {
75
- throw Error([`MUI-X-Charts: id used for right axis "${rightId}" is not defined.`, `Available ids are: ${yAxisIds.join(', ')}.`].join('\n'));
75
+ throw Error([`MUI X Charts: id used for right axis "${rightId}" is not defined.`, `Available ids are: ${yAxisIds.join(', ')}.`].join('\n'));
76
76
  }
77
77
  if (bottomId !== null && !xAxis[bottomId]) {
78
- throw Error([`MUI-X-Charts: id used for bottom axis "${bottomId}" is not defined.`, `Available ids are: ${xAxisIds.join(', ')}.`].join('\n'));
78
+ throw Error([`MUI X Charts: id used for bottom axis "${bottomId}" is not defined.`, `Available ids are: ${xAxisIds.join(', ')}.`].join('\n'));
79
79
  }
80
80
  const topAxisProps = mergeProps(topAxis, slots, slotProps);
81
81
  const bottomAxisProps = mergeProps(bottomAxis, slots, slotProps);
@@ -14,13 +14,17 @@ var _jsxRuntime = require("react/jsx-runtime");
14
14
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
15
15
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
16
16
  function ChartsReferenceLine(props) {
17
- if (props.x !== undefined && props.y !== undefined) {
18
- throw new Error('MUI-X-Charts: The ChartsReferenceLine can not have both `x` and `y` props set.');
17
+ const {
18
+ x,
19
+ y
20
+ } = props;
21
+ if (x !== undefined && y !== undefined) {
22
+ throw new Error('MUI X Charts: The ChartsReferenceLine can not have both `x` and `y` props set.');
19
23
  }
20
- if (props.x === undefined && props.y === undefined) {
21
- throw new Error('MUI-X-Charts: The ChartsReferenceLine should have a value in `x` or `y` prop.');
24
+ if (x === undefined && y === undefined) {
25
+ throw new Error('MUI X Charts: The ChartsReferenceLine should have a value in `x` or `y` prop.');
22
26
  }
23
- if (props.x !== undefined) {
27
+ if (x !== undefined) {
24
28
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsXReferenceLine.ChartsXReferenceLine, (0, _extends2.default)({}, props));
25
29
  }
26
30
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsYReferenceLine.ChartsYReferenceLine, (0, _extends2.default)({}, props));
@@ -28,5 +28,5 @@ export interface ChartsSurfaceProps {
28
28
  */
29
29
  disableAxisListener?: boolean;
30
30
  }
31
- export declare const ChartsSurface: React.ForwardRefExoticComponent<ChartsSurfaceProps & React.RefAttributes<SVGSVGElement>>;
32
- export {};
31
+ declare const ChartsSurface: React.ForwardRefExoticComponent<ChartsSurfaceProps & React.RefAttributes<SVGSVGElement>>;
32
+ export { ChartsSurface };
package/ChartsSurface.js CHANGED
@@ -8,6 +8,7 @@ exports.ChartsSurface = void 0;
8
8
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
9
  var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
10
10
  var _styles = require("@mui/material/styles");
11
+ var _propTypes = _interopRequireDefault(require("prop-types"));
11
12
  var React = _interopRequireWildcard(require("react"));
12
13
  var _useAxisEvents = require("./hooks/useAxisEvents");
13
14
  var _jsxRuntime = require("react/jsx-runtime");
@@ -46,4 +47,35 @@ const ChartsSurface = exports.ChartsSurface = /*#__PURE__*/React.forwardRef(func
46
47
  children: props.desc
47
48
  }), children]
48
49
  }));
49
- });
50
+ });
51
+ process.env.NODE_ENV !== "production" ? ChartsSurface.propTypes = {
52
+ // ----------------------------- Warning --------------------------------
53
+ // | These PropTypes are generated from the TypeScript type definitions |
54
+ // | To update them edit the TypeScript types and run "yarn proptypes" |
55
+ // ----------------------------------------------------------------------
56
+ children: _propTypes.default.node,
57
+ className: _propTypes.default.string,
58
+ desc: _propTypes.default.string,
59
+ /**
60
+ * If `true`, the charts will not listen to the mouse move event.
61
+ * It might break interactive features, but will improve performance.
62
+ * @default false
63
+ */
64
+ disableAxisListener: _propTypes.default.bool,
65
+ /**
66
+ * The height of the chart in px.
67
+ */
68
+ height: _propTypes.default.number.isRequired,
69
+ sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object]),
70
+ title: _propTypes.default.string,
71
+ viewBox: _propTypes.default.shape({
72
+ height: _propTypes.default.number,
73
+ width: _propTypes.default.number,
74
+ x: _propTypes.default.number,
75
+ y: _propTypes.default.number
76
+ }),
77
+ /**
78
+ * The width of the chart in px.
79
+ */
80
+ width: _propTypes.default.number.isRequired
81
+ } : void 0;
@@ -5,7 +5,7 @@ export declare const ChartsTooltipRow: import("@emotion/styled").StyledComponent
5
5
  export declare const ChartsTooltipCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, Pick<import("react").DetailedHTMLProps<import("react").TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, keyof import("react").ClassAttributes<HTMLTableDataCellElement> | keyof import("react").TdHTMLAttributes<HTMLTableDataCellElement>>, {}>;
6
6
  export declare const ChartsTooltipMark: import("@emotion/styled").StyledComponent<Pick<import("@mui/system/Box").BoxOwnProps<import("@mui/system").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
7
7
  ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
8
- }, keyof import("@mui/system/Box").BoxOwnProps<import("@mui/system").Theme>>, "hidden" | "content" | "style" | "translate" | "slot" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | keyof import("@mui/system/Box").BoxOwnProps<import("@mui/system").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
8
+ }, keyof import("@mui/system/Box").BoxOwnProps<import("@mui/system").Theme>>, "hidden" | "content" | "style" | "translate" | "slot" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | keyof import("@mui/system/Box").BoxOwnProps<import("@mui/system").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
9
9
  ownerState: {
10
10
  color: string;
11
11
  };
@@ -66,6 +66,8 @@ const ChartsTooltipCell = exports.ChartsTooltipCell = (0, _styles.styled)('td',
66
66
  paddingRight: theme.spacing(2)
67
67
  }
68
68
  }));
69
+
70
+ // eslint-disable-next-line material-ui/no-styled-box
69
71
  const ChartsTooltipMark = exports.ChartsTooltipMark = (0, _styles.styled)(_Box.default, {
70
72
  name: 'MuiChartsTooltip',
71
73
  slot: 'Mark'
@@ -71,10 +71,10 @@ function AreaPlot(props) {
71
71
  const xData = xAxis[xAxisKey].data;
72
72
  if (process.env.NODE_ENV !== 'production') {
73
73
  if (xData === undefined) {
74
- throw new Error(`MUI-X-Charts: ${xAxisKey === _constants.DEFAULT_X_AXIS_KEY ? 'The first `xAxis`' : `The x-axis with id "${xAxisKey}"`} should have data property to be able to display a line plot.`);
74
+ throw new Error(`MUI X Charts: ${xAxisKey === _constants.DEFAULT_X_AXIS_KEY ? 'The first `xAxis`' : `The x-axis with id "${xAxisKey}"`} should have data property to be able to display a line plot.`);
75
75
  }
76
76
  if (xData.length < stackedData.length) {
77
- throw new Error(`MUI-X-Charts: The data length of the x axis (${xData.length} items) is lower than the length of series (${stackedData.length} items)`);
77
+ throw new Error(`MUI X Charts: The data length of the x axis (${xData.length} items) is lower than the length of series (${stackedData.length} items).`);
78
78
  }
79
79
  }
80
80
  const areaPath = (0, _d3Shape.area)().x(d => xScale(d.x)).defined((_, i) => connectNulls || data[i] != null).y0(d => d.y && yScale(d.y[0])).y1(d => d.y && yScale(d.y[1]));
@@ -24,6 +24,7 @@ export interface LineChartProps extends Omit<ResponsiveChartContainerProps, 'ser
24
24
  * - 'none': display nothing.
25
25
  * - 'line': display a line at the current mouse position.
26
26
  * - 'band': display a band at the current mouse position. Only available with band scale.
27
+ * @default { x: 'line' }
27
28
  */
28
29
  axisHighlight?: ChartsAxisHighlightProps;
29
30
  /**