@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
@@ -0,0 +1,37 @@
1
+ import * as React from 'react';
2
+ import { type ChartsSurfaceProps } from '@mui/x-charts/ChartsSurface';
3
+ import { type ChartAnyPluginSignature, type ChartSeriesType } from '@mui/x-charts/internals';
4
+ import { type AllPluginSignatures } from "../internals/plugins/allPlugins.js";
5
+ import { type ChartDataProviderPremiumProps } from "../ChartDataProviderPremium/index.js";
6
+ export interface ChartsContainerPremiumSlots {}
7
+ export interface ChartsContainerPremiumSlotProps {}
8
+ export type ChartsContainerPremiumProps<TSeries extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<TSeries>> = ChartDataProviderPremiumProps<TSeries, TSignatures> & ChartsSurfaceProps;
9
+ type ChartsContainerPremiumComponent = <TSeries extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<TSeries>>(props: ChartsContainerPremiumProps<TSeries, TSignatures> & {
10
+ ref?: React.ForwardedRef<SVGSVGElement>;
11
+ }) => React.JSX.Element;
12
+ /**
13
+ * It sets up the data providers as well as the `<svg>` for the chart.
14
+ *
15
+ * This is a combination of both the `ChartsDataProviderPremium` and `ChartsSurface` components.
16
+ *
17
+ * Demos:
18
+ *
19
+ * - [Composition](https://mui.com/x/api/charts/composition/)
20
+ *
21
+ * API:
22
+ *
23
+ * - [ChartsContainerPremium API](https://mui.com/x/api/charts/charts-container-premium/)
24
+ *
25
+ * @example
26
+ * ```jsx
27
+ * <ChartsContainerPremium
28
+ * series={[{ label: "Label", type: "bar", data: [10, 20] }]}
29
+ * xAxis={[{ data: ["A", "B"], scaleType: "band", id: "x-axis" }]}
30
+ * >
31
+ * <BarPlot />
32
+ * <ChartsXAxis axisId="x-axis" />
33
+ * </ChartsContainerPremium>
34
+ * ```
35
+ */
36
+ declare const ChartsContainerPremium: ChartsContainerPremiumComponent;
37
+ export { ChartsContainerPremium };
@@ -0,0 +1,46 @@
1
+ 'use client';
2
+
3
+ import _extends from "@babel/runtime/helpers/esm/extends";
4
+ import * as React from 'react';
5
+ import { ChartsSurface } from '@mui/x-charts/ChartsSurface';
6
+ import { ChartDataProviderPremium } from "../ChartDataProviderPremium/index.js";
7
+ import { useChartsContainerPremiumProps } from "./useChartsContainerPremiumProps.js";
8
+ import { jsx as _jsx } from "react/jsx-runtime";
9
+ /**
10
+ * It sets up the data providers as well as the `<svg>` for the chart.
11
+ *
12
+ * This is a combination of both the `ChartsDataProviderPremium` and `ChartsSurface` components.
13
+ *
14
+ * Demos:
15
+ *
16
+ * - [Composition](https://mui.com/x/api/charts/composition/)
17
+ *
18
+ * API:
19
+ *
20
+ * - [ChartsContainerPremium API](https://mui.com/x/api/charts/charts-container-premium/)
21
+ *
22
+ * @example
23
+ * ```jsx
24
+ * <ChartsContainerPremium
25
+ * series={[{ label: "Label", type: "bar", data: [10, 20] }]}
26
+ * xAxis={[{ data: ["A", "B"], scaleType: "band", id: "x-axis" }]}
27
+ * >
28
+ * <BarPlot />
29
+ * <ChartsXAxis axisId="x-axis" />
30
+ * </ChartsContainerPremium>
31
+ * ```
32
+ */
33
+ const ChartsContainerPremium = /*#__PURE__*/React.forwardRef(function ChartsContainerPremium(props, ref) {
34
+ const {
35
+ chartDataProviderPremiumProps,
36
+ children,
37
+ chartsSurfaceProps
38
+ } = useChartsContainerPremiumProps(props, ref);
39
+ return /*#__PURE__*/_jsx(ChartDataProviderPremium, _extends({}, chartDataProviderPremiumProps, {
40
+ children: /*#__PURE__*/_jsx(ChartsSurface, _extends({}, chartsSurfaceProps, {
41
+ children: children
42
+ }))
43
+ }));
44
+ });
45
+ if (process.env.NODE_ENV !== "production") ChartsContainerPremium.displayName = "ChartsContainerPremium";
46
+ export { ChartsContainerPremium };
@@ -0,0 +1,2 @@
1
+ import "../typeOverloads/index.js";
2
+ export * from "./ChartsContainerPremium.js";
@@ -0,0 +1,2 @@
1
+ import "../typeOverloads/index.js";
2
+ export * from "./ChartsContainerPremium.js";
@@ -0,0 +1,9 @@
1
+ import type * as React from 'react';
2
+ import { type ChartAnyPluginSignature, type ChartSeriesType, type UseChartsContainerPropsReturnValue } 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 { ChartsContainerPremiumProps } from "./ChartsContainerPremium.js";
6
+ export type UseChartsContainerPremiumPropsReturnValue<TSeries extends ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[]> = Pick<UseChartsContainerPropsReturnValue<TSeries, TSignatures>, 'chartsSurfaceProps' | 'children'> & {
7
+ chartDataProviderPremiumProps: ChartDataProviderProps<TSeries, TSignatures>;
8
+ };
9
+ export declare function useChartsContainerPremiumProps<TSeries extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<TSeries>>(props: ChartsContainerPremiumProps<TSeries, TSignatures>, ref: React.Ref<SVGSVGElement>): UseChartsContainerPremiumPropsReturnValue<TSeries, TSignatures>;
@@ -0,0 +1,27 @@
1
+ 'use client';
2
+
3
+ import _extends from "@babel/runtime/helpers/esm/extends";
4
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
5
+ const _excluded = ["initialZoom", "zoomData", "onZoomChange", "zoomInteractionConfig", "plugins", "apiRef"];
6
+ import { useChartsContainerProProps } from '@mui/x-charts-pro/internals';
7
+ import { DEFAULT_PLUGINS } from "../internals/plugins/allPlugins.js";
8
+ export function useChartsContainerPremiumProps(props, ref) {
9
+ const _ref = props,
10
+ {
11
+ plugins
12
+ } = _ref,
13
+ baseProps = _objectWithoutPropertiesLoose(_ref, _excluded);
14
+ const {
15
+ chartDataProviderProProps,
16
+ chartsSurfaceProps,
17
+ children
18
+ } = useChartsContainerProProps(baseProps, ref);
19
+ const chartDataProviderPremiumProps = _extends({}, chartDataProviderProProps, {
20
+ plugins: plugins ?? DEFAULT_PLUGINS
21
+ });
22
+ return {
23
+ chartDataProviderPremiumProps,
24
+ chartsSurfaceProps,
25
+ children
26
+ };
27
+ }
@@ -0,0 +1 @@
1
+ export * from '@mui/x-charts-pro/ChartsContainerPro';
@@ -0,0 +1,2 @@
1
+ // Re-export automatically generated, to customize, simply remove this line.
2
+ export * from '@mui/x-charts-pro/ChartsContainerPro';
@@ -0,0 +1 @@
1
+ export * from '@mui/x-charts/ChartsDataProvider';
@@ -0,0 +1,2 @@
1
+ // Re-export automatically generated, to customize, simply remove this line.
2
+ export * from '@mui/x-charts/ChartsDataProvider';
@@ -0,0 +1,49 @@
1
+ import { type ChartSeriesType, type ChartAnyPluginSignature, type ChartsProviderProps, type ChartSeriesConfig } from '@mui/x-charts/internals';
2
+ import { type ChartsSlotPropsPro, type ChartsSlotsPro } from '@mui/x-charts-pro/internals';
3
+ import { type ChartsDataProviderProProps } from '@mui/x-charts-pro/ChartsDataProviderPro';
4
+ import { type AllPluginSignatures } from "../internals/plugins/allPlugins.js";
5
+ export interface ChartsDataProviderPremiumSlots extends ChartsSlotsPro {}
6
+ export interface ChartsDataProviderPremiumSlotProps extends ChartsSlotPropsPro {}
7
+ export type ChartsDataProviderPremiumProps<TSeries extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<TSeries>> = ChartsDataProviderProProps<TSeries, TSignatures> & ChartsProviderProps<TSeries, TSignatures>['pluginParams'] & {
8
+ /**
9
+ * Slots to customize charts' components.
10
+ */
11
+ slots?: Partial<ChartsDataProviderPremiumSlots>;
12
+ /**
13
+ * The props for the slots.
14
+ */
15
+ slotProps?: Partial<ChartsDataProviderPremiumSlotProps>;
16
+ };
17
+ export declare const defaultSeriesConfigPremium: ChartSeriesConfig<'bar' | 'rangeBar' | 'scatter' | 'line' | 'pie'>;
18
+ /**
19
+ * Orchestrates the data providers for the chart components and hooks.
20
+ *
21
+ * Use this component if you have custom HTML components that need to access the chart data.
22
+ *
23
+ * Demos:
24
+ *
25
+ * - [Composition](https://mui.com/x/api/charts/composition/)
26
+ *
27
+ * API:
28
+ *
29
+ * - [ChartsDataProviderPremium API](https://mui.com/x/api/charts/charts-data-provider-premium/)
30
+ *
31
+ * @example
32
+ * ```jsx
33
+ * <ChartsDataProviderPremium
34
+ * series={[{ label: "Label", type: "bar", data: [10, 20] }]}
35
+ * xAxis={[{ data: ["A", "B"], scaleType: "band", id: "x-axis" }]}
36
+ * >
37
+ * <ChartsSurface>
38
+ * <BarPlot />
39
+ * <ChartsXAxis axisId="x-axis" />
40
+ * </ChartsSurface>
41
+ * {'Custom Legend Component'}
42
+ * </ChartsDataProviderPremium>
43
+ * ```
44
+ */
45
+ declare function ChartsDataProviderPremium<TSeries extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<TSeries>>(props: ChartsDataProviderPremiumProps<TSeries, TSignatures>): import("react/jsx-runtime").JSX.Element;
46
+ declare namespace ChartsDataProviderPremium {
47
+ var propTypes: any;
48
+ }
49
+ export { ChartsDataProviderPremium };
@@ -0,0 +1,148 @@
1
+ 'use client';
2
+
3
+ import _extends from "@babel/runtime/helpers/esm/extends";
4
+ import PropTypes from 'prop-types';
5
+ import { Watermark } from '@mui/x-license/Watermark';
6
+ import { ChartsProvider, ChartsSlotsProvider } from '@mui/x-charts/internals';
7
+ import { ChartsLocalizationProvider } from '@mui/x-charts/ChartsLocalizationProvider';
8
+ import { defaultSlotsMaterial } from '@mui/x-charts-pro/internals';
9
+ import { useLicenseVerifier } from '@mui/x-license/useLicenseVerifier';
10
+ import { defaultSeriesConfigPro } from '@mui/x-charts-pro/internals';
11
+ import { rangeBarSeriesConfig } from "../BarChartPremium/RangeBar/seriesConfig/index.js";
12
+ import { DEFAULT_PLUGINS } from "../internals/plugins/allPlugins.js";
13
+ import { useChartsDataProviderPremiumProps } from "./useChartsDataProviderPremiumProps.js";
14
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
15
+ const releaseInfo = "MTc3MjY2ODgwMDAwMA==";
16
+ const packageIdentifier = 'x-charts-premium';
17
+ export const defaultSeriesConfigPremium = _extends({}, defaultSeriesConfigPro, {
18
+ rangeBar: rangeBarSeriesConfig
19
+ });
20
+
21
+ /**
22
+ * Orchestrates the data providers for the chart components and hooks.
23
+ *
24
+ * Use this component if you have custom HTML components that need to access the chart data.
25
+ *
26
+ * Demos:
27
+ *
28
+ * - [Composition](https://mui.com/x/api/charts/composition/)
29
+ *
30
+ * API:
31
+ *
32
+ * - [ChartsDataProviderPremium API](https://mui.com/x/api/charts/charts-data-provider-premium/)
33
+ *
34
+ * @example
35
+ * ```jsx
36
+ * <ChartsDataProviderPremium
37
+ * series={[{ label: "Label", type: "bar", data: [10, 20] }]}
38
+ * xAxis={[{ data: ["A", "B"], scaleType: "band", id: "x-axis" }]}
39
+ * >
40
+ * <ChartsSurface>
41
+ * <BarPlot />
42
+ * <ChartsXAxis axisId="x-axis" />
43
+ * </ChartsSurface>
44
+ * {'Custom Legend Component'}
45
+ * </ChartsDataProviderPremium>
46
+ * ```
47
+ */
48
+ function ChartsDataProviderPremium(props) {
49
+ const {
50
+ children,
51
+ localeText,
52
+ chartProviderProps,
53
+ slots,
54
+ slotProps
55
+ } = useChartsDataProviderPremiumProps(_extends({}, props, {
56
+ seriesConfig: props.seriesConfig ?? defaultSeriesConfigPremium,
57
+ plugins: props.plugins ?? DEFAULT_PLUGINS
58
+ }));
59
+ useLicenseVerifier(packageIdentifier, releaseInfo);
60
+ return /*#__PURE__*/_jsxs(ChartsProvider, _extends({}, chartProviderProps, {
61
+ children: [/*#__PURE__*/_jsx(ChartsLocalizationProvider, {
62
+ localeText: localeText,
63
+ children: /*#__PURE__*/_jsx(ChartsSlotsProvider, {
64
+ slots: slots,
65
+ slotProps: slotProps,
66
+ defaultSlots: defaultSlotsMaterial,
67
+ children: children
68
+ })
69
+ }), /*#__PURE__*/_jsx(Watermark, {
70
+ packageName: packageIdentifier,
71
+ releaseInfo: releaseInfo
72
+ })]
73
+ }));
74
+ }
75
+ process.env.NODE_ENV !== "production" ? ChartsDataProviderPremium.propTypes = {
76
+ // ----------------------------- Warning --------------------------------
77
+ // | These PropTypes are generated from the TypeScript type definitions |
78
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
79
+ // ----------------------------------------------------------------------
80
+ apiRef: PropTypes.shape({
81
+ current: PropTypes.any
82
+ }),
83
+ /**
84
+ * Color palette used to colorize multiple series.
85
+ * @default rainbowSurgePalette
86
+ */
87
+ colors: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string), PropTypes.func]),
88
+ /**
89
+ * An array of objects that can be used to populate series and axes data using their `dataKey` property.
90
+ */
91
+ dataset: PropTypes.arrayOf(PropTypes.object),
92
+ /**
93
+ * Options to enable features planned for the next major.
94
+ */
95
+ experimentalFeatures: PropTypes.shape({
96
+ preferStrictDomainInLineCharts: PropTypes.bool
97
+ }),
98
+ /**
99
+ * The height of the chart in px. If not defined, it takes the height of the parent element.
100
+ */
101
+ height: PropTypes.number,
102
+ /**
103
+ * This prop is used to help implement the accessibility logic.
104
+ * If you don't provide this prop. It falls back to a randomly generated id.
105
+ */
106
+ id: PropTypes.string,
107
+ /**
108
+ * Localized text for chart components.
109
+ */
110
+ localeText: PropTypes.object,
111
+ /**
112
+ * The margin between the SVG and the drawing area.
113
+ * It's used for leaving some space for extra information such as the x- and y-axis or legend.
114
+ *
115
+ * Accepts a `number` to be used on all sides or an object with the optional properties: `top`, `bottom`, `left`, and `right`.
116
+ */
117
+ margin: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
118
+ bottom: PropTypes.number,
119
+ left: PropTypes.number,
120
+ right: PropTypes.number,
121
+ top: PropTypes.number
122
+ })]),
123
+ /**
124
+ * The array of series to display.
125
+ * Each type of series has its own specificity.
126
+ * Please refer to the appropriate docs page to learn more about it.
127
+ */
128
+ series: PropTypes.arrayOf(PropTypes.object),
129
+ /**
130
+ * If `true`, animations are skipped.
131
+ * If unset or `false`, the animations respects the user's `prefers-reduced-motion` setting.
132
+ */
133
+ skipAnimation: PropTypes.bool,
134
+ /**
135
+ * The props for the slots.
136
+ */
137
+ slotProps: PropTypes.object,
138
+ /**
139
+ * Slots to customize charts' components.
140
+ */
141
+ slots: PropTypes.object,
142
+ theme: PropTypes.oneOf(['dark', 'light']),
143
+ /**
144
+ * The width of the chart in px. If not defined, it takes the width of the parent element.
145
+ */
146
+ width: PropTypes.number
147
+ } : void 0;
148
+ export { ChartsDataProviderPremium };
@@ -0,0 +1,2 @@
1
+ import "../typeOverloads/index.js";
2
+ export { ChartsDataProviderPremium, type ChartsDataProviderPremiumProps, type ChartsDataProviderPremiumSlots, type ChartsDataProviderPremiumSlotProps } from "./ChartsDataProviderPremium.js";
@@ -0,0 +1,2 @@
1
+ import "../typeOverloads/index.js";
2
+ export { ChartsDataProviderPremium } from "./ChartsDataProviderPremium.js";
@@ -0,0 +1,10 @@
1
+ import { type ChartAnyPluginSignature, type ChartSeriesType } from '@mui/x-charts/internals';
2
+ import type { ChartsDataProviderPremiumProps } from "./ChartsDataProviderPremium.js";
3
+ import type { AllPluginSignatures } from "../internals/plugins/allPlugins.js";
4
+ export declare const useChartsDataProviderPremiumProps: <TSeries extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<TSeries>>(props: ChartsDataProviderPremiumProps<TSeries, TSignatures>) => {
5
+ children: import("react").ReactNode;
6
+ localeText: Partial<import("@mui/x-charts/locales").ChartsLocaleText> | 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
+ };
@@ -0,0 +1,19 @@
1
+ 'use client';
2
+
3
+ import { useChartsDataProviderProps } from '@mui/x-charts/internals';
4
+ export const useChartsDataProviderPremiumProps = props => {
5
+ const {
6
+ chartProviderProps,
7
+ localeText,
8
+ slots,
9
+ slotProps,
10
+ children
11
+ } = useChartsDataProviderProps(props);
12
+ return {
13
+ children,
14
+ localeText,
15
+ chartProviderProps,
16
+ slots,
17
+ slotProps
18
+ };
19
+ };
@@ -0,0 +1 @@
1
+ export * from '@mui/x-charts-pro/ChartsDataProviderPro';
@@ -0,0 +1,2 @@
1
+ // Re-export automatically generated, to customize, simply remove this line.
2
+ export * from '@mui/x-charts-pro/ChartsDataProviderPro';
@@ -0,0 +1 @@
1
+ export * from '@mui/x-charts-pro/ChartsZoomSlider';
@@ -0,0 +1,2 @@
1
+ // Re-export automatically generated, to customize, simply remove this line.
2
+ export * from '@mui/x-charts-pro/ChartsZoomSlider';
@@ -1,7 +1,7 @@
1
1
  import { type ChartPremiumApi } from "./ChartPremiumApi.js";
2
2
  /**
3
3
  * The `useChartPremiumApiContext` hook provides access to the chart API.
4
- * This is only available when the chart is rendered within a chart or a `ChartDataProviderPremium` component.
4
+ * This is only available when the chart is rendered within a chart or a `ChartsDataProviderPremium` component.
5
5
  * If you want to access the chart API outside those components, you should use the `apiRef` prop instead.
6
6
  * @example
7
7
  * const apiRef = useChartPremiumApiContext<ChartPremiumApi<'bar'>>();
@@ -1,7 +1,7 @@
1
1
  import { useChartApiContext as useChartApiContextCommunity } from '@mui/x-charts/context';
2
2
  /**
3
3
  * The `useChartPremiumApiContext` hook provides access to the chart API.
4
- * This is only available when the chart is rendered within a chart or a `ChartDataProviderPremium` component.
4
+ * This is only available when the chart is rendered within a chart or a `ChartsDataProviderPremium` component.
5
5
  * If you want to access the chart API outside those components, you should use the `apiRef` prop instead.
6
6
  * @example
7
7
  * const apiRef = useChartPremiumApiContext<ChartPremiumApi<'bar'>>();
package/esm/index.d.ts CHANGED
@@ -19,11 +19,15 @@ export * from '@mui/x-charts/SparkLineChart';
19
19
  export * from '@mui/x-charts/Gauge';
20
20
  export * from '@mui/x-charts/RadarChart';
21
21
  export * from '@mui/x-charts/ChartsSurface';
22
+ export * from '@mui/x-charts/ChartsDataProvider';
22
23
  export * from '@mui/x-charts/ChartDataProvider';
23
24
  export * from '@mui/x-charts/ChartsLabel';
24
25
  export * from '@mui/x-charts-pro/Heatmap';
26
+ export { ChartsContainerPro } from '@mui/x-charts-pro/ChartsContainerPro';
27
+ export type { ChartsContainerProProps } from '@mui/x-charts-pro/ChartsContainerPro';
25
28
  export { ChartContainerPro } from '@mui/x-charts-pro/ChartContainerPro';
26
29
  export type { ChartContainerProProps } from '@mui/x-charts-pro/ChartContainerPro';
30
+ export * from '@mui/x-charts-pro/ChartsDataProviderPro';
27
31
  export * from '@mui/x-charts-pro/ChartDataProviderPro';
28
32
  export * from '@mui/x-charts-pro/ScatterChartPro';
29
33
  export * from '@mui/x-charts-pro/BarChartPro';
@@ -31,6 +35,7 @@ export * from '@mui/x-charts-pro/LineChartPro';
31
35
  export * from '@mui/x-charts-pro/PieChartPro';
32
36
  export * from '@mui/x-charts-pro/FunnelChart';
33
37
  export * from '@mui/x-charts-pro/RadarChartPro';
38
+ export * from '@mui/x-charts-pro/ChartsZoomSlider';
34
39
  export * from '@mui/x-charts-pro/ChartZoomSlider';
35
40
  export * from '@mui/x-charts-pro/ChartsToolbarPro';
36
41
  export * from "./colorPalettes/index.js";
@@ -40,6 +45,8 @@ export * from "./context/index.js";
40
45
  export * from "./models/index.js";
41
46
  export * from "./plugins/index.js";
42
47
  export * from "./ChartsRenderer/index.js";
48
+ export * from "./ChartsDataProviderPremium/index.js";
43
49
  export * from "./ChartDataProviderPremium/index.js";
50
+ export * from "./ChartsContainerPremium/index.js";
44
51
  export * from "./ChartContainerPremium/index.js";
45
52
  export * from "./BarChartPremium/index.js";
package/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-charts-premium v8.27.0
2
+ * @mui/x-charts-premium v8.27.4
3
3
  *
4
4
  * @license SEE LICENSE IN LICENSE
5
5
  * This source code is licensed under the SEE LICENSE IN LICENSE license found in the
@@ -28,12 +28,15 @@ export * from '@mui/x-charts/SparkLineChart';
28
28
  export * from '@mui/x-charts/Gauge';
29
29
  export * from '@mui/x-charts/RadarChart';
30
30
  export * from '@mui/x-charts/ChartsSurface';
31
+ export * from '@mui/x-charts/ChartsDataProvider';
31
32
  export * from '@mui/x-charts/ChartDataProvider';
32
33
  export * from '@mui/x-charts/ChartsLabel';
33
34
 
34
35
  // Pro components
35
36
  export * from '@mui/x-charts-pro/Heatmap';
37
+ export { ChartsContainerPro } from '@mui/x-charts-pro/ChartsContainerPro';
36
38
  export { ChartContainerPro } from '@mui/x-charts-pro/ChartContainerPro';
39
+ export * from '@mui/x-charts-pro/ChartsDataProviderPro';
37
40
  export * from '@mui/x-charts-pro/ChartDataProviderPro';
38
41
  export * from '@mui/x-charts-pro/ScatterChartPro';
39
42
  export * from '@mui/x-charts-pro/BarChartPro';
@@ -41,6 +44,7 @@ export * from '@mui/x-charts-pro/LineChartPro';
41
44
  export * from '@mui/x-charts-pro/PieChartPro';
42
45
  export * from '@mui/x-charts-pro/FunnelChart';
43
46
  export * from '@mui/x-charts-pro/RadarChartPro';
47
+ export * from '@mui/x-charts-pro/ChartsZoomSlider';
44
48
  export * from '@mui/x-charts-pro/ChartZoomSlider';
45
49
  export * from '@mui/x-charts-pro/ChartsToolbarPro';
46
50
 
@@ -56,6 +60,8 @@ export * from "./plugins/index.js";
56
60
 
57
61
  // Premium components
58
62
  export * from "./ChartsRenderer/index.js";
63
+ export * from "./ChartsDataProviderPremium/index.js";
59
64
  export * from "./ChartDataProviderPremium/index.js";
65
+ export * from "./ChartsContainerPremium/index.js";
60
66
  export * from "./ChartContainerPremium/index.js";
61
67
  export * from "./BarChartPremium/index.js";
package/index.d.ts CHANGED
@@ -19,11 +19,15 @@ export * from '@mui/x-charts/SparkLineChart';
19
19
  export * from '@mui/x-charts/Gauge';
20
20
  export * from '@mui/x-charts/RadarChart';
21
21
  export * from '@mui/x-charts/ChartsSurface';
22
+ export * from '@mui/x-charts/ChartsDataProvider';
22
23
  export * from '@mui/x-charts/ChartDataProvider';
23
24
  export * from '@mui/x-charts/ChartsLabel';
24
25
  export * from '@mui/x-charts-pro/Heatmap';
26
+ export { ChartsContainerPro } from '@mui/x-charts-pro/ChartsContainerPro';
27
+ export type { ChartsContainerProProps } from '@mui/x-charts-pro/ChartsContainerPro';
25
28
  export { ChartContainerPro } from '@mui/x-charts-pro/ChartContainerPro';
26
29
  export type { ChartContainerProProps } from '@mui/x-charts-pro/ChartContainerPro';
30
+ export * from '@mui/x-charts-pro/ChartsDataProviderPro';
27
31
  export * from '@mui/x-charts-pro/ChartDataProviderPro';
28
32
  export * from '@mui/x-charts-pro/ScatterChartPro';
29
33
  export * from '@mui/x-charts-pro/BarChartPro';
@@ -31,6 +35,7 @@ export * from '@mui/x-charts-pro/LineChartPro';
31
35
  export * from '@mui/x-charts-pro/PieChartPro';
32
36
  export * from '@mui/x-charts-pro/FunnelChart';
33
37
  export * from '@mui/x-charts-pro/RadarChartPro';
38
+ export * from '@mui/x-charts-pro/ChartsZoomSlider';
34
39
  export * from '@mui/x-charts-pro/ChartZoomSlider';
35
40
  export * from '@mui/x-charts-pro/ChartsToolbarPro';
36
41
  export * from "./colorPalettes/index.js";
@@ -40,6 +45,8 @@ export * from "./context/index.js";
40
45
  export * from "./models/index.js";
41
46
  export * from "./plugins/index.js";
42
47
  export * from "./ChartsRenderer/index.js";
48
+ export * from "./ChartsDataProviderPremium/index.js";
43
49
  export * from "./ChartDataProviderPremium/index.js";
50
+ export * from "./ChartsContainerPremium/index.js";
44
51
  export * from "./ChartContainerPremium/index.js";
45
52
  export * from "./BarChartPremium/index.js";
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-charts-premium v8.27.0
2
+ * @mui/x-charts-premium v8.27.4
3
3
  *
4
4
  * @license SEE LICENSE IN LICENSE
5
5
  * This source code is licensed under the SEE LICENSE IN LICENSE license found in the
@@ -11,6 +11,7 @@ Object.defineProperty(exports, "__esModule", {
11
11
  value: true
12
12
  });
13
13
  var _exportNames = {
14
+ ChartsContainerPro: true,
14
15
  ChartContainerPro: true
15
16
  };
16
17
  Object.defineProperty(exports, "ChartContainerPro", {
@@ -19,6 +20,12 @@ Object.defineProperty(exports, "ChartContainerPro", {
19
20
  return _ChartContainerPro.ChartContainerPro;
20
21
  }
21
22
  });
23
+ Object.defineProperty(exports, "ChartsContainerPro", {
24
+ enumerable: true,
25
+ get: function () {
26
+ return _ChartsContainerPro.ChartsContainerPro;
27
+ }
28
+ });
22
29
  require("@mui/x-charts-pro/typeOverloads");
23
30
  require("./typeOverloads/modules");
24
31
  var _ChartsClipPath = require("@mui/x-charts/ChartsClipPath");
@@ -249,6 +256,18 @@ Object.keys(_ChartsSurface).forEach(function (key) {
249
256
  }
250
257
  });
251
258
  });
259
+ var _ChartsDataProvider = require("@mui/x-charts/ChartsDataProvider");
260
+ Object.keys(_ChartsDataProvider).forEach(function (key) {
261
+ if (key === "default" || key === "__esModule") return;
262
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
263
+ if (key in exports && exports[key] === _ChartsDataProvider[key]) return;
264
+ Object.defineProperty(exports, key, {
265
+ enumerable: true,
266
+ get: function () {
267
+ return _ChartsDataProvider[key];
268
+ }
269
+ });
270
+ });
252
271
  var _ChartDataProvider = require("@mui/x-charts/ChartDataProvider");
253
272
  Object.keys(_ChartDataProvider).forEach(function (key) {
254
273
  if (key === "default" || key === "__esModule") return;
@@ -285,7 +304,20 @@ Object.keys(_Heatmap).forEach(function (key) {
285
304
  }
286
305
  });
287
306
  });
307
+ var _ChartsContainerPro = require("@mui/x-charts-pro/ChartsContainerPro");
288
308
  var _ChartContainerPro = require("@mui/x-charts-pro/ChartContainerPro");
309
+ var _ChartsDataProviderPro = require("@mui/x-charts-pro/ChartsDataProviderPro");
310
+ Object.keys(_ChartsDataProviderPro).forEach(function (key) {
311
+ if (key === "default" || key === "__esModule") return;
312
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
313
+ if (key in exports && exports[key] === _ChartsDataProviderPro[key]) return;
314
+ Object.defineProperty(exports, key, {
315
+ enumerable: true,
316
+ get: function () {
317
+ return _ChartsDataProviderPro[key];
318
+ }
319
+ });
320
+ });
289
321
  var _ChartDataProviderPro = require("@mui/x-charts-pro/ChartDataProviderPro");
290
322
  Object.keys(_ChartDataProviderPro).forEach(function (key) {
291
323
  if (key === "default" || key === "__esModule") return;
@@ -370,6 +402,18 @@ Object.keys(_RadarChartPro).forEach(function (key) {
370
402
  }
371
403
  });
372
404
  });
405
+ var _ChartsZoomSlider = require("@mui/x-charts-pro/ChartsZoomSlider");
406
+ Object.keys(_ChartsZoomSlider).forEach(function (key) {
407
+ if (key === "default" || key === "__esModule") return;
408
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
409
+ if (key in exports && exports[key] === _ChartsZoomSlider[key]) return;
410
+ Object.defineProperty(exports, key, {
411
+ enumerable: true,
412
+ get: function () {
413
+ return _ChartsZoomSlider[key];
414
+ }
415
+ });
416
+ });
373
417
  var _ChartZoomSlider = require("@mui/x-charts-pro/ChartZoomSlider");
374
418
  Object.keys(_ChartZoomSlider).forEach(function (key) {
375
419
  if (key === "default" || key === "__esModule") return;
@@ -478,6 +522,18 @@ Object.keys(_ChartsRenderer).forEach(function (key) {
478
522
  }
479
523
  });
480
524
  });
525
+ var _ChartsDataProviderPremium = require("./ChartsDataProviderPremium");
526
+ Object.keys(_ChartsDataProviderPremium).forEach(function (key) {
527
+ if (key === "default" || key === "__esModule") return;
528
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
529
+ if (key in exports && exports[key] === _ChartsDataProviderPremium[key]) return;
530
+ Object.defineProperty(exports, key, {
531
+ enumerable: true,
532
+ get: function () {
533
+ return _ChartsDataProviderPremium[key];
534
+ }
535
+ });
536
+ });
481
537
  var _ChartDataProviderPremium = require("./ChartDataProviderPremium");
482
538
  Object.keys(_ChartDataProviderPremium).forEach(function (key) {
483
539
  if (key === "default" || key === "__esModule") return;
@@ -490,6 +546,18 @@ Object.keys(_ChartDataProviderPremium).forEach(function (key) {
490
546
  }
491
547
  });
492
548
  });
549
+ var _ChartsContainerPremium = require("./ChartsContainerPremium");
550
+ Object.keys(_ChartsContainerPremium).forEach(function (key) {
551
+ if (key === "default" || key === "__esModule") return;
552
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
553
+ if (key in exports && exports[key] === _ChartsContainerPremium[key]) return;
554
+ Object.defineProperty(exports, key, {
555
+ enumerable: true,
556
+ get: function () {
557
+ return _ChartsContainerPremium[key];
558
+ }
559
+ });
560
+ });
493
561
  var _ChartContainerPremium = require("./ChartContainerPremium");
494
562
  Object.keys(_ChartContainerPremium).forEach(function (key) {
495
563
  if (key === "default" || key === "__esModule") return;