@mui/x-charts-pro 8.8.0 → 8.9.2

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 (163) hide show
  1. package/BarChart/index.d.ts +1 -0
  2. package/BarChart/index.js +16 -0
  3. package/BarChartPro/BarChartPro.js +126 -2
  4. package/CHANGELOG.md +225 -24
  5. package/ChartContainer/index.d.ts +1 -0
  6. package/ChartContainer/index.js +16 -0
  7. package/ChartDataProvider/index.d.ts +1 -0
  8. package/ChartDataProvider/index.js +16 -0
  9. package/ChartDataProviderPro/ChartDataProviderPro.js +1 -1
  10. package/ChartsAxis/index.d.ts +1 -0
  11. package/ChartsAxis/index.js +16 -0
  12. package/ChartsAxisHighlight/index.d.ts +1 -0
  13. package/ChartsAxisHighlight/index.js +16 -0
  14. package/ChartsClipPath/index.d.ts +1 -0
  15. package/ChartsClipPath/index.js +16 -0
  16. package/ChartsGrid/index.d.ts +1 -0
  17. package/ChartsGrid/index.js +16 -0
  18. package/ChartsLabel/index.d.ts +1 -0
  19. package/ChartsLabel/index.js +16 -0
  20. package/ChartsLegend/index.d.ts +1 -0
  21. package/ChartsLegend/index.js +16 -0
  22. package/ChartsLocalizationProvider/index.d.ts +1 -0
  23. package/ChartsLocalizationProvider/index.js +16 -0
  24. package/ChartsOverlay/index.d.ts +1 -0
  25. package/ChartsOverlay/index.js +16 -0
  26. package/ChartsReferenceLine/index.d.ts +1 -0
  27. package/ChartsReferenceLine/index.js +16 -0
  28. package/ChartsSurface/index.d.ts +1 -0
  29. package/ChartsSurface/index.js +16 -0
  30. package/ChartsText/index.d.ts +1 -0
  31. package/ChartsText/index.js +16 -0
  32. package/ChartsTooltip/index.d.ts +1 -0
  33. package/ChartsTooltip/index.js +16 -0
  34. package/ChartsWrapper/index.d.ts +1 -0
  35. package/ChartsWrapper/index.js +16 -0
  36. package/ChartsXAxis/index.d.ts +1 -0
  37. package/ChartsXAxis/index.js +16 -0
  38. package/ChartsYAxis/index.d.ts +1 -0
  39. package/ChartsYAxis/index.js +16 -0
  40. package/FunnelChart/FunnelChart.d.ts +3 -2
  41. package/FunnelChart/FunnelChart.js +13 -3
  42. package/FunnelChart/index.d.ts +1 -1
  43. package/FunnelChart/useFunnelChartProps.d.ts +1 -1
  44. package/Gauge/index.d.ts +1 -0
  45. package/Gauge/index.js +16 -0
  46. package/Heatmap/Heatmap.d.ts +3 -2
  47. package/Heatmap/Heatmap.js +3 -3
  48. package/Heatmap/index.d.ts +1 -0
  49. package/LineChart/index.d.ts +1 -0
  50. package/LineChart/index.js +16 -0
  51. package/LineChartPro/LineChartPro.js +126 -2
  52. package/PieChart/index.d.ts +1 -0
  53. package/PieChart/index.js +16 -0
  54. package/PieChartPro/PieChartPro.js +3 -2
  55. package/RadarChart/index.d.ts +1 -0
  56. package/RadarChart/index.js +16 -0
  57. package/RadarChartPro/RadarChartPro.js +22 -2
  58. package/ScatterChart/index.d.ts +1 -0
  59. package/ScatterChart/index.js +16 -0
  60. package/ScatterChartPro/ScatterChartPro.js +126 -2
  61. package/SparkLineChart/index.d.ts +1 -0
  62. package/SparkLineChart/index.js +16 -0
  63. package/Toolbar/index.d.ts +1 -0
  64. package/Toolbar/index.js +16 -0
  65. package/colorPalettes/index.d.ts +1 -0
  66. package/colorPalettes/index.js +16 -0
  67. package/constants/index.d.ts +1 -0
  68. package/constants/index.js +16 -0
  69. package/context/index.d.ts +1 -0
  70. package/context/index.js +11 -0
  71. package/esm/BarChart/index.d.ts +1 -0
  72. package/esm/BarChart/index.js +2 -0
  73. package/esm/BarChartPro/BarChartPro.js +126 -2
  74. package/esm/ChartContainer/index.d.ts +1 -0
  75. package/esm/ChartContainer/index.js +2 -0
  76. package/esm/ChartDataProvider/index.d.ts +1 -0
  77. package/esm/ChartDataProvider/index.js +2 -0
  78. package/esm/ChartDataProviderPro/ChartDataProviderPro.js +1 -1
  79. package/esm/ChartsAxis/index.d.ts +1 -0
  80. package/esm/ChartsAxis/index.js +2 -0
  81. package/esm/ChartsAxisHighlight/index.d.ts +1 -0
  82. package/esm/ChartsAxisHighlight/index.js +2 -0
  83. package/esm/ChartsClipPath/index.d.ts +1 -0
  84. package/esm/ChartsClipPath/index.js +2 -0
  85. package/esm/ChartsGrid/index.d.ts +1 -0
  86. package/esm/ChartsGrid/index.js +2 -0
  87. package/esm/ChartsLabel/index.d.ts +1 -0
  88. package/esm/ChartsLabel/index.js +2 -0
  89. package/esm/ChartsLegend/index.d.ts +1 -0
  90. package/esm/ChartsLegend/index.js +2 -0
  91. package/esm/ChartsLocalizationProvider/index.d.ts +1 -0
  92. package/esm/ChartsLocalizationProvider/index.js +2 -0
  93. package/esm/ChartsOverlay/index.d.ts +1 -0
  94. package/esm/ChartsOverlay/index.js +2 -0
  95. package/esm/ChartsReferenceLine/index.d.ts +1 -0
  96. package/esm/ChartsReferenceLine/index.js +2 -0
  97. package/esm/ChartsSurface/index.d.ts +1 -0
  98. package/esm/ChartsSurface/index.js +2 -0
  99. package/esm/ChartsText/index.d.ts +1 -0
  100. package/esm/ChartsText/index.js +2 -0
  101. package/esm/ChartsTooltip/index.d.ts +1 -0
  102. package/esm/ChartsTooltip/index.js +2 -0
  103. package/esm/ChartsWrapper/index.d.ts +1 -0
  104. package/esm/ChartsWrapper/index.js +2 -0
  105. package/esm/ChartsXAxis/index.d.ts +1 -0
  106. package/esm/ChartsXAxis/index.js +2 -0
  107. package/esm/ChartsYAxis/index.d.ts +1 -0
  108. package/esm/ChartsYAxis/index.js +2 -0
  109. package/esm/FunnelChart/FunnelChart.d.ts +3 -2
  110. package/esm/FunnelChart/FunnelChart.js +12 -2
  111. package/esm/FunnelChart/index.d.ts +1 -1
  112. package/esm/FunnelChart/useFunnelChartProps.d.ts +1 -1
  113. package/esm/Gauge/index.d.ts +1 -0
  114. package/esm/Gauge/index.js +2 -0
  115. package/esm/Heatmap/Heatmap.d.ts +3 -2
  116. package/esm/Heatmap/Heatmap.js +2 -2
  117. package/esm/Heatmap/index.d.ts +1 -0
  118. package/esm/LineChart/index.d.ts +1 -0
  119. package/esm/LineChart/index.js +2 -0
  120. package/esm/LineChartPro/LineChartPro.js +126 -2
  121. package/esm/PieChart/index.d.ts +1 -0
  122. package/esm/PieChart/index.js +2 -0
  123. package/esm/PieChartPro/PieChartPro.js +3 -2
  124. package/esm/RadarChart/index.d.ts +1 -0
  125. package/esm/RadarChart/index.js +2 -0
  126. package/esm/RadarChartPro/RadarChartPro.js +22 -2
  127. package/esm/ScatterChart/index.d.ts +1 -0
  128. package/esm/ScatterChart/index.js +2 -0
  129. package/esm/ScatterChartPro/ScatterChartPro.js +126 -2
  130. package/esm/SparkLineChart/index.d.ts +1 -0
  131. package/esm/SparkLineChart/index.js +2 -0
  132. package/esm/Toolbar/index.d.ts +1 -0
  133. package/esm/Toolbar/index.js +2 -0
  134. package/esm/colorPalettes/index.d.ts +1 -0
  135. package/esm/colorPalettes/index.js +3 -0
  136. package/esm/constants/index.d.ts +1 -0
  137. package/esm/constants/index.js +3 -0
  138. package/esm/context/index.d.ts +1 -0
  139. package/esm/context/index.js +3 -0
  140. package/esm/hooks/index.d.ts +1 -0
  141. package/esm/hooks/index.js +3 -0
  142. package/esm/index.d.ts +6 -7
  143. package/esm/index.js +15 -9
  144. package/esm/internals/plugins/allPlugins.d.ts +2 -2
  145. package/esm/internals/plugins/useChartProExport/defaults.d.ts +1 -0
  146. package/esm/internals/plugins/useChartProExport/defaults.js +6 -0
  147. package/esm/internals/plugins/useChartProExport/exportImage.js +3 -2
  148. package/esm/internals/plugins/useChartProExport/print.js +3 -2
  149. package/esm/locales/index.js +3 -1
  150. package/esm/models/index.d.ts +3 -1
  151. package/esm/models/index.js +5 -1
  152. package/hooks/index.d.ts +1 -0
  153. package/hooks/index.js +11 -0
  154. package/index.d.ts +6 -7
  155. package/index.js +67 -55
  156. package/internals/plugins/allPlugins.d.ts +2 -2
  157. package/internals/plugins/useChartProExport/defaults.d.ts +1 -0
  158. package/internals/plugins/useChartProExport/defaults.js +12 -0
  159. package/internals/plugins/useChartProExport/exportImage.js +3 -2
  160. package/internals/plugins/useChartProExport/print.js +3 -2
  161. package/models/index.d.ts +3 -1
  162. package/models/index.js +24 -1
  163. package/package.json +8 -9
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _ChartsAxis = require("@mui/x-charts/ChartsAxis");
7
+ Object.keys(_ChartsAxis).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _ChartsAxis[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _ChartsAxis[key];
14
+ }
15
+ });
16
+ });
@@ -0,0 +1 @@
1
+ export * from '@mui/x-charts/ChartsAxisHighlight';
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _ChartsAxisHighlight = require("@mui/x-charts/ChartsAxisHighlight");
7
+ Object.keys(_ChartsAxisHighlight).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _ChartsAxisHighlight[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _ChartsAxisHighlight[key];
14
+ }
15
+ });
16
+ });
@@ -0,0 +1 @@
1
+ export * from '@mui/x-charts/ChartsClipPath';
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _ChartsClipPath = require("@mui/x-charts/ChartsClipPath");
7
+ Object.keys(_ChartsClipPath).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _ChartsClipPath[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _ChartsClipPath[key];
14
+ }
15
+ });
16
+ });
@@ -0,0 +1 @@
1
+ export * from '@mui/x-charts/ChartsGrid';
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _ChartsGrid = require("@mui/x-charts/ChartsGrid");
7
+ Object.keys(_ChartsGrid).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _ChartsGrid[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _ChartsGrid[key];
14
+ }
15
+ });
16
+ });
@@ -0,0 +1 @@
1
+ export * from '@mui/x-charts/ChartsLabel';
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _ChartsLabel = require("@mui/x-charts/ChartsLabel");
7
+ Object.keys(_ChartsLabel).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _ChartsLabel[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _ChartsLabel[key];
14
+ }
15
+ });
16
+ });
@@ -0,0 +1 @@
1
+ export * from '@mui/x-charts/ChartsLegend';
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _ChartsLegend = require("@mui/x-charts/ChartsLegend");
7
+ Object.keys(_ChartsLegend).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _ChartsLegend[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _ChartsLegend[key];
14
+ }
15
+ });
16
+ });
@@ -0,0 +1 @@
1
+ export * from '@mui/x-charts/ChartsLocalizationProvider';
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _ChartsLocalizationProvider = require("@mui/x-charts/ChartsLocalizationProvider");
7
+ Object.keys(_ChartsLocalizationProvider).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _ChartsLocalizationProvider[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _ChartsLocalizationProvider[key];
14
+ }
15
+ });
16
+ });
@@ -0,0 +1 @@
1
+ export * from '@mui/x-charts/ChartsOverlay';
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _ChartsOverlay = require("@mui/x-charts/ChartsOverlay");
7
+ Object.keys(_ChartsOverlay).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _ChartsOverlay[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _ChartsOverlay[key];
14
+ }
15
+ });
16
+ });
@@ -0,0 +1 @@
1
+ export * from '@mui/x-charts/ChartsReferenceLine';
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _ChartsReferenceLine = require("@mui/x-charts/ChartsReferenceLine");
7
+ Object.keys(_ChartsReferenceLine).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _ChartsReferenceLine[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _ChartsReferenceLine[key];
14
+ }
15
+ });
16
+ });
@@ -0,0 +1 @@
1
+ export * from '@mui/x-charts/ChartsSurface';
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _ChartsSurface = require("@mui/x-charts/ChartsSurface");
7
+ Object.keys(_ChartsSurface).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _ChartsSurface[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _ChartsSurface[key];
14
+ }
15
+ });
16
+ });
@@ -0,0 +1 @@
1
+ export * from '@mui/x-charts/ChartsText';
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _ChartsText = require("@mui/x-charts/ChartsText");
7
+ Object.keys(_ChartsText).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _ChartsText[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _ChartsText[key];
14
+ }
15
+ });
16
+ });
@@ -0,0 +1 @@
1
+ export * from '@mui/x-charts/ChartsTooltip';
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _ChartsTooltip = require("@mui/x-charts/ChartsTooltip");
7
+ Object.keys(_ChartsTooltip).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _ChartsTooltip[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _ChartsTooltip[key];
14
+ }
15
+ });
16
+ });
@@ -0,0 +1 @@
1
+ export * from '@mui/x-charts/ChartsWrapper';
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _ChartsWrapper = require("@mui/x-charts/ChartsWrapper");
7
+ Object.keys(_ChartsWrapper).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _ChartsWrapper[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _ChartsWrapper[key];
14
+ }
15
+ });
16
+ });
@@ -0,0 +1 @@
1
+ export * from '@mui/x-charts/ChartsXAxis';
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _ChartsXAxis = require("@mui/x-charts/ChartsXAxis");
7
+ Object.keys(_ChartsXAxis).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _ChartsXAxis[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _ChartsXAxis[key];
14
+ }
15
+ });
16
+ });
@@ -0,0 +1 @@
1
+ export * from '@mui/x-charts/ChartsYAxis';
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _ChartsYAxis = require("@mui/x-charts/ChartsYAxis");
7
+ Object.keys(_ChartsYAxis).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _ChartsYAxis[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _ChartsYAxis[key];
14
+ }
15
+ });
16
+ });
@@ -8,12 +8,13 @@ import { ChartContainerProProps } from "../ChartContainerPro/index.js";
8
8
  import { FunnelChartSlotExtension } from "./funnelSlots.types.js";
9
9
  import { CategoryAxis } from "./categoryAxis.types.js";
10
10
  import { FunnelChartPluginsSignatures } from "./FunnelChart.plugins.js";
11
+ export type FunnelSeries = MakeOptional<FunnelSeriesType, 'type'>;
11
12
  export interface FunnelChartProps extends Omit<ChartContainerProProps<'funnel', FunnelChartPluginsSignatures>, 'series' | 'plugins' | 'zAxis' | 'zoom' | 'onZoomChange' | 'dataset' | 'yAxis' | 'xAxis' | 'rotationAxis' | 'radiusAxis' | 'slots' | 'slotProps' | 'experimentalFeatures'>, Omit<FunnelPlotProps, 'slots' | 'slotProps'>, Omit<ChartsOverlayProps, 'slots' | 'slotProps'>, FunnelChartSlotExtension {
12
13
  /**
13
14
  * The series to display in the funnel chart.
14
- * An array of [[FunnelSeriesType]] objects.
15
+ * An array of [[FunnelSeries]] objects.
15
16
  */
16
- series: Readonly<MakeOptional<FunnelSeriesType, 'type'>[]>;
17
+ series: Readonly<FunnelSeries[]>;
17
18
  /**
18
19
  * The configuration of the category axis.
19
20
  *
@@ -13,11 +13,11 @@ var _styles = require("@mui/material/styles");
13
13
  var _propTypes = _interopRequireDefault(require("prop-types"));
14
14
  var _ChartsOverlay = require("@mui/x-charts/ChartsOverlay");
15
15
  var _ChartsTooltip = require("@mui/x-charts/ChartsTooltip");
16
- var _internals = require("@mui/x-charts/internals");
17
16
  var _ChartsLegend = require("@mui/x-charts/ChartsLegend");
18
17
  var _ChartsSurface = require("@mui/x-charts/ChartsSurface");
19
18
  var _ChartsAxisHighlight = require("@mui/x-charts/ChartsAxisHighlight");
20
19
  var _ChartsAxis = require("@mui/x-charts/ChartsAxis");
20
+ var _ChartsWrapper = require("@mui/x-charts/ChartsWrapper");
21
21
  var _FunnelPlot = require("./FunnelPlot");
22
22
  var _useFunnelChartProps = require("./useFunnelChartProps");
23
23
  var _seriesConfig = require("./seriesConfig");
@@ -52,7 +52,7 @@ const FunnelChart = exports.FunnelChart = /*#__PURE__*/React.forwardRef(function
52
52
  gap: themedProps.gap,
53
53
  seriesConfig: seriesConfig,
54
54
  plugins: _FunnelChart2.FUNNEL_CHART_PLUGINS,
55
- children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_internals.ChartsWrapper, (0, _extends2.default)({}, chartsWrapperProps, {
55
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_ChartsWrapper.ChartsWrapper, (0, _extends2.default)({}, chartsWrapperProps, {
56
56
  children: [!themedProps.hideLegend && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsLegend.ChartsLegend, (0, _extends2.default)({}, legendProps)), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_ChartsSurface.ChartsSurface, (0, _extends2.default)({}, chartsSurfaceProps, {
57
57
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_FunnelPlot.FunnelPlot, (0, _extends2.default)({}, funnelPlotProps)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsOverlay.ChartsOverlay, (0, _extends2.default)({}, overlayProps)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsAxisHighlight.ChartsAxisHighlight, (0, _extends2.default)({}, axisHighlightProps)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsAxis.ChartsAxis, (0, _extends2.default)({}, chartsAxisProps)), children]
58
58
  })), !themedProps.loading && /*#__PURE__*/(0, _jsxRuntime.jsx)(Tooltip, (0, _extends2.default)({}, themedProps.slotProps?.tooltip, {
@@ -108,6 +108,16 @@ process.env.NODE_ENV !== "production" ? FunnelChart.propTypes = {
108
108
  size: _propTypes.default.number,
109
109
  tickLabelStyle: _propTypes.default.object,
110
110
  tickSize: _propTypes.default.number
111
+ }), _propTypes.default.shape({
112
+ categories: _propTypes.default.arrayOf(_propTypes.default.string),
113
+ disableLine: _propTypes.default.bool,
114
+ disableTicks: _propTypes.default.bool,
115
+ id: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
116
+ position: _propTypes.default.oneOf(['bottom', 'left', 'none', 'right', 'top']),
117
+ scaleType: _propTypes.default.oneOf(['symlog']),
118
+ size: _propTypes.default.number,
119
+ tickLabelStyle: _propTypes.default.object,
120
+ tickSize: _propTypes.default.number
111
121
  }), _propTypes.default.shape({
112
122
  categories: _propTypes.default.arrayOf(_propTypes.default.string),
113
123
  disableLine: _propTypes.default.bool,
@@ -241,7 +251,7 @@ process.env.NODE_ENV !== "production" ? FunnelChart.propTypes = {
241
251
  onItemClick: _propTypes.default.func,
242
252
  /**
243
253
  * The series to display in the funnel chart.
244
- * An array of [[FunnelSeriesType]] objects.
254
+ * An array of [[FunnelSeries]] objects.
245
255
  */
246
256
  series: _propTypes.default.arrayOf(_propTypes.default.object).isRequired,
247
257
  /**
@@ -1,5 +1,5 @@
1
1
  export { FunnelChart as Unstable_FunnelChart } from "./FunnelChart.js";
2
- export type { FunnelChartProps } from "./FunnelChart.js";
2
+ export type { FunnelChartProps, FunnelSeries } from "./FunnelChart.js";
3
3
  export * from "./FunnelPlot.js";
4
4
  export * from "./funnel.types.js";
5
5
  export * from "./categoryAxis.types.js";
@@ -1,8 +1,8 @@
1
1
  import { ChartsOverlayProps } from '@mui/x-charts/ChartsOverlay';
2
2
  import { ChartsAxisProps } from '@mui/x-charts/ChartsAxis';
3
3
  import { ChartsLegendSlotExtension } from '@mui/x-charts/ChartsLegend';
4
- import { ChartsWrapperProps } from '@mui/x-charts/internals';
5
4
  import { ChartsAxisHighlightProps } from '@mui/x-charts/ChartsAxisHighlight';
5
+ import type { ChartsWrapperProps } from '@mui/x-charts/ChartsWrapper';
6
6
  import { FunnelChartPluginsSignatures } from "./FunnelChart.plugins.js";
7
7
  import { FunnelPlotProps } from "./FunnelPlot.js";
8
8
  import type { FunnelChartProps } from "./FunnelChart.js";
@@ -0,0 +1 @@
1
+ export * from '@mui/x-charts/Gauge';
package/Gauge/index.js ADDED
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _Gauge = require("@mui/x-charts/Gauge");
7
+ Object.keys(_Gauge).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _Gauge[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _Gauge[key];
14
+ }
15
+ });
16
+ });
@@ -27,6 +27,7 @@ export interface HeatmapSlots extends ChartsAxisSlots, ChartsOverlaySlots, Heatm
27
27
  export interface HeatmapSlotProps extends ChartsAxisSlotProps, ChartsOverlaySlotProps, HeatmapItemSlotProps, ChartsLegendSlotProps, ChartsToolbarProSlotProps, Partial<ChartsSlotPropsPro> {
28
28
  tooltip?: Partial<HeatmapTooltipProps>;
29
29
  }
30
+ export type HeatmapSeries = MakeOptional<HeatmapSeriesType, 'type'>;
30
31
  export interface HeatmapProps extends Omit<ChartContainerProProps<'heatmap', HeatmapPluginsSignatures>, 'series' | 'plugins' | 'xAxis' | 'yAxis' | 'skipAnimation' | 'slots' | 'slotProps' | 'experimentalFeatures' | 'highlightedAxis' | 'onHighlightedAxisChange'>, Omit<ChartsAxisProps, 'slots' | 'slotProps'>, Omit<ChartsOverlayProps, 'slots' | 'slotProps'> {
31
32
  /**
32
33
  * The configuration of the x-axes.
@@ -42,9 +43,9 @@ export interface HeatmapProps extends Omit<ChartContainerProProps<'heatmap', Hea
42
43
  yAxis: Readonly<Omit<MakeOptional<YAxis<'band'>, 'scaleType'>, 'zoom'>[]>;
43
44
  /**
44
45
  * The series to display in the bar chart.
45
- * An array of [[HeatmapSeriesType]] objects.
46
+ * An array of [[HeatmapSeries]] objects.
46
47
  */
47
- series: Readonly<MakeOptional<HeatmapSeriesType, 'type'>[]>;
48
+ series: Readonly<HeatmapSeries[]>;
48
49
  /**
49
50
  * The configuration of the tooltip.
50
51
  * @see See {@link https://mui.com/x/react-charts/tooltip/ tooltip docs} for more details.
@@ -15,7 +15,7 @@ var _useId = _interopRequireDefault(require("@mui/utils/useId"));
15
15
  var _d3Interpolate = require("@mui/x-charts-vendor/d3-interpolate");
16
16
  var _ChartsAxis = require("@mui/x-charts/ChartsAxis");
17
17
  var _ChartsSurface = require("@mui/x-charts/ChartsSurface");
18
- var _internals = require("@mui/x-charts/internals");
18
+ var _ChartsWrapper = require("@mui/x-charts/ChartsWrapper");
19
19
  var _ChartsClipPath = require("@mui/x-charts/ChartsClipPath");
20
20
  var _ChartsOverlay = require("@mui/x-charts/ChartsOverlay");
21
21
  var _constants = require("@mui/x-charts/constants");
@@ -121,7 +121,7 @@ const Heatmap = exports.Heatmap = /*#__PURE__*/React.forwardRef(function Heatmap
121
121
  onHighlightChange: onHighlightChange,
122
122
  onAxisClick: onAxisClick,
123
123
  plugins: _Heatmap2.HEATMAP_PLUGINS,
124
- children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_internals.ChartsWrapper, (0, _extends2.default)({}, chartsWrapperProps, {
124
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_ChartsWrapper.ChartsWrapper, (0, _extends2.default)({}, chartsWrapperProps, {
125
125
  children: [showToolbar ? /*#__PURE__*/(0, _jsxRuntime.jsx)(Toolbar, (0, _extends2.default)({}, props.slotProps?.toolbar)) : null, !hideLegend && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsLegend.ChartsLegend, {
126
126
  slots: (0, _extends2.default)({}, slots, {
127
127
  legend: slots?.legend ?? _ChartsLegend.ContinuousColorLegend
@@ -246,7 +246,7 @@ process.env.NODE_ENV !== "production" ? Heatmap.propTypes = {
246
246
  onHighlightChange: _propTypes.default.func,
247
247
  /**
248
248
  * The series to display in the bar chart.
249
- * An array of [[HeatmapSeriesType]] objects.
249
+ * An array of [[HeatmapSeries]] objects.
250
250
  */
251
251
  series: _propTypes.default.arrayOf(_propTypes.default.object).isRequired,
252
252
  /**
@@ -1,4 +1,5 @@
1
1
  export { Heatmap } from "./Heatmap.js";
2
+ export type { HeatmapSeries, HeatmapProps } from "./Heatmap.js";
2
3
  export { HeatmapPlot } from "./HeatmapPlot.js";
3
4
  export * from "./HeatmapTooltip/index.js";
4
5
  export * from "./heatmapClasses.js";
@@ -0,0 +1 @@
1
+ export * from '@mui/x-charts/LineChart';
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _LineChart = require("@mui/x-charts/LineChart");
7
+ Object.keys(_LineChart).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _LineChart[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _LineChart[key];
14
+ }
15
+ });
16
+ });