@mui/x-charts-pro 9.0.0-alpha.3 → 9.0.0-alpha.4
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/BarChartPro/BarChartPro.d.mts +2 -2
- package/BarChartPro/BarChartPro.d.ts +2 -2
- package/BarChartPro/BarChartPro.js +38 -8
- package/BarChartPro/BarChartPro.mjs +38 -8
- package/CHANGELOG.md +123 -0
- package/ChartsContainerPro/ChartsContainerPro.js +2 -2
- package/ChartsContainerPro/ChartsContainerPro.mjs +2 -2
- package/ChartsContainerPro/useChartsContainerProProps.d.mts +2 -2
- package/ChartsContainerPro/useChartsContainerProProps.d.ts +2 -2
- package/ChartsContainerPro/useChartsContainerProProps.js +3 -3
- package/ChartsContainerPro/useChartsContainerProProps.mjs +3 -3
- package/ChartsDataProviderPro/ChartsDataProviderPro.js +2 -8
- package/ChartsDataProviderPro/ChartsDataProviderPro.mjs +2 -8
- package/ChartsToolbarPro/ChartsToolbarPro.js +1 -1
- package/ChartsToolbarPro/ChartsToolbarPro.mjs +2 -2
- package/ChartsToolbarPro/ChartsToolbarZoomInTrigger.js +1 -1
- package/ChartsToolbarPro/ChartsToolbarZoomInTrigger.mjs +2 -2
- package/ChartsToolbarPro/ChartsToolbarZoomOutTrigger.js +1 -1
- package/ChartsToolbarPro/ChartsToolbarZoomOutTrigger.mjs +2 -2
- package/ChartsToolbarPro/index.d.mts +2 -1
- package/ChartsToolbarPro/index.d.ts +2 -1
- package/ChartsToolbarPro/index.mjs +2 -1
- package/ChartsZoomSlider/internals/ChartsAxisZoomSliderActiveTrack.js +1 -1
- package/ChartsZoomSlider/internals/ChartsAxisZoomSliderActiveTrack.mjs +2 -2
- package/ChartsZoomSlider/internals/ChartsAxisZoomSliderTrack.js +1 -1
- package/ChartsZoomSlider/internals/ChartsAxisZoomSliderTrack.mjs +2 -2
- package/FunnelChart/FunnelChart.d.mts +2 -2
- package/FunnelChart/FunnelChart.d.ts +2 -2
- package/FunnelChart/FunnelChart.js +18 -6
- package/FunnelChart/FunnelChart.mjs +18 -6
- package/FunnelChart/FunnelPlot.js +8 -3
- package/FunnelChart/FunnelPlot.mjs +8 -3
- package/FunnelChart/FunnelSection.d.mts +3 -3
- package/FunnelChart/FunnelSection.d.ts +3 -3
- package/FunnelChart/FunnelSection.js +5 -5
- package/FunnelChart/FunnelSection.mjs +4 -4
- package/FunnelChart/FunnelSectionLabel.d.mts +9 -3
- package/FunnelChart/FunnelSectionLabel.d.ts +9 -3
- package/FunnelChart/FunnelSectionLabel.js +15 -6
- package/FunnelChart/FunnelSectionLabel.mjs +15 -6
- package/FunnelChart/funnelClasses.d.mts +29 -0
- package/FunnelChart/funnelClasses.d.ts +29 -0
- package/FunnelChart/funnelClasses.js +29 -0
- package/FunnelChart/funnelClasses.mjs +19 -0
- package/FunnelChart/index.d.mts +2 -2
- package/FunnelChart/index.d.ts +2 -2
- package/FunnelChart/index.js +4 -4
- package/FunnelChart/index.mjs +1 -1
- package/FunnelChart/seriesConfig/legend.js +0 -2
- package/FunnelChart/seriesConfig/legend.mjs +0 -2
- package/FunnelChart/useFunnelChartProps.d.mts +2 -2
- package/FunnelChart/useFunnelChartProps.d.ts +2 -2
- package/FunnelChart/useFunnelChartProps.js +2 -2
- package/FunnelChart/useFunnelChartProps.mjs +2 -2
- package/Heatmap/Heatmap.d.mts +2 -11
- package/Heatmap/Heatmap.d.ts +2 -11
- package/Heatmap/Heatmap.js +20 -15
- package/Heatmap/Heatmap.mjs +20 -15
- package/Heatmap/HeatmapCell.d.mts +33 -0
- package/Heatmap/HeatmapCell.d.ts +33 -0
- package/Heatmap/HeatmapCell.js +62 -0
- package/Heatmap/HeatmapCell.mjs +55 -0
- package/Heatmap/HeatmapItem.d.mts +1 -9
- package/Heatmap/HeatmapItem.d.ts +1 -9
- package/Heatmap/HeatmapItem.js +5 -22
- package/Heatmap/HeatmapItem.mjs +5 -22
- package/Heatmap/HeatmapSVGPlot.js +10 -3
- package/Heatmap/HeatmapSVGPlot.mjs +10 -3
- package/Heatmap/HeatmapTooltip/HeatmapTooltip.classes.js +2 -2
- package/Heatmap/HeatmapTooltip/HeatmapTooltip.classes.mjs +1 -1
- package/Heatmap/heatmapClasses.d.mts +6 -1
- package/Heatmap/heatmapClasses.d.ts +6 -1
- package/Heatmap/heatmapClasses.js +18 -3
- package/Heatmap/heatmapClasses.mjs +16 -2
- package/Heatmap/index.d.mts +4 -2
- package/Heatmap/index.d.ts +4 -2
- package/Heatmap/index.js +17 -13
- package/Heatmap/index.mjs +2 -1
- package/Heatmap/shouldRegisterPointerInteractionsGlobally.js +1 -1
- package/Heatmap/shouldRegisterPointerInteractionsGlobally.mjs +1 -1
- package/Heatmap/useHeatmapProps.d.mts +2 -2
- package/Heatmap/useHeatmapProps.d.ts +2 -2
- package/Heatmap/useHeatmapProps.js +2 -4
- package/Heatmap/useHeatmapProps.mjs +2 -4
- package/LineChartPro/LineChartPro.d.mts +2 -2
- package/LineChartPro/LineChartPro.d.ts +2 -2
- package/LineChartPro/LineChartPro.js +35 -11
- package/LineChartPro/LineChartPro.mjs +35 -11
- package/PieChartPro/PieChartPro.d.mts +2 -2
- package/PieChartPro/PieChartPro.d.ts +2 -2
- package/PieChartPro/PieChartPro.js +17 -5
- package/PieChartPro/PieChartPro.mjs +17 -5
- package/RadarChartPro/RadarChartPro.d.mts +1 -1
- package/RadarChartPro/RadarChartPro.d.ts +1 -1
- package/RadarChartPro/RadarChartPro.js +15 -0
- package/RadarChartPro/RadarChartPro.mjs +15 -0
- package/SankeyChart/SankeyChart.d.mts +2 -2
- package/SankeyChart/SankeyChart.d.ts +2 -2
- package/SankeyChart/SankeyChart.js +16 -10
- package/SankeyChart/SankeyChart.mjs +16 -10
- package/SankeyChart/SankeyDataProvider.d.mts +2 -2
- package/SankeyChart/SankeyDataProvider.d.ts +2 -2
- package/SankeyChart/SankeyDataProvider.js +2 -2
- package/SankeyChart/SankeyDataProvider.mjs +2 -2
- package/SankeyChart/SankeyLinkElement.js +3 -0
- package/SankeyChart/SankeyLinkElement.mjs +3 -0
- package/SankeyChart/SankeyLinkLabel.js +3 -0
- package/SankeyChart/SankeyLinkLabel.mjs +3 -0
- package/SankeyChart/SankeyLinkLabelPlot.d.mts +2 -2
- package/SankeyChart/SankeyLinkLabelPlot.d.ts +2 -2
- package/SankeyChart/SankeyLinkLabelPlot.js +1 -1
- package/SankeyChart/SankeyLinkLabelPlot.mjs +1 -1
- package/SankeyChart/SankeyLinkPlot.d.mts +2 -2
- package/SankeyChart/SankeyLinkPlot.d.ts +2 -2
- package/SankeyChart/SankeyLinkPlot.js +1 -1
- package/SankeyChart/SankeyLinkPlot.mjs +1 -1
- package/SankeyChart/SankeyNodeElement.d.mts +1 -1
- package/SankeyChart/SankeyNodeElement.d.ts +1 -1
- package/SankeyChart/SankeyNodeElement.js +16 -15
- package/SankeyChart/SankeyNodeElement.mjs +16 -15
- package/SankeyChart/SankeyNodeLabel.js +3 -0
- package/SankeyChart/SankeyNodeLabel.mjs +3 -0
- package/SankeyChart/SankeyNodeLabelPlot.d.mts +2 -2
- package/SankeyChart/SankeyNodeLabelPlot.d.ts +2 -2
- package/SankeyChart/SankeyNodeLabelPlot.js +1 -1
- package/SankeyChart/SankeyNodeLabelPlot.mjs +1 -1
- package/SankeyChart/SankeyNodePlot.d.mts +2 -2
- package/SankeyChart/SankeyNodePlot.d.ts +2 -2
- package/SankeyChart/SankeyNodePlot.js +1 -1
- package/SankeyChart/SankeyNodePlot.mjs +1 -1
- package/SankeyChart/SankeyPlot.d.mts +2 -2
- package/SankeyChart/SankeyPlot.d.ts +2 -2
- package/SankeyChart/SankeyPlot.js +3 -3
- package/SankeyChart/SankeyPlot.mjs +3 -3
- package/SankeyChart/SankeyTooltip/SankeyTooltip.classes.js +2 -2
- package/SankeyChart/SankeyTooltip/SankeyTooltip.classes.mjs +1 -1
- package/SankeyChart/index.d.mts +2 -1
- package/SankeyChart/index.d.ts +2 -1
- package/SankeyChart/index.js +3 -3
- package/SankeyChart/index.mjs +1 -1
- package/SankeyChart/sankeyClasses.d.mts +15 -6
- package/SankeyChart/sankeyClasses.d.ts +15 -6
- package/SankeyChart/sankeyClasses.js +12 -8
- package/SankeyChart/sankeyClasses.mjs +10 -6
- package/SankeyChart/useSankeyChartProps.d.mts +2 -2
- package/SankeyChart/useSankeyChartProps.d.ts +2 -2
- package/SankeyChart/useSankeyChartProps.js +2 -2
- package/SankeyChart/useSankeyChartProps.mjs +2 -2
- package/ScatterChartPro/ScatterChartPro.d.mts +2 -2
- package/ScatterChartPro/ScatterChartPro.d.ts +2 -2
- package/ScatterChartPro/ScatterChartPro.js +57 -15
- package/ScatterChartPro/ScatterChartPro.mjs +57 -15
- package/context/useChartProApiContext.d.mts +1 -1
- package/context/useChartProApiContext.d.ts +1 -1
- package/context/useChartProApiContext.js +1 -1
- package/context/useChartProApiContext.mjs +1 -1
- package/index.d.mts +0 -4
- package/index.d.ts +0 -4
- package/index.js +2 -34
- package/index.mjs +1 -4
- package/internals/index.d.mts +0 -1
- package/internals/index.d.ts +0 -1
- package/internals/index.js +0 -8
- package/internals/index.mjs +0 -1
- package/internals/plugins/useChartProExport/common.js +4 -8
- package/internals/plugins/useChartProExport/common.mjs +4 -8
- package/internals/plugins/useChartProZoom/ZoomInteractionConfig.types.d.mts +1 -1
- package/internals/plugins/useChartProZoom/ZoomInteractionConfig.types.d.ts +1 -1
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnBrush.js +16 -1
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnBrush.mjs +16 -1
- package/package.json +129 -185
- package/themeAugmentation/components.d.mts +19 -1
- package/themeAugmentation/components.d.ts +19 -1
- package/themeAugmentation/overrides.d.mts +5 -2
- package/themeAugmentation/overrides.d.ts +5 -2
- package/themeAugmentation/props.d.mts +8 -0
- package/themeAugmentation/props.d.ts +8 -0
- package/ChartContainer/index.d.mts +0 -1
- package/ChartContainer/index.d.ts +0 -1
- package/ChartContainer/index.js +0 -16
- package/ChartContainer/index.mjs +0 -2
- package/ChartContainerPro/ChartContainerPro.d.mts +0 -21
- package/ChartContainerPro/ChartContainerPro.d.ts +0 -21
- package/ChartContainerPro/ChartContainerPro.js +0 -24
- package/ChartContainerPro/ChartContainerPro.mjs +0 -20
- package/ChartContainerPro/index.d.mts +0 -9
- package/ChartContainerPro/index.d.ts +0 -9
- package/ChartContainerPro/index.js +0 -17
- package/ChartContainerPro/index.mjs +0 -6
- package/ChartContainerPro/useChartContainerProProps.d.mts +0 -12
- package/ChartContainerPro/useChartContainerProProps.d.ts +0 -12
- package/ChartContainerPro/useChartContainerProProps.js +0 -19
- package/ChartContainerPro/useChartContainerProProps.mjs +0 -14
- package/ChartDataProvider/index.d.mts +0 -1
- package/ChartDataProvider/index.d.ts +0 -1
- package/ChartDataProvider/index.js +0 -16
- package/ChartDataProvider/index.mjs +0 -2
- package/ChartDataProviderPro/ChartDataProviderPro.d.mts +0 -20
- package/ChartDataProviderPro/ChartDataProviderPro.d.ts +0 -20
- package/ChartDataProviderPro/ChartDataProviderPro.js +0 -30
- package/ChartDataProviderPro/ChartDataProviderPro.mjs +0 -21
- package/ChartDataProviderPro/index.d.mts +0 -2
- package/ChartDataProviderPro/index.d.ts +0 -2
- package/ChartDataProviderPro/index.js +0 -13
- package/ChartDataProviderPro/index.mjs +0 -2
- package/ChartDataProviderPro/useChartDataProviderProProps.d.mts +0 -10
- package/ChartDataProviderPro/useChartDataProviderProProps.d.ts +0 -10
- package/ChartDataProviderPro/useChartDataProviderProProps.js +0 -12
- package/ChartDataProviderPro/useChartDataProviderProProps.mjs +0 -8
- package/FunnelChart/funnelSectionClasses.d.mts +0 -30
- package/FunnelChart/funnelSectionClasses.d.ts +0 -30
- package/FunnelChart/funnelSectionClasses.js +0 -44
- package/FunnelChart/funnelSectionClasses.mjs +0 -35
- package/Heatmap/internals/HeatmapCell.d.mts +0 -21
- package/Heatmap/internals/HeatmapCell.d.ts +0 -21
- package/Heatmap/internals/HeatmapCell.js +0 -18
- package/Heatmap/internals/HeatmapCell.mjs +0 -12
- package/tests/constants.js +0 -7
- package/tests/constants.mjs +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type ChartAnyPluginSignature, type ChartSeriesType, type UseChartsContainerPropsReturnValue } from '@mui/x-charts/internals';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ChartsDataProviderProProps } from "../ChartsDataProviderPro/index.js";
|
|
3
3
|
import type { ChartsContainerProProps } from "./ChartsContainerPro.js";
|
|
4
4
|
import { type AllPluginSignatures } from "../internals/plugins/allPlugins.js";
|
|
5
5
|
export type UseChartsContainerProPropsReturnValue<SeriesType extends ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[]> = Pick<UseChartsContainerPropsReturnValue<SeriesType, TSignatures>, 'chartsSurfaceProps' | 'children'> & {
|
|
6
|
-
|
|
6
|
+
chartsDataProviderProProps: ChartsDataProviderProProps<SeriesType, TSignatures>;
|
|
7
7
|
};
|
|
8
8
|
export declare const useChartsContainerProProps: <SeriesType extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<SeriesType>>(props: ChartsContainerProProps<SeriesType, TSignatures>) => UseChartsContainerProPropsReturnValue<SeriesType, TSignatures>;
|
|
@@ -23,11 +23,11 @@ const useChartsContainerProProps = props => {
|
|
|
23
23
|
} = _ref,
|
|
24
24
|
baseProps = (0, _objectWithoutPropertiesLoose2.default)(_ref, _excluded);
|
|
25
25
|
const {
|
|
26
|
-
|
|
26
|
+
chartsDataProviderProps,
|
|
27
27
|
chartsSurfaceProps,
|
|
28
28
|
children
|
|
29
29
|
} = (0, _internals.useChartsContainerProps)(baseProps);
|
|
30
|
-
const
|
|
30
|
+
const chartsDataProviderProProps = (0, _extends2.default)({}, chartsDataProviderProps, {
|
|
31
31
|
initialZoom,
|
|
32
32
|
zoomData,
|
|
33
33
|
onZoomChange,
|
|
@@ -36,7 +36,7 @@ const useChartsContainerProProps = props => {
|
|
|
36
36
|
plugins: plugins ?? _allPlugins.DEFAULT_PLUGINS
|
|
37
37
|
});
|
|
38
38
|
return {
|
|
39
|
-
|
|
39
|
+
chartsDataProviderProProps,
|
|
40
40
|
chartsSurfaceProps,
|
|
41
41
|
children
|
|
42
42
|
};
|
|
@@ -17,11 +17,11 @@ export const useChartsContainerProProps = props => {
|
|
|
17
17
|
} = _ref,
|
|
18
18
|
baseProps = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
19
19
|
const {
|
|
20
|
-
|
|
20
|
+
chartsDataProviderProps,
|
|
21
21
|
chartsSurfaceProps,
|
|
22
22
|
children
|
|
23
23
|
} = useChartsContainerProps(baseProps);
|
|
24
|
-
const
|
|
24
|
+
const chartsDataProviderProProps = _extends({}, chartsDataProviderProps, {
|
|
25
25
|
initialZoom,
|
|
26
26
|
zoomData,
|
|
27
27
|
onZoomChange,
|
|
@@ -30,7 +30,7 @@ export const useChartsContainerProProps = props => {
|
|
|
30
30
|
plugins: plugins ?? DEFAULT_PLUGINS
|
|
31
31
|
});
|
|
32
32
|
return {
|
|
33
|
-
|
|
33
|
+
chartsDataProviderProProps,
|
|
34
34
|
chartsSurfaceProps,
|
|
35
35
|
children
|
|
36
36
|
};
|
|
@@ -18,8 +18,8 @@ var _useChartsDataProviderProProps = require("./useChartsDataProviderProProps");
|
|
|
18
18
|
var _ChartsWatermark = require("../internals/ChartsWatermark");
|
|
19
19
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
20
20
|
const packageInfo = {
|
|
21
|
-
releaseDate: "
|
|
22
|
-
version:
|
|
21
|
+
releaseDate: "MTc3Mzk2NDgwMDAwMA==",
|
|
22
|
+
version: "9.0.0-alpha.4",
|
|
23
23
|
name: 'x-charts-pro'
|
|
24
24
|
};
|
|
25
25
|
const defaultSeriesConfigPro = exports.defaultSeriesConfigPro = _internals.defaultSeriesConfig;
|
|
@@ -94,12 +94,6 @@ process.env.NODE_ENV !== "production" ? ChartsDataProviderPro.propTypes = {
|
|
|
94
94
|
* An array of objects that can be used to populate series and axes data using their `dataKey` property.
|
|
95
95
|
*/
|
|
96
96
|
dataset: _propTypes.default.arrayOf(_propTypes.default.object),
|
|
97
|
-
/**
|
|
98
|
-
* Options to enable features planned for the next major.
|
|
99
|
-
*/
|
|
100
|
-
experimentalFeatures: _propTypes.default.shape({
|
|
101
|
-
preferStrictDomainInLineCharts: _propTypes.default.bool
|
|
102
|
-
}),
|
|
103
97
|
/**
|
|
104
98
|
* The height of the chart in px. If not defined, it takes the height of the parent element.
|
|
105
99
|
*/
|
|
@@ -11,8 +11,8 @@ import { useChartsDataProviderProProps } from "./useChartsDataProviderProProps.m
|
|
|
11
11
|
import { ChartsWatermark } from "../internals/ChartsWatermark.mjs";
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
const packageInfo = {
|
|
14
|
-
releaseDate: "
|
|
15
|
-
version:
|
|
14
|
+
releaseDate: "MTc3Mzk2NDgwMDAwMA==",
|
|
15
|
+
version: "9.0.0-alpha.4",
|
|
16
16
|
name: 'x-charts-pro'
|
|
17
17
|
};
|
|
18
18
|
export const defaultSeriesConfigPro = defaultSeriesConfig;
|
|
@@ -87,12 +87,6 @@ process.env.NODE_ENV !== "production" ? ChartsDataProviderPro.propTypes = {
|
|
|
87
87
|
* An array of objects that can be used to populate series and axes data using their `dataKey` property.
|
|
88
88
|
*/
|
|
89
89
|
dataset: PropTypes.arrayOf(PropTypes.object),
|
|
90
|
-
/**
|
|
91
|
-
* Options to enable features planned for the next major.
|
|
92
|
-
*/
|
|
93
|
-
experimentalFeatures: PropTypes.shape({
|
|
94
|
-
preferStrictDomainInLineCharts: PropTypes.bool
|
|
95
|
-
}),
|
|
96
90
|
/**
|
|
97
91
|
* The height of the chart in px. If not defined, it takes the height of the parent element.
|
|
98
92
|
*/
|
|
@@ -6,7 +6,7 @@ const _excluded = ["printOptions", "imageExportOptions"];
|
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import { Toolbar, ToolbarButton } from '@mui/x-charts/Toolbar';
|
|
9
|
-
import {
|
|
9
|
+
import { useChartsContext, useChartsSlots } from '@mui/x-charts/internals';
|
|
10
10
|
import { useChartsLocalization } from '@mui/x-charts/hooks';
|
|
11
11
|
import useId from '@mui/utils/useId';
|
|
12
12
|
import { ChartsToolbarDivider } from "./internals/ChartsToolbarDivider.mjs";
|
|
@@ -36,7 +36,7 @@ function ChartsToolbarPro(_ref) {
|
|
|
36
36
|
} = useChartsSlots();
|
|
37
37
|
const {
|
|
38
38
|
store
|
|
39
|
-
} =
|
|
39
|
+
} = useChartsContext();
|
|
40
40
|
const {
|
|
41
41
|
localeText
|
|
42
42
|
} = useChartsLocalization();
|
|
@@ -32,7 +32,7 @@ const ChartsToolbarZoomInTrigger = exports.ChartsToolbarZoomInTrigger = /*#__PUR
|
|
|
32
32
|
const {
|
|
33
33
|
instance,
|
|
34
34
|
store
|
|
35
|
-
} = (0, _internals.
|
|
35
|
+
} = (0, _internals.useChartsContext)();
|
|
36
36
|
const disabled = store.use(_useChartProZoom.selectorChartCanZoomIn);
|
|
37
37
|
const element = (0, _useComponentRenderer.useComponentRenderer)(slots.baseButton, render, (0, _extends2.default)({}, slotProps.baseButton, {
|
|
38
38
|
onClick: () => instance.zoomIn(),
|
|
@@ -5,7 +5,7 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
|
|
|
5
5
|
const _excluded = ["render"];
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
|
-
import {
|
|
8
|
+
import { useChartsContext, useChartsSlots } from '@mui/x-charts/internals';
|
|
9
9
|
import { useComponentRenderer } from '@mui/x-internals/useComponentRenderer';
|
|
10
10
|
import { selectorChartCanZoomIn } from "../internals/plugins/useChartProZoom/index.mjs";
|
|
11
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -25,7 +25,7 @@ const ChartsToolbarZoomInTrigger = /*#__PURE__*/React.forwardRef(function Charts
|
|
|
25
25
|
const {
|
|
26
26
|
instance,
|
|
27
27
|
store
|
|
28
|
-
} =
|
|
28
|
+
} = useChartsContext();
|
|
29
29
|
const disabled = store.use(selectorChartCanZoomIn);
|
|
30
30
|
const element = useComponentRenderer(slots.baseButton, render, _extends({}, slotProps.baseButton, {
|
|
31
31
|
onClick: () => instance.zoomIn(),
|
|
@@ -32,7 +32,7 @@ const ChartsToolbarZoomOutTrigger = exports.ChartsToolbarZoomOutTrigger = /*#__P
|
|
|
32
32
|
const {
|
|
33
33
|
instance,
|
|
34
34
|
store
|
|
35
|
-
} = (0, _internals.
|
|
35
|
+
} = (0, _internals.useChartsContext)();
|
|
36
36
|
const disabled = store.use(_useChartProZoom.selectorChartCanZoomOut);
|
|
37
37
|
const element = (0, _useComponentRenderer.useComponentRenderer)(slots.baseButton, render, (0, _extends2.default)({}, slotProps.baseButton, {
|
|
38
38
|
onClick: () => instance.zoomOut(),
|
|
@@ -5,7 +5,7 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
|
|
|
5
5
|
const _excluded = ["render"];
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
|
-
import {
|
|
8
|
+
import { useChartsContext, useChartsSlots } from '@mui/x-charts/internals';
|
|
9
9
|
import { useComponentRenderer } from '@mui/x-internals/useComponentRenderer';
|
|
10
10
|
import { selectorChartCanZoomOut } from "../internals/plugins/useChartProZoom/index.mjs";
|
|
11
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -25,7 +25,7 @@ const ChartsToolbarZoomOutTrigger = /*#__PURE__*/React.forwardRef(function Chart
|
|
|
25
25
|
const {
|
|
26
26
|
instance,
|
|
27
27
|
store
|
|
28
|
-
} =
|
|
28
|
+
} = useChartsContext();
|
|
29
29
|
const disabled = store.use(selectorChartCanZoomOut);
|
|
30
30
|
const element = useComponentRenderer(slots.baseButton, render, _extends({}, slotProps.baseButton, {
|
|
31
31
|
onClick: () => instance.zoomOut(),
|
|
@@ -2,4 +2,5 @@ export * from "./ChartsToolbarPro.mjs";
|
|
|
2
2
|
export * from "./ChartsToolbarZoomInTrigger.mjs";
|
|
3
3
|
export * from "./ChartsToolbarZoomOutTrigger.mjs";
|
|
4
4
|
export * from "./ChartsToolbarPrintExportTrigger.mjs";
|
|
5
|
-
export * from "./ChartsToolbarImageExportTrigger.mjs";
|
|
5
|
+
export * from "./ChartsToolbarImageExportTrigger.mjs";
|
|
6
|
+
export type { ChartsToolbarProSlots, ChartsToolbarProSlotProps } from "./Toolbar.types.mjs";
|
|
@@ -2,4 +2,5 @@ export * from "./ChartsToolbarPro.js";
|
|
|
2
2
|
export * from "./ChartsToolbarZoomInTrigger.js";
|
|
3
3
|
export * from "./ChartsToolbarZoomOutTrigger.js";
|
|
4
4
|
export * from "./ChartsToolbarPrintExportTrigger.js";
|
|
5
|
-
export * from "./ChartsToolbarImageExportTrigger.js";
|
|
5
|
+
export * from "./ChartsToolbarImageExportTrigger.js";
|
|
6
|
+
export type { ChartsToolbarProSlots, ChartsToolbarProSlotProps } from "./Toolbar.types.js";
|
|
@@ -2,4 +2,5 @@ export * from "./ChartsToolbarPro.mjs";
|
|
|
2
2
|
export * from "./ChartsToolbarZoomInTrigger.mjs";
|
|
3
3
|
export * from "./ChartsToolbarZoomOutTrigger.mjs";
|
|
4
4
|
export * from "./ChartsToolbarPrintExportTrigger.mjs";
|
|
5
|
-
export * from "./ChartsToolbarImageExportTrigger.mjs";
|
|
5
|
+
export * from "./ChartsToolbarImageExportTrigger.mjs";
|
|
6
|
+
export {};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
4
|
import { styled } from '@mui/material/styles';
|
|
5
|
-
import { getChartPoint, invertScale, selectorChartAxis, selectorChartAxisZoomOptionsLookup,
|
|
5
|
+
import { getChartPoint, invertScale, selectorChartAxis, selectorChartAxisZoomOptionsLookup, useChartsContext, useDrawingArea, useStore } from '@mui/x-charts/internals';
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import { rafThrottle } from '@mui/x-internals/rafThrottle';
|
|
8
8
|
import { shouldForwardProp } from '@mui/system';
|
|
@@ -53,7 +53,7 @@ export function ChartsAxisZoomSliderActiveTrack({
|
|
|
53
53
|
}) {
|
|
54
54
|
const {
|
|
55
55
|
instance
|
|
56
|
-
} =
|
|
56
|
+
} = useChartsContext();
|
|
57
57
|
const {
|
|
58
58
|
chartsLayerContainerRef
|
|
59
59
|
} = instance;
|
|
@@ -4,7 +4,7 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
|
|
|
4
4
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
5
5
|
const _excluded = ["axisId", "axisDirection", "reverse", "onSelectStart", "onSelectEnd"];
|
|
6
6
|
import * as React from 'react';
|
|
7
|
-
import {
|
|
7
|
+
import { useChartsContext, getChartPoint, selectorChartAxisZoomOptionsLookup, useStore } from '@mui/x-charts/internals';
|
|
8
8
|
import { styled } from '@mui/material/styles';
|
|
9
9
|
import { rafThrottle } from '@mui/x-internals/rafThrottle';
|
|
10
10
|
import { shouldForwardProp } from '@mui/system';
|
|
@@ -52,7 +52,7 @@ export function ChartsAxisZoomSliderTrack(_ref) {
|
|
|
52
52
|
const ref = React.useRef(null);
|
|
53
53
|
const {
|
|
54
54
|
instance
|
|
55
|
-
} =
|
|
55
|
+
} = useChartsContext();
|
|
56
56
|
const {
|
|
57
57
|
chartsLayerContainerRef
|
|
58
58
|
} = instance;
|
|
@@ -4,12 +4,12 @@ import { type MakeOptional } from '@mui/x-internals/types';
|
|
|
4
4
|
import { type ChartsAxisHighlightProps } from '@mui/x-charts/ChartsAxisHighlight';
|
|
5
5
|
import { type FunnelPlotProps } from "./FunnelPlot.mjs";
|
|
6
6
|
import { type FunnelSeriesType } from "./funnel.types.mjs";
|
|
7
|
-
import { type
|
|
7
|
+
import { type ChartsContainerProProps } from "../ChartsContainerPro/index.mjs";
|
|
8
8
|
import { type FunnelChartSlotExtension } from "./funnelSlots.types.mjs";
|
|
9
9
|
import { type CategoryAxis } from "./categoryAxis.types.mjs";
|
|
10
10
|
import { type FunnelChartPluginSignatures } from "./FunnelChart.plugins.mjs";
|
|
11
11
|
export type FunnelSeries = MakeOptional<FunnelSeriesType, 'type'>;
|
|
12
|
-
export interface FunnelChartProps extends Omit<
|
|
12
|
+
export interface FunnelChartProps extends Omit<ChartsContainerProProps<'funnel', FunnelChartPluginSignatures>, 'series' | 'plugins' | 'zAxis' | 'zoom' | 'onZoomChange' | 'dataset' | 'yAxis' | 'xAxis' | 'rotationAxis' | 'radiusAxis' | 'slots' | 'slotProps'>, Omit<FunnelPlotProps, 'slots' | 'slotProps'>, Omit<ChartsOverlayProps, 'slots' | 'slotProps'>, FunnelChartSlotExtension {
|
|
13
13
|
/**
|
|
14
14
|
* The series to display in the funnel chart.
|
|
15
15
|
* An array of [[FunnelSeries]] objects.
|
|
@@ -4,12 +4,12 @@ import { type MakeOptional } from '@mui/x-internals/types';
|
|
|
4
4
|
import { type ChartsAxisHighlightProps } from '@mui/x-charts/ChartsAxisHighlight';
|
|
5
5
|
import { type FunnelPlotProps } from "./FunnelPlot.js";
|
|
6
6
|
import { type FunnelSeriesType } from "./funnel.types.js";
|
|
7
|
-
import { type
|
|
7
|
+
import { type ChartsContainerProProps } from "../ChartsContainerPro/index.js";
|
|
8
8
|
import { type FunnelChartSlotExtension } from "./funnelSlots.types.js";
|
|
9
9
|
import { type CategoryAxis } from "./categoryAxis.types.js";
|
|
10
10
|
import { type FunnelChartPluginSignatures } from "./FunnelChart.plugins.js";
|
|
11
11
|
export type FunnelSeries = MakeOptional<FunnelSeriesType, 'type'>;
|
|
12
|
-
export interface FunnelChartProps extends Omit<
|
|
12
|
+
export interface FunnelChartProps extends Omit<ChartsContainerProProps<'funnel', FunnelChartPluginSignatures>, 'series' | 'plugins' | 'zAxis' | 'zoom' | 'onZoomChange' | 'dataset' | 'yAxis' | 'xAxis' | 'rotationAxis' | 'radiusAxis' | 'slots' | 'slotProps'>, Omit<FunnelPlotProps, 'slots' | 'slotProps'>, Omit<ChartsOverlayProps, 'slots' | 'slotProps'>, FunnelChartSlotExtension {
|
|
13
13
|
/**
|
|
14
14
|
* The series to display in the funnel chart.
|
|
15
15
|
* An array of [[FunnelSeries]] objects.
|
|
@@ -21,8 +21,8 @@ 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");
|
|
24
|
-
var
|
|
25
|
-
var
|
|
24
|
+
var _useChartsContainerProProps = require("../ChartsContainerPro/useChartsContainerProProps");
|
|
25
|
+
var _ChartsDataProviderPro = require("../ChartsDataProviderPro");
|
|
26
26
|
var _FunnelChart2 = require("./FunnelChart.plugins");
|
|
27
27
|
var _FocusedFunnelSection = require("./FocusedFunnelSection");
|
|
28
28
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -35,7 +35,7 @@ const FunnelChart = exports.FunnelChart = /*#__PURE__*/React.forwardRef(function
|
|
|
35
35
|
name: 'MuiFunnelChart'
|
|
36
36
|
});
|
|
37
37
|
const {
|
|
38
|
-
|
|
38
|
+
chartsContainerProps,
|
|
39
39
|
funnelPlotProps,
|
|
40
40
|
overlayProps,
|
|
41
41
|
legendProps,
|
|
@@ -45,11 +45,11 @@ const FunnelChart = exports.FunnelChart = /*#__PURE__*/React.forwardRef(function
|
|
|
45
45
|
children
|
|
46
46
|
} = (0, _useFunnelChartProps.useFunnelChartProps)(themedProps);
|
|
47
47
|
const {
|
|
48
|
-
|
|
48
|
+
chartsDataProviderProProps,
|
|
49
49
|
chartsSurfaceProps
|
|
50
|
-
} = (0,
|
|
50
|
+
} = (0, _useChartsContainerProProps.useChartsContainerProProps)(chartsContainerProps);
|
|
51
51
|
const Tooltip = themedProps.slots?.tooltip ?? _ChartsTooltip.ChartsTooltip;
|
|
52
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
52
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsDataProviderPro.ChartsDataProviderPro, (0, _extends2.default)({}, chartsDataProviderProProps, {
|
|
53
53
|
gap: themedProps.gap,
|
|
54
54
|
seriesConfig: seriesConfig,
|
|
55
55
|
plugins: _FunnelChart2.FUNNEL_CHART_PLUGINS,
|
|
@@ -177,6 +177,10 @@ process.env.NODE_ENV !== "production" ? FunnelChart.propTypes = {
|
|
|
177
177
|
* @default rainbowSurgePalette
|
|
178
178
|
*/
|
|
179
179
|
colors: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string), _propTypes.default.func]),
|
|
180
|
+
/**
|
|
181
|
+
* The description of the chart.
|
|
182
|
+
* Used to provide an accessible description for the chart.
|
|
183
|
+
*/
|
|
180
184
|
desc: _propTypes.default.string,
|
|
181
185
|
/**
|
|
182
186
|
* If `true`, the charts will not listen to the mouse move event.
|
|
@@ -188,6 +192,10 @@ process.env.NODE_ENV !== "production" ? FunnelChart.propTypes = {
|
|
|
188
192
|
* If `true`, disables keyboard navigation for the chart.
|
|
189
193
|
*/
|
|
190
194
|
disableKeyboardNavigation: _propTypes.default.bool,
|
|
195
|
+
/**
|
|
196
|
+
* Options to enable features planned for the next major.
|
|
197
|
+
*/
|
|
198
|
+
experimentalFeatures: _propTypes.default.object,
|
|
191
199
|
/**
|
|
192
200
|
* The gap, in pixels, between funnel sections.
|
|
193
201
|
* @default 0
|
|
@@ -351,6 +359,10 @@ process.env.NODE_ENV !== "production" ? FunnelChart.propTypes = {
|
|
|
351
359
|
slots: _propTypes.default.object,
|
|
352
360
|
sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object]),
|
|
353
361
|
theme: _propTypes.default.oneOf(['dark', 'light']),
|
|
362
|
+
/**
|
|
363
|
+
* The title of the chart.
|
|
364
|
+
* Used to provide an accessible label for the chart.
|
|
365
|
+
*/
|
|
354
366
|
title: _propTypes.default.string,
|
|
355
367
|
/**
|
|
356
368
|
* The tooltip item.
|
|
@@ -14,8 +14,8 @@ import { ChartsWrapper } from '@mui/x-charts/ChartsWrapper';
|
|
|
14
14
|
import { FunnelPlot } from "./FunnelPlot.mjs";
|
|
15
15
|
import { useFunnelChartProps } from "./useFunnelChartProps.mjs";
|
|
16
16
|
import { funnelSeriesConfig } from "./seriesConfig/index.mjs";
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
17
|
+
import { useChartsContainerProProps } from "../ChartsContainerPro/useChartsContainerProProps.mjs";
|
|
18
|
+
import { ChartsDataProviderPro } from "../ChartsDataProviderPro/index.mjs";
|
|
19
19
|
import { FUNNEL_CHART_PLUGINS } from "./FunnelChart.plugins.mjs";
|
|
20
20
|
import { FocusedFunnelSection } from "./FocusedFunnelSection.mjs";
|
|
21
21
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -28,7 +28,7 @@ const FunnelChart = /*#__PURE__*/React.forwardRef(function FunnelChart(props, re
|
|
|
28
28
|
name: 'MuiFunnelChart'
|
|
29
29
|
});
|
|
30
30
|
const {
|
|
31
|
-
|
|
31
|
+
chartsContainerProps,
|
|
32
32
|
funnelPlotProps,
|
|
33
33
|
overlayProps,
|
|
34
34
|
legendProps,
|
|
@@ -38,11 +38,11 @@ const FunnelChart = /*#__PURE__*/React.forwardRef(function FunnelChart(props, re
|
|
|
38
38
|
children
|
|
39
39
|
} = useFunnelChartProps(themedProps);
|
|
40
40
|
const {
|
|
41
|
-
|
|
41
|
+
chartsDataProviderProProps,
|
|
42
42
|
chartsSurfaceProps
|
|
43
|
-
} =
|
|
43
|
+
} = useChartsContainerProProps(chartsContainerProps);
|
|
44
44
|
const Tooltip = themedProps.slots?.tooltip ?? ChartsTooltip;
|
|
45
|
-
return /*#__PURE__*/_jsx(
|
|
45
|
+
return /*#__PURE__*/_jsx(ChartsDataProviderPro, _extends({}, chartsDataProviderProProps, {
|
|
46
46
|
gap: themedProps.gap,
|
|
47
47
|
seriesConfig: seriesConfig,
|
|
48
48
|
plugins: FUNNEL_CHART_PLUGINS,
|
|
@@ -170,6 +170,10 @@ process.env.NODE_ENV !== "production" ? FunnelChart.propTypes = {
|
|
|
170
170
|
* @default rainbowSurgePalette
|
|
171
171
|
*/
|
|
172
172
|
colors: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string), PropTypes.func]),
|
|
173
|
+
/**
|
|
174
|
+
* The description of the chart.
|
|
175
|
+
* Used to provide an accessible description for the chart.
|
|
176
|
+
*/
|
|
173
177
|
desc: PropTypes.string,
|
|
174
178
|
/**
|
|
175
179
|
* If `true`, the charts will not listen to the mouse move event.
|
|
@@ -181,6 +185,10 @@ process.env.NODE_ENV !== "production" ? FunnelChart.propTypes = {
|
|
|
181
185
|
* If `true`, disables keyboard navigation for the chart.
|
|
182
186
|
*/
|
|
183
187
|
disableKeyboardNavigation: PropTypes.bool,
|
|
188
|
+
/**
|
|
189
|
+
* Options to enable features planned for the next major.
|
|
190
|
+
*/
|
|
191
|
+
experimentalFeatures: PropTypes.object,
|
|
184
192
|
/**
|
|
185
193
|
* The gap, in pixels, between funnel sections.
|
|
186
194
|
* @default 0
|
|
@@ -344,6 +352,10 @@ process.env.NODE_ENV !== "production" ? FunnelChart.propTypes = {
|
|
|
344
352
|
slots: PropTypes.object,
|
|
345
353
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
346
354
|
theme: PropTypes.oneOf(['dark', 'light']),
|
|
355
|
+
/**
|
|
356
|
+
* The title of the chart.
|
|
357
|
+
* Used to provide an accessible label for the chart.
|
|
358
|
+
*/
|
|
347
359
|
title: PropTypes.string,
|
|
348
360
|
/**
|
|
349
361
|
* The tooltip item.
|
|
@@ -15,6 +15,7 @@ var _d3Shape = require("@mui/x-charts-vendor/d3-shape");
|
|
|
15
15
|
var _internals = require("@mui/x-charts/internals");
|
|
16
16
|
var _FunnelSection = require("./FunnelSection");
|
|
17
17
|
var _labelUtils = require("./labelUtils");
|
|
18
|
+
var _funnelClasses = require("./funnelClasses");
|
|
18
19
|
var _useFunnelSeries = require("../hooks/useFunnelSeries");
|
|
19
20
|
var _curves = require("./curves");
|
|
20
21
|
var _FunnelSectionLabel = require("./FunnelSectionLabel");
|
|
@@ -110,7 +111,9 @@ function FunnelPlot(props) {
|
|
|
110
111
|
} = props,
|
|
111
112
|
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
112
113
|
const data = useAggregatedData();
|
|
113
|
-
|
|
114
|
+
const classes = (0, _funnelClasses.useUtilityClasses)();
|
|
115
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("g", {
|
|
116
|
+
className: classes.root,
|
|
114
117
|
children: [data.map(series => {
|
|
115
118
|
if (series.length === 0) {
|
|
116
119
|
return null;
|
|
@@ -150,7 +153,8 @@ function FunnelPlot(props) {
|
|
|
150
153
|
id,
|
|
151
154
|
label,
|
|
152
155
|
seriesId,
|
|
153
|
-
dataIndex
|
|
156
|
+
dataIndex,
|
|
157
|
+
variant
|
|
154
158
|
}) => {
|
|
155
159
|
if (!label || !label.value) {
|
|
156
160
|
return null;
|
|
@@ -158,7 +162,8 @@ function FunnelPlot(props) {
|
|
|
158
162
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_FunnelSectionLabel.FunnelSectionLabel, (0, _extends2.default)({
|
|
159
163
|
label: label,
|
|
160
164
|
dataIndex: dataIndex,
|
|
161
|
-
seriesId: seriesId
|
|
165
|
+
seriesId: seriesId,
|
|
166
|
+
variant: variant
|
|
162
167
|
}, other), id);
|
|
163
168
|
})
|
|
164
169
|
}, series[0].seriesId);
|
|
@@ -7,6 +7,7 @@ import { line as d3Line } from '@mui/x-charts-vendor/d3-shape';
|
|
|
7
7
|
import { cartesianSeriesTypes, useStore } from '@mui/x-charts/internals';
|
|
8
8
|
import { FunnelSection } from "./FunnelSection.mjs";
|
|
9
9
|
import { alignLabel, positionLabel } from "./labelUtils.mjs";
|
|
10
|
+
import { useUtilityClasses } from "./funnelClasses.mjs";
|
|
10
11
|
import { useFunnelSeriesContext } from "../hooks/useFunnelSeries.mjs";
|
|
11
12
|
import { getFunnelCurve } from "./curves/index.mjs";
|
|
12
13
|
import { FunnelSectionLabel } from "./FunnelSectionLabel.mjs";
|
|
@@ -102,7 +103,9 @@ function FunnelPlot(props) {
|
|
|
102
103
|
} = props,
|
|
103
104
|
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
104
105
|
const data = useAggregatedData();
|
|
105
|
-
|
|
106
|
+
const classes = useUtilityClasses();
|
|
107
|
+
return /*#__PURE__*/_jsxs("g", {
|
|
108
|
+
className: classes.root,
|
|
106
109
|
children: [data.map(series => {
|
|
107
110
|
if (series.length === 0) {
|
|
108
111
|
return null;
|
|
@@ -142,7 +145,8 @@ function FunnelPlot(props) {
|
|
|
142
145
|
id,
|
|
143
146
|
label,
|
|
144
147
|
seriesId,
|
|
145
|
-
dataIndex
|
|
148
|
+
dataIndex,
|
|
149
|
+
variant
|
|
146
150
|
}) => {
|
|
147
151
|
if (!label || !label.value) {
|
|
148
152
|
return null;
|
|
@@ -150,7 +154,8 @@ function FunnelPlot(props) {
|
|
|
150
154
|
return /*#__PURE__*/_jsx(FunnelSectionLabel, _extends({
|
|
151
155
|
label: label,
|
|
152
156
|
dataIndex: dataIndex,
|
|
153
|
-
seriesId: seriesId
|
|
157
|
+
seriesId: seriesId,
|
|
158
|
+
variant: variant
|
|
154
159
|
}, other), id);
|
|
155
160
|
})
|
|
156
161
|
}, series[0].seriesId);
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { type SeriesId } from '@mui/x-charts/internals';
|
|
3
|
-
import { type
|
|
3
|
+
import { type FunnelClasses } from "./funnelClasses.mjs";
|
|
4
4
|
export interface FunnelSectionProps extends Omit<React.SVGProps<SVGPathElement>, 'ref'> {
|
|
5
5
|
seriesId: SeriesId;
|
|
6
6
|
dataIndex: number;
|
|
7
7
|
color: string;
|
|
8
|
-
classes?: Partial<
|
|
8
|
+
classes?: Partial<FunnelClasses>;
|
|
9
9
|
variant?: 'filled' | 'outlined';
|
|
10
10
|
}
|
|
11
11
|
export declare const FunnelSectionPath: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, Pick<React.SVGProps<SVGPathElement>, keyof React.SVGProps<SVGPathElement>>, {}>;
|
|
12
12
|
/**
|
|
13
13
|
* @ignore - internal component.
|
|
14
14
|
*/
|
|
15
|
-
declare const FunnelSection: React.ForwardRefExoticComponent<FunnelSectionProps & React.RefAttributes<
|
|
15
|
+
declare const FunnelSection: React.ForwardRefExoticComponent<FunnelSectionProps & React.RefAttributes<SVGPathElement>>;
|
|
16
16
|
export { FunnelSection };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { type SeriesId } from '@mui/x-charts/internals';
|
|
3
|
-
import { type
|
|
3
|
+
import { type FunnelClasses } from "./funnelClasses.js";
|
|
4
4
|
export interface FunnelSectionProps extends Omit<React.SVGProps<SVGPathElement>, 'ref'> {
|
|
5
5
|
seriesId: SeriesId;
|
|
6
6
|
dataIndex: number;
|
|
7
7
|
color: string;
|
|
8
|
-
classes?: Partial<
|
|
8
|
+
classes?: Partial<FunnelClasses>;
|
|
9
9
|
variant?: 'filled' | 'outlined';
|
|
10
10
|
}
|
|
11
11
|
export declare const FunnelSectionPath: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, Pick<React.SVGProps<SVGPathElement>, keyof React.SVGProps<SVGPathElement>>, {}>;
|
|
12
12
|
/**
|
|
13
13
|
* @ignore - internal component.
|
|
14
14
|
*/
|
|
15
|
-
declare const FunnelSection: React.ForwardRefExoticComponent<FunnelSectionProps & React.RefAttributes<
|
|
15
|
+
declare const FunnelSection: React.ForwardRefExoticComponent<FunnelSectionProps & React.RefAttributes<SVGPathElement>>;
|
|
16
16
|
export { FunnelSection };
|
|
@@ -14,12 +14,12 @@ var _styles = require("@mui/material/styles");
|
|
|
14
14
|
var _internals = require("@mui/x-charts/internals");
|
|
15
15
|
var _hooks = require("@mui/x-charts/hooks");
|
|
16
16
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
17
|
-
var
|
|
17
|
+
var _funnelClasses = require("./funnelClasses");
|
|
18
18
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
19
|
const _excluded = ["seriesId", "dataIndex", "classes", "color", "onClick", "className", "variant"];
|
|
20
20
|
const FunnelSectionPath = exports.FunnelSectionPath = (0, _styles.styled)('path', {
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
name: 'MuiFunnelChart',
|
|
22
|
+
slot: 'Section'
|
|
23
23
|
})(() => ({
|
|
24
24
|
transition: 'opacity 0.2s ease-in, fill 0.2s ease-in, fill-opacity 0.2s ease-in, filter 0.2s ease-in'
|
|
25
25
|
}));
|
|
@@ -28,7 +28,7 @@ const FunnelSectionPath = exports.FunnelSectionPath = (0, _styles.styled)('path'
|
|
|
28
28
|
* @ignore - internal component.
|
|
29
29
|
*/
|
|
30
30
|
const FunnelSection = exports.FunnelSection = (0, _internals.consumeSlots)('MuiFunnelSection', 'funnelSection', {
|
|
31
|
-
classesResolver:
|
|
31
|
+
classesResolver: _funnelClasses.useUtilityClasses
|
|
32
32
|
}, /*#__PURE__*/React.forwardRef(function FunnelSection(props, ref) {
|
|
33
33
|
const {
|
|
34
34
|
seriesId,
|
|
@@ -62,7 +62,7 @@ const FunnelSection = exports.FunnelSection = (0, _internals.consumeSlots)('MuiF
|
|
|
62
62
|
onClick: onClick,
|
|
63
63
|
"data-highlighted": isHighlighted || undefined,
|
|
64
64
|
"data-faded": isFaded || undefined,
|
|
65
|
-
className: (0, _clsx.default)(classes?.
|
|
65
|
+
className: (0, _clsx.default)(classes?.section, className)
|
|
66
66
|
}, other, {
|
|
67
67
|
ref: ref
|
|
68
68
|
}));
|
|
@@ -8,11 +8,11 @@ import { styled } from '@mui/material/styles';
|
|
|
8
8
|
import { useInteractionItemProps, consumeSlots } from '@mui/x-charts/internals';
|
|
9
9
|
import { useItemHighlightState } from '@mui/x-charts/hooks';
|
|
10
10
|
import clsx from 'clsx';
|
|
11
|
-
import { useUtilityClasses } from "./
|
|
11
|
+
import { useUtilityClasses } from "./funnelClasses.mjs";
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
export const FunnelSectionPath = styled('path', {
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
name: 'MuiFunnelChart',
|
|
15
|
+
slot: 'Section'
|
|
16
16
|
})(() => ({
|
|
17
17
|
transition: 'opacity 0.2s ease-in, fill 0.2s ease-in, fill-opacity 0.2s ease-in, filter 0.2s ease-in'
|
|
18
18
|
}));
|
|
@@ -55,7 +55,7 @@ const FunnelSection = consumeSlots('MuiFunnelSection', 'funnelSection', {
|
|
|
55
55
|
onClick: onClick,
|
|
56
56
|
"data-highlighted": isHighlighted || undefined,
|
|
57
57
|
"data-faded": isFaded || undefined,
|
|
58
|
-
className: clsx(classes?.
|
|
58
|
+
className: clsx(classes?.section, className)
|
|
59
59
|
}, other, {
|
|
60
60
|
ref: ref
|
|
61
61
|
}));
|