@mui/x-charts-premium 9.4.0 → 9.6.0

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 (136) hide show
  1. package/BarChartPremium/BarChartPremium.js +5 -3
  2. package/BarChartPremium/BarChartPremium.mjs +5 -3
  3. package/BarChartPremium/BarPlotPremium.js +1 -1
  4. package/BarChartPremium/BarPlotPremium.mjs +1 -1
  5. package/BarChartPremium/RangeBar/RangeBarPlot.js +2 -2
  6. package/BarChartPremium/RangeBar/RangeBarPlot.mjs +2 -2
  7. package/BarChartPremium/RangeBar/seriesConfig/getColor.js +2 -5
  8. package/BarChartPremium/RangeBar/seriesConfig/getColor.mjs +2 -5
  9. package/BarChartPremium/webgl/useWebGLBarLikePlotData.d.mts +1 -0
  10. package/BarChartPremium/webgl/useWebGLBarLikePlotData.d.ts +1 -0
  11. package/BarChartPremium/webgl/useWebGLBarLikePlotData.js +66 -7
  12. package/BarChartPremium/webgl/useWebGLBarLikePlotData.mjs +66 -7
  13. package/CHANGELOG.md +251 -0
  14. package/CandlestickChart/CandlestickChart.js +1 -1
  15. package/CandlestickChart/CandlestickChart.mjs +1 -1
  16. package/CandlestickChart/index.d.mts +11 -2
  17. package/CandlestickChart/index.d.ts +11 -2
  18. package/CandlestickChart/index.js +15 -3
  19. package/CandlestickChart/index.mjs +16 -2
  20. package/CandlestickChart/seriesConfig/getColor.js +2 -5
  21. package/CandlestickChart/seriesConfig/getColor.mjs +2 -5
  22. package/ChartsDataProviderPremium/ChartsDataProviderPremium.js +7 -3
  23. package/ChartsDataProviderPremium/ChartsDataProviderPremium.mjs +7 -3
  24. package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.js +11 -3
  25. package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.mjs +11 -3
  26. package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.plugins.d.mts +1 -1
  27. package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.plugins.d.ts +1 -1
  28. package/ChartsRadialDataProviderPremium/ChartsRadialDataProviderPremium.js +11 -3
  29. package/ChartsRadialDataProviderPremium/ChartsRadialDataProviderPremium.mjs +11 -3
  30. package/ChartsRenderer/ChartsRenderer.js +1 -1
  31. package/ChartsRenderer/ChartsRenderer.mjs +1 -1
  32. package/HeatmapPremium/HeatmapPremium.js +5 -3
  33. package/HeatmapPremium/HeatmapPremium.mjs +5 -3
  34. package/Map/GeoDataPlot.js +1 -1
  35. package/Map/GeoDataPlot.mjs +1 -1
  36. package/Map/MapShape.d.mts +3 -0
  37. package/Map/MapShape.d.ts +3 -0
  38. package/Map/MapShape.js +10 -1
  39. package/Map/MapShape.mjs +9 -0
  40. package/Map/MapShapePlot.d.mts +5 -1
  41. package/Map/MapShapePlot.d.ts +5 -1
  42. package/Map/MapShapePlot.js +27 -3
  43. package/Map/MapShapePlot.mjs +28 -4
  44. package/Map/index.d.mts +3 -1
  45. package/Map/index.d.ts +3 -1
  46. package/Map/seriesConfig/getColor.js +4 -9
  47. package/Map/seriesConfig/getColor.mjs +4 -9
  48. package/Map/seriesConfig/index.js +2 -0
  49. package/Map/seriesConfig/index.mjs +2 -0
  50. package/Map/seriesConfig/tooltip.js +5 -1
  51. package/Map/seriesConfig/tooltip.mjs +5 -1
  52. package/Map/seriesConfig/tooltipPosition.d.mts +3 -0
  53. package/Map/seriesConfig/tooltipPosition.d.ts +3 -0
  54. package/Map/seriesConfig/tooltipPosition.js +64 -0
  55. package/Map/seriesConfig/tooltipPosition.mjs +58 -0
  56. package/RadialBarChart/RadialBarChart.d.mts +1 -1
  57. package/RadialBarChart/RadialBarChart.d.ts +1 -1
  58. package/RadialBarChart/RadialBarChart.js +3 -3
  59. package/RadialBarChart/RadialBarChart.mjs +2 -2
  60. package/RadialBarChart/RadialBarPlot.js +1 -1
  61. package/RadialBarChart/RadialBarPlot.mjs +1 -1
  62. package/RadialBarChart/index.d.mts +4 -0
  63. package/RadialBarChart/index.d.ts +4 -0
  64. package/RadialBarChart/index.js +8 -1
  65. package/RadialBarChart/index.mjs +6 -0
  66. package/RadialLineChart/RadialAreaPlot.d.mts +5 -1
  67. package/RadialLineChart/RadialAreaPlot.d.ts +5 -1
  68. package/RadialLineChart/RadialAreaPlot.js +10 -1
  69. package/RadialLineChart/RadialAreaPlot.mjs +11 -2
  70. package/RadialLineChart/RadialLineChart.d.mts +1 -1
  71. package/RadialLineChart/RadialLineChart.d.ts +1 -1
  72. package/RadialLineChart/RadialLineChart.js +5 -5
  73. package/RadialLineChart/RadialLineChart.mjs +6 -6
  74. package/RadialLineChart/RadialLineHighlightElement.d.mts +3 -0
  75. package/RadialLineChart/RadialLineHighlightElement.d.ts +3 -0
  76. package/RadialLineChart/RadialLineHighlightElement.js +10 -1
  77. package/RadialLineChart/RadialLineHighlightElement.mjs +9 -0
  78. package/RadialLineChart/RadialLineHighlightPlot.d.mts +3 -0
  79. package/RadialLineChart/RadialLineHighlightPlot.d.ts +3 -0
  80. package/RadialLineChart/RadialLineHighlightPlot.js +18 -1
  81. package/RadialLineChart/RadialLineHighlightPlot.mjs +17 -0
  82. package/RadialLineChart/RadialLinePlot.d.mts +5 -1
  83. package/RadialLineChart/RadialLinePlot.d.ts +5 -1
  84. package/RadialLineChart/RadialLinePlot.js +10 -1
  85. package/RadialLineChart/RadialLinePlot.mjs +11 -2
  86. package/RadialLineChart/RadialMarkPlot.d.mts +5 -1
  87. package/RadialLineChart/RadialMarkPlot.d.ts +5 -1
  88. package/RadialLineChart/RadialMarkPlot.js +10 -1
  89. package/RadialLineChart/RadialMarkPlot.mjs +11 -2
  90. package/RadialLineChart/index.d.mts +4 -0
  91. package/RadialLineChart/index.d.ts +4 -0
  92. package/RadialLineChart/index.js +16 -1
  93. package/RadialLineChart/index.mjs +6 -0
  94. package/ScatterChartPremium/ScatterChartPremium.js +9 -5
  95. package/ScatterChartPremium/ScatterChartPremium.mjs +10 -6
  96. package/ScatterChartPremium/ScatterChartPremium.plugins.d.mts +1 -1
  97. package/ScatterChartPremium/ScatterChartPremium.plugins.d.ts +1 -1
  98. package/ScatterChartPremium/ScatterPlotPremium.d.mts +20 -4
  99. package/ScatterChartPremium/ScatterPlotPremium.d.ts +20 -4
  100. package/ScatterChartPremium/ScatterPlotPremium.js +34 -1
  101. package/ScatterChartPremium/ScatterPlotPremium.mjs +36 -2
  102. package/ScatterChartPremium/index.d.mts +1 -1
  103. package/ScatterChartPremium/index.d.ts +1 -1
  104. package/context/ChartPremiumApi.d.mts +4 -1
  105. package/context/ChartPremiumApi.d.ts +4 -1
  106. package/hooks/useGeoData.js +1 -1
  107. package/hooks/useGeoData.mjs +2 -2
  108. package/index.d.mts +1 -1
  109. package/index.d.ts +1 -1
  110. package/index.js +8 -1
  111. package/index.mjs +2 -2
  112. package/internals/plugins/allPlugins.d.mts +5 -5
  113. package/internals/plugins/allPlugins.d.ts +5 -5
  114. package/internals/plugins/allPlugins.js +2 -2
  115. package/internals/plugins/allPlugins.mjs +3 -3
  116. package/internals/plugins/useGeoProjection/useGeoProjection.d.mts +1 -1
  117. package/internals/plugins/useGeoProjection/useGeoProjection.d.ts +1 -1
  118. package/internals/plugins/useGeoProjection/useGeoProjection.js +32 -3
  119. package/internals/plugins/useGeoProjection/useGeoProjection.mjs +32 -3
  120. package/internals/plugins/useGeoProjection/useGeoProjection.selectors.d.mts +12 -34
  121. package/internals/plugins/useGeoProjection/useGeoProjection.selectors.d.ts +12 -34
  122. package/internals/plugins/useGeoProjection/useGeoProjection.selectors.js +8 -129
  123. package/internals/plugins/useGeoProjection/useGeoProjection.selectors.mjs +8 -128
  124. package/internals/plugins/useGeoProjection/useGeoProjection.types.d.mts +2 -55
  125. package/internals/plugins/useGeoProjection/useGeoProjection.types.d.ts +2 -55
  126. package/models/seriesType/mapShape.d.mts +1 -1
  127. package/models/seriesType/mapShape.d.ts +1 -1
  128. package/models/seriesType/ohlc.d.mts +1 -1
  129. package/models/seriesType/ohlc.d.ts +1 -1
  130. package/models/seriesType/radialBar.d.mts +1 -1
  131. package/models/seriesType/radialBar.d.ts +1 -1
  132. package/models/seriesType/radialLine.d.mts +1 -1
  133. package/models/seriesType/radialLine.d.ts +1 -1
  134. package/models/seriesType/rangeBar.d.mts +1 -1
  135. package/models/seriesType/rangeBar.d.ts +1 -1
  136. package/package.json +9 -6
package/Map/index.d.ts CHANGED
@@ -1,7 +1,9 @@
1
+ import { type useGeoProjectionTypes } from '@mui/x-charts/internals';
1
2
  export * from "./GeoDataPlot.js";
2
3
  export * from "./MapShapePlot.js";
3
4
  export * from "./MapShape.js";
4
5
  export * from "./FocusedMapShape.js";
5
6
  export * from "./Graticule.js";
6
- export type { D3NamedProjection, GeoProjectionInput } from "../internals/plugins/useGeoProjection/useGeoProjection.types.js";
7
+ export type D3NamedProjection = useGeoProjectionTypes.D3NamedProjection;
8
+ export type GeoProjectionInput = useGeoProjectionTypes.GeoProjectionInput;
7
9
  export type { GeoProjection, ExtendedFeatureCollection } from '@mui/x-charts-vendor/d3-geo';
@@ -12,17 +12,12 @@ const getColor = (series, _mainAxis, _secondaryAxis, zAxis) => {
12
12
  return series.color;
13
13
  }
14
14
  const item = series.data[dataIndex];
15
- if (item === undefined) {
16
- return series.color;
15
+ if (item.color !== undefined) {
16
+ return item.color;
17
17
  }
18
18
  const scaleInput = item.colorValue ?? item.value;
19
- if (scaleInput != null) {
20
- const color = colorScale(scaleInput);
21
- if (color !== null) {
22
- return color;
23
- }
24
- }
25
- return item.color ?? series.color;
19
+ const color = colorScale(scaleInput);
20
+ return color;
26
21
  };
27
22
  }
28
23
  return dataIndex => {
@@ -6,17 +6,12 @@ const getColor = (series, _mainAxis, _secondaryAxis, zAxis) => {
6
6
  return series.color;
7
7
  }
8
8
  const item = series.data[dataIndex];
9
- if (item === undefined) {
10
- return series.color;
9
+ if (item.color !== undefined) {
10
+ return item.color;
11
11
  }
12
12
  const scaleInput = item.colorValue ?? item.value;
13
- if (scaleInput != null) {
14
- const color = colorScale(scaleInput);
15
- if (color !== null) {
16
- return color;
17
- }
18
- }
19
- return item.color ?? series.color;
13
+ const color = colorScale(scaleInput);
14
+ return color;
20
15
  };
21
16
  }
22
17
  return dataIndex => {
@@ -13,11 +13,13 @@ var _tooltip = _interopRequireDefault(require("./tooltip"));
13
13
  var _getSeriesWithDefaultValues = _interopRequireDefault(require("./getSeriesWithDefaultValues"));
14
14
  var _descriptionGetter = _interopRequireDefault(require("./descriptionGetter"));
15
15
  var _keyboardFocusHandler = _interopRequireDefault(require("./keyboardFocusHandler"));
16
+ var _tooltipPosition = _interopRequireDefault(require("./tooltipPosition"));
16
17
  const mapShapeSeriesConfig = exports.mapShapeSeriesConfig = {
17
18
  seriesProcessor: _seriesProcessor.default,
18
19
  colorProcessor: _getColor.default,
19
20
  legendGetter: _legend.default,
20
21
  tooltipGetter: _tooltip.default,
22
+ tooltipItemPositionGetter: _tooltipPosition.default,
21
23
  getSeriesWithDefaultValues: _getSeriesWithDefaultValues.default,
22
24
  keyboardFocusHandler: _keyboardFocusHandler.default,
23
25
  identifierSerializer: _internals.identifierSerializerSeriesIdDataIndex,
@@ -6,11 +6,13 @@ import tooltipGetter from "./tooltip.mjs";
6
6
  import getSeriesWithDefaultValues from "./getSeriesWithDefaultValues.mjs";
7
7
  import descriptionGetter from "./descriptionGetter.mjs";
8
8
  import keyboardFocusHandler from "./keyboardFocusHandler.mjs";
9
+ import tooltipItemPositionGetter from "./tooltipPosition.mjs";
9
10
  export const mapShapeSeriesConfig = {
10
11
  seriesProcessor,
11
12
  colorProcessor: getColor,
12
13
  legendGetter,
13
14
  tooltipGetter,
15
+ tooltipItemPositionGetter,
14
16
  getSeriesWithDefaultValues,
15
17
  keyboardFocusHandler,
16
18
  identifierSerializer: identifierSerializerSeriesIdDataIndex,
@@ -17,13 +17,17 @@ const tooltipGetter = ({
17
17
  if (point == null) {
18
18
  return null;
19
19
  }
20
+ const color = getColor(identifier.dataIndex);
21
+ if (color === null) {
22
+ return null;
23
+ }
20
24
  const label = (0, _internals.getLabel)(point.label ?? point.name, 'tooltip');
21
25
  const formattedValue = series.valueFormatter(point, {
22
26
  dataIndex: identifier.dataIndex
23
27
  });
24
28
  return {
25
29
  identifier,
26
- color: getColor(identifier.dataIndex),
30
+ color,
27
31
  label,
28
32
  value: point,
29
33
  formattedValue,
@@ -11,13 +11,17 @@ const tooltipGetter = ({
11
11
  if (point == null) {
12
12
  return null;
13
13
  }
14
+ const color = getColor(identifier.dataIndex);
15
+ if (color === null) {
16
+ return null;
17
+ }
14
18
  const label = getLabel(point.label ?? point.name, 'tooltip');
15
19
  const formattedValue = series.valueFormatter(point, {
16
20
  dataIndex: identifier.dataIndex
17
21
  });
18
22
  return {
19
23
  identifier,
20
- color: getColor(identifier.dataIndex),
24
+ color,
21
25
  label,
22
26
  value: point,
23
27
  formattedValue,
@@ -0,0 +1,3 @@
1
+ import type { TooltipItemPositionGetter } from '@mui/x-charts/internals';
2
+ declare const tooltipItemPositionGetter: TooltipItemPositionGetter<'mapShape'>;
3
+ export default tooltipItemPositionGetter;
@@ -0,0 +1,3 @@
1
+ import type { TooltipItemPositionGetter } from '@mui/x-charts/internals';
2
+ declare const tooltipItemPositionGetter: TooltipItemPositionGetter<'mapShape'>;
3
+ export default tooltipItemPositionGetter;
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _d3Geo = require("@mui/x-charts-vendor/d3-geo");
8
+ const tooltipItemPositionGetter = params => {
9
+ const {
10
+ series,
11
+ identifier,
12
+ axesConfig,
13
+ placement
14
+ } = params;
15
+ if (!identifier || identifier.dataIndex === undefined) {
16
+ return null;
17
+ }
18
+ const itemSeries = series.mapShape?.series[identifier.seriesId];
19
+ if (itemSeries == null) {
20
+ return null;
21
+ }
22
+ if (axesConfig.geo === undefined) {
23
+ return null;
24
+ }
25
+ const {
26
+ projection,
27
+ geoData,
28
+ featureIndexesByName
29
+ } = axesConfig.geo;
30
+ if (projection == null || geoData == null) {
31
+ return null;
32
+ }
33
+ const featureIndex = featureIndexesByName.get(itemSeries.data[identifier.dataIndex].name)?.[0];
34
+ if (featureIndex === undefined) {
35
+ return null;
36
+ }
37
+ const feature = geoData.features[featureIndex];
38
+ const path = (0, _d3Geo.geoPath)(projection);
39
+ const [[x0, y0], [x1, y1]] = path.bounds(feature);
40
+ switch (placement) {
41
+ case 'right':
42
+ return {
43
+ x: x1,
44
+ y: (y0 + y1) / 2
45
+ };
46
+ case 'bottom':
47
+ return {
48
+ x: (x0 + x1) / 2,
49
+ y: y1
50
+ };
51
+ case 'left':
52
+ return {
53
+ x: x0,
54
+ y: (y0 + y1) / 2
55
+ };
56
+ case 'top':
57
+ default:
58
+ return {
59
+ x: (x0 + x1) / 2,
60
+ y: y0
61
+ };
62
+ }
63
+ };
64
+ var _default = exports.default = tooltipItemPositionGetter;
@@ -0,0 +1,58 @@
1
+ import { geoPath } from '@mui/x-charts-vendor/d3-geo';
2
+ const tooltipItemPositionGetter = params => {
3
+ const {
4
+ series,
5
+ identifier,
6
+ axesConfig,
7
+ placement
8
+ } = params;
9
+ if (!identifier || identifier.dataIndex === undefined) {
10
+ return null;
11
+ }
12
+ const itemSeries = series.mapShape?.series[identifier.seriesId];
13
+ if (itemSeries == null) {
14
+ return null;
15
+ }
16
+ if (axesConfig.geo === undefined) {
17
+ return null;
18
+ }
19
+ const {
20
+ projection,
21
+ geoData,
22
+ featureIndexesByName
23
+ } = axesConfig.geo;
24
+ if (projection == null || geoData == null) {
25
+ return null;
26
+ }
27
+ const featureIndex = featureIndexesByName.get(itemSeries.data[identifier.dataIndex].name)?.[0];
28
+ if (featureIndex === undefined) {
29
+ return null;
30
+ }
31
+ const feature = geoData.features[featureIndex];
32
+ const path = geoPath(projection);
33
+ const [[x0, y0], [x1, y1]] = path.bounds(feature);
34
+ switch (placement) {
35
+ case 'right':
36
+ return {
37
+ x: x1,
38
+ y: (y0 + y1) / 2
39
+ };
40
+ case 'bottom':
41
+ return {
42
+ x: (x0 + x1) / 2,
43
+ y: y1
44
+ };
45
+ case 'left':
46
+ return {
47
+ x: x0,
48
+ y: (y0 + y1) / 2
49
+ };
50
+ case 'top':
51
+ default:
52
+ return {
53
+ x: (x0 + x1) / 2,
54
+ y: y0
55
+ };
56
+ }
57
+ };
58
+ export default tooltipItemPositionGetter;
@@ -64,4 +64,4 @@ export interface RadialBarChartProps extends Omit<ChartsRadialDataProviderPremiu
64
64
  * - [RadialBarChart API](https://mui.com/x/api/charts/radial-bar-chart/)
65
65
  */
66
66
  declare const RadialBarChart: React.ForwardRefExoticComponent<RadialBarChartProps & React.RefAttributes<HTMLDivElement>>;
67
- export { RadialBarChart as Unstable_RadialBarChart };
67
+ export { RadialBarChart };
@@ -64,4 +64,4 @@ export interface RadialBarChartProps extends Omit<ChartsRadialDataProviderPremiu
64
64
  * - [RadialBarChart API](https://mui.com/x/api/charts/radial-bar-chart/)
65
65
  */
66
66
  declare const RadialBarChart: React.ForwardRefExoticComponent<RadialBarChartProps & React.RefAttributes<HTMLDivElement>>;
67
- export { RadialBarChart as Unstable_RadialBarChart };
67
+ export { RadialBarChart };
@@ -6,7 +6,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
6
6
  Object.defineProperty(exports, "__esModule", {
7
7
  value: true
8
8
  });
9
- exports.Unstable_RadialBarChart = void 0;
9
+ exports.RadialBarChart = void 0;
10
10
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
11
  var React = _interopRequireWildcard(require("react"));
12
12
  var _propTypes = _interopRequireDefault(require("prop-types"));
@@ -40,7 +40,7 @@ const seriesConfig = {
40
40
  *
41
41
  * - [RadialBarChart API](https://mui.com/x/api/charts/radial-bar-chart/)
42
42
  */
43
- const RadialBarChart = exports.Unstable_RadialBarChart = /*#__PURE__*/React.forwardRef(function RadialBarChart(inProps, ref) {
43
+ const RadialBarChart = exports.RadialBarChart = /*#__PURE__*/React.forwardRef(function RadialBarChart(inProps, ref) {
44
44
  const props = (0, _styles.useThemeProps)({
45
45
  props: inProps,
46
46
  name: 'MuiRadialBarChart'
@@ -75,7 +75,7 @@ const RadialBarChart = exports.Unstable_RadialBarChart = /*#__PURE__*/React.forw
75
75
  }));
76
76
  });
77
77
  if (process.env.NODE_ENV !== "production") RadialBarChart.displayName = "RadialBarChart";
78
- process.env.NODE_ENV !== "production" ? RadialBarChart.propTypes = {
78
+ process.env.NODE_ENV !== "production" ? RadialBarChart.propTypes /* remove-proptypes */ = {
79
79
  // ----------------------------- Warning --------------------------------
80
80
  // | These PropTypes are generated from the TypeScript type definitions |
81
81
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -68,7 +68,7 @@ const RadialBarChart = /*#__PURE__*/React.forwardRef(function RadialBarChart(inP
68
68
  }));
69
69
  });
70
70
  if (process.env.NODE_ENV !== "production") RadialBarChart.displayName = "RadialBarChart";
71
- process.env.NODE_ENV !== "production" ? RadialBarChart.propTypes = {
71
+ process.env.NODE_ENV !== "production" ? RadialBarChart.propTypes /* remove-proptypes */ = {
72
72
  // ----------------------------- Warning --------------------------------
73
73
  // | These PropTypes are generated from the TypeScript type definitions |
74
74
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -302,4 +302,4 @@ process.env.NODE_ENV !== "production" ? RadialBarChart.propTypes = {
302
302
  */
303
303
  width: PropTypes.number
304
304
  } : void 0;
305
- export { RadialBarChart as Unstable_RadialBarChart };
305
+ export { RadialBarChart };
@@ -73,7 +73,7 @@ function RadialBarPlot(props) {
73
73
  }, seriesId))
74
74
  });
75
75
  }
76
- process.env.NODE_ENV !== "production" ? RadialBarPlot.propTypes = {
76
+ process.env.NODE_ENV !== "production" ? RadialBarPlot.propTypes /* remove-proptypes */ = {
77
77
  // ----------------------------- Warning --------------------------------
78
78
  // | These PropTypes are generated from the TypeScript type definitions |
79
79
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -66,7 +66,7 @@ function RadialBarPlot(props) {
66
66
  }, seriesId))
67
67
  });
68
68
  }
69
- process.env.NODE_ENV !== "production" ? RadialBarPlot.propTypes = {
69
+ process.env.NODE_ENV !== "production" ? RadialBarPlot.propTypes /* remove-proptypes */ = {
70
70
  // ----------------------------- Warning --------------------------------
71
71
  // | These PropTypes are generated from the TypeScript type definitions |
72
72
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -1,3 +1,7 @@
1
1
  export * from "./RadialBarChart.mjs";
2
+ /**
3
+ * @deprecated radial bar chart is now stable, import `RadialBarChart` instead
4
+ */
5
+ export declare const Unstable_RadialBarChart: import("react").ForwardRefExoticComponent<import("./RadialBarChart.mjs").RadialBarChartProps & import("react").RefAttributes<HTMLDivElement>>;
2
6
  export * from "./RadialBarPlot.mjs";
3
7
  export { type RadialBarClasses, type RadialBarClassKey, radialBarClasses } from "./radialBarClasses.mjs";
@@ -1,3 +1,7 @@
1
1
  export * from "./RadialBarChart.js";
2
+ /**
3
+ * @deprecated radial bar chart is now stable, import `RadialBarChart` instead
4
+ */
5
+ export declare const Unstable_RadialBarChart: import("react").ForwardRefExoticComponent<import("./RadialBarChart.js").RadialBarChartProps & import("react").RefAttributes<HTMLDivElement>>;
2
6
  export * from "./RadialBarPlot.js";
3
7
  export { type RadialBarClasses, type RadialBarClassKey, radialBarClasses } from "./radialBarClasses.js";
@@ -4,8 +4,10 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  var _exportNames = {
7
+ Unstable_RadialBarChart: true,
7
8
  radialBarClasses: true
8
9
  };
10
+ exports.Unstable_RadialBarChart = void 0;
9
11
  Object.defineProperty(exports, "radialBarClasses", {
10
12
  enumerable: true,
11
13
  get: function () {
@@ -36,4 +38,9 @@ Object.keys(_RadialBarPlot).forEach(function (key) {
36
38
  }
37
39
  });
38
40
  });
39
- var _radialBarClasses = require("./radialBarClasses");
41
+ var _radialBarClasses = require("./radialBarClasses");
42
+ /**
43
+ * @deprecated radial bar chart is now stable, import `RadialBarChart` instead
44
+ */
45
+ // eslint-disable-next-line @typescript-eslint/naming-convention
46
+ const Unstable_RadialBarChart = exports.Unstable_RadialBarChart = _RadialBarChart.RadialBarChart;
@@ -1,3 +1,9 @@
1
+ import { RadialBarChart } from "./RadialBarChart.mjs";
1
2
  export * from "./RadialBarChart.mjs";
3
+ /**
4
+ * @deprecated radial bar chart is now stable, import `RadialBarChart` instead
5
+ */
6
+ // eslint-disable-next-line @typescript-eslint/naming-convention
7
+ export const Unstable_RadialBarChart = RadialBarChart;
2
8
  export * from "./RadialBarPlot.mjs";
3
9
  export { radialBarClasses } from "./radialBarClasses.mjs";
@@ -2,4 +2,8 @@ import { type RadialLineClasses } from "./radialLineClasses.mjs";
2
2
  export interface RadialAreaPlotProps {
3
3
  classes?: Partial<Pick<RadialLineClasses, 'area' | 'areaPlot'>>;
4
4
  }
5
- export declare function RadialAreaPlot(props: RadialAreaPlotProps): import("react/jsx-runtime").JSX.Element;
5
+ declare function RadialAreaPlot(props: RadialAreaPlotProps): import("react/jsx-runtime").JSX.Element;
6
+ declare namespace RadialAreaPlot {
7
+ var propTypes: any;
8
+ }
9
+ export { RadialAreaPlot };
@@ -2,4 +2,8 @@ import { type RadialLineClasses } from "./radialLineClasses.js";
2
2
  export interface RadialAreaPlotProps {
3
3
  classes?: Partial<Pick<RadialLineClasses, 'area' | 'areaPlot'>>;
4
4
  }
5
- export declare function RadialAreaPlot(props: RadialAreaPlotProps): import("react/jsx-runtime").JSX.Element;
5
+ declare function RadialAreaPlot(props: RadialAreaPlotProps): import("react/jsx-runtime").JSX.Element;
6
+ declare namespace RadialAreaPlot {
7
+ var propTypes: any;
8
+ }
9
+ export { RadialAreaPlot };
@@ -1,10 +1,12 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
6
7
  exports.RadialAreaPlot = RadialAreaPlot;
7
8
  var _styles = require("@mui/material/styles");
9
+ var _propTypes = _interopRequireDefault(require("prop-types"));
8
10
  var _internals = require("@mui/x-charts/internals");
9
11
  var _useRadialLinePlotData = require("./useRadialLinePlotData");
10
12
  var _radialLineClasses = require("./radialLineClasses");
@@ -50,4 +52,11 @@ function RadialAreaPlot(props) {
50
52
  className: classes.area
51
53
  }, seriesId))
52
54
  });
53
- }
55
+ }
56
+ process.env.NODE_ENV !== "production" ? RadialAreaPlot.propTypes /* remove-proptypes */ = {
57
+ // ----------------------------- Warning --------------------------------
58
+ // | These PropTypes are generated from the TypeScript type definitions |
59
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
60
+ // ----------------------------------------------------------------------
61
+ classes: _propTypes.default.object
62
+ } : void 0;
@@ -1,4 +1,5 @@
1
1
  import { styled } from '@mui/material/styles';
2
+ import PropTypes from 'prop-types';
2
3
  import { selectorChartPolarCenter, useChartsContext } from '@mui/x-charts/internals';
3
4
  import { useRadialLinePlotData } from "./useRadialLinePlotData.mjs";
4
5
  import { useUtilityClasses } from "./radialLineClasses.mjs";
@@ -8,7 +9,7 @@ const RadialAreaPlotRoot = styled('g', {
8
9
  name: 'MuiRadialAreaPlot',
9
10
  slot: 'Root'
10
11
  })();
11
- export function RadialAreaPlot(props) {
12
+ function RadialAreaPlot(props) {
12
13
  const {
13
14
  classes: inClasses
14
15
  } = props;
@@ -44,4 +45,12 @@ export function RadialAreaPlot(props) {
44
45
  className: classes.area
45
46
  }, seriesId))
46
47
  });
47
- }
48
+ }
49
+ process.env.NODE_ENV !== "production" ? RadialAreaPlot.propTypes /* remove-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
+ classes: PropTypes.object
55
+ } : void 0;
56
+ export { RadialAreaPlot };
@@ -69,4 +69,4 @@ export interface RadialLineChartProps extends Omit<ChartsRadialDataProviderPremi
69
69
  * - [RadialLineChart API](https://mui.com/x/api/charts/radial-line-chart/)
70
70
  */
71
71
  declare const RadialLineChart: React.ForwardRefExoticComponent<RadialLineChartProps & React.RefAttributes<HTMLDivElement>>;
72
- export { RadialLineChart as Unstable_RadialLineChart };
72
+ export { RadialLineChart };
@@ -69,4 +69,4 @@ export interface RadialLineChartProps extends Omit<ChartsRadialDataProviderPremi
69
69
  * - [RadialLineChart API](https://mui.com/x/api/charts/radial-line-chart/)
70
70
  */
71
71
  declare const RadialLineChart: React.ForwardRefExoticComponent<RadialLineChartProps & React.RefAttributes<HTMLDivElement>>;
72
- export { RadialLineChart as Unstable_RadialLineChart };
72
+ export { RadialLineChart };
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.Unstable_RadialLineChart = void 0;
8
+ exports.RadialLineChart = void 0;
9
9
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
10
10
  var React = _interopRequireWildcard(require("react"));
11
11
  var _propTypes = _interopRequireDefault(require("prop-types"));
@@ -42,7 +42,7 @@ const seriesConfig = {
42
42
  *
43
43
  * - [RadialLineChart API](https://mui.com/x/api/charts/radial-line-chart/)
44
44
  */
45
- const RadialLineChart = exports.Unstable_RadialLineChart = /*#__PURE__*/React.forwardRef(function RadialLineChart(inProps, ref) {
45
+ const RadialLineChart = exports.RadialLineChart = /*#__PURE__*/React.forwardRef(function RadialLineChart(inProps, ref) {
46
46
  const props = (0, _styles.useThemeProps)({
47
47
  props: inProps,
48
48
  name: 'MuiRadialLineChart'
@@ -69,9 +69,9 @@ const RadialLineChart = exports.Unstable_RadialLineChart = /*#__PURE__*/React.fo
69
69
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_ChartsWrapper.ChartsWrapper, (0, _extends2.default)({}, chartsWrapperProps, {
70
70
  ref: ref,
71
71
  children: [props.showToolbar && Toolbar ? /*#__PURE__*/(0, _jsxRuntime.jsx)(Toolbar, (0, _extends2.default)({}, props.slotProps?.toolbar)) : null, !props.hideLegend && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsLegend.ChartsLegend, (0, _extends2.default)({}, legendProps)), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_ChartsSurface.ChartsSurface, (0, _extends2.default)({}, chartsSurfaceProps, {
72
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsRadialGrid.Unstable_ChartsRadialGrid, (0, _extends2.default)({}, gridProps)), /*#__PURE__*/(0, _jsxRuntime.jsxs)("g", (0, _extends2.default)({}, clipPathGroupProps, {
72
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsRadialGrid.ChartsRadialGrid, (0, _extends2.default)({}, gridProps)), /*#__PURE__*/(0, _jsxRuntime.jsxs)("g", (0, _extends2.default)({}, clipPathGroupProps, {
73
73
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_RadialAreaPlot.RadialAreaPlot, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_RadialLinePlot.RadialLinePlot, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsOverlay.ChartsOverlay, (0, _extends2.default)({}, overlayProps))]
74
- })), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsRadialAxisHighlight.Unstable_ChartsRadialAxisHighlight, (0, _extends2.default)({}, axisHighlightProps)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsRotationAxis.Unstable_ChartsRotationAxis, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsRadiusAxis.Unstable_ChartsRadiusAxis, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_RadialMarkPlot.RadialMarkPlot, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_RadialLineHighlightPlot.RadialLineHighlightPlot, {
74
+ })), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsRadialAxisHighlight.ChartsRadialAxisHighlight, (0, _extends2.default)({}, axisHighlightProps)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsRotationAxis.ChartsRotationAxis, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsRadiusAxis.ChartsRadiusAxis, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_RadialMarkPlot.RadialMarkPlot, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_RadialLineHighlightPlot.RadialLineHighlightPlot, {
75
75
  slots: props.slots,
76
76
  slotProps: props.slotProps
77
77
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsClipPath.ChartsClipPath, (0, _extends2.default)({}, clipPathProps)), children]
@@ -80,7 +80,7 @@ const RadialLineChart = exports.Unstable_RadialLineChart = /*#__PURE__*/React.fo
80
80
  }));
81
81
  });
82
82
  if (process.env.NODE_ENV !== "production") RadialLineChart.displayName = "RadialLineChart";
83
- process.env.NODE_ENV !== "production" ? RadialLineChart.propTypes = {
83
+ process.env.NODE_ENV !== "production" ? RadialLineChart.propTypes /* remove-proptypes */ = {
84
84
  // ----------------------------- Warning --------------------------------
85
85
  // | These PropTypes are generated from the TypeScript type definitions |
86
86
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -3,10 +3,10 @@ import * as React from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import { useThemeProps } from '@mui/material/styles';
5
5
  import { useChartsContainerProps } from '@mui/x-charts/internals';
6
- import { Unstable_ChartsRadialGrid as ChartsRadialGrid } from '@mui/x-charts/ChartsRadialGrid';
7
- import { Unstable_ChartsRadialAxisHighlight as ChartsRadialAxisHighlight } from '@mui/x-charts/ChartsRadialAxisHighlight';
8
- import { Unstable_ChartsRadiusAxis as ChartsRadiusAxis } from '@mui/x-charts/ChartsRadiusAxis';
9
- import { Unstable_ChartsRotationAxis as ChartsRotationAxis } from '@mui/x-charts/ChartsRotationAxis';
6
+ import { ChartsRadialGrid } from '@mui/x-charts/ChartsRadialGrid';
7
+ import { ChartsRadialAxisHighlight } from '@mui/x-charts/ChartsRadialAxisHighlight';
8
+ import { ChartsRadiusAxis } from '@mui/x-charts/ChartsRadiusAxis';
9
+ import { ChartsRotationAxis } from '@mui/x-charts/ChartsRotationAxis';
10
10
  import { ChartsLegend } from "../ChartsLegend/index.mjs";
11
11
  import { ChartsSurface } from "../ChartsSurface/index.mjs";
12
12
  import { ChartsTooltip } from "../ChartsTooltip/index.mjs";
@@ -72,7 +72,7 @@ const RadialLineChart = /*#__PURE__*/React.forwardRef(function RadialLineChart(i
72
72
  }));
73
73
  });
74
74
  if (process.env.NODE_ENV !== "production") RadialLineChart.displayName = "RadialLineChart";
75
- process.env.NODE_ENV !== "production" ? RadialLineChart.propTypes = {
75
+ process.env.NODE_ENV !== "production" ? RadialLineChart.propTypes /* remove-proptypes */ = {
76
76
  // ----------------------------- Warning --------------------------------
77
77
  // | These PropTypes are generated from the TypeScript type definitions |
78
78
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -310,4 +310,4 @@ process.env.NODE_ENV !== "production" ? RadialLineChart.propTypes = {
310
310
  */
311
311
  width: PropTypes.number
312
312
  } : void 0;
313
- export { RadialLineChart as Unstable_RadialLineChart };
313
+ export { RadialLineChart };
@@ -12,4 +12,7 @@ export type RadialLineHighlightElementProps = (RadialLineHighlightElementCommonP
12
12
  shape: 'cross' | 'diamond' | 'square' | 'star' | 'triangle' | 'wye';
13
13
  } & Omit<React.SVGProps<SVGPathElement>, 'ref'>);
14
14
  declare function RadialLineHighlightElement(props: RadialLineHighlightElementProps): import("react/jsx-runtime").JSX.Element;
15
+ declare namespace RadialLineHighlightElement {
16
+ var propTypes: any;
17
+ }
15
18
  export { RadialLineHighlightElement };
@@ -12,4 +12,7 @@ export type RadialLineHighlightElementProps = (RadialLineHighlightElementCommonP
12
12
  shape: 'cross' | 'diamond' | 'square' | 'star' | 'triangle' | 'wye';
13
13
  } & Omit<React.SVGProps<SVGPathElement>, 'ref'>);
14
14
  declare function RadialLineHighlightElement(props: RadialLineHighlightElementProps): import("react/jsx-runtime").JSX.Element;
15
+ declare namespace RadialLineHighlightElement {
16
+ var propTypes: any;
17
+ }
15
18
  export { RadialLineHighlightElement };
@@ -9,6 +9,7 @@ exports.RadialLineHighlightElement = RadialLineHighlightElement;
9
9
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
10
10
  var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
11
11
  var React = _interopRequireWildcard(require("react"));
12
+ var _propTypes = _interopRequireDefault(require("prop-types"));
12
13
  var _reactMajor = _interopRequireDefault(require("@mui/x-internals/reactMajor"));
13
14
  var _d3Shape = require("@mui/x-charts-vendor/d3-shape");
14
15
  var _internals = require("@mui/x-charts/internals");
@@ -43,4 +44,12 @@ function RadialLineHighlightElement(props) {
43
44
  transform: `translate(${x} ${y})`,
44
45
  fill: color
45
46
  }, transformOrigin, additionalProps, other));
46
- }
47
+ }
48
+ process.env.NODE_ENV !== "production" ? RadialLineHighlightElement.propTypes /* remove-proptypes */ = {
49
+ // ----------------------------- Warning --------------------------------
50
+ // | These PropTypes are generated from the TypeScript type definitions |
51
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
52
+ // ----------------------------------------------------------------------
53
+ seriesId: _propTypes.default.string.isRequired,
54
+ shape: _propTypes.default.oneOf(['circle', 'cross', 'diamond', 'square', 'star', 'triangle', 'wye']).isRequired
55
+ } : void 0;
@@ -2,6 +2,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
3
  const _excluded = ["x", "y", "seriesId", "color", "shape"];
4
4
  import * as React from 'react';
5
+ import PropTypes from 'prop-types';
5
6
  import reactMajor from '@mui/x-internals/reactMajor';
6
7
  import { symbol as d3Symbol, symbolsFill as d3SymbolsFill } from '@mui/x-charts-vendor/d3-shape';
7
8
  import { getSymbol } from '@mui/x-charts/internals';
@@ -36,4 +37,12 @@ function RadialLineHighlightElement(props) {
36
37
  fill: color
37
38
  }, transformOrigin, additionalProps, other));
38
39
  }
40
+ process.env.NODE_ENV !== "production" ? RadialLineHighlightElement.propTypes /* remove-proptypes */ = {
41
+ // ----------------------------- Warning --------------------------------
42
+ // | These PropTypes are generated from the TypeScript type definitions |
43
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
44
+ // ----------------------------------------------------------------------
45
+ seriesId: PropTypes.string.isRequired,
46
+ shape: PropTypes.oneOf(['circle', 'cross', 'diamond', 'square', 'star', 'triangle', 'wye']).isRequired
47
+ } : void 0;
39
48
  export { RadialLineHighlightElement };
@@ -21,4 +21,7 @@ export interface RadialLineHighlightPlotProps extends React.SVGAttributes<SVGGEl
21
21
  slotProps?: RadialLineHighlightPlotSlotProps;
22
22
  }
23
23
  declare function RadialLineHighlightPlot(props: RadialLineHighlightPlotProps): import("react/jsx-runtime").JSX.Element | null;
24
+ declare namespace RadialLineHighlightPlot {
25
+ var propTypes: any;
26
+ }
24
27
  export { RadialLineHighlightPlot };
@@ -21,4 +21,7 @@ export interface RadialLineHighlightPlotProps extends React.SVGAttributes<SVGGEl
21
21
  slotProps?: RadialLineHighlightPlotSlotProps;
22
22
  }
23
23
  declare function RadialLineHighlightPlot(props: RadialLineHighlightPlotProps): import("react/jsx-runtime").JSX.Element | null;
24
+ declare namespace RadialLineHighlightPlot {
25
+ var propTypes: any;
26
+ }
24
27
  export { RadialLineHighlightPlot };