@mui/x-charts-pro 8.27.2 → 9.0.0-alpha.1

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 (222) hide show
  1. package/BarChartPro/BarChartPro.d.ts +1 -1
  2. package/BarChartPro/BarChartPro.js +30 -8
  3. package/CHANGELOG.md +279 -34
  4. package/ChartContainerPro/ChartContainerPro.d.ts +17 -31
  5. package/ChartContainerPro/ChartContainerPro.js +14 -287
  6. package/ChartContainerPro/useChartContainerProProps.d.ts +10 -7
  7. package/ChartContainerPro/useChartContainerProProps.js +10 -35
  8. package/ChartDataProviderPro/ChartDataProviderPro.d.ts +5 -3
  9. package/ChartDataProviderPro/ChartDataProviderPro.js +2 -2
  10. package/ChartDataProviderPro/index.d.ts +1 -1
  11. package/ChartDataProviderPro/useChartDataProviderProProps.d.ts +3 -3
  12. package/ChartZoomSlider/internals/ChartAxisZoomSliderActiveTrack.js +8 -6
  13. package/ChartZoomSlider/internals/ChartAxisZoomSliderTrack.js +6 -4
  14. package/ChartZoomSlider/internals/previews/AreaPreviewPlot.d.ts +1 -1
  15. package/ChartZoomSlider/internals/previews/AreaPreviewPlot.js +4 -4
  16. package/ChartZoomSlider/internals/previews/BarPreviewPlot.js +1 -1
  17. package/ChartZoomSlider/internals/previews/LinePreviewPlot.d.ts +1 -1
  18. package/ChartZoomSlider/internals/previews/LinePreviewPlot.js +4 -4
  19. package/ChartsContainer/index.d.ts +1 -0
  20. package/ChartsContainer/index.js +16 -0
  21. package/ChartsContainerPro/ChartsContainerPro.d.ts +37 -0
  22. package/ChartsContainerPro/ChartsContainerPro.js +188 -0
  23. package/ChartsContainerPro/index.d.ts +9 -0
  24. package/ChartsContainerPro/index.js +17 -0
  25. package/ChartsContainerPro/useChartsContainerProProps.d.ts +8 -0
  26. package/ChartsContainerPro/useChartsContainerProProps.js +44 -0
  27. package/FunnelChart/FunnelChart.d.ts +1 -1
  28. package/FunnelChart/FunnelChart.js +9 -8
  29. package/FunnelChart/FunnelSection.d.ts +1 -1
  30. package/FunnelChart/funnel.types.d.ts +1 -1
  31. package/FunnelChart/funnelAxisPlugin/useChartFunnelAxis.js +12 -9
  32. package/FunnelChart/funnelAxisPlugin/useChartFunnelAxis.types.d.ts +3 -2
  33. package/FunnelChart/funnelAxisPlugin/useChartFunnelAxisRendering.selectors.d.ts +3 -3
  34. package/FunnelChart/funnelSlots.types.d.ts +3 -9
  35. package/FunnelChart/index.d.ts +2 -1
  36. package/FunnelChart/index.js +12 -0
  37. package/FunnelChart/seriesConfig/index.js +2 -1
  38. package/FunnelChart/seriesConfig/keyboardFocusHandler.js +1 -14
  39. package/FunnelChart/seriesConfig/legend.js +0 -1
  40. package/Heatmap/Heatmap.d.ts +6 -3
  41. package/Heatmap/Heatmap.js +46 -135
  42. package/Heatmap/Heatmap.types.d.ts +19 -0
  43. package/Heatmap/Heatmap.types.js +5 -0
  44. package/Heatmap/HeatmapItem.d.ts +6 -0
  45. package/Heatmap/HeatmapItem.js +11 -3
  46. package/Heatmap/HeatmapPlot.d.ts +7 -3
  47. package/Heatmap/HeatmapPlot.js +16 -54
  48. package/Heatmap/HeatmapSVGPlot.d.ts +2 -0
  49. package/Heatmap/HeatmapSVGPlot.js +70 -0
  50. package/Heatmap/HeatmapTooltip/HeatmapTooltip.types.d.ts +18 -2
  51. package/Heatmap/HeatmapTooltip/index.d.ts +1 -1
  52. package/Heatmap/index.d.ts +3 -2
  53. package/Heatmap/seriesConfig/getItemAtPosition.d.ts +2 -2
  54. package/Heatmap/seriesConfig/getItemAtPosition.js +6 -2
  55. package/Heatmap/seriesConfig/index.js +1 -0
  56. package/Heatmap/useHeatmapProps.d.ts +24 -0
  57. package/Heatmap/useHeatmapProps.js +159 -0
  58. package/LineChartPro/LineChartPro.d.ts +1 -1
  59. package/LineChartPro/LineChartPro.js +30 -8
  60. package/PieChartPro/PieChartPro.d.ts +1 -1
  61. package/PieChartPro/PieChartPro.js +9 -8
  62. package/RadarChartPro/RadarChartPro.d.ts +1 -1
  63. package/RadarChartPro/RadarChartPro.js +8 -8
  64. package/SankeyChart/SankeyChart.d.ts +1 -1
  65. package/SankeyChart/SankeyChart.js +9 -23
  66. package/SankeyChart/SankeyTooltip/SankeyTooltip.types.d.ts +5 -1
  67. package/SankeyChart/SankeyTooltip/index.d.ts +1 -1
  68. package/SankeyChart/index.d.ts +1 -1
  69. package/SankeyChart/plugins/useSankeyHighlight.selectors.d.ts +7 -7
  70. package/SankeyChart/sankey.highlight.types.d.ts +4 -0
  71. package/SankeyChart/sankey.types.d.ts +6 -3
  72. package/SankeyChart/sankeySlots.types.d.ts +3 -9
  73. package/SankeyChart/seriesConfig/getSeriesWithDefaultValues.js +13 -1
  74. package/SankeyChart/seriesConfig/identifierCleaner.d.ts +3 -0
  75. package/SankeyChart/seriesConfig/identifierCleaner.js +24 -0
  76. package/SankeyChart/seriesConfig/index.js +3 -1
  77. package/ScatterChartPro/ScatterChartPro.d.ts +1 -1
  78. package/ScatterChartPro/ScatterChartPro.js +30 -8
  79. package/esm/BarChartPro/BarChartPro.d.ts +1 -1
  80. package/esm/BarChartPro/BarChartPro.js +30 -8
  81. package/esm/ChartContainerPro/ChartContainerPro.d.ts +17 -31
  82. package/esm/ChartContainerPro/ChartContainerPro.js +15 -286
  83. package/esm/ChartContainerPro/useChartContainerProProps.d.ts +10 -7
  84. package/esm/ChartContainerPro/useChartContainerProProps.js +11 -34
  85. package/esm/ChartDataProviderPro/ChartDataProviderPro.d.ts +5 -3
  86. package/esm/ChartDataProviderPro/ChartDataProviderPro.js +2 -2
  87. package/esm/ChartDataProviderPro/index.d.ts +1 -1
  88. package/esm/ChartDataProviderPro/useChartDataProviderProProps.d.ts +3 -3
  89. package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderActiveTrack.js +9 -7
  90. package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderTrack.js +7 -5
  91. package/esm/ChartZoomSlider/internals/previews/AreaPreviewPlot.d.ts +1 -1
  92. package/esm/ChartZoomSlider/internals/previews/AreaPreviewPlot.js +4 -4
  93. package/esm/ChartZoomSlider/internals/previews/BarPreviewPlot.js +1 -1
  94. package/esm/ChartZoomSlider/internals/previews/LinePreviewPlot.d.ts +1 -1
  95. package/esm/ChartZoomSlider/internals/previews/LinePreviewPlot.js +4 -4
  96. package/esm/ChartsContainer/index.d.ts +1 -0
  97. package/esm/ChartsContainer/index.js +2 -0
  98. package/esm/ChartsContainerPro/ChartsContainerPro.d.ts +37 -0
  99. package/esm/ChartsContainerPro/ChartsContainerPro.js +182 -0
  100. package/esm/ChartsContainerPro/index.d.ts +9 -0
  101. package/esm/ChartsContainerPro/index.js +6 -0
  102. package/esm/ChartsContainerPro/useChartsContainerProProps.d.ts +8 -0
  103. package/esm/ChartsContainerPro/useChartsContainerProProps.js +37 -0
  104. package/esm/FunnelChart/FunnelChart.d.ts +1 -1
  105. package/esm/FunnelChart/FunnelChart.js +9 -8
  106. package/esm/FunnelChart/FunnelSection.d.ts +1 -1
  107. package/esm/FunnelChart/funnel.types.d.ts +1 -1
  108. package/esm/FunnelChart/funnelAxisPlugin/useChartFunnelAxis.js +13 -10
  109. package/esm/FunnelChart/funnelAxisPlugin/useChartFunnelAxis.types.d.ts +3 -2
  110. package/esm/FunnelChart/funnelAxisPlugin/useChartFunnelAxisRendering.selectors.d.ts +3 -3
  111. package/esm/FunnelChart/funnelSlots.types.d.ts +3 -9
  112. package/esm/FunnelChart/index.d.ts +2 -1
  113. package/esm/FunnelChart/index.js +1 -0
  114. package/esm/FunnelChart/seriesConfig/index.js +3 -2
  115. package/esm/FunnelChart/seriesConfig/keyboardFocusHandler.js +2 -15
  116. package/esm/FunnelChart/seriesConfig/legend.js +0 -1
  117. package/esm/Heatmap/Heatmap.d.ts +6 -3
  118. package/esm/Heatmap/Heatmap.js +47 -136
  119. package/esm/Heatmap/Heatmap.types.d.ts +19 -0
  120. package/esm/Heatmap/Heatmap.types.js +1 -0
  121. package/esm/Heatmap/HeatmapItem.d.ts +6 -0
  122. package/esm/Heatmap/HeatmapItem.js +11 -3
  123. package/esm/Heatmap/HeatmapPlot.d.ts +7 -3
  124. package/esm/Heatmap/HeatmapPlot.js +17 -56
  125. package/esm/Heatmap/HeatmapSVGPlot.d.ts +2 -0
  126. package/esm/Heatmap/HeatmapSVGPlot.js +64 -0
  127. package/esm/Heatmap/HeatmapTooltip/HeatmapTooltip.types.d.ts +18 -2
  128. package/esm/Heatmap/HeatmapTooltip/index.d.ts +1 -1
  129. package/esm/Heatmap/index.d.ts +3 -2
  130. package/esm/Heatmap/seriesConfig/getItemAtPosition.d.ts +2 -2
  131. package/esm/Heatmap/seriesConfig/getItemAtPosition.js +6 -2
  132. package/esm/Heatmap/seriesConfig/index.js +2 -1
  133. package/esm/Heatmap/useHeatmapProps.d.ts +24 -0
  134. package/esm/Heatmap/useHeatmapProps.js +151 -0
  135. package/esm/LineChartPro/LineChartPro.d.ts +1 -1
  136. package/esm/LineChartPro/LineChartPro.js +30 -8
  137. package/esm/PieChartPro/PieChartPro.d.ts +1 -1
  138. package/esm/PieChartPro/PieChartPro.js +9 -8
  139. package/esm/RadarChartPro/RadarChartPro.d.ts +1 -1
  140. package/esm/RadarChartPro/RadarChartPro.js +8 -8
  141. package/esm/SankeyChart/SankeyChart.d.ts +1 -1
  142. package/esm/SankeyChart/SankeyChart.js +9 -23
  143. package/esm/SankeyChart/SankeyTooltip/SankeyTooltip.types.d.ts +5 -1
  144. package/esm/SankeyChart/SankeyTooltip/index.d.ts +1 -1
  145. package/esm/SankeyChart/index.d.ts +1 -1
  146. package/esm/SankeyChart/plugins/useSankeyHighlight.selectors.d.ts +7 -7
  147. package/esm/SankeyChart/sankey.highlight.types.d.ts +4 -0
  148. package/esm/SankeyChart/sankey.types.d.ts +6 -3
  149. package/esm/SankeyChart/sankeySlots.types.d.ts +3 -9
  150. package/esm/SankeyChart/seriesConfig/getSeriesWithDefaultValues.js +13 -1
  151. package/esm/SankeyChart/seriesConfig/identifierCleaner.d.ts +3 -0
  152. package/esm/SankeyChart/seriesConfig/identifierCleaner.js +18 -0
  153. package/esm/SankeyChart/seriesConfig/index.js +3 -1
  154. package/esm/ScatterChartPro/ScatterChartPro.d.ts +1 -1
  155. package/esm/ScatterChartPro/ScatterChartPro.js +30 -8
  156. package/esm/index.d.ts +3 -1
  157. package/esm/index.js +2 -1
  158. package/esm/internals/index.d.ts +7 -1
  159. package/esm/internals/index.js +5 -1
  160. package/esm/internals/plugins/useChartProExport/common.d.ts +5 -1
  161. package/esm/internals/plugins/useChartProExport/common.js +36 -0
  162. package/esm/internals/plugins/useChartProExport/exportImage.d.ts +1 -1
  163. package/esm/internals/plugins/useChartProExport/exportImage.js +2 -1
  164. package/esm/internals/plugins/useChartProExport/print.d.ts +1 -1
  165. package/esm/internals/plugins/useChartProExport/print.js +2 -1
  166. package/esm/internals/plugins/useChartProExport/useChartProExport.js +4 -2
  167. package/esm/internals/plugins/useChartProZoom/ZoomInteractionConfig.selectors.d.ts +2 -2
  168. package/esm/internals/plugins/useChartProZoom/gestureHooks/usePanOnDrag.d.ts +2 -3
  169. package/esm/internals/plugins/useChartProZoom/gestureHooks/usePanOnDrag.js +4 -2
  170. package/esm/internals/plugins/useChartProZoom/gestureHooks/usePanOnPressAndDrag.d.ts +2 -3
  171. package/esm/internals/plugins/useChartProZoom/gestureHooks/usePanOnPressAndDrag.js +4 -2
  172. package/esm/internals/plugins/useChartProZoom/gestureHooks/usePanOnWheel.d.ts +2 -3
  173. package/esm/internals/plugins/useChartProZoom/gestureHooks/usePanOnWheel.js +6 -4
  174. package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnBrush.d.ts +2 -3
  175. package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnBrush.js +7 -5
  176. package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnDoubleTapReset.d.ts +2 -3
  177. package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnDoubleTapReset.js +4 -2
  178. package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnPinch.d.ts +2 -3
  179. package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnPinch.js +6 -4
  180. package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnTapAndDrag.d.ts +2 -3
  181. package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnTapAndDrag.js +6 -4
  182. package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnWheel.d.ts +2 -3
  183. package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnWheel.js +6 -4
  184. package/esm/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +5 -5
  185. package/esm/models/seriesType/heatmap.d.ts +3 -3
  186. package/esm/plugins/selectors/useChartHeatmapPosition.selectors.d.ts +1 -1
  187. package/esm/plugins/selectors/useChartHeatmapPosition.selectors.js +3 -1
  188. package/esm/typeOverloads/modules.d.ts +9 -5
  189. package/index.d.ts +3 -1
  190. package/index.js +9 -1
  191. package/internals/index.d.ts +7 -1
  192. package/internals/index.js +43 -1
  193. package/internals/plugins/useChartProExport/common.d.ts +5 -1
  194. package/internals/plugins/useChartProExport/common.js +37 -0
  195. package/internals/plugins/useChartProExport/exportImage.d.ts +1 -1
  196. package/internals/plugins/useChartProExport/exportImage.js +1 -0
  197. package/internals/plugins/useChartProExport/print.d.ts +1 -1
  198. package/internals/plugins/useChartProExport/print.js +1 -0
  199. package/internals/plugins/useChartProExport/useChartProExport.js +4 -2
  200. package/internals/plugins/useChartProZoom/ZoomInteractionConfig.selectors.d.ts +2 -2
  201. package/internals/plugins/useChartProZoom/gestureHooks/usePanOnDrag.d.ts +2 -3
  202. package/internals/plugins/useChartProZoom/gestureHooks/usePanOnDrag.js +4 -2
  203. package/internals/plugins/useChartProZoom/gestureHooks/usePanOnPressAndDrag.d.ts +2 -3
  204. package/internals/plugins/useChartProZoom/gestureHooks/usePanOnPressAndDrag.js +4 -2
  205. package/internals/plugins/useChartProZoom/gestureHooks/usePanOnWheel.d.ts +2 -3
  206. package/internals/plugins/useChartProZoom/gestureHooks/usePanOnWheel.js +5 -3
  207. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnBrush.d.ts +2 -3
  208. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnBrush.js +6 -4
  209. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnDoubleTapReset.d.ts +2 -3
  210. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnDoubleTapReset.js +4 -2
  211. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnPinch.d.ts +2 -3
  212. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnPinch.js +5 -3
  213. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnTapAndDrag.d.ts +2 -3
  214. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnTapAndDrag.js +5 -3
  215. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnWheel.d.ts +2 -3
  216. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnWheel.js +5 -3
  217. package/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +5 -5
  218. package/models/seriesType/heatmap.d.ts +3 -3
  219. package/package.json +19 -11
  220. package/plugins/selectors/useChartHeatmapPosition.selectors.d.ts +1 -1
  221. package/plugins/selectors/useChartHeatmapPosition.selectors.js +3 -1
  222. package/typeOverloads/modules.d.ts +9 -5
@@ -1,291 +1,20 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
4
- import * as React from 'react';
5
- import PropTypes from 'prop-types';
6
- import { ChartsSurface } from '@mui/x-charts/ChartsSurface';
7
- import { useChartContainerProProps } from "./useChartContainerProProps.js";
8
- import { ChartDataProviderPro } from "../ChartDataProviderPro/index.js";
9
- import { jsx as _jsx } from "react/jsx-runtime";
3
+ import { ChartsContainerPro } from "../ChartsContainerPro/index.js";
4
+
10
5
  /**
11
- * It sets up the data providers as well as the `<svg>` for the chart.
12
- *
13
- * This is a combination of both the `ChartDataProviderPro` and `ChartsSurface` components.
14
- *
15
- * Demos:
16
- *
17
- * - [Composition](https://mui.com/x/api/charts/composition/)
18
- *
19
- * API:
20
- *
21
- * - [ChartContainer API](https://mui.com/x/api/charts/chart-container/)
22
- *
23
- * @example
24
- * ```jsx
25
- * <ChartContainerPro
26
- * series={[{ label: "Label", type: "bar", data: [10, 20] }]}
27
- * xAxis={[{ data: ["A", "B"], scaleType: "band", id: "x-axis" }]}
28
- * >
29
- * <BarPlot />
30
- * <ChartsXAxis axisId="x-axis" />
31
- * </ChartContainerPro>
32
- * ```
6
+ * @deprecated Use `ChartsContainerProSlots` instead. We added S to the charts prefix to align with other components.
33
7
  */
34
- const ChartContainerPro = /*#__PURE__*/React.forwardRef(function ChartContainerProInner(props, ref) {
35
- const {
36
- chartDataProviderProProps,
37
- children,
38
- chartsSurfaceProps
39
- } = useChartContainerProProps(props, ref);
40
- return /*#__PURE__*/_jsx(ChartDataProviderPro, _extends({}, chartDataProviderProProps, {
41
- children: /*#__PURE__*/_jsx(ChartsSurface, _extends({}, chartsSurfaceProps, {
42
- children: children
43
- }))
44
- }));
45
- });
46
8
 
47
- // @ts-expect-error the type coercion breaks the prop types
48
- if (process.env.NODE_ENV !== "production") ChartContainerPro.displayName = "ChartContainerPro";
49
- process.env.NODE_ENV !== "production" ? ChartContainerPro.propTypes = {
50
- // ----------------------------- Warning --------------------------------
51
- // | These PropTypes are generated from the TypeScript type definitions |
52
- // | To update them edit the TypeScript types and run "pnpm proptypes" |
53
- // ----------------------------------------------------------------------
54
- apiRef: PropTypes.shape({
55
- current: PropTypes.shape({
56
- setZoomData: PropTypes.func.isRequired
57
- })
58
- }),
59
- children: PropTypes.node,
60
- className: PropTypes.string,
61
- /**
62
- * Color palette used to colorize multiple series.
63
- * @default blueberryTwilightPalette
64
- */
65
- colors: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string), PropTypes.func]),
66
- /**
67
- * An array of objects that can be used to populate series and axes data using their `dataKey` property.
68
- */
69
- dataset: PropTypes.arrayOf(PropTypes.object),
70
- desc: PropTypes.string,
71
- /**
72
- * If `true`, the charts will not listen to the mouse move event.
73
- * It might break interactive features, but will improve performance.
74
- * @default false
75
- */
76
- disableAxisListener: PropTypes.bool,
77
- /**
78
- * The height of the chart in px. If not defined, it takes the height of the parent element.
79
- */
80
- height: PropTypes.number,
81
- /**
82
- * The highlighted item.
83
- * Used when the highlight is controlled.
84
- */
85
- highlightedItem: PropTypes.shape({
86
- dataIndex: PropTypes.number,
87
- seriesId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired
88
- }),
89
- /**
90
- * This prop is used to help implement the accessibility logic.
91
- * If you don't provide this prop. It falls back to a randomly generated id.
92
- */
93
- id: PropTypes.string,
94
- /**
95
- * The list of zoom data related to each axis.
96
- */
97
- initialZoom: PropTypes.arrayOf(PropTypes.shape({
98
- axisId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
99
- end: PropTypes.number.isRequired,
100
- start: PropTypes.number.isRequired
101
- })),
102
- /**
103
- * The margin between the SVG and the drawing area.
104
- * It's used for leaving some space for extra information such as the x- and y-axis or legend.
105
- * Accepts an object with the optional properties: `top`, `bottom`, `left`, and `right`.
106
- */
107
- margin: PropTypes.shape({
108
- bottom: PropTypes.number,
109
- left: PropTypes.number,
110
- right: PropTypes.number,
111
- top: PropTypes.number
112
- }),
113
- /**
114
- * The callback fired when the highlighted item changes.
115
- *
116
- * @param {HighlightItemData | null} highlightedItem The newly highlighted item.
117
- */
118
- onHighlightChange: PropTypes.func,
119
- /**
120
- * Callback fired when the zoom has changed.
121
- *
122
- * @param {ZoomData[]} zoomData Updated zoom data.
123
- */
124
- onZoomChange: PropTypes.func,
125
- /**
126
- * The array of series to display.
127
- * Each type of series has its own specificity.
128
- * Please refer to the appropriate docs page to learn more about it.
129
- */
130
- series: PropTypes.arrayOf(PropTypes.object),
131
- /**
132
- * If `true`, animations are skipped.
133
- * If unset or `false`, the animations respects the user's `prefers-reduced-motion` setting.
134
- */
135
- skipAnimation: PropTypes.bool,
136
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
137
- theme: PropTypes.oneOf(['dark', 'light']),
138
- title: PropTypes.string,
139
- /**
140
- * The width of the chart in px. If not defined, it takes the width of the parent element.
141
- */
142
- width: PropTypes.number,
143
- /**
144
- * The configuration of the x-axes.
145
- * If not provided, a default axis config is used.
146
- * An array of [[AxisConfig]] objects.
147
- */
148
- xAxis: PropTypes.arrayOf(PropTypes.shape({
149
- classes: PropTypes.object,
150
- colorMap: PropTypes.oneOfType([PropTypes.shape({
151
- colors: PropTypes.arrayOf(PropTypes.string).isRequired,
152
- type: PropTypes.oneOf(['ordinal']).isRequired,
153
- unknownColor: PropTypes.string,
154
- values: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number, PropTypes.string]).isRequired)
155
- }), PropTypes.shape({
156
- color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
157
- max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
158
- min: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
159
- type: PropTypes.oneOf(['continuous']).isRequired
160
- }), PropTypes.shape({
161
- colors: PropTypes.arrayOf(PropTypes.string).isRequired,
162
- thresholds: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]).isRequired).isRequired,
163
- type: PropTypes.oneOf(['piecewise']).isRequired
164
- })]),
165
- data: PropTypes.array,
166
- dataKey: PropTypes.string,
167
- disableLine: PropTypes.bool,
168
- disableTicks: PropTypes.bool,
169
- domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
170
- fill: PropTypes.string,
171
- hideTooltip: PropTypes.bool,
172
- id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
173
- label: PropTypes.string,
174
- labelStyle: PropTypes.object,
175
- max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
176
- min: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
177
- position: PropTypes.oneOf(['bottom', 'top']),
178
- reverse: PropTypes.bool,
179
- scaleType: PropTypes.oneOf(['band', 'linear', 'log', 'point', 'pow', 'sqrt', 'time', 'utc']),
180
- slotProps: PropTypes.object,
181
- slots: PropTypes.object,
182
- stroke: PropTypes.string,
183
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
184
- tickInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.array, PropTypes.func]),
185
- tickLabelInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.func]),
186
- tickLabelPlacement: PropTypes.oneOf(['middle', 'tick']),
187
- tickLabelStyle: PropTypes.object,
188
- tickMaxStep: PropTypes.number,
189
- tickMinStep: PropTypes.number,
190
- tickNumber: PropTypes.number,
191
- tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
192
- tickSize: PropTypes.number,
193
- valueFormatter: PropTypes.func,
194
- zoom: PropTypes.oneOfType([PropTypes.shape({
195
- filterMode: PropTypes.oneOf(['discard', 'keep']),
196
- maxEnd: PropTypes.number,
197
- maxSpan: PropTypes.number,
198
- minSpan: PropTypes.number,
199
- minStart: PropTypes.number,
200
- panning: PropTypes.bool,
201
- step: PropTypes.number
202
- }), PropTypes.bool])
203
- })),
204
- /**
205
- * The configuration of the y-axes.
206
- * If not provided, a default axis config is used.
207
- * An array of [[AxisConfig]] objects.
208
- */
209
- yAxis: PropTypes.arrayOf(PropTypes.shape({
210
- classes: PropTypes.object,
211
- colorMap: PropTypes.oneOfType([PropTypes.shape({
212
- colors: PropTypes.arrayOf(PropTypes.string).isRequired,
213
- type: PropTypes.oneOf(['ordinal']).isRequired,
214
- unknownColor: PropTypes.string,
215
- values: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number, PropTypes.string]).isRequired)
216
- }), PropTypes.shape({
217
- color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
218
- max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
219
- min: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
220
- type: PropTypes.oneOf(['continuous']).isRequired
221
- }), PropTypes.shape({
222
- colors: PropTypes.arrayOf(PropTypes.string).isRequired,
223
- thresholds: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]).isRequired).isRequired,
224
- type: PropTypes.oneOf(['piecewise']).isRequired
225
- })]),
226
- data: PropTypes.array,
227
- dataKey: PropTypes.string,
228
- disableLine: PropTypes.bool,
229
- disableTicks: PropTypes.bool,
230
- domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
231
- fill: PropTypes.string,
232
- hideTooltip: PropTypes.bool,
233
- id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
234
- label: PropTypes.string,
235
- labelStyle: PropTypes.object,
236
- max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
237
- min: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
238
- position: PropTypes.oneOf(['left', 'right']),
239
- reverse: PropTypes.bool,
240
- scaleType: PropTypes.oneOf(['band', 'linear', 'log', 'point', 'pow', 'sqrt', 'time', 'utc']),
241
- slotProps: PropTypes.object,
242
- slots: PropTypes.object,
243
- stroke: PropTypes.string,
244
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
245
- tickInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.array, PropTypes.func]),
246
- tickLabelInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.func]),
247
- tickLabelPlacement: PropTypes.oneOf(['middle', 'tick']),
248
- tickLabelStyle: PropTypes.object,
249
- tickMaxStep: PropTypes.number,
250
- tickMinStep: PropTypes.number,
251
- tickNumber: PropTypes.number,
252
- tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
253
- tickSize: PropTypes.number,
254
- valueFormatter: PropTypes.func,
255
- zoom: PropTypes.oneOfType([PropTypes.shape({
256
- filterMode: PropTypes.oneOf(['discard', 'keep']),
257
- maxEnd: PropTypes.number,
258
- maxSpan: PropTypes.number,
259
- minSpan: PropTypes.number,
260
- minStart: PropTypes.number,
261
- panning: PropTypes.bool,
262
- step: PropTypes.number
263
- }), PropTypes.bool])
264
- })),
265
- /**
266
- * The configuration of the z-axes.
267
- */
268
- zAxis: PropTypes.arrayOf(PropTypes.shape({
269
- colorMap: PropTypes.oneOfType([PropTypes.shape({
270
- colors: PropTypes.arrayOf(PropTypes.string).isRequired,
271
- type: PropTypes.oneOf(['ordinal']).isRequired,
272
- unknownColor: PropTypes.string,
273
- values: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number, PropTypes.string]).isRequired)
274
- }), PropTypes.shape({
275
- color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
276
- max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
277
- min: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
278
- type: PropTypes.oneOf(['continuous']).isRequired
279
- }), PropTypes.shape({
280
- colors: PropTypes.arrayOf(PropTypes.string).isRequired,
281
- thresholds: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]).isRequired).isRequired,
282
- type: PropTypes.oneOf(['piecewise']).isRequired
283
- })]),
284
- data: PropTypes.array,
285
- dataKey: PropTypes.string,
286
- id: PropTypes.string,
287
- max: PropTypes.number,
288
- min: PropTypes.number
289
- }))
290
- } : void 0;
291
- export { ChartContainerPro };
9
+ /**
10
+ * @deprecated Use `ChartsContainerProSlotProps` instead. We added S to the charts prefix to align with other components.
11
+ */
12
+
13
+ /**
14
+ * @deprecated Use `ChartsContainerProProps` instead. We added S to the charts prefix to align with other components.
15
+ */
16
+
17
+ /**
18
+ * @deprecated Use `ChartsContainerPro` instead. We added S to the charts prefix to align with other components.
19
+ */
20
+ export const ChartContainerPro = ChartsContainerPro;
@@ -1,9 +1,12 @@
1
- import { type ChartAnyPluginSignature, type ChartSeriesType, type UseChartContainerPropsReturnValue } from '@mui/x-charts/internals';
2
- import type * as React from 'react';
3
- import type { ChartDataProviderProProps } from "../ChartDataProviderPro/index.js";
1
+ import { type ChartAnyPluginSignature, type ChartSeriesType } from '@mui/x-charts/internals';
2
+ import { type UseChartsContainerProPropsReturnValue } from "../ChartsContainerPro/useChartsContainerProProps.js";
4
3
  import type { ChartContainerProProps } from "./ChartContainerPro.js";
5
4
  import { type AllPluginSignatures } from "../internals/plugins/allPlugins.js";
6
- export type UseChartContainerProPropsReturnValue<TSeries extends ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[]> = Pick<UseChartContainerPropsReturnValue<TSeries, TSignatures>, 'chartsSurfaceProps' | 'children'> & {
7
- chartDataProviderProProps: ChartDataProviderProProps<TSeries, TSignatures>;
8
- };
9
- export declare const useChartContainerProProps: <TSeries extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<TSeries>>(props: ChartContainerProProps<TSeries, TSignatures>, ref: React.Ref<SVGSVGElement>) => UseChartContainerProPropsReturnValue<TSeries, TSignatures>;
5
+ /**
6
+ * @deprecated Use `UseChartsContainerProPropsReturnValue` instead.
7
+ */
8
+ export type UseChartContainerProPropsReturnValue<TSeries extends ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[]> = UseChartsContainerProPropsReturnValue<TSeries, TSignatures>;
9
+ /**
10
+ * @deprecated Use `useChartsContainerProProps` instead.
11
+ */
12
+ export declare const useChartContainerProProps: <TSeries extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<TSeries>>(props: ChartContainerProProps<TSeries, TSignatures>) => UseChartContainerProPropsReturnValue<TSeries, TSignatures>;
@@ -1,37 +1,14 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
4
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
5
- const _excluded = ["initialZoom", "zoomData", "onZoomChange", "zoomInteractionConfig", "plugins", "apiRef"];
6
- import { useChartContainerProps } from '@mui/x-charts/internals';
7
- import { DEFAULT_PLUGINS } from "../internals/plugins/allPlugins.js";
8
- export const useChartContainerProProps = (props, ref) => {
9
- const _ref = props,
10
- {
11
- initialZoom,
12
- zoomData,
13
- onZoomChange,
14
- zoomInteractionConfig,
15
- plugins,
16
- apiRef
17
- } = _ref,
18
- baseProps = _objectWithoutPropertiesLoose(_ref, _excluded);
19
- const {
20
- chartDataProviderProps,
21
- chartsSurfaceProps,
22
- children
23
- } = useChartContainerProps(baseProps, ref);
24
- const chartDataProviderProProps = _extends({}, chartDataProviderProps, {
25
- initialZoom,
26
- zoomData,
27
- onZoomChange,
28
- zoomInteractionConfig,
29
- apiRef,
30
- plugins: plugins ?? DEFAULT_PLUGINS
31
- });
32
- return {
33
- chartDataProviderProProps,
34
- chartsSurfaceProps,
35
- children
36
- };
3
+ import { useChartsContainerProProps } from "../ChartsContainerPro/useChartsContainerProProps.js";
4
+
5
+ /**
6
+ * @deprecated Use `UseChartsContainerProPropsReturnValue` instead.
7
+ */
8
+
9
+ /**
10
+ * @deprecated Use `useChartsContainerProProps` instead.
11
+ */
12
+ export const useChartContainerProProps = props => {
13
+ return useChartsContainerProProps(props);
37
14
  };
@@ -2,15 +2,17 @@ import { type ChartSeriesType, type ChartAnyPluginSignature, type ChartProviderP
2
2
  import { type ChartDataProviderProps } from '@mui/x-charts/ChartDataProvider';
3
3
  import { type ChartsSlotPropsPro, type ChartsSlotsPro } from "../internals/material/index.js";
4
4
  import { type AllPluginSignatures } from "../internals/plugins/allPlugins.js";
5
+ export interface ChartDataProviderProSlots extends ChartsSlotsPro {}
6
+ export interface ChartDataProviderProSlotProps extends ChartsSlotPropsPro {}
5
7
  export type ChartDataProviderProProps<TSeries extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<TSeries>> = ChartDataProviderProps<TSeries, TSignatures> & ChartProviderProps<TSeries, TSignatures>['pluginParams'] & {
6
8
  /**
7
9
  * Slots to customize charts' components.
8
10
  */
9
- slots?: Partial<ChartsSlotsPro>;
11
+ slots?: Partial<ChartDataProviderProSlots>;
10
12
  /**
11
13
  * The props for the slots.
12
14
  */
13
- slotProps?: Partial<ChartsSlotPropsPro>;
15
+ slotProps?: Partial<ChartDataProviderProSlotProps>;
14
16
  };
15
17
  export declare const defaultSeriesConfigPro: ChartSeriesConfig<'bar' | 'scatter' | 'line' | 'pie'>;
16
18
  /**
@@ -24,7 +26,7 @@ export declare const defaultSeriesConfigPro: ChartSeriesConfig<'bar' | 'scatter'
24
26
  *
25
27
  * API:
26
28
  *
27
- * - [ChartDataProviderPro API](https://mui.com/x/api/charts/chart-data-provider/)
29
+ * - [ChartDataProviderPro API](https://mui.com/x/api/charts/chart-data-provider-pro/)
28
30
  *
29
31
  * @example
30
32
  * ```jsx
@@ -10,7 +10,7 @@ import { defaultSlotsMaterial } from "../internals/material/index.js";
10
10
  import { DEFAULT_PLUGINS } from "../internals/plugins/allPlugins.js";
11
11
  import { useChartDataProviderProProps } from "./useChartDataProviderProProps.js";
12
12
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
- const releaseInfo = "MTc3MTU0NTYwMDAwMA==";
13
+ const releaseInfo = "MTc3MjA2NDAwMDAwMA==";
14
14
  const packageIdentifier = 'x-charts-pro';
15
15
  export const defaultSeriesConfigPro = defaultSeriesConfig;
16
16
 
@@ -25,7 +25,7 @@ export const defaultSeriesConfigPro = defaultSeriesConfig;
25
25
  *
26
26
  * API:
27
27
  *
28
- * - [ChartDataProviderPro API](https://mui.com/x/api/charts/chart-data-provider/)
28
+ * - [ChartDataProviderPro API](https://mui.com/x/api/charts/chart-data-provider-pro/)
29
29
  *
30
30
  * @example
31
31
  * ```jsx
@@ -1,2 +1,2 @@
1
1
  import "../typeOverloads/index.js";
2
- export { ChartDataProviderPro, type ChartDataProviderProProps } from "./ChartDataProviderPro.js";
2
+ export { ChartDataProviderPro, type ChartDataProviderProProps, type ChartDataProviderProSlots, type ChartDataProviderProSlotProps } from "./ChartDataProviderPro.js";
@@ -4,7 +4,7 @@ import type { AllPluginSignatures } from "../internals/plugins/allPlugins.js";
4
4
  export declare const useChartDataProviderProProps: <TSeries extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<TSeries>>(props: ChartDataProviderProProps<TSeries, TSignatures>) => {
5
5
  children: import("react").ReactNode;
6
6
  localeText: Partial<import("@mui/x-charts/locales").ChartsLocaleText> | undefined;
7
- chartProviderProps: import("@mui/x-charts/internals").ChartProviderProps<TSeries, TSignatures>;
8
- slots: Partial<import("@mui/x-charts/internals").ChartsSlots> | undefined;
9
- slotProps: Partial<import("@mui/x-charts/internals").ChartsSlotProps> | undefined;
7
+ chartProviderProps: import("@mui/x-charts/internals").ChartProviderProps<keyof import("@mui/x-charts/internals").ChartsSeriesConfig, TSignatures>;
8
+ slots: Partial<import("@mui/x-charts").ChartDataProviderSlots> | undefined;
9
+ slotProps: Partial<import("@mui/x-charts").ChartDataProviderSlotProps> | undefined;
10
10
  };
@@ -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 { getSVGPoint, invertScale, selectorChartAxis, selectorChartAxisZoomOptionsLookup, useChartContext, useDrawingArea, useStore } from '@mui/x-charts/internals';
5
+ import { getChartPoint, invertScale, selectorChartAxis, selectorChartAxisZoomOptionsLookup, useChartContext, 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';
@@ -52,9 +52,11 @@ export function ChartAxisZoomSliderActiveTrack({
52
52
  onPointerLeave
53
53
  }) {
54
54
  const {
55
- instance,
56
- svgRef
55
+ instance
57
56
  } = useChartContext();
57
+ const {
58
+ svgRef
59
+ } = instance;
58
60
  const store = useStore();
59
61
  const axis = store.use(selectorChartAxis, axisId);
60
62
  const drawingArea = useDrawingArea();
@@ -81,7 +83,7 @@ export function ChartAxisZoomSliderActiveTrack({
81
83
  if (!element) {
82
84
  return;
83
85
  }
84
- const point = getSVGPoint(element, event);
86
+ const point = getChartPoint(element, event);
85
87
  const pointerZoom = calculateZoomFromPoint(store.state, axisId, point);
86
88
  if (pointerZoom === null) {
87
89
  return;
@@ -103,7 +105,7 @@ export function ChartAxisZoomSliderActiveTrack({
103
105
  if (!axisZoomData || !element) {
104
106
  return;
105
107
  }
106
- const point = getSVGPoint(element, event);
108
+ const point = getChartPoint(element, event);
107
109
  const pointerDownZoom = calculateZoomFromPoint(store.state, axisId, point);
108
110
  if (pointerDownZoom === null) {
109
111
  return;
@@ -125,7 +127,7 @@ export function ChartAxisZoomSliderActiveTrack({
125
127
  if (!element) {
126
128
  return;
127
129
  }
128
- const point = getSVGPoint(element, event);
130
+ const point = getChartPoint(element, event);
129
131
  instance.setZoomData(prevZoomData => {
130
132
  const zoomOptions = selectorChartAxisZoomOptionsLookup(store.state, axisId);
131
133
  return prevZoomData.map(zoom => {
@@ -147,7 +149,7 @@ export function ChartAxisZoomSliderActiveTrack({
147
149
  if (!element) {
148
150
  return;
149
151
  }
150
- const point = getSVGPoint(element, event);
152
+ const point = getChartPoint(element, event);
151
153
  instance.setZoomData(prevZoomData => {
152
154
  const zoomOptions = selectorChartAxisZoomOptionsLookup(store.state, axisId);
153
155
  return prevZoomData.map(zoom => {
@@ -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, getSVGPoint, selectorChartAxisZoomOptionsLookup, useStore } from '@mui/x-charts/internals';
7
+ import { useChartContext, 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';
@@ -51,9 +51,11 @@ export function ChartAxisZoomSliderTrack(_ref) {
51
51
  other = _objectWithoutPropertiesLoose(_ref, _excluded);
52
52
  const ref = React.useRef(null);
53
53
  const {
54
- instance,
55
- svgRef
54
+ instance
56
55
  } = useChartContext();
56
+ const {
57
+ svgRef
58
+ } = instance;
57
59
  const store = useStore();
58
60
  const [isSelecting, setIsSelecting] = React.useState(false);
59
61
  const classes = useUtilityClasses({
@@ -65,13 +67,13 @@ export function ChartAxisZoomSliderTrack(_ref) {
65
67
  if (!rect || !element) {
66
68
  return;
67
69
  }
68
- const pointerDownPoint = getSVGPoint(element, event);
70
+ const pointerDownPoint = getChartPoint(element, event);
69
71
  const zoomFromPointerDown = calculateZoomFromPoint(store.state, axisId, pointerDownPoint);
70
72
  if (zoomFromPointerDown === null) {
71
73
  return;
72
74
  }
73
75
  const onPointerMove = rafThrottle(function onPointerMove(pointerMoveEvent) {
74
- const pointerMovePoint = getSVGPoint(element, pointerMoveEvent);
76
+ const pointerMovePoint = getChartPoint(element, pointerMoveEvent);
75
77
  const zoomFromPointerMove = calculateZoomFromPoint(store.state, axisId, pointerMovePoint);
76
78
  if (zoomFromPointerMove === null) {
77
79
  return;
@@ -6,7 +6,7 @@ export declare function AreaPreviewPlot({
6
6
  axisId
7
7
  }: AreaPreviewPlotProps): import("react/jsx-runtime").JSX.Element;
8
8
  export interface PreviewAreaElementProps extends Omit<React.SVGProps<SVGPathElement>, 'ref' | 'color' | 'id'> {
9
- id: SeriesId;
9
+ seriesId: SeriesId;
10
10
  gradientId?: string;
11
11
  color: string;
12
12
  d: string;
@@ -1,6 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
- const _excluded = ["id", "color", "gradientId", "onClick"];
3
+ const _excluded = ["seriesId", "color", "gradientId", "onClick"];
4
4
  import * as React from 'react';
5
5
  import { styled } from '@mui/material/styles';
6
6
  import { useStore, useAreaPlotData, selectorChartPreviewComputedXAxis, selectorChartPreviewComputedYAxis } from '@mui/x-charts/internals';
@@ -21,7 +21,7 @@ export function AreaPreviewPlot({
21
21
  area,
22
22
  gradientId
23
23
  }) => !!area && /*#__PURE__*/_jsx(PreviewAreaElement, {
24
- id: seriesId,
24
+ seriesId: seriesId,
25
25
  d: d,
26
26
  color: color,
27
27
  gradientId: gradientId
@@ -34,7 +34,7 @@ export function AreaPreviewPlot({
34
34
  */
35
35
  function PreviewAreaElement(_ref) {
36
36
  let {
37
- id,
37
+ seriesId,
38
38
  color,
39
39
  gradientId
40
40
  } = _ref,
@@ -42,7 +42,7 @@ function PreviewAreaElement(_ref) {
42
42
  return /*#__PURE__*/_jsx("path", _extends({
43
43
  fill: gradientId ? `url(#${gradientId})` : color,
44
44
  stroke: "none",
45
- "data-series": id
45
+ "data-series": seriesId
46
46
  }, other));
47
47
  }
48
48
  function useAreaPreviewData(axisId) {
@@ -32,7 +32,7 @@ export function BarPreviewPlot(props) {
32
32
  height
33
33
  }) => {
34
34
  return /*#__PURE__*/_jsx(BarElement, {
35
- id: seriesId,
35
+ seriesId: seriesId,
36
36
  dataIndex: dataIndex,
37
37
  color: color,
38
38
  skipAnimation: true,
@@ -6,7 +6,7 @@ export declare function LinePreviewPlot({
6
6
  axisId
7
7
  }: LinePreviewPlotProps): import("react/jsx-runtime").JSX.Element;
8
8
  export interface PreviewLineElementProps extends Omit<React.SVGProps<SVGPathElement>, 'ref' | 'color' | 'id'> {
9
- id: SeriesId;
9
+ seriesId: SeriesId;
10
10
  gradientId?: string;
11
11
  color: string;
12
12
  d: string;
@@ -1,6 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
- const _excluded = ["id", "color", "gradientId", "onClick"];
3
+ const _excluded = ["seriesId", "color", "gradientId", "onClick"];
4
4
  import * as React from 'react';
5
5
  import { useStore, useLinePlotData, selectorChartPreviewComputedXAxis, selectorChartPreviewComputedYAxis } from '@mui/x-charts/internals';
6
6
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -16,7 +16,7 @@ export function LinePreviewPlot({
16
16
  gradientId
17
17
  }) => {
18
18
  return /*#__PURE__*/_jsx(PreviewLineElement, {
19
- id: seriesId,
19
+ seriesId: seriesId,
20
20
  d: d,
21
21
  color: color,
22
22
  gradientId: gradientId
@@ -30,7 +30,7 @@ export function LinePreviewPlot({
30
30
  */
31
31
  function PreviewLineElement(_ref) {
32
32
  let {
33
- id,
33
+ seriesId,
34
34
  color,
35
35
  gradientId
36
36
  } = _ref,
@@ -40,7 +40,7 @@ function PreviewLineElement(_ref) {
40
40
  strokeWidth: 2,
41
41
  strokeLinejoin: "round",
42
42
  fill: "none",
43
- "data-series": id
43
+ "data-series": seriesId
44
44
  }, other));
45
45
  }
46
46
  function useLinePreviewData(axisId) {
@@ -0,0 +1 @@
1
+ export * from '@mui/x-charts/ChartsContainer';
@@ -0,0 +1,2 @@
1
+ // Re-export automatically generated, to customize, simply remove this line.
2
+ export * from '@mui/x-charts/ChartsContainer';