@mui/x-charts-pro 9.0.0-alpha.2 → 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 (275) hide show
  1. package/BarChartPro/BarChartPro.d.mts +2 -2
  2. package/BarChartPro/BarChartPro.d.ts +2 -2
  3. package/BarChartPro/BarChartPro.js +43 -10
  4. package/BarChartPro/BarChartPro.mjs +43 -10
  5. package/CHANGELOG.md +246 -1
  6. package/ChartsContainerPro/ChartsContainerPro.d.mts +2 -2
  7. package/ChartsContainerPro/ChartsContainerPro.d.ts +2 -2
  8. package/ChartsContainerPro/ChartsContainerPro.js +2 -2
  9. package/ChartsContainerPro/ChartsContainerPro.mjs +2 -2
  10. package/ChartsContainerPro/useChartsContainerProProps.d.mts +4 -4
  11. package/ChartsContainerPro/useChartsContainerProProps.d.ts +4 -4
  12. package/ChartsContainerPro/useChartsContainerProProps.js +3 -3
  13. package/ChartsContainerPro/useChartsContainerProProps.mjs +3 -3
  14. package/ChartsDataProviderPro/ChartsDataProviderPro.d.mts +2 -2
  15. package/ChartsDataProviderPro/ChartsDataProviderPro.d.ts +2 -2
  16. package/ChartsDataProviderPro/ChartsDataProviderPro.js +8 -11
  17. package/ChartsDataProviderPro/ChartsDataProviderPro.mjs +8 -11
  18. package/ChartsDataProviderPro/useChartsDataProviderProProps.d.mts +1 -1
  19. package/ChartsDataProviderPro/useChartsDataProviderProProps.d.ts +1 -1
  20. package/ChartsToolbarPro/ChartsToolbarPro.js +1 -1
  21. package/ChartsToolbarPro/ChartsToolbarPro.mjs +2 -2
  22. package/ChartsToolbarPro/ChartsToolbarZoomInTrigger.js +1 -1
  23. package/ChartsToolbarPro/ChartsToolbarZoomInTrigger.mjs +2 -2
  24. package/ChartsToolbarPro/ChartsToolbarZoomOutTrigger.js +1 -1
  25. package/ChartsToolbarPro/ChartsToolbarZoomOutTrigger.mjs +2 -2
  26. package/ChartsToolbarPro/index.d.mts +2 -1
  27. package/ChartsToolbarPro/index.d.ts +2 -1
  28. package/ChartsToolbarPro/index.mjs +2 -1
  29. package/ChartsZoomSlider/internals/ChartsAxisZoomSliderActiveTrack.js +1 -1
  30. package/ChartsZoomSlider/internals/ChartsAxisZoomSliderActiveTrack.mjs +2 -2
  31. package/ChartsZoomSlider/internals/ChartsAxisZoomSliderTrack.js +1 -1
  32. package/ChartsZoomSlider/internals/ChartsAxisZoomSliderTrack.mjs +2 -2
  33. package/FunnelChart/FunnelChart.d.mts +2 -2
  34. package/FunnelChart/FunnelChart.d.ts +2 -2
  35. package/FunnelChart/FunnelChart.js +23 -8
  36. package/FunnelChart/FunnelChart.mjs +23 -8
  37. package/FunnelChart/FunnelPlot.js +8 -3
  38. package/FunnelChart/FunnelPlot.mjs +8 -3
  39. package/FunnelChart/FunnelSection.d.mts +3 -3
  40. package/FunnelChart/FunnelSection.d.ts +3 -3
  41. package/FunnelChart/FunnelSection.js +8 -9
  42. package/FunnelChart/FunnelSection.mjs +8 -9
  43. package/FunnelChart/FunnelSectionLabel.d.mts +9 -3
  44. package/FunnelChart/FunnelSectionLabel.d.ts +9 -3
  45. package/FunnelChart/FunnelSectionLabel.js +15 -6
  46. package/FunnelChart/FunnelSectionLabel.mjs +15 -6
  47. package/FunnelChart/funnelAxisPlugin/computeAxisValue.d.mts +3 -3
  48. package/FunnelChart/funnelAxisPlugin/computeAxisValue.d.ts +3 -3
  49. package/FunnelChart/funnelClasses.d.mts +29 -0
  50. package/FunnelChart/funnelClasses.d.ts +29 -0
  51. package/FunnelChart/funnelClasses.js +29 -0
  52. package/FunnelChart/funnelClasses.mjs +19 -0
  53. package/FunnelChart/index.d.mts +2 -2
  54. package/FunnelChart/index.d.ts +2 -2
  55. package/FunnelChart/index.js +4 -4
  56. package/FunnelChart/index.mjs +1 -1
  57. package/FunnelChart/seriesConfig/legend.js +0 -2
  58. package/FunnelChart/seriesConfig/legend.mjs +0 -2
  59. package/FunnelChart/useFunnelChartProps.d.mts +2 -2
  60. package/FunnelChart/useFunnelChartProps.d.ts +2 -2
  61. package/FunnelChart/useFunnelChartProps.js +2 -2
  62. package/FunnelChart/useFunnelChartProps.mjs +2 -2
  63. package/Heatmap/Heatmap.d.mts +2 -11
  64. package/Heatmap/Heatmap.d.ts +2 -11
  65. package/Heatmap/Heatmap.js +25 -19
  66. package/Heatmap/Heatmap.mjs +25 -19
  67. package/Heatmap/HeatmapCell.d.mts +33 -0
  68. package/Heatmap/HeatmapCell.d.ts +33 -0
  69. package/Heatmap/HeatmapCell.js +62 -0
  70. package/Heatmap/HeatmapCell.mjs +55 -0
  71. package/Heatmap/HeatmapItem.d.mts +1 -9
  72. package/Heatmap/HeatmapItem.d.ts +1 -9
  73. package/Heatmap/HeatmapItem.js +5 -23
  74. package/Heatmap/HeatmapItem.mjs +5 -23
  75. package/Heatmap/HeatmapSVGPlot.js +14 -7
  76. package/Heatmap/HeatmapSVGPlot.mjs +15 -8
  77. package/Heatmap/HeatmapTooltip/HeatmapTooltip.classes.js +2 -2
  78. package/Heatmap/HeatmapTooltip/HeatmapTooltip.classes.mjs +1 -1
  79. package/Heatmap/HeatmapTooltip/HeatmapTooltipContent.js +16 -13
  80. package/Heatmap/HeatmapTooltip/HeatmapTooltipContent.mjs +16 -13
  81. package/Heatmap/heatmapClasses.d.mts +6 -1
  82. package/Heatmap/heatmapClasses.d.ts +6 -1
  83. package/Heatmap/heatmapClasses.js +18 -3
  84. package/Heatmap/heatmapClasses.mjs +16 -2
  85. package/Heatmap/index.d.mts +4 -2
  86. package/Heatmap/index.d.ts +4 -2
  87. package/Heatmap/index.js +17 -13
  88. package/Heatmap/index.mjs +2 -1
  89. package/Heatmap/seriesConfig/getColor.js +5 -3
  90. package/Heatmap/seriesConfig/getColor.mjs +5 -3
  91. package/Heatmap/seriesConfig/getItemAtPosition.d.mts +2 -2
  92. package/Heatmap/seriesConfig/getItemAtPosition.d.ts +2 -2
  93. package/Heatmap/seriesConfig/getItemAtPosition.js +3 -11
  94. package/Heatmap/seriesConfig/getItemAtPosition.mjs +3 -11
  95. package/Heatmap/seriesConfig/identifierCleaner.d.mts +3 -0
  96. package/Heatmap/seriesConfig/identifierCleaner.d.ts +3 -0
  97. package/Heatmap/seriesConfig/identifierCleaner.js +15 -0
  98. package/Heatmap/seriesConfig/identifierCleaner.mjs +9 -0
  99. package/Heatmap/seriesConfig/identifierSerializer.d.mts +3 -0
  100. package/Heatmap/seriesConfig/identifierSerializer.d.ts +3 -0
  101. package/Heatmap/seriesConfig/identifierSerializer.js +11 -0
  102. package/Heatmap/seriesConfig/identifierSerializer.mjs +5 -0
  103. package/Heatmap/seriesConfig/index.js +4 -2
  104. package/Heatmap/seriesConfig/index.mjs +5 -3
  105. package/Heatmap/seriesConfig/keyboardFocusHandler.js +6 -19
  106. package/Heatmap/seriesConfig/keyboardFocusHandler.mjs +6 -19
  107. package/Heatmap/seriesConfig/seriesProcessor.js +8 -3
  108. package/Heatmap/seriesConfig/seriesProcessor.mjs +8 -3
  109. package/Heatmap/seriesConfig/tooltip.js +7 -6
  110. package/Heatmap/seriesConfig/tooltip.mjs +7 -6
  111. package/Heatmap/seriesConfig/tooltipPosition.js +3 -4
  112. package/Heatmap/seriesConfig/tooltipPosition.mjs +3 -4
  113. package/Heatmap/shouldRegisterPointerInteractionsGlobally.js +1 -1
  114. package/Heatmap/shouldRegisterPointerInteractionsGlobally.mjs +1 -1
  115. package/Heatmap/useHeatmapProps.d.mts +2 -2
  116. package/Heatmap/useHeatmapProps.d.ts +2 -2
  117. package/Heatmap/useHeatmapProps.js +4 -6
  118. package/Heatmap/useHeatmapProps.mjs +4 -6
  119. package/LineChartPro/LineChartPro.d.mts +2 -2
  120. package/LineChartPro/LineChartPro.d.ts +2 -2
  121. package/LineChartPro/LineChartPro.js +40 -13
  122. package/LineChartPro/LineChartPro.mjs +40 -13
  123. package/PieChartPro/PieChartPro.d.mts +2 -2
  124. package/PieChartPro/PieChartPro.d.ts +2 -2
  125. package/PieChartPro/PieChartPro.js +22 -7
  126. package/PieChartPro/PieChartPro.mjs +22 -7
  127. package/RadarChartPro/RadarChartPro.d.mts +1 -1
  128. package/RadarChartPro/RadarChartPro.d.ts +1 -1
  129. package/RadarChartPro/RadarChartPro.js +20 -2
  130. package/RadarChartPro/RadarChartPro.mjs +20 -2
  131. package/SankeyChart/SankeyChart.d.mts +2 -2
  132. package/SankeyChart/SankeyChart.d.ts +2 -2
  133. package/SankeyChart/SankeyChart.js +21 -12
  134. package/SankeyChart/SankeyChart.mjs +21 -12
  135. package/SankeyChart/SankeyDataProvider.d.mts +2 -2
  136. package/SankeyChart/SankeyDataProvider.d.ts +2 -2
  137. package/SankeyChart/SankeyDataProvider.js +2 -2
  138. package/SankeyChart/SankeyDataProvider.mjs +2 -2
  139. package/SankeyChart/SankeyLinkElement.js +7 -3
  140. package/SankeyChart/SankeyLinkElement.mjs +8 -4
  141. package/SankeyChart/SankeyLinkLabel.js +3 -0
  142. package/SankeyChart/SankeyLinkLabel.mjs +3 -0
  143. package/SankeyChart/SankeyLinkLabelPlot.d.mts +2 -2
  144. package/SankeyChart/SankeyLinkLabelPlot.d.ts +2 -2
  145. package/SankeyChart/SankeyLinkLabelPlot.js +1 -1
  146. package/SankeyChart/SankeyLinkLabelPlot.mjs +1 -1
  147. package/SankeyChart/SankeyLinkPlot.d.mts +2 -2
  148. package/SankeyChart/SankeyLinkPlot.d.ts +2 -2
  149. package/SankeyChart/SankeyLinkPlot.js +1 -1
  150. package/SankeyChart/SankeyLinkPlot.mjs +1 -1
  151. package/SankeyChart/SankeyNodeElement.d.mts +1 -1
  152. package/SankeyChart/SankeyNodeElement.d.ts +1 -1
  153. package/SankeyChart/SankeyNodeElement.js +20 -18
  154. package/SankeyChart/SankeyNodeElement.mjs +21 -19
  155. package/SankeyChart/SankeyNodeLabel.js +3 -0
  156. package/SankeyChart/SankeyNodeLabel.mjs +3 -0
  157. package/SankeyChart/SankeyNodeLabelPlot.d.mts +2 -2
  158. package/SankeyChart/SankeyNodeLabelPlot.d.ts +2 -2
  159. package/SankeyChart/SankeyNodeLabelPlot.js +1 -1
  160. package/SankeyChart/SankeyNodeLabelPlot.mjs +1 -1
  161. package/SankeyChart/SankeyNodePlot.d.mts +2 -2
  162. package/SankeyChart/SankeyNodePlot.d.ts +2 -2
  163. package/SankeyChart/SankeyNodePlot.js +1 -1
  164. package/SankeyChart/SankeyNodePlot.mjs +1 -1
  165. package/SankeyChart/SankeyPlot.d.mts +2 -2
  166. package/SankeyChart/SankeyPlot.d.ts +2 -2
  167. package/SankeyChart/SankeyPlot.js +3 -3
  168. package/SankeyChart/SankeyPlot.mjs +3 -3
  169. package/SankeyChart/SankeyTooltip/SankeyTooltip.classes.js +2 -2
  170. package/SankeyChart/SankeyTooltip/SankeyTooltip.classes.mjs +1 -1
  171. package/SankeyChart/index.d.mts +2 -1
  172. package/SankeyChart/index.d.ts +2 -1
  173. package/SankeyChart/index.js +3 -3
  174. package/SankeyChart/index.mjs +1 -1
  175. package/SankeyChart/sankeyClasses.d.mts +15 -6
  176. package/SankeyChart/sankeyClasses.d.ts +15 -6
  177. package/SankeyChart/sankeyClasses.js +12 -8
  178. package/SankeyChart/sankeyClasses.mjs +10 -6
  179. package/SankeyChart/sankeyHighlightHooks.d.mts +2 -2
  180. package/SankeyChart/sankeyHighlightHooks.d.ts +2 -2
  181. package/SankeyChart/sankeyHighlightHooks.js +2 -10
  182. package/SankeyChart/sankeyHighlightHooks.mjs +3 -11
  183. package/SankeyChart/useSankeyChartProps.d.mts +2 -2
  184. package/SankeyChart/useSankeyChartProps.d.ts +2 -2
  185. package/SankeyChart/useSankeyChartProps.js +2 -2
  186. package/SankeyChart/useSankeyChartProps.mjs +2 -2
  187. package/ScatterChartPro/ScatterChartPro.d.mts +2 -2
  188. package/ScatterChartPro/ScatterChartPro.d.ts +2 -2
  189. package/ScatterChartPro/ScatterChartPro.js +62 -17
  190. package/ScatterChartPro/ScatterChartPro.mjs +62 -17
  191. package/context/useChartProApiContext.d.mts +1 -1
  192. package/context/useChartProApiContext.d.ts +1 -1
  193. package/context/useChartProApiContext.js +1 -1
  194. package/context/useChartProApiContext.mjs +1 -1
  195. package/index.d.mts +0 -4
  196. package/index.d.ts +0 -4
  197. package/index.js +2 -34
  198. package/index.mjs +1 -4
  199. package/internals/ChartsWatermark.d.mts +2 -2
  200. package/internals/ChartsWatermark.d.ts +2 -2
  201. package/internals/ChartsWatermark.js +5 -8
  202. package/internals/ChartsWatermark.mjs +3 -6
  203. package/internals/index.d.mts +0 -1
  204. package/internals/index.d.ts +0 -1
  205. package/internals/index.js +0 -8
  206. package/internals/index.mjs +0 -1
  207. package/internals/plugins/allPlugins.d.mts +4 -4
  208. package/internals/plugins/allPlugins.d.ts +4 -4
  209. package/internals/plugins/useChartProExport/common.js +4 -8
  210. package/internals/plugins/useChartProExport/common.mjs +4 -8
  211. package/internals/plugins/useChartProExport/exportImage.js +1 -1
  212. package/internals/plugins/useChartProExport/exportImage.mjs +1 -1
  213. package/internals/plugins/useChartProZoom/ZoomInteractionConfig.types.d.mts +1 -1
  214. package/internals/plugins/useChartProZoom/ZoomInteractionConfig.types.d.ts +1 -1
  215. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnBrush.js +16 -1
  216. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnBrush.mjs +16 -1
  217. package/models/seriesType/heatmap.d.mts +36 -9
  218. package/models/seriesType/heatmap.d.ts +36 -9
  219. package/models/seriesType/heatmap.js +28 -1
  220. package/models/seriesType/heatmap.mjs +25 -1
  221. package/package.json +5 -61
  222. package/plugins/selectors/useChartHeatmapPosition.selectors.d.mts +2 -2
  223. package/plugins/selectors/useChartHeatmapPosition.selectors.d.ts +2 -2
  224. package/plugins/selectors/useChartHeatmapPosition.selectors.js +4 -4
  225. package/plugins/selectors/useChartHeatmapPosition.selectors.mjs +4 -4
  226. package/themeAugmentation/components.d.mts +19 -1
  227. package/themeAugmentation/components.d.ts +19 -1
  228. package/themeAugmentation/overrides.d.mts +5 -2
  229. package/themeAugmentation/overrides.d.ts +5 -2
  230. package/themeAugmentation/props.d.mts +8 -0
  231. package/themeAugmentation/props.d.ts +8 -0
  232. package/typeOverloads/modules.d.mts +2 -2
  233. package/typeOverloads/modules.d.ts +2 -2
  234. package/ChartContainer/index.d.mts +0 -1
  235. package/ChartContainer/index.d.ts +0 -1
  236. package/ChartContainer/index.js +0 -16
  237. package/ChartContainer/index.mjs +0 -2
  238. package/ChartContainerPro/ChartContainerPro.d.mts +0 -21
  239. package/ChartContainerPro/ChartContainerPro.d.ts +0 -21
  240. package/ChartContainerPro/ChartContainerPro.js +0 -24
  241. package/ChartContainerPro/ChartContainerPro.mjs +0 -20
  242. package/ChartContainerPro/index.d.mts +0 -9
  243. package/ChartContainerPro/index.d.ts +0 -9
  244. package/ChartContainerPro/index.js +0 -17
  245. package/ChartContainerPro/index.mjs +0 -6
  246. package/ChartContainerPro/useChartContainerProProps.d.mts +0 -12
  247. package/ChartContainerPro/useChartContainerProProps.d.ts +0 -12
  248. package/ChartContainerPro/useChartContainerProProps.js +0 -19
  249. package/ChartContainerPro/useChartContainerProProps.mjs +0 -14
  250. package/ChartDataProvider/index.d.mts +0 -1
  251. package/ChartDataProvider/index.d.ts +0 -1
  252. package/ChartDataProvider/index.js +0 -16
  253. package/ChartDataProvider/index.mjs +0 -2
  254. package/ChartDataProviderPro/ChartDataProviderPro.d.mts +0 -20
  255. package/ChartDataProviderPro/ChartDataProviderPro.d.ts +0 -20
  256. package/ChartDataProviderPro/ChartDataProviderPro.js +0 -30
  257. package/ChartDataProviderPro/ChartDataProviderPro.mjs +0 -21
  258. package/ChartDataProviderPro/index.d.mts +0 -2
  259. package/ChartDataProviderPro/index.d.ts +0 -2
  260. package/ChartDataProviderPro/index.js +0 -13
  261. package/ChartDataProviderPro/index.mjs +0 -2
  262. package/ChartDataProviderPro/useChartDataProviderProProps.d.mts +0 -10
  263. package/ChartDataProviderPro/useChartDataProviderProProps.d.ts +0 -10
  264. package/ChartDataProviderPro/useChartDataProviderProProps.js +0 -12
  265. package/ChartDataProviderPro/useChartDataProviderProProps.mjs +0 -8
  266. package/FunnelChart/funnelSectionClasses.d.mts +0 -30
  267. package/FunnelChart/funnelSectionClasses.d.ts +0 -30
  268. package/FunnelChart/funnelSectionClasses.js +0 -44
  269. package/FunnelChart/funnelSectionClasses.mjs +0 -35
  270. package/Heatmap/internals/HeatmapCell.d.mts +0 -21
  271. package/Heatmap/internals/HeatmapCell.d.ts +0 -21
  272. package/Heatmap/internals/HeatmapCell.js +0 -18
  273. package/Heatmap/internals/HeatmapCell.mjs +0 -12
  274. package/tests/constants.js +0 -7
  275. package/tests/constants.mjs +0 -1
@@ -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',
@@ -8,10 +8,10 @@ export type ComputeResult<T extends ChartsAxisProps> = {
8
8
  axis: ComputedAxisConfig<T>;
9
9
  axisIds: string[];
10
10
  };
11
- type ComputeCommonParams<T extends ChartSeriesType = 'funnel'> = {
11
+ type ComputeCommonParams<SeriesType extends ChartSeriesType = 'funnel'> = {
12
12
  drawingArea: ChartDrawingArea;
13
- formattedSeries: ProcessedSeries<T>;
14
- seriesConfig: ChartSeriesConfig<T>;
13
+ formattedSeries: ProcessedSeries<SeriesType>;
14
+ seriesConfig: ChartSeriesConfig<SeriesType>;
15
15
  gap: number;
16
16
  };
17
17
  export declare function computeAxisValue(options: ComputeCommonParams<'funnel'> & {
@@ -8,10 +8,10 @@ export type ComputeResult<T extends ChartsAxisProps> = {
8
8
  axis: ComputedAxisConfig<T>;
9
9
  axisIds: string[];
10
10
  };
11
- type ComputeCommonParams<T extends ChartSeriesType = 'funnel'> = {
11
+ type ComputeCommonParams<SeriesType extends ChartSeriesType = 'funnel'> = {
12
12
  drawingArea: ChartDrawingArea;
13
- formattedSeries: ProcessedSeries<T>;
14
- seriesConfig: ChartSeriesConfig<T>;
13
+ formattedSeries: ProcessedSeries<SeriesType>;
14
+ seriesConfig: ChartSeriesConfig<SeriesType>;
15
15
  gap: number;
16
16
  };
17
17
  export declare function computeAxisValue(options: ComputeCommonParams<'funnel'> & {
@@ -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.
@@ -109,7 +113,14 @@ process.env.NODE_ENV !== "production" ? Heatmap.propTypes = {
109
113
  * @default false
110
114
  */
111
115
  disableAxisListener: _propTypes.default.bool,
112
- enableKeyboardNavigation: _propTypes.default.bool,
116
+ /**
117
+ * If `true`, disables keyboard navigation for the chart.
118
+ */
119
+ disableKeyboardNavigation: _propTypes.default.bool,
120
+ /**
121
+ * Options to enable features planned for the next major.
122
+ */
123
+ experimentalFeatures: _propTypes.default.object,
113
124
  /**
114
125
  * The height of the chart in px. If not defined, it takes the height of the parent element.
115
126
  */
@@ -167,15 +178,6 @@ process.env.NODE_ENV !== "production" ? Heatmap.propTypes = {
167
178
  right: _propTypes.default.number,
168
179
  top: _propTypes.default.number
169
180
  })]),
170
- /**
171
- * The function called for onClick events.
172
- * The second argument contains information about all line/bar elements at the current mouse position.
173
- * @param {MouseEvent} event The mouse event recorded on the `<svg/>` element.
174
- * @param {null | ChartsAxisData} data The data about the clicked axis and items associated with it.
175
- *
176
- * @deprecated Use `onItemClick` instead to get access to both x- and y-axis values.
177
- */
178
- onAxisClick: _propTypes.default.func,
179
181
  /**
180
182
  * The callback fired when the highlighted item changes.
181
183
  *
@@ -185,7 +187,7 @@ process.env.NODE_ENV !== "production" ? Heatmap.propTypes = {
185
187
  /**
186
188
  * The callback fired when an item is clicked.
187
189
  *
188
- * @param {React.MouseEvent<SVGSVGElement, MouseEvent>} event The click event.
190
+ * @param {React.MouseEvent<HTMLDivElement, MouseEvent>} event The click event.
189
191
  * @param {SeriesItemIdentifierWithType<SeriesType>} item The clicked item.
190
192
  */
191
193
  onItemClick: _propTypes.default.func,
@@ -200,7 +202,7 @@ process.env.NODE_ENV !== "production" ? Heatmap.propTypes = {
200
202
  /**
201
203
  * The callback fired when the tooltip item changes.
202
204
  *
203
- * @param {SeriesItemIdentifier<TSeries> | null} tooltipItem The newly highlighted item.
205
+ * @param {SeriesItemIdentifier<SeriesType> | null} tooltipItem The newly highlighted item.
204
206
  */
205
207
  onTooltipItemChange: _propTypes.default.func,
206
208
  /**
@@ -231,6 +233,10 @@ process.env.NODE_ENV !== "production" ? Heatmap.propTypes = {
231
233
  slots: _propTypes.default.object,
232
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]),
233
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
+ */
234
240
  title: _propTypes.default.string,
235
241
  /**
236
242
  * The configuration of the tooltip.
@@ -250,13 +256,11 @@ process.env.NODE_ENV !== "production" ? Heatmap.propTypes = {
250
256
  * Used when the tooltip is controlled.
251
257
  */
252
258
  tooltipItem: _propTypes.default.oneOfType([_propTypes.default.shape({
253
- dataIndex: _propTypes.default.number,
254
259
  seriesId: _propTypes.default.string.isRequired,
255
260
  type: _propTypes.default.oneOf(['heatmap']).isRequired,
256
261
  xIndex: _propTypes.default.number.isRequired,
257
262
  yIndex: _propTypes.default.number.isRequired
258
263
  }), _propTypes.default.shape({
259
- dataIndex: _propTypes.default.number,
260
264
  seriesId: _propTypes.default.string.isRequired,
261
265
  xIndex: _propTypes.default.number.isRequired,
262
266
  yIndex: _propTypes.default.number.isRequired
@@ -275,6 +279,7 @@ process.env.NODE_ENV !== "production" ? Heatmap.propTypes = {
275
279
  barGapRatio: _propTypes.default.number,
276
280
  categoryGapRatio: _propTypes.default.number,
277
281
  classes: _propTypes.default.object,
282
+ className: _propTypes.default.string,
278
283
  colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
279
284
  colors: _propTypes.default.arrayOf(_propTypes.default.string).isRequired,
280
285
  type: _propTypes.default.oneOf(['ordinal']).isRequired,
@@ -356,6 +361,7 @@ process.env.NODE_ENV !== "production" ? Heatmap.propTypes = {
356
361
  barGapRatio: _propTypes.default.number,
357
362
  categoryGapRatio: _propTypes.default.number,
358
363
  classes: _propTypes.default.object,
364
+ className: _propTypes.default.string,
359
365
  colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
360
366
  colors: _propTypes.default.arrayOf(_propTypes.default.string).isRequired,
361
367
  type: _propTypes.default.oneOf(['ordinal']).isRequired,
@@ -494,8 +500,8 @@ process.env.NODE_ENV !== "production" ? Heatmap.propTypes = {
494
500
  requiredKeys: _propTypes.default.arrayOf(_propTypes.default.string),
495
501
  type: _propTypes.default.oneOf(['doubleTapReset']).isRequired
496
502
  }), _propTypes.default.shape({
497
- pointerMode: _propTypes.default.any,
498
- requiredKeys: _propTypes.default.array,
503
+ pointerMode: _propTypes.default.oneOf(['mouse', 'touch']),
504
+ requiredKeys: _propTypes.default.arrayOf(_propTypes.default.string),
499
505
  type: _propTypes.default.oneOf(['brush']).isRequired
500
506
  })]).isRequired)
501
507
  })