@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.
- package/BarChart/index.d.ts +2 -2
- package/BarChart/index.js +21 -13
- package/CHANGELOG.md +366 -188
- package/ChartsTooltip/ChartsAxisTooltipContent.d.ts +1 -1
- package/ChartsTooltip/ChartsAxisTooltipContent.js +8 -4
- package/ChartsTooltip/ChartsItemTooltipContent.d.ts +1 -1
- package/ChartsTooltip/ChartsItemTooltipContent.js +8 -4
- package/ChartsTooltip/ChartsTooltip.d.ts +1 -1
- package/ChartsTooltip/ChartsTooltip.js +13 -5
- package/ChartsTooltip/ChartsTooltipTable.js +3 -3
- package/ChartsTooltip/chartsTooltipClasses.d.ts +21 -0
- package/ChartsTooltip/chartsTooltipClasses.js +12 -0
- package/ChartsTooltip/index.d.ts +1 -0
- package/ChartsTooltip/index.js +11 -0
- package/ChartsTooltip/utils.d.ts +1 -1
- package/ChartsTooltip/utils.js +2 -2
- package/LineChart/index.d.ts +5 -5
- package/LineChart/index.js +50 -41
- package/PieChart/index.d.ts +2 -2
- package/PieChart/index.js +20 -18
- package/ScatterChart/index.d.ts +3 -3
- package/ScatterChart/index.js +31 -19
- package/SparkLineChart/index.d.ts +1 -1
- package/SparkLineChart/index.js +11 -7
- package/esm/BarChart/index.js +2 -2
- package/esm/ChartsTooltip/ChartsAxisTooltipContent.js +8 -4
- package/esm/ChartsTooltip/ChartsItemTooltipContent.js +8 -4
- package/esm/ChartsTooltip/ChartsTooltip.js +15 -7
- package/esm/ChartsTooltip/ChartsTooltipTable.js +3 -3
- package/esm/ChartsTooltip/chartsTooltipClasses.js +5 -0
- package/esm/ChartsTooltip/index.js +2 -1
- package/esm/ChartsTooltip/utils.js +1 -1
- package/esm/LineChart/index.js +5 -5
- package/esm/PieChart/index.js +2 -2
- package/esm/ScatterChart/index.js +3 -3
- package/esm/SparkLineChart/index.js +1 -1
- package/index.js +1 -1
- package/legacy/BarChart/index.js +2 -2
- package/legacy/ChartsReferenceLine/common.js +3 -4
- package/legacy/ChartsTooltip/ChartsAxisTooltipContent.js +8 -4
- package/legacy/ChartsTooltip/ChartsItemTooltipContent.js +8 -4
- package/legacy/ChartsTooltip/ChartsTooltip.js +20 -12
- package/legacy/ChartsTooltip/ChartsTooltipTable.js +7 -8
- package/legacy/ChartsTooltip/chartsTooltipClasses.js +5 -0
- package/legacy/ChartsTooltip/index.js +2 -1
- package/legacy/ChartsTooltip/utils.js +1 -1
- package/legacy/LineChart/index.js +5 -5
- package/legacy/PieChart/index.js +2 -2
- package/legacy/ScatterChart/index.js +3 -3
- package/legacy/SparkLineChart/index.js +1 -1
- package/legacy/index.js +1 -1
- package/legacy/internals/components/AxisSharedComponents.js +5 -6
- package/modern/BarChart/index.js +2 -2
- package/modern/ChartsTooltip/ChartsAxisTooltipContent.js +8 -4
- package/modern/ChartsTooltip/ChartsItemTooltipContent.js +8 -4
- package/modern/ChartsTooltip/ChartsTooltip.js +15 -7
- package/modern/ChartsTooltip/ChartsTooltipTable.js +3 -3
- package/modern/ChartsTooltip/chartsTooltipClasses.js +5 -0
- package/modern/ChartsTooltip/index.js +2 -1
- package/modern/ChartsTooltip/utils.js +1 -1
- package/modern/LineChart/index.js +5 -5
- package/modern/PieChart/index.js +2 -2
- package/modern/ScatterChart/index.js +3 -3
- package/modern/SparkLineChart/index.js +1 -1
- package/modern/index.js +1 -1
- package/package.json +4 -3
- package/themeAugmentation/components.d.ts +1 -0
- package/themeAugmentation/overrides.d.ts +2 -0
- package/ChartsTooltip/tooltipClasses.d.ts +0 -13
- package/ChartsTooltip/tooltipClasses.js +0 -12
- package/esm/ChartsTooltip/tooltipClasses.js +0 -5
- package/legacy/ChartsTooltip/tooltipClasses.js +0 -5
- 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
|
|
74
|
+
export function getTooltipHasData(trigger, displayedData) {
|
|
75
75
|
if (trigger === 'item') {
|
|
76
76
|
return displayedData !== null;
|
|
77
77
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
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';
|
package/modern/PieChart/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
1
|
+
export * from './ScatterPlot';
|
|
2
|
+
export * from './ScatterChart';
|
|
3
|
+
export * from './Scatter';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from './SparkLineChart';
|
package/modern/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-charts",
|
|
3
|
-
"version": "7.0.0-alpha.
|
|
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.
|
|
31
|
-
"@mui/base": "^5.0.0-beta.
|
|
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']);
|