@mui/x-charts-pro 8.5.0 → 8.5.2

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 (144) hide show
  1. package/BarChartPro/BarChartPro.d.ts +3 -2
  2. package/BarChartPro/BarChartPro.js +1 -1
  3. package/CHANGELOG.md +204 -0
  4. package/ChartContainerPro/ChartProApi.d.ts +2 -0
  5. package/ChartDataProviderPro/ChartDataProviderPro.js +1 -1
  6. package/ChartZoomSlider/internals/ChartAxisZoomSliderActiveTrack.d.ts +0 -2
  7. package/ChartZoomSlider/internals/ChartAxisZoomSliderActiveTrack.js +42 -9
  8. package/ChartZoomSlider/internals/ChartAxisZoomSliderTrack.js +0 -22
  9. package/ChartsToolbarPro/ChartsToolbarPro.d.ts +2 -4
  10. package/ChartsToolbarPro/ChartsToolbarPro.js +7 -13
  11. package/ChartsToolbarPro/{ChartsToolbarZoomInButton.d.ts → ChartsToolbarZoomInTrigger.d.ts} +6 -5
  12. package/ChartsToolbarPro/{ChartsToolbarZoomInButton.js → ChartsToolbarZoomInTrigger.js} +7 -6
  13. package/ChartsToolbarPro/{ChartsToolbarZoomOutButton.d.ts → ChartsToolbarZoomOutTrigger.d.ts} +6 -5
  14. package/ChartsToolbarPro/{ChartsToolbarZoomOutButton.js → ChartsToolbarZoomOutTrigger.js} +7 -6
  15. package/ChartsToolbarPro/Toolbar.types.d.ts +15 -0
  16. package/ChartsToolbarPro/Toolbar.types.js +5 -0
  17. package/ChartsToolbarPro/index.d.ts +2 -2
  18. package/ChartsToolbarPro/index.js +8 -8
  19. package/FunnelChart/FunnelChart.js +4 -11
  20. package/FunnelChart/FunnelChart.plugins.d.ts +3 -2
  21. package/FunnelChart/FunnelChart.plugins.js +2 -1
  22. package/FunnelChart/FunnelPlot.d.ts +0 -5
  23. package/FunnelChart/FunnelPlot.js +40 -50
  24. package/FunnelChart/FunnelSection.d.ts +1 -1
  25. package/FunnelChart/FunnelSectionLabel.d.ts +21 -0
  26. package/FunnelChart/FunnelSectionLabel.js +52 -0
  27. package/FunnelChart/categoryAxis.types.d.ts +2 -1
  28. package/FunnelChart/curves/bump.d.ts +9 -5
  29. package/FunnelChart/curves/bump.js +72 -43
  30. package/FunnelChart/curves/curve.types.d.ts +6 -1
  31. package/FunnelChart/curves/getFunnelCurve.js +3 -0
  32. package/FunnelChart/curves/linear.d.ts +10 -2
  33. package/FunnelChart/curves/linear.js +97 -17
  34. package/FunnelChart/curves/pyramid.js +10 -14
  35. package/FunnelChart/curves/step-pyramid.js +4 -6
  36. package/FunnelChart/curves/step.js +1 -15
  37. package/FunnelChart/funnel.types.d.ts +1 -0
  38. package/FunnelChart/funnelAxisPlugin/computeAxisValue.d.ts +25 -0
  39. package/FunnelChart/funnelAxisPlugin/computeAxisValue.js +124 -0
  40. package/FunnelChart/funnelAxisPlugin/useChartFunnelAxis.d.ts +3 -0
  41. package/FunnelChart/funnelAxisPlugin/useChartFunnelAxis.js +173 -0
  42. package/FunnelChart/funnelAxisPlugin/useChartFunnelAxis.types.d.ts +27 -0
  43. package/FunnelChart/funnelAxisPlugin/useChartFunnelAxis.types.js +5 -0
  44. package/FunnelChart/funnelAxisPlugin/useChartFunnelAxisRendering.selectors.d.ts +1482 -0
  45. package/FunnelChart/funnelAxisPlugin/useChartFunnelAxisRendering.selectors.js +27 -0
  46. package/FunnelChart/funnelPlotSlots.types.d.ts +11 -0
  47. package/FunnelChart/funnelSectionClasses.d.ts +2 -0
  48. package/FunnelChart/funnelSectionClasses.js +17 -4
  49. package/FunnelChart/index.d.ts +3 -1
  50. package/FunnelChart/index.js +18 -2
  51. package/FunnelChart/labelUtils.d.ts +3 -2
  52. package/FunnelChart/labelUtils.js +15 -15
  53. package/FunnelChart/positionGetter.d.ts +1 -0
  54. package/FunnelChart/positionGetter.js +5 -0
  55. package/FunnelChart/useFunnelChartProps.js +1 -3
  56. package/Heatmap/Heatmap.d.ts +8 -3
  57. package/Heatmap/Heatmap.js +10 -2
  58. package/Heatmap/HeatmapTooltip/HeatmapTooltipAxesValue.d.ts +1 -1
  59. package/LineChartPro/LineChartPro.d.ts +3 -2
  60. package/LineChartPro/LineChartPro.js +1 -1
  61. package/PieChartPro/PieChartPro.d.ts +22 -0
  62. package/PieChartPro/PieChartPro.js +204 -0
  63. package/PieChartPro/PieChartPro.plugins.d.ts +4 -0
  64. package/PieChartPro/PieChartPro.plugins.js +9 -0
  65. package/PieChartPro/index.d.ts +1 -0
  66. package/PieChartPro/index.js +16 -0
  67. package/RadarChartPro/RadarChartPro.d.ts +17 -2
  68. package/RadarChartPro/RadarChartPro.js +1 -1
  69. package/ScatterChartPro/ScatterChartPro.d.ts +3 -2
  70. package/ScatterChartPro/ScatterChartPro.js +1 -1
  71. package/esm/BarChartPro/BarChartPro.d.ts +3 -2
  72. package/esm/BarChartPro/BarChartPro.js +1 -1
  73. package/esm/ChartContainerPro/ChartProApi.d.ts +2 -0
  74. package/esm/ChartDataProviderPro/ChartDataProviderPro.js +1 -1
  75. package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderActiveTrack.d.ts +0 -2
  76. package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderActiveTrack.js +43 -10
  77. package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderTrack.js +0 -22
  78. package/esm/ChartsToolbarPro/ChartsToolbarPro.d.ts +2 -4
  79. package/esm/ChartsToolbarPro/ChartsToolbarPro.js +8 -14
  80. package/esm/ChartsToolbarPro/{ChartsToolbarZoomInButton.d.ts → ChartsToolbarZoomInTrigger.d.ts} +6 -5
  81. package/esm/ChartsToolbarPro/{ChartsToolbarZoomInButton.js → ChartsToolbarZoomInTrigger.js} +8 -7
  82. package/esm/ChartsToolbarPro/{ChartsToolbarZoomOutButton.d.ts → ChartsToolbarZoomOutTrigger.d.ts} +6 -5
  83. package/esm/ChartsToolbarPro/{ChartsToolbarZoomOutButton.js → ChartsToolbarZoomOutTrigger.js} +8 -7
  84. package/esm/ChartsToolbarPro/Toolbar.types.d.ts +15 -0
  85. package/esm/ChartsToolbarPro/Toolbar.types.js +1 -0
  86. package/esm/ChartsToolbarPro/index.d.ts +2 -2
  87. package/esm/ChartsToolbarPro/index.js +2 -2
  88. package/esm/FunnelChart/FunnelChart.js +4 -11
  89. package/esm/FunnelChart/FunnelChart.plugins.d.ts +3 -2
  90. package/esm/FunnelChart/FunnelChart.plugins.js +3 -2
  91. package/esm/FunnelChart/FunnelPlot.d.ts +0 -5
  92. package/esm/FunnelChart/FunnelPlot.js +41 -51
  93. package/esm/FunnelChart/FunnelSection.d.ts +1 -1
  94. package/esm/FunnelChart/FunnelSectionLabel.d.ts +21 -0
  95. package/esm/FunnelChart/FunnelSectionLabel.js +46 -0
  96. package/esm/FunnelChart/categoryAxis.types.d.ts +2 -1
  97. package/esm/FunnelChart/curves/bump.d.ts +9 -5
  98. package/esm/FunnelChart/curves/bump.js +72 -43
  99. package/esm/FunnelChart/curves/curve.types.d.ts +6 -1
  100. package/esm/FunnelChart/curves/getFunnelCurve.js +3 -0
  101. package/esm/FunnelChart/curves/linear.d.ts +10 -2
  102. package/esm/FunnelChart/curves/linear.js +97 -17
  103. package/esm/FunnelChart/curves/pyramid.js +10 -14
  104. package/esm/FunnelChart/curves/step-pyramid.js +4 -6
  105. package/esm/FunnelChart/curves/step.js +1 -15
  106. package/esm/FunnelChart/funnel.types.d.ts +1 -0
  107. package/esm/FunnelChart/funnelAxisPlugin/computeAxisValue.d.ts +25 -0
  108. package/esm/FunnelChart/funnelAxisPlugin/computeAxisValue.js +114 -0
  109. package/esm/FunnelChart/funnelAxisPlugin/useChartFunnelAxis.d.ts +3 -0
  110. package/esm/FunnelChart/funnelAxisPlugin/useChartFunnelAxis.js +165 -0
  111. package/esm/FunnelChart/funnelAxisPlugin/useChartFunnelAxis.types.d.ts +27 -0
  112. package/esm/FunnelChart/funnelAxisPlugin/useChartFunnelAxis.types.js +1 -0
  113. package/esm/FunnelChart/funnelAxisPlugin/useChartFunnelAxisRendering.selectors.d.ts +1482 -0
  114. package/esm/FunnelChart/funnelAxisPlugin/useChartFunnelAxisRendering.selectors.js +20 -0
  115. package/esm/FunnelChart/funnelPlotSlots.types.d.ts +11 -0
  116. package/esm/FunnelChart/funnelSectionClasses.d.ts +2 -0
  117. package/esm/FunnelChart/funnelSectionClasses.js +15 -3
  118. package/esm/FunnelChart/index.d.ts +3 -1
  119. package/esm/FunnelChart/index.js +3 -1
  120. package/esm/FunnelChart/labelUtils.d.ts +3 -2
  121. package/esm/FunnelChart/labelUtils.js +15 -15
  122. package/esm/FunnelChart/positionGetter.d.ts +1 -0
  123. package/esm/FunnelChart/positionGetter.js +1 -0
  124. package/esm/FunnelChart/useFunnelChartProps.js +1 -3
  125. package/esm/Heatmap/Heatmap.d.ts +8 -3
  126. package/esm/Heatmap/Heatmap.js +10 -2
  127. package/esm/Heatmap/HeatmapTooltip/HeatmapTooltipAxesValue.d.ts +1 -1
  128. package/esm/LineChartPro/LineChartPro.d.ts +3 -2
  129. package/esm/LineChartPro/LineChartPro.js +1 -1
  130. package/esm/PieChartPro/PieChartPro.d.ts +22 -0
  131. package/esm/PieChartPro/PieChartPro.js +197 -0
  132. package/esm/PieChartPro/PieChartPro.plugins.d.ts +4 -0
  133. package/esm/PieChartPro/PieChartPro.plugins.js +3 -0
  134. package/esm/PieChartPro/index.d.ts +1 -0
  135. package/esm/PieChartPro/index.js +1 -0
  136. package/esm/RadarChartPro/RadarChartPro.d.ts +17 -2
  137. package/esm/RadarChartPro/RadarChartPro.js +1 -1
  138. package/esm/ScatterChartPro/ScatterChartPro.d.ts +3 -2
  139. package/esm/ScatterChartPro/ScatterChartPro.js +1 -1
  140. package/esm/index.d.ts +1 -0
  141. package/esm/index.js +2 -1
  142. package/index.d.ts +1 -0
  143. package/index.js +12 -1
  144. package/package.json +7 -7
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.selectorFunnelGap = exports.selectorFunnel = exports.selectorChartYAxis = exports.selectorChartXAxis = void 0;
7
+ var _internals = require("@mui/x-charts/internals");
8
+ var _computeAxisValue = require("./computeAxisValue");
9
+ const selectorFunnel = state => state.funnel;
10
+ exports.selectorFunnel = selectorFunnel;
11
+ const selectorFunnelGap = exports.selectorFunnelGap = (0, _internals.createSelector)([selectorFunnel], funnel => funnel?.gap ?? 0);
12
+ const selectorChartXAxis = exports.selectorChartXAxis = (0, _internals.createSelector)([_internals.selectorChartRawXAxis, _internals.selectorChartDrawingArea, _internals.selectorChartSeriesProcessed, _internals.selectorChartSeriesConfig, selectorFunnelGap], (axis, drawingArea, formattedSeries, seriesConfig, gap) => (0, _computeAxisValue.computeAxisValue)({
13
+ drawingArea,
14
+ formattedSeries,
15
+ axis,
16
+ seriesConfig,
17
+ axisDirection: 'x',
18
+ gap
19
+ }));
20
+ const selectorChartYAxis = exports.selectorChartYAxis = (0, _internals.createSelector)([_internals.selectorChartRawYAxis, _internals.selectorChartDrawingArea, _internals.selectorChartSeriesProcessed, _internals.selectorChartSeriesConfig, selectorFunnelGap], (axis, drawingArea, formattedSeries, seriesConfig, gap) => (0, _computeAxisValue.computeAxisValue)({
21
+ drawingArea,
22
+ formattedSeries,
23
+ axis,
24
+ seriesConfig,
25
+ axisDirection: 'y',
26
+ gap
27
+ }));
@@ -1,10 +1,21 @@
1
1
  import * as React from 'react';
2
2
  import type { FunnelSectionProps } from "./FunnelSection.js";
3
+ import { FunnelSectionLabelProps } from "./FunnelSectionLabel.js";
3
4
  export interface FunnelPlotSlots {
5
+ /**
6
+ * Custom component for funnel section.
7
+ * @default FunnelSection
8
+ */
4
9
  funnelSection?: React.ElementType<FunnelSectionProps>;
10
+ /**
11
+ * Custom component for funnel section label.
12
+ * @default FunnelSectionLabel
13
+ */
14
+ funnelSectionLabel?: React.ElementType<FunnelSectionLabelProps>;
5
15
  }
6
16
  export interface FunnelPlotSlotProps {
7
17
  funnelSection?: FunnelSectionProps;
18
+ funnelSectionLabel?: FunnelSectionLabelProps;
8
19
  }
9
20
  export interface FunnelPlotSlotExtension {
10
21
  /**
@@ -1,4 +1,5 @@
1
1
  import type { FunnelSectionProps } from "./FunnelSection.js";
2
+ import type { FunnelSectionLabelProps } from "./FunnelSectionLabel.js";
2
3
  export interface FunnelSectionClasses {
3
4
  /** Styles applied to the root element. */
4
5
  root: string;
@@ -19,4 +20,5 @@ export interface FunnelSectionClasses {
19
20
  series: string;
20
21
  }
21
22
  export declare const useUtilityClasses: (props: FunnelSectionProps) => Record<"label" | "filled" | "outlined" | "highlighted" | "faded" | "root", string>;
23
+ export declare const useLabelUtilityClasses: (props: FunnelSectionLabelProps) => Record<"label", string>;
22
24
  export declare const funnelSectionClasses: FunnelSectionClasses;
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.useUtilityClasses = exports.funnelSectionClasses = void 0;
7
+ exports.useUtilityClasses = exports.useLabelUtilityClasses = exports.funnelSectionClasses = void 0;
8
8
  var _generateUtilityClass = _interopRequireDefault(require("@mui/utils/generateUtilityClass"));
9
9
  var _generateUtilityClasses = _interopRequireDefault(require("@mui/utils/generateUtilityClasses"));
10
10
  var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
@@ -15,10 +15,11 @@ const useUtilityClasses = props => {
15
15
  const {
16
16
  classes,
17
17
  seriesId,
18
- variant
18
+ variant,
19
+ dataIndex
19
20
  } = props;
20
21
  const slots = {
21
- root: ['root', `series-${seriesId}`],
22
+ root: ['root', `series-${seriesId}`, `data-index-${dataIndex}`],
22
23
  highlighted: ['highlighted'],
23
24
  faded: ['faded'],
24
25
  outlined: variant === 'outlined' ? ['outlined'] : [],
@@ -28,4 +29,16 @@ const useUtilityClasses = props => {
28
29
  return (0, _composeClasses.default)(slots, getFunnelSectionUtilityClass, classes);
29
30
  };
30
31
  exports.useUtilityClasses = useUtilityClasses;
31
- const funnelSectionClasses = exports.funnelSectionClasses = (0, _generateUtilityClasses.default)('MuiFunnelSection', ['root', 'highlighted', 'faded', 'filled', 'outlined', 'label', 'series']);
32
+ const useLabelUtilityClasses = props => {
33
+ const {
34
+ classes,
35
+ seriesId,
36
+ dataIndex
37
+ } = props;
38
+ const slots = {
39
+ label: ['label', `series-${seriesId}`, `data-index-${dataIndex}`]
40
+ };
41
+ return (0, _composeClasses.default)(slots, getFunnelSectionUtilityClass, classes);
42
+ };
43
+ exports.useLabelUtilityClasses = useLabelUtilityClasses;
44
+ const funnelSectionClasses = exports.funnelSectionClasses = (0, _generateUtilityClasses.default)('MuiFunnelSection', ['root', 'highlighted', 'faded', 'filled', 'outlined', 'label', 'series', 'data-index']);
@@ -6,4 +6,6 @@ export * from "./categoryAxis.types.js";
6
6
  export * from "./funnelSlots.types.js";
7
7
  export type { FunnelCurveType } from "./curves/index.js";
8
8
  export { funnelSectionClasses } from "./funnelSectionClasses.js";
9
- export type { FunnelSectionClasses } from "./funnelSectionClasses.js";
9
+ export type { FunnelSectionClasses } from "./funnelSectionClasses.js";
10
+ export { FunnelSection } from "./FunnelSection.js";
11
+ export { FunnelSectionLabel } from "./FunnelSectionLabel.js";
@@ -5,8 +5,22 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  var _exportNames = {
7
7
  Unstable_FunnelChart: true,
8
- funnelSectionClasses: true
8
+ funnelSectionClasses: true,
9
+ FunnelSection: true,
10
+ FunnelSectionLabel: true
9
11
  };
12
+ Object.defineProperty(exports, "FunnelSection", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _FunnelSection.FunnelSection;
16
+ }
17
+ });
18
+ Object.defineProperty(exports, "FunnelSectionLabel", {
19
+ enumerable: true,
20
+ get: function () {
21
+ return _FunnelSectionLabel.FunnelSectionLabel;
22
+ }
23
+ });
10
24
  Object.defineProperty(exports, "Unstable_FunnelChart", {
11
25
  enumerable: true,
12
26
  get: function () {
@@ -68,4 +82,6 @@ Object.keys(_funnelSlots).forEach(function (key) {
68
82
  }
69
83
  });
70
84
  });
71
- var _funnelSectionClasses = require("./funnelSectionClasses");
85
+ var _funnelSectionClasses = require("./funnelSectionClasses");
86
+ var _FunnelSection = require("./FunnelSection");
87
+ var _FunnelSectionLabel = require("./FunnelSectionLabel");
@@ -1,4 +1,5 @@
1
1
  import { FunnelDataPoints, FunnelLabelOptions } from "./funnel.types.js";
2
+ import { PositionGetter } from "./positionGetter.js";
2
3
  /**
3
4
  * It tries to keep the label inside the bounds of the section based on the position.
4
5
  *
@@ -30,8 +31,8 @@ export declare const positionLabel: ({
30
31
  dataIndex,
31
32
  baseScaleData
32
33
  }: Omit<FunnelLabelOptions, "textAnchor" | "dominantBaseline"> & {
33
- xPosition: (value: number, bandIndex: number, stackOffset?: number, useBand?: boolean) => number | undefined;
34
- yPosition: (value: number, bandIndex: number, stackOffset?: number, useBand?: boolean) => number | undefined;
34
+ xPosition: PositionGetter;
35
+ yPosition: PositionGetter;
35
36
  isHorizontal: boolean;
36
37
  values: readonly FunnelDataPoints[];
37
38
  dataIndex: number;
@@ -80,28 +80,28 @@ const positionLabel = ({
80
80
  minBottom = yPosition(values[2].y, baseScaleData[dataIndex], stackOffset) + mv;
81
81
  maxBottom = yPosition(values[3].y, baseScaleData[dataIndex], stackOffset) + mv;
82
82
  minRight = 0;
83
- maxRight = xPosition(Math.min(...values.map(v => v.x)), baseScaleData[dataIndex], stackOffset, true) + mh;
83
+ maxRight = xPosition(Math.min(...values.map(v => v.x)), dataIndex, baseScaleData[dataIndex], stackOffset, true) + mh;
84
84
  minLeft = 0;
85
- maxLeft = xPosition(Math.max(...values.map(v => v.x)), baseScaleData[dataIndex], stackOffset) + mh;
85
+ maxLeft = xPosition(Math.max(...values.map(v => v.x)), dataIndex, baseScaleData[dataIndex], stackOffset) + mh;
86
86
  center = maxRight - (maxRight - maxLeft) / 2;
87
87
  leftCenter = 0;
88
88
  rightCenter = 0;
89
- middle = yPosition(0, baseScaleData[dataIndex], stackOffset) - mv;
90
- topMiddle = yPosition(values[0].y - (values[0].y - values[1].y) / 2, baseScaleData[dataIndex], stackOffset) - mv;
91
- bottomMiddle = yPosition(values[3].y - (values[3].y - values[2].y) / 2, baseScaleData[dataIndex], stackOffset) + mv;
89
+ middle = yPosition(0, dataIndex, baseScaleData[dataIndex], stackOffset) - mv;
90
+ topMiddle = yPosition(values[0].y - (values[0].y - values[1].y) / 2, dataIndex, baseScaleData[dataIndex], stackOffset) - mv;
91
+ bottomMiddle = yPosition(values[3].y - (values[3].y - values[2].y) / 2, dataIndex, baseScaleData[dataIndex], stackOffset) + mv;
92
92
  } else {
93
93
  minTop = 0;
94
- maxTop = yPosition(Math.max(...values.map(v => v.y)), baseScaleData[dataIndex], stackOffset) - mv;
94
+ maxTop = yPosition(Math.max(...values.map(v => v.y)), dataIndex, baseScaleData[dataIndex], stackOffset) - mv;
95
95
  minBottom = 0;
96
- maxBottom = yPosition(Math.min(...values.map(v => v.y)), baseScaleData[dataIndex], stackOffset, true) - mv;
97
- maxRight = xPosition(values[0].x, baseScaleData[dataIndex], stackOffset) + mh;
98
- minRight = xPosition(values[1].x, baseScaleData[dataIndex], stackOffset) + mh;
99
- minLeft = xPosition(values[2].x, baseScaleData[dataIndex], stackOffset) - mh;
100
- maxLeft = xPosition(values[3].x, baseScaleData[dataIndex], stackOffset) - mh;
101
- center = xPosition(0, baseScaleData[dataIndex], stackOffset) - mh;
102
- rightCenter = xPosition(values[0].x - (values[0].x - values[1].x) / 2, baseScaleData[dataIndex], stackOffset) + mh;
103
- leftCenter = xPosition(values[3].x - (values[3].x - values[2].x) / 2, baseScaleData[dataIndex], stackOffset) - mh;
104
- middle = yPosition(values[0].y - (values[0].y - values[1].y) / 2, baseScaleData[dataIndex], stackOffset);
96
+ maxBottom = yPosition(Math.min(...values.map(v => v.y)), dataIndex, baseScaleData[dataIndex], stackOffset, true) - mv;
97
+ maxRight = xPosition(values[0].x, dataIndex, baseScaleData[dataIndex], stackOffset) + mh;
98
+ minRight = xPosition(values[1].x, dataIndex, baseScaleData[dataIndex], stackOffset) + mh;
99
+ minLeft = xPosition(values[2].x, dataIndex, baseScaleData[dataIndex], stackOffset) - mh;
100
+ maxLeft = xPosition(values[3].x, dataIndex, baseScaleData[dataIndex], stackOffset) - mh;
101
+ center = xPosition(0, dataIndex, baseScaleData[dataIndex], stackOffset) - mh;
102
+ rightCenter = xPosition(values[0].x - (values[0].x - values[1].x) / 2, dataIndex, baseScaleData[dataIndex], stackOffset) + mh;
103
+ leftCenter = xPosition(values[3].x - (values[3].x - values[2].x) / 2, dataIndex, baseScaleData[dataIndex], stackOffset) - mh;
104
+ middle = yPosition(values[0].y - (values[0].y - values[1].y) / 2, dataIndex, baseScaleData[dataIndex], stackOffset);
105
105
  middle = maxTop - (maxTop - maxBottom) / 2;
106
106
  topMiddle = 0;
107
107
  bottomMiddle = 0;
@@ -0,0 +1 @@
1
+ export type PositionGetter = (value: number, bandIndex: number, bandIdentifier: string | number, stackOffset?: number, useBand?: boolean) => number;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -91,8 +91,7 @@ const useFunnelChartProps = props => {
91
91
  onHighlightChange,
92
92
  className,
93
93
  axisHighlight,
94
- apiRef,
95
- gap
94
+ apiRef
96
95
  } = props,
97
96
  rest = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
98
97
  const margin = (0, _internals.defaultizeMargin)(marginProps, _constants.DEFAULT_MARGINS);
@@ -124,7 +123,6 @@ const useFunnelChartProps = props => {
124
123
  plugins: _FunnelChart.FUNNEL_CHART_PLUGINS
125
124
  });
126
125
  const funnelPlotProps = {
127
- gap,
128
126
  onItemClick,
129
127
  slots,
130
128
  slotProps
@@ -5,14 +5,14 @@ import { ChartsTooltipProps } from '@mui/x-charts/ChartsTooltip';
5
5
  import { ChartsAxisSlots, ChartsAxisSlotProps, XAxis, YAxis } from '@mui/x-charts/internals';
6
6
  import { ChartsOverlayProps, ChartsOverlaySlotProps, ChartsOverlaySlots } from '@mui/x-charts/ChartsOverlay';
7
7
  import { ChartsLegendSlotProps, ChartsLegendSlots } from '@mui/x-charts/ChartsLegend';
8
- import { ChartsToolbarSlotProps, ChartsToolbarSlots } from '@mui/x-charts/Toolbar';
9
8
  import { ChartsSlotPropsPro, ChartsSlotsPro } from "../internals/material/index.js";
10
9
  import { ChartContainerProProps } from "../ChartContainerPro/index.js";
11
10
  import { HeatmapSeriesType } from "../models/seriesType/heatmap.js";
12
11
  import { HeatmapTooltipProps } from "./HeatmapTooltip/index.js";
13
12
  import { HeatmapItemSlotProps, HeatmapItemSlots } from "./HeatmapItem.js";
14
13
  import { HeatmapPluginsSignatures } from "./Heatmap.plugins.js";
15
- export interface HeatmapSlots extends ChartsAxisSlots, ChartsOverlaySlots, HeatmapItemSlots, ChartsToolbarSlots, Partial<ChartsSlotsPro> {
14
+ import { ChartsToolbarProSlotProps, ChartsToolbarProSlots } from "../ChartsToolbarPro/Toolbar.types.js";
15
+ export interface HeatmapSlots extends ChartsAxisSlots, ChartsOverlaySlots, HeatmapItemSlots, ChartsToolbarProSlots, Partial<ChartsSlotsPro> {
16
16
  /**
17
17
  * Custom component for the tooltip.
18
18
  * @default ChartsTooltipRoot
@@ -24,7 +24,7 @@ export interface HeatmapSlots extends ChartsAxisSlots, ChartsOverlaySlots, Heatm
24
24
  */
25
25
  legend?: ChartsLegendSlots['legend'];
26
26
  }
27
- export interface HeatmapSlotProps extends ChartsAxisSlotProps, ChartsOverlaySlotProps, HeatmapItemSlotProps, ChartsLegendSlotProps, ChartsToolbarSlotProps, Partial<ChartsSlotPropsPro> {
27
+ export interface HeatmapSlotProps extends ChartsAxisSlotProps, ChartsOverlaySlotProps, HeatmapItemSlotProps, ChartsLegendSlotProps, ChartsToolbarProSlotProps, Partial<ChartsSlotPropsPro> {
28
28
  tooltip?: Partial<HeatmapTooltipProps>;
29
29
  }
30
30
  export interface HeatmapProps extends Omit<ChartContainerProProps<'heatmap', HeatmapPluginsSignatures>, 'series' | 'plugins' | 'xAxis' | 'yAxis' | 'skipAnimation' | 'slots' | 'slotProps'>, Omit<ChartsAxisProps, 'slots' | 'slotProps'>, Omit<ChartsOverlayProps, 'slots' | 'slotProps'> {
@@ -55,6 +55,11 @@ export interface HeatmapProps extends Omit<ChartContainerProProps<'heatmap', Hea
55
55
  * @default true
56
56
  */
57
57
  hideLegend?: boolean;
58
+ /**
59
+ * If true, shows the default chart toolbar.
60
+ * @default false
61
+ */
62
+ showToolbar?: boolean;
58
63
  /**
59
64
  * Overridable component slots.
60
65
  * @default {}
@@ -25,6 +25,7 @@ var _seriesConfig = require("./seriesConfig");
25
25
  var _HeatmapTooltip = require("./HeatmapTooltip");
26
26
  var _Heatmap2 = require("./Heatmap.plugins");
27
27
  var _ChartDataProviderPro = require("../ChartDataProviderPro");
28
+ var _ChartsToolbarPro = require("../ChartsToolbarPro");
28
29
  var _jsxRuntime = require("react/jsx-runtime");
29
30
  // The GnBu: https://github.com/d3/d3-scale-chromatic/blob/main/src/sequential-multi/GnBu.js
30
31
  const defaultColorMap = (0, _d3Interpolate.interpolateRgbBasis)(['#f7fcf0', '#e0f3db', '#ccebc5', '#a8ddb5', '#7bccc4', '#4eb3d3', '#2b8cbe', '#0868ac', '#084081']);
@@ -65,7 +66,8 @@ const Heatmap = exports.Heatmap = /*#__PURE__*/React.forwardRef(function Heatmap
65
66
  loading,
66
67
  highlightedItem,
67
68
  onHighlightChange,
68
- hideLegend = true
69
+ hideLegend = true,
70
+ showToolbar = false
69
71
  } = props;
70
72
  const id = (0, _useId.default)();
71
73
  const clipPathId = `${id}-clip-path`;
@@ -99,6 +101,7 @@ const Heatmap = exports.Heatmap = /*#__PURE__*/React.forwardRef(function Heatmap
99
101
  legendDirection: props.slotProps?.legend?.direction
100
102
  };
101
103
  const Tooltip = slots?.tooltip ?? _HeatmapTooltip.HeatmapTooltip;
104
+ const Toolbar = slots?.toolbar ?? _ChartsToolbarPro.ChartsToolbarPro;
102
105
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartDataProviderPro.ChartDataProviderPro, {
103
106
  apiRef: apiRef,
104
107
  seriesConfig: seriesConfig,
@@ -119,7 +122,7 @@ const Heatmap = exports.Heatmap = /*#__PURE__*/React.forwardRef(function Heatmap
119
122
  onAxisClick: onAxisClick,
120
123
  plugins: _Heatmap2.HEATMAP_PLUGINS,
121
124
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_internals.ChartsWrapper, (0, _extends2.default)({}, chartsWrapperProps, {
122
- children: [!hideLegend && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsLegend.ChartsLegend, {
125
+ children: [showToolbar ? /*#__PURE__*/(0, _jsxRuntime.jsx)(Toolbar, (0, _extends2.default)({}, props.slotProps?.toolbar)) : null, !hideLegend && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsLegend.ChartsLegend, {
123
126
  slots: (0, _extends2.default)({}, slots, {
124
127
  legend: slots?.legend ?? _ChartsLegend.ContinuousColorLegend
125
128
  }),
@@ -251,6 +254,11 @@ process.env.NODE_ENV !== "production" ? Heatmap.propTypes = {
251
254
  * @ignore Unstable props for internal usage.
252
255
  */
253
256
  seriesConfig: _propTypes.default.object,
257
+ /**
258
+ * If true, shows the default chart toolbar.
259
+ * @default false
260
+ */
261
+ showToolbar: _propTypes.default.bool,
254
262
  /**
255
263
  * The props used for each component slot.
256
264
  * @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>>, {}>;
@@ -1,10 +1,11 @@
1
1
  import * as React from 'react';
2
2
  import { LineChartProps, LineChartSlots, LineChartSlotProps } from '@mui/x-charts/LineChart';
3
+ import { ChartsToolbarProSlotProps, ChartsToolbarProSlots } from "../ChartsToolbarPro/Toolbar.types.js";
3
4
  import { ChartsSlotPropsPro, ChartsSlotsPro } from "../internals/material/index.js";
4
5
  import { ChartContainerProProps } from "../ChartContainerPro/index.js";
5
6
  import { LineChartProPluginsSignatures } from "./LineChartPro.plugins.js";
6
- export interface LineChartProSlots extends LineChartSlots, Partial<ChartsSlotsPro> {}
7
- export interface LineChartProSlotProps extends LineChartSlotProps, Partial<ChartsSlotPropsPro> {}
7
+ export interface LineChartProSlots extends Omit<LineChartSlots, 'toolbar'>, ChartsToolbarProSlots, Partial<ChartsSlotsPro> {}
8
+ export interface LineChartProSlotProps extends Omit<LineChartSlotProps, 'toolbar'>, ChartsToolbarProSlotProps, Partial<ChartsSlotPropsPro> {}
8
9
  export interface LineChartProProps extends Omit<LineChartProps, 'apiRef' | 'slots' | 'slotProps'>, Omit<ChartContainerProProps<'line', LineChartProPluginsSignatures>, 'series' | 'plugins' | 'seriesConfig' | 'slots' | 'slotProps'> {
9
10
  /**
10
11
  * Overridable component slots.
@@ -82,7 +82,7 @@ const LineChartPro = exports.LineChartPro = /*#__PURE__*/React.forwardRef(functi
82
82
  const Toolbar = props.slots?.toolbar ?? _ChartsToolbarPro.ChartsToolbarPro;
83
83
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartDataProviderPro.ChartDataProviderPro, (0, _extends2.default)({}, chartDataProviderProProps, {
84
84
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_internals.ChartsWrapper, (0, _extends2.default)({}, chartsWrapperProps, {
85
- children: [showToolbar ? /*#__PURE__*/(0, _jsxRuntime.jsx)(Toolbar, {}) : null, !props.hideLegend && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsLegend.ChartsLegend, (0, _extends2.default)({}, legendProps)), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_ChartsSurface.ChartsSurface, (0, _extends2.default)({}, chartsSurfaceProps, {
85
+ 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, {
86
86
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsGrid.ChartsGrid, (0, _extends2.default)({}, gridProps)), /*#__PURE__*/(0, _jsxRuntime.jsxs)("g", (0, _extends2.default)({}, clipPathGroupProps, {
87
87
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_LineChart.AreaPlot, (0, _extends2.default)({}, areaPlotProps)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_LineChart.LinePlot, (0, _extends2.default)({}, linePlotProps)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsOverlay.ChartsOverlay, (0, _extends2.default)({}, overlayProps)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsAxisHighlight.ChartsAxisHighlight, (0, _extends2.default)({}, axisHighlightProps))]
88
88
  })), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsAxis.ChartsAxis, (0, _extends2.default)({}, chartsAxisProps)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartZoomSlider.ChartZoomSlider, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)("g", {
@@ -0,0 +1,22 @@
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
+ import { ChartsToolbarProSlotProps, ChartsToolbarProSlots } from "../ChartsToolbarPro/Toolbar.types.js";
7
+ export interface PieChartProSlots extends Omit<PieChartSlots, 'toolbar'>, ChartsToolbarProSlots, Partial<ChartsSlotsPro> {}
8
+ export interface PieChartProSlotProps extends Omit<PieChartSlotProps, 'toolbar'>, ChartsToolbarProSlotProps, Partial<ChartsSlotPropsPro> {}
9
+ export interface PieChartProProps extends Omit<PieChartProps, 'apiRef' | 'slots' | 'slotProps'>, Omit<ChartContainerProProps<'pie', PieChartProPluginSignatures>, 'series' | 'plugins' | 'seriesConfig' | 'slots' | 'slotProps'> {
10
+ /**
11
+ * Overridable component slots.
12
+ * @default {}
13
+ */
14
+ slots?: PieChartProSlots;
15
+ /**
16
+ * The props used for each component slot.
17
+ * @default {}
18
+ */
19
+ slotProps?: PieChartProSlotProps;
20
+ }
21
+ declare const PieChartPro: React.ForwardRefExoticComponent<PieChartProProps & React.RefAttributes<SVGSVGElement>>;
22
+ export { PieChartPro };
@@ -0,0 +1,204 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.PieChartPro = void 0;
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/internals");
12
+ var _propTypes = _interopRequireDefault(require("prop-types"));
13
+ var _styles = require("@mui/material/styles");
14
+ var _ChartsOverlay = require("@mui/x-charts/ChartsOverlay");
15
+ var React = _interopRequireWildcard(require("react"));
16
+ var _ChartsTooltip = require("@mui/x-charts/ChartsTooltip");
17
+ var _ChartsLegend = require("@mui/x-charts/ChartsLegend");
18
+ var _ChartsSurface = require("@mui/x-charts/ChartsSurface");
19
+ var _PieChart = require("@mui/x-charts/PieChart");
20
+ var _useChartContainerProProps = require("../ChartContainerPro/useChartContainerProProps");
21
+ var _ChartDataProviderPro = require("../ChartDataProviderPro");
22
+ var _ChartsToolbarPro = require("../ChartsToolbarPro");
23
+ var _PieChartPro2 = require("./PieChartPro.plugins");
24
+ var _jsxRuntime = require("react/jsx-runtime");
25
+ const _excluded = ["series", "width", "height", "margin", "colors", "sx", "skipAnimation", "hideLegend", "children", "slots", "slotProps", "onItemClick", "loading", "highlightedItem", "onHighlightChange", "className", "showToolbar"];
26
+ const PieChartPro = exports.PieChartPro = /*#__PURE__*/React.forwardRef(function PieChartPro(inProps, ref) {
27
+ const props = (0, _styles.useThemeProps)({
28
+ props: inProps,
29
+ name: 'MuiPieChartPro'
30
+ });
31
+ const {
32
+ series,
33
+ width,
34
+ height,
35
+ margin: marginProps,
36
+ colors,
37
+ sx,
38
+ skipAnimation,
39
+ hideLegend,
40
+ children,
41
+ slots,
42
+ slotProps,
43
+ onItemClick,
44
+ loading,
45
+ highlightedItem,
46
+ onHighlightChange,
47
+ className,
48
+ showToolbar
49
+ } = props,
50
+ other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
51
+ const margin = (0, _internals.defaultizeMargin)(marginProps, _internals.DEFAULT_PIE_CHART_MARGIN);
52
+ const {
53
+ chartDataProviderProProps,
54
+ chartsSurfaceProps
55
+ } = (0, _useChartContainerProProps.useChartContainerProProps)((0, _extends2.default)({}, other, {
56
+ series: series.map(s => (0, _extends2.default)({
57
+ type: 'pie'
58
+ }, s)),
59
+ width,
60
+ height,
61
+ margin,
62
+ colors,
63
+ highlightedItem,
64
+ onHighlightChange,
65
+ className,
66
+ skipAnimation,
67
+ plugins: _PieChartPro2.PIE_CHART_PRO_PLUGINS
68
+ }), ref);
69
+ const Tooltip = slots?.tooltip ?? _ChartsTooltip.ChartsTooltip;
70
+ const Toolbar = props.slots?.toolbar ?? _ChartsToolbarPro.ChartsToolbarPro;
71
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartDataProviderPro.ChartDataProviderPro, (0, _extends2.default)({}, chartDataProviderProProps, {
72
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_internals.ChartsWrapper, {
73
+ legendPosition: props.slotProps?.legend?.position,
74
+ legendDirection: props?.slotProps?.legend?.direction ?? 'vertical',
75
+ sx: sx,
76
+ children: [showToolbar ? /*#__PURE__*/(0, _jsxRuntime.jsx)(Toolbar, {}) : null, !hideLegend && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsLegend.ChartsLegend, {
77
+ direction: props?.slotProps?.legend?.direction ?? 'vertical',
78
+ slots: slots,
79
+ slotProps: slotProps
80
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_ChartsSurface.ChartsSurface, (0, _extends2.default)({}, chartsSurfaceProps, {
81
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_PieChart.PiePlot, {
82
+ slots: slots,
83
+ slotProps: slotProps,
84
+ onItemClick: onItemClick
85
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsOverlay.ChartsOverlay, {
86
+ loading: loading,
87
+ slots: slots,
88
+ slotProps: slotProps
89
+ }), children]
90
+ })), !loading && /*#__PURE__*/(0, _jsxRuntime.jsx)(Tooltip, (0, _extends2.default)({
91
+ trigger: "item"
92
+ }, slotProps?.tooltip))]
93
+ })
94
+ }));
95
+ });
96
+ if (process.env.NODE_ENV !== "production") PieChartPro.displayName = "PieChartPro";
97
+ process.env.NODE_ENV !== "production" ? PieChartPro.propTypes = {
98
+ // ----------------------------- Warning --------------------------------
99
+ // | These PropTypes are generated from the TypeScript type definitions |
100
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
101
+ // ----------------------------------------------------------------------
102
+ apiRef: _propTypes.default.shape({
103
+ current: _propTypes.default.shape({
104
+ exportAsImage: _propTypes.default.func.isRequired,
105
+ exportAsPrint: _propTypes.default.func.isRequired
106
+ })
107
+ }),
108
+ children: _propTypes.default.node,
109
+ className: _propTypes.default.string,
110
+ /**
111
+ * Color palette used to colorize multiple series.
112
+ * @default rainbowSurgePalette
113
+ */
114
+ colors: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string), _propTypes.default.func]),
115
+ /**
116
+ * An array of objects that can be used to populate series and axes data using their `dataKey` property.
117
+ */
118
+ dataset: _propTypes.default.arrayOf(_propTypes.default.object),
119
+ desc: _propTypes.default.string,
120
+ /**
121
+ * The height of the chart in px. If not defined, it takes the height of the parent element.
122
+ */
123
+ height: _propTypes.default.number,
124
+ /**
125
+ * If `true`, the legend is not rendered.
126
+ */
127
+ hideLegend: _propTypes.default.bool,
128
+ /**
129
+ * The highlighted item.
130
+ * Used when the highlight is controlled.
131
+ */
132
+ highlightedItem: _propTypes.default.shape({
133
+ dataIndex: _propTypes.default.number,
134
+ seriesId: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]).isRequired
135
+ }),
136
+ /**
137
+ * This prop is used to help implement the accessibility logic.
138
+ * If you don't provide this prop. It falls back to a randomly generated id.
139
+ */
140
+ id: _propTypes.default.string,
141
+ /**
142
+ * If `true`, a loading overlay is displayed.
143
+ * @default false
144
+ */
145
+ loading: _propTypes.default.bool,
146
+ /**
147
+ * Localized text for chart components.
148
+ */
149
+ localeText: _propTypes.default.object,
150
+ /**
151
+ * The margin between the SVG and the drawing area.
152
+ * It's used for leaving some space for extra information such as the x- and y-axis or legend.
153
+ *
154
+ * Accepts a `number` to be used on all sides or an object with the optional properties: `top`, `bottom`, `left`, and `right`.
155
+ */
156
+ margin: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.shape({
157
+ bottom: _propTypes.default.number,
158
+ left: _propTypes.default.number,
159
+ right: _propTypes.default.number,
160
+ top: _propTypes.default.number
161
+ })]),
162
+ /**
163
+ * The callback fired when the highlighted item changes.
164
+ *
165
+ * @param {HighlightItemData | null} highlightedItem The newly highlighted item.
166
+ */
167
+ onHighlightChange: _propTypes.default.func,
168
+ /**
169
+ * Callback fired when a pie arc is clicked.
170
+ */
171
+ onItemClick: _propTypes.default.func,
172
+ /**
173
+ * The series to display in the pie chart.
174
+ * An array of [[PieSeriesType]] objects.
175
+ */
176
+ series: _propTypes.default.arrayOf(_propTypes.default.object).isRequired,
177
+ /**
178
+ * If true, shows the default chart toolbar.
179
+ * @default false
180
+ */
181
+ showToolbar: _propTypes.default.bool,
182
+ /**
183
+ * If `true`, animations are skipped.
184
+ * If unset or `false`, the animations respects the user's `prefers-reduced-motion` setting.
185
+ */
186
+ skipAnimation: _propTypes.default.bool,
187
+ /**
188
+ * The props used for each component slot.
189
+ * @default {}
190
+ */
191
+ slotProps: _propTypes.default.object,
192
+ /**
193
+ * Overridable component slots.
194
+ * @default {}
195
+ */
196
+ slots: _propTypes.default.object,
197
+ sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object]),
198
+ theme: _propTypes.default.oneOf(['dark', 'light']),
199
+ title: _propTypes.default.string,
200
+ /**
201
+ * The width of the chart in px. If not defined, it takes the width of the parent element.
202
+ */
203
+ width: _propTypes.default.number
204
+ } : void 0;
@@ -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,9 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.PIE_CHART_PRO_PLUGINS = void 0;
7
+ var _internals = require("@mui/x-charts/internals");
8
+ var _useChartProExport = require("../internals/plugins/useChartProExport");
9
+ const PIE_CHART_PRO_PLUGINS = exports.PIE_CHART_PRO_PLUGINS = [..._internals.PIE_CHART_PLUGINS, _useChartProExport.useChartProExport];
@@ -0,0 +1 @@
1
+ export * from "./PieChartPro.js";
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _PieChartPro = require("./PieChartPro");
7
+ Object.keys(_PieChartPro).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _PieChartPro[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _PieChartPro[key];
14
+ }
15
+ });
16
+ });