@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,8 +1,8 @@
1
1
  import { type ChartAnyPluginSignature, type ChartSeriesType, type UseChartsContainerPropsReturnValue } from '@mui/x-charts/internals';
2
- import type { ChartDataProviderProProps } from "../ChartDataProviderPro/index.js";
2
+ import type { ChartsDataProviderProProps } from "../ChartsDataProviderPro/index.js";
3
3
  import type { ChartsContainerProProps } from "./ChartsContainerPro.js";
4
4
  import { type AllPluginSignatures } from "../internals/plugins/allPlugins.js";
5
5
  export type UseChartsContainerProPropsReturnValue<SeriesType extends ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[]> = Pick<UseChartsContainerPropsReturnValue<SeriesType, TSignatures>, 'chartsSurfaceProps' | 'children'> & {
6
- chartDataProviderProProps: ChartDataProviderProProps<SeriesType, TSignatures>;
6
+ chartsDataProviderProProps: ChartsDataProviderProProps<SeriesType, TSignatures>;
7
7
  };
8
8
  export declare const useChartsContainerProProps: <SeriesType extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<SeriesType>>(props: ChartsContainerProProps<SeriesType, TSignatures>) => UseChartsContainerProPropsReturnValue<SeriesType, TSignatures>;
@@ -23,11 +23,11 @@ const useChartsContainerProProps = props => {
23
23
  } = _ref,
24
24
  baseProps = (0, _objectWithoutPropertiesLoose2.default)(_ref, _excluded);
25
25
  const {
26
- chartDataProviderProps,
26
+ chartsDataProviderProps,
27
27
  chartsSurfaceProps,
28
28
  children
29
29
  } = (0, _internals.useChartsContainerProps)(baseProps);
30
- const chartDataProviderProProps = (0, _extends2.default)({}, chartDataProviderProps, {
30
+ const chartsDataProviderProProps = (0, _extends2.default)({}, chartsDataProviderProps, {
31
31
  initialZoom,
32
32
  zoomData,
33
33
  onZoomChange,
@@ -36,7 +36,7 @@ const useChartsContainerProProps = props => {
36
36
  plugins: plugins ?? _allPlugins.DEFAULT_PLUGINS
37
37
  });
38
38
  return {
39
- chartDataProviderProProps,
39
+ chartsDataProviderProProps,
40
40
  chartsSurfaceProps,
41
41
  children
42
42
  };
@@ -17,11 +17,11 @@ export const useChartsContainerProProps = props => {
17
17
  } = _ref,
18
18
  baseProps = _objectWithoutPropertiesLoose(_ref, _excluded);
19
19
  const {
20
- chartDataProviderProps,
20
+ chartsDataProviderProps,
21
21
  chartsSurfaceProps,
22
22
  children
23
23
  } = useChartsContainerProps(baseProps);
24
- const chartDataProviderProProps = _extends({}, chartDataProviderProps, {
24
+ const chartsDataProviderProProps = _extends({}, chartsDataProviderProps, {
25
25
  initialZoom,
26
26
  zoomData,
27
27
  onZoomChange,
@@ -30,7 +30,7 @@ export const useChartsContainerProProps = props => {
30
30
  plugins: plugins ?? DEFAULT_PLUGINS
31
31
  });
32
32
  return {
33
- chartDataProviderProProps,
33
+ chartsDataProviderProProps,
34
34
  chartsSurfaceProps,
35
35
  children
36
36
  };
@@ -18,8 +18,8 @@ var _useChartsDataProviderProProps = require("./useChartsDataProviderProProps");
18
18
  var _ChartsWatermark = require("../internals/ChartsWatermark");
19
19
  var _jsxRuntime = require("react/jsx-runtime");
20
20
  const packageInfo = {
21
- releaseDate: "MTc3MzI3MzYwMDAwMA==",
22
- version: process.env.MUI_VERSION,
21
+ releaseDate: "MTc3Mzk2NDgwMDAwMA==",
22
+ version: "9.0.0-alpha.4",
23
23
  name: 'x-charts-pro'
24
24
  };
25
25
  const defaultSeriesConfigPro = exports.defaultSeriesConfigPro = _internals.defaultSeriesConfig;
@@ -94,12 +94,6 @@ process.env.NODE_ENV !== "production" ? ChartsDataProviderPro.propTypes = {
94
94
  * An array of objects that can be used to populate series and axes data using their `dataKey` property.
95
95
  */
96
96
  dataset: _propTypes.default.arrayOf(_propTypes.default.object),
97
- /**
98
- * Options to enable features planned for the next major.
99
- */
100
- experimentalFeatures: _propTypes.default.shape({
101
- preferStrictDomainInLineCharts: _propTypes.default.bool
102
- }),
103
97
  /**
104
98
  * The height of the chart in px. If not defined, it takes the height of the parent element.
105
99
  */
@@ -11,8 +11,8 @@ import { useChartsDataProviderProProps } from "./useChartsDataProviderProProps.m
11
11
  import { ChartsWatermark } from "../internals/ChartsWatermark.mjs";
12
12
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
13
  const packageInfo = {
14
- releaseDate: "MTc3MzI3MzYwMDAwMA==",
15
- version: process.env.MUI_VERSION,
14
+ releaseDate: "MTc3Mzk2NDgwMDAwMA==",
15
+ version: "9.0.0-alpha.4",
16
16
  name: 'x-charts-pro'
17
17
  };
18
18
  export const defaultSeriesConfigPro = defaultSeriesConfig;
@@ -87,12 +87,6 @@ process.env.NODE_ENV !== "production" ? ChartsDataProviderPro.propTypes = {
87
87
  * An array of objects that can be used to populate series and axes data using their `dataKey` property.
88
88
  */
89
89
  dataset: PropTypes.arrayOf(PropTypes.object),
90
- /**
91
- * Options to enable features planned for the next major.
92
- */
93
- experimentalFeatures: PropTypes.shape({
94
- preferStrictDomainInLineCharts: PropTypes.bool
95
- }),
96
90
  /**
97
91
  * The height of the chart in px. If not defined, it takes the height of the parent element.
98
92
  */
@@ -43,7 +43,7 @@ function ChartsToolbarPro(_ref) {
43
43
  } = (0, _internals.useChartsSlots)();
44
44
  const {
45
45
  store
46
- } = (0, _internals.useChartContext)();
46
+ } = (0, _internals.useChartsContext)();
47
47
  const {
48
48
  localeText
49
49
  } = (0, _hooks.useChartsLocalization)();
@@ -6,7 +6,7 @@ const _excluded = ["printOptions", "imageExportOptions"];
6
6
  import * as React from 'react';
7
7
  import PropTypes from 'prop-types';
8
8
  import { Toolbar, ToolbarButton } from '@mui/x-charts/Toolbar';
9
- import { useChartContext, useChartsSlots } from '@mui/x-charts/internals';
9
+ import { useChartsContext, useChartsSlots } from '@mui/x-charts/internals';
10
10
  import { useChartsLocalization } from '@mui/x-charts/hooks';
11
11
  import useId from '@mui/utils/useId';
12
12
  import { ChartsToolbarDivider } from "./internals/ChartsToolbarDivider.mjs";
@@ -36,7 +36,7 @@ function ChartsToolbarPro(_ref) {
36
36
  } = useChartsSlots();
37
37
  const {
38
38
  store
39
- } = useChartContext();
39
+ } = useChartsContext();
40
40
  const {
41
41
  localeText
42
42
  } = useChartsLocalization();
@@ -32,7 +32,7 @@ const ChartsToolbarZoomInTrigger = exports.ChartsToolbarZoomInTrigger = /*#__PUR
32
32
  const {
33
33
  instance,
34
34
  store
35
- } = (0, _internals.useChartContext)();
35
+ } = (0, _internals.useChartsContext)();
36
36
  const disabled = store.use(_useChartProZoom.selectorChartCanZoomIn);
37
37
  const element = (0, _useComponentRenderer.useComponentRenderer)(slots.baseButton, render, (0, _extends2.default)({}, slotProps.baseButton, {
38
38
  onClick: () => instance.zoomIn(),
@@ -5,7 +5,7 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
5
5
  const _excluded = ["render"];
6
6
  import * as React from 'react';
7
7
  import PropTypes from 'prop-types';
8
- import { useChartContext, useChartsSlots } from '@mui/x-charts/internals';
8
+ import { useChartsContext, useChartsSlots } from '@mui/x-charts/internals';
9
9
  import { useComponentRenderer } from '@mui/x-internals/useComponentRenderer';
10
10
  import { selectorChartCanZoomIn } from "../internals/plugins/useChartProZoom/index.mjs";
11
11
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -25,7 +25,7 @@ const ChartsToolbarZoomInTrigger = /*#__PURE__*/React.forwardRef(function Charts
25
25
  const {
26
26
  instance,
27
27
  store
28
- } = useChartContext();
28
+ } = useChartsContext();
29
29
  const disabled = store.use(selectorChartCanZoomIn);
30
30
  const element = useComponentRenderer(slots.baseButton, render, _extends({}, slotProps.baseButton, {
31
31
  onClick: () => instance.zoomIn(),
@@ -32,7 +32,7 @@ const ChartsToolbarZoomOutTrigger = exports.ChartsToolbarZoomOutTrigger = /*#__P
32
32
  const {
33
33
  instance,
34
34
  store
35
- } = (0, _internals.useChartContext)();
35
+ } = (0, _internals.useChartsContext)();
36
36
  const disabled = store.use(_useChartProZoom.selectorChartCanZoomOut);
37
37
  const element = (0, _useComponentRenderer.useComponentRenderer)(slots.baseButton, render, (0, _extends2.default)({}, slotProps.baseButton, {
38
38
  onClick: () => instance.zoomOut(),
@@ -5,7 +5,7 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
5
5
  const _excluded = ["render"];
6
6
  import * as React from 'react';
7
7
  import PropTypes from 'prop-types';
8
- import { useChartContext, useChartsSlots } from '@mui/x-charts/internals';
8
+ import { useChartsContext, useChartsSlots } from '@mui/x-charts/internals';
9
9
  import { useComponentRenderer } from '@mui/x-internals/useComponentRenderer';
10
10
  import { selectorChartCanZoomOut } from "../internals/plugins/useChartProZoom/index.mjs";
11
11
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -25,7 +25,7 @@ const ChartsToolbarZoomOutTrigger = /*#__PURE__*/React.forwardRef(function Chart
25
25
  const {
26
26
  instance,
27
27
  store
28
- } = useChartContext();
28
+ } = useChartsContext();
29
29
  const disabled = store.use(selectorChartCanZoomOut);
30
30
  const element = useComponentRenderer(slots.baseButton, render, _extends({}, slotProps.baseButton, {
31
31
  onClick: () => instance.zoomOut(),
@@ -2,4 +2,5 @@ export * from "./ChartsToolbarPro.mjs";
2
2
  export * from "./ChartsToolbarZoomInTrigger.mjs";
3
3
  export * from "./ChartsToolbarZoomOutTrigger.mjs";
4
4
  export * from "./ChartsToolbarPrintExportTrigger.mjs";
5
- export * from "./ChartsToolbarImageExportTrigger.mjs";
5
+ export * from "./ChartsToolbarImageExportTrigger.mjs";
6
+ export type { ChartsToolbarProSlots, ChartsToolbarProSlotProps } from "./Toolbar.types.mjs";
@@ -2,4 +2,5 @@ export * from "./ChartsToolbarPro.js";
2
2
  export * from "./ChartsToolbarZoomInTrigger.js";
3
3
  export * from "./ChartsToolbarZoomOutTrigger.js";
4
4
  export * from "./ChartsToolbarPrintExportTrigger.js";
5
- export * from "./ChartsToolbarImageExportTrigger.js";
5
+ export * from "./ChartsToolbarImageExportTrigger.js";
6
+ export type { ChartsToolbarProSlots, ChartsToolbarProSlotProps } from "./Toolbar.types.js";
@@ -2,4 +2,5 @@ export * from "./ChartsToolbarPro.mjs";
2
2
  export * from "./ChartsToolbarZoomInTrigger.mjs";
3
3
  export * from "./ChartsToolbarZoomOutTrigger.mjs";
4
4
  export * from "./ChartsToolbarPrintExportTrigger.mjs";
5
- export * from "./ChartsToolbarImageExportTrigger.mjs";
5
+ export * from "./ChartsToolbarImageExportTrigger.mjs";
6
+ export {};
@@ -60,7 +60,7 @@ function ChartsAxisZoomSliderActiveTrack({
60
60
  }) {
61
61
  const {
62
62
  instance
63
- } = (0, _internals.useChartContext)();
63
+ } = (0, _internals.useChartsContext)();
64
64
  const {
65
65
  chartsLayerContainerRef
66
66
  } = instance;
@@ -2,7 +2,7 @@
2
2
 
3
3
  import _extends from "@babel/runtime/helpers/esm/extends";
4
4
  import { styled } from '@mui/material/styles';
5
- import { getChartPoint, invertScale, selectorChartAxis, selectorChartAxisZoomOptionsLookup, useChartContext, useDrawingArea, useStore } from '@mui/x-charts/internals';
5
+ import { getChartPoint, invertScale, selectorChartAxis, selectorChartAxisZoomOptionsLookup, useChartsContext, useDrawingArea, useStore } from '@mui/x-charts/internals';
6
6
  import * as React from 'react';
7
7
  import { rafThrottle } from '@mui/x-internals/rafThrottle';
8
8
  import { shouldForwardProp } from '@mui/system';
@@ -53,7 +53,7 @@ export function ChartsAxisZoomSliderActiveTrack({
53
53
  }) {
54
54
  const {
55
55
  instance
56
- } = useChartContext();
56
+ } = useChartsContext();
57
57
  const {
58
58
  chartsLayerContainerRef
59
59
  } = instance;
@@ -59,7 +59,7 @@ function ChartsAxisZoomSliderTrack(_ref) {
59
59
  const ref = React.useRef(null);
60
60
  const {
61
61
  instance
62
- } = (0, _internals.useChartContext)();
62
+ } = (0, _internals.useChartsContext)();
63
63
  const {
64
64
  chartsLayerContainerRef
65
65
  } = instance;
@@ -4,7 +4,7 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
4
4
  import _extends from "@babel/runtime/helpers/esm/extends";
5
5
  const _excluded = ["axisId", "axisDirection", "reverse", "onSelectStart", "onSelectEnd"];
6
6
  import * as React from 'react';
7
- import { useChartContext, getChartPoint, selectorChartAxisZoomOptionsLookup, useStore } from '@mui/x-charts/internals';
7
+ import { useChartsContext, getChartPoint, selectorChartAxisZoomOptionsLookup, useStore } from '@mui/x-charts/internals';
8
8
  import { styled } from '@mui/material/styles';
9
9
  import { rafThrottle } from '@mui/x-internals/rafThrottle';
10
10
  import { shouldForwardProp } from '@mui/system';
@@ -52,7 +52,7 @@ export function ChartsAxisZoomSliderTrack(_ref) {
52
52
  const ref = React.useRef(null);
53
53
  const {
54
54
  instance
55
- } = useChartContext();
55
+ } = useChartsContext();
56
56
  const {
57
57
  chartsLayerContainerRef
58
58
  } = instance;
@@ -4,12 +4,12 @@ import { type MakeOptional } from '@mui/x-internals/types';
4
4
  import { type ChartsAxisHighlightProps } from '@mui/x-charts/ChartsAxisHighlight';
5
5
  import { type FunnelPlotProps } from "./FunnelPlot.mjs";
6
6
  import { type FunnelSeriesType } from "./funnel.types.mjs";
7
- import { type ChartContainerProProps } from "../ChartContainerPro/index.mjs";
7
+ import { type ChartsContainerProProps } from "../ChartsContainerPro/index.mjs";
8
8
  import { type FunnelChartSlotExtension } from "./funnelSlots.types.mjs";
9
9
  import { type CategoryAxis } from "./categoryAxis.types.mjs";
10
10
  import { type FunnelChartPluginSignatures } from "./FunnelChart.plugins.mjs";
11
11
  export type FunnelSeries = MakeOptional<FunnelSeriesType, 'type'>;
12
- export interface FunnelChartProps extends Omit<ChartContainerProProps<'funnel', FunnelChartPluginSignatures>, 'series' | 'plugins' | 'zAxis' | 'zoom' | 'onZoomChange' | 'dataset' | 'yAxis' | 'xAxis' | 'rotationAxis' | 'radiusAxis' | 'slots' | 'slotProps' | 'experimentalFeatures'>, Omit<FunnelPlotProps, 'slots' | 'slotProps'>, Omit<ChartsOverlayProps, 'slots' | 'slotProps'>, FunnelChartSlotExtension {
12
+ export interface FunnelChartProps extends Omit<ChartsContainerProProps<'funnel', FunnelChartPluginSignatures>, 'series' | 'plugins' | 'zAxis' | 'zoom' | 'onZoomChange' | 'dataset' | 'yAxis' | 'xAxis' | 'rotationAxis' | 'radiusAxis' | 'slots' | 'slotProps'>, Omit<FunnelPlotProps, 'slots' | 'slotProps'>, Omit<ChartsOverlayProps, 'slots' | 'slotProps'>, FunnelChartSlotExtension {
13
13
  /**
14
14
  * The series to display in the funnel chart.
15
15
  * An array of [[FunnelSeries]] objects.
@@ -4,12 +4,12 @@ import { type MakeOptional } from '@mui/x-internals/types';
4
4
  import { type ChartsAxisHighlightProps } from '@mui/x-charts/ChartsAxisHighlight';
5
5
  import { type FunnelPlotProps } from "./FunnelPlot.js";
6
6
  import { type FunnelSeriesType } from "./funnel.types.js";
7
- import { type ChartContainerProProps } from "../ChartContainerPro/index.js";
7
+ import { type ChartsContainerProProps } from "../ChartsContainerPro/index.js";
8
8
  import { type FunnelChartSlotExtension } from "./funnelSlots.types.js";
9
9
  import { type CategoryAxis } from "./categoryAxis.types.js";
10
10
  import { type FunnelChartPluginSignatures } from "./FunnelChart.plugins.js";
11
11
  export type FunnelSeries = MakeOptional<FunnelSeriesType, 'type'>;
12
- export interface FunnelChartProps extends Omit<ChartContainerProProps<'funnel', FunnelChartPluginSignatures>, 'series' | 'plugins' | 'zAxis' | 'zoom' | 'onZoomChange' | 'dataset' | 'yAxis' | 'xAxis' | 'rotationAxis' | 'radiusAxis' | 'slots' | 'slotProps' | 'experimentalFeatures'>, Omit<FunnelPlotProps, 'slots' | 'slotProps'>, Omit<ChartsOverlayProps, 'slots' | 'slotProps'>, FunnelChartSlotExtension {
12
+ export interface FunnelChartProps extends Omit<ChartsContainerProProps<'funnel', FunnelChartPluginSignatures>, 'series' | 'plugins' | 'zAxis' | 'zoom' | 'onZoomChange' | 'dataset' | 'yAxis' | 'xAxis' | 'rotationAxis' | 'radiusAxis' | 'slots' | 'slotProps'>, Omit<FunnelPlotProps, 'slots' | 'slotProps'>, Omit<ChartsOverlayProps, 'slots' | 'slotProps'>, FunnelChartSlotExtension {
13
13
  /**
14
14
  * The series to display in the funnel chart.
15
15
  * An array of [[FunnelSeries]] objects.
@@ -21,8 +21,8 @@ var _ChartsWrapper = require("@mui/x-charts/ChartsWrapper");
21
21
  var _FunnelPlot = require("./FunnelPlot");
22
22
  var _useFunnelChartProps = require("./useFunnelChartProps");
23
23
  var _seriesConfig = require("./seriesConfig");
24
- var _useChartContainerProProps = require("../ChartContainerPro/useChartContainerProProps");
25
- var _ChartDataProviderPro = require("../ChartDataProviderPro");
24
+ var _useChartsContainerProProps = require("../ChartsContainerPro/useChartsContainerProProps");
25
+ var _ChartsDataProviderPro = require("../ChartsDataProviderPro");
26
26
  var _FunnelChart2 = require("./FunnelChart.plugins");
27
27
  var _FocusedFunnelSection = require("./FocusedFunnelSection");
28
28
  var _jsxRuntime = require("react/jsx-runtime");
@@ -35,7 +35,7 @@ const FunnelChart = exports.FunnelChart = /*#__PURE__*/React.forwardRef(function
35
35
  name: 'MuiFunnelChart'
36
36
  });
37
37
  const {
38
- chartContainerProps,
38
+ chartsContainerProps,
39
39
  funnelPlotProps,
40
40
  overlayProps,
41
41
  legendProps,
@@ -45,11 +45,11 @@ const FunnelChart = exports.FunnelChart = /*#__PURE__*/React.forwardRef(function
45
45
  children
46
46
  } = (0, _useFunnelChartProps.useFunnelChartProps)(themedProps);
47
47
  const {
48
- chartDataProviderProProps,
48
+ chartsDataProviderProProps,
49
49
  chartsSurfaceProps
50
- } = (0, _useChartContainerProProps.useChartContainerProProps)(chartContainerProps);
50
+ } = (0, _useChartsContainerProProps.useChartsContainerProProps)(chartsContainerProps);
51
51
  const Tooltip = themedProps.slots?.tooltip ?? _ChartsTooltip.ChartsTooltip;
52
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartDataProviderPro.ChartDataProviderPro, (0, _extends2.default)({}, chartDataProviderProProps, {
52
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsDataProviderPro.ChartsDataProviderPro, (0, _extends2.default)({}, chartsDataProviderProProps, {
53
53
  gap: themedProps.gap,
54
54
  seriesConfig: seriesConfig,
55
55
  plugins: _FunnelChart2.FUNNEL_CHART_PLUGINS,
@@ -177,6 +177,10 @@ process.env.NODE_ENV !== "production" ? FunnelChart.propTypes = {
177
177
  * @default rainbowSurgePalette
178
178
  */
179
179
  colors: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string), _propTypes.default.func]),
180
+ /**
181
+ * The description of the chart.
182
+ * Used to provide an accessible description for the chart.
183
+ */
180
184
  desc: _propTypes.default.string,
181
185
  /**
182
186
  * If `true`, the charts will not listen to the mouse move event.
@@ -188,6 +192,10 @@ process.env.NODE_ENV !== "production" ? FunnelChart.propTypes = {
188
192
  * If `true`, disables keyboard navigation for the chart.
189
193
  */
190
194
  disableKeyboardNavigation: _propTypes.default.bool,
195
+ /**
196
+ * Options to enable features planned for the next major.
197
+ */
198
+ experimentalFeatures: _propTypes.default.object,
191
199
  /**
192
200
  * The gap, in pixels, between funnel sections.
193
201
  * @default 0
@@ -351,6 +359,10 @@ process.env.NODE_ENV !== "production" ? FunnelChart.propTypes = {
351
359
  slots: _propTypes.default.object,
352
360
  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]),
353
361
  theme: _propTypes.default.oneOf(['dark', 'light']),
362
+ /**
363
+ * The title of the chart.
364
+ * Used to provide an accessible label for the chart.
365
+ */
354
366
  title: _propTypes.default.string,
355
367
  /**
356
368
  * The tooltip item.
@@ -14,8 +14,8 @@ import { ChartsWrapper } from '@mui/x-charts/ChartsWrapper';
14
14
  import { FunnelPlot } from "./FunnelPlot.mjs";
15
15
  import { useFunnelChartProps } from "./useFunnelChartProps.mjs";
16
16
  import { funnelSeriesConfig } from "./seriesConfig/index.mjs";
17
- import { useChartContainerProProps } from "../ChartContainerPro/useChartContainerProProps.mjs";
18
- import { ChartDataProviderPro } from "../ChartDataProviderPro/index.mjs";
17
+ import { useChartsContainerProProps } from "../ChartsContainerPro/useChartsContainerProProps.mjs";
18
+ import { ChartsDataProviderPro } from "../ChartsDataProviderPro/index.mjs";
19
19
  import { FUNNEL_CHART_PLUGINS } from "./FunnelChart.plugins.mjs";
20
20
  import { FocusedFunnelSection } from "./FocusedFunnelSection.mjs";
21
21
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
@@ -28,7 +28,7 @@ const FunnelChart = /*#__PURE__*/React.forwardRef(function FunnelChart(props, re
28
28
  name: 'MuiFunnelChart'
29
29
  });
30
30
  const {
31
- chartContainerProps,
31
+ chartsContainerProps,
32
32
  funnelPlotProps,
33
33
  overlayProps,
34
34
  legendProps,
@@ -38,11 +38,11 @@ const FunnelChart = /*#__PURE__*/React.forwardRef(function FunnelChart(props, re
38
38
  children
39
39
  } = useFunnelChartProps(themedProps);
40
40
  const {
41
- chartDataProviderProProps,
41
+ chartsDataProviderProProps,
42
42
  chartsSurfaceProps
43
- } = useChartContainerProProps(chartContainerProps);
43
+ } = useChartsContainerProProps(chartsContainerProps);
44
44
  const Tooltip = themedProps.slots?.tooltip ?? ChartsTooltip;
45
- return /*#__PURE__*/_jsx(ChartDataProviderPro, _extends({}, chartDataProviderProProps, {
45
+ return /*#__PURE__*/_jsx(ChartsDataProviderPro, _extends({}, chartsDataProviderProProps, {
46
46
  gap: themedProps.gap,
47
47
  seriesConfig: seriesConfig,
48
48
  plugins: FUNNEL_CHART_PLUGINS,
@@ -170,6 +170,10 @@ process.env.NODE_ENV !== "production" ? FunnelChart.propTypes = {
170
170
  * @default rainbowSurgePalette
171
171
  */
172
172
  colors: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string), PropTypes.func]),
173
+ /**
174
+ * The description of the chart.
175
+ * Used to provide an accessible description for the chart.
176
+ */
173
177
  desc: PropTypes.string,
174
178
  /**
175
179
  * If `true`, the charts will not listen to the mouse move event.
@@ -181,6 +185,10 @@ process.env.NODE_ENV !== "production" ? FunnelChart.propTypes = {
181
185
  * If `true`, disables keyboard navigation for the chart.
182
186
  */
183
187
  disableKeyboardNavigation: PropTypes.bool,
188
+ /**
189
+ * Options to enable features planned for the next major.
190
+ */
191
+ experimentalFeatures: PropTypes.object,
184
192
  /**
185
193
  * The gap, in pixels, between funnel sections.
186
194
  * @default 0
@@ -344,6 +352,10 @@ process.env.NODE_ENV !== "production" ? FunnelChart.propTypes = {
344
352
  slots: PropTypes.object,
345
353
  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
346
354
  theme: PropTypes.oneOf(['dark', 'light']),
355
+ /**
356
+ * The title of the chart.
357
+ * Used to provide an accessible label for the chart.
358
+ */
347
359
  title: PropTypes.string,
348
360
  /**
349
361
  * The tooltip item.
@@ -15,6 +15,7 @@ var _d3Shape = require("@mui/x-charts-vendor/d3-shape");
15
15
  var _internals = require("@mui/x-charts/internals");
16
16
  var _FunnelSection = require("./FunnelSection");
17
17
  var _labelUtils = require("./labelUtils");
18
+ var _funnelClasses = require("./funnelClasses");
18
19
  var _useFunnelSeries = require("../hooks/useFunnelSeries");
19
20
  var _curves = require("./curves");
20
21
  var _FunnelSectionLabel = require("./FunnelSectionLabel");
@@ -110,7 +111,9 @@ function FunnelPlot(props) {
110
111
  } = props,
111
112
  other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
112
113
  const data = useAggregatedData();
113
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
114
+ const classes = (0, _funnelClasses.useUtilityClasses)();
115
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("g", {
116
+ className: classes.root,
114
117
  children: [data.map(series => {
115
118
  if (series.length === 0) {
116
119
  return null;
@@ -150,7 +153,8 @@ function FunnelPlot(props) {
150
153
  id,
151
154
  label,
152
155
  seriesId,
153
- dataIndex
156
+ dataIndex,
157
+ variant
154
158
  }) => {
155
159
  if (!label || !label.value) {
156
160
  return null;
@@ -158,7 +162,8 @@ function FunnelPlot(props) {
158
162
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_FunnelSectionLabel.FunnelSectionLabel, (0, _extends2.default)({
159
163
  label: label,
160
164
  dataIndex: dataIndex,
161
- seriesId: seriesId
165
+ seriesId: seriesId,
166
+ variant: variant
162
167
  }, other), id);
163
168
  })
164
169
  }, series[0].seriesId);
@@ -7,6 +7,7 @@ import { line as d3Line } from '@mui/x-charts-vendor/d3-shape';
7
7
  import { cartesianSeriesTypes, useStore } from '@mui/x-charts/internals';
8
8
  import { FunnelSection } from "./FunnelSection.mjs";
9
9
  import { alignLabel, positionLabel } from "./labelUtils.mjs";
10
+ import { useUtilityClasses } from "./funnelClasses.mjs";
10
11
  import { useFunnelSeriesContext } from "../hooks/useFunnelSeries.mjs";
11
12
  import { getFunnelCurve } from "./curves/index.mjs";
12
13
  import { FunnelSectionLabel } from "./FunnelSectionLabel.mjs";
@@ -102,7 +103,9 @@ function FunnelPlot(props) {
102
103
  } = props,
103
104
  other = _objectWithoutPropertiesLoose(props, _excluded);
104
105
  const data = useAggregatedData();
105
- return /*#__PURE__*/_jsxs(React.Fragment, {
106
+ const classes = useUtilityClasses();
107
+ return /*#__PURE__*/_jsxs("g", {
108
+ className: classes.root,
106
109
  children: [data.map(series => {
107
110
  if (series.length === 0) {
108
111
  return null;
@@ -142,7 +145,8 @@ function FunnelPlot(props) {
142
145
  id,
143
146
  label,
144
147
  seriesId,
145
- dataIndex
148
+ dataIndex,
149
+ variant
146
150
  }) => {
147
151
  if (!label || !label.value) {
148
152
  return null;
@@ -150,7 +154,8 @@ function FunnelPlot(props) {
150
154
  return /*#__PURE__*/_jsx(FunnelSectionLabel, _extends({
151
155
  label: label,
152
156
  dataIndex: dataIndex,
153
- seriesId: seriesId
157
+ seriesId: seriesId,
158
+ variant: variant
154
159
  }, other), id);
155
160
  })
156
161
  }, series[0].seriesId);
@@ -1,16 +1,16 @@
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 FunnelSectionProps extends Omit<React.SVGProps<SVGPathElement>, 'ref'> {
5
5
  seriesId: SeriesId;
6
6
  dataIndex: number;
7
7
  color: string;
8
- classes?: Partial<FunnelSectionClasses>;
8
+ classes?: Partial<FunnelClasses>;
9
9
  variant?: 'filled' | 'outlined';
10
10
  }
11
11
  export declare const FunnelSectionPath: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, Pick<React.SVGProps<SVGPathElement>, keyof React.SVGProps<SVGPathElement>>, {}>;
12
12
  /**
13
13
  * @ignore - internal component.
14
14
  */
15
- declare const FunnelSection: React.ForwardRefExoticComponent<FunnelSectionProps & React.RefAttributes<{}>>;
15
+ declare const FunnelSection: React.ForwardRefExoticComponent<FunnelSectionProps & React.RefAttributes<SVGPathElement>>;
16
16
  export { FunnelSection };
@@ -1,16 +1,16 @@
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 FunnelSectionProps extends Omit<React.SVGProps<SVGPathElement>, 'ref'> {
5
5
  seriesId: SeriesId;
6
6
  dataIndex: number;
7
7
  color: string;
8
- classes?: Partial<FunnelSectionClasses>;
8
+ classes?: Partial<FunnelClasses>;
9
9
  variant?: 'filled' | 'outlined';
10
10
  }
11
11
  export declare const FunnelSectionPath: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, Pick<React.SVGProps<SVGPathElement>, keyof React.SVGProps<SVGPathElement>>, {}>;
12
12
  /**
13
13
  * @ignore - internal component.
14
14
  */
15
- declare const FunnelSection: React.ForwardRefExoticComponent<FunnelSectionProps & React.RefAttributes<{}>>;
15
+ declare const FunnelSection: React.ForwardRefExoticComponent<FunnelSectionProps & React.RefAttributes<SVGPathElement>>;
16
16
  export { FunnelSection };
@@ -14,12 +14,12 @@ var _styles = require("@mui/material/styles");
14
14
  var _internals = require("@mui/x-charts/internals");
15
15
  var _hooks = require("@mui/x-charts/hooks");
16
16
  var _clsx = _interopRequireDefault(require("clsx"));
17
- var _funnelSectionClasses = require("./funnelSectionClasses");
17
+ var _funnelClasses = require("./funnelClasses");
18
18
  var _jsxRuntime = require("react/jsx-runtime");
19
19
  const _excluded = ["seriesId", "dataIndex", "classes", "color", "onClick", "className", "variant"];
20
20
  const FunnelSectionPath = exports.FunnelSectionPath = (0, _styles.styled)('path', {
21
- slot: 'internal',
22
- shouldForwardProp: undefined
21
+ name: 'MuiFunnelChart',
22
+ slot: 'Section'
23
23
  })(() => ({
24
24
  transition: 'opacity 0.2s ease-in, fill 0.2s ease-in, fill-opacity 0.2s ease-in, filter 0.2s ease-in'
25
25
  }));
@@ -28,7 +28,7 @@ const FunnelSectionPath = exports.FunnelSectionPath = (0, _styles.styled)('path'
28
28
  * @ignore - internal component.
29
29
  */
30
30
  const FunnelSection = exports.FunnelSection = (0, _internals.consumeSlots)('MuiFunnelSection', 'funnelSection', {
31
- classesResolver: _funnelSectionClasses.useUtilityClasses
31
+ classesResolver: _funnelClasses.useUtilityClasses
32
32
  }, /*#__PURE__*/React.forwardRef(function FunnelSection(props, ref) {
33
33
  const {
34
34
  seriesId,
@@ -62,7 +62,7 @@ const FunnelSection = exports.FunnelSection = (0, _internals.consumeSlots)('MuiF
62
62
  onClick: onClick,
63
63
  "data-highlighted": isHighlighted || undefined,
64
64
  "data-faded": isFaded || undefined,
65
- className: (0, _clsx.default)(classes?.root, className, isOutlined ? classes?.outlined : classes?.filled, isHighlighted && classes?.highlighted, isFaded && classes?.faded)
65
+ className: (0, _clsx.default)(classes?.section, className)
66
66
  }, other, {
67
67
  ref: ref
68
68
  }));
@@ -8,11 +8,11 @@ import { styled } from '@mui/material/styles';
8
8
  import { useInteractionItemProps, consumeSlots } from '@mui/x-charts/internals';
9
9
  import { useItemHighlightState } from '@mui/x-charts/hooks';
10
10
  import clsx from 'clsx';
11
- import { useUtilityClasses } from "./funnelSectionClasses.mjs";
11
+ import { useUtilityClasses } from "./funnelClasses.mjs";
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
13
  export const FunnelSectionPath = styled('path', {
14
- slot: 'internal',
15
- shouldForwardProp: undefined
14
+ name: 'MuiFunnelChart',
15
+ slot: 'Section'
16
16
  })(() => ({
17
17
  transition: 'opacity 0.2s ease-in, fill 0.2s ease-in, fill-opacity 0.2s ease-in, filter 0.2s ease-in'
18
18
  }));
@@ -55,7 +55,7 @@ const FunnelSection = consumeSlots('MuiFunnelSection', 'funnelSection', {
55
55
  onClick: onClick,
56
56
  "data-highlighted": isHighlighted || undefined,
57
57
  "data-faded": isFaded || undefined,
58
- className: clsx(classes?.root, className, isOutlined ? classes?.outlined : classes?.filled, isHighlighted && classes?.highlighted, isFaded && classes?.faded)
58
+ className: clsx(classes?.section, className)
59
59
  }, other, {
60
60
  ref: ref
61
61
  }));