@mui/x-charts-premium 8.27.2 → 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 +89 -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,95 @@
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
+
8
97
  ## 8.27.2
9
98
 
10
99
  _Feb 20, 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;
@@ -1,153 +1,31 @@
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.ChartDataProviderPremium = ChartDataProviderPremium;
9
- exports.defaultSeriesConfigPremium = void 0;
10
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
- var _propTypes = _interopRequireDefault(require("prop-types"));
12
- var _Watermark = require("@mui/x-license/Watermark");
13
- var _internals = require("@mui/x-charts/internals");
14
- var _ChartsLocalizationProvider = require("@mui/x-charts/ChartsLocalizationProvider");
15
- var _internals2 = require("@mui/x-charts-pro/internals");
16
- var _useLicenseVerifier = require("@mui/x-license/useLicenseVerifier");
17
- var _seriesConfig = require("../BarChartPremium/RangeBar/seriesConfig");
18
- var _allPlugins = require("../internals/plugins/allPlugins");
19
- var _useChartDataProviderPremiumProps = require("./useChartDataProviderPremiumProps");
20
- var _jsxRuntime = require("react/jsx-runtime");
21
- const releaseInfo = "MTc3MTU0NTYwMDAwMA==";
22
- const packageIdentifier = 'x-charts-premium';
23
- const defaultSeriesConfigPremium = exports.defaultSeriesConfigPremium = (0, _extends2.default)({}, _internals2.defaultSeriesConfigPro, {
24
- rangeBar: _seriesConfig.rangeBarSeriesConfig
7
+ exports.ChartDataProviderPremium = void 0;
8
+ Object.defineProperty(exports, "defaultSeriesConfigPremium", {
9
+ enumerable: true,
10
+ get: function () {
11
+ return _ChartsDataProviderPremium2.defaultSeriesConfigPremium;
12
+ }
25
13
  });
14
+ var _ChartsDataProviderPremium = require("../ChartsDataProviderPremium");
15
+ var _ChartsDataProviderPremium2 = require("../ChartsDataProviderPremium/ChartsDataProviderPremium");
16
+ /**
17
+ * @deprecated Use `ChartsDataProviderPremiumSlots` instead. We added S to the charts prefix to align with other components.
18
+ */
19
+
20
+ /**
21
+ * @deprecated Use `ChartsDataProviderPremiumSlotProps` instead. We added S to the charts prefix to align with other components.
22
+ */
23
+
24
+ /**
25
+ * @deprecated Use `ChartsDataProviderPremiumProps` instead. We added S to the charts prefix to align with other components.
26
+ */
26
27
 
27
28
  /**
28
- * Orchestrates the data providers for the chart components and hooks.
29
- *
30
- * Use this component if you have custom HTML components that need to access the chart data.
31
- *
32
- * Demos:
33
- *
34
- * - [Composition](https://mui.com/x/api/charts/composition/)
35
- *
36
- * API:
37
- *
38
- * - [ChartDataProviderPro API](https://mui.com/x/api/charts/chart-data-provider/)
39
- *
40
- * @example
41
- * ```jsx
42
- * <ChartDataProviderPro
43
- * series={[{ label: "Label", type: "bar", data: [10, 20] }]}
44
- * xAxis={[{ data: ["A", "B"], scaleType: "band", id: "x-axis" }]}
45
- * >
46
- * <ChartsSurface>
47
- * <BarPlot />
48
- * <ChartsXAxis axisId="x-axis" />
49
- * </ChartsSurface>
50
- * {'Custom Legend Component'}
51
- * </ChartDataProviderPro>
52
- * ```
29
+ * @deprecated Use `ChartsDataProviderPremium` instead. We added S to the charts prefix to align with other components.
53
30
  */
54
- function ChartDataProviderPremium(props) {
55
- const {
56
- children,
57
- localeText,
58
- chartProviderProps,
59
- slots,
60
- slotProps
61
- } = (0, _useChartDataProviderPremiumProps.useChartDataProviderPremiumProps)((0, _extends2.default)({}, props, {
62
- seriesConfig: props.seriesConfig ?? defaultSeriesConfigPremium,
63
- plugins: props.plugins ?? _allPlugins.DEFAULT_PLUGINS
64
- }));
65
- (0, _useLicenseVerifier.useLicenseVerifier)(packageIdentifier, releaseInfo);
66
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_internals.ChartProvider, (0, _extends2.default)({}, chartProviderProps, {
67
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsLocalizationProvider.ChartsLocalizationProvider, {
68
- localeText: localeText,
69
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_internals.ChartsSlotsProvider, {
70
- slots: slots,
71
- slotProps: slotProps,
72
- defaultSlots: _internals2.defaultSlotsMaterial,
73
- children: children
74
- })
75
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Watermark.Watermark, {
76
- packageName: packageIdentifier,
77
- releaseInfo: releaseInfo
78
- })]
79
- }));
80
- }
81
- process.env.NODE_ENV !== "production" ? ChartDataProviderPremium.propTypes = {
82
- // ----------------------------- Warning --------------------------------
83
- // | These PropTypes are generated from the TypeScript type definitions |
84
- // | To update them edit the TypeScript types and run "pnpm proptypes" |
85
- // ----------------------------------------------------------------------
86
- apiRef: _propTypes.default.shape({
87
- current: _propTypes.default.any
88
- }),
89
- /**
90
- * Color palette used to colorize multiple series.
91
- * @default rainbowSurgePalette
92
- */
93
- colors: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string), _propTypes.default.func]),
94
- /**
95
- * An array of objects that can be used to populate series and axes data using their `dataKey` property.
96
- */
97
- dataset: _propTypes.default.arrayOf(_propTypes.default.object),
98
- /**
99
- * Options to enable features planned for the next major.
100
- */
101
- experimentalFeatures: _propTypes.default.shape({
102
- preferStrictDomainInLineCharts: _propTypes.default.bool
103
- }),
104
- /**
105
- * The height of the chart in px. If not defined, it takes the height of the parent element.
106
- */
107
- height: _propTypes.default.number,
108
- /**
109
- * This prop is used to help implement the accessibility logic.
110
- * If you don't provide this prop. It falls back to a randomly generated id.
111
- */
112
- id: _propTypes.default.string,
113
- /**
114
- * Localized text for chart components.
115
- */
116
- localeText: _propTypes.default.object,
117
- /**
118
- * The margin between the SVG and the drawing area.
119
- * It's used for leaving some space for extra information such as the x- and y-axis or legend.
120
- *
121
- * Accepts a `number` to be used on all sides or an object with the optional properties: `top`, `bottom`, `left`, and `right`.
122
- */
123
- margin: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.shape({
124
- bottom: _propTypes.default.number,
125
- left: _propTypes.default.number,
126
- right: _propTypes.default.number,
127
- top: _propTypes.default.number
128
- })]),
129
- /**
130
- * The array of series to display.
131
- * Each type of series has its own specificity.
132
- * Please refer to the appropriate docs page to learn more about it.
133
- */
134
- series: _propTypes.default.arrayOf(_propTypes.default.object),
135
- /**
136
- * If `true`, animations are skipped.
137
- * If unset or `false`, the animations respects the user's `prefers-reduced-motion` setting.
138
- */
139
- skipAnimation: _propTypes.default.bool,
140
- /**
141
- * The props for the slots.
142
- */
143
- slotProps: _propTypes.default.object,
144
- /**
145
- * Slots to customize charts' components.
146
- */
147
- slots: _propTypes.default.object,
148
- theme: _propTypes.default.oneOf(['dark', 'light']),
149
- /**
150
- * The width of the chart in px. If not defined, it takes the width of the parent element.
151
- */
152
- width: _propTypes.default.number
153
- } : void 0;
31
+ const ChartDataProviderPremium = exports.ChartDataProviderPremium = _ChartsDataProviderPremium.ChartsDataProviderPremium;
@@ -1,10 +1,10 @@
1
- import { type ChartAnyPluginSignature, type ChartSeriesType } from '@mui/x-charts/internals';
2
- import type { ChartDataProviderPremiumProps } from "./ChartDataProviderPremium.js";
3
- import type { AllPluginSignatures } from "../internals/plugins/allPlugins.js";
4
- export declare const useChartDataProviderPremiumProps: <TSeries extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<TSeries>>(props: ChartDataProviderPremiumProps<TSeries, TSignatures>) => {
1
+ /**
2
+ * @deprecated Use `useChartsDataProviderPremiumProps` instead. We added S to the charts prefix to align with other components.
3
+ */
4
+ export declare const useChartDataProviderPremiumProps: <TSeries extends import("@mui/x-charts/internals").ChartSeriesType = keyof import("@mui/x-charts/internals").ChartsSeriesConfig, TSignatures extends readonly import("@mui/x-charts/internals").ChartAnyPluginSignature[] = import("../internals/plugins/allPlugins.js").AllPluginSignatures<TSeries>>(props: import("../index.js").ChartsDataProviderPremiumProps<TSeries, TSignatures>) => {
5
5
  children: import("react").ReactNode;
6
6
  localeText: Partial<import("@mui/x-charts/locales").ChartsLocaleText> | undefined;
7
- chartProviderProps: import("@mui/x-charts/internals").ChartProviderProps<TSeries, TSignatures>;
8
- slots: Partial<import("@mui/x-charts/internals").ChartsSlots> | undefined;
9
- slotProps: Partial<import("@mui/x-charts/internals").ChartsSlotProps> | undefined;
7
+ chartProviderProps: import("@mui/x-charts/internals").ChartsProviderProps<TSeries, TSignatures>;
8
+ slots: Partial<import("@mui/x-charts").ChartsDataProviderSlots> | undefined;
9
+ slotProps: Partial<import("@mui/x-charts").ChartsDataProviderSlotProps> | undefined;
10
10
  };
@@ -5,21 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.useChartDataProviderPremiumProps = void 0;
8
- var _internals = require("@mui/x-charts/internals");
9
- const useChartDataProviderPremiumProps = props => {
10
- const {
11
- chartProviderProps,
12
- localeText,
13
- slots,
14
- slotProps,
15
- children
16
- } = (0, _internals.useChartDataProviderProps)(props);
17
- return {
18
- children,
19
- localeText,
20
- chartProviderProps,
21
- slots,
22
- slotProps
23
- };
24
- };
25
- exports.useChartDataProviderPremiumProps = useChartDataProviderPremiumProps;
8
+ var _useChartsDataProviderPremiumProps = require("../ChartsDataProviderPremium/useChartsDataProviderPremiumProps");
9
+ /**
10
+ * @deprecated Use `useChartsDataProviderPremiumProps` instead. We added S to the charts prefix to align with other components.
11
+ */
12
+ const useChartDataProviderPremiumProps = exports.useChartDataProviderPremiumProps = _useChartsDataProviderPremiumProps.useChartsDataProviderPremiumProps;
@@ -0,0 +1 @@
1
+ export * from '@mui/x-charts/ChartsContainer';
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _ChartsContainer = require("@mui/x-charts/ChartsContainer");
7
+ Object.keys(_ChartsContainer).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _ChartsContainer[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _ChartsContainer[key];
14
+ }
15
+ });
16
+ });