@mui/x-charts 8.26.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 (124) hide show
  1. package/CHANGELOG.md +314 -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/ChartsAxis/axisClasses.d.ts +2 -0
  11. package/ChartsContainer/ChartsContainer.d.ts +37 -0
  12. package/ChartsContainer/ChartsContainer.js +1702 -0
  13. package/ChartsContainer/index.d.ts +1 -0
  14. package/ChartsContainer/index.js +16 -0
  15. package/ChartsContainer/useChartsContainerProps.d.ts +15 -0
  16. package/ChartsContainer/useChartsContainerProps.js +104 -0
  17. package/ChartsDataProvider/ChartsDataProvider.d.ts +51 -0
  18. package/ChartsDataProvider/ChartsDataProvider.js +138 -0
  19. package/ChartsDataProvider/index.d.ts +1 -0
  20. package/ChartsDataProvider/index.js +16 -0
  21. package/ChartsDataProvider/useChartsDataProviderProps.d.ts +13 -0
  22. package/ChartsDataProvider/useChartsDataProviderProps.js +45 -0
  23. package/ChartsSurface/ChartsSurface.js +4 -0
  24. package/ChartsXAxis/ChartsXAxisImpl.js +1 -0
  25. package/ChartsYAxis/ChartsYAxisImpl.js +1 -0
  26. package/RadarChart/RadarChart.d.ts +1 -1
  27. package/RadarChart/useRadarChartProps.js +1 -1
  28. package/context/ChartProvider/ChartContext.d.ts +2 -3
  29. package/context/ChartProvider/ChartContext.js +3 -4
  30. package/context/ChartProvider/ChartProvider.d.ts +5 -8
  31. package/context/ChartProvider/ChartProvider.js +6 -41
  32. package/context/ChartProvider/ChartProvider.types.d.ts +14 -41
  33. package/context/ChartProvider/useChartContext.d.ts +4 -3
  34. package/context/ChartProvider/useChartContext.js +5 -11
  35. package/context/ChartsProvider/ChartsContext.d.ts +6 -0
  36. package/context/ChartsProvider/ChartsContext.js +14 -0
  37. package/context/ChartsProvider/ChartsProvider.d.ts +8 -0
  38. package/context/ChartsProvider/ChartsProvider.js +47 -0
  39. package/context/ChartsProvider/ChartsProvider.types.d.ts +40 -0
  40. package/context/ChartsProvider/ChartsProvider.types.js +5 -0
  41. package/context/ChartsProvider/index.d.ts +3 -0
  42. package/context/ChartsProvider/index.js +38 -0
  43. package/context/ChartsProvider/useChartsContext.d.ts +3 -0
  44. package/context/ChartsProvider/useChartsContext.js +18 -0
  45. package/context/ChartsSlotsContext.d.ts +1 -1
  46. package/context/ChartsSlotsContext.js +1 -1
  47. package/esm/ChartContainer/ChartContainer.d.ts +16 -29
  48. package/esm/ChartContainer/ChartContainer.js +15 -1690
  49. package/esm/ChartContainer/useChartContainerProps.d.ts +9 -10
  50. package/esm/ChartContainer/useChartContainerProps.js +10 -93
  51. package/esm/ChartDataProvider/ChartDataProvider.d.ts +15 -44
  52. package/esm/ChartDataProvider/ChartDataProvider.js +16 -128
  53. package/esm/ChartDataProvider/useChartDataProviderProps.d.ts +7 -10
  54. package/esm/ChartDataProvider/useChartDataProviderProps.js +6 -36
  55. package/esm/ChartsAxis/axisClasses.d.ts +2 -0
  56. package/esm/ChartsContainer/ChartsContainer.d.ts +37 -0
  57. package/esm/ChartsContainer/ChartsContainer.js +1696 -0
  58. package/esm/ChartsContainer/index.d.ts +1 -0
  59. package/esm/ChartsContainer/index.js +1 -0
  60. package/esm/ChartsContainer/useChartsContainerProps.d.ts +15 -0
  61. package/esm/ChartsContainer/useChartsContainerProps.js +97 -0
  62. package/esm/ChartsDataProvider/ChartsDataProvider.d.ts +51 -0
  63. package/esm/ChartsDataProvider/ChartsDataProvider.js +132 -0
  64. package/esm/ChartsDataProvider/index.d.ts +1 -0
  65. package/esm/ChartsDataProvider/index.js +1 -0
  66. package/esm/ChartsDataProvider/useChartsDataProviderProps.d.ts +13 -0
  67. package/esm/ChartsDataProvider/useChartsDataProviderProps.js +38 -0
  68. package/esm/ChartsSurface/ChartsSurface.js +4 -0
  69. package/esm/ChartsXAxis/ChartsXAxisImpl.js +1 -0
  70. package/esm/ChartsYAxis/ChartsYAxisImpl.js +1 -0
  71. package/esm/RadarChart/RadarChart.d.ts +1 -1
  72. package/esm/RadarChart/useRadarChartProps.js +1 -1
  73. package/esm/context/ChartProvider/ChartContext.d.ts +2 -3
  74. package/esm/context/ChartProvider/ChartContext.js +4 -3
  75. package/esm/context/ChartProvider/ChartProvider.d.ts +5 -8
  76. package/esm/context/ChartProvider/ChartProvider.js +5 -38
  77. package/esm/context/ChartProvider/ChartProvider.types.d.ts +14 -41
  78. package/esm/context/ChartProvider/useChartContext.d.ts +4 -3
  79. package/esm/context/ChartProvider/useChartContext.js +6 -9
  80. package/esm/context/ChartsProvider/ChartsContext.d.ts +6 -0
  81. package/esm/context/ChartsProvider/ChartsContext.js +8 -0
  82. package/esm/context/ChartsProvider/ChartsProvider.d.ts +8 -0
  83. package/esm/context/ChartsProvider/ChartsProvider.js +41 -0
  84. package/esm/context/ChartsProvider/ChartsProvider.types.d.ts +40 -0
  85. package/esm/context/ChartsProvider/ChartsProvider.types.js +1 -0
  86. package/esm/context/ChartsProvider/index.d.ts +3 -0
  87. package/esm/context/ChartsProvider/index.js +3 -0
  88. package/esm/context/ChartsProvider/useChartsContext.d.ts +3 -0
  89. package/esm/context/ChartsProvider/useChartsContext.js +11 -0
  90. package/esm/context/ChartsSlotsContext.d.ts +1 -1
  91. package/esm/context/ChartsSlotsContext.js +1 -1
  92. package/esm/index.d.ts +4 -1
  93. package/esm/index.js +3 -1
  94. package/esm/internals/index.d.ts +4 -0
  95. package/esm/internals/index.js +4 -0
  96. package/esm/internals/plugins/featurePlugins/useChartItemClick/index.d.ts +2 -0
  97. package/esm/internals/plugins/featurePlugins/useChartItemClick/index.js +1 -0
  98. package/esm/internals/plugins/featurePlugins/useChartItemClick/useChartItemClick.d.ts +3 -0
  99. package/esm/internals/plugins/featurePlugins/useChartItemClick/useChartItemClick.js +48 -0
  100. package/esm/internals/plugins/featurePlugins/useChartItemClick/useChartItemClick.types.d.ts +22 -0
  101. package/esm/internals/plugins/featurePlugins/useChartItemClick/useChartItemClick.types.js +1 -0
  102. package/esm/internals/plugins/models/seriesConfig/getItemAtPosition.types.d.ts +8 -0
  103. package/esm/internals/plugins/models/seriesConfig/getItemAtPosition.types.js +1 -0
  104. package/esm/internals/plugins/models/seriesConfig/seriesConfig.types.d.ts +10 -1
  105. package/esm/internals/store/useStore.js +1 -1
  106. package/esm/themeAugmentation/components.d.ts +4 -0
  107. package/esm/themeAugmentation/props.d.ts +4 -2
  108. package/index.d.ts +4 -1
  109. package/index.js +21 -1
  110. package/internals/index.d.ts +4 -0
  111. package/internals/index.js +48 -0
  112. package/internals/plugins/featurePlugins/useChartItemClick/index.d.ts +2 -0
  113. package/internals/plugins/featurePlugins/useChartItemClick/index.js +12 -0
  114. package/internals/plugins/featurePlugins/useChartItemClick/useChartItemClick.d.ts +3 -0
  115. package/internals/plugins/featurePlugins/useChartItemClick/useChartItemClick.js +54 -0
  116. package/internals/plugins/featurePlugins/useChartItemClick/useChartItemClick.types.d.ts +22 -0
  117. package/internals/plugins/featurePlugins/useChartItemClick/useChartItemClick.types.js +5 -0
  118. package/internals/plugins/models/seriesConfig/getItemAtPosition.types.d.ts +8 -0
  119. package/internals/plugins/models/seriesConfig/getItemAtPosition.types.js +5 -0
  120. package/internals/plugins/models/seriesConfig/seriesConfig.types.d.ts +10 -1
  121. package/internals/store/useStore.js +1 -1
  122. package/package.json +3 -3
  123. package/themeAugmentation/components.d.ts +4 -0
  124. package/themeAugmentation/props.d.ts +4 -2
@@ -1,18 +1,12 @@
1
1
  "use strict";
2
2
  'use client';
3
3
 
4
- var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports.useChartContext = void 0;
9
- var React = _interopRequireWildcard(require("react"));
10
- var _ChartContext = require("./ChartContext");
11
- const useChartContext = () => {
12
- const context = React.useContext(_ChartContext.ChartContext);
13
- if (context == null) {
14
- throw new Error(['MUI X Charts: Could not find the Chart context.', 'It looks like you rendered your component outside of a ChartDataProvider.', 'This can also happen if you are bundling multiple versions of the library.'].join('\n'));
15
- }
16
- return context;
17
- };
18
- exports.useChartContext = useChartContext;
8
+ var _useChartsContext = require("../ChartsProvider/useChartsContext");
9
+ /**
10
+ * @deprecated Use `useChartsContext` instead. We added S to the charts prefix to align with other components.
11
+ */
12
+ const useChartContext = exports.useChartContext = _useChartsContext.useChartsContext;
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ import type { ChartsContextValue } from "./ChartsProvider.types.js";
3
+ /**
4
+ * @ignore - internal component.
5
+ */
6
+ export declare const ChartsContext: React.Context<ChartsContextValue<any> | null>;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ 'use client';
3
+
4
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.ChartsContext = void 0;
9
+ var React = _interopRequireWildcard(require("react"));
10
+ /**
11
+ * @ignore - internal component.
12
+ */
13
+ const ChartsContext = exports.ChartsContext = /*#__PURE__*/React.createContext(null);
14
+ if (process.env.NODE_ENV !== "production") ChartsContext.displayName = "ChartsContext";
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ import type { ChartsProviderProps } from "./ChartsProvider.types.js";
3
+ import { type ChartAnyPluginSignature, type ChartSeriesConfig } from "../../internals/plugins/models/index.js";
4
+ import type { ChartSeriesType } from "../../models/seriesType/config.js";
5
+ import type { ChartCorePluginSignatures } from "../../internals/plugins/corePlugins/index.js";
6
+ export declare const defaultSeriesConfig: ChartSeriesConfig<'bar' | 'scatter' | 'line' | 'pie'>;
7
+ declare function ChartsProvider<TSeriesType extends ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = ChartCorePluginSignatures<TSeriesType>>(props: React.PropsWithChildren<ChartsProviderProps<TSeriesType, TSignatures>>): import("react/jsx-runtime").JSX.Element;
8
+ export { ChartsProvider };
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ 'use client';
3
+
4
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.ChartsProvider = ChartsProvider;
9
+ exports.defaultSeriesConfig = void 0;
10
+ var React = _interopRequireWildcard(require("react"));
11
+ var _useCharts = require("../../internals/store/useCharts");
12
+ var _ChartsContext = require("./ChartsContext");
13
+ var _useChartCartesianAxis = require("../../internals/plugins/featurePlugins/useChartCartesianAxis");
14
+ var _useChartTooltip = require("../../internals/plugins/featurePlugins/useChartTooltip");
15
+ var _useChartInteraction = require("../../internals/plugins/featurePlugins/useChartInteraction");
16
+ var _useChartZAxis = require("../../internals/plugins/featurePlugins/useChartZAxis");
17
+ var _useChartHighlight = require("../../internals/plugins/featurePlugins/useChartHighlight/useChartHighlight");
18
+ var _seriesConfig = require("../../BarChart/seriesConfig");
19
+ var _seriesConfig2 = require("../../LineChart/seriesConfig");
20
+ var _seriesConfig3 = require("../../PieChart/seriesConfig");
21
+ var _seriesConfig4 = require("../../ScatterChart/seriesConfig");
22
+ var _jsxRuntime = require("react/jsx-runtime");
23
+ const defaultSeriesConfig = exports.defaultSeriesConfig = {
24
+ bar: _seriesConfig.barSeriesConfig,
25
+ scatter: _seriesConfig4.scatterSeriesConfig,
26
+ line: _seriesConfig2.lineSeriesConfig,
27
+ pie: _seriesConfig3.pieSeriesConfig
28
+ };
29
+
30
+ // For consistency with the v7, the cartesian axes are set by default.
31
+ // To remove them, you can provide a `plugins` props.
32
+ const defaultPlugins = [_useChartZAxis.useChartZAxis, _useChartTooltip.useChartTooltip, _useChartInteraction.useChartInteraction, _useChartCartesianAxis.useChartCartesianAxis, _useChartHighlight.useChartHighlight];
33
+ function ChartsProvider(props) {
34
+ const {
35
+ children,
36
+ plugins = defaultPlugins,
37
+ pluginParams = {},
38
+ seriesConfig = defaultSeriesConfig
39
+ } = props;
40
+ const {
41
+ contextValue
42
+ } = (0, _useCharts.useCharts)(plugins, pluginParams, seriesConfig);
43
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsContext.ChartsContext.Provider, {
44
+ value: contextValue,
45
+ children: children
46
+ });
47
+ }
@@ -0,0 +1,40 @@
1
+ import { type Store } from '@mui/x-internals/store';
2
+ import type { ChartAnyPluginSignature, ChartInstance, ChartPublicAPI, ChartSeriesConfig, ChartState, ConvertSignaturesIntoPlugins, MergeSignaturesProperty } from "../../internals/plugins/models/index.js";
3
+ import type { ChartCorePluginSignatures } from "../../internals/plugins/corePlugins/index.js";
4
+ import type { UseChartBaseProps } from "../../internals/store/useCharts.types.js";
5
+ import type { ChartSeriesType } from "../../models/seriesType/config.js";
6
+ export type ChartsContextValue<TSignatures extends readonly ChartAnyPluginSignature[], TOptionalSignatures extends readonly ChartAnyPluginSignature[] = []> = {
7
+ /**
8
+ * And object with all the methods needed to interact with the chart.
9
+ */
10
+ instance: ChartInstance<TSignatures, TOptionalSignatures>;
11
+ /**
12
+ * A subset of the `instance` method that are exposed to the developers.
13
+ */
14
+ publicAPI: ChartPublicAPI<TSignatures, TOptionalSignatures>;
15
+ /**
16
+ * The internal state of the chart.
17
+ */
18
+ store: Store<ChartState<TSignatures, TOptionalSignatures>>;
19
+ /**
20
+ * The ref to the <svg />.
21
+ */
22
+ svgRef: React.RefObject<SVGSVGElement | null>;
23
+ /**
24
+ * The ref to the chart root element.
25
+ */
26
+ chartRootRef: React.RefObject<HTMLDivElement | null>;
27
+ };
28
+ export type ChartsPluginParams<TSeriesType extends ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[]> = UseChartBaseProps<TSignatures> & MergeSignaturesProperty<[...ChartCorePluginSignatures<TSeriesType>, ...TSignatures], 'params'>;
29
+ export interface ChartsProviderProps<TSeriesType extends ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[]> {
30
+ /**
31
+ * Array of plugins used to add features to the chart.
32
+ */
33
+ plugins?: ConvertSignaturesIntoPlugins<TSignatures>;
34
+ pluginParams?: ChartsPluginParams<TSeriesType, TSignatures>;
35
+ /**
36
+ * The configuration helpers used to compute attributes according to the series type.
37
+ * @ignore Unstable props for internal usage.
38
+ */
39
+ seriesConfig?: ChartSeriesConfig<TSeriesType>;
40
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -0,0 +1,3 @@
1
+ export * from "./ChartsProvider.js";
2
+ export * from "./ChartsProvider.types.js";
3
+ export * from "./useChartsContext.js";
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _ChartsProvider = require("./ChartsProvider");
7
+ Object.keys(_ChartsProvider).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _ChartsProvider[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _ChartsProvider[key];
14
+ }
15
+ });
16
+ });
17
+ var _ChartsProvider2 = require("./ChartsProvider.types");
18
+ Object.keys(_ChartsProvider2).forEach(function (key) {
19
+ if (key === "default" || key === "__esModule") return;
20
+ if (key in exports && exports[key] === _ChartsProvider2[key]) return;
21
+ Object.defineProperty(exports, key, {
22
+ enumerable: true,
23
+ get: function () {
24
+ return _ChartsProvider2[key];
25
+ }
26
+ });
27
+ });
28
+ var _useChartsContext = require("./useChartsContext");
29
+ Object.keys(_useChartsContext).forEach(function (key) {
30
+ if (key === "default" || key === "__esModule") return;
31
+ if (key in exports && exports[key] === _useChartsContext[key]) return;
32
+ Object.defineProperty(exports, key, {
33
+ enumerable: true,
34
+ get: function () {
35
+ return _useChartsContext[key];
36
+ }
37
+ });
38
+ });
@@ -0,0 +1,3 @@
1
+ import { type ChartAnyPluginSignature } from "../../internals/plugins/models/index.js";
2
+ import { type ChartsContextValue } from "./ChartsProvider.types.js";
3
+ export declare const useChartsContext: <TSignatures extends readonly ChartAnyPluginSignature[], TOptionalSignatures extends readonly ChartAnyPluginSignature[] = []>() => ChartsContextValue<TSignatures, TOptionalSignatures>;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ 'use client';
3
+
4
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.useChartsContext = void 0;
9
+ var React = _interopRequireWildcard(require("react"));
10
+ var _ChartsContext = require("./ChartsContext");
11
+ const useChartsContext = () => {
12
+ const context = React.useContext(_ChartsContext.ChartsContext);
13
+ if (context == null) {
14
+ throw new Error('MUI X Charts: Could not find the Charts context. ' + 'This happens when the component is rendered outside of a ChartsDataProvider or ChartsContainer parent component, ' + 'which means the required context is not available. ' + 'Wrap your component in a ChartsDataProvider or ChartsContainer. ' + 'This can also happen if you are bundling multiple versions of the library.');
15
+ }
16
+ return context;
17
+ };
18
+ exports.useChartsContext = useChartsContext;
@@ -7,7 +7,7 @@ export interface ChartsSlotsContextValue<T extends ChartsSlots & Record<keyof T,
7
7
  }
8
8
  export declare const ChartsSlotsContext: React.Context<ChartsSlotsContextValue<ChartsSlots> | null>;
9
9
  /**
10
- * Get the slots and slotProps from the nearest `ChartDataProvider` or `ChartDataProviderPro`.
10
+ * Get the slots and slotProps from the nearest `ChartsDataProvider` or `ChartsDataProviderPro`.
11
11
  * @returns {ChartsSlotsContextValue} The slots and slotProps from the context.
12
12
  */
13
13
  export declare function useChartsSlots<T extends ChartsSlots & Record<keyof T, React.ComponentType<any>> = ChartsSlots>(): ChartsSlotsContextValue<T>;
@@ -15,7 +15,7 @@ var _jsxRuntime = require("react/jsx-runtime");
15
15
  const ChartsSlotsContext = exports.ChartsSlotsContext = /*#__PURE__*/React.createContext(null);
16
16
 
17
17
  /**
18
- * Get the slots and slotProps from the nearest `ChartDataProvider` or `ChartDataProviderPro`.
18
+ * Get the slots and slotProps from the nearest `ChartsDataProvider` or `ChartsDataProviderPro`.
19
19
  * @returns {ChartsSlotsContextValue} The slots and slotProps from the context.
20
20
  */
21
21
  if (process.env.NODE_ENV !== "production") ChartsSlotsContext.displayName = "ChartsSlotsContext";
@@ -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;