@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
@@ -19,8 +19,8 @@ var _SankeyNodeLabelPlot = require("./SankeyNodeLabelPlot");
19
19
  var _SankeyLinkLabelPlot = require("./SankeyLinkLabelPlot");
20
20
  var _jsxRuntime = require("react/jsx-runtime");
21
21
  const SankeyPlotRoot = (0, _styles.styled)('g', {
22
- slot: 'internal',
23
- shouldForwardProp: undefined
22
+ name: 'MuiSankeyPlot',
23
+ slot: 'Root'
24
24
  })({});
25
25
 
26
26
  /**
@@ -38,7 +38,7 @@ function SankeyPlot(props) {
38
38
  const sankeySeries = (0, _useSankeySeries.useSankeySeries)()[0];
39
39
  const layout = (0, _useSankeySeries.useSankeyLayout)();
40
40
  if (!sankeySeries) {
41
- 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));
41
+ 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));
42
42
  }
43
43
 
44
44
  // Early return if no data or dimensions
@@ -12,8 +12,8 @@ import { SankeyNodeLabelPlot } from "./SankeyNodeLabelPlot.mjs";
12
12
  import { SankeyLinkLabelPlot } from "./SankeyLinkLabelPlot.mjs";
13
13
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
14
14
  const SankeyPlotRoot = styled('g', {
15
- slot: 'internal',
16
- shouldForwardProp: undefined
15
+ name: 'MuiSankeyPlot',
16
+ slot: 'Root'
17
17
  })({});
18
18
 
19
19
  /**
@@ -31,7 +31,7 @@ function SankeyPlot(props) {
31
31
  const sankeySeries = useSankeySeries()[0];
32
32
  const layout = useSankeyLayout();
33
33
  if (!sankeySeries) {
34
- 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));
34
+ 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));
35
35
  }
36
36
 
37
37
  // Early return if no data or dimensions
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.useUtilityClasses = void 0;
8
8
  var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
9
- var _ChartsTooltip = require("@mui/x-charts/ChartsTooltip");
9
+ var _internals = require("@mui/x-charts/internals");
10
10
  const useUtilityClasses = props => {
11
11
  const {
12
12
  classes
@@ -22,6 +22,6 @@ const useUtilityClasses = props => {
22
22
  labelCell: ['labelCell'],
23
23
  valueCell: ['valueCell']
24
24
  };
25
- return (0, _composeClasses.default)(slots, _ChartsTooltip.getChartsTooltipUtilityClass, classes);
25
+ return (0, _composeClasses.default)(slots, _internals.getChartsTooltipUtilityClass, classes);
26
26
  };
27
27
  exports.useUtilityClasses = useUtilityClasses;
@@ -1,5 +1,5 @@
1
1
  import composeClasses from '@mui/utils/composeClasses';
2
- import { getChartsTooltipUtilityClass } from '@mui/x-charts/ChartsTooltip';
2
+ import { getChartsTooltipUtilityClass } from '@mui/x-charts/internals';
3
3
  export const useUtilityClasses = props => {
4
4
  const {
5
5
  classes
@@ -16,6 +16,7 @@ export * from "./sankey.types.mjs";
16
16
  export * from "./sankeySlots.types.mjs";
17
17
  export * from "./sankeyHighlightHooks.mjs";
18
18
  export * from "../hooks/useSankeySeries.mjs";
19
- export { type SankeyPlotClasses, sankeyPlotClasses } from "./sankeyClasses.mjs";
19
+ export { sankeyClasses } from "./sankeyClasses.mjs";
20
+ export type { SankeyClassKey, SankeyClasses } from "./sankeyClasses.mjs";
20
21
  export { SankeyTooltip, SankeyTooltipContent } from "./SankeyTooltip/index.mjs";
21
22
  export type { SankeyTooltipProps, SankeyTooltipClasses, SankeyTooltipContentClasses, SankeyTooltipSlots, SankeyTooltipSlotProps } from "./SankeyTooltip/index.mjs";
@@ -16,6 +16,7 @@ export * from "./sankey.types.js";
16
16
  export * from "./sankeySlots.types.js";
17
17
  export * from "./sankeyHighlightHooks.js";
18
18
  export * from "../hooks/useSankeySeries.js";
19
- export { type SankeyPlotClasses, sankeyPlotClasses } from "./sankeyClasses.js";
19
+ export { sankeyClasses } from "./sankeyClasses.js";
20
+ export type { SankeyClassKey, SankeyClasses } from "./sankeyClasses.js";
20
21
  export { SankeyTooltip, SankeyTooltipContent } from "./SankeyTooltip/index.js";
21
22
  export type { SankeyTooltipProps, SankeyTooltipClasses, SankeyTooltipContentClasses, SankeyTooltipSlots, SankeyTooltipSlotProps } from "./SankeyTooltip/index.js";
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  var _exportNames = {
7
7
  Unstable_SankeyChart: true,
8
8
  SankeyChart: true,
9
- sankeyPlotClasses: true,
9
+ sankeyClasses: true,
10
10
  SankeyTooltip: true,
11
11
  SankeyTooltipContent: true
12
12
  };
@@ -29,10 +29,10 @@ Object.defineProperty(exports, "SankeyTooltipContent", {
29
29
  }
30
30
  });
31
31
  exports.Unstable_SankeyChart = void 0;
32
- Object.defineProperty(exports, "sankeyPlotClasses", {
32
+ Object.defineProperty(exports, "sankeyClasses", {
33
33
  enumerable: true,
34
34
  get: function () {
35
- return _sankeyClasses.sankeyPlotClasses;
35
+ return _sankeyClasses.sankeyClasses;
36
36
  }
37
37
  });
38
38
  var _SankeyChart = require("./SankeyChart");
@@ -17,5 +17,5 @@ export * from "./sankey.types.mjs";
17
17
  export * from "./sankeySlots.types.mjs";
18
18
  export * from "./sankeyHighlightHooks.mjs";
19
19
  export * from "../hooks/useSankeySeries.mjs";
20
- export { sankeyPlotClasses } from "./sankeyClasses.mjs";
20
+ export { sankeyClasses } from "./sankeyClasses.mjs";
21
21
  export { SankeyTooltip, SankeyTooltipContent } from "./SankeyTooltip/index.mjs";
@@ -1,4 +1,4 @@
1
- export interface SankeyPlotClasses {
1
+ export interface SankeyClasses {
2
2
  /** Styles applied to the root element. */
3
3
  root: string;
4
4
  /** Styles applied to the nodes container. */
@@ -9,9 +9,18 @@ export interface SankeyPlotClasses {
9
9
  links: string;
10
10
  /** Styles applied to the link label container. */
11
11
  linkLabels: string;
12
+ /** Styles applied to an individual node element. */
13
+ node: string;
14
+ /** Styles applied to an individual link element. */
15
+ link: string;
16
+ /** Styles applied to an individual node label element. */
17
+ nodeLabel: string;
18
+ /** Styles applied to an individual link label element. */
19
+ linkLabel: string;
12
20
  }
13
- export declare function getSankeyPlotUtilityClass(slot: string): string;
14
- export declare const sankeyPlotClasses: SankeyPlotClasses;
15
- export declare const useUtilityClasses: (ownerState: {
16
- classes?: Partial<SankeyPlotClasses>;
17
- }) => Record<"nodes" | "links" | "root" | "nodeLabels" | "linkLabels", string>;
21
+ export type SankeyClassKey = keyof SankeyClasses;
22
+ export declare function getSankeyUtilityClass(slot: string): string;
23
+ export declare const sankeyClasses: SankeyClasses;
24
+ export declare const useUtilityClasses: (options?: {
25
+ classes?: Partial<SankeyClasses>;
26
+ }) => Record<"nodes" | "links" | "node" | "link" | "root" | "nodeLabels" | "linkLabels" | "nodeLabel" | "linkLabel", string>;
@@ -1,4 +1,4 @@
1
- export interface SankeyPlotClasses {
1
+ export interface SankeyClasses {
2
2
  /** Styles applied to the root element. */
3
3
  root: string;
4
4
  /** Styles applied to the nodes container. */
@@ -9,9 +9,18 @@ export interface SankeyPlotClasses {
9
9
  links: string;
10
10
  /** Styles applied to the link label container. */
11
11
  linkLabels: string;
12
+ /** Styles applied to an individual node element. */
13
+ node: string;
14
+ /** Styles applied to an individual link element. */
15
+ link: string;
16
+ /** Styles applied to an individual node label element. */
17
+ nodeLabel: string;
18
+ /** Styles applied to an individual link label element. */
19
+ linkLabel: string;
12
20
  }
13
- export declare function getSankeyPlotUtilityClass(slot: string): string;
14
- export declare const sankeyPlotClasses: SankeyPlotClasses;
15
- export declare const useUtilityClasses: (ownerState: {
16
- classes?: Partial<SankeyPlotClasses>;
17
- }) => Record<"nodes" | "links" | "root" | "nodeLabels" | "linkLabels", string>;
21
+ export type SankeyClassKey = keyof SankeyClasses;
22
+ export declare function getSankeyUtilityClass(slot: string): string;
23
+ export declare const sankeyClasses: SankeyClasses;
24
+ export declare const useUtilityClasses: (options?: {
25
+ classes?: Partial<SankeyClasses>;
26
+ }) => Record<"nodes" | "links" | "node" | "link" | "root" | "nodeLabels" | "linkLabels" | "nodeLabel" | "linkLabel", string>;
@@ -4,26 +4,30 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.getSankeyPlotUtilityClass = getSankeyPlotUtilityClass;
8
- exports.useUtilityClasses = exports.sankeyPlotClasses = void 0;
7
+ exports.getSankeyUtilityClass = getSankeyUtilityClass;
8
+ exports.useUtilityClasses = exports.sankeyClasses = void 0;
9
9
  var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
10
10
  var _generateUtilityClass = _interopRequireDefault(require("@mui/utils/generateUtilityClass"));
11
11
  var _generateUtilityClasses = _interopRequireDefault(require("@mui/utils/generateUtilityClasses"));
12
- function getSankeyPlotUtilityClass(slot) {
12
+ function getSankeyUtilityClass(slot) {
13
13
  return (0, _generateUtilityClass.default)('MuiSankeyChart', slot);
14
14
  }
15
- const sankeyPlotClasses = exports.sankeyPlotClasses = (0, _generateUtilityClasses.default)('MuiSankeyChart', ['root', 'nodes', 'nodeLabels', 'links', 'linkLabels']);
16
- const useUtilityClasses = ownerState => {
15
+ const sankeyClasses = exports.sankeyClasses = (0, _generateUtilityClasses.default)('MuiSankeyChart', ['root', 'nodes', 'nodeLabels', 'links', 'linkLabels', 'node', 'link', 'nodeLabel', 'linkLabel']);
16
+ const useUtilityClasses = options => {
17
17
  const {
18
18
  classes
19
- } = ownerState;
19
+ } = options ?? {};
20
20
  const slots = {
21
21
  root: ['root'],
22
22
  nodes: ['nodes'],
23
23
  nodeLabels: ['nodeLabels'],
24
24
  links: ['links'],
25
- linkLabels: ['linkLabels']
25
+ linkLabels: ['linkLabels'],
26
+ node: ['node'],
27
+ link: ['link'],
28
+ nodeLabel: ['nodeLabel'],
29
+ linkLabel: ['linkLabel']
26
30
  };
27
- return (0, _composeClasses.default)(slots, getSankeyPlotUtilityClass, classes);
31
+ return (0, _composeClasses.default)(slots, getSankeyUtilityClass, classes);
28
32
  };
29
33
  exports.useUtilityClasses = useUtilityClasses;
@@ -1,20 +1,24 @@
1
1
  import composeClasses from '@mui/utils/composeClasses';
2
2
  import generateUtilityClass from '@mui/utils/generateUtilityClass';
3
3
  import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
4
- export function getSankeyPlotUtilityClass(slot) {
4
+ export function getSankeyUtilityClass(slot) {
5
5
  return generateUtilityClass('MuiSankeyChart', slot);
6
6
  }
7
- export const sankeyPlotClasses = generateUtilityClasses('MuiSankeyChart', ['root', 'nodes', 'nodeLabels', 'links', 'linkLabels']);
8
- export const useUtilityClasses = ownerState => {
7
+ export const sankeyClasses = generateUtilityClasses('MuiSankeyChart', ['root', 'nodes', 'nodeLabels', 'links', 'linkLabels', 'node', 'link', 'nodeLabel', 'linkLabel']);
8
+ export const useUtilityClasses = options => {
9
9
  const {
10
10
  classes
11
- } = ownerState;
11
+ } = options ?? {};
12
12
  const slots = {
13
13
  root: ['root'],
14
14
  nodes: ['nodes'],
15
15
  nodeLabels: ['nodeLabels'],
16
16
  links: ['links'],
17
- linkLabels: ['linkLabels']
17
+ linkLabels: ['linkLabels'],
18
+ node: ['node'],
19
+ link: ['link'],
20
+ nodeLabel: ['nodeLabel'],
21
+ linkLabel: ['linkLabel']
18
22
  };
19
- return composeClasses(slots, getSankeyPlotUtilityClass, classes);
23
+ return composeClasses(slots, getSankeyUtilityClass, classes);
20
24
  };
@@ -1,7 +1,7 @@
1
1
  import type { ChartsOverlayProps } from '@mui/x-charts/ChartsOverlay';
2
2
  import type { ChartsWrapperProps } from '@mui/x-charts/ChartsWrapper';
3
3
  import type { SankeyChartProps } from "./SankeyChart.mjs";
4
- import type { ChartContainerProProps } from "../ChartContainerPro/index.mjs";
4
+ import type { ChartsContainerProProps } from "../ChartsContainerPro/index.mjs";
5
5
  import { type SankeyChartPluginSignatures } from "./SankeyChart.plugins.mjs";
6
6
  /**
7
7
  * A helper function that extracts SankeyChartProps from the input props
@@ -11,7 +11,7 @@ import { type SankeyChartPluginSignatures } from "./SankeyChart.plugins.mjs";
11
11
  * @returns An object with props for the children components of SankeyChart
12
12
  */
13
13
  export declare const useSankeyChartProps: (props: SankeyChartProps) => {
14
- chartContainerProps: ChartContainerProProps<"sankey", SankeyChartPluginSignatures>;
14
+ chartsContainerProps: ChartsContainerProProps<"sankey", SankeyChartPluginSignatures>;
15
15
  sankeyPlotProps: {
16
16
  onNodeClick: ((event: React.MouseEvent<SVGElement, MouseEvent>, node: import("./sankey.types.mjs").SankeyNodeIdentifierWithData) => void) | undefined;
17
17
  onLinkClick: ((event: React.MouseEvent<SVGElement, MouseEvent>, link: import("./sankey.types.mjs").SankeyLinkIdentifierWithData) => void) | undefined;
@@ -1,7 +1,7 @@
1
1
  import type { ChartsOverlayProps } from '@mui/x-charts/ChartsOverlay';
2
2
  import type { ChartsWrapperProps } from '@mui/x-charts/ChartsWrapper';
3
3
  import type { SankeyChartProps } from "./SankeyChart.js";
4
- import type { ChartContainerProProps } from "../ChartContainerPro/index.js";
4
+ import type { ChartsContainerProProps } from "../ChartsContainerPro/index.js";
5
5
  import { type SankeyChartPluginSignatures } from "./SankeyChart.plugins.js";
6
6
  /**
7
7
  * A helper function that extracts SankeyChartProps from the input props
@@ -11,7 +11,7 @@ import { type SankeyChartPluginSignatures } from "./SankeyChart.plugins.js";
11
11
  * @returns An object with props for the children components of SankeyChart
12
12
  */
13
13
  export declare const useSankeyChartProps: (props: SankeyChartProps) => {
14
- chartContainerProps: ChartContainerProProps<"sankey", SankeyChartPluginSignatures>;
14
+ chartsContainerProps: ChartsContainerProProps<"sankey", SankeyChartPluginSignatures>;
15
15
  sankeyPlotProps: {
16
16
  onNodeClick: ((event: React.MouseEvent<SVGElement, MouseEvent>, node: import("./sankey.types.js").SankeyNodeIdentifierWithData) => void) | undefined;
17
17
  onLinkClick: ((event: React.MouseEvent<SVGElement, MouseEvent>, link: import("./sankey.types.js").SankeyLinkIdentifierWithData) => void) | undefined;
@@ -39,7 +39,7 @@ const useSankeyChartProps = props => {
39
39
  } = props,
40
40
  other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
41
41
  const margin = (0, _internals.defaultizeMargin)(marginProps, _constants.DEFAULT_MARGINS);
42
- const chartContainerProps = (0, _extends2.default)({}, other, {
42
+ const chartsContainerProps = (0, _extends2.default)({}, other, {
43
43
  series: [(0, _extends2.default)({
44
44
  type: 'sankey'
45
45
  }, series)],
@@ -68,7 +68,7 @@ const useSankeyChartProps = props => {
68
68
  className
69
69
  };
70
70
  return {
71
- chartContainerProps,
71
+ chartsContainerProps,
72
72
  sankeyPlotProps,
73
73
  overlayProps,
74
74
  chartsWrapperProps,
@@ -33,7 +33,7 @@ export const useSankeyChartProps = props => {
33
33
  } = props,
34
34
  other = _objectWithoutPropertiesLoose(props, _excluded);
35
35
  const margin = defaultizeMargin(marginProps, DEFAULT_MARGINS);
36
- const chartContainerProps = _extends({}, other, {
36
+ const chartsContainerProps = _extends({}, other, {
37
37
  series: [_extends({
38
38
  type: 'sankey'
39
39
  }, series)],
@@ -62,7 +62,7 @@ export const useSankeyChartProps = props => {
62
62
  className
63
63
  };
64
64
  return {
65
- chartContainerProps,
65
+ chartsContainerProps,
66
66
  sankeyPlotProps,
67
67
  overlayProps,
68
68
  chartsWrapperProps,
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  import { type ScatterChartProps, type ScatterChartSlotProps, type ScatterChartSlots } from '@mui/x-charts/ScatterChart';
3
3
  import { type ChartsTooltipProps } from '@mui/x-charts/ChartsTooltip';
4
4
  import { type ChartsSlotPropsPro, type ChartsSlotsPro } from "../internals/material/index.mjs";
5
- import { type ChartContainerProProps } from "../ChartContainerPro/ChartContainerPro.mjs";
5
+ import { type ChartsContainerProProps } from "../ChartsContainerPro/ChartsContainerPro.mjs";
6
6
  import { type ScatterChartProPluginSignatures } from "./ScatterChartPro.plugins.mjs";
7
7
  import { type ChartsToolbarProSlots, type ChartsToolbarProSlotProps } from "../ChartsToolbarPro/Toolbar.types.mjs";
8
8
  export interface ScatterChartProSlots extends Omit<ScatterChartSlots, 'toolbar'>, ChartsToolbarProSlots, Partial<ChartsSlotsPro> {}
@@ -13,7 +13,7 @@ export interface ScatterChartProSlotProps extends Omit<ScatterChartSlotProps, 't
13
13
  */
14
14
  tooltip?: Partial<ChartsTooltipProps<'item' | 'none'>>;
15
15
  }
16
- export interface ScatterChartProProps extends Omit<ScatterChartProps, 'apiRef' | 'slots' | 'slotProps' | 'plugins' | 'seriesConfig'>, Omit<ChartContainerProProps<'scatter', ScatterChartProPluginSignatures>, 'series' | 'onItemClick' | 'slots' | 'slotProps' | 'experimentalFeatures' | 'highlightedAxis' | 'onHighlightedAxisChange'> {
16
+ export interface ScatterChartProProps extends Omit<ScatterChartProps, 'apiRef' | 'slots' | 'slotProps' | 'plugins' | 'seriesConfig'>, Omit<ChartsContainerProProps<'scatter', ScatterChartProPluginSignatures>, 'series' | 'onItemClick' | 'slots' | 'slotProps' | 'highlightedAxis' | 'onHighlightedAxisChange'> {
17
17
  /**
18
18
  * Overridable component slots.
19
19
  * @default {}
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  import { type ScatterChartProps, type ScatterChartSlotProps, type ScatterChartSlots } from '@mui/x-charts/ScatterChart';
3
3
  import { type ChartsTooltipProps } from '@mui/x-charts/ChartsTooltip';
4
4
  import { type ChartsSlotPropsPro, type ChartsSlotsPro } from "../internals/material/index.js";
5
- import { type ChartContainerProProps } from "../ChartContainerPro/ChartContainerPro.js";
5
+ import { type ChartsContainerProProps } from "../ChartsContainerPro/ChartsContainerPro.js";
6
6
  import { type ScatterChartProPluginSignatures } from "./ScatterChartPro.plugins.js";
7
7
  import { type ChartsToolbarProSlots, type ChartsToolbarProSlotProps } from "../ChartsToolbarPro/Toolbar.types.js";
8
8
  export interface ScatterChartProSlots extends Omit<ScatterChartSlots, 'toolbar'>, ChartsToolbarProSlots, Partial<ChartsSlotsPro> {}
@@ -13,7 +13,7 @@ export interface ScatterChartProSlotProps extends Omit<ScatterChartSlotProps, 't
13
13
  */
14
14
  tooltip?: Partial<ChartsTooltipProps<'item' | 'none'>>;
15
15
  }
16
- export interface ScatterChartProProps extends Omit<ScatterChartProps, 'apiRef' | 'slots' | 'slotProps' | 'plugins' | 'seriesConfig'>, Omit<ChartContainerProProps<'scatter', ScatterChartProPluginSignatures>, 'series' | 'onItemClick' | 'slots' | 'slotProps' | 'experimentalFeatures' | 'highlightedAxis' | 'onHighlightedAxisChange'> {
16
+ export interface ScatterChartProProps extends Omit<ScatterChartProps, 'apiRef' | 'slots' | 'slotProps' | 'plugins' | 'seriesConfig'>, Omit<ChartsContainerProProps<'scatter', ScatterChartProPluginSignatures>, 'series' | 'onItemClick' | 'slots' | 'slotProps' | 'highlightedAxis' | 'onHighlightedAxisChange'> {
17
17
  /**
18
18
  * Overridable component slots.
19
19
  * @default {}