@mui/x-charts 7.0.0-alpha.1 → 7.0.0-alpha.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 (73) hide show
  1. package/BarChart/index.d.ts +2 -2
  2. package/BarChart/index.js +21 -13
  3. package/CHANGELOG.md +366 -188
  4. package/ChartsTooltip/ChartsAxisTooltipContent.d.ts +1 -1
  5. package/ChartsTooltip/ChartsAxisTooltipContent.js +8 -4
  6. package/ChartsTooltip/ChartsItemTooltipContent.d.ts +1 -1
  7. package/ChartsTooltip/ChartsItemTooltipContent.js +8 -4
  8. package/ChartsTooltip/ChartsTooltip.d.ts +1 -1
  9. package/ChartsTooltip/ChartsTooltip.js +13 -5
  10. package/ChartsTooltip/ChartsTooltipTable.js +3 -3
  11. package/ChartsTooltip/chartsTooltipClasses.d.ts +21 -0
  12. package/ChartsTooltip/chartsTooltipClasses.js +12 -0
  13. package/ChartsTooltip/index.d.ts +1 -0
  14. package/ChartsTooltip/index.js +11 -0
  15. package/ChartsTooltip/utils.d.ts +1 -1
  16. package/ChartsTooltip/utils.js +2 -2
  17. package/LineChart/index.d.ts +5 -5
  18. package/LineChart/index.js +50 -41
  19. package/PieChart/index.d.ts +2 -2
  20. package/PieChart/index.js +20 -18
  21. package/ScatterChart/index.d.ts +3 -3
  22. package/ScatterChart/index.js +31 -19
  23. package/SparkLineChart/index.d.ts +1 -1
  24. package/SparkLineChart/index.js +11 -7
  25. package/esm/BarChart/index.js +2 -2
  26. package/esm/ChartsTooltip/ChartsAxisTooltipContent.js +8 -4
  27. package/esm/ChartsTooltip/ChartsItemTooltipContent.js +8 -4
  28. package/esm/ChartsTooltip/ChartsTooltip.js +15 -7
  29. package/esm/ChartsTooltip/ChartsTooltipTable.js +3 -3
  30. package/esm/ChartsTooltip/chartsTooltipClasses.js +5 -0
  31. package/esm/ChartsTooltip/index.js +2 -1
  32. package/esm/ChartsTooltip/utils.js +1 -1
  33. package/esm/LineChart/index.js +5 -5
  34. package/esm/PieChart/index.js +2 -2
  35. package/esm/ScatterChart/index.js +3 -3
  36. package/esm/SparkLineChart/index.js +1 -1
  37. package/index.js +1 -1
  38. package/legacy/BarChart/index.js +2 -2
  39. package/legacy/ChartsReferenceLine/common.js +3 -4
  40. package/legacy/ChartsTooltip/ChartsAxisTooltipContent.js +8 -4
  41. package/legacy/ChartsTooltip/ChartsItemTooltipContent.js +8 -4
  42. package/legacy/ChartsTooltip/ChartsTooltip.js +20 -12
  43. package/legacy/ChartsTooltip/ChartsTooltipTable.js +7 -8
  44. package/legacy/ChartsTooltip/chartsTooltipClasses.js +5 -0
  45. package/legacy/ChartsTooltip/index.js +2 -1
  46. package/legacy/ChartsTooltip/utils.js +1 -1
  47. package/legacy/LineChart/index.js +5 -5
  48. package/legacy/PieChart/index.js +2 -2
  49. package/legacy/ScatterChart/index.js +3 -3
  50. package/legacy/SparkLineChart/index.js +1 -1
  51. package/legacy/index.js +1 -1
  52. package/legacy/internals/components/AxisSharedComponents.js +5 -6
  53. package/modern/BarChart/index.js +2 -2
  54. package/modern/ChartsTooltip/ChartsAxisTooltipContent.js +8 -4
  55. package/modern/ChartsTooltip/ChartsItemTooltipContent.js +8 -4
  56. package/modern/ChartsTooltip/ChartsTooltip.js +15 -7
  57. package/modern/ChartsTooltip/ChartsTooltipTable.js +3 -3
  58. package/modern/ChartsTooltip/chartsTooltipClasses.js +5 -0
  59. package/modern/ChartsTooltip/index.js +2 -1
  60. package/modern/ChartsTooltip/utils.js +1 -1
  61. package/modern/LineChart/index.js +5 -5
  62. package/modern/PieChart/index.js +2 -2
  63. package/modern/ScatterChart/index.js +3 -3
  64. package/modern/SparkLineChart/index.js +1 -1
  65. package/modern/index.js +1 -1
  66. package/package.json +4 -3
  67. package/themeAugmentation/components.d.ts +1 -0
  68. package/themeAugmentation/overrides.d.ts +2 -0
  69. package/ChartsTooltip/tooltipClasses.d.ts +0 -13
  70. package/ChartsTooltip/tooltipClasses.js +0 -12
  71. package/esm/ChartsTooltip/tooltipClasses.js +0 -5
  72. package/legacy/ChartsTooltip/tooltipClasses.js +0 -5
  73. package/modern/ChartsTooltip/tooltipClasses.js +0 -5
@@ -1 +1,2 @@
1
- export * from './ChartsTooltip';
1
+ export * from './ChartsTooltip';
2
+ export * from './chartsTooltipClasses';
@@ -71,7 +71,7 @@ export function useMouseTracker() {
71
71
  }, [svgRef]);
72
72
  return mousePosition;
73
73
  }
74
- export function getTootipHasData(trigger, displayedData) {
74
+ export function getTooltipHasData(trigger, displayedData) {
75
75
  if (trigger === 'item') {
76
76
  return displayedData !== null;
77
77
  }
@@ -1,8 +1,8 @@
1
- export { LinePlot } from './LinePlot';
2
- export { AreaPlot } from './AreaPlot';
3
- export { MarkPlot } from './MarkPlot';
4
- export { LineHighlightPlot } from './LineHighlightPlot';
5
- export { LineChart } from './LineChart';
1
+ export * from './LinePlot';
2
+ export * from './AreaPlot';
3
+ export * from './MarkPlot';
4
+ export * from './LineHighlightPlot';
5
+ export * from './LineChart';
6
6
  export * from './AreaElement';
7
7
  export * from './LineElement';
8
8
  export * from './MarkElement';
@@ -1,4 +1,4 @@
1
- export { PiePlot } from './PiePlot';
2
- export { PieChart } from './PieChart';
1
+ export * from './PiePlot';
2
+ export * from './PieChart';
3
3
  export * from './PieArc';
4
4
  export * from './PieArcLabel';
@@ -1,3 +1,3 @@
1
- export { ScatterPlot } from './ScatterPlot';
2
- export { ScatterChart } from './ScatterChart';
3
- export { Scatter } from './Scatter';
1
+ export * from './ScatterPlot';
2
+ export * from './ScatterChart';
3
+ export * from './Scatter';
@@ -1 +1 @@
1
- export { SparkLineChart } from './SparkLineChart';
1
+ export * from './SparkLineChart';
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-charts v7.0.0-alpha.1
2
+ * @mui/x-charts v7.0.0-alpha.2
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.1",
3
+ "version": "7.0.0-alpha.2",
4
4
  "description": "The community edition of the charts components (MUI X).",
5
5
  "author": "MUI Team",
6
6
  "main": "./index.js",
@@ -17,6 +17,7 @@
17
17
  "react",
18
18
  "react-component",
19
19
  "mui",
20
+ "mui-x",
20
21
  "material-ui",
21
22
  "material design",
22
23
  "charts"
@@ -27,8 +28,8 @@
27
28
  "directory": "packages/x-charts"
28
29
  },
29
30
  "dependencies": {
30
- "@babel/runtime": "^7.23.2",
31
- "@mui/base": "^5.0.0-beta.22",
31
+ "@babel/runtime": "^7.23.4",
32
+ "@mui/base": "^5.0.0-beta.24",
32
33
  "@react-spring/rafz": "^9.7.3",
33
34
  "@react-spring/web": "^9.7.3",
34
35
  "clsx": "^2.0.0",
@@ -24,6 +24,7 @@ export interface ChartsComponents {
24
24
  };
25
25
  MuiChartsTooltip?: {
26
26
  defaultProps?: ComponentsProps['MuiChartsTooltip'];
27
+ styleOverrides?: ComponentsOverrides['MuiChartsTooltip'];
27
28
  };
28
29
  MuiChartsSurface?: {
29
30
  defaultProps?: ComponentsProps['MuiChartsSurface'];
@@ -2,6 +2,7 @@ import { BarElementClassKey } from '../BarChart/BarElement';
2
2
  import { ChartsAxisClassKey } from '../ChartsAxis';
3
3
  import { ChartsAxisHighlightClassKey } from '../ChartsAxisHighlight';
4
4
  import { ChartsLegendClassKey } from '../ChartsLegend';
5
+ import { ChartsTooltipClassKey } from '../ChartsTooltip';
5
6
  import { AreaElementClassKey, LineElementClassKey, MarkElementClassKey } from '../LineChart';
6
7
 
7
8
  // prettier-ignore
@@ -9,6 +10,7 @@ export interface PickersComponentNameToClassKey {
9
10
  MuiChartsAxis: ChartsAxisClassKey;
10
11
  MuiChartsAxisHighlight: ChartsAxisHighlightClassKey;
11
12
  MuiChartsLegend: ChartsLegendClassKey;
13
+ MuiChartsTooltip: ChartsTooltipClassKey;
12
14
 
13
15
  // BarChart components
14
16
  MuiBarElement: BarElementClassKey;
@@ -1,13 +0,0 @@
1
- export interface ChartsTooltipClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the markCell element. */
5
- markCell: string;
6
- /** Styles applied to the labelCell element. */
7
- labelCell: string;
8
- /** Styles applied to the valueCell element. */
9
- valueCell: string;
10
- }
11
- export type ChartsTooltipClassKey = keyof ChartsTooltipClasses;
12
- export declare function getTooltipUtilityClass(slot: string): string;
13
- export declare const tooltipClasses: ChartsTooltipClasses;
@@ -1,12 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.getTooltipUtilityClass = getTooltipUtilityClass;
7
- exports.tooltipClasses = void 0;
8
- var _utils = require("@mui/utils");
9
- function getTooltipUtilityClass(slot) {
10
- return (0, _utils.unstable_generateUtilityClass)('MuiChartsTooltip', slot);
11
- }
12
- const tooltipClasses = exports.tooltipClasses = (0, _utils.unstable_generateUtilityClasses)('MuiChartsTooltip', ['root', 'markCell', 'labelCell', 'valueCell']);
@@ -1,5 +0,0 @@
1
- import { unstable_generateUtilityClass as generateUtilityClass, unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';
2
- export function getTooltipUtilityClass(slot) {
3
- return generateUtilityClass('MuiChartsTooltip', slot);
4
- }
5
- export const tooltipClasses = generateUtilityClasses('MuiChartsTooltip', ['root', 'markCell', 'labelCell', 'valueCell']);
@@ -1,5 +0,0 @@
1
- import { unstable_generateUtilityClass as generateUtilityClass, unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';
2
- export function getTooltipUtilityClass(slot) {
3
- return generateUtilityClass('MuiChartsTooltip', slot);
4
- }
5
- export var tooltipClasses = generateUtilityClasses('MuiChartsTooltip', ['root', 'markCell', 'labelCell', 'valueCell']);
@@ -1,5 +0,0 @@
1
- import { unstable_generateUtilityClass as generateUtilityClass, unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';
2
- export function getTooltipUtilityClass(slot) {
3
- return generateUtilityClass('MuiChartsTooltip', slot);
4
- }
5
- export const tooltipClasses = generateUtilityClasses('MuiChartsTooltip', ['root', 'markCell', 'labelCell', 'valueCell']);