@mui/x-charts 8.27.0 → 8.27.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 (94) hide show
  1. package/CHANGELOG.md +214 -0
  2. package/ChartContainer/ChartContainer.d.ts +16 -29
  3. package/ChartContainer/ChartContainer.js +14 -1691
  4. package/ChartContainer/useChartContainerProps.d.ts +9 -10
  5. package/ChartContainer/useChartContainerProps.js +9 -94
  6. package/ChartDataProvider/ChartDataProvider.d.ts +15 -44
  7. package/ChartDataProvider/ChartDataProvider.js +16 -130
  8. package/ChartDataProvider/useChartDataProviderProps.d.ts +7 -10
  9. package/ChartDataProvider/useChartDataProviderProps.js +5 -38
  10. package/ChartsContainer/ChartsContainer.d.ts +37 -0
  11. package/ChartsContainer/ChartsContainer.js +1702 -0
  12. package/ChartsContainer/index.d.ts +1 -0
  13. package/ChartsContainer/index.js +16 -0
  14. package/ChartsContainer/useChartsContainerProps.d.ts +15 -0
  15. package/ChartsContainer/useChartsContainerProps.js +104 -0
  16. package/ChartsDataProvider/ChartsDataProvider.d.ts +51 -0
  17. package/ChartsDataProvider/ChartsDataProvider.js +138 -0
  18. package/ChartsDataProvider/index.d.ts +1 -0
  19. package/ChartsDataProvider/index.js +16 -0
  20. package/ChartsDataProvider/useChartsDataProviderProps.d.ts +13 -0
  21. package/ChartsDataProvider/useChartsDataProviderProps.js +45 -0
  22. package/context/ChartProvider/ChartContext.d.ts +2 -3
  23. package/context/ChartProvider/ChartContext.js +3 -4
  24. package/context/ChartProvider/ChartProvider.d.ts +5 -8
  25. package/context/ChartProvider/ChartProvider.js +6 -41
  26. package/context/ChartProvider/ChartProvider.types.d.ts +14 -41
  27. package/context/ChartProvider/useChartContext.d.ts +4 -3
  28. package/context/ChartProvider/useChartContext.js +5 -11
  29. package/context/ChartsProvider/ChartsContext.d.ts +6 -0
  30. package/context/ChartsProvider/ChartsContext.js +14 -0
  31. package/context/ChartsProvider/ChartsProvider.d.ts +8 -0
  32. package/context/ChartsProvider/ChartsProvider.js +47 -0
  33. package/context/ChartsProvider/ChartsProvider.types.d.ts +40 -0
  34. package/context/ChartsProvider/ChartsProvider.types.js +5 -0
  35. package/context/ChartsProvider/index.d.ts +3 -0
  36. package/context/ChartsProvider/index.js +38 -0
  37. package/context/ChartsProvider/useChartsContext.d.ts +3 -0
  38. package/context/ChartsProvider/useChartsContext.js +18 -0
  39. package/context/ChartsSlotsContext.d.ts +1 -1
  40. package/context/ChartsSlotsContext.js +1 -1
  41. package/esm/ChartContainer/ChartContainer.d.ts +16 -29
  42. package/esm/ChartContainer/ChartContainer.js +15 -1690
  43. package/esm/ChartContainer/useChartContainerProps.d.ts +9 -10
  44. package/esm/ChartContainer/useChartContainerProps.js +10 -93
  45. package/esm/ChartDataProvider/ChartDataProvider.d.ts +15 -44
  46. package/esm/ChartDataProvider/ChartDataProvider.js +16 -128
  47. package/esm/ChartDataProvider/useChartDataProviderProps.d.ts +7 -10
  48. package/esm/ChartDataProvider/useChartDataProviderProps.js +6 -36
  49. package/esm/ChartsContainer/ChartsContainer.d.ts +37 -0
  50. package/esm/ChartsContainer/ChartsContainer.js +1696 -0
  51. package/esm/ChartsContainer/index.d.ts +1 -0
  52. package/esm/ChartsContainer/index.js +1 -0
  53. package/esm/ChartsContainer/useChartsContainerProps.d.ts +15 -0
  54. package/esm/ChartsContainer/useChartsContainerProps.js +97 -0
  55. package/esm/ChartsDataProvider/ChartsDataProvider.d.ts +51 -0
  56. package/esm/ChartsDataProvider/ChartsDataProvider.js +132 -0
  57. package/esm/ChartsDataProvider/index.d.ts +1 -0
  58. package/esm/ChartsDataProvider/index.js +1 -0
  59. package/esm/ChartsDataProvider/useChartsDataProviderProps.d.ts +13 -0
  60. package/esm/ChartsDataProvider/useChartsDataProviderProps.js +38 -0
  61. package/esm/context/ChartProvider/ChartContext.d.ts +2 -3
  62. package/esm/context/ChartProvider/ChartContext.js +4 -3
  63. package/esm/context/ChartProvider/ChartProvider.d.ts +5 -8
  64. package/esm/context/ChartProvider/ChartProvider.js +5 -38
  65. package/esm/context/ChartProvider/ChartProvider.types.d.ts +14 -41
  66. package/esm/context/ChartProvider/useChartContext.d.ts +4 -3
  67. package/esm/context/ChartProvider/useChartContext.js +6 -9
  68. package/esm/context/ChartsProvider/ChartsContext.d.ts +6 -0
  69. package/esm/context/ChartsProvider/ChartsContext.js +8 -0
  70. package/esm/context/ChartsProvider/ChartsProvider.d.ts +8 -0
  71. package/esm/context/ChartsProvider/ChartsProvider.js +41 -0
  72. package/esm/context/ChartsProvider/ChartsProvider.types.d.ts +40 -0
  73. package/esm/context/ChartsProvider/ChartsProvider.types.js +1 -0
  74. package/esm/context/ChartsProvider/index.d.ts +3 -0
  75. package/esm/context/ChartsProvider/index.js +3 -0
  76. package/esm/context/ChartsProvider/useChartsContext.d.ts +3 -0
  77. package/esm/context/ChartsProvider/useChartsContext.js +11 -0
  78. package/esm/context/ChartsSlotsContext.d.ts +1 -1
  79. package/esm/context/ChartsSlotsContext.js +1 -1
  80. package/esm/index.d.ts +4 -1
  81. package/esm/index.js +3 -1
  82. package/esm/internals/index.d.ts +3 -0
  83. package/esm/internals/index.js +3 -0
  84. package/esm/internals/store/useStore.js +1 -1
  85. package/esm/themeAugmentation/components.d.ts +4 -0
  86. package/esm/themeAugmentation/props.d.ts +4 -2
  87. package/index.d.ts +4 -1
  88. package/index.js +21 -1
  89. package/internals/index.d.ts +3 -0
  90. package/internals/index.js +36 -0
  91. package/internals/store/useStore.js +1 -1
  92. package/package.json +3 -3
  93. package/themeAugmentation/components.d.ts +4 -0
  94. package/themeAugmentation/props.d.ts +4 -2
package/CHANGELOG.md CHANGED
@@ -5,6 +5,220 @@
5
5
  All notable changes to this project will be documented in this file.
6
6
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
7
7
 
8
+ ## 8.27.4
9
+
10
+ _Mar 5, 2026_
11
+
12
+ We'd like to extend a big thank you to the 6 contributors who made this release possible. Here are some highlights ✨:
13
+
14
+ - 🐞 Bugfixes
15
+ - 🌎 Improve Ukrainian (uk-UA) locale
16
+
17
+ Special thanks go out to this community member for their valuable contribution:
18
+ @lion1963
19
+
20
+ The following team members contributed to this release:
21
+ @arminmeh, @brijeshb42, @dav-is, @JCQuintas, @sai6855
22
+
23
+ ### Data Grid
24
+
25
+ #### `@mui/x-data-grid@8.27.4`
26
+
27
+ - [DataGrid] Prevent unnecessary row selection checkbox rerendering (#21571) @arminmeh
28
+ - [DataGrid] Make `GridScrollArea` overrides resolver dynamic (#21612) @sai6855
29
+ - [l10n] Improve Ukrainian (uk-UA) locale (#21381) @lion1963
30
+
31
+ #### `@mui/x-data-grid-pro@8.27.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
32
+
33
+ Same changes as in `@mui/x-data-grid@8.27.4`, plus:
34
+
35
+ - [DataGridPro] Use `getRowId` prop to calculate the tree data row update (#21544) @arminmeh
36
+
37
+ #### `@mui/x-data-grid-premium@8.27.4` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
38
+
39
+ Same changes as in `@mui/x-data-grid-pro@8.27.4`.
40
+
41
+ ### Charts
42
+
43
+ #### `@mui/x-charts@8.27.4`
44
+
45
+ - [charts] Deprecate `ChartDataProvider` in favour of `ChartsDataProvider` (#21549) @JCQuintas
46
+ - [charts] Rename `ChartContainer` to `ChartsContainer` (#21186) @JCQuintas
47
+ - [charts] Rename `ChartZoomSlider` to `ChartsZoomSlider` (#21572) @JCQuintas
48
+
49
+ #### `@mui/x-charts-pro@8.27.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
50
+
51
+ Same changes as in `@mui/x-charts@8.27.4`.
52
+
53
+ #### `@mui/x-charts-premium@8.27.4` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
54
+
55
+ Same changes as in `@mui/x-charts-pro@8.27.4`.
56
+
57
+ ### Core
58
+
59
+ - [code-infra] Add eslint rule to prevent `Math.random` in docs (#21505) (#21563) @JCQuintas
60
+ - [code-infra] V8 Dedupe (#21561) @JCQuintas
61
+ - [docs-infra] Apply Cookie Banner to v8.x Branch (#21448) @dav-is
62
+ - [code-infra] Setup checkout to do full clone for non master branches (#21624) @brijeshb42
63
+
64
+ ## 8.27.3
65
+
66
+ _Feb 25, 2026_
67
+
68
+ We'd like to extend a big thank you to the 4 contributors who made this release possible. Here are some highlights ✨:
69
+
70
+ - 🐞 Bugfixes
71
+ - ⚡️ Improved dynamic data support and cache invalidation in lazy loading for Data Grid Pro
72
+
73
+ The following team members contributed to this release:
74
+ @cherniavskii, @michelengelen, @MBilalShafi, @arminmeh
75
+
76
+ ### Data Grid
77
+
78
+ #### `@mui/x-data-grid@8.27.3`
79
+
80
+ - [DataGrid] Preserve key input during row edit when using `rowModesModel` (#21457) @michelengelen
81
+
82
+ #### `@mui/x-data-grid-pro@8.27.3` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
83
+
84
+ Same changes as in `@mui/x-data-grid@8.27.3`, plus:
85
+
86
+ - [DataGridPro] Improve dynamic data support and cache invalidation in lazy loading (#21465) @MBilalShafi
87
+
88
+ #### `@mui/x-data-grid-premium@8.27.3` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
89
+
90
+ Same changes as in `@mui/x-data-grid-pro@8.27.3`.
91
+
92
+ ### Core
93
+
94
+ - [code-infra] Do not append `x` to the last version for the compare API (#21422) @arminmeh
95
+ - [docs-infra] Fix current version detection logic (#21415) @cherniavskii
96
+
97
+ ## 8.27.2
98
+
99
+ _Feb 20, 2026_
100
+
101
+ We'd like to extend a big thank you to the 3 contributors who made this release possible. Here are some highlights ✨:
102
+
103
+ - 🐞 Bugfixes
104
+
105
+ ### Data Grid
106
+
107
+ #### `@mui/x-data-grid@8.27.2`
108
+
109
+ Internal changes.
110
+
111
+ #### `@mui/x-data-grid-pro@8.27.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
112
+
113
+ Same changes as in `@mui/x-data-grid@8.27.2`, plus:
114
+
115
+ - [DataGridPro] Fix number input visibility in header filters (#21345) @michelengelen
116
+
117
+ #### `@mui/x-data-grid-premium@8.27.2` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
118
+
119
+ Same changes as in `@mui/x-data-grid-pro@8.27.2`.
120
+
121
+ ### Date and Time Pickers
122
+
123
+ #### `@mui/x-date-pickers@8.27.2`
124
+
125
+ - [DatePicker] Add keyboard support for selecting day, month, and year (#21399) @michelengelen
126
+
127
+ #### `@mui/x-date-pickers-pro@8.27.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
128
+
129
+ Same changes as in `@mui/x-date-pickers@8.27.2`, plus:
130
+
131
+ - [DateRangePicker] Fix timezone update issue leading to `invalidRange` error (#21382) @michelengelen
132
+
133
+ ### Charts
134
+
135
+ #### `@mui/x-charts@8.27.2`
136
+
137
+ Internal changes.
138
+
139
+ #### `@mui/x-charts-pro@8.27.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
140
+
141
+ Same changes as in `@mui/x-charts@8.27.2`, plus:
142
+
143
+ - [charts-pro] Handle edge case in export image (#21206) @bernardobelchior
144
+
145
+ #### `@mui/x-charts-premium@8.27.2` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
146
+
147
+ Same changes as in `@mui/x-charts-pro@8.27.2`.
148
+
149
+ ### Tree View
150
+
151
+ #### `@mui/x-tree-view@8.27.2`
152
+
153
+ - [tree view] Focus item sibling on unmount instead of the 1st item (#21386) @flaviendelangle
154
+
155
+ #### `@mui/x-tree-view-pro@8.27.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
156
+
157
+ Same changes as in `@mui/x-tree-view@8.27.2`.
158
+
159
+ ### Codemod
160
+
161
+ #### `@mui/x-codemod@8.27.2`
162
+
163
+ Internal changes.
164
+
165
+ ### Core
166
+
167
+ - [code-infra] Only ignore `renovate[bot]` in changelog generation script (#21188) @bernardobelchior
168
+
169
+ ## v8.27.1
170
+
171
+ <!-- generated comparing v8.27.0..v8.x -->
172
+
173
+ _Feb 13, 2026_
174
+
175
+ We'd like to extend a big thank you to the 6 contributors who made this release possible. Here are some highlights ✨:
176
+
177
+ - 📝 CSS bundler support is no longer needed for the Data Grid
178
+ - 🐞 Bugfixes
179
+
180
+ Special thanks go out to these community members for their valuable contributions:
181
+ @sai6855
182
+
183
+ The following team members contributed to this release:
184
+ @arminmeh, @cherniavskii, @flaviendelangle, @mj12albert, @MBilalShafi
185
+
186
+ ### Data Grid
187
+
188
+ #### `@mui/x-data-grid@8.27.1`
189
+
190
+ - [DataGrid] Hide column menu icon when there are no items (#21303) @MBilalShafi
191
+ - [DataGrid] Migrate styled imports and remove `index.css` (#21176) @MBilalShafi
192
+ - [DataGrid] Optimize `GridRootStyles` overrides resolver (#21251) @sai6855
193
+
194
+ #### `@mui/x-data-grid-pro@8.27.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
195
+
196
+ Same changes as in `@mui/x-data-grid@8.27.1`, plus:
197
+
198
+ - [DataGridPro] Fix column pinning issue with `restoreState` (#21305) @MBilalShafi
199
+ - [DataGridPro] Fix lazy loading params for page with one row (#21238) @MBilalShafi
200
+ - [DataGridPro] Properly extract parent path (#21301) @arminmeh
201
+
202
+ #### `@mui/x-data-grid-premium@8.27.1` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
203
+
204
+ Same changes as in `@mui/x-data-grid-pro@8.27.1`, plus:
205
+
206
+ - [DataGridPremium] Fix aggregation display when `initialState` has both `sortModel` and `pinnedColumns` (#21152) @mj12albert
207
+
208
+ ### Tree View
209
+
210
+ #### `@mui/x-tree-view@8.27.1`
211
+
212
+ - [tree view] Fix `apiRef.current.setItemExpansion()` (#21095) @flaviendelangle
213
+
214
+ #### `@mui/x-tree-view-pro@8.27.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
215
+
216
+ Same changes as in `@mui/x-tree-view@8.27.1`.
217
+
218
+ ### Core
219
+
220
+ - [internal] Add CLI for translation using LLM (#21299) @cherniavskii
221
+
8
222
  ## v8.27.0
9
223
 
10
224
  _Feb 2, 2026_
@@ -1,35 +1,22 @@
1
- import * as React from 'react';
2
1
  import { type ChartSeriesType } from "../models/seriesType/config.js";
3
- import { type ChartDataProviderProps } from "../ChartDataProvider/index.js";
4
- import { type ChartsSurfaceProps } from "../ChartsSurface/index.js";
5
2
  import { type AllPluginSignatures } from "../internals/plugins/allPlugins.js";
6
3
  import { type ChartAnyPluginSignature } from "../internals/plugins/models/plugin.js";
7
- export type ChartContainerProps<SeriesType extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<SeriesType>> = Omit<ChartDataProviderProps<SeriesType, TSignatures>, 'children'> & ChartsSurfaceProps;
4
+ import { type ChartsContainerProps, type ChartsContainerSlotProps, type ChartsContainerSlots } from "../ChartsContainer/index.js";
8
5
  /**
9
- * It sets up the data providers as well as the `<svg>` for the chart.
10
- *
11
- * This is a combination of both the `ChartDataProvider` and `ChartsSurface` components.
12
- *
13
- * Demos:
14
- *
15
- * - [Composition](https://mui.com/x/api/charts/composition/)
16
- *
17
- * API:
18
- *
19
- * - [ChartContainer API](https://mui.com/x/api/charts/chart-container/)
20
- *
21
- * @example
22
- * ```jsx
23
- * <ChartContainer
24
- * series={[{ label: "Label", type: "bar", data: [10, 20] }]}
25
- * xAxis={[{ data: ["A", "B"], scaleType: "band", id: "x-axis" }]}
26
- * >
27
- * <BarPlot />
28
- * <ChartsXAxis axisId="x-axis" />
29
- * </ChartContainer>
30
- * ```
6
+ * @deprecated Use `ChartsContainerSlots` instead. We added S to the charts prefix to align with other components.
31
7
  */
32
- declare const ChartContainer: <TSeries extends ChartSeriesType>(props: ChartContainerProps<TSeries> & {
8
+ export type ChartContainerSlots = ChartsContainerSlots;
9
+ /**
10
+ * @deprecated Use `ChartsContainerSlotProps` instead. We added S to the charts prefix to align with other components.
11
+ */
12
+ export type ChartContainerSlotProps = ChartsContainerSlotProps;
13
+ /**
14
+ * @deprecated Use `ChartsContainerProps` instead. We added S to the charts prefix to align with other components.
15
+ */
16
+ export type ChartContainerProps<SeriesType extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<SeriesType>> = ChartsContainerProps<SeriesType, TSignatures>;
17
+ /**
18
+ * @deprecated Use `ChartsContainer` instead. We added S to the charts prefix to align with other components.
19
+ */
20
+ export declare const ChartContainer: <TSeries extends ChartSeriesType>(props: ChartsContainerProps<TSeries> & {
33
21
  ref?: React.ForwardedRef<SVGSVGElement>;
34
- }) => React.JSX.Element;
35
- export { ChartContainer };
22
+ }) => React.JSX.Element;