@mui/x-charts-premium 8.21.0 → 8.22.1
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/BarChartPremium/BarChartPremium.d.ts +16 -0
- package/BarChartPremium/BarChartPremium.js +1523 -0
- package/BarChartPremium/BarChartPremium.plugins.d.ts +4 -0
- package/BarChartPremium/BarChartPremium.plugins.js +8 -0
- package/BarChartPremium/index.d.ts +2 -0
- package/BarChartPremium/index.js +27 -0
- package/BarChartPremium/useBarChartPremiumProps.d.ts +23 -0
- package/BarChartPremium/useBarChartPremiumProps.js +17 -0
- package/CHANGELOG.md +238 -1
- package/ChartDataProviderPremium/ChartDataProviderPremium.d.ts +46 -0
- package/ChartDataProviderPremium/ChartDataProviderPremium.js +145 -0
- package/ChartDataProviderPremium/index.d.ts +1 -0
- package/ChartDataProviderPremium/index.js +16 -0
- package/ChartDataProviderPremium/useChartDataProviderPremiumProps.d.ts +10 -0
- package/ChartDataProviderPremium/useChartDataProviderPremiumProps.js +25 -0
- package/ChartsRenderer/colors.d.ts +1 -1
- package/ChartsRenderer/configuration.d.ts +1 -1
- package/esm/BarChartPremium/BarChartPremium.d.ts +16 -0
- package/esm/BarChartPremium/BarChartPremium.js +1517 -0
- package/esm/BarChartPremium/BarChartPremium.plugins.d.ts +4 -0
- package/esm/BarChartPremium/BarChartPremium.plugins.js +2 -0
- package/esm/BarChartPremium/index.d.ts +2 -0
- package/esm/BarChartPremium/index.js +2 -0
- package/esm/BarChartPremium/useBarChartPremiumProps.d.ts +23 -0
- package/esm/BarChartPremium/useBarChartPremiumProps.js +11 -0
- package/esm/ChartDataProviderPremium/ChartDataProviderPremium.d.ts +46 -0
- package/esm/ChartDataProviderPremium/ChartDataProviderPremium.js +140 -0
- package/esm/ChartDataProviderPremium/index.d.ts +1 -0
- package/esm/ChartDataProviderPremium/index.js +1 -0
- package/esm/ChartDataProviderPremium/useChartDataProviderPremiumProps.d.ts +10 -0
- package/esm/ChartDataProviderPremium/useChartDataProviderPremiumProps.js +19 -0
- package/esm/ChartsRenderer/colors.d.ts +1 -1
- package/esm/ChartsRenderer/configuration.d.ts +1 -1
- package/esm/index.js +1 -1
- package/esm/internals/plugins/allPlugins.d.ts +8 -0
- package/esm/internals/plugins/allPlugins.js +6 -0
- package/index.js +1 -1
- package/internals/plugins/allPlugins.d.ts +8 -0
- package/internals/plugins/allPlugins.js +12 -0
- package/package.json +6 -6
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type ConvertSignaturesIntoPlugins } from '@mui/x-charts/internals';
|
|
2
|
+
import { type BarChartProPluginSignatures } from '@mui/x-charts-pro/BarChartPro';
|
|
3
|
+
export type BarChartPremiumPluginSignatures = BarChartProPluginSignatures;
|
|
4
|
+
export declare const BAR_CHART_PREMIUM_PLUGINS: ConvertSignaturesIntoPlugins<BarChartPremiumPluginSignatures>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type BarChartPremiumProps } from "./BarChartPremium.js";
|
|
2
|
+
/**
|
|
3
|
+
* A helper function that extracts BarChartPremiumProps from the input props
|
|
4
|
+
* and returns an object with props for the children components of BarChartPremium.
|
|
5
|
+
*
|
|
6
|
+
* @param props The input props for BarChartPremium
|
|
7
|
+
* @returns An object with props for the children components of BarChartPremium
|
|
8
|
+
*/
|
|
9
|
+
export declare function useBarChartPremiumProps(props: BarChartPremiumProps): {
|
|
10
|
+
chartsWrapperProps: Omit<import("@mui/x-charts").ChartsWrapperProps, "children">;
|
|
11
|
+
chartContainerProps: import("@mui/x-charts").ChartContainerProps<"bar", import("@mui/x-charts").BarChartPluginSignatures>;
|
|
12
|
+
barPlotProps: import("@mui/x-charts").BarPlotProps;
|
|
13
|
+
gridProps: import("@mui/x-charts").ChartsGridProps;
|
|
14
|
+
clipPathProps: import("@mui/x-charts").ChartsClipPathProps;
|
|
15
|
+
clipPathGroupProps: {
|
|
16
|
+
clipPath: string;
|
|
17
|
+
};
|
|
18
|
+
overlayProps: import("@mui/x-charts/ChartsOverlay").ChartsOverlayProps;
|
|
19
|
+
chartsAxisProps: import("@mui/x-charts").ChartsAxisProps;
|
|
20
|
+
axisHighlightProps: import("@mui/x-charts").ChartsAxisHighlightProps;
|
|
21
|
+
legendProps: import("@mui/x-charts").ChartsLegendSlotExtension;
|
|
22
|
+
children: React.ReactNode;
|
|
23
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { useBarChartProps } from '@mui/x-charts/internals';
|
|
2
|
+
/**
|
|
3
|
+
* A helper function that extracts BarChartPremiumProps from the input props
|
|
4
|
+
* and returns an object with props for the children components of BarChartPremium.
|
|
5
|
+
*
|
|
6
|
+
* @param props The input props for BarChartPremium
|
|
7
|
+
* @returns An object with props for the children components of BarChartPremium
|
|
8
|
+
*/
|
|
9
|
+
export function useBarChartPremiumProps(props) {
|
|
10
|
+
return useBarChartProps(props);
|
|
11
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { type ChartSeriesType, type ChartAnyPluginSignature, type ChartProviderProps } from '@mui/x-charts/internals';
|
|
2
|
+
import { type ChartDataProviderProProps } from '@mui/x-charts-pro/ChartDataProviderPro';
|
|
3
|
+
import { type ChartsSlotPropsPro, type ChartsSlotsPro } from '@mui/x-charts-pro/internals';
|
|
4
|
+
import { type AllPluginSignatures } from "../internals/plugins/allPlugins.js";
|
|
5
|
+
export type ChartDataProviderPremiumProps<TSeries extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<TSeries>> = ChartDataProviderProProps<TSeries, TSignatures> & ChartProviderProps<TSeries, TSignatures>['pluginParams'] & {
|
|
6
|
+
/**
|
|
7
|
+
* Slots to customize charts' components.
|
|
8
|
+
*/
|
|
9
|
+
slots?: Partial<ChartsSlotsPro>;
|
|
10
|
+
/**
|
|
11
|
+
* The props for the slots.
|
|
12
|
+
*/
|
|
13
|
+
slotProps?: Partial<ChartsSlotPropsPro>;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Orchestrates the data providers for the chart components and hooks.
|
|
17
|
+
*
|
|
18
|
+
* Use this component if you have custom HTML components that need to access the chart data.
|
|
19
|
+
*
|
|
20
|
+
* Demos:
|
|
21
|
+
*
|
|
22
|
+
* - [Composition](https://mui.com/x/api/charts/composition/)
|
|
23
|
+
*
|
|
24
|
+
* API:
|
|
25
|
+
*
|
|
26
|
+
* - [ChartDataProviderPro API](https://mui.com/x/api/charts/chart-data-provider/)
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```jsx
|
|
30
|
+
* <ChartDataProviderPro
|
|
31
|
+
* series={[{ label: "Label", type: "bar", data: [10, 20] }]}
|
|
32
|
+
* xAxis={[{ data: ["A", "B"], scaleType: "band", id: "x-axis" }]}
|
|
33
|
+
* >
|
|
34
|
+
* <ChartsSurface>
|
|
35
|
+
* <BarPlot />
|
|
36
|
+
* <ChartsXAxis axisId="x-axis" />
|
|
37
|
+
* </ChartsSurface>
|
|
38
|
+
* {'Custom Legend Component'}
|
|
39
|
+
* </ChartDataProviderPro>
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
declare function ChartDataProviderPremium<TSeries extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<TSeries>>(props: ChartDataProviderPremiumProps<TSeries, TSignatures>): import("react/jsx-runtime").JSX.Element;
|
|
43
|
+
declare namespace ChartDataProviderPremium {
|
|
44
|
+
var propTypes: any;
|
|
45
|
+
}
|
|
46
|
+
export { ChartDataProviderPremium };
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
|
+
import PropTypes from 'prop-types';
|
|
5
|
+
import { Watermark } from '@mui/x-license/Watermark';
|
|
6
|
+
import { ChartProvider, ChartsSlotsProvider, defaultSlotsMaterial } from '@mui/x-charts/internals';
|
|
7
|
+
import { ChartsLocalizationProvider } from '@mui/x-charts/ChartsLocalizationProvider';
|
|
8
|
+
import { useLicenseVerifier } from '@mui/x-license/useLicenseVerifier';
|
|
9
|
+
import { DEFAULT_PLUGINS } from "../internals/plugins/allPlugins.js";
|
|
10
|
+
import { useChartDataProviderPremiumProps } from "./useChartDataProviderPremiumProps.js";
|
|
11
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
|
+
const releaseInfo = "MTc2NjAxNjAwMDAwMA==";
|
|
13
|
+
const packageIdentifier = 'x-charts-premium';
|
|
14
|
+
/**
|
|
15
|
+
* Orchestrates the data providers for the chart components and hooks.
|
|
16
|
+
*
|
|
17
|
+
* Use this component if you have custom HTML components that need to access the chart data.
|
|
18
|
+
*
|
|
19
|
+
* Demos:
|
|
20
|
+
*
|
|
21
|
+
* - [Composition](https://mui.com/x/api/charts/composition/)
|
|
22
|
+
*
|
|
23
|
+
* API:
|
|
24
|
+
*
|
|
25
|
+
* - [ChartDataProviderPro API](https://mui.com/x/api/charts/chart-data-provider/)
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```jsx
|
|
29
|
+
* <ChartDataProviderPro
|
|
30
|
+
* series={[{ label: "Label", type: "bar", data: [10, 20] }]}
|
|
31
|
+
* xAxis={[{ data: ["A", "B"], scaleType: "band", id: "x-axis" }]}
|
|
32
|
+
* >
|
|
33
|
+
* <ChartsSurface>
|
|
34
|
+
* <BarPlot />
|
|
35
|
+
* <ChartsXAxis axisId="x-axis" />
|
|
36
|
+
* </ChartsSurface>
|
|
37
|
+
* {'Custom Legend Component'}
|
|
38
|
+
* </ChartDataProviderPro>
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
function ChartDataProviderPremium(props) {
|
|
42
|
+
const {
|
|
43
|
+
children,
|
|
44
|
+
localeText,
|
|
45
|
+
chartProviderProps,
|
|
46
|
+
slots,
|
|
47
|
+
slotProps
|
|
48
|
+
} = useChartDataProviderPremiumProps(_extends({}, props, {
|
|
49
|
+
plugins: props.plugins ?? DEFAULT_PLUGINS
|
|
50
|
+
}));
|
|
51
|
+
useLicenseVerifier(packageIdentifier, releaseInfo);
|
|
52
|
+
return /*#__PURE__*/_jsxs(ChartProvider, _extends({}, chartProviderProps, {
|
|
53
|
+
children: [/*#__PURE__*/_jsx(ChartsLocalizationProvider, {
|
|
54
|
+
localeText: localeText,
|
|
55
|
+
children: /*#__PURE__*/_jsx(ChartsSlotsProvider, {
|
|
56
|
+
slots: slots,
|
|
57
|
+
slotProps: slotProps,
|
|
58
|
+
defaultSlots: defaultSlotsMaterial,
|
|
59
|
+
children: children
|
|
60
|
+
})
|
|
61
|
+
}), /*#__PURE__*/_jsx(Watermark, {
|
|
62
|
+
packageName: packageIdentifier,
|
|
63
|
+
releaseInfo: releaseInfo
|
|
64
|
+
})]
|
|
65
|
+
}));
|
|
66
|
+
}
|
|
67
|
+
process.env.NODE_ENV !== "production" ? ChartDataProviderPremium.propTypes = {
|
|
68
|
+
// ----------------------------- Warning --------------------------------
|
|
69
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
70
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
71
|
+
// ----------------------------------------------------------------------
|
|
72
|
+
apiRef: PropTypes.shape({
|
|
73
|
+
current: PropTypes.any
|
|
74
|
+
}),
|
|
75
|
+
/**
|
|
76
|
+
* Color palette used to colorize multiple series.
|
|
77
|
+
* @default rainbowSurgePalette
|
|
78
|
+
*/
|
|
79
|
+
colors: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string), PropTypes.func]),
|
|
80
|
+
/**
|
|
81
|
+
* An array of objects that can be used to populate series and axes data using their `dataKey` property.
|
|
82
|
+
*/
|
|
83
|
+
dataset: PropTypes.arrayOf(PropTypes.object),
|
|
84
|
+
/**
|
|
85
|
+
* Options to enable features planned for the next major.
|
|
86
|
+
*/
|
|
87
|
+
experimentalFeatures: PropTypes.shape({
|
|
88
|
+
preferStrictDomainInLineCharts: PropTypes.bool
|
|
89
|
+
}),
|
|
90
|
+
/**
|
|
91
|
+
* The height of the chart in px. If not defined, it takes the height of the parent element.
|
|
92
|
+
*/
|
|
93
|
+
height: PropTypes.number,
|
|
94
|
+
/**
|
|
95
|
+
* This prop is used to help implement the accessibility logic.
|
|
96
|
+
* If you don't provide this prop. It falls back to a randomly generated id.
|
|
97
|
+
*/
|
|
98
|
+
id: PropTypes.string,
|
|
99
|
+
/**
|
|
100
|
+
* Localized text for chart components.
|
|
101
|
+
*/
|
|
102
|
+
localeText: PropTypes.object,
|
|
103
|
+
/**
|
|
104
|
+
* The margin between the SVG and the drawing area.
|
|
105
|
+
* It's used for leaving some space for extra information such as the x- and y-axis or legend.
|
|
106
|
+
*
|
|
107
|
+
* Accepts a `number` to be used on all sides or an object with the optional properties: `top`, `bottom`, `left`, and `right`.
|
|
108
|
+
*/
|
|
109
|
+
margin: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
|
|
110
|
+
bottom: PropTypes.number,
|
|
111
|
+
left: PropTypes.number,
|
|
112
|
+
right: PropTypes.number,
|
|
113
|
+
top: PropTypes.number
|
|
114
|
+
})]),
|
|
115
|
+
/**
|
|
116
|
+
* The array of series to display.
|
|
117
|
+
* Each type of series has its own specificity.
|
|
118
|
+
* Please refer to the appropriate docs page to learn more about it.
|
|
119
|
+
*/
|
|
120
|
+
series: PropTypes.arrayOf(PropTypes.object),
|
|
121
|
+
/**
|
|
122
|
+
* If `true`, animations are skipped.
|
|
123
|
+
* If unset or `false`, the animations respects the user's `prefers-reduced-motion` setting.
|
|
124
|
+
*/
|
|
125
|
+
skipAnimation: PropTypes.bool,
|
|
126
|
+
/**
|
|
127
|
+
* The props for the slots.
|
|
128
|
+
*/
|
|
129
|
+
slotProps: PropTypes.object,
|
|
130
|
+
/**
|
|
131
|
+
* Slots to customize charts' components.
|
|
132
|
+
*/
|
|
133
|
+
slots: PropTypes.object,
|
|
134
|
+
theme: PropTypes.oneOf(['dark', 'light']),
|
|
135
|
+
/**
|
|
136
|
+
* The width of the chart in px. If not defined, it takes the width of the parent element.
|
|
137
|
+
*/
|
|
138
|
+
width: PropTypes.number
|
|
139
|
+
} : void 0;
|
|
140
|
+
export { ChartDataProviderPremium };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ChartDataProviderPremium.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ChartDataProviderPremium.js";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type ChartAnyPluginSignature, type ChartSeriesType } from '@mui/x-charts/internals';
|
|
2
|
+
import type { ChartDataProviderPremiumProps } from "./ChartDataProviderPremium.js";
|
|
3
|
+
import type { AllPluginSignatures } from "../internals/plugins/allPlugins.js";
|
|
4
|
+
export declare const useChartDataProviderPremiumProps: <TSeries extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<TSeries>>(props: ChartDataProviderPremiumProps<TSeries, TSignatures>) => {
|
|
5
|
+
children: import("react").ReactNode;
|
|
6
|
+
localeText: Partial<import("@mui/x-charts/locales").ChartsLocaleText> | undefined;
|
|
7
|
+
chartProviderProps: import("@mui/x-charts/internals").ChartProviderProps<TSeries, TSignatures>;
|
|
8
|
+
slots: Partial<import("@mui/x-charts/internals").ChartsSlots> | undefined;
|
|
9
|
+
slotProps: Partial<import("@mui/x-charts/internals").ChartsSlotProps> | undefined;
|
|
10
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { useChartDataProviderProps } from '@mui/x-charts/internals';
|
|
4
|
+
export const useChartDataProviderPremiumProps = props => {
|
|
5
|
+
const {
|
|
6
|
+
chartProviderProps,
|
|
7
|
+
localeText,
|
|
8
|
+
slots,
|
|
9
|
+
slotProps,
|
|
10
|
+
children
|
|
11
|
+
} = useChartDataProviderProps(props);
|
|
12
|
+
return {
|
|
13
|
+
children,
|
|
14
|
+
localeText,
|
|
15
|
+
chartProviderProps,
|
|
16
|
+
slots,
|
|
17
|
+
slotProps
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ChartsColorPaletteCallback } from '@mui/x-charts/colorPalettes';
|
|
1
|
+
import { type ChartsColorPaletteCallback } from '@mui/x-charts/colorPalettes';
|
|
2
2
|
export declare const colorPaletteLookup: Map<string, ChartsColorPaletteCallback>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { GridChartsConfigurationOptions } from '@mui/x-internals/types';
|
|
2
|
-
import { ChartsLocaleText } from '@mui/x-charts/locales';
|
|
2
|
+
import { type ChartsLocaleText } from '@mui/x-charts/locales';
|
|
3
3
|
export declare const getLocalizedConfigurationOptions: (locale?: Partial<ChartsLocaleText>) => GridChartsConfigurationOptions;
|
|
4
4
|
export declare const configurationOptions: GridChartsConfigurationOptions;
|
package/esm/index.js
CHANGED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type ChartSeriesType, type ConvertSignaturesIntoPlugins, type UseChartCartesianAxisSignature, type UseChartTooltipSignature, type UseChartInteractionSignature, type UseChartZAxisSignature, type UseChartHighlightSignature, type UseChartPolarAxisSignature, type UseChartBrushSignature } from '@mui/x-charts/internals';
|
|
2
|
+
import { type UseChartProExportSignature, type UseChartProZoomSignature } from '@mui/x-charts-pro/plugins';
|
|
3
|
+
export type AllPluginSignatures<TSeries extends ChartSeriesType = ChartSeriesType> = [UseChartZAxisSignature, UseChartBrushSignature, UseChartTooltipSignature, UseChartInteractionSignature, UseChartCartesianAxisSignature<TSeries>, UseChartPolarAxisSignature<TSeries>, UseChartHighlightSignature, UseChartProZoomSignature, UseChartProExportSignature];
|
|
4
|
+
export type AllPluginsType<TSeries extends ChartSeriesType = ChartSeriesType> = ConvertSignaturesIntoPlugins<AllPluginSignatures<TSeries>>;
|
|
5
|
+
export declare const ALL_PLUGINS: (import("@mui/x-charts/internals").ChartPlugin<UseChartZAxisSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartBrushSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartTooltipSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartInteractionSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartHighlightSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartProZoomSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartProExportSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartCartesianAxisSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartPolarAxisSignature<any>>)[];
|
|
6
|
+
export type DefaultPluginSignatures<TSeries extends ChartSeriesType = ChartSeriesType> = [UseChartZAxisSignature, UseChartBrushSignature, UseChartTooltipSignature, UseChartInteractionSignature, UseChartCartesianAxisSignature<TSeries>, UseChartPolarAxisSignature<TSeries>, UseChartHighlightSignature, UseChartProZoomSignature, UseChartProExportSignature];
|
|
7
|
+
export type DefaultPluginsType<TSeries extends ChartSeriesType = ChartSeriesType> = ConvertSignaturesIntoPlugins<DefaultPluginSignatures<TSeries>>;
|
|
8
|
+
export declare const DEFAULT_PLUGINS: (import("@mui/x-charts/internals").ChartPlugin<UseChartZAxisSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartBrushSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartTooltipSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartInteractionSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartHighlightSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartProZoomSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartProExportSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartCartesianAxisSignature<any>>)[];
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// This file should be removed after creating all plugins in favor of a file per chart type.
|
|
2
|
+
|
|
3
|
+
import { useChartCartesianAxis, useChartTooltip, useChartInteraction, useChartZAxis, useChartHighlight, useChartPolarAxis, useChartBrush } from '@mui/x-charts/internals';
|
|
4
|
+
import { useChartProExport, useChartProZoom } from '@mui/x-charts-pro/plugins';
|
|
5
|
+
export const ALL_PLUGINS = [useChartZAxis, useChartBrush, useChartTooltip, useChartInteraction, useChartCartesianAxis, useChartPolarAxis, useChartHighlight, useChartProZoom, useChartProExport];
|
|
6
|
+
export const DEFAULT_PLUGINS = [useChartZAxis, useChartBrush, useChartTooltip, useChartInteraction, useChartCartesianAxis, useChartHighlight, useChartProZoom, useChartProExport];
|
package/index.js
CHANGED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type ChartSeriesType, type ConvertSignaturesIntoPlugins, type UseChartCartesianAxisSignature, type UseChartTooltipSignature, type UseChartInteractionSignature, type UseChartZAxisSignature, type UseChartHighlightSignature, type UseChartPolarAxisSignature, type UseChartBrushSignature } from '@mui/x-charts/internals';
|
|
2
|
+
import { type UseChartProExportSignature, type UseChartProZoomSignature } from '@mui/x-charts-pro/plugins';
|
|
3
|
+
export type AllPluginSignatures<TSeries extends ChartSeriesType = ChartSeriesType> = [UseChartZAxisSignature, UseChartBrushSignature, UseChartTooltipSignature, UseChartInteractionSignature, UseChartCartesianAxisSignature<TSeries>, UseChartPolarAxisSignature<TSeries>, UseChartHighlightSignature, UseChartProZoomSignature, UseChartProExportSignature];
|
|
4
|
+
export type AllPluginsType<TSeries extends ChartSeriesType = ChartSeriesType> = ConvertSignaturesIntoPlugins<AllPluginSignatures<TSeries>>;
|
|
5
|
+
export declare const ALL_PLUGINS: (import("@mui/x-charts/internals").ChartPlugin<UseChartZAxisSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartBrushSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartTooltipSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartInteractionSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartHighlightSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartProZoomSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartProExportSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartCartesianAxisSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartPolarAxisSignature<any>>)[];
|
|
6
|
+
export type DefaultPluginSignatures<TSeries extends ChartSeriesType = ChartSeriesType> = [UseChartZAxisSignature, UseChartBrushSignature, UseChartTooltipSignature, UseChartInteractionSignature, UseChartCartesianAxisSignature<TSeries>, UseChartPolarAxisSignature<TSeries>, UseChartHighlightSignature, UseChartProZoomSignature, UseChartProExportSignature];
|
|
7
|
+
export type DefaultPluginsType<TSeries extends ChartSeriesType = ChartSeriesType> = ConvertSignaturesIntoPlugins<DefaultPluginSignatures<TSeries>>;
|
|
8
|
+
export declare const DEFAULT_PLUGINS: (import("@mui/x-charts/internals").ChartPlugin<UseChartZAxisSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartBrushSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartTooltipSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartInteractionSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartHighlightSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartProZoomSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartProExportSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartCartesianAxisSignature<any>>)[];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.DEFAULT_PLUGINS = exports.ALL_PLUGINS = void 0;
|
|
7
|
+
var _internals = require("@mui/x-charts/internals");
|
|
8
|
+
var _plugins = require("@mui/x-charts-pro/plugins");
|
|
9
|
+
// This file should be removed after creating all plugins in favor of a file per chart type.
|
|
10
|
+
|
|
11
|
+
const ALL_PLUGINS = exports.ALL_PLUGINS = [_internals.useChartZAxis, _internals.useChartBrush, _internals.useChartTooltip, _internals.useChartInteraction, _internals.useChartCartesianAxis, _internals.useChartPolarAxis, _internals.useChartHighlight, _plugins.useChartProZoom, _plugins.useChartProExport];
|
|
12
|
+
const DEFAULT_PLUGINS = exports.DEFAULT_PLUGINS = [_internals.useChartZAxis, _internals.useChartBrush, _internals.useChartTooltip, _internals.useChartInteraction, _internals.useChartCartesianAxis, _internals.useChartHighlight, _plugins.useChartProZoom, _plugins.useChartProExport];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-charts-premium",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.22.1",
|
|
4
4
|
"author": "MUI Team",
|
|
5
5
|
"description": "The Premium plan edition of the MUI X Charts components.",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
"@mui/utils": "^7.3.5",
|
|
32
32
|
"clsx": "^2.1.1",
|
|
33
33
|
"prop-types": "^15.8.1",
|
|
34
|
-
"@mui/x-charts
|
|
35
|
-
"@mui/x-charts-vendor": "8.
|
|
36
|
-
"@mui/x-
|
|
37
|
-
"@mui/x-
|
|
38
|
-
"@mui/x-
|
|
34
|
+
"@mui/x-charts": "8.22.1",
|
|
35
|
+
"@mui/x-charts-vendor": "8.22.0",
|
|
36
|
+
"@mui/x-internals": "8.22.0",
|
|
37
|
+
"@mui/x-charts-pro": "8.22.1",
|
|
38
|
+
"@mui/x-license": "8.22.0"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"@emotion/react": "^11.9.0",
|