@mui/x-charts-pro 8.5.0 → 8.5.1

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 (90) hide show
  1. package/BarChartPro/BarChartPro.js +1 -1
  2. package/CHANGELOG.md +112 -0
  3. package/ChartContainerPro/ChartProApi.d.ts +2 -0
  4. package/ChartDataProviderPro/ChartDataProviderPro.js +1 -1
  5. package/ChartZoomSlider/internals/ChartAxisZoomSliderActiveTrack.d.ts +0 -2
  6. package/ChartZoomSlider/internals/ChartAxisZoomSliderActiveTrack.js +41 -9
  7. package/ChartZoomSlider/internals/ChartAxisZoomSliderTrack.js +0 -22
  8. package/ChartsToolbarPro/ChartsToolbarPro.d.ts +1 -4
  9. package/ChartsToolbarPro/ChartsToolbarPro.js +7 -13
  10. package/ChartsToolbarPro/{ChartsToolbarZoomInButton.d.ts → ChartsToolbarZoomInTrigger.d.ts} +6 -5
  11. package/ChartsToolbarPro/{ChartsToolbarZoomInButton.js → ChartsToolbarZoomInTrigger.js} +7 -6
  12. package/ChartsToolbarPro/{ChartsToolbarZoomOutButton.d.ts → ChartsToolbarZoomOutTrigger.d.ts} +6 -5
  13. package/ChartsToolbarPro/{ChartsToolbarZoomOutButton.js → ChartsToolbarZoomOutTrigger.js} +7 -6
  14. package/ChartsToolbarPro/index.d.ts +2 -2
  15. package/ChartsToolbarPro/index.js +8 -8
  16. package/FunnelChart/FunnelPlot.js +10 -22
  17. package/FunnelChart/FunnelSection.d.ts +1 -1
  18. package/FunnelChart/FunnelSectionLabel.d.ts +21 -0
  19. package/FunnelChart/FunnelSectionLabel.js +52 -0
  20. package/FunnelChart/curves/bump.d.ts +10 -4
  21. package/FunnelChart/curves/bump.js +73 -41
  22. package/FunnelChart/curves/curve.types.d.ts +6 -1
  23. package/FunnelChart/curves/getFunnelCurve.js +3 -0
  24. package/FunnelChart/curves/linear.d.ts +9 -1
  25. package/FunnelChart/curves/linear.js +82 -5
  26. package/FunnelChart/funnel.types.d.ts +1 -0
  27. package/FunnelChart/funnelPlotSlots.types.d.ts +11 -0
  28. package/FunnelChart/funnelSectionClasses.d.ts +2 -0
  29. package/FunnelChart/funnelSectionClasses.js +17 -4
  30. package/FunnelChart/index.d.ts +3 -1
  31. package/FunnelChart/index.js +18 -2
  32. package/Heatmap/Heatmap.d.ts +5 -0
  33. package/Heatmap/Heatmap.js +10 -2
  34. package/Heatmap/HeatmapTooltip/HeatmapTooltipAxesValue.d.ts +1 -1
  35. package/LineChartPro/LineChartPro.js +1 -1
  36. package/PieChartPro/PieChartPro.d.ts +21 -0
  37. package/PieChartPro/PieChartPro.js +204 -0
  38. package/PieChartPro/PieChartPro.plugins.d.ts +4 -0
  39. package/PieChartPro/PieChartPro.plugins.js +9 -0
  40. package/PieChartPro/index.d.ts +1 -0
  41. package/PieChartPro/index.js +16 -0
  42. package/RadarChartPro/RadarChartPro.js +1 -1
  43. package/ScatterChartPro/ScatterChartPro.js +1 -1
  44. package/esm/BarChartPro/BarChartPro.js +1 -1
  45. package/esm/ChartContainerPro/ChartProApi.d.ts +2 -0
  46. package/esm/ChartDataProviderPro/ChartDataProviderPro.js +1 -1
  47. package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderActiveTrack.d.ts +0 -2
  48. package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderActiveTrack.js +42 -10
  49. package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderTrack.js +0 -22
  50. package/esm/ChartsToolbarPro/ChartsToolbarPro.d.ts +1 -4
  51. package/esm/ChartsToolbarPro/ChartsToolbarPro.js +8 -14
  52. package/esm/ChartsToolbarPro/{ChartsToolbarZoomInButton.d.ts → ChartsToolbarZoomInTrigger.d.ts} +6 -5
  53. package/esm/ChartsToolbarPro/{ChartsToolbarZoomInButton.js → ChartsToolbarZoomInTrigger.js} +8 -7
  54. package/esm/ChartsToolbarPro/{ChartsToolbarZoomOutButton.d.ts → ChartsToolbarZoomOutTrigger.d.ts} +6 -5
  55. package/esm/ChartsToolbarPro/{ChartsToolbarZoomOutButton.js → ChartsToolbarZoomOutTrigger.js} +8 -7
  56. package/esm/ChartsToolbarPro/index.d.ts +2 -2
  57. package/esm/ChartsToolbarPro/index.js +2 -2
  58. package/esm/FunnelChart/FunnelPlot.js +10 -22
  59. package/esm/FunnelChart/FunnelSection.d.ts +1 -1
  60. package/esm/FunnelChart/FunnelSectionLabel.d.ts +21 -0
  61. package/esm/FunnelChart/FunnelSectionLabel.js +46 -0
  62. package/esm/FunnelChart/curves/bump.d.ts +10 -4
  63. package/esm/FunnelChart/curves/bump.js +73 -41
  64. package/esm/FunnelChart/curves/curve.types.d.ts +6 -1
  65. package/esm/FunnelChart/curves/getFunnelCurve.js +3 -0
  66. package/esm/FunnelChart/curves/linear.d.ts +9 -1
  67. package/esm/FunnelChart/curves/linear.js +82 -5
  68. package/esm/FunnelChart/funnel.types.d.ts +1 -0
  69. package/esm/FunnelChart/funnelPlotSlots.types.d.ts +11 -0
  70. package/esm/FunnelChart/funnelSectionClasses.d.ts +2 -0
  71. package/esm/FunnelChart/funnelSectionClasses.js +15 -3
  72. package/esm/FunnelChart/index.d.ts +3 -1
  73. package/esm/FunnelChart/index.js +3 -1
  74. package/esm/Heatmap/Heatmap.d.ts +5 -0
  75. package/esm/Heatmap/Heatmap.js +10 -2
  76. package/esm/Heatmap/HeatmapTooltip/HeatmapTooltipAxesValue.d.ts +1 -1
  77. package/esm/LineChartPro/LineChartPro.js +1 -1
  78. package/esm/PieChartPro/PieChartPro.d.ts +21 -0
  79. package/esm/PieChartPro/PieChartPro.js +197 -0
  80. package/esm/PieChartPro/PieChartPro.plugins.d.ts +4 -0
  81. package/esm/PieChartPro/PieChartPro.plugins.js +3 -0
  82. package/esm/PieChartPro/index.d.ts +1 -0
  83. package/esm/PieChartPro/index.js +1 -0
  84. package/esm/RadarChartPro/RadarChartPro.js +1 -1
  85. package/esm/ScatterChartPro/ScatterChartPro.js +1 -1
  86. package/esm/index.d.ts +1 -0
  87. package/esm/index.js +2 -1
  88. package/index.d.ts +1 -0
  89. package/index.js +12 -1
  90. package/package.json +7 -7
@@ -18,6 +18,7 @@ import { seriesConfig as heatmapSeriesConfig } from "./seriesConfig/index.js";
18
18
  import { HeatmapTooltip } from "./HeatmapTooltip/index.js";
19
19
  import { HEATMAP_PLUGINS } from "./Heatmap.plugins.js";
20
20
  import { ChartDataProviderPro } from "../ChartDataProviderPro/index.js";
21
+ import { ChartsToolbarPro } from "../ChartsToolbarPro/index.js";
21
22
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
22
23
  // The GnBu: https://github.com/d3/d3-scale-chromatic/blob/main/src/sequential-multi/GnBu.js
23
24
  const defaultColorMap = interpolateRgbBasis(['#f7fcf0', '#e0f3db', '#ccebc5', '#a8ddb5', '#7bccc4', '#4eb3d3', '#2b8cbe', '#0868ac', '#084081']);
@@ -58,7 +59,8 @@ const Heatmap = /*#__PURE__*/React.forwardRef(function Heatmap(inProps, ref) {
58
59
  loading,
59
60
  highlightedItem,
60
61
  onHighlightChange,
61
- hideLegend = true
62
+ hideLegend = true,
63
+ showToolbar = false
62
64
  } = props;
63
65
  const id = useId();
64
66
  const clipPathId = `${id}-clip-path`;
@@ -92,6 +94,7 @@ const Heatmap = /*#__PURE__*/React.forwardRef(function Heatmap(inProps, ref) {
92
94
  legendDirection: props.slotProps?.legend?.direction
93
95
  };
94
96
  const Tooltip = slots?.tooltip ?? HeatmapTooltip;
97
+ const Toolbar = slots?.toolbar ?? ChartsToolbarPro;
95
98
  return /*#__PURE__*/_jsx(ChartDataProviderPro, {
96
99
  apiRef: apiRef,
97
100
  seriesConfig: seriesConfig,
@@ -112,7 +115,7 @@ const Heatmap = /*#__PURE__*/React.forwardRef(function Heatmap(inProps, ref) {
112
115
  onAxisClick: onAxisClick,
113
116
  plugins: HEATMAP_PLUGINS,
114
117
  children: /*#__PURE__*/_jsxs(ChartsWrapper, _extends({}, chartsWrapperProps, {
115
- children: [!hideLegend && /*#__PURE__*/_jsx(ChartsLegend, {
118
+ children: [showToolbar ? /*#__PURE__*/_jsx(Toolbar, _extends({}, props.slotProps?.toolbar)) : null, !hideLegend && /*#__PURE__*/_jsx(ChartsLegend, {
116
119
  slots: _extends({}, slots, {
117
120
  legend: slots?.legend ?? ContinuousColorLegend
118
121
  }),
@@ -244,6 +247,11 @@ process.env.NODE_ENV !== "production" ? Heatmap.propTypes = {
244
247
  * @ignore Unstable props for internal usage.
245
248
  */
246
249
  seriesConfig: PropTypes.object,
250
+ /**
251
+ * If true, shows the default chart toolbar.
252
+ * @default false
253
+ */
254
+ showToolbar: PropTypes.bool,
247
255
  /**
248
256
  * The props used for each component slot.
249
257
  * @default {}
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * @ignore - internal component.
3
3
  */
4
- export declare const HeatmapTooltipAxesValue: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, keyof import("react").ClassAttributes<HTMLElement> | keyof import("react").HTMLAttributes<HTMLElement>>, {}>;
4
+ export declare const HeatmapTooltipAxesValue: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, keyof import("react").ClassAttributes<HTMLElement> | keyof import("react").HTMLAttributes<HTMLElement>>, {}>;
@@ -75,7 +75,7 @@ const LineChartPro = /*#__PURE__*/React.forwardRef(function LineChartPro(inProps
75
75
  const Toolbar = props.slots?.toolbar ?? ChartsToolbarPro;
76
76
  return /*#__PURE__*/_jsx(ChartDataProviderPro, _extends({}, chartDataProviderProProps, {
77
77
  children: /*#__PURE__*/_jsxs(ChartsWrapper, _extends({}, chartsWrapperProps, {
78
- children: [showToolbar ? /*#__PURE__*/_jsx(Toolbar, {}) : null, !props.hideLegend && /*#__PURE__*/_jsx(ChartsLegend, _extends({}, legendProps)), /*#__PURE__*/_jsxs(ChartsSurface, _extends({}, chartsSurfaceProps, {
78
+ children: [showToolbar ? /*#__PURE__*/_jsx(Toolbar, _extends({}, props.slotProps?.toolbar)) : null, !props.hideLegend && /*#__PURE__*/_jsx(ChartsLegend, _extends({}, legendProps)), /*#__PURE__*/_jsxs(ChartsSurface, _extends({}, chartsSurfaceProps, {
79
79
  children: [/*#__PURE__*/_jsx(ChartsGrid, _extends({}, gridProps)), /*#__PURE__*/_jsxs("g", _extends({}, clipPathGroupProps, {
80
80
  children: [/*#__PURE__*/_jsx(AreaPlot, _extends({}, areaPlotProps)), /*#__PURE__*/_jsx(LinePlot, _extends({}, linePlotProps)), /*#__PURE__*/_jsx(ChartsOverlay, _extends({}, overlayProps)), /*#__PURE__*/_jsx(ChartsAxisHighlight, _extends({}, axisHighlightProps))]
81
81
  })), /*#__PURE__*/_jsx(ChartsAxis, _extends({}, chartsAxisProps)), /*#__PURE__*/_jsx(ChartZoomSlider, {}), /*#__PURE__*/_jsx("g", {
@@ -0,0 +1,21 @@
1
+ import * as React from 'react';
2
+ import { PieChartProps, PieChartSlotProps, PieChartSlots } from '@mui/x-charts/PieChart';
3
+ import { ChartsSlotsPro, ChartsSlotPropsPro } from "../internals/material/index.js";
4
+ import { ChartContainerProProps } from "../ChartContainerPro/index.js";
5
+ import { PieChartProPluginSignatures } from "./PieChartPro.plugins.js";
6
+ export interface PieChartProSlots extends PieChartSlots, Partial<ChartsSlotsPro> {}
7
+ export interface PieChartProSlotProps extends PieChartSlotProps, Partial<ChartsSlotPropsPro> {}
8
+ export interface PieChartProProps extends Omit<PieChartProps, 'apiRef' | 'slots' | 'slotProps'>, Omit<ChartContainerProProps<'pie', PieChartProPluginSignatures>, 'series' | 'plugins' | 'seriesConfig' | 'slots' | 'slotProps'> {
9
+ /**
10
+ * Overridable component slots.
11
+ * @default {}
12
+ */
13
+ slots?: PieChartProSlots;
14
+ /**
15
+ * The props used for each component slot.
16
+ * @default {}
17
+ */
18
+ slotProps?: PieChartProSlotProps;
19
+ }
20
+ declare const PieChartPro: React.ForwardRefExoticComponent<PieChartProProps & React.RefAttributes<SVGSVGElement>>;
21
+ export { PieChartPro };
@@ -0,0 +1,197 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
2
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
+ const _excluded = ["series", "width", "height", "margin", "colors", "sx", "skipAnimation", "hideLegend", "children", "slots", "slotProps", "onItemClick", "loading", "highlightedItem", "onHighlightChange", "className", "showToolbar"];
4
+ import { ChartsWrapper, DEFAULT_PIE_CHART_MARGIN, defaultizeMargin } from '@mui/x-charts/internals';
5
+ import PropTypes from 'prop-types';
6
+ import { useThemeProps } from '@mui/material/styles';
7
+ import { ChartsOverlay } from '@mui/x-charts/ChartsOverlay';
8
+ import * as React from 'react';
9
+ import { ChartsTooltip } from '@mui/x-charts/ChartsTooltip';
10
+ import { ChartsLegend } from '@mui/x-charts/ChartsLegend';
11
+ import { ChartsSurface } from '@mui/x-charts/ChartsSurface';
12
+ import { PiePlot } from '@mui/x-charts/PieChart';
13
+ import { useChartContainerProProps } from "../ChartContainerPro/useChartContainerProProps.js";
14
+ import { ChartDataProviderPro } from "../ChartDataProviderPro/index.js";
15
+ import { ChartsToolbarPro } from "../ChartsToolbarPro/index.js";
16
+ import { PIE_CHART_PRO_PLUGINS } from "./PieChartPro.plugins.js";
17
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
18
+ const PieChartPro = /*#__PURE__*/React.forwardRef(function PieChartPro(inProps, ref) {
19
+ const props = useThemeProps({
20
+ props: inProps,
21
+ name: 'MuiPieChartPro'
22
+ });
23
+ const {
24
+ series,
25
+ width,
26
+ height,
27
+ margin: marginProps,
28
+ colors,
29
+ sx,
30
+ skipAnimation,
31
+ hideLegend,
32
+ children,
33
+ slots,
34
+ slotProps,
35
+ onItemClick,
36
+ loading,
37
+ highlightedItem,
38
+ onHighlightChange,
39
+ className,
40
+ showToolbar
41
+ } = props,
42
+ other = _objectWithoutPropertiesLoose(props, _excluded);
43
+ const margin = defaultizeMargin(marginProps, DEFAULT_PIE_CHART_MARGIN);
44
+ const {
45
+ chartDataProviderProProps,
46
+ chartsSurfaceProps
47
+ } = useChartContainerProProps(_extends({}, other, {
48
+ series: series.map(s => _extends({
49
+ type: 'pie'
50
+ }, s)),
51
+ width,
52
+ height,
53
+ margin,
54
+ colors,
55
+ highlightedItem,
56
+ onHighlightChange,
57
+ className,
58
+ skipAnimation,
59
+ plugins: PIE_CHART_PRO_PLUGINS
60
+ }), ref);
61
+ const Tooltip = slots?.tooltip ?? ChartsTooltip;
62
+ const Toolbar = props.slots?.toolbar ?? ChartsToolbarPro;
63
+ return /*#__PURE__*/_jsx(ChartDataProviderPro, _extends({}, chartDataProviderProProps, {
64
+ children: /*#__PURE__*/_jsxs(ChartsWrapper, {
65
+ legendPosition: props.slotProps?.legend?.position,
66
+ legendDirection: props?.slotProps?.legend?.direction ?? 'vertical',
67
+ sx: sx,
68
+ children: [showToolbar ? /*#__PURE__*/_jsx(Toolbar, {}) : null, !hideLegend && /*#__PURE__*/_jsx(ChartsLegend, {
69
+ direction: props?.slotProps?.legend?.direction ?? 'vertical',
70
+ slots: slots,
71
+ slotProps: slotProps
72
+ }), /*#__PURE__*/_jsxs(ChartsSurface, _extends({}, chartsSurfaceProps, {
73
+ children: [/*#__PURE__*/_jsx(PiePlot, {
74
+ slots: slots,
75
+ slotProps: slotProps,
76
+ onItemClick: onItemClick
77
+ }), /*#__PURE__*/_jsx(ChartsOverlay, {
78
+ loading: loading,
79
+ slots: slots,
80
+ slotProps: slotProps
81
+ }), children]
82
+ })), !loading && /*#__PURE__*/_jsx(Tooltip, _extends({
83
+ trigger: "item"
84
+ }, slotProps?.tooltip))]
85
+ })
86
+ }));
87
+ });
88
+ if (process.env.NODE_ENV !== "production") PieChartPro.displayName = "PieChartPro";
89
+ process.env.NODE_ENV !== "production" ? PieChartPro.propTypes = {
90
+ // ----------------------------- Warning --------------------------------
91
+ // | These PropTypes are generated from the TypeScript type definitions |
92
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
93
+ // ----------------------------------------------------------------------
94
+ apiRef: PropTypes.shape({
95
+ current: PropTypes.shape({
96
+ exportAsImage: PropTypes.func.isRequired,
97
+ exportAsPrint: PropTypes.func.isRequired
98
+ })
99
+ }),
100
+ children: PropTypes.node,
101
+ className: PropTypes.string,
102
+ /**
103
+ * Color palette used to colorize multiple series.
104
+ * @default rainbowSurgePalette
105
+ */
106
+ colors: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string), PropTypes.func]),
107
+ /**
108
+ * An array of objects that can be used to populate series and axes data using their `dataKey` property.
109
+ */
110
+ dataset: PropTypes.arrayOf(PropTypes.object),
111
+ desc: PropTypes.string,
112
+ /**
113
+ * The height of the chart in px. If not defined, it takes the height of the parent element.
114
+ */
115
+ height: PropTypes.number,
116
+ /**
117
+ * If `true`, the legend is not rendered.
118
+ */
119
+ hideLegend: PropTypes.bool,
120
+ /**
121
+ * The highlighted item.
122
+ * Used when the highlight is controlled.
123
+ */
124
+ highlightedItem: PropTypes.shape({
125
+ dataIndex: PropTypes.number,
126
+ seriesId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired
127
+ }),
128
+ /**
129
+ * This prop is used to help implement the accessibility logic.
130
+ * If you don't provide this prop. It falls back to a randomly generated id.
131
+ */
132
+ id: PropTypes.string,
133
+ /**
134
+ * If `true`, a loading overlay is displayed.
135
+ * @default false
136
+ */
137
+ loading: PropTypes.bool,
138
+ /**
139
+ * Localized text for chart components.
140
+ */
141
+ localeText: PropTypes.object,
142
+ /**
143
+ * The margin between the SVG and the drawing area.
144
+ * It's used for leaving some space for extra information such as the x- and y-axis or legend.
145
+ *
146
+ * Accepts a `number` to be used on all sides or an object with the optional properties: `top`, `bottom`, `left`, and `right`.
147
+ */
148
+ margin: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
149
+ bottom: PropTypes.number,
150
+ left: PropTypes.number,
151
+ right: PropTypes.number,
152
+ top: PropTypes.number
153
+ })]),
154
+ /**
155
+ * The callback fired when the highlighted item changes.
156
+ *
157
+ * @param {HighlightItemData | null} highlightedItem The newly highlighted item.
158
+ */
159
+ onHighlightChange: PropTypes.func,
160
+ /**
161
+ * Callback fired when a pie arc is clicked.
162
+ */
163
+ onItemClick: PropTypes.func,
164
+ /**
165
+ * The series to display in the pie chart.
166
+ * An array of [[PieSeriesType]] objects.
167
+ */
168
+ series: PropTypes.arrayOf(PropTypes.object).isRequired,
169
+ /**
170
+ * If true, shows the default chart toolbar.
171
+ * @default false
172
+ */
173
+ showToolbar: PropTypes.bool,
174
+ /**
175
+ * If `true`, animations are skipped.
176
+ * If unset or `false`, the animations respects the user's `prefers-reduced-motion` setting.
177
+ */
178
+ skipAnimation: PropTypes.bool,
179
+ /**
180
+ * The props used for each component slot.
181
+ * @default {}
182
+ */
183
+ slotProps: PropTypes.object,
184
+ /**
185
+ * Overridable component slots.
186
+ * @default {}
187
+ */
188
+ slots: PropTypes.object,
189
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
190
+ theme: PropTypes.oneOf(['dark', 'light']),
191
+ title: PropTypes.string,
192
+ /**
193
+ * The width of the chart in px. If not defined, it takes the width of the parent element.
194
+ */
195
+ width: PropTypes.number
196
+ } : void 0;
197
+ export { PieChartPro };
@@ -0,0 +1,4 @@
1
+ import { ConvertSignaturesIntoPlugins, UseChartHighlightSignature, UseChartInteractionSignature } from '@mui/x-charts/internals';
2
+ import { UseChartProExportSignature } from "../internals/plugins/useChartProExport/index.js";
3
+ export type PieChartProPluginSignatures = [UseChartInteractionSignature, UseChartHighlightSignature, UseChartProExportSignature];
4
+ export declare const PIE_CHART_PRO_PLUGINS: ConvertSignaturesIntoPlugins<PieChartProPluginSignatures>;
@@ -0,0 +1,3 @@
1
+ import { PIE_CHART_PLUGINS } from '@mui/x-charts/internals';
2
+ import { useChartProExport } from "../internals/plugins/useChartProExport/index.js";
3
+ export const PIE_CHART_PRO_PLUGINS = [...PIE_CHART_PLUGINS, useChartProExport];
@@ -0,0 +1 @@
1
+ export * from "./PieChartPro.js";
@@ -0,0 +1 @@
1
+ export * from "./PieChartPro.js";
@@ -43,7 +43,7 @@ const RadarChartPro = /*#__PURE__*/React.forwardRef(function RadarChartPro(inPro
43
43
  });
44
44
  return /*#__PURE__*/_jsx(RadarDataProvider, _extends({}, radarDataProviderProProps, {
45
45
  children: /*#__PURE__*/_jsxs(ChartsWrapper, _extends({}, chartsWrapperProps, {
46
- children: [props.showToolbar ? /*#__PURE__*/_jsx(Toolbar, {}) : null, !props.hideLegend && /*#__PURE__*/_jsx(ChartsLegend, _extends({}, legendProps)), /*#__PURE__*/_jsxs(ChartsSurface, _extends({}, chartsSurfaceProps, {
46
+ children: [props.showToolbar ? /*#__PURE__*/_jsx(Toolbar, _extends({}, props.slotProps?.toolbar)) : null, !props.hideLegend && /*#__PURE__*/_jsx(ChartsLegend, _extends({}, legendProps)), /*#__PURE__*/_jsxs(ChartsSurface, _extends({}, chartsSurfaceProps, {
47
47
  ref: ref,
48
48
  children: [/*#__PURE__*/_jsx(RadarGrid, _extends({}, radarGrid)), /*#__PURE__*/_jsx(RadarMetricLabels, {}), /*#__PURE__*/_jsx(RadarSeriesArea, {}), highlight === 'axis' && /*#__PURE__*/_jsx(RadarAxisHighlight, {}), /*#__PURE__*/_jsx(RadarSeriesMarks, {}), /*#__PURE__*/_jsx(ChartsOverlay, _extends({}, overlayProps)), children]
49
49
  })), !props.loading && /*#__PURE__*/_jsx(Tooltip, _extends({}, props.slotProps?.tooltip))]
@@ -69,7 +69,7 @@ const ScatterChartPro = /*#__PURE__*/React.forwardRef(function ScatterChartPro(i
69
69
  const Toolbar = props.slots?.toolbar ?? ChartsToolbarPro;
70
70
  return /*#__PURE__*/_jsx(ChartDataProviderPro, _extends({}, chartDataProviderProProps, {
71
71
  children: /*#__PURE__*/_jsxs(ChartsWrapper, _extends({}, chartsWrapperProps, {
72
- children: [showToolbar ? /*#__PURE__*/_jsx(Toolbar, {}) : null, !props.hideLegend && /*#__PURE__*/_jsx(ChartsLegend, _extends({}, legendProps)), /*#__PURE__*/_jsxs(ChartsSurface, _extends({}, chartsSurfaceProps, {
72
+ children: [showToolbar ? /*#__PURE__*/_jsx(Toolbar, _extends({}, props.slotProps?.toolbar)) : null, !props.hideLegend && /*#__PURE__*/_jsx(ChartsLegend, _extends({}, legendProps)), /*#__PURE__*/_jsxs(ChartsSurface, _extends({}, chartsSurfaceProps, {
73
73
  children: [/*#__PURE__*/_jsx(ChartsAxis, _extends({}, chartsAxisProps)), /*#__PURE__*/_jsx(ChartZoomSlider, {}), /*#__PURE__*/_jsx(ChartsGrid, _extends({}, gridProps)), /*#__PURE__*/_jsx("g", {
74
74
  "data-drawing-container": true,
75
75
  children: /*#__PURE__*/_jsx(ScatterPlot, _extends({}, scatterPlotProps))
package/esm/index.d.ts CHANGED
@@ -33,6 +33,7 @@ export * from "./ChartDataProviderPro/index.js";
33
33
  export * from "./ScatterChartPro/index.js";
34
34
  export * from "./BarChartPro/index.js";
35
35
  export * from "./LineChartPro/index.js";
36
+ export * from "./PieChartPro/index.js";
36
37
  export * from "./FunnelChart/index.js";
37
38
  export * from "./RadarChartPro/index.js";
38
39
  export * from "./ChartZoomSlider/index.js";
package/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-charts-pro v8.5.0
2
+ * @mui/x-charts-pro v8.5.1
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -42,6 +42,7 @@ export * from "./ChartDataProviderPro/index.js";
42
42
  export * from "./ScatterChartPro/index.js";
43
43
  export * from "./BarChartPro/index.js";
44
44
  export * from "./LineChartPro/index.js";
45
+ export * from "./PieChartPro/index.js";
45
46
  export * from "./FunnelChart/index.js";
46
47
  export * from "./RadarChartPro/index.js";
47
48
  export * from "./ChartZoomSlider/index.js";
package/index.d.ts CHANGED
@@ -33,6 +33,7 @@ export * from "./ChartDataProviderPro/index.js";
33
33
  export * from "./ScatterChartPro/index.js";
34
34
  export * from "./BarChartPro/index.js";
35
35
  export * from "./LineChartPro/index.js";
36
+ export * from "./PieChartPro/index.js";
36
37
  export * from "./FunnelChart/index.js";
37
38
  export * from "./RadarChartPro/index.js";
38
39
  export * from "./ChartZoomSlider/index.js";
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-charts-pro v8.5.0
2
+ * @mui/x-charts-pro v8.5.1
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -374,6 +374,17 @@ Object.keys(_LineChartPro).forEach(function (key) {
374
374
  }
375
375
  });
376
376
  });
377
+ var _PieChartPro = require("./PieChartPro");
378
+ Object.keys(_PieChartPro).forEach(function (key) {
379
+ if (key === "default" || key === "__esModule") return;
380
+ if (key in exports && exports[key] === _PieChartPro[key]) return;
381
+ Object.defineProperty(exports, key, {
382
+ enumerable: true,
383
+ get: function () {
384
+ return _PieChartPro[key];
385
+ }
386
+ });
387
+ });
377
388
  var _FunnelChart = require("./FunnelChart");
378
389
  Object.keys(_FunnelChart).forEach(function (key) {
379
390
  if (key === "default" || key === "__esModule") return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-charts-pro",
3
- "version": "8.5.0",
3
+ "version": "8.5.1",
4
4
  "author": "MUI Team",
5
5
  "description": "The Pro plan edition of the MUI X Charts components.",
6
6
  "main": "./index.js",
@@ -29,14 +29,14 @@
29
29
  "directory": "packages/x-charts-pro"
30
30
  },
31
31
  "dependencies": {
32
- "@babel/runtime": "^7.27.1",
33
- "@mui/utils": "^7.0.2",
32
+ "@babel/runtime": "^7.27.4",
33
+ "@mui/utils": "^7.1.1",
34
34
  "clsx": "^2.1.1",
35
35
  "prop-types": "^15.8.1",
36
- "@mui/x-charts": "8.5.0",
37
- "@mui/x-charts-vendor": "8.4.0",
38
- "@mui/x-internals": "8.5.0",
39
- "@mui/x-license": "8.5.0"
36
+ "@mui/x-charts": "8.5.1",
37
+ "@mui/x-charts-vendor": "8.5.1",
38
+ "@mui/x-internals": "8.5.1",
39
+ "@mui/x-license": "8.5.1"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "@emotion/react": "^11.9.0",