@mui/x-charts-pro 9.0.0-alpha.3 → 9.0.0-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (219) hide show
  1. package/BarChartPro/BarChartPro.d.mts +2 -2
  2. package/BarChartPro/BarChartPro.d.ts +2 -2
  3. package/BarChartPro/BarChartPro.js +38 -8
  4. package/BarChartPro/BarChartPro.mjs +38 -8
  5. package/CHANGELOG.md +123 -0
  6. package/ChartsContainerPro/ChartsContainerPro.js +2 -2
  7. package/ChartsContainerPro/ChartsContainerPro.mjs +2 -2
  8. package/ChartsContainerPro/useChartsContainerProProps.d.mts +2 -2
  9. package/ChartsContainerPro/useChartsContainerProProps.d.ts +2 -2
  10. package/ChartsContainerPro/useChartsContainerProProps.js +3 -3
  11. package/ChartsContainerPro/useChartsContainerProProps.mjs +3 -3
  12. package/ChartsDataProviderPro/ChartsDataProviderPro.js +2 -8
  13. package/ChartsDataProviderPro/ChartsDataProviderPro.mjs +2 -8
  14. package/ChartsToolbarPro/ChartsToolbarPro.js +1 -1
  15. package/ChartsToolbarPro/ChartsToolbarPro.mjs +2 -2
  16. package/ChartsToolbarPro/ChartsToolbarZoomInTrigger.js +1 -1
  17. package/ChartsToolbarPro/ChartsToolbarZoomInTrigger.mjs +2 -2
  18. package/ChartsToolbarPro/ChartsToolbarZoomOutTrigger.js +1 -1
  19. package/ChartsToolbarPro/ChartsToolbarZoomOutTrigger.mjs +2 -2
  20. package/ChartsToolbarPro/index.d.mts +2 -1
  21. package/ChartsToolbarPro/index.d.ts +2 -1
  22. package/ChartsToolbarPro/index.mjs +2 -1
  23. package/ChartsZoomSlider/internals/ChartsAxisZoomSliderActiveTrack.js +1 -1
  24. package/ChartsZoomSlider/internals/ChartsAxisZoomSliderActiveTrack.mjs +2 -2
  25. package/ChartsZoomSlider/internals/ChartsAxisZoomSliderTrack.js +1 -1
  26. package/ChartsZoomSlider/internals/ChartsAxisZoomSliderTrack.mjs +2 -2
  27. package/FunnelChart/FunnelChart.d.mts +2 -2
  28. package/FunnelChart/FunnelChart.d.ts +2 -2
  29. package/FunnelChart/FunnelChart.js +18 -6
  30. package/FunnelChart/FunnelChart.mjs +18 -6
  31. package/FunnelChart/FunnelPlot.js +8 -3
  32. package/FunnelChart/FunnelPlot.mjs +8 -3
  33. package/FunnelChart/FunnelSection.d.mts +3 -3
  34. package/FunnelChart/FunnelSection.d.ts +3 -3
  35. package/FunnelChart/FunnelSection.js +5 -5
  36. package/FunnelChart/FunnelSection.mjs +4 -4
  37. package/FunnelChart/FunnelSectionLabel.d.mts +9 -3
  38. package/FunnelChart/FunnelSectionLabel.d.ts +9 -3
  39. package/FunnelChart/FunnelSectionLabel.js +15 -6
  40. package/FunnelChart/FunnelSectionLabel.mjs +15 -6
  41. package/FunnelChart/funnelClasses.d.mts +29 -0
  42. package/FunnelChart/funnelClasses.d.ts +29 -0
  43. package/FunnelChart/funnelClasses.js +29 -0
  44. package/FunnelChart/funnelClasses.mjs +19 -0
  45. package/FunnelChart/index.d.mts +2 -2
  46. package/FunnelChart/index.d.ts +2 -2
  47. package/FunnelChart/index.js +4 -4
  48. package/FunnelChart/index.mjs +1 -1
  49. package/FunnelChart/seriesConfig/legend.js +0 -2
  50. package/FunnelChart/seriesConfig/legend.mjs +0 -2
  51. package/FunnelChart/useFunnelChartProps.d.mts +2 -2
  52. package/FunnelChart/useFunnelChartProps.d.ts +2 -2
  53. package/FunnelChart/useFunnelChartProps.js +2 -2
  54. package/FunnelChart/useFunnelChartProps.mjs +2 -2
  55. package/Heatmap/Heatmap.d.mts +2 -11
  56. package/Heatmap/Heatmap.d.ts +2 -11
  57. package/Heatmap/Heatmap.js +20 -15
  58. package/Heatmap/Heatmap.mjs +20 -15
  59. package/Heatmap/HeatmapCell.d.mts +33 -0
  60. package/Heatmap/HeatmapCell.d.ts +33 -0
  61. package/Heatmap/HeatmapCell.js +62 -0
  62. package/Heatmap/HeatmapCell.mjs +55 -0
  63. package/Heatmap/HeatmapItem.d.mts +1 -9
  64. package/Heatmap/HeatmapItem.d.ts +1 -9
  65. package/Heatmap/HeatmapItem.js +5 -22
  66. package/Heatmap/HeatmapItem.mjs +5 -22
  67. package/Heatmap/HeatmapSVGPlot.js +10 -3
  68. package/Heatmap/HeatmapSVGPlot.mjs +10 -3
  69. package/Heatmap/HeatmapTooltip/HeatmapTooltip.classes.js +2 -2
  70. package/Heatmap/HeatmapTooltip/HeatmapTooltip.classes.mjs +1 -1
  71. package/Heatmap/heatmapClasses.d.mts +6 -1
  72. package/Heatmap/heatmapClasses.d.ts +6 -1
  73. package/Heatmap/heatmapClasses.js +18 -3
  74. package/Heatmap/heatmapClasses.mjs +16 -2
  75. package/Heatmap/index.d.mts +4 -2
  76. package/Heatmap/index.d.ts +4 -2
  77. package/Heatmap/index.js +17 -13
  78. package/Heatmap/index.mjs +2 -1
  79. package/Heatmap/shouldRegisterPointerInteractionsGlobally.js +1 -1
  80. package/Heatmap/shouldRegisterPointerInteractionsGlobally.mjs +1 -1
  81. package/Heatmap/useHeatmapProps.d.mts +2 -2
  82. package/Heatmap/useHeatmapProps.d.ts +2 -2
  83. package/Heatmap/useHeatmapProps.js +2 -4
  84. package/Heatmap/useHeatmapProps.mjs +2 -4
  85. package/LineChartPro/LineChartPro.d.mts +2 -2
  86. package/LineChartPro/LineChartPro.d.ts +2 -2
  87. package/LineChartPro/LineChartPro.js +35 -11
  88. package/LineChartPro/LineChartPro.mjs +35 -11
  89. package/PieChartPro/PieChartPro.d.mts +2 -2
  90. package/PieChartPro/PieChartPro.d.ts +2 -2
  91. package/PieChartPro/PieChartPro.js +17 -5
  92. package/PieChartPro/PieChartPro.mjs +17 -5
  93. package/RadarChartPro/RadarChartPro.d.mts +1 -1
  94. package/RadarChartPro/RadarChartPro.d.ts +1 -1
  95. package/RadarChartPro/RadarChartPro.js +15 -0
  96. package/RadarChartPro/RadarChartPro.mjs +15 -0
  97. package/SankeyChart/SankeyChart.d.mts +2 -2
  98. package/SankeyChart/SankeyChart.d.ts +2 -2
  99. package/SankeyChart/SankeyChart.js +16 -10
  100. package/SankeyChart/SankeyChart.mjs +16 -10
  101. package/SankeyChart/SankeyDataProvider.d.mts +2 -2
  102. package/SankeyChart/SankeyDataProvider.d.ts +2 -2
  103. package/SankeyChart/SankeyDataProvider.js +2 -2
  104. package/SankeyChart/SankeyDataProvider.mjs +2 -2
  105. package/SankeyChart/SankeyLinkElement.js +3 -0
  106. package/SankeyChart/SankeyLinkElement.mjs +3 -0
  107. package/SankeyChart/SankeyLinkLabel.js +3 -0
  108. package/SankeyChart/SankeyLinkLabel.mjs +3 -0
  109. package/SankeyChart/SankeyLinkLabelPlot.d.mts +2 -2
  110. package/SankeyChart/SankeyLinkLabelPlot.d.ts +2 -2
  111. package/SankeyChart/SankeyLinkLabelPlot.js +1 -1
  112. package/SankeyChart/SankeyLinkLabelPlot.mjs +1 -1
  113. package/SankeyChart/SankeyLinkPlot.d.mts +2 -2
  114. package/SankeyChart/SankeyLinkPlot.d.ts +2 -2
  115. package/SankeyChart/SankeyLinkPlot.js +1 -1
  116. package/SankeyChart/SankeyLinkPlot.mjs +1 -1
  117. package/SankeyChart/SankeyNodeElement.d.mts +1 -1
  118. package/SankeyChart/SankeyNodeElement.d.ts +1 -1
  119. package/SankeyChart/SankeyNodeElement.js +16 -15
  120. package/SankeyChart/SankeyNodeElement.mjs +16 -15
  121. package/SankeyChart/SankeyNodeLabel.js +3 -0
  122. package/SankeyChart/SankeyNodeLabel.mjs +3 -0
  123. package/SankeyChart/SankeyNodeLabelPlot.d.mts +2 -2
  124. package/SankeyChart/SankeyNodeLabelPlot.d.ts +2 -2
  125. package/SankeyChart/SankeyNodeLabelPlot.js +1 -1
  126. package/SankeyChart/SankeyNodeLabelPlot.mjs +1 -1
  127. package/SankeyChart/SankeyNodePlot.d.mts +2 -2
  128. package/SankeyChart/SankeyNodePlot.d.ts +2 -2
  129. package/SankeyChart/SankeyNodePlot.js +1 -1
  130. package/SankeyChart/SankeyNodePlot.mjs +1 -1
  131. package/SankeyChart/SankeyPlot.d.mts +2 -2
  132. package/SankeyChart/SankeyPlot.d.ts +2 -2
  133. package/SankeyChart/SankeyPlot.js +3 -3
  134. package/SankeyChart/SankeyPlot.mjs +3 -3
  135. package/SankeyChart/SankeyTooltip/SankeyTooltip.classes.js +2 -2
  136. package/SankeyChart/SankeyTooltip/SankeyTooltip.classes.mjs +1 -1
  137. package/SankeyChart/index.d.mts +2 -1
  138. package/SankeyChart/index.d.ts +2 -1
  139. package/SankeyChart/index.js +3 -3
  140. package/SankeyChart/index.mjs +1 -1
  141. package/SankeyChart/sankeyClasses.d.mts +15 -6
  142. package/SankeyChart/sankeyClasses.d.ts +15 -6
  143. package/SankeyChart/sankeyClasses.js +12 -8
  144. package/SankeyChart/sankeyClasses.mjs +10 -6
  145. package/SankeyChart/useSankeyChartProps.d.mts +2 -2
  146. package/SankeyChart/useSankeyChartProps.d.ts +2 -2
  147. package/SankeyChart/useSankeyChartProps.js +2 -2
  148. package/SankeyChart/useSankeyChartProps.mjs +2 -2
  149. package/ScatterChartPro/ScatterChartPro.d.mts +2 -2
  150. package/ScatterChartPro/ScatterChartPro.d.ts +2 -2
  151. package/ScatterChartPro/ScatterChartPro.js +57 -15
  152. package/ScatterChartPro/ScatterChartPro.mjs +57 -15
  153. package/context/useChartProApiContext.d.mts +1 -1
  154. package/context/useChartProApiContext.d.ts +1 -1
  155. package/context/useChartProApiContext.js +1 -1
  156. package/context/useChartProApiContext.mjs +1 -1
  157. package/index.d.mts +0 -4
  158. package/index.d.ts +0 -4
  159. package/index.js +2 -34
  160. package/index.mjs +1 -4
  161. package/internals/index.d.mts +0 -1
  162. package/internals/index.d.ts +0 -1
  163. package/internals/index.js +0 -8
  164. package/internals/index.mjs +0 -1
  165. package/internals/plugins/useChartProExport/common.js +4 -8
  166. package/internals/plugins/useChartProExport/common.mjs +4 -8
  167. package/internals/plugins/useChartProZoom/ZoomInteractionConfig.types.d.mts +1 -1
  168. package/internals/plugins/useChartProZoom/ZoomInteractionConfig.types.d.ts +1 -1
  169. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnBrush.js +16 -1
  170. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnBrush.mjs +16 -1
  171. package/package.json +129 -185
  172. package/themeAugmentation/components.d.mts +19 -1
  173. package/themeAugmentation/components.d.ts +19 -1
  174. package/themeAugmentation/overrides.d.mts +5 -2
  175. package/themeAugmentation/overrides.d.ts +5 -2
  176. package/themeAugmentation/props.d.mts +8 -0
  177. package/themeAugmentation/props.d.ts +8 -0
  178. package/ChartContainer/index.d.mts +0 -1
  179. package/ChartContainer/index.d.ts +0 -1
  180. package/ChartContainer/index.js +0 -16
  181. package/ChartContainer/index.mjs +0 -2
  182. package/ChartContainerPro/ChartContainerPro.d.mts +0 -21
  183. package/ChartContainerPro/ChartContainerPro.d.ts +0 -21
  184. package/ChartContainerPro/ChartContainerPro.js +0 -24
  185. package/ChartContainerPro/ChartContainerPro.mjs +0 -20
  186. package/ChartContainerPro/index.d.mts +0 -9
  187. package/ChartContainerPro/index.d.ts +0 -9
  188. package/ChartContainerPro/index.js +0 -17
  189. package/ChartContainerPro/index.mjs +0 -6
  190. package/ChartContainerPro/useChartContainerProProps.d.mts +0 -12
  191. package/ChartContainerPro/useChartContainerProProps.d.ts +0 -12
  192. package/ChartContainerPro/useChartContainerProProps.js +0 -19
  193. package/ChartContainerPro/useChartContainerProProps.mjs +0 -14
  194. package/ChartDataProvider/index.d.mts +0 -1
  195. package/ChartDataProvider/index.d.ts +0 -1
  196. package/ChartDataProvider/index.js +0 -16
  197. package/ChartDataProvider/index.mjs +0 -2
  198. package/ChartDataProviderPro/ChartDataProviderPro.d.mts +0 -20
  199. package/ChartDataProviderPro/ChartDataProviderPro.d.ts +0 -20
  200. package/ChartDataProviderPro/ChartDataProviderPro.js +0 -30
  201. package/ChartDataProviderPro/ChartDataProviderPro.mjs +0 -21
  202. package/ChartDataProviderPro/index.d.mts +0 -2
  203. package/ChartDataProviderPro/index.d.ts +0 -2
  204. package/ChartDataProviderPro/index.js +0 -13
  205. package/ChartDataProviderPro/index.mjs +0 -2
  206. package/ChartDataProviderPro/useChartDataProviderProProps.d.mts +0 -10
  207. package/ChartDataProviderPro/useChartDataProviderProProps.d.ts +0 -10
  208. package/ChartDataProviderPro/useChartDataProviderProProps.js +0 -12
  209. package/ChartDataProviderPro/useChartDataProviderProProps.mjs +0 -8
  210. package/FunnelChart/funnelSectionClasses.d.mts +0 -30
  211. package/FunnelChart/funnelSectionClasses.d.ts +0 -30
  212. package/FunnelChart/funnelSectionClasses.js +0 -44
  213. package/FunnelChart/funnelSectionClasses.mjs +0 -35
  214. package/Heatmap/internals/HeatmapCell.d.mts +0 -21
  215. package/Heatmap/internals/HeatmapCell.d.ts +0 -21
  216. package/Heatmap/internals/HeatmapCell.js +0 -18
  217. package/Heatmap/internals/HeatmapCell.mjs +0 -12
  218. package/tests/constants.js +0 -7
  219. package/tests/constants.mjs +0 -1
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { type SeriesId } from '@mui/x-charts/internals';
3
- import { type FunnelSectionClasses } from "./funnelSectionClasses.mjs";
3
+ import { type FunnelClasses } from "./funnelClasses.mjs";
4
4
  export interface FunnelSectionLabelConfig {
5
5
  x: number;
6
6
  y: number;
@@ -9,13 +9,19 @@ export interface FunnelSectionLabelConfig {
9
9
  dominantBaseline?: React.SVGProps<SVGTextElement>['dominantBaseline'];
10
10
  }
11
11
  export interface FunnelSectionLabelProps extends Omit<React.SVGProps<SVGTextElement>, 'ref' | 'id'> {
12
- classes?: Partial<FunnelSectionClasses>;
12
+ classes?: Partial<FunnelClasses>;
13
13
  label: FunnelSectionLabelConfig;
14
+ /**
15
+ * Indicate if the section is filled or outlined.
16
+ * Can be used to apply different styles to the label.
17
+ */
18
+ variant?: 'filled' | 'outlined';
14
19
  seriesId: SeriesId;
15
20
  dataIndex: number;
16
21
  }
22
+ export declare const FunnelSectionLabelText: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, Pick<React.SVGTextElementAttributes<SVGTextElement>, keyof React.SVGTextElementAttributes<SVGTextElement>>, {}>;
17
23
  /**
18
24
  * @ignore - internal component.
19
25
  */
20
- declare const FunnelSectionLabel: React.ForwardRefExoticComponent<FunnelSectionLabelProps & React.RefAttributes<{}>>;
26
+ declare const FunnelSectionLabel: React.ForwardRefExoticComponent<FunnelSectionLabelProps & React.RefAttributes<SVGTextElement>>;
21
27
  export { FunnelSectionLabel };
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { type SeriesId } from '@mui/x-charts/internals';
3
- import { type FunnelSectionClasses } from "./funnelSectionClasses.js";
3
+ import { type FunnelClasses } from "./funnelClasses.js";
4
4
  export interface FunnelSectionLabelConfig {
5
5
  x: number;
6
6
  y: number;
@@ -9,13 +9,19 @@ export interface FunnelSectionLabelConfig {
9
9
  dominantBaseline?: React.SVGProps<SVGTextElement>['dominantBaseline'];
10
10
  }
11
11
  export interface FunnelSectionLabelProps extends Omit<React.SVGProps<SVGTextElement>, 'ref' | 'id'> {
12
- classes?: Partial<FunnelSectionClasses>;
12
+ classes?: Partial<FunnelClasses>;
13
13
  label: FunnelSectionLabelConfig;
14
+ /**
15
+ * Indicate if the section is filled or outlined.
16
+ * Can be used to apply different styles to the label.
17
+ */
18
+ variant?: 'filled' | 'outlined';
14
19
  seriesId: SeriesId;
15
20
  dataIndex: number;
16
21
  }
22
+ export declare const FunnelSectionLabelText: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, Pick<React.SVGTextElementAttributes<SVGTextElement>, keyof React.SVGTextElementAttributes<SVGTextElement>>, {}>;
17
23
  /**
18
24
  * @ignore - internal component.
19
25
  */
20
- declare const FunnelSectionLabel: React.ForwardRefExoticComponent<FunnelSectionLabelProps & React.RefAttributes<{}>>;
26
+ declare const FunnelSectionLabel: React.ForwardRefExoticComponent<FunnelSectionLabelProps & React.RefAttributes<SVGTextElement>>;
21
27
  export { FunnelSectionLabel };
@@ -6,28 +6,37 @@ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWild
6
6
  Object.defineProperty(exports, "__esModule", {
7
7
  value: true
8
8
  });
9
- exports.FunnelSectionLabel = void 0;
9
+ exports.FunnelSectionLabelText = exports.FunnelSectionLabel = void 0;
10
10
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
11
  var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
12
12
  var React = _interopRequireWildcard(require("react"));
13
13
  var _styles = require("@mui/material/styles");
14
14
  var _internals = require("@mui/x-charts/internals");
15
- var _funnelSectionClasses = require("./funnelSectionClasses");
15
+ var _clsx = _interopRequireDefault(require("clsx"));
16
+ var _funnelClasses = require("./funnelClasses");
16
17
  var _jsxRuntime = require("react/jsx-runtime");
17
- const _excluded = ["classes", "color", "onClick", "className", "label", "seriesId", "dataIndex"];
18
+ const _excluded = ["classes", "color", "onClick", "className", "label", "variant", "seriesId", "dataIndex"];
19
+ const FunnelSectionLabelText = exports.FunnelSectionLabelText = (0, _styles.styled)('text', {
20
+ name: 'MuiFunnelChart',
21
+ slot: 'SectionLabel'
22
+ })(() => ({
23
+ transition: 'opacity 0.2s ease-in, fill 0.2s ease-in, fill-opacity 0.2s ease-in, filter 0.2s ease-in'
24
+ }));
25
+
18
26
  /**
19
27
  * @ignore - internal component.
20
28
  */
21
29
  const FunnelSectionLabel = exports.FunnelSectionLabel = (0, _internals.consumeSlots)('MuiFunnelSectionLabel', 'funnelSectionLabel', {
22
- classesResolver: _funnelSectionClasses.useLabelUtilityClasses
30
+ classesResolver: _funnelClasses.useUtilityClasses
23
31
  }, /*#__PURE__*/React.forwardRef(function FunnelSectionLabel(props, ref) {
24
32
  const {
25
33
  classes,
34
+ className,
26
35
  label
27
36
  } = props,
28
37
  other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
29
38
  const theme = (0, _styles.useTheme)();
30
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("text", (0, _extends2.default)({
39
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(FunnelSectionLabelText, (0, _extends2.default)({
31
40
  stroke: "none",
32
41
  pointerEvents: "none",
33
42
  fontFamily: theme.typography.body2.fontFamily,
@@ -39,7 +48,7 @@ const FunnelSectionLabel = exports.FunnelSectionLabel = (0, _internals.consumeSl
39
48
  fontStyle: theme.typography.body2.fontStyle,
40
49
  fontVariant: theme.typography.body2.fontVariant,
41
50
  fill: (theme.vars || theme)?.palette?.text?.primary,
42
- className: classes?.label,
51
+ className: (0, _clsx.default)(classes?.sectionLabel, className),
43
52
  x: label.x,
44
53
  y: label.y,
45
54
  textAnchor: label.textAnchor ?? 'middle',
@@ -2,25 +2,34 @@
2
2
 
3
3
  import _extends from "@babel/runtime/helpers/esm/extends";
4
4
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
5
- const _excluded = ["classes", "color", "onClick", "className", "label", "seriesId", "dataIndex"];
5
+ const _excluded = ["classes", "color", "onClick", "className", "label", "variant", "seriesId", "dataIndex"];
6
6
  import * as React from 'react';
7
- import { useTheme } from '@mui/material/styles';
7
+ import { styled, useTheme } from '@mui/material/styles';
8
8
  import { consumeSlots } from '@mui/x-charts/internals';
9
- import { useLabelUtilityClasses } from "./funnelSectionClasses.mjs";
9
+ import clsx from 'clsx';
10
+ import { useUtilityClasses } from "./funnelClasses.mjs";
10
11
  import { jsx as _jsx } from "react/jsx-runtime";
12
+ export const FunnelSectionLabelText = styled('text', {
13
+ name: 'MuiFunnelChart',
14
+ slot: 'SectionLabel'
15
+ })(() => ({
16
+ transition: 'opacity 0.2s ease-in, fill 0.2s ease-in, fill-opacity 0.2s ease-in, filter 0.2s ease-in'
17
+ }));
18
+
11
19
  /**
12
20
  * @ignore - internal component.
13
21
  */
14
22
  const FunnelSectionLabel = consumeSlots('MuiFunnelSectionLabel', 'funnelSectionLabel', {
15
- classesResolver: useLabelUtilityClasses
23
+ classesResolver: useUtilityClasses
16
24
  }, /*#__PURE__*/React.forwardRef(function FunnelSectionLabel(props, ref) {
17
25
  const {
18
26
  classes,
27
+ className,
19
28
  label
20
29
  } = props,
21
30
  other = _objectWithoutPropertiesLoose(props, _excluded);
22
31
  const theme = useTheme();
23
- return /*#__PURE__*/_jsx("text", _extends({
32
+ return /*#__PURE__*/_jsx(FunnelSectionLabelText, _extends({
24
33
  stroke: "none",
25
34
  pointerEvents: "none",
26
35
  fontFamily: theme.typography.body2.fontFamily,
@@ -32,7 +41,7 @@ const FunnelSectionLabel = consumeSlots('MuiFunnelSectionLabel', 'funnelSectionL
32
41
  fontStyle: theme.typography.body2.fontStyle,
33
42
  fontVariant: theme.typography.body2.fontVariant,
34
43
  fill: (theme.vars || theme)?.palette?.text?.primary,
35
- className: classes?.label,
44
+ className: clsx(classes?.sectionLabel, className),
36
45
  x: label.x,
37
46
  y: label.y,
38
47
  textAnchor: label.textAnchor ?? 'middle',
@@ -0,0 +1,29 @@
1
+ import { type SeriesId } from '@mui/x-charts/internals';
2
+ export interface FunnelClasses {
3
+ /** Styles applied to the funnel plot element. */
4
+ root: string;
5
+ /** Styles applied to an individual funnel section element. */
6
+ section: string;
7
+ /** Styles applied to a funnel section element if `variant="filled"`. */
8
+ sectionFilled: string;
9
+ /** Styles applied to a funnel section element if `variant="outlined"`. */
10
+ sectionOutlined: string;
11
+ /** Styles applied to a funnel section label element. */
12
+ sectionLabel: string;
13
+ }
14
+ export type FunnelClassKey = keyof FunnelClasses;
15
+ export interface FunnelSectionOwnerState {
16
+ seriesId: SeriesId;
17
+ dataIndex: number;
18
+ color: string;
19
+ isFaded: boolean;
20
+ isHighlighted: boolean;
21
+ classes?: Partial<FunnelClasses>;
22
+ }
23
+ export declare function getFunnelUtilityClass(slot: string): string;
24
+ export declare const funnelClasses: FunnelClasses;
25
+ export interface UseUtilityClassesOptions {
26
+ variant?: 'filled' | 'outlined';
27
+ classes?: Partial<FunnelClasses>;
28
+ }
29
+ export declare const useUtilityClasses: (options?: UseUtilityClassesOptions) => Record<"section" | "sectionLabel" | "root", string>;
@@ -0,0 +1,29 @@
1
+ import { type SeriesId } from '@mui/x-charts/internals';
2
+ export interface FunnelClasses {
3
+ /** Styles applied to the funnel plot element. */
4
+ root: string;
5
+ /** Styles applied to an individual funnel section element. */
6
+ section: string;
7
+ /** Styles applied to a funnel section element if `variant="filled"`. */
8
+ sectionFilled: string;
9
+ /** Styles applied to a funnel section element if `variant="outlined"`. */
10
+ sectionOutlined: string;
11
+ /** Styles applied to a funnel section label element. */
12
+ sectionLabel: string;
13
+ }
14
+ export type FunnelClassKey = keyof FunnelClasses;
15
+ export interface FunnelSectionOwnerState {
16
+ seriesId: SeriesId;
17
+ dataIndex: number;
18
+ color: string;
19
+ isFaded: boolean;
20
+ isHighlighted: boolean;
21
+ classes?: Partial<FunnelClasses>;
22
+ }
23
+ export declare function getFunnelUtilityClass(slot: string): string;
24
+ export declare const funnelClasses: FunnelClasses;
25
+ export interface UseUtilityClassesOptions {
26
+ variant?: 'filled' | 'outlined';
27
+ classes?: Partial<FunnelClasses>;
28
+ }
29
+ export declare const useUtilityClasses: (options?: UseUtilityClassesOptions) => Record<"section" | "sectionLabel" | "root", string>;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.funnelClasses = void 0;
8
+ exports.getFunnelUtilityClass = getFunnelUtilityClass;
9
+ exports.useUtilityClasses = void 0;
10
+ var _generateUtilityClass = _interopRequireDefault(require("@mui/utils/generateUtilityClass"));
11
+ var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
12
+ var _generateUtilityClasses = _interopRequireDefault(require("@mui/utils/generateUtilityClasses"));
13
+ function getFunnelUtilityClass(slot) {
14
+ return (0, _generateUtilityClass.default)('MuiFunnelChart', slot);
15
+ }
16
+ const funnelClasses = exports.funnelClasses = (0, _generateUtilityClasses.default)('MuiFunnelChart', ['root', 'section', 'sectionFilled', 'sectionOutlined', 'sectionLabel', 'sectionLabelFilled', 'sectionLabelOutlined']);
17
+ const useUtilityClasses = options => {
18
+ const {
19
+ variant = 'filled',
20
+ classes
21
+ } = options ?? {};
22
+ const slots = {
23
+ root: ['root'],
24
+ section: ['section', variant === 'filled' && 'sectionFilled', variant === 'outlined' && 'sectionOutlined'],
25
+ sectionLabel: ['sectionLabel', variant === 'filled' && 'sectionLabelFilled', variant === 'outlined' && 'sectionLabelOutlined']
26
+ };
27
+ return (0, _composeClasses.default)(slots, getFunnelUtilityClass, classes);
28
+ };
29
+ exports.useUtilityClasses = useUtilityClasses;
@@ -0,0 +1,19 @@
1
+ import generateUtilityClass from '@mui/utils/generateUtilityClass';
2
+ import composeClasses from '@mui/utils/composeClasses';
3
+ import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
4
+ export function getFunnelUtilityClass(slot) {
5
+ return generateUtilityClass('MuiFunnelChart', slot);
6
+ }
7
+ export const funnelClasses = generateUtilityClasses('MuiFunnelChart', ['root', 'section', 'sectionFilled', 'sectionOutlined', 'sectionLabel', 'sectionLabelFilled', 'sectionLabelOutlined']);
8
+ export const useUtilityClasses = options => {
9
+ const {
10
+ variant = 'filled',
11
+ classes
12
+ } = options ?? {};
13
+ const slots = {
14
+ root: ['root'],
15
+ section: ['section', variant === 'filled' && 'sectionFilled', variant === 'outlined' && 'sectionOutlined'],
16
+ sectionLabel: ['sectionLabel', variant === 'filled' && 'sectionLabelFilled', variant === 'outlined' && 'sectionLabelOutlined']
17
+ };
18
+ return composeClasses(slots, getFunnelUtilityClass, classes);
19
+ };
@@ -12,7 +12,7 @@ export * from "./categoryAxis.types.mjs";
12
12
  export * from "./funnelSlots.types.mjs";
13
13
  export * from "./FunnelChart.plugins.mjs";
14
14
  export type { FunnelCurveType } from "./curves/index.mjs";
15
- export { funnelSectionClasses } from "./funnelSectionClasses.mjs";
16
- export type { FunnelSectionClasses } from "./funnelSectionClasses.mjs";
15
+ export { funnelClasses } from "./funnelClasses.mjs";
16
+ export type { FunnelClassKey, FunnelClasses } from "./funnelClasses.mjs";
17
17
  export { FunnelSection } from "./FunnelSection.mjs";
18
18
  export { FunnelSectionLabel } from "./FunnelSectionLabel.mjs";
@@ -12,7 +12,7 @@ export * from "./categoryAxis.types.js";
12
12
  export * from "./funnelSlots.types.js";
13
13
  export * from "./FunnelChart.plugins.js";
14
14
  export type { FunnelCurveType } from "./curves/index.js";
15
- export { funnelSectionClasses } from "./funnelSectionClasses.js";
16
- export type { FunnelSectionClasses } from "./funnelSectionClasses.js";
15
+ export { funnelClasses } from "./funnelClasses.js";
16
+ export type { FunnelClassKey, FunnelClasses } from "./funnelClasses.js";
17
17
  export { FunnelSection } from "./FunnelSection.js";
18
18
  export { FunnelSectionLabel } from "./FunnelSectionLabel.js";
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  var _exportNames = {
7
7
  Unstable_FunnelChart: true,
8
8
  FunnelChart: true,
9
- funnelSectionClasses: true,
9
+ funnelClasses: true,
10
10
  FunnelSection: true,
11
11
  FunnelSectionLabel: true
12
12
  };
@@ -29,10 +29,10 @@ Object.defineProperty(exports, "FunnelSectionLabel", {
29
29
  }
30
30
  });
31
31
  exports.Unstable_FunnelChart = void 0;
32
- Object.defineProperty(exports, "funnelSectionClasses", {
32
+ Object.defineProperty(exports, "funnelClasses", {
33
33
  enumerable: true,
34
34
  get: function () {
35
- return _funnelSectionClasses.funnelSectionClasses;
35
+ return _funnelClasses.funnelClasses;
36
36
  }
37
37
  });
38
38
  var _FunnelChart = require("./FunnelChart");
@@ -120,7 +120,7 @@ Object.keys(_FunnelChart2).forEach(function (key) {
120
120
  }
121
121
  });
122
122
  });
123
- var _funnelSectionClasses = require("./funnelSectionClasses");
123
+ var _funnelClasses = require("./funnelClasses");
124
124
  var _FunnelSection = require("./FunnelSection");
125
125
  var _FunnelSectionLabel = require("./FunnelSectionLabel");
126
126
  /**
@@ -12,6 +12,6 @@ export * from "./funnel.types.mjs";
12
12
  export * from "./categoryAxis.types.mjs";
13
13
  export * from "./funnelSlots.types.mjs";
14
14
  export * from "./FunnelChart.plugins.mjs";
15
- export { funnelSectionClasses } from "./funnelSectionClasses.mjs";
15
+ export { funnelClasses } from "./funnelClasses.mjs";
16
16
  export { FunnelSection } from "./FunnelSection.mjs";
17
17
  export { FunnelSectionLabel } from "./FunnelSectionLabel.mjs";
@@ -16,12 +16,10 @@ const legendGetter = params => {
16
16
  if (formattedLabel === undefined) {
17
17
  return;
18
18
  }
19
- const id = item.id ?? dataIndex;
20
19
  acc.push({
21
20
  type: 'funnel',
22
21
  markType: item.labelMarkType ?? series[seriesId].labelMarkType,
23
22
  seriesId,
24
- itemId: id,
25
23
  dataIndex,
26
24
  color: item.color,
27
25
  label: formattedLabel
@@ -10,12 +10,10 @@ const legendGetter = params => {
10
10
  if (formattedLabel === undefined) {
11
11
  return;
12
12
  }
13
- const id = item.id ?? dataIndex;
14
13
  acc.push({
15
14
  type: 'funnel',
16
15
  markType: item.labelMarkType ?? series[seriesId].labelMarkType,
17
16
  seriesId,
18
- itemId: id,
19
17
  dataIndex,
20
18
  color: item.color,
21
19
  label: formattedLabel
@@ -6,7 +6,7 @@ import type { ChartsWrapperProps } from '@mui/x-charts/ChartsWrapper';
6
6
  import { type FunnelChartPluginSignatures } from "./FunnelChart.plugins.mjs";
7
7
  import { type FunnelPlotProps } from "./FunnelPlot.mjs";
8
8
  import type { FunnelChartProps } from "./FunnelChart.mjs";
9
- import { type ChartContainerProProps } from "../ChartContainerPro/index.mjs";
9
+ import { type ChartsContainerProProps } from "../ChartsContainerPro/index.mjs";
10
10
  /**
11
11
  * A helper function that extracts FunnelChartProps from the input props
12
12
  * and returns an object with props for the children components of FunnelChart.
@@ -15,7 +15,7 @@ import { type ChartContainerProProps } from "../ChartContainerPro/index.mjs";
15
15
  * @returns An object with props for the children components of FunnelChart
16
16
  */
17
17
  export declare const useFunnelChartProps: (props: FunnelChartProps) => {
18
- chartContainerProps: ChartContainerProProps<"funnel", FunnelChartPluginSignatures>;
18
+ chartsContainerProps: ChartsContainerProProps<"funnel", FunnelChartPluginSignatures>;
19
19
  funnelPlotProps: FunnelPlotProps;
20
20
  overlayProps: ChartsOverlayProps;
21
21
  chartsAxisProps: ChartsAxisProps;
@@ -6,7 +6,7 @@ import type { ChartsWrapperProps } from '@mui/x-charts/ChartsWrapper';
6
6
  import { type FunnelChartPluginSignatures } from "./FunnelChart.plugins.js";
7
7
  import { type FunnelPlotProps } from "./FunnelPlot.js";
8
8
  import type { FunnelChartProps } from "./FunnelChart.js";
9
- import { type ChartContainerProProps } from "../ChartContainerPro/index.js";
9
+ import { type ChartsContainerProProps } from "../ChartsContainerPro/index.js";
10
10
  /**
11
11
  * A helper function that extracts FunnelChartProps from the input props
12
12
  * and returns an object with props for the children components of FunnelChart.
@@ -15,7 +15,7 @@ import { type ChartContainerProProps } from "../ChartContainerPro/index.js";
15
15
  * @returns An object with props for the children components of FunnelChart
16
16
  */
17
17
  export declare const useFunnelChartProps: (props: FunnelChartProps) => {
18
- chartContainerProps: ChartContainerProProps<"funnel", FunnelChartPluginSignatures>;
18
+ chartsContainerProps: ChartsContainerProProps<"funnel", FunnelChartPluginSignatures>;
19
19
  funnelPlotProps: FunnelPlotProps;
20
20
  overlayProps: ChartsOverlayProps;
21
21
  chartsAxisProps: ChartsAxisProps;
@@ -104,7 +104,7 @@ const useFunnelChartProps = props => {
104
104
  };
105
105
  const xAxis = isHorizontal ? getCategoryAxisConfig(categoryAxis, series, isHorizontal, 'x') : valueAxisConfig;
106
106
  const yAxis = isHorizontal ? valueAxisConfig : getCategoryAxisConfig(categoryAxis, series, isHorizontal, 'y');
107
- const chartContainerProps = (0, _extends2.default)({}, other, {
107
+ const chartsContainerProps = (0, _extends2.default)({}, other, {
108
108
  series: series.map(s => (0, _extends2.default)({
109
109
  type: 'funnel',
110
110
  layout: isHorizontal ? 'horizontal' : 'vertical'
@@ -148,7 +148,7 @@ const useFunnelChartProps = props => {
148
148
  };
149
149
  const axisHighlightProps = (0, _extends2.default)({}, axisHighlight);
150
150
  return {
151
- chartContainerProps,
151
+ chartsContainerProps,
152
152
  funnelPlotProps,
153
153
  overlayProps,
154
154
  chartsAxisProps,
@@ -98,7 +98,7 @@ export const useFunnelChartProps = props => {
98
98
  };
99
99
  const xAxis = isHorizontal ? getCategoryAxisConfig(categoryAxis, series, isHorizontal, 'x') : valueAxisConfig;
100
100
  const yAxis = isHorizontal ? valueAxisConfig : getCategoryAxisConfig(categoryAxis, series, isHorizontal, 'y');
101
- const chartContainerProps = _extends({}, other, {
101
+ const chartsContainerProps = _extends({}, other, {
102
102
  series: series.map(s => _extends({
103
103
  type: 'funnel',
104
104
  layout: isHorizontal ? 'horizontal' : 'vertical'
@@ -142,7 +142,7 @@ export const useFunnelChartProps = props => {
142
142
  };
143
143
  const axisHighlightProps = _extends({}, axisHighlight);
144
144
  return {
145
- chartContainerProps,
145
+ chartsContainerProps,
146
146
  funnelPlotProps,
147
147
  overlayProps,
148
148
  chartsAxisProps,
@@ -6,7 +6,7 @@ import { type ChartsAxisSlots, type ChartsAxisSlotProps, type XAxis, type YAxis
6
6
  import { type ChartsOverlayProps, type ChartsOverlaySlotProps, type ChartsOverlaySlots } from '@mui/x-charts/ChartsOverlay';
7
7
  import { type ChartsLegendSlotProps, type ChartsLegendSlots } from '@mui/x-charts/ChartsLegend';
8
8
  import { type ChartsSlotPropsPro, type ChartsSlotsPro } from "../internals/material/index.mjs";
9
- import { type ChartContainerProProps } from "../ChartContainerPro/index.mjs";
9
+ import { type ChartsContainerProProps } from "../ChartsContainerPro/index.mjs";
10
10
  import { type HeatmapSeriesType } from "../models/seriesType/heatmap.mjs";
11
11
  import { type HeatmapTooltipProps } from "./HeatmapTooltip/index.mjs";
12
12
  import { type HeatmapItemSlotProps, type HeatmapItemSlots } from "./HeatmapItem.mjs";
@@ -28,16 +28,7 @@ export interface HeatmapSlotProps extends ChartsAxisSlotProps, ChartsOverlaySlot
28
28
  tooltip?: Partial<HeatmapTooltipProps>;
29
29
  }
30
30
  export type HeatmapSeries = MakeOptional<HeatmapSeriesType, 'type'>;
31
- export interface HeatmapProps extends Omit<ChartContainerProProps<'heatmap', HeatmapPluginSignatures>, 'series' | 'plugins' | 'xAxis' | 'yAxis' | 'axesGap' | 'skipAnimation' | 'slots' | 'slotProps' | 'experimentalFeatures' | 'highlightedAxis' | 'onHighlightedAxisChange' | 'seriesConfig' | 'onAxisClick'>, Omit<ChartsAxisProps, 'slots' | 'slotProps'>, Omit<ChartsOverlayProps, 'slots' | 'slotProps'> {
32
- /**
33
- * The function called for onClick events.
34
- * The second argument contains information about all line/bar elements at the current mouse position.
35
- * @param {MouseEvent} event The mouse event recorded on the `<svg/>` element.
36
- * @param {null | ChartsAxisData} data The data about the clicked axis and items associated with it.
37
- *
38
- * @deprecated Use `onItemClick` instead to get access to both x- and y-axis values.
39
- */
40
- onAxisClick?: ChartContainerProProps<'heatmap', HeatmapPluginSignatures>['onAxisClick'];
31
+ export interface HeatmapProps extends Omit<ChartsContainerProProps<'heatmap', HeatmapPluginSignatures>, 'series' | 'plugins' | 'xAxis' | 'yAxis' | 'axesGap' | 'skipAnimation' | 'slots' | 'slotProps' | 'highlightedAxis' | 'onHighlightedAxisChange' | 'seriesConfig' | 'onAxisClick'>, Omit<ChartsAxisProps, 'slots' | 'slotProps'>, Omit<ChartsOverlayProps, 'slots' | 'slotProps'> {
41
32
  /**
42
33
  * The configuration of the x-axes.
43
34
  * If not provided, a default axis config is used.
@@ -6,7 +6,7 @@ import { type ChartsAxisSlots, type ChartsAxisSlotProps, type XAxis, type YAxis
6
6
  import { type ChartsOverlayProps, type ChartsOverlaySlotProps, type ChartsOverlaySlots } from '@mui/x-charts/ChartsOverlay';
7
7
  import { type ChartsLegendSlotProps, type ChartsLegendSlots } from '@mui/x-charts/ChartsLegend';
8
8
  import { type ChartsSlotPropsPro, type ChartsSlotsPro } from "../internals/material/index.js";
9
- import { type ChartContainerProProps } from "../ChartContainerPro/index.js";
9
+ import { type ChartsContainerProProps } from "../ChartsContainerPro/index.js";
10
10
  import { type HeatmapSeriesType } from "../models/seriesType/heatmap.js";
11
11
  import { type HeatmapTooltipProps } from "./HeatmapTooltip/index.js";
12
12
  import { type HeatmapItemSlotProps, type HeatmapItemSlots } from "./HeatmapItem.js";
@@ -28,16 +28,7 @@ export interface HeatmapSlotProps extends ChartsAxisSlotProps, ChartsOverlaySlot
28
28
  tooltip?: Partial<HeatmapTooltipProps>;
29
29
  }
30
30
  export type HeatmapSeries = MakeOptional<HeatmapSeriesType, 'type'>;
31
- export interface HeatmapProps extends Omit<ChartContainerProProps<'heatmap', HeatmapPluginSignatures>, 'series' | 'plugins' | 'xAxis' | 'yAxis' | 'axesGap' | 'skipAnimation' | 'slots' | 'slotProps' | 'experimentalFeatures' | 'highlightedAxis' | 'onHighlightedAxisChange' | 'seriesConfig' | 'onAxisClick'>, Omit<ChartsAxisProps, 'slots' | 'slotProps'>, Omit<ChartsOverlayProps, 'slots' | 'slotProps'> {
32
- /**
33
- * The function called for onClick events.
34
- * The second argument contains information about all line/bar elements at the current mouse position.
35
- * @param {MouseEvent} event The mouse event recorded on the `<svg/>` element.
36
- * @param {null | ChartsAxisData} data The data about the clicked axis and items associated with it.
37
- *
38
- * @deprecated Use `onItemClick` instead to get access to both x- and y-axis values.
39
- */
40
- onAxisClick?: ChartContainerProProps<'heatmap', HeatmapPluginSignatures>['onAxisClick'];
31
+ export interface HeatmapProps extends Omit<ChartsContainerProProps<'heatmap', HeatmapPluginSignatures>, 'series' | 'plugins' | 'xAxis' | 'yAxis' | 'axesGap' | 'skipAnimation' | 'slots' | 'slotProps' | 'highlightedAxis' | 'onHighlightedAxisChange' | 'seriesConfig' | 'onAxisClick'>, Omit<ChartsAxisProps, 'slots' | 'slotProps'>, Omit<ChartsOverlayProps, 'slots' | 'slotProps'> {
41
32
  /**
42
33
  * The configuration of the x-axes.
43
34
  * If not provided, a default axis config is used.
@@ -20,7 +20,7 @@ var _ChartsBrushOverlay = require("@mui/x-charts/ChartsBrushOverlay");
20
20
  var _ChartsLayerContainer = require("@mui/x-charts/ChartsLayerContainer");
21
21
  var _HeatmapPlot = require("./HeatmapPlot");
22
22
  var _HeatmapTooltip = require("./HeatmapTooltip");
23
- var _ChartDataProviderPro = require("../ChartDataProviderPro");
23
+ var _ChartsDataProviderPro = require("../ChartsDataProviderPro");
24
24
  var _ChartsToolbarPro = require("../ChartsToolbarPro");
25
25
  var _FocusedHeatmapCell = require("./FocusedHeatmapCell");
26
26
  var _useHeatmapProps = require("./useHeatmapProps");
@@ -40,7 +40,7 @@ const Heatmap = exports.Heatmap = /*#__PURE__*/React.forwardRef(function Heatmap
40
40
  showToolbar = false
41
41
  } = props;
42
42
  const {
43
- chartDataProviderProProps,
43
+ chartsDataProviderProProps,
44
44
  chartsWrapperProps,
45
45
  chartsAxisProps,
46
46
  clipPathProps,
@@ -52,7 +52,7 @@ const Heatmap = exports.Heatmap = /*#__PURE__*/React.forwardRef(function Heatmap
52
52
  } = (0, _useHeatmapProps.useHeatmapProps)(props);
53
53
  const Tooltip = slots?.tooltip ?? _HeatmapTooltip.HeatmapTooltip;
54
54
  const Toolbar = slots?.toolbar ?? _ChartsToolbarPro.ChartsToolbarPro;
55
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartDataProviderPro.ChartDataProviderPro, (0, _extends2.default)({}, chartDataProviderProProps, {
55
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsDataProviderPro.ChartsDataProviderPro, (0, _extends2.default)({}, chartsDataProviderProProps, {
56
56
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_ChartsWrapper.ChartsWrapper, (0, _extends2.default)({}, chartsWrapperProps, {
57
57
  ref: ref,
58
58
  children: [showToolbar ? /*#__PURE__*/(0, _jsxRuntime.jsx)(Toolbar, (0, _extends2.default)({}, props.slotProps?.toolbar)) : null, !hideLegend && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsLegend.ChartsLegend, (0, _extends2.default)({}, legendProps)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsLayerContainer.ChartsLayerContainer, {
@@ -102,6 +102,10 @@ process.env.NODE_ENV !== "production" ? Heatmap.propTypes = {
102
102
  * An array of objects that can be used to populate series and axes data using their `dataKey` property.
103
103
  */
104
104
  dataset: _propTypes.default.arrayOf(_propTypes.default.object),
105
+ /**
106
+ * The description of the chart.
107
+ * Used to provide an accessible description for the chart.
108
+ */
105
109
  desc: _propTypes.default.string,
106
110
  /**
107
111
  * If `true`, the charts will not listen to the mouse move event.
@@ -113,6 +117,10 @@ process.env.NODE_ENV !== "production" ? Heatmap.propTypes = {
113
117
  * If `true`, disables keyboard navigation for the chart.
114
118
  */
115
119
  disableKeyboardNavigation: _propTypes.default.bool,
120
+ /**
121
+ * Options to enable features planned for the next major.
122
+ */
123
+ experimentalFeatures: _propTypes.default.object,
116
124
  /**
117
125
  * The height of the chart in px. If not defined, it takes the height of the parent element.
118
126
  */
@@ -170,15 +178,6 @@ process.env.NODE_ENV !== "production" ? Heatmap.propTypes = {
170
178
  right: _propTypes.default.number,
171
179
  top: _propTypes.default.number
172
180
  })]),
173
- /**
174
- * The function called for onClick events.
175
- * The second argument contains information about all line/bar elements at the current mouse position.
176
- * @param {MouseEvent} event The mouse event recorded on the `<svg/>` element.
177
- * @param {null | ChartsAxisData} data The data about the clicked axis and items associated with it.
178
- *
179
- * @deprecated Use `onItemClick` instead to get access to both x- and y-axis values.
180
- */
181
- onAxisClick: _propTypes.default.func,
182
181
  /**
183
182
  * The callback fired when the highlighted item changes.
184
183
  *
@@ -188,7 +187,7 @@ process.env.NODE_ENV !== "production" ? Heatmap.propTypes = {
188
187
  /**
189
188
  * The callback fired when an item is clicked.
190
189
  *
191
- * @param {React.MouseEvent<SVGSVGElement, MouseEvent>} event The click event.
190
+ * @param {React.MouseEvent<HTMLDivElement, MouseEvent>} event The click event.
192
191
  * @param {SeriesItemIdentifierWithType<SeriesType>} item The clicked item.
193
192
  */
194
193
  onItemClick: _propTypes.default.func,
@@ -234,6 +233,10 @@ process.env.NODE_ENV !== "production" ? Heatmap.propTypes = {
234
233
  slots: _propTypes.default.object,
235
234
  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]),
236
235
  theme: _propTypes.default.oneOf(['dark', 'light']),
236
+ /**
237
+ * The title of the chart.
238
+ * Used to provide an accessible label for the chart.
239
+ */
237
240
  title: _propTypes.default.string,
238
241
  /**
239
242
  * The configuration of the tooltip.
@@ -276,6 +279,7 @@ process.env.NODE_ENV !== "production" ? Heatmap.propTypes = {
276
279
  barGapRatio: _propTypes.default.number,
277
280
  categoryGapRatio: _propTypes.default.number,
278
281
  classes: _propTypes.default.object,
282
+ className: _propTypes.default.string,
279
283
  colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
280
284
  colors: _propTypes.default.arrayOf(_propTypes.default.string).isRequired,
281
285
  type: _propTypes.default.oneOf(['ordinal']).isRequired,
@@ -357,6 +361,7 @@ process.env.NODE_ENV !== "production" ? Heatmap.propTypes = {
357
361
  barGapRatio: _propTypes.default.number,
358
362
  categoryGapRatio: _propTypes.default.number,
359
363
  classes: _propTypes.default.object,
364
+ className: _propTypes.default.string,
360
365
  colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
361
366
  colors: _propTypes.default.arrayOf(_propTypes.default.string).isRequired,
362
367
  type: _propTypes.default.oneOf(['ordinal']).isRequired,
@@ -495,8 +500,8 @@ process.env.NODE_ENV !== "production" ? Heatmap.propTypes = {
495
500
  requiredKeys: _propTypes.default.arrayOf(_propTypes.default.string),
496
501
  type: _propTypes.default.oneOf(['doubleTapReset']).isRequired
497
502
  }), _propTypes.default.shape({
498
- pointerMode: _propTypes.default.any,
499
- requiredKeys: _propTypes.default.array,
503
+ pointerMode: _propTypes.default.oneOf(['mouse', 'touch']),
504
+ requiredKeys: _propTypes.default.arrayOf(_propTypes.default.string),
500
505
  type: _propTypes.default.oneOf(['brush']).isRequired
501
506
  })]).isRequired)
502
507
  })