@mui/x-charts-pro 8.9.2 → 8.10.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 (36) hide show
  1. package/BarChartPro/BarChartPro.js +20 -0
  2. package/CHANGELOG.md +217 -6
  3. package/ChartDataProviderPro/ChartDataProviderPro.js +1 -1
  4. package/FunnelChart/FunnelChart.js +2 -2
  5. package/FunnelChart/curves/bump.js +10 -11
  6. package/FunnelChart/curves/linear.js +16 -17
  7. package/FunnelChart/curves/pyramid.js +15 -16
  8. package/FunnelChart/curves/step-pyramid.js +15 -16
  9. package/FunnelChart/curves/step.js +7 -8
  10. package/FunnelChart/funnelSlots.types.d.ts +8 -2
  11. package/FunnelChart/index.d.ts +5 -1
  12. package/FunnelChart/index.js +14 -7
  13. package/Heatmap/Heatmap.js +10 -0
  14. package/LineChartPro/LineChartPro.js +20 -0
  15. package/ScatterChartPro/ScatterChartPro.d.ts +8 -1
  16. package/ScatterChartPro/ScatterChartPro.js +22 -2
  17. package/esm/BarChartPro/BarChartPro.js +20 -0
  18. package/esm/ChartDataProviderPro/ChartDataProviderPro.js +1 -1
  19. package/esm/FunnelChart/FunnelChart.js +2 -2
  20. package/esm/FunnelChart/curves/bump.js +10 -11
  21. package/esm/FunnelChart/curves/linear.js +16 -17
  22. package/esm/FunnelChart/curves/pyramid.js +15 -16
  23. package/esm/FunnelChart/curves/step-pyramid.js +15 -16
  24. package/esm/FunnelChart/curves/step.js +7 -8
  25. package/esm/FunnelChart/funnelSlots.types.d.ts +8 -2
  26. package/esm/FunnelChart/index.d.ts +5 -1
  27. package/esm/FunnelChart/index.js +7 -1
  28. package/esm/Heatmap/Heatmap.js +10 -0
  29. package/esm/LineChartPro/LineChartPro.js +20 -0
  30. package/esm/ScatterChartPro/ScatterChartPro.d.ts +8 -1
  31. package/esm/ScatterChartPro/ScatterChartPro.js +22 -2
  32. package/esm/index.js +1 -1
  33. package/esm/internals/plugins/allPlugins.d.ts +2 -2
  34. package/index.js +1 -1
  35. package/internals/plugins/allPlugins.d.ts +2 -2
  36. package/package.json +18 -20
@@ -313,6 +313,11 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
313
313
  disableTicks: _propTypes.default.bool,
314
314
  domainLimit: _propTypes.default.oneOfType([_propTypes.default.oneOf(['nice', 'strict']), _propTypes.default.func]),
315
315
  fill: _propTypes.default.string,
316
+ groups: _propTypes.default.arrayOf(_propTypes.default.shape({
317
+ getValue: _propTypes.default.func.isRequired,
318
+ tickLabelStyle: _propTypes.default.object,
319
+ tickSize: _propTypes.default.number
320
+ })),
316
321
  height: _propTypes.default.number,
317
322
  hideTooltip: _propTypes.default.bool,
318
323
  id: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
@@ -379,6 +384,11 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
379
384
  disableTicks: _propTypes.default.bool,
380
385
  domainLimit: _propTypes.default.oneOfType([_propTypes.default.oneOf(['nice', 'strict']), _propTypes.default.func]),
381
386
  fill: _propTypes.default.string,
387
+ groups: _propTypes.default.arrayOf(_propTypes.default.shape({
388
+ getValue: _propTypes.default.func.isRequired,
389
+ tickLabelStyle: _propTypes.default.object,
390
+ tickSize: _propTypes.default.number
391
+ })),
382
392
  height: _propTypes.default.number,
383
393
  hideTooltip: _propTypes.default.bool,
384
394
  id: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
@@ -881,6 +891,11 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
881
891
  disableTicks: _propTypes.default.bool,
882
892
  domainLimit: _propTypes.default.oneOfType([_propTypes.default.oneOf(['nice', 'strict']), _propTypes.default.func]),
883
893
  fill: _propTypes.default.string,
894
+ groups: _propTypes.default.arrayOf(_propTypes.default.shape({
895
+ getValue: _propTypes.default.func.isRequired,
896
+ tickLabelStyle: _propTypes.default.object,
897
+ tickSize: _propTypes.default.number
898
+ })),
884
899
  hideTooltip: _propTypes.default.bool,
885
900
  id: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
886
901
  ignoreTooltip: _propTypes.default.bool,
@@ -946,6 +961,11 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
946
961
  disableTicks: _propTypes.default.bool,
947
962
  domainLimit: _propTypes.default.oneOfType([_propTypes.default.oneOf(['nice', 'strict']), _propTypes.default.func]),
948
963
  fill: _propTypes.default.string,
964
+ groups: _propTypes.default.arrayOf(_propTypes.default.shape({
965
+ getValue: _propTypes.default.func.isRequired,
966
+ tickLabelStyle: _propTypes.default.object,
967
+ tickSize: _propTypes.default.number
968
+ })),
949
969
  hideTooltip: _propTypes.default.bool,
950
970
  id: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
951
971
  ignoreTooltip: _propTypes.default.bool,
@@ -1,11 +1,18 @@
1
1
  import * as React from 'react';
2
2
  import { ScatterChartProps, ScatterChartSlotProps, ScatterChartSlots } from '@mui/x-charts/ScatterChart';
3
+ import { ChartsTooltipProps } from '@mui/x-charts/ChartsTooltip';
3
4
  import { ChartsSlotPropsPro, ChartsSlotsPro } from "../internals/material/index.js";
4
5
  import { ChartContainerProProps } from "../ChartContainerPro/ChartContainerPro.js";
5
6
  import { ScatterChartProPluginsSignatures } from "./ScatterChartPro.plugins.js";
6
7
  import { ChartsToolbarProSlots, ChartsToolbarProSlotProps } from "../ChartsToolbarPro/Toolbar.types.js";
7
8
  export interface ScatterChartProSlots extends Omit<ScatterChartSlots, 'toolbar'>, ChartsToolbarProSlots, Partial<ChartsSlotsPro> {}
8
- export interface ScatterChartProSlotProps extends Omit<ScatterChartSlotProps, 'toolbar'>, ChartsToolbarProSlotProps, Partial<ChartsSlotPropsPro> {}
9
+ export interface ScatterChartProSlotProps extends Omit<ScatterChartSlotProps, 'toolbar' | 'tooltip'>, ChartsToolbarProSlotProps, Partial<ChartsSlotPropsPro> {
10
+ /**
11
+ * Slot props for the tooltip component.
12
+ * @default {}
13
+ */
14
+ tooltip?: Partial<ChartsTooltipProps<'item' | 'none'>>;
15
+ }
9
16
  export interface ScatterChartProProps extends Omit<ScatterChartProps, 'apiRef' | 'slots' | 'slotProps'>, Omit<ChartContainerProProps<'scatter', ScatterChartProPluginsSignatures>, 'series' | 'plugins' | 'seriesConfig' | 'onItemClick' | 'slots' | 'slotProps' | 'experimentalFeatures' | 'highlightedAxis' | 'onHighlightedAxisChange'> {
10
17
  /**
11
18
  * Overridable component slots.
@@ -82,9 +82,9 @@ const ScatterChartPro = exports.ScatterChartPro = /*#__PURE__*/React.forwardRef(
82
82
  "data-drawing-container": true,
83
83
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScatterChart.ScatterPlot, (0, _extends2.default)({}, scatterPlotProps))
84
84
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsOverlay.ChartsOverlay, (0, _extends2.default)({}, overlayProps)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsAxisHighlight.ChartsAxisHighlight, (0, _extends2.default)({}, axisHighlightProps)), children]
85
- })), !props.loading && /*#__PURE__*/(0, _jsxRuntime.jsx)(Tooltip, (0, _extends2.default)({}, props?.slotProps?.tooltip, {
85
+ })), !props.loading && /*#__PURE__*/(0, _jsxRuntime.jsx)(Tooltip, (0, _extends2.default)({
86
86
  trigger: "item"
87
- }))]
87
+ }, props?.slotProps?.tooltip))]
88
88
  }))
89
89
  }));
90
90
  });
@@ -285,6 +285,11 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
285
285
  disableTicks: _propTypes.default.bool,
286
286
  domainLimit: _propTypes.default.oneOfType([_propTypes.default.oneOf(['nice', 'strict']), _propTypes.default.func]),
287
287
  fill: _propTypes.default.string,
288
+ groups: _propTypes.default.arrayOf(_propTypes.default.shape({
289
+ getValue: _propTypes.default.func.isRequired,
290
+ tickLabelStyle: _propTypes.default.object,
291
+ tickSize: _propTypes.default.number
292
+ })),
288
293
  height: _propTypes.default.number,
289
294
  hideTooltip: _propTypes.default.bool,
290
295
  id: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
@@ -351,6 +356,11 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
351
356
  disableTicks: _propTypes.default.bool,
352
357
  domainLimit: _propTypes.default.oneOfType([_propTypes.default.oneOf(['nice', 'strict']), _propTypes.default.func]),
353
358
  fill: _propTypes.default.string,
359
+ groups: _propTypes.default.arrayOf(_propTypes.default.shape({
360
+ getValue: _propTypes.default.func.isRequired,
361
+ tickLabelStyle: _propTypes.default.object,
362
+ tickSize: _propTypes.default.number
363
+ })),
354
364
  height: _propTypes.default.number,
355
365
  hideTooltip: _propTypes.default.bool,
356
366
  id: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
@@ -853,6 +863,11 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
853
863
  disableTicks: _propTypes.default.bool,
854
864
  domainLimit: _propTypes.default.oneOfType([_propTypes.default.oneOf(['nice', 'strict']), _propTypes.default.func]),
855
865
  fill: _propTypes.default.string,
866
+ groups: _propTypes.default.arrayOf(_propTypes.default.shape({
867
+ getValue: _propTypes.default.func.isRequired,
868
+ tickLabelStyle: _propTypes.default.object,
869
+ tickSize: _propTypes.default.number
870
+ })),
856
871
  hideTooltip: _propTypes.default.bool,
857
872
  id: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
858
873
  ignoreTooltip: _propTypes.default.bool,
@@ -918,6 +933,11 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
918
933
  disableTicks: _propTypes.default.bool,
919
934
  domainLimit: _propTypes.default.oneOfType([_propTypes.default.oneOf(['nice', 'strict']), _propTypes.default.func]),
920
935
  fill: _propTypes.default.string,
936
+ groups: _propTypes.default.arrayOf(_propTypes.default.shape({
937
+ getValue: _propTypes.default.func.isRequired,
938
+ tickLabelStyle: _propTypes.default.object,
939
+ tickSize: _propTypes.default.number
940
+ })),
921
941
  hideTooltip: _propTypes.default.bool,
922
942
  id: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
923
943
  ignoreTooltip: _propTypes.default.bool,
@@ -303,6 +303,11 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
303
303
  disableTicks: PropTypes.bool,
304
304
  domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
305
305
  fill: PropTypes.string,
306
+ groups: PropTypes.arrayOf(PropTypes.shape({
307
+ getValue: PropTypes.func.isRequired,
308
+ tickLabelStyle: PropTypes.object,
309
+ tickSize: PropTypes.number
310
+ })),
306
311
  height: PropTypes.number,
307
312
  hideTooltip: PropTypes.bool,
308
313
  id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
@@ -369,6 +374,11 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
369
374
  disableTicks: PropTypes.bool,
370
375
  domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
371
376
  fill: PropTypes.string,
377
+ groups: PropTypes.arrayOf(PropTypes.shape({
378
+ getValue: PropTypes.func.isRequired,
379
+ tickLabelStyle: PropTypes.object,
380
+ tickSize: PropTypes.number
381
+ })),
372
382
  height: PropTypes.number,
373
383
  hideTooltip: PropTypes.bool,
374
384
  id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
@@ -871,6 +881,11 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
871
881
  disableTicks: PropTypes.bool,
872
882
  domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
873
883
  fill: PropTypes.string,
884
+ groups: PropTypes.arrayOf(PropTypes.shape({
885
+ getValue: PropTypes.func.isRequired,
886
+ tickLabelStyle: PropTypes.object,
887
+ tickSize: PropTypes.number
888
+ })),
874
889
  hideTooltip: PropTypes.bool,
875
890
  id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
876
891
  ignoreTooltip: PropTypes.bool,
@@ -936,6 +951,11 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
936
951
  disableTicks: PropTypes.bool,
937
952
  domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
938
953
  fill: PropTypes.string,
954
+ groups: PropTypes.arrayOf(PropTypes.shape({
955
+ getValue: PropTypes.func.isRequired,
956
+ tickLabelStyle: PropTypes.object,
957
+ tickSize: PropTypes.number
958
+ })),
939
959
  hideTooltip: PropTypes.bool,
940
960
  id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
941
961
  ignoreTooltip: PropTypes.bool,
@@ -11,7 +11,7 @@ import { defaultSlotsMaterial } from "../internals/material/index.js";
11
11
  import { DEFAULT_PLUGINS } from "../internals/plugins/allPlugins.js";
12
12
  import { useChartDataProviderProProps } from "./useChartDataProviderProProps.js";
13
13
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
14
- const releaseInfo = "MTc1MzkxMjgwMDAwMA==";
14
+ const releaseInfo = "MTc1NTIzMDQwMDAwMA==";
15
15
  const packageIdentifier = 'x-charts-pro';
16
16
  /**
17
17
  * Orchestrates the data providers for the chart components and hooks.
@@ -48,9 +48,9 @@ const FunnelChart = /*#__PURE__*/React.forwardRef(function FunnelChart(props, re
48
48
  children: /*#__PURE__*/_jsxs(ChartsWrapper, _extends({}, chartsWrapperProps, {
49
49
  children: [!themedProps.hideLegend && /*#__PURE__*/_jsx(ChartsLegend, _extends({}, legendProps)), /*#__PURE__*/_jsxs(ChartsSurface, _extends({}, chartsSurfaceProps, {
50
50
  children: [/*#__PURE__*/_jsx(FunnelPlot, _extends({}, funnelPlotProps)), /*#__PURE__*/_jsx(ChartsOverlay, _extends({}, overlayProps)), /*#__PURE__*/_jsx(ChartsAxisHighlight, _extends({}, axisHighlightProps)), /*#__PURE__*/_jsx(ChartsAxis, _extends({}, chartsAxisProps)), children]
51
- })), !themedProps.loading && /*#__PURE__*/_jsx(Tooltip, _extends({}, themedProps.slotProps?.tooltip, {
51
+ })), !themedProps.loading && /*#__PURE__*/_jsx(Tooltip, _extends({
52
52
  trigger: "item"
53
- }))]
53
+ }, themedProps.slotProps?.tooltip))]
54
54
  }))
55
55
  }));
56
56
  });
@@ -9,23 +9,22 @@
9
9
  * https://github.com/d3/d3-shape/blob/a82254af78f08799c71d7ab25df557c4872a3c51/src/curve/bump.js
10
10
  */
11
11
  export class Bump {
12
+ isHorizontal = false;
13
+ min = {
14
+ x: 0,
15
+ y: 0
16
+ };
17
+ max = {
18
+ x: 0,
19
+ y: 0
20
+ };
21
+ points = [];
12
22
  constructor(context, {
13
23
  isHorizontal,
14
24
  min,
15
25
  max,
16
26
  isIncreasing
17
27
  }) {
18
- this.context = void 0;
19
- this.isHorizontal = false;
20
- this.min = {
21
- x: 0,
22
- y: 0
23
- };
24
- this.max = {
25
- x: 0,
26
- y: 0
27
- };
28
- this.points = [];
29
28
  this.context = context;
30
29
  this.isHorizontal = isHorizontal ?? false;
31
30
  this.min = min ?? {
@@ -12,6 +12,22 @@ import { lerpX, lerpY } from "./utils.js";
12
12
  * https://github.com/d3/d3-shape/blob/a82254af78f08799c71d7ab25df557c4872a3c51/src/curve/linear.js
13
13
  */
14
14
  export class Linear {
15
+ position = 0;
16
+ sections = 0;
17
+ isHorizontal = false;
18
+ isIncreasing = false;
19
+ gap = 0;
20
+ borderRadius = 0;
21
+ min = {
22
+ x: 0,
23
+ y: 0
24
+ };
25
+ max = {
26
+ x: 0,
27
+ y: 0
28
+ };
29
+ points = [];
30
+ pointShape = 'square';
15
31
  constructor(context, {
16
32
  isHorizontal,
17
33
  gap,
@@ -23,23 +39,6 @@ export class Linear {
23
39
  isIncreasing,
24
40
  pointShape
25
41
  }) {
26
- this.context = void 0;
27
- this.position = 0;
28
- this.sections = 0;
29
- this.isHorizontal = false;
30
- this.isIncreasing = false;
31
- this.gap = 0;
32
- this.borderRadius = 0;
33
- this.min = {
34
- x: 0,
35
- y: 0
36
- };
37
- this.max = {
38
- x: 0,
39
- y: 0
40
- };
41
- this.points = [];
42
- this.pointShape = 'square';
43
42
  this.context = context;
44
43
  this.isHorizontal = isHorizontal ?? false;
45
44
  this.gap = gap ?? 0;
@@ -10,6 +10,21 @@ import { lerpX, lerpY } from "./utils.js";
10
10
  * with the option to add a gap between sections while also properly handling the border radius.
11
11
  */
12
12
  export class Pyramid {
13
+ position = 0;
14
+ sections = 0;
15
+ isHorizontal = false;
16
+ isIncreasing = false;
17
+ gap = 0;
18
+ borderRadius = 0;
19
+ min = {
20
+ x: 0,
21
+ y: 0
22
+ };
23
+ max = {
24
+ x: 0,
25
+ y: 0
26
+ };
27
+ points = [];
13
28
  constructor(context, {
14
29
  isHorizontal,
15
30
  gap,
@@ -20,22 +35,6 @@ export class Pyramid {
20
35
  max,
21
36
  isIncreasing
22
37
  }) {
23
- this.context = void 0;
24
- this.position = 0;
25
- this.sections = 0;
26
- this.isHorizontal = false;
27
- this.isIncreasing = false;
28
- this.gap = 0;
29
- this.borderRadius = 0;
30
- this.min = {
31
- x: 0,
32
- y: 0
33
- };
34
- this.max = {
35
- x: 0,
36
- y: 0
37
- };
38
- this.points = [];
39
38
  this.context = context;
40
39
  this.isHorizontal = isHorizontal ?? false;
41
40
  this.gap = (gap ?? 0) / 2;
@@ -9,6 +9,21 @@ import { lerpX, lerpY } from "./utils.js";
9
9
  * It has the option to add a gap between sections while also properly handling the border radius.
10
10
  */
11
11
  export class StepPyramid {
12
+ position = 0;
13
+ sections = 0;
14
+ isHorizontal = false;
15
+ isIncreasing = false;
16
+ gap = 0;
17
+ borderRadius = 0;
18
+ min = {
19
+ x: 0,
20
+ y: 0
21
+ };
22
+ max = {
23
+ x: 0,
24
+ y: 0
25
+ };
26
+ points = [];
12
27
  constructor(context, {
13
28
  isHorizontal,
14
29
  gap,
@@ -19,22 +34,6 @@ export class StepPyramid {
19
34
  max,
20
35
  isIncreasing
21
36
  }) {
22
- this.context = void 0;
23
- this.position = 0;
24
- this.sections = 0;
25
- this.isHorizontal = false;
26
- this.isIncreasing = false;
27
- this.gap = 0;
28
- this.borderRadius = 0;
29
- this.min = {
30
- x: 0,
31
- y: 0
32
- };
33
- this.max = {
34
- x: 0,
35
- y: 0
36
- };
37
- this.points = [];
38
37
  this.context = context;
39
38
  this.isHorizontal = isHorizontal ?? false;
40
39
  this.gap = gap ?? 0;
@@ -14,6 +14,13 @@ import { max, min } from "./utils.js";
14
14
  * https://github.com/d3/d3-shape/blob/a82254af78f08799c71d7ab25df557c4872a3c51/src/curve/step.js
15
15
  */
16
16
  export class Step {
17
+ isHorizontal = false;
18
+ isIncreasing = false;
19
+ gap = 0;
20
+ borderRadius = 0;
21
+ position = 0;
22
+ sections = 0;
23
+ points = [];
17
24
  constructor(context, {
18
25
  isHorizontal,
19
26
  gap,
@@ -22,14 +29,6 @@ export class Step {
22
29
  isIncreasing,
23
30
  sections
24
31
  }) {
25
- this.context = void 0;
26
- this.isHorizontal = false;
27
- this.isIncreasing = false;
28
- this.gap = 0;
29
- this.borderRadius = 0;
30
- this.position = 0;
31
- this.sections = 0;
32
- this.points = [];
33
32
  this.context = context;
34
33
  this.isHorizontal = isHorizontal ?? false;
35
34
  this.gap = gap ?? 0;
@@ -1,11 +1,17 @@
1
1
  import { ChartsOverlaySlotProps, ChartsOverlaySlots } from '@mui/x-charts/ChartsOverlay';
2
- import { ChartsTooltipSlotProps, ChartsTooltipSlots } from '@mui/x-charts/ChartsTooltip';
2
+ import { ChartsTooltipProps, ChartsTooltipSlotProps, ChartsTooltipSlots } from '@mui/x-charts/ChartsTooltip';
3
3
  import { ChartsAxisSlotProps, ChartsAxisSlots, ChartsSlotProps, ChartsSlots } from '@mui/x-charts/internals';
4
4
  import { ChartsLegendSlotProps, ChartsLegendSlots } from '@mui/x-charts/ChartsLegend';
5
5
  import { ChartsToolbarSlotProps, ChartsToolbarSlots } from '@mui/x-charts/Toolbar';
6
6
  import { FunnelPlotSlotProps, FunnelPlotSlots } from "./funnelPlotSlots.types.js";
7
7
  export interface FunnelChartSlots extends ChartsAxisSlots, FunnelPlotSlots, ChartsLegendSlots, ChartsTooltipSlots, ChartsOverlaySlots, ChartsAxisSlots, ChartsToolbarSlots, Partial<ChartsSlots> {}
8
- export interface FunnelChartSlotProps extends ChartsAxisSlotProps, FunnelPlotSlotProps, ChartsLegendSlotProps, ChartsTooltipSlotProps, ChartsOverlaySlotProps, ChartsAxisSlotProps, ChartsToolbarSlotProps, Partial<ChartsSlotProps> {}
8
+ export interface FunnelChartSlotProps extends ChartsAxisSlotProps, FunnelPlotSlotProps, ChartsLegendSlotProps, Omit<ChartsTooltipSlotProps, 'tooltip'>, ChartsOverlaySlotProps, ChartsAxisSlotProps, ChartsToolbarSlotProps, Partial<ChartsSlotProps> {
9
+ /**
10
+ * Slot props for the tooltip component.
11
+ * @default {}
12
+ */
13
+ tooltip?: Partial<ChartsTooltipProps<'item' | 'none'>>;
14
+ }
9
15
  export interface FunnelChartSlotExtension {
10
16
  /**
11
17
  * Overridable component slots.
@@ -1,4 +1,8 @@
1
- export { FunnelChart as Unstable_FunnelChart } from "./FunnelChart.js";
1
+ export { FunnelChart } from "./FunnelChart.js";
2
+ /**
3
+ * @deprecated funnel chart is now stable, import `FunnelChart` instead
4
+ */
5
+ export declare const Unstable_FunnelChart: import("react").ForwardRefExoticComponent<import("./FunnelChart.js").FunnelChartProps & import("react").RefAttributes<SVGSVGElement>>;
2
6
  export type { FunnelChartProps, FunnelSeries } from "./FunnelChart.js";
3
7
  export * from "./FunnelPlot.js";
4
8
  export * from "./funnel.types.js";
@@ -1,4 +1,10 @@
1
- export { FunnelChart as Unstable_FunnelChart } from "./FunnelChart.js";
1
+ import { FunnelChart } from "./FunnelChart.js";
2
+ export { FunnelChart } from "./FunnelChart.js";
3
+ /**
4
+ * @deprecated funnel chart is now stable, import `FunnelChart` instead
5
+ */
6
+ // eslint-disable-next-line @typescript-eslint/naming-convention
7
+ export const Unstable_FunnelChart = FunnelChart;
2
8
  export * from "./FunnelPlot.js";
3
9
  export * from "./funnel.types.js";
4
10
  export * from "./categoryAxis.types.js";
@@ -305,6 +305,11 @@ process.env.NODE_ENV !== "production" ? Heatmap.propTypes = {
305
305
  disableTicks: PropTypes.bool,
306
306
  domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
307
307
  fill: PropTypes.string,
308
+ groups: PropTypes.arrayOf(PropTypes.shape({
309
+ getValue: PropTypes.func.isRequired,
310
+ tickLabelStyle: PropTypes.object,
311
+ tickSize: PropTypes.number
312
+ })),
308
313
  height: PropTypes.number,
309
314
  hideTooltip: PropTypes.bool,
310
315
  id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
@@ -364,6 +369,11 @@ process.env.NODE_ENV !== "production" ? Heatmap.propTypes = {
364
369
  disableTicks: PropTypes.bool,
365
370
  domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
366
371
  fill: PropTypes.string,
372
+ groups: PropTypes.arrayOf(PropTypes.shape({
373
+ getValue: PropTypes.func.isRequired,
374
+ tickLabelStyle: PropTypes.object,
375
+ tickSize: PropTypes.number
376
+ })),
367
377
  hideTooltip: PropTypes.bool,
368
378
  id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
369
379
  ignoreTooltip: PropTypes.bool,
@@ -306,6 +306,11 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
306
306
  disableTicks: PropTypes.bool,
307
307
  domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
308
308
  fill: PropTypes.string,
309
+ groups: PropTypes.arrayOf(PropTypes.shape({
310
+ getValue: PropTypes.func.isRequired,
311
+ tickLabelStyle: PropTypes.object,
312
+ tickSize: PropTypes.number
313
+ })),
309
314
  height: PropTypes.number,
310
315
  hideTooltip: PropTypes.bool,
311
316
  id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
@@ -372,6 +377,11 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
372
377
  disableTicks: PropTypes.bool,
373
378
  domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
374
379
  fill: PropTypes.string,
380
+ groups: PropTypes.arrayOf(PropTypes.shape({
381
+ getValue: PropTypes.func.isRequired,
382
+ tickLabelStyle: PropTypes.object,
383
+ tickSize: PropTypes.number
384
+ })),
375
385
  height: PropTypes.number,
376
386
  hideTooltip: PropTypes.bool,
377
387
  id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
@@ -874,6 +884,11 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
874
884
  disableTicks: PropTypes.bool,
875
885
  domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
876
886
  fill: PropTypes.string,
887
+ groups: PropTypes.arrayOf(PropTypes.shape({
888
+ getValue: PropTypes.func.isRequired,
889
+ tickLabelStyle: PropTypes.object,
890
+ tickSize: PropTypes.number
891
+ })),
877
892
  hideTooltip: PropTypes.bool,
878
893
  id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
879
894
  ignoreTooltip: PropTypes.bool,
@@ -939,6 +954,11 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
939
954
  disableTicks: PropTypes.bool,
940
955
  domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
941
956
  fill: PropTypes.string,
957
+ groups: PropTypes.arrayOf(PropTypes.shape({
958
+ getValue: PropTypes.func.isRequired,
959
+ tickLabelStyle: PropTypes.object,
960
+ tickSize: PropTypes.number
961
+ })),
942
962
  hideTooltip: PropTypes.bool,
943
963
  id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
944
964
  ignoreTooltip: PropTypes.bool,
@@ -1,11 +1,18 @@
1
1
  import * as React from 'react';
2
2
  import { ScatterChartProps, ScatterChartSlotProps, ScatterChartSlots } from '@mui/x-charts/ScatterChart';
3
+ import { ChartsTooltipProps } from '@mui/x-charts/ChartsTooltip';
3
4
  import { ChartsSlotPropsPro, ChartsSlotsPro } from "../internals/material/index.js";
4
5
  import { ChartContainerProProps } from "../ChartContainerPro/ChartContainerPro.js";
5
6
  import { ScatterChartProPluginsSignatures } from "./ScatterChartPro.plugins.js";
6
7
  import { ChartsToolbarProSlots, ChartsToolbarProSlotProps } from "../ChartsToolbarPro/Toolbar.types.js";
7
8
  export interface ScatterChartProSlots extends Omit<ScatterChartSlots, 'toolbar'>, ChartsToolbarProSlots, Partial<ChartsSlotsPro> {}
8
- export interface ScatterChartProSlotProps extends Omit<ScatterChartSlotProps, 'toolbar'>, ChartsToolbarProSlotProps, Partial<ChartsSlotPropsPro> {}
9
+ export interface ScatterChartProSlotProps extends Omit<ScatterChartSlotProps, 'toolbar' | 'tooltip'>, ChartsToolbarProSlotProps, Partial<ChartsSlotPropsPro> {
10
+ /**
11
+ * Slot props for the tooltip component.
12
+ * @default {}
13
+ */
14
+ tooltip?: Partial<ChartsTooltipProps<'item' | 'none'>>;
15
+ }
9
16
  export interface ScatterChartProProps extends Omit<ScatterChartProps, 'apiRef' | 'slots' | 'slotProps'>, Omit<ChartContainerProProps<'scatter', ScatterChartProPluginsSignatures>, 'series' | 'plugins' | 'seriesConfig' | 'onItemClick' | 'slots' | 'slotProps' | 'experimentalFeatures' | 'highlightedAxis' | 'onHighlightedAxisChange'> {
10
17
  /**
11
18
  * Overridable component slots.
@@ -75,9 +75,9 @@ const ScatterChartPro = /*#__PURE__*/React.forwardRef(function ScatterChartPro(i
75
75
  "data-drawing-container": true,
76
76
  children: /*#__PURE__*/_jsx(ScatterPlot, _extends({}, scatterPlotProps))
77
77
  }), /*#__PURE__*/_jsx(ChartsOverlay, _extends({}, overlayProps)), /*#__PURE__*/_jsx(ChartsAxisHighlight, _extends({}, axisHighlightProps)), children]
78
- })), !props.loading && /*#__PURE__*/_jsx(Tooltip, _extends({}, props?.slotProps?.tooltip, {
78
+ })), !props.loading && /*#__PURE__*/_jsx(Tooltip, _extends({
79
79
  trigger: "item"
80
- }))]
80
+ }, props?.slotProps?.tooltip))]
81
81
  }))
82
82
  }));
83
83
  });
@@ -278,6 +278,11 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
278
278
  disableTicks: PropTypes.bool,
279
279
  domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
280
280
  fill: PropTypes.string,
281
+ groups: PropTypes.arrayOf(PropTypes.shape({
282
+ getValue: PropTypes.func.isRequired,
283
+ tickLabelStyle: PropTypes.object,
284
+ tickSize: PropTypes.number
285
+ })),
281
286
  height: PropTypes.number,
282
287
  hideTooltip: PropTypes.bool,
283
288
  id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
@@ -344,6 +349,11 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
344
349
  disableTicks: PropTypes.bool,
345
350
  domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
346
351
  fill: PropTypes.string,
352
+ groups: PropTypes.arrayOf(PropTypes.shape({
353
+ getValue: PropTypes.func.isRequired,
354
+ tickLabelStyle: PropTypes.object,
355
+ tickSize: PropTypes.number
356
+ })),
347
357
  height: PropTypes.number,
348
358
  hideTooltip: PropTypes.bool,
349
359
  id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
@@ -846,6 +856,11 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
846
856
  disableTicks: PropTypes.bool,
847
857
  domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
848
858
  fill: PropTypes.string,
859
+ groups: PropTypes.arrayOf(PropTypes.shape({
860
+ getValue: PropTypes.func.isRequired,
861
+ tickLabelStyle: PropTypes.object,
862
+ tickSize: PropTypes.number
863
+ })),
849
864
  hideTooltip: PropTypes.bool,
850
865
  id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
851
866
  ignoreTooltip: PropTypes.bool,
@@ -911,6 +926,11 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
911
926
  disableTicks: PropTypes.bool,
912
927
  domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
913
928
  fill: PropTypes.string,
929
+ groups: PropTypes.arrayOf(PropTypes.shape({
930
+ getValue: PropTypes.func.isRequired,
931
+ tickLabelStyle: PropTypes.object,
932
+ tickSize: PropTypes.number
933
+ })),
914
934
  hideTooltip: PropTypes.bool,
915
935
  id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
916
936
  ignoreTooltip: PropTypes.bool,
package/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-charts-pro v8.9.2
2
+ * @mui/x-charts-pro v8.10.1
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
@@ -3,7 +3,7 @@ import { UseChartProExportSignature } from "./useChartProExport/index.js";
3
3
  import { UseChartProZoomSignature } from "./useChartProZoom/index.js";
4
4
  export type AllPluginSignatures<TSeries extends ChartSeriesType = ChartSeriesType> = [UseChartZAxisSignature, UseChartCartesianAxisSignature<TSeries>, UseChartPolarAxisSignature<TSeries>, UseChartInteractionSignature, UseChartHighlightSignature, UseChartProZoomSignature, UseChartProExportSignature];
5
5
  export type AllPluginsType<TSeries extends ChartSeriesType = ChartSeriesType> = ConvertSignaturesIntoPlugins<AllPluginSignatures<TSeries>>;
6
- export declare const ALL_PLUGINS: (import("@mui/x-charts/internals").ChartPlugin<UseChartProZoomSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartProExportSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartZAxisSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartInteractionSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartHighlightSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartCartesianAxisSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartPolarAxisSignature<any>>)[];
6
+ export declare const ALL_PLUGINS: (import("@mui/x-charts/internals").ChartPlugin<UseChartProZoomSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartProExportSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartZAxisSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartCartesianAxisSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartPolarAxisSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartInteractionSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartHighlightSignature>)[];
7
7
  export type DefaultPluginSignatures<TSeries extends ChartSeriesType = ChartSeriesType> = [UseChartZAxisSignature, UseChartCartesianAxisSignature<TSeries>, UseChartPolarAxisSignature<TSeries>, UseChartInteractionSignature, UseChartHighlightSignature, UseChartProZoomSignature, UseChartProExportSignature];
8
8
  export type DefaultPluginsType<TSeries extends ChartSeriesType = ChartSeriesType> = ConvertSignaturesIntoPlugins<DefaultPluginSignatures<TSeries>>;
9
- export declare const DEFAULT_PLUGINS: (import("@mui/x-charts/internals").ChartPlugin<UseChartProZoomSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartProExportSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartZAxisSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartInteractionSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartHighlightSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartCartesianAxisSignature<any>>)[];
9
+ export declare const DEFAULT_PLUGINS: (import("@mui/x-charts/internals").ChartPlugin<UseChartProZoomSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartProExportSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartZAxisSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartCartesianAxisSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartInteractionSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartHighlightSignature>)[];
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-charts-pro v8.9.2
2
+ * @mui/x-charts-pro v8.10.1
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
@@ -3,7 +3,7 @@ import { UseChartProExportSignature } from "./useChartProExport/index.js";
3
3
  import { UseChartProZoomSignature } from "./useChartProZoom/index.js";
4
4
  export type AllPluginSignatures<TSeries extends ChartSeriesType = ChartSeriesType> = [UseChartZAxisSignature, UseChartCartesianAxisSignature<TSeries>, UseChartPolarAxisSignature<TSeries>, UseChartInteractionSignature, UseChartHighlightSignature, UseChartProZoomSignature, UseChartProExportSignature];
5
5
  export type AllPluginsType<TSeries extends ChartSeriesType = ChartSeriesType> = ConvertSignaturesIntoPlugins<AllPluginSignatures<TSeries>>;
6
- export declare const ALL_PLUGINS: (import("@mui/x-charts/internals").ChartPlugin<UseChartProZoomSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartProExportSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartZAxisSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartInteractionSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartHighlightSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartCartesianAxisSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartPolarAxisSignature<any>>)[];
6
+ export declare const ALL_PLUGINS: (import("@mui/x-charts/internals").ChartPlugin<UseChartProZoomSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartProExportSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartZAxisSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartCartesianAxisSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartPolarAxisSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartInteractionSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartHighlightSignature>)[];
7
7
  export type DefaultPluginSignatures<TSeries extends ChartSeriesType = ChartSeriesType> = [UseChartZAxisSignature, UseChartCartesianAxisSignature<TSeries>, UseChartPolarAxisSignature<TSeries>, UseChartInteractionSignature, UseChartHighlightSignature, UseChartProZoomSignature, UseChartProExportSignature];
8
8
  export type DefaultPluginsType<TSeries extends ChartSeriesType = ChartSeriesType> = ConvertSignaturesIntoPlugins<DefaultPluginSignatures<TSeries>>;
9
- export declare const DEFAULT_PLUGINS: (import("@mui/x-charts/internals").ChartPlugin<UseChartProZoomSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartProExportSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartZAxisSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartInteractionSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartHighlightSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartCartesianAxisSignature<any>>)[];
9
+ export declare const DEFAULT_PLUGINS: (import("@mui/x-charts/internals").ChartPlugin<UseChartProZoomSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartProExportSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartZAxisSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartCartesianAxisSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartInteractionSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartHighlightSignature>)[];