@mui/x-charts-premium 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 (76) hide show
  1. package/BarChartPremium/BarChartPremium.js +3 -3
  2. package/CHANGELOG.md +214 -0
  3. package/ChartContainerPremium/ChartContainerPremium.d.ts +17 -31
  4. package/ChartContainerPremium/ChartContainerPremium.js +15 -43
  5. package/ChartContainerPremium/useChartContainerPremiumProps.d.ts +10 -9
  6. package/ChartContainerPremium/useChartContainerPremiumProps.js +10 -27
  7. package/ChartDataProviderPremium/ChartDataProviderPremium.d.ts +18 -44
  8. package/ChartDataProviderPremium/ChartDataProviderPremium.js +21 -143
  9. package/ChartDataProviderPremium/useChartDataProviderPremiumProps.d.ts +7 -7
  10. package/ChartDataProviderPremium/useChartDataProviderPremiumProps.js +5 -18
  11. package/ChartsContainer/index.d.ts +1 -0
  12. package/ChartsContainer/index.js +16 -0
  13. package/ChartsContainerPremium/ChartsContainerPremium.d.ts +37 -0
  14. package/ChartsContainerPremium/ChartsContainerPremium.js +52 -0
  15. package/ChartsContainerPremium/index.d.ts +2 -0
  16. package/ChartsContainerPremium/index.js +17 -0
  17. package/ChartsContainerPremium/useChartsContainerPremiumProps.d.ts +9 -0
  18. package/ChartsContainerPremium/useChartsContainerPremiumProps.js +33 -0
  19. package/ChartsContainerPro/index.d.ts +1 -0
  20. package/ChartsContainerPro/index.js +16 -0
  21. package/ChartsDataProvider/index.d.ts +1 -0
  22. package/ChartsDataProvider/index.js +16 -0
  23. package/ChartsDataProviderPremium/ChartsDataProviderPremium.d.ts +49 -0
  24. package/ChartsDataProviderPremium/ChartsDataProviderPremium.js +153 -0
  25. package/ChartsDataProviderPremium/index.d.ts +2 -0
  26. package/ChartsDataProviderPremium/index.js +13 -0
  27. package/ChartsDataProviderPremium/useChartsDataProviderPremiumProps.d.ts +10 -0
  28. package/ChartsDataProviderPremium/useChartsDataProviderPremiumProps.js +25 -0
  29. package/ChartsDataProviderPro/index.d.ts +1 -0
  30. package/ChartsDataProviderPro/index.js +16 -0
  31. package/ChartsZoomSlider/index.d.ts +1 -0
  32. package/ChartsZoomSlider/index.js +16 -0
  33. package/context/useChartPremiumApiContext.d.ts +1 -1
  34. package/context/useChartPremiumApiContext.js +1 -1
  35. package/esm/BarChartPremium/BarChartPremium.js +3 -3
  36. package/esm/ChartContainerPremium/ChartContainerPremium.d.ts +17 -31
  37. package/esm/ChartContainerPremium/ChartContainerPremium.js +16 -42
  38. package/esm/ChartContainerPremium/useChartContainerPremiumProps.d.ts +10 -9
  39. package/esm/ChartContainerPremium/useChartContainerPremiumProps.js +10 -25
  40. package/esm/ChartDataProviderPremium/ChartDataProviderPremium.d.ts +18 -44
  41. package/esm/ChartDataProviderPremium/ChartDataProviderPremium.js +17 -143
  42. package/esm/ChartDataProviderPremium/useChartDataProviderPremiumProps.d.ts +7 -7
  43. package/esm/ChartDataProviderPremium/useChartDataProviderPremiumProps.js +6 -17
  44. package/esm/ChartsContainer/index.d.ts +1 -0
  45. package/esm/ChartsContainer/index.js +2 -0
  46. package/esm/ChartsContainerPremium/ChartsContainerPremium.d.ts +37 -0
  47. package/esm/ChartsContainerPremium/ChartsContainerPremium.js +46 -0
  48. package/esm/ChartsContainerPremium/index.d.ts +2 -0
  49. package/esm/ChartsContainerPremium/index.js +2 -0
  50. package/esm/ChartsContainerPremium/useChartsContainerPremiumProps.d.ts +9 -0
  51. package/esm/ChartsContainerPremium/useChartsContainerPremiumProps.js +27 -0
  52. package/esm/ChartsContainerPro/index.d.ts +1 -0
  53. package/esm/ChartsContainerPro/index.js +2 -0
  54. package/esm/ChartsDataProvider/index.d.ts +1 -0
  55. package/esm/ChartsDataProvider/index.js +2 -0
  56. package/esm/ChartsDataProviderPremium/ChartsDataProviderPremium.d.ts +49 -0
  57. package/esm/ChartsDataProviderPremium/ChartsDataProviderPremium.js +148 -0
  58. package/esm/ChartsDataProviderPremium/index.d.ts +2 -0
  59. package/esm/ChartsDataProviderPremium/index.js +2 -0
  60. package/esm/ChartsDataProviderPremium/useChartsDataProviderPremiumProps.d.ts +10 -0
  61. package/esm/ChartsDataProviderPremium/useChartsDataProviderPremiumProps.js +19 -0
  62. package/esm/ChartsDataProviderPro/index.d.ts +1 -0
  63. package/esm/ChartsDataProviderPro/index.js +2 -0
  64. package/esm/ChartsZoomSlider/index.d.ts +1 -0
  65. package/esm/ChartsZoomSlider/index.js +2 -0
  66. package/esm/context/useChartPremiumApiContext.d.ts +1 -1
  67. package/esm/context/useChartPremiumApiContext.js +1 -1
  68. package/esm/index.d.ts +7 -0
  69. package/esm/index.js +7 -1
  70. package/index.d.ts +7 -0
  71. package/index.js +69 -1
  72. package/package.json +5 -5
  73. /package/{ChartZoomSlider → ChartsZoomSlider}/internals/previews/RangeBarPreviewPlot.d.ts +0 -0
  74. /package/{ChartZoomSlider → ChartsZoomSlider}/internals/previews/RangeBarPreviewPlot.js +0 -0
  75. /package/esm/{ChartZoomSlider → ChartsZoomSlider}/internals/previews/RangeBarPreviewPlot.d.ts +0 -0
  76. /package/esm/{ChartZoomSlider → ChartsZoomSlider}/internals/previews/RangeBarPreviewPlot.js +0 -0
@@ -22,7 +22,7 @@ var _BarChart = require("@mui/x-charts/BarChart");
22
22
  var _ChartsOverlay = require("@mui/x-charts/ChartsOverlay");
23
23
  var _ChartsAxisHighlight = require("@mui/x-charts/ChartsAxisHighlight");
24
24
  var _ChartsAxis = require("@mui/x-charts/ChartsAxis");
25
- var _ChartZoomSlider = require("@mui/x-charts-pro/ChartZoomSlider");
25
+ var _ChartsZoomSlider = require("@mui/x-charts-pro/ChartsZoomSlider");
26
26
  var _ChartsBrushOverlay = require("@mui/x-charts/ChartsBrushOverlay");
27
27
  var _ChartsClipPath = require("@mui/x-charts/ChartsClipPath");
28
28
  var _internals = require("@mui/x-charts-pro/internals");
@@ -30,7 +30,7 @@ var _useBarChartPremiumProps = require("./useBarChartPremiumProps");
30
30
  var _BarChartPremium2 = require("./BarChartPremium.plugins");
31
31
  var _ChartDataProviderPremium = require("../ChartDataProviderPremium");
32
32
  var _RangeBarPlot = require("./RangeBar/RangeBarPlot");
33
- var _RangeBarPreviewPlot = require("../ChartZoomSlider/internals/previews/RangeBarPreviewPlot");
33
+ var _RangeBarPreviewPlot = require("../ChartsZoomSlider/internals/previews/RangeBarPreviewPlot");
34
34
  var _jsxRuntime = require("react/jsx-runtime");
35
35
  const _excluded = ["initialZoom", "zoomData", "onZoomChange", "apiRef", "showToolbar"];
36
36
  _internals.seriesPreviewPlotMap.set('rangeBar', _RangeBarPreviewPlot.RangeBarPreviewPlot);
@@ -89,7 +89,7 @@ const BarChartPremium = exports.BarChartPremium = /*#__PURE__*/React.forwardRef(
89
89
  children: [showToolbar ? /*#__PURE__*/(0, _jsxRuntime.jsx)(Toolbar, (0, _extends2.default)({}, props.slotProps?.toolbar)) : null, !props.hideLegend && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsLegend.ChartsLegend, (0, _extends2.default)({}, legendProps)), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_ChartsSurface.ChartsSurface, (0, _extends2.default)({}, chartsSurfaceProps, {
90
90
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsGrid.ChartsGrid, (0, _extends2.default)({}, gridProps)), /*#__PURE__*/(0, _jsxRuntime.jsxs)("g", (0, _extends2.default)({}, clipPathGroupProps, {
91
91
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_BarChart.BarPlot, (0, _extends2.default)({}, barPlotProps)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_RangeBarPlot.RangeBarPlot, (0, _extends2.default)({}, rangeBarPlotProps)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsOverlay.ChartsOverlay, (0, _extends2.default)({}, overlayProps)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsAxisHighlight.ChartsAxisHighlight, (0, _extends2.default)({}, axisHighlightProps))]
92
- })), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsAxis.ChartsAxis, (0, _extends2.default)({}, chartsAxisProps)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartZoomSlider.ChartZoomSlider, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsBrushOverlay.ChartsBrushOverlay, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsClipPath.ChartsClipPath, (0, _extends2.default)({}, clipPathProps)), children]
92
+ })), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsAxis.ChartsAxis, (0, _extends2.default)({}, chartsAxisProps)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsZoomSlider.ChartsZoomSlider, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsBrushOverlay.ChartsBrushOverlay, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsClipPath.ChartsClipPath, (0, _extends2.default)({}, clipPathProps)), children]
93
93
  })), !props.loading && /*#__PURE__*/(0, _jsxRuntime.jsx)(Tooltip, (0, _extends2.default)({}, props.slotProps?.tooltip))]
94
94
  }))
95
95
  }));
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,21 @@
1
- import * as React from 'react';
2
- import { type ChartsSurfaceProps } from '@mui/x-charts/ChartsSurface';
3
1
  import { type ChartAnyPluginSignature, type ChartSeriesType } from '@mui/x-charts/internals';
4
2
  import { type AllPluginSignatures } from "../internals/plugins/allPlugins.js";
5
- import { type ChartDataProviderPremiumProps } from "../ChartDataProviderPremium/index.js";
6
- export type ChartContainerPremiumProps<TSeries extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<TSeries>> = ChartDataProviderPremiumProps<TSeries, TSignatures> & ChartsSurfaceProps;
7
- type ChartContainerPremiumComponent = <TSeries extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<TSeries>>(props: ChartContainerPremiumProps<TSeries, TSignatures> & {
8
- ref?: React.ForwardedRef<SVGSVGElement>;
9
- }) => React.JSX.Element;
3
+ import { type ChartsContainerPremiumProps, type ChartsContainerPremiumSlotProps, type ChartsContainerPremiumSlots } from "../ChartsContainerPremium/index.js";
4
+ /**
5
+ * @deprecated Use `ChartsContainerPremiumSlots` instead. We added S to the charts prefix to align with other components.
6
+ */
7
+ export type ChartContainerPremiumSlots = ChartsContainerPremiumSlots;
8
+ /**
9
+ * @deprecated Use `ChartsContainerPremiumSlotProps` instead. We added S to the charts prefix to align with other components.
10
+ */
11
+ export type ChartContainerPremiumSlotProps = ChartsContainerPremiumSlotProps;
12
+ /**
13
+ * @deprecated Use `ChartsContainerPremiumProps` instead. We added S to the charts prefix to align with other components.
14
+ */
15
+ export type ChartContainerPremiumProps<TSeries extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<TSeries>> = ChartsContainerPremiumProps<TSeries, TSignatures>;
10
16
  /**
11
- * It sets up the data providers as well as the `<svg>` for the chart.
12
- *
13
- * This is a combination of both the `ChartDataProviderPremium` and `ChartsSurface` components.
14
- *
15
- * Demos:
16
- *
17
- * - [Composition](https://mui.com/x/api/charts/composition/)
18
- *
19
- * API:
20
- *
21
- * - [ChartContainer API](https://mui.com/x/api/charts/chart-container/)
22
- *
23
- * @example
24
- * ```jsx
25
- * <ChartContainerPremium
26
- * series={[{ label: "Label", type: "bar", data: [10, 20] }]}
27
- * xAxis={[{ data: ["A", "B"], scaleType: "band", id: "x-axis" }]}
28
- * >
29
- * <BarPlot />
30
- * <ChartsXAxis axisId="x-axis" />
31
- * </ChartContainerPremium>
32
- * ```
17
+ * @deprecated Use `ChartsContainerPremium` instead. We added S to the charts prefix to align with other components.
33
18
  */
34
- declare const ChartContainerPremium: ChartContainerPremiumComponent;
35
- export { ChartContainerPremium };
19
+ export declare const ChartContainerPremium: <TSeries extends ChartSeriesType = keyof import("@mui/x-charts/internals").ChartsSeriesConfig, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<TSeries>>(props: ChartsContainerPremiumProps<TSeries, TSignatures> & {
20
+ ref?: React.ForwardedRef<SVGSVGElement>;
21
+ }) => React.JSX.Element;
@@ -1,52 +1,24 @@
1
1
  "use strict";
2
2
  'use client';
3
3
 
4
- var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
5
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
6
4
  Object.defineProperty(exports, "__esModule", {
7
5
  value: true
8
6
  });
9
7
  exports.ChartContainerPremium = void 0;
10
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
- var React = _interopRequireWildcard(require("react"));
12
- var _ChartsSurface = require("@mui/x-charts/ChartsSurface");
13
- var _ChartDataProviderPremium = require("../ChartDataProviderPremium");
14
- var _useChartContainerPremiumProps = require("./useChartContainerPremiumProps");
15
- var _jsxRuntime = require("react/jsx-runtime");
8
+ var _ChartsContainerPremium = require("../ChartsContainerPremium");
16
9
  /**
17
- * It sets up the data providers as well as the `<svg>` for the chart.
18
- *
19
- * This is a combination of both the `ChartDataProviderPremium` and `ChartsSurface` components.
20
- *
21
- * Demos:
22
- *
23
- * - [Composition](https://mui.com/x/api/charts/composition/)
24
- *
25
- * API:
26
- *
27
- * - [ChartContainer API](https://mui.com/x/api/charts/chart-container/)
28
- *
29
- * @example
30
- * ```jsx
31
- * <ChartContainerPremium
32
- * series={[{ label: "Label", type: "bar", data: [10, 20] }]}
33
- * xAxis={[{ data: ["A", "B"], scaleType: "band", id: "x-axis" }]}
34
- * >
35
- * <BarPlot />
36
- * <ChartsXAxis axisId="x-axis" />
37
- * </ChartContainerPremium>
38
- * ```
10
+ * @deprecated Use `ChartsContainerPremiumSlots` instead. We added S to the charts prefix to align with other components.
39
11
  */
40
- const ChartContainerPremium = exports.ChartContainerPremium = /*#__PURE__*/React.forwardRef(function ChartContainerPremium(props, ref) {
41
- const {
42
- chartDataProviderPremiumProps,
43
- children,
44
- chartsSurfaceProps
45
- } = (0, _useChartContainerPremiumProps.useChartContainerPremiumProps)(props, ref);
46
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartDataProviderPremium.ChartDataProviderPremium, (0, _extends2.default)({}, chartDataProviderPremiumProps, {
47
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsSurface.ChartsSurface, (0, _extends2.default)({}, chartsSurfaceProps, {
48
- children: children
49
- }))
50
- }));
51
- });
52
- if (process.env.NODE_ENV !== "production") ChartContainerPremium.displayName = "ChartContainerPremium";
12
+
13
+ /**
14
+ * @deprecated Use `ChartsContainerPremiumSlotProps` instead. We added S to the charts prefix to align with other components.
15
+ */
16
+
17
+ /**
18
+ * @deprecated Use `ChartsContainerPremiumProps` instead. We added S to the charts prefix to align with other components.
19
+ */
20
+
21
+ /**
22
+ * @deprecated Use `ChartsContainerPremium` instead. We added S to the charts prefix to align with other components.
23
+ */
24
+ const ChartContainerPremium = exports.ChartContainerPremium = _ChartsContainerPremium.ChartsContainerPremium;
@@ -1,9 +1,10 @@
1
- import type * as React from 'react';
2
- import { type ChartAnyPluginSignature, type ChartSeriesType, type UseChartContainerPropsReturnValue } from '@mui/x-charts/internals';
3
- import { type ChartDataProviderProps } from '@mui/x-charts/ChartDataProvider';
4
- import { type AllPluginSignatures } from "../internals/plugins/allPlugins.js";
5
- import type { ChartContainerPremiumProps } from "./ChartContainerPremium.js";
6
- export type UseChartContainerPremiumPropsReturnValue<TSeries extends ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[]> = Pick<UseChartContainerPropsReturnValue<TSeries, TSignatures>, 'chartsSurfaceProps' | 'children'> & {
7
- chartDataProviderPremiumProps: ChartDataProviderProps<TSeries, TSignatures>;
8
- };
9
- export declare function useChartContainerPremiumProps<TSeries extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<TSeries>>(props: ChartContainerPremiumProps<TSeries, TSignatures>, ref: React.Ref<SVGSVGElement>): UseChartContainerPremiumPropsReturnValue<TSeries, TSignatures>;
1
+ import { type ChartAnyPluginSignature, type ChartSeriesType } from '@mui/x-charts/internals';
2
+ import { useChartsContainerPremiumProps, type UseChartsContainerPremiumPropsReturnValue } from "../ChartsContainerPremium/useChartsContainerPremiumProps.js";
3
+ /**
4
+ * @deprecated Use `UseChartsContainerPremiumPropsReturnValue` instead.
5
+ */
6
+ export type UseChartContainerPremiumPropsReturnValue<TSeries extends ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[]> = UseChartsContainerPremiumPropsReturnValue<TSeries, TSignatures>;
7
+ /**
8
+ * @deprecated Use `useChartsContainerPremiumProps` instead.
9
+ */
10
+ export declare const useChartContainerPremiumProps: typeof useChartsContainerPremiumProps;
@@ -1,33 +1,16 @@
1
1
  "use strict";
2
2
  'use client';
3
3
 
4
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
- exports.useChartContainerPremiumProps = useChartContainerPremiumProps;
9
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
10
- var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
11
- var _internals = require("@mui/x-charts-pro/internals");
12
- var _allPlugins = require("../internals/plugins/allPlugins");
13
- const _excluded = ["initialZoom", "zoomData", "onZoomChange", "zoomInteractionConfig", "plugins", "apiRef"];
14
- function useChartContainerPremiumProps(props, ref) {
15
- const _ref = props,
16
- {
17
- plugins
18
- } = _ref,
19
- baseProps = (0, _objectWithoutPropertiesLoose2.default)(_ref, _excluded);
20
- const {
21
- chartDataProviderProProps,
22
- chartsSurfaceProps,
23
- children
24
- } = (0, _internals.useChartContainerProProps)(baseProps, ref);
25
- const chartDataProviderPremiumProps = (0, _extends2.default)({}, chartDataProviderProProps, {
26
- plugins: plugins ?? _allPlugins.DEFAULT_PLUGINS
27
- });
28
- return {
29
- chartDataProviderPremiumProps,
30
- chartsSurfaceProps,
31
- children
32
- };
33
- }
7
+ exports.useChartContainerPremiumProps = void 0;
8
+ var _useChartsContainerPremiumProps = require("../ChartsContainerPremium/useChartsContainerPremiumProps");
9
+ /**
10
+ * @deprecated Use `UseChartsContainerPremiumPropsReturnValue` instead.
11
+ */
12
+
13
+ /**
14
+ * @deprecated Use `useChartsContainerPremiumProps` instead.
15
+ */
16
+ const useChartContainerPremiumProps = exports.useChartContainerPremiumProps = _useChartsContainerPremiumProps.useChartsContainerPremiumProps;
@@ -1,47 +1,21 @@
1
- import { type ChartSeriesType, type ChartAnyPluginSignature, type ChartProviderProps, type ChartSeriesConfig } from '@mui/x-charts/internals';
2
- import { type ChartsSlotPropsPro, type ChartsSlotsPro } from '@mui/x-charts-pro/internals';
3
- import { type ChartDataProviderProProps } from '@mui/x-charts-pro/ChartDataProviderPro';
1
+ import { type ChartSeriesType, type ChartAnyPluginSignature } from '@mui/x-charts/internals';
2
+ import { ChartsDataProviderPremium, type ChartsDataProviderPremiumProps, type ChartsDataProviderPremiumSlots, type ChartsDataProviderPremiumSlotProps } from "../ChartsDataProviderPremium/index.js";
3
+ import { defaultSeriesConfigPremium } from "../ChartsDataProviderPremium/ChartsDataProviderPremium.js";
4
4
  import { type AllPluginSignatures } from "../internals/plugins/allPlugins.js";
5
- export type ChartDataProviderPremiumProps<TSeries extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<TSeries>> = ChartDataProviderProProps<TSeries, TSignatures> & ChartProviderProps<TSeries, TSignatures>['pluginParams'] & {
6
- /**
7
- * Slots to customize charts' components.
8
- */
9
- slots?: Partial<ChartsSlotsPro>;
10
- /**
11
- * The props for the slots.
12
- */
13
- slotProps?: Partial<ChartsSlotPropsPro>;
14
- };
15
- export declare const defaultSeriesConfigPremium: ChartSeriesConfig<'bar' | 'rangeBar' | 'scatter' | 'line' | 'pie'>;
5
+ export { defaultSeriesConfigPremium };
16
6
  /**
17
- * Orchestrates the data providers for the chart components and hooks.
18
- *
19
- * Use this component if you have custom HTML components that need to access the chart data.
20
- *
21
- * Demos:
22
- *
23
- * - [Composition](https://mui.com/x/api/charts/composition/)
24
- *
25
- * API:
26
- *
27
- * - [ChartDataProviderPro API](https://mui.com/x/api/charts/chart-data-provider/)
28
- *
29
- * @example
30
- * ```jsx
31
- * <ChartDataProviderPro
32
- * series={[{ label: "Label", type: "bar", data: [10, 20] }]}
33
- * xAxis={[{ data: ["A", "B"], scaleType: "band", id: "x-axis" }]}
34
- * >
35
- * <ChartsSurface>
36
- * <BarPlot />
37
- * <ChartsXAxis axisId="x-axis" />
38
- * </ChartsSurface>
39
- * {'Custom Legend Component'}
40
- * </ChartDataProviderPro>
41
- * ```
7
+ * @deprecated Use `ChartsDataProviderPremiumSlots` instead. We added S to the charts prefix to align with other components.
42
8
  */
43
- declare function ChartDataProviderPremium<TSeries extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<TSeries>>(props: ChartDataProviderPremiumProps<TSeries, TSignatures>): import("react/jsx-runtime").JSX.Element;
44
- declare namespace ChartDataProviderPremium {
45
- var propTypes: any;
46
- }
47
- export { ChartDataProviderPremium };
9
+ export type ChartDataProviderPremiumSlots = ChartsDataProviderPremiumSlots;
10
+ /**
11
+ * @deprecated Use `ChartsDataProviderPremiumSlotProps` instead. We added S to the charts prefix to align with other components.
12
+ */
13
+ export type ChartDataProviderPremiumSlotProps = ChartsDataProviderPremiumSlotProps;
14
+ /**
15
+ * @deprecated Use `ChartsDataProviderPremiumProps` instead. We added S to the charts prefix to align with other components.
16
+ */
17
+ export type ChartDataProviderPremiumProps<TSeries extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<TSeries>> = ChartsDataProviderPremiumProps<TSeries, TSignatures>;
18
+ /**
19
+ * @deprecated Use `ChartsDataProviderPremium` instead. We added S to the charts prefix to align with other components.
20
+ */
21
+ export declare const ChartDataProviderPremium: typeof ChartsDataProviderPremium;