@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
@@ -9,7 +9,7 @@ import { useThemeProps } from '@mui/material/styles';
9
9
  import { ChartsSurface } from '@mui/x-charts/ChartsSurface';
10
10
  import { ChartsOverlay } from '@mui/x-charts/ChartsOverlay';
11
11
  import { ChartsWrapper } from '@mui/x-charts/ChartsWrapper';
12
- import { useChartContainerProProps } from "../ChartContainerPro/useChartContainerProProps.mjs";
12
+ import { useChartsContainerProProps } from "../ChartsContainerPro/useChartsContainerProProps.mjs";
13
13
  import { SankeyPlot } from "./SankeyPlot.mjs";
14
14
  import { useSankeyChartProps } from "./useSankeyChartProps.mjs";
15
15
  import { SankeyTooltip } from "./SankeyTooltip/index.mjs";
@@ -37,24 +37,24 @@ const SankeyChart = /*#__PURE__*/React.forwardRef(function SankeyChart(props, re
37
37
  name: 'MuiSankeyChart'
38
38
  });
39
39
  const {
40
- chartContainerProps,
40
+ chartsContainerProps,
41
41
  sankeyPlotProps,
42
42
  overlayProps,
43
43
  chartsWrapperProps,
44
44
  children
45
45
  } = useSankeyChartProps(themedProps);
46
- const _useChartContainerPro = useChartContainerProProps(chartContainerProps),
46
+ const _useChartsContainerPr = useChartsContainerProProps(chartsContainerProps),
47
47
  {
48
- chartDataProviderProProps: {
48
+ chartsDataProviderProProps: {
49
49
  series
50
50
  },
51
51
  chartsSurfaceProps
52
- } = _useChartContainerPro,
53
- chartDataProviderProProps = _objectWithoutPropertiesLoose(_useChartContainerPro.chartDataProviderProProps, _excluded);
52
+ } = _useChartsContainerPr,
53
+ chartsDataProviderProProps = _objectWithoutPropertiesLoose(_useChartsContainerPr.chartsDataProviderProProps, _excluded);
54
54
  const Tooltip = themedProps.slots?.tooltip ?? SankeyTooltip;
55
55
  return /*#__PURE__*/_jsx(SankeyDataProvider, _extends({
56
56
  series: series
57
- }, chartDataProviderProProps, {
57
+ }, chartsDataProviderProProps, {
58
58
  children: /*#__PURE__*/_jsxs(ChartsWrapper, _extends({}, chartsWrapperProps, {
59
59
  ref: ref,
60
60
  children: [/*#__PURE__*/_jsxs(ChartsSurface, _extends({}, chartsSurfaceProps, {
@@ -87,6 +87,10 @@ process.env.NODE_ENV !== "production" ? SankeyChart.propTypes = {
87
87
  * @default rainbowSurgePalette
88
88
  */
89
89
  colors: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string), PropTypes.func]),
90
+ /**
91
+ * The description of the chart.
92
+ * Used to provide an accessible description for the chart.
93
+ */
90
94
  desc: PropTypes.string,
91
95
  /**
92
96
  * If `true`, disables keyboard navigation for the chart.
@@ -95,9 +99,7 @@ process.env.NODE_ENV !== "production" ? SankeyChart.propTypes = {
95
99
  /**
96
100
  * Options to enable features planned for the next major.
97
101
  */
98
- experimentalFeatures: PropTypes.shape({
99
- preferStrictDomainInLineCharts: PropTypes.bool
100
- }),
102
+ experimentalFeatures: PropTypes.object,
101
103
  /**
102
104
  * The height of the chart in px. If not defined, it takes the height of the parent element.
103
105
  */
@@ -210,6 +212,10 @@ process.env.NODE_ENV !== "production" ? SankeyChart.propTypes = {
210
212
  slots: PropTypes.object,
211
213
  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
212
214
  theme: PropTypes.oneOf(['dark', 'light']),
215
+ /**
216
+ * The title of the chart.
217
+ * Used to provide an accessible label for the chart.
218
+ */
213
219
  title: PropTypes.string,
214
220
  /**
215
221
  * The tooltip item.
@@ -1,8 +1,8 @@
1
1
  import * as React from 'react';
2
- import type { ChartContainerProProps } from "../ChartContainerPro/index.mjs";
2
+ import type { ChartsContainerProProps } from "../ChartsContainerPro/index.mjs";
3
3
  import type { SankeySeriesType } from "./sankey.types.mjs";
4
4
  import { type SankeyChartPluginSignatures } from "./SankeyChart.plugins.mjs";
5
- export interface SankeyDataProviderProps extends Omit<ChartContainerProProps<'sankey', SankeyChartPluginSignatures>, 'plugins' | 'series' | 'slotProps' | 'slots' | 'dataset' | 'hideLegend' | 'skipAnimation'> {
5
+ export interface SankeyDataProviderProps extends Omit<ChartsContainerProProps<'sankey', SankeyChartPluginSignatures>, 'plugins' | 'series' | 'slotProps' | 'slots' | 'dataset' | 'hideLegend' | 'skipAnimation'> {
6
6
  children?: React.ReactNode;
7
7
  series: readonly SankeySeriesType[];
8
8
  }
@@ -1,8 +1,8 @@
1
1
  import * as React from 'react';
2
- import type { ChartContainerProProps } from "../ChartContainerPro/index.js";
2
+ import type { ChartsContainerProProps } from "../ChartsContainerPro/index.js";
3
3
  import type { SankeySeriesType } from "./sankey.types.js";
4
4
  import { type SankeyChartPluginSignatures } from "./SankeyChart.plugins.js";
5
- export interface SankeyDataProviderProps extends Omit<ChartContainerProProps<'sankey', SankeyChartPluginSignatures>, 'plugins' | 'series' | 'slotProps' | 'slots' | 'dataset' | 'hideLegend' | 'skipAnimation'> {
5
+ export interface SankeyDataProviderProps extends Omit<ChartsContainerProProps<'sankey', SankeyChartPluginSignatures>, 'plugins' | 'series' | 'slotProps' | 'slots' | 'dataset' | 'hideLegend' | 'skipAnimation'> {
6
6
  children?: React.ReactNode;
7
7
  series: readonly SankeySeriesType[];
8
8
  }
@@ -10,7 +10,7 @@ exports.SankeyDataProvider = SankeyDataProvider;
10
10
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
11
  var React = _interopRequireWildcard(require("react"));
12
12
  var _SankeyChart = require("./SankeyChart.plugins");
13
- var _ChartDataProviderPro = require("../ChartDataProviderPro");
13
+ var _ChartsDataProviderPro = require("../ChartsDataProviderPro");
14
14
  var _seriesConfig = require("./seriesConfig");
15
15
  var _jsxRuntime = require("react/jsx-runtime");
16
16
  const seriesConfig = {
@@ -26,7 +26,7 @@ const seriesConfig = {
26
26
  * - [Composition](https://mui.com/x/api/charts/composition/)
27
27
  */
28
28
  function SankeyDataProvider(props) {
29
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartDataProviderPro.ChartDataProviderPro, (0, _extends2.default)({}, props, {
29
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsDataProviderPro.ChartsDataProviderPro, (0, _extends2.default)({}, props, {
30
30
  seriesConfig: seriesConfig,
31
31
  plugins: _SankeyChart.SANKEY_CHART_PLUGINS
32
32
  }));
@@ -3,7 +3,7 @@
3
3
  import _extends from "@babel/runtime/helpers/esm/extends";
4
4
  import * as React from 'react';
5
5
  import { SANKEY_CHART_PLUGINS } from "./SankeyChart.plugins.mjs";
6
- import { ChartDataProviderPro } from "../ChartDataProviderPro/index.mjs";
6
+ import { ChartsDataProviderPro } from "../ChartsDataProviderPro/index.mjs";
7
7
  import { sankeySeriesConfig } from "./seriesConfig/index.mjs";
8
8
  import { jsx as _jsx } from "react/jsx-runtime";
9
9
  const seriesConfig = {
@@ -19,7 +19,7 @@ const seriesConfig = {
19
19
  * - [Composition](https://mui.com/x/api/charts/composition/)
20
20
  */
21
21
  function SankeyDataProvider(props) {
22
- return /*#__PURE__*/_jsx(ChartDataProviderPro, _extends({}, props, {
22
+ return /*#__PURE__*/_jsx(ChartsDataProviderPro, _extends({}, props, {
23
23
  seriesConfig: seriesConfig,
24
24
  plugins: SANKEY_CHART_PLUGINS
25
25
  }));
@@ -12,6 +12,7 @@ var React = _interopRequireWildcard(require("react"));
12
12
  var _useEventCallback = _interopRequireDefault(require("@mui/utils/useEventCallback"));
13
13
  var _internals = require("@mui/x-charts/internals");
14
14
  var _sankeyHighlightHooks = require("./sankeyHighlightHooks");
15
+ var _sankeyClasses = require("./sankeyClasses");
15
16
  var _jsxRuntime = require("react/jsx-runtime");
16
17
  /**
17
18
  * @ignore - internal component.
@@ -37,6 +38,7 @@ const SankeyLinkElement = exports.SankeyLinkElement = /*#__PURE__*/React.forward
37
38
 
38
39
  // Add interaction props for tooltips
39
40
  const interactionProps = (0, _internals.useInteractionItemProps)(identifier);
41
+ const classes = (0, _sankeyClasses.useUtilityClasses)();
40
42
  const handleClick = (0, _useEventCallback.default)(event => {
41
43
  onClick?.(event, identifier);
42
44
  });
@@ -51,6 +53,7 @@ const SankeyLinkElement = exports.SankeyLinkElement = /*#__PURE__*/React.forward
51
53
  }
52
54
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("path", (0, _extends2.default)({
53
55
  ref: ref,
56
+ className: classes.link,
54
57
  d: link.path,
55
58
  fill: link.color,
56
59
  opacity: finalOpacity,
@@ -5,6 +5,7 @@ import * as React from 'react';
5
5
  import useEventCallback from '@mui/utils/useEventCallback';
6
6
  import { useInteractionItemProps } from '@mui/x-charts/internals';
7
7
  import { useSankeyLinkHighlightState } from "./sankeyHighlightHooks.mjs";
8
+ import { useUtilityClasses } from "./sankeyClasses.mjs";
8
9
  import { jsx as _jsx } from "react/jsx-runtime";
9
10
  /**
10
11
  * @ignore - internal component.
@@ -30,6 +31,7 @@ export const SankeyLinkElement = /*#__PURE__*/React.forwardRef(function SankeyLi
30
31
 
31
32
  // Add interaction props for tooltips
32
33
  const interactionProps = useInteractionItemProps(identifier);
34
+ const classes = useUtilityClasses();
33
35
  const handleClick = useEventCallback(event => {
34
36
  onClick?.(event, identifier);
35
37
  });
@@ -44,6 +46,7 @@ export const SankeyLinkElement = /*#__PURE__*/React.forwardRef(function SankeyLi
44
46
  }
45
47
  return /*#__PURE__*/_jsx("path", _extends({
46
48
  ref: ref,
49
+ className: classes.link,
47
50
  d: link.path,
48
51
  fill: link.color,
49
52
  opacity: finalOpacity,
@@ -9,6 +9,7 @@ exports.SankeyLinkLabel = void 0;
9
9
  var React = _interopRequireWildcard(require("react"));
10
10
  var _styles = require("@mui/material/styles");
11
11
  var _useSankeySeries = require("../hooks/useSankeySeries");
12
+ var _sankeyClasses = require("./sankeyClasses");
12
13
  var _jsxRuntime = require("react/jsx-runtime");
13
14
  const getLinkMidpoint = link => {
14
15
  if (link.y0 === undefined || link.y1 === undefined) {
@@ -38,6 +39,7 @@ const SankeyLinkLabel = exports.SankeyLinkLabel = /*#__PURE__*/React.forwardRef(
38
39
  } = props;
39
40
  const theme = (0, _styles.useTheme)();
40
41
  const series = (0, _useSankeySeries.useSankeySeries)()[0];
42
+ const classes = (0, _sankeyClasses.useUtilityClasses)();
41
43
  if (!link.path || link.y0 === undefined || link.y1 === undefined) {
42
44
  return null; // No path defined or invalid coordinates, nothing to render
43
45
  }
@@ -52,6 +54,7 @@ const SankeyLinkLabel = exports.SankeyLinkLabel = /*#__PURE__*/React.forwardRef(
52
54
  }) : link.value;
53
55
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("text", {
54
56
  ref: ref,
57
+ className: classes.linkLabel,
55
58
  x: midpoint.x,
56
59
  y: midpoint.y,
57
60
  textAnchor: "middle",
@@ -3,6 +3,7 @@
3
3
  import * as React from 'react';
4
4
  import { useTheme } from '@mui/material/styles';
5
5
  import { useSankeySeries } from "../hooks/useSankeySeries.mjs";
6
+ import { useUtilityClasses } from "./sankeyClasses.mjs";
6
7
  import { jsx as _jsx } from "react/jsx-runtime";
7
8
  const getLinkMidpoint = link => {
8
9
  if (link.y0 === undefined || link.y1 === undefined) {
@@ -32,6 +33,7 @@ export const SankeyLinkLabel = /*#__PURE__*/React.forwardRef(function SankeyLink
32
33
  } = props;
33
34
  const theme = useTheme();
34
35
  const series = useSankeySeries()[0];
36
+ const classes = useUtilityClasses();
35
37
  if (!link.path || link.y0 === undefined || link.y1 === undefined) {
36
38
  return null; // No path defined or invalid coordinates, nothing to render
37
39
  }
@@ -46,6 +48,7 @@ export const SankeyLinkLabel = /*#__PURE__*/React.forwardRef(function SankeyLink
46
48
  }) : link.value;
47
49
  return /*#__PURE__*/_jsx("text", {
48
50
  ref: ref,
51
+ className: classes.linkLabel,
49
52
  x: midpoint.x,
50
53
  y: midpoint.y,
51
54
  textAnchor: "middle",
@@ -1,9 +1,9 @@
1
- import { type SankeyPlotClasses } from "./sankeyClasses.mjs";
1
+ import { type SankeyClasses } from "./sankeyClasses.mjs";
2
2
  export interface SankeyLinkLabelPlotProps {
3
3
  /**
4
4
  * Classes applied to the various elements.
5
5
  */
6
- classes?: Partial<SankeyPlotClasses>;
6
+ classes?: Partial<SankeyClasses>;
7
7
  }
8
8
  declare function SankeyLinkLabelPlot(props: SankeyLinkLabelPlotProps): import("react/jsx-runtime").JSX.Element | null;
9
9
  export { SankeyLinkLabelPlot };
@@ -1,9 +1,9 @@
1
- import { type SankeyPlotClasses } from "./sankeyClasses.js";
1
+ import { type SankeyClasses } from "./sankeyClasses.js";
2
2
  export interface SankeyLinkLabelPlotProps {
3
3
  /**
4
4
  * Classes applied to the various elements.
5
5
  */
6
- classes?: Partial<SankeyPlotClasses>;
6
+ classes?: Partial<SankeyClasses>;
7
7
  }
8
8
  declare function SankeyLinkLabelPlot(props: SankeyLinkLabelPlotProps): import("react/jsx-runtime").JSX.Element | null;
9
9
  export { SankeyLinkLabelPlot };
@@ -21,7 +21,7 @@ function SankeyLinkLabelPlot(props) {
21
21
  const sankeySeries = (0, _useSankeySeries.useSankeySeries)()[0];
22
22
  const layout = (0, _useSankeySeries.useSankeyLayout)();
23
23
  if (!sankeySeries) {
24
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI X Charts: Sankey series context is missing. Ensure the SankeyPlot is used inside a properly configured ChartDataProviderPro.` : (0, _formatErrorMessage2.default)(46));
24
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI X Charts: Sankey series context is missing. Ensure the SankeyPlot is used inside a properly configured ChartsDataProviderPro.` : (0, _formatErrorMessage2.default)(46));
25
25
  }
26
26
 
27
27
  // Early return if no data or dimensions
@@ -15,7 +15,7 @@ function SankeyLinkLabelPlot(props) {
15
15
  const sankeySeries = useSankeySeries()[0];
16
16
  const layout = useSankeyLayout();
17
17
  if (!sankeySeries) {
18
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI X Charts: Sankey series context is missing. Ensure the SankeyPlot is used inside a properly configured ChartDataProviderPro.` : _formatErrorMessage(46));
18
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI X Charts: Sankey series context is missing. Ensure the SankeyPlot is used inside a properly configured ChartsDataProviderPro.` : _formatErrorMessage(46));
19
19
  }
20
20
 
21
21
  // Early return if no data or dimensions
@@ -1,11 +1,11 @@
1
1
  import * as React from 'react';
2
2
  import type { SankeyLinkIdentifierWithData } from "./sankey.types.mjs";
3
- import { type SankeyPlotClasses } from "./sankeyClasses.mjs";
3
+ import { type SankeyClasses } from "./sankeyClasses.mjs";
4
4
  export interface SankeyLinkPlotProps {
5
5
  /**
6
6
  * Classes applied to the various elements.
7
7
  */
8
- classes?: Partial<SankeyPlotClasses>;
8
+ classes?: Partial<SankeyClasses>;
9
9
  /**
10
10
  * Callback fired when a sankey item is clicked.
11
11
  * @param {React.MouseEvent<SVGElement, MouseEvent>} event The event source of the callback.
@@ -1,11 +1,11 @@
1
1
  import * as React from 'react';
2
2
  import type { SankeyLinkIdentifierWithData } from "./sankey.types.js";
3
- import { type SankeyPlotClasses } from "./sankeyClasses.js";
3
+ import { type SankeyClasses } from "./sankeyClasses.js";
4
4
  export interface SankeyLinkPlotProps {
5
5
  /**
6
6
  * Classes applied to the various elements.
7
7
  */
8
- classes?: Partial<SankeyPlotClasses>;
8
+ classes?: Partial<SankeyClasses>;
9
9
  /**
10
10
  * Callback fired when a sankey item is clicked.
11
11
  * @param {React.MouseEvent<SVGElement, MouseEvent>} event The event source of the callback.
@@ -37,7 +37,7 @@ function SankeyLinkPlot(props) {
37
37
  const sankeySeries = (0, _useSankeySeries.useSankeySeries)()[0];
38
38
  const layout = (0, _useSankeySeries.useSankeyLayout)();
39
39
  if (!sankeySeries) {
40
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI X Charts: Sankey series context is missing. Ensure the SankeyPlot is used inside a properly configured ChartDataProviderPro.` : (0, _formatErrorMessage2.default)(46));
40
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI X Charts: Sankey series context is missing. Ensure the SankeyPlot is used inside a properly configured ChartsDataProviderPro.` : (0, _formatErrorMessage2.default)(46));
41
41
  }
42
42
 
43
43
  // Early return if no data or dimensions
@@ -30,7 +30,7 @@ function SankeyLinkPlot(props) {
30
30
  const sankeySeries = useSankeySeries()[0];
31
31
  const layout = useSankeyLayout();
32
32
  if (!sankeySeries) {
33
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI X Charts: Sankey series context is missing. Ensure the SankeyPlot is used inside a properly configured ChartDataProviderPro.` : _formatErrorMessage(46));
33
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI X Charts: Sankey series context is missing. Ensure the SankeyPlot is used inside a properly configured ChartsDataProviderPro.` : _formatErrorMessage(46));
34
34
  }
35
35
 
36
36
  // Early return if no data or dimensions
@@ -20,4 +20,4 @@ export interface SankeyNodeElementProps {
20
20
  /**
21
21
  * @ignore - internal component.
22
22
  */
23
- export declare const SankeyNodeElement: React.ForwardRefExoticComponent<SankeyNodeElementProps & React.RefAttributes<SVGGElement>>;
23
+ export declare const SankeyNodeElement: React.ForwardRefExoticComponent<SankeyNodeElementProps & React.RefAttributes<SVGRectElement>>;
@@ -20,4 +20,4 @@ export interface SankeyNodeElementProps {
20
20
  /**
21
21
  * @ignore - internal component.
22
22
  */
23
- export declare const SankeyNodeElement: React.ForwardRefExoticComponent<SankeyNodeElementProps & React.RefAttributes<SVGGElement>>;
23
+ export declare const SankeyNodeElement: React.ForwardRefExoticComponent<SankeyNodeElementProps & React.RefAttributes<SVGRectElement>>;
@@ -12,6 +12,7 @@ var React = _interopRequireWildcard(require("react"));
12
12
  var _useEventCallback = _interopRequireDefault(require("@mui/utils/useEventCallback"));
13
13
  var _internals = require("@mui/x-charts/internals");
14
14
  var _sankeyHighlightHooks = require("./sankeyHighlightHooks");
15
+ var _sankeyClasses = require("./sankeyClasses");
15
16
  var _jsxRuntime = require("react/jsx-runtime");
16
17
  /**
17
18
  * @ignore - internal component.
@@ -41,6 +42,7 @@ const SankeyNodeElement = exports.SankeyNodeElement = /*#__PURE__*/React.forward
41
42
 
42
43
  // Add interaction props for tooltips
43
44
  const interactionProps = (0, _internals.useInteractionItemProps)(identifier);
45
+ const classes = (0, _sankeyClasses.useUtilityClasses)();
44
46
  const handleClick = (0, _useEventCallback.default)(event => {
45
47
  onClick?.(event, identifier);
46
48
  });
@@ -50,22 +52,21 @@ const SankeyNodeElement = exports.SankeyNodeElement = /*#__PURE__*/React.forward
50
52
  } else if (isHighlighted) {
51
53
  opacity = 1;
52
54
  }
53
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("g", {
55
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("rect", (0, _extends2.default)({
56
+ x: node.x0,
57
+ y: node.y0,
58
+ width: nodeWidth,
59
+ height: nodeHeight,
60
+ fill: node.color,
61
+ opacity: opacity,
62
+ onClick: onClick ? handleClick : undefined,
63
+ cursor: onClick ? 'pointer' : 'default',
64
+ stroke: "none",
65
+ "data-highlighted": isHighlighted || undefined,
66
+ "data-faded": isFaded || undefined,
54
67
  ref: ref,
55
68
  "data-node": node.id,
56
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)("rect", (0, _extends2.default)({
57
- x: node.x0,
58
- y: node.y0,
59
- width: nodeWidth,
60
- height: nodeHeight,
61
- fill: node.color,
62
- opacity: opacity,
63
- onClick: onClick ? handleClick : undefined,
64
- cursor: onClick ? 'pointer' : 'default',
65
- stroke: "none",
66
- "data-highlighted": isHighlighted || undefined,
67
- "data-faded": isFaded || undefined
68
- }, interactionProps))
69
- });
69
+ className: classes.node
70
+ }, interactionProps));
70
71
  });
71
72
  if (process.env.NODE_ENV !== "production") SankeyNodeElement.displayName = "SankeyNodeElement";
@@ -5,6 +5,7 @@ import * as React from 'react';
5
5
  import useEventCallback from '@mui/utils/useEventCallback';
6
6
  import { useInteractionItemProps } from '@mui/x-charts/internals';
7
7
  import { useSankeyNodeHighlightState } from "./sankeyHighlightHooks.mjs";
8
+ import { useUtilityClasses } from "./sankeyClasses.mjs";
8
9
  import { jsx as _jsx } from "react/jsx-runtime";
9
10
  /**
10
11
  * @ignore - internal component.
@@ -34,6 +35,7 @@ export const SankeyNodeElement = /*#__PURE__*/React.forwardRef(function SankeyNo
34
35
 
35
36
  // Add interaction props for tooltips
36
37
  const interactionProps = useInteractionItemProps(identifier);
38
+ const classes = useUtilityClasses();
37
39
  const handleClick = useEventCallback(event => {
38
40
  onClick?.(event, identifier);
39
41
  });
@@ -43,22 +45,21 @@ export const SankeyNodeElement = /*#__PURE__*/React.forwardRef(function SankeyNo
43
45
  } else if (isHighlighted) {
44
46
  opacity = 1;
45
47
  }
46
- return /*#__PURE__*/_jsx("g", {
48
+ return /*#__PURE__*/_jsx("rect", _extends({
49
+ x: node.x0,
50
+ y: node.y0,
51
+ width: nodeWidth,
52
+ height: nodeHeight,
53
+ fill: node.color,
54
+ opacity: opacity,
55
+ onClick: onClick ? handleClick : undefined,
56
+ cursor: onClick ? 'pointer' : 'default',
57
+ stroke: "none",
58
+ "data-highlighted": isHighlighted || undefined,
59
+ "data-faded": isFaded || undefined,
47
60
  ref: ref,
48
61
  "data-node": node.id,
49
- children: /*#__PURE__*/_jsx("rect", _extends({
50
- x: node.x0,
51
- y: node.y0,
52
- width: nodeWidth,
53
- height: nodeHeight,
54
- fill: node.color,
55
- opacity: opacity,
56
- onClick: onClick ? handleClick : undefined,
57
- cursor: onClick ? 'pointer' : 'default',
58
- stroke: "none",
59
- "data-highlighted": isHighlighted || undefined,
60
- "data-faded": isFaded || undefined
61
- }, interactionProps))
62
- });
62
+ className: classes.node
63
+ }, interactionProps));
63
64
  });
64
65
  if (process.env.NODE_ENV !== "production") SankeyNodeElement.displayName = "SankeyNodeElement";
@@ -9,6 +9,7 @@ exports.SankeyNodeLabel = void 0;
9
9
  var React = _interopRequireWildcard(require("react"));
10
10
  var _styles = require("@mui/material/styles");
11
11
  var _sankeyHighlightHooks = require("./sankeyHighlightHooks");
12
+ var _sankeyClasses = require("./sankeyClasses");
12
13
  var _jsxRuntime = require("react/jsx-runtime");
13
14
  /**
14
15
  * @ignore - internal component.
@@ -30,6 +31,7 @@ const SankeyNodeLabel = exports.SankeyNodeLabel = /*#__PURE__*/React.forwardRef(
30
31
  : x0 - 6; // Left side for other columns
31
32
 
32
33
  const labelAnchor = isRightSide ? 'start' : 'end';
34
+ const classes = (0, _sankeyClasses.useUtilityClasses)();
33
35
  const highlightState = (0, _sankeyHighlightHooks.useSankeyNodeHighlightState)(React.useMemo(() => ({
34
36
  type: 'sankey',
35
37
  subType: 'node',
@@ -47,6 +49,7 @@ const SankeyNodeLabel = exports.SankeyNodeLabel = /*#__PURE__*/React.forwardRef(
47
49
  }
48
50
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("text", {
49
51
  ref: ref,
52
+ className: classes.nodeLabel,
50
53
  x: labelX,
51
54
  y: (y0 + y1) / 2,
52
55
  textAnchor: labelAnchor,
@@ -3,6 +3,7 @@
3
3
  import * as React from 'react';
4
4
  import { useTheme } from '@mui/material/styles';
5
5
  import { useSankeyNodeHighlightState } from "./sankeyHighlightHooks.mjs";
6
+ import { useUtilityClasses } from "./sankeyClasses.mjs";
6
7
  import { jsx as _jsx } from "react/jsx-runtime";
7
8
  /**
8
9
  * @ignore - internal component.
@@ -24,6 +25,7 @@ export const SankeyNodeLabel = /*#__PURE__*/React.forwardRef(function SankeyNode
24
25
  : x0 - 6; // Left side for other columns
25
26
 
26
27
  const labelAnchor = isRightSide ? 'start' : 'end';
28
+ const classes = useUtilityClasses();
27
29
  const highlightState = useSankeyNodeHighlightState(React.useMemo(() => ({
28
30
  type: 'sankey',
29
31
  subType: 'node',
@@ -41,6 +43,7 @@ export const SankeyNodeLabel = /*#__PURE__*/React.forwardRef(function SankeyNode
41
43
  }
42
44
  return /*#__PURE__*/_jsx("text", {
43
45
  ref: ref,
46
+ className: classes.nodeLabel,
44
47
  x: labelX,
45
48
  y: (y0 + y1) / 2,
46
49
  textAnchor: labelAnchor,
@@ -1,9 +1,9 @@
1
- import { type SankeyPlotClasses } from "./sankeyClasses.mjs";
1
+ import { type SankeyClasses } from "./sankeyClasses.mjs";
2
2
  export interface SankeyNodeLabelPlotProps {
3
3
  /**
4
4
  * Classes applied to the various elements.
5
5
  */
6
- classes?: Partial<SankeyPlotClasses>;
6
+ classes?: Partial<SankeyClasses>;
7
7
  }
8
8
  declare function SankeyNodeLabelPlot(props: SankeyNodeLabelPlotProps): import("react/jsx-runtime").JSX.Element | null;
9
9
  export { SankeyNodeLabelPlot };
@@ -1,9 +1,9 @@
1
- import { type SankeyPlotClasses } from "./sankeyClasses.js";
1
+ import { type SankeyClasses } from "./sankeyClasses.js";
2
2
  export interface SankeyNodeLabelPlotProps {
3
3
  /**
4
4
  * Classes applied to the various elements.
5
5
  */
6
- classes?: Partial<SankeyPlotClasses>;
6
+ classes?: Partial<SankeyClasses>;
7
7
  }
8
8
  declare function SankeyNodeLabelPlot(props: SankeyNodeLabelPlotProps): import("react/jsx-runtime").JSX.Element | null;
9
9
  export { SankeyNodeLabelPlot };
@@ -21,7 +21,7 @@ function SankeyNodeLabelPlot(props) {
21
21
  const sankeySeries = (0, _useSankeySeries.useSankeySeries)()[0];
22
22
  const layout = (0, _useSankeySeries.useSankeyLayout)();
23
23
  if (!sankeySeries) {
24
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI X Charts: Sankey series context is missing. Ensure the SankeyPlot is used inside a properly configured ChartDataProviderPro.` : (0, _formatErrorMessage2.default)(46));
24
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI X Charts: Sankey series context is missing. Ensure the SankeyPlot is used inside a properly configured ChartsDataProviderPro.` : (0, _formatErrorMessage2.default)(46));
25
25
  }
26
26
 
27
27
  // Early return if no data or dimensions
@@ -15,7 +15,7 @@ function SankeyNodeLabelPlot(props) {
15
15
  const sankeySeries = useSankeySeries()[0];
16
16
  const layout = useSankeyLayout();
17
17
  if (!sankeySeries) {
18
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI X Charts: Sankey series context is missing. Ensure the SankeyPlot is used inside a properly configured ChartDataProviderPro.` : _formatErrorMessage(46));
18
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI X Charts: Sankey series context is missing. Ensure the SankeyPlot is used inside a properly configured ChartsDataProviderPro.` : _formatErrorMessage(46));
19
19
  }
20
20
 
21
21
  // Early return if no data or dimensions
@@ -1,11 +1,11 @@
1
1
  import * as React from 'react';
2
2
  import type { SankeyNodeIdentifierWithData } from "./sankey.types.mjs";
3
- import { type SankeyPlotClasses } from "./sankeyClasses.mjs";
3
+ import { type SankeyClasses } from "./sankeyClasses.mjs";
4
4
  export interface SankeyNodePlotProps {
5
5
  /**
6
6
  * Classes applied to the various elements.
7
7
  */
8
- classes?: Partial<SankeyPlotClasses>;
8
+ classes?: Partial<SankeyClasses>;
9
9
  /**
10
10
  * Callback fired when a sankey item is clicked.
11
11
  * @param {React.MouseEvent<SVGElement, MouseEvent>} event The event source of the callback.
@@ -1,11 +1,11 @@
1
1
  import * as React from 'react';
2
2
  import type { SankeyNodeIdentifierWithData } from "./sankey.types.js";
3
- import { type SankeyPlotClasses } from "./sankeyClasses.js";
3
+ import { type SankeyClasses } from "./sankeyClasses.js";
4
4
  export interface SankeyNodePlotProps {
5
5
  /**
6
6
  * Classes applied to the various elements.
7
7
  */
8
- classes?: Partial<SankeyPlotClasses>;
8
+ classes?: Partial<SankeyClasses>;
9
9
  /**
10
10
  * Callback fired when a sankey item is clicked.
11
11
  * @param {React.MouseEvent<SVGElement, MouseEvent>} event The event source of the callback.
@@ -37,7 +37,7 @@ function SankeyNodePlot(props) {
37
37
  const sankeySeries = (0, _useSankeySeries.useSankeySeries)()[0];
38
38
  const layout = (0, _useSankeySeries.useSankeyLayout)();
39
39
  if (!sankeySeries) {
40
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI X Charts: Sankey series context is missing. Ensure the SankeyPlot is used inside a properly configured ChartDataProviderPro.` : (0, _formatErrorMessage2.default)(46));
40
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI X Charts: Sankey series context is missing. Ensure the SankeyPlot is used inside a properly configured ChartsDataProviderPro.` : (0, _formatErrorMessage2.default)(46));
41
41
  }
42
42
 
43
43
  // Early return if no data or dimensions
@@ -30,7 +30,7 @@ function SankeyNodePlot(props) {
30
30
  const sankeySeries = useSankeySeries()[0];
31
31
  const layout = useSankeyLayout();
32
32
  if (!sankeySeries) {
33
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI X Charts: Sankey series context is missing. Ensure the SankeyPlot is used inside a properly configured ChartDataProviderPro.` : _formatErrorMessage(46));
33
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI X Charts: Sankey series context is missing. Ensure the SankeyPlot is used inside a properly configured ChartsDataProviderPro.` : _formatErrorMessage(46));
34
34
  }
35
35
 
36
36
  // Early return if no data or dimensions
@@ -1,11 +1,11 @@
1
1
  import * as React from 'react';
2
2
  import { type SankeyLinkIdentifierWithData, type SankeyNodeIdentifierWithData } from "./sankey.types.mjs";
3
- import { type SankeyPlotClasses } from "./sankeyClasses.mjs";
3
+ import { type SankeyClasses } from "./sankeyClasses.mjs";
4
4
  export interface SankeyPlotProps {
5
5
  /**
6
6
  * Classes applied to the various elements.
7
7
  */
8
- classes?: Partial<SankeyPlotClasses>;
8
+ classes?: Partial<SankeyClasses>;
9
9
  /**
10
10
  * Callback fired when a sankey item is clicked.
11
11
  * @param {React.MouseEvent<SVGElement, MouseEvent>} event The event source of the callback.
@@ -1,11 +1,11 @@
1
1
  import * as React from 'react';
2
2
  import { type SankeyLinkIdentifierWithData, type SankeyNodeIdentifierWithData } from "./sankey.types.js";
3
- import { type SankeyPlotClasses } from "./sankeyClasses.js";
3
+ import { type SankeyClasses } from "./sankeyClasses.js";
4
4
  export interface SankeyPlotProps {
5
5
  /**
6
6
  * Classes applied to the various elements.
7
7
  */
8
- classes?: Partial<SankeyPlotClasses>;
8
+ classes?: Partial<SankeyClasses>;
9
9
  /**
10
10
  * Callback fired when a sankey item is clicked.
11
11
  * @param {React.MouseEvent<SVGElement, MouseEvent>} event The event source of the callback.