@mui/x-charts 7.0.0-alpha.9 → 7.0.0-beta.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 (62) hide show
  1. package/BarChart/BarChart.js +1 -19
  2. package/CHANGELOG.md +139 -38
  3. package/ChartContainer/ChartContainer.d.ts +12 -0
  4. package/ChartContainer/ChartContainer.js +197 -0
  5. package/ChartContainer/index.d.ts +1 -11
  6. package/ChartContainer/index.js +9 -63
  7. package/ChartsTooltip/ChartsAxisTooltipContent.js +2 -54
  8. package/ChartsTooltip/ChartsItemTooltipContent.js +1 -11
  9. package/ChartsTooltip/DefaultChartsAxisTooltipContent.js +2 -54
  10. package/ChartsTooltip/DefaultChartsItemTooltipContent.js +1 -11
  11. package/LineChart/LineChart.js +1 -23
  12. package/PieChart/PieChart.js +1 -46
  13. package/README.md +2 -2
  14. package/ResponsiveChartContainer/ResponsiveChartContainer.d.ts +16 -0
  15. package/ResponsiveChartContainer/ResponsiveChartContainer.js +250 -0
  16. package/ResponsiveChartContainer/index.d.ts +1 -15
  17. package/ResponsiveChartContainer/index.js +8 -113
  18. package/ScatterChart/Scatter.js +1 -20
  19. package/ScatterChart/ScatterChart.js +1 -20
  20. package/esm/BarChart/BarChart.js +1 -19
  21. package/esm/ChartContainer/ChartContainer.js +189 -0
  22. package/esm/ChartContainer/index.js +1 -61
  23. package/esm/ChartsTooltip/ChartsAxisTooltipContent.js +2 -54
  24. package/esm/ChartsTooltip/ChartsItemTooltipContent.js +1 -11
  25. package/esm/ChartsTooltip/DefaultChartsAxisTooltipContent.js +2 -54
  26. package/esm/ChartsTooltip/DefaultChartsItemTooltipContent.js +1 -11
  27. package/esm/LineChart/LineChart.js +1 -23
  28. package/esm/PieChart/PieChart.js +1 -46
  29. package/esm/ResponsiveChartContainer/ResponsiveChartContainer.js +245 -0
  30. package/esm/ResponsiveChartContainer/index.js +1 -115
  31. package/esm/ScatterChart/Scatter.js +1 -20
  32. package/esm/ScatterChart/ScatterChart.js +1 -20
  33. package/index.js +1 -1
  34. package/legacy/BarChart/BarChart.js +1 -19
  35. package/legacy/ChartContainer/ChartContainer.js +187 -0
  36. package/legacy/ChartContainer/index.js +1 -59
  37. package/legacy/ChartsTooltip/ChartsAxisTooltipContent.js +2 -54
  38. package/legacy/ChartsTooltip/ChartsItemTooltipContent.js +1 -11
  39. package/legacy/ChartsTooltip/DefaultChartsAxisTooltipContent.js +2 -54
  40. package/legacy/ChartsTooltip/DefaultChartsItemTooltipContent.js +1 -11
  41. package/legacy/LineChart/LineChart.js +1 -23
  42. package/legacy/PieChart/PieChart.js +1 -46
  43. package/legacy/ResponsiveChartContainer/ResponsiveChartContainer.js +253 -0
  44. package/legacy/ResponsiveChartContainer/index.js +1 -123
  45. package/legacy/ScatterChart/Scatter.js +1 -20
  46. package/legacy/ScatterChart/ScatterChart.js +1 -20
  47. package/legacy/index.js +1 -1
  48. package/modern/BarChart/BarChart.js +1 -19
  49. package/modern/ChartContainer/ChartContainer.js +189 -0
  50. package/modern/ChartContainer/index.js +1 -61
  51. package/modern/ChartsTooltip/ChartsAxisTooltipContent.js +2 -54
  52. package/modern/ChartsTooltip/ChartsItemTooltipContent.js +1 -11
  53. package/modern/ChartsTooltip/DefaultChartsAxisTooltipContent.js +2 -54
  54. package/modern/ChartsTooltip/DefaultChartsItemTooltipContent.js +1 -11
  55. package/modern/LineChart/LineChart.js +1 -23
  56. package/modern/PieChart/PieChart.js +1 -46
  57. package/modern/ResponsiveChartContainer/ResponsiveChartContainer.js +242 -0
  58. package/modern/ResponsiveChartContainer/index.js +1 -112
  59. package/modern/ScatterChart/Scatter.js +1 -20
  60. package/modern/ScatterChart/ScatterChart.js +1 -20
  61. package/modern/index.js +1 -1
  62. package/package.json +4 -4
@@ -85,26 +85,7 @@ process.env.NODE_ENV !== "production" ? Scatter.propTypes = {
85
85
  // ----------------------------------------------------------------------
86
86
  color: PropTypes.string.isRequired,
87
87
  markerSize: PropTypes.number.isRequired,
88
- series: PropTypes.shape({
89
- color: PropTypes.string.isRequired,
90
- data: PropTypes.arrayOf(PropTypes.shape({
91
- id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
92
- x: PropTypes.number.isRequired,
93
- y: PropTypes.number.isRequired
94
- })).isRequired,
95
- disableHover: PropTypes.bool,
96
- highlightScope: PropTypes.shape({
97
- faded: PropTypes.oneOf(['global', 'none', 'series']),
98
- highlighted: PropTypes.oneOf(['item', 'none', 'series'])
99
- }),
100
- id: PropTypes.string.isRequired,
101
- label: PropTypes.string,
102
- markerSize: PropTypes.number,
103
- type: PropTypes.oneOf(['scatter']).isRequired,
104
- valueFormatter: PropTypes.func.isRequired,
105
- xAxisKey: PropTypes.string,
106
- yAxisKey: PropTypes.string
107
- }).isRequired,
88
+ series: PropTypes.object.isRequired,
108
89
  xScale: PropTypes.func.isRequired,
109
90
  yScale: PropTypes.func.isRequired
110
91
  } : void 0;
@@ -222,26 +222,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
222
222
  tickNumber: PropTypes.number,
223
223
  tickSize: PropTypes.number
224
224
  }), PropTypes.string]),
225
- series: PropTypes.arrayOf(PropTypes.shape({
226
- color: PropTypes.string,
227
- data: PropTypes.arrayOf(PropTypes.shape({
228
- id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
229
- x: PropTypes.number.isRequired,
230
- y: PropTypes.number.isRequired
231
- })).isRequired,
232
- disableHover: PropTypes.bool,
233
- highlightScope: PropTypes.shape({
234
- faded: PropTypes.oneOf(['global', 'none', 'series']),
235
- highlighted: PropTypes.oneOf(['item', 'none', 'series'])
236
- }),
237
- id: PropTypes.string,
238
- label: PropTypes.string,
239
- markerSize: PropTypes.number,
240
- type: PropTypes.oneOf(['scatter']),
241
- valueFormatter: PropTypes.func,
242
- xAxisKey: PropTypes.string,
243
- yAxisKey: PropTypes.string
244
- })).isRequired,
225
+ series: PropTypes.arrayOf(PropTypes.object).isRequired,
245
226
  /**
246
227
  * The props used for each component slot.
247
228
  * @default {}
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-charts v7.0.0-alpha.9
2
+ * @mui/x-charts v7.0.0-beta.0
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-charts",
3
- "version": "7.0.0-alpha.9",
3
+ "version": "7.0.0-beta.0",
4
4
  "description": "The community edition of the charts components (MUI X).",
5
5
  "author": "MUI Team",
6
6
  "main": "./index.js",
@@ -29,9 +29,9 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@babel/runtime": "^7.23.8",
32
- "@mui/base": "^5.0.0-beta.32",
33
- "@mui/system": "^5.15.5",
34
- "@mui/utils": "^5.15.5",
32
+ "@mui/base": "^5.0.0-beta.33",
33
+ "@mui/system": "^5.15.6",
34
+ "@mui/utils": "^5.15.6",
35
35
  "@react-spring/rafz": "^9.7.3",
36
36
  "@react-spring/web": "^9.7.3",
37
37
  "clsx": "^2.1.0",