@mui/x-charts 9.5.0 → 9.6.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.
- package/BarChart/BarChart.js +1 -1
- package/BarChart/BarChart.mjs +1 -1
- package/BarChart/BarElement.js +2 -1
- package/BarChart/BarElement.mjs +2 -1
- package/BarChart/BarLabel/BarLabel.js +1 -1
- package/BarChart/BarLabel/BarLabel.mjs +1 -1
- package/BarChart/BarPlot.js +1 -1
- package/BarChart/BarPlot.mjs +1 -1
- package/CHANGELOG.md +151 -0
- package/ChartsAxis/ChartsAxis.js +1 -1
- package/ChartsAxis/ChartsAxis.mjs +1 -1
- package/ChartsAxisHighlight/ChartsAxisHighlight.js +1 -1
- package/ChartsAxisHighlight/ChartsAxisHighlight.mjs +1 -1
- package/ChartsAxisHighlightValue/ChartsAxisHighlightValue.js +2 -2
- package/ChartsAxisHighlightValue/ChartsAxisHighlightValue.mjs +2 -2
- package/ChartsBrushOverlay/ChartsBrushOverlay.d.mts +5 -1
- package/ChartsBrushOverlay/ChartsBrushOverlay.d.ts +5 -1
- package/ChartsBrushOverlay/ChartsBrushOverlay.js +12 -1
- package/ChartsBrushOverlay/ChartsBrushOverlay.mjs +14 -2
- package/ChartsClipPath/ChartsClipPath.js +1 -1
- package/ChartsClipPath/ChartsClipPath.mjs +1 -1
- package/ChartsContainer/ChartsContainer.js +5 -3
- package/ChartsContainer/ChartsContainer.mjs +5 -3
- package/ChartsDataProvider/ChartsDataProvider.js +5 -1
- package/ChartsDataProvider/ChartsDataProvider.mjs +5 -1
- package/ChartsGrid/ChartsGrid.js +5 -1
- package/ChartsGrid/ChartsGrid.mjs +5 -1
- package/ChartsLayerContainer/ChartsLayerContainer.js +1 -1
- package/ChartsLayerContainer/ChartsLayerContainer.mjs +1 -1
- package/ChartsLocalizationProvider/ChartsLocalizationProvider.js +1 -1
- package/ChartsLocalizationProvider/ChartsLocalizationProvider.mjs +1 -1
- package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlight.js +2 -2
- package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlight.mjs +2 -2
- package/ChartsRadialDataProvider/ChartsRadialDataProvider.js +9 -1
- package/ChartsRadialDataProvider/ChartsRadialDataProvider.mjs +9 -1
- package/ChartsRadialGrid/ChartsRadialGrid.js +5 -1
- package/ChartsRadialGrid/ChartsRadialGrid.mjs +5 -1
- package/ChartsRadiusAxis/ChartsRadiusAxis.d.mts +8 -2
- package/ChartsRadiusAxis/ChartsRadiusAxis.d.ts +8 -2
- package/ChartsRadiusAxis/ChartsRadiusAxis.js +143 -3
- package/ChartsRadiusAxis/ChartsRadiusAxis.mjs +144 -5
- package/ChartsReferenceLine/ChartsReferenceLine.js +1 -1
- package/ChartsReferenceLine/ChartsReferenceLine.mjs +1 -1
- package/ChartsRotationAxis/ChartsRotationAxis.d.mts +8 -2
- package/ChartsRotationAxis/ChartsRotationAxis.d.ts +8 -2
- package/ChartsRotationAxis/ChartsRotationAxis.js +140 -3
- package/ChartsRotationAxis/ChartsRotationAxis.mjs +141 -5
- package/ChartsRotationAxis/index.d.mts +1 -1
- package/ChartsRotationAxis/index.d.ts +1 -1
- package/ChartsSurface/ChartsSurface.js +1 -1
- package/ChartsSurface/ChartsSurface.mjs +1 -1
- package/ChartsSvgLayer/ChartsSvgLayer.js +1 -1
- package/ChartsSvgLayer/ChartsSvgLayer.mjs +1 -1
- package/ChartsText/ChartsText.js +2 -2
- package/ChartsText/ChartsText.mjs +2 -2
- package/ChartsTooltip/ChartsAxisTooltipContent.js +22 -3
- package/ChartsTooltip/ChartsAxisTooltipContent.mjs +22 -3
- package/ChartsTooltip/ChartsItemTooltipContent.js +52 -1
- package/ChartsTooltip/ChartsItemTooltipContent.mjs +52 -1
- package/ChartsTooltip/ChartsTooltip.js +13 -33
- package/ChartsTooltip/ChartsTooltip.mjs +13 -33
- package/ChartsTooltip/ChartsTooltipContainer.js +6 -26
- package/ChartsTooltip/ChartsTooltipContainer.mjs +6 -26
- package/ChartsWrapper/ChartsWrapper.js +1 -1
- package/ChartsWrapper/ChartsWrapper.mjs +1 -1
- package/ChartsXAxis/ChartsSingleXAxisTicks.js +1 -1
- package/ChartsXAxis/ChartsSingleXAxisTicks.mjs +1 -1
- package/ChartsXAxis/ChartsXAxis.js +11 -2
- package/ChartsXAxis/ChartsXAxis.mjs +11 -2
- package/ChartsYAxis/ChartsSingleYAxisTicks.js +1 -1
- package/ChartsYAxis/ChartsSingleYAxisTicks.mjs +1 -1
- package/ChartsYAxis/ChartsYAxis.js +11 -2
- package/ChartsYAxis/ChartsYAxis.mjs +11 -2
- package/ChartsYAxis/ChartsYAxisImpl.js +1 -1
- package/ChartsYAxis/ChartsYAxisImpl.mjs +1 -1
- package/Gauge/Gauge.js +1 -1
- package/Gauge/Gauge.mjs +1 -1
- package/Gauge/GaugeContainer.js +1 -1
- package/Gauge/GaugeContainer.mjs +1 -1
- package/Gauge/GaugeValueArc.js +2 -2
- package/Gauge/GaugeValueArc.mjs +2 -2
- package/Gauge/GaugeValueText.js +1 -1
- package/Gauge/GaugeValueText.mjs +1 -1
- package/LineChart/AnimatedArea.js +3 -3
- package/LineChart/AnimatedArea.mjs +3 -3
- package/LineChart/AnimatedLine.js +1 -1
- package/LineChart/AnimatedLine.mjs +1 -1
- package/LineChart/AreaElement.js +1 -1
- package/LineChart/AreaElement.mjs +1 -1
- package/LineChart/AreaPlot.js +1 -1
- package/LineChart/AreaPlot.mjs +1 -1
- package/LineChart/LineChart.js +1 -1
- package/LineChart/LineChart.mjs +1 -1
- package/LineChart/LineElement.js +4 -2
- package/LineChart/LineElement.mjs +4 -2
- package/LineChart/LineHighlightElement.js +1 -2
- package/LineChart/LineHighlightElement.mjs +1 -2
- package/LineChart/LineHighlightPlot.js +1 -1
- package/LineChart/LineHighlightPlot.mjs +1 -1
- package/LineChart/LinePlot.js +1 -1
- package/LineChart/LinePlot.mjs +1 -1
- package/LineChart/MarkElement.js +3 -2
- package/LineChart/MarkElement.mjs +3 -2
- package/LineChart/MarkPlot.js +2 -1
- package/LineChart/MarkPlot.mjs +2 -1
- package/PieChart/FocusedPieArc.d.mts +5 -1
- package/PieChart/FocusedPieArc.d.ts +5 -1
- package/PieChart/FocusedPieArc.js +22 -1
- package/PieChart/FocusedPieArc.mjs +24 -2
- package/PieChart/PieArc.js +1 -1
- package/PieChart/PieArc.mjs +1 -1
- package/PieChart/PieArcLabel.js +1 -1
- package/PieChart/PieArcLabel.mjs +1 -1
- package/PieChart/PieArcLabelPlot.js +7 -6
- package/PieChart/PieArcLabelPlot.mjs +7 -6
- package/PieChart/PieArcPlot.js +7 -6
- package/PieChart/PieArcPlot.mjs +7 -6
- package/PieChart/PieChart.js +1 -1
- package/PieChart/PieChart.mjs +1 -1
- package/PieChart/PiePlot.js +2 -1
- package/PieChart/PiePlot.mjs +2 -1
- package/RadarChart/RadarAxis/RadarAxis.js +5 -1
- package/RadarChart/RadarAxis/RadarAxis.mjs +5 -1
- package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.js +6 -2
- package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.mjs +6 -2
- package/RadarChart/RadarChart.js +1 -1
- package/RadarChart/RadarChart.mjs +1 -1
- package/RadarChart/RadarGrid/RadarGrid.js +1 -5
- package/RadarChart/RadarGrid/RadarGrid.mjs +1 -5
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.js +5 -1
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.mjs +5 -1
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.js +5 -1
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.mjs +5 -1
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.js +5 -1
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.mjs +5 -1
- package/ScatterChart/Scatter.js +1 -1
- package/ScatterChart/Scatter.mjs +1 -1
- package/ScatterChart/ScatterChart.js +5 -3
- package/ScatterChart/ScatterChart.mjs +5 -3
- package/ScatterChart/ScatterMarker.js +2 -2
- package/ScatterChart/ScatterMarker.mjs +2 -2
- package/ScatterChart/ScatterPlot.d.mts +8 -1
- package/ScatterChart/ScatterPlot.d.ts +8 -1
- package/ScatterChart/ScatterPlot.js +5 -2
- package/ScatterChart/ScatterPlot.mjs +5 -2
- package/ScatterChart/seriesConfig/getColor.js +6 -15
- package/ScatterChart/seriesConfig/getColor.mjs +6 -15
- package/SparkLineChart/SparkLineChart.js +1 -1
- package/SparkLineChart/SparkLineChart.mjs +1 -1
- package/Toolbar/Toolbar.js +1 -1
- package/Toolbar/Toolbar.mjs +1 -1
- package/Toolbar/ToolbarButton.js +1 -1
- package/Toolbar/ToolbarButton.mjs +1 -1
- package/index.d.mts +1 -1
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/internals/colorScale.d.mts +2 -2
- package/internals/colorScale.d.ts +2 -2
- package/internals/colorScale.js +2 -2
- package/internals/colorScale.mjs +2 -2
- package/internals/index.d.mts +2 -0
- package/internals/index.d.ts +2 -0
- package/internals/index.js +8 -0
- package/internals/index.mjs +2 -0
- package/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.js +16 -30
- package/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.mjs +17 -31
- package/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.types.d.mts +8 -1
- package/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.types.d.ts +8 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/colorProcessor.types.d.mts +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/colorProcessor.types.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipItemPositionGetter.types.d.mts +7 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipItemPositionGetter.types.d.ts +7 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.d.mts +0 -8
- package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.d.ts +0 -8
- package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.js +1 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.mjs +2 -2
- package/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.js +6 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.mjs +6 -1
- package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.js +6 -2
- package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.mjs +6 -2
- package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.selectors.d.mts +49 -0
- package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.selectors.d.ts +49 -0
- package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.selectors.js +124 -0
- package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.selectors.mjs +117 -0
- package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.types.d.mts +64 -0
- package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.types.d.ts +64 -0
- package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.types.js +5 -0
- package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.types.mjs +1 -0
- package/internals/resolveColorProcessor.js +4 -7
- package/internals/resolveColorProcessor.mjs +4 -7
- package/models/axis.d.mts +20 -4
- package/models/axis.d.ts +20 -4
- package/models/colorMapping.d.mts +8 -0
- package/models/colorMapping.d.ts +8 -0
- package/package.json +7 -4
- package/hooks/useIsHydrated.d.mts +0 -4
- package/hooks/useIsHydrated.d.ts +0 -4
- package/hooks/useIsHydrated.js +0 -19
- package/hooks/useIsHydrated.mjs +0 -14
|
@@ -98,6 +98,34 @@ function DefaultMultipleValueContent({
|
|
|
98
98
|
}, value.label))
|
|
99
99
|
});
|
|
100
100
|
}
|
|
101
|
+
process.env.NODE_ENV !== "production" ? DefaultMultipleValueContent.propTypes /* remove-proptypes */ = {
|
|
102
|
+
// ----------------------------- Warning --------------------------------
|
|
103
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
104
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
105
|
+
// ----------------------------------------------------------------------
|
|
106
|
+
/**
|
|
107
|
+
* Override or extend the styles applied to the component.
|
|
108
|
+
*/
|
|
109
|
+
classes: PropTypes.object,
|
|
110
|
+
item: PropTypes.shape({
|
|
111
|
+
color: PropTypes.string.isRequired,
|
|
112
|
+
identifier: PropTypes.shape({
|
|
113
|
+
dataIndex: PropTypes.number,
|
|
114
|
+
seriesId: PropTypes.string.isRequired,
|
|
115
|
+
type: PropTypes.oneOf(['radar']).isRequired
|
|
116
|
+
}).isRequired,
|
|
117
|
+
label: PropTypes.string,
|
|
118
|
+
markShape: PropTypes.oneOf(['circle', 'cross', 'diamond', 'square', 'star', 'triangle', 'wye']),
|
|
119
|
+
markType: PropTypes.oneOfType([PropTypes.oneOf(['circle', 'line', 'line+mark', 'square']), PropTypes.func]),
|
|
120
|
+
values: PropTypes.arrayOf(PropTypes.shape({
|
|
121
|
+
formattedValue: PropTypes.string,
|
|
122
|
+
label: PropTypes.string,
|
|
123
|
+
markShape: PropTypes.oneOf(['circle', 'cross', 'diamond', 'square', 'star', 'triangle', 'wye']),
|
|
124
|
+
markType: PropTypes.oneOfType([PropTypes.oneOf(['circle', 'line', 'line+mark', 'square']), PropTypes.func]),
|
|
125
|
+
value: PropTypes.number.isRequired
|
|
126
|
+
})).isRequired
|
|
127
|
+
}).isRequired
|
|
128
|
+
} : void 0;
|
|
101
129
|
function DefaultSingleValueContent({
|
|
102
130
|
classes: propClasses,
|
|
103
131
|
item
|
|
@@ -136,7 +164,30 @@ function DefaultSingleValueContent({
|
|
|
136
164
|
})]
|
|
137
165
|
});
|
|
138
166
|
}
|
|
139
|
-
process.env.NODE_ENV !== "production" ?
|
|
167
|
+
process.env.NODE_ENV !== "production" ? DefaultSingleValueContent.propTypes /* remove-proptypes */ = {
|
|
168
|
+
// ----------------------------- Warning --------------------------------
|
|
169
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
170
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
171
|
+
// ----------------------------------------------------------------------
|
|
172
|
+
/**
|
|
173
|
+
* Override or extend the styles applied to the component.
|
|
174
|
+
*/
|
|
175
|
+
classes: PropTypes.object,
|
|
176
|
+
item: PropTypes.shape({
|
|
177
|
+
color: PropTypes.string.isRequired,
|
|
178
|
+
formattedValue: PropTypes.any.isRequired,
|
|
179
|
+
identifier: PropTypes.shape({
|
|
180
|
+
dataIndex: PropTypes.number,
|
|
181
|
+
seriesId: PropTypes.string.isRequired,
|
|
182
|
+
type: PropTypes.oneOf(['bar', 'line', 'pie', 'radar', 'scatter']).isRequired
|
|
183
|
+
}).isRequired,
|
|
184
|
+
label: PropTypes.string,
|
|
185
|
+
markShape: PropTypes.oneOf(['circle', 'cross', 'diamond', 'square', 'star', 'triangle', 'wye']),
|
|
186
|
+
markType: PropTypes.oneOfType([PropTypes.oneOf(['circle', 'line', 'line+mark', 'square']), PropTypes.func]),
|
|
187
|
+
value: PropTypes.any.isRequired
|
|
188
|
+
}).isRequired
|
|
189
|
+
} : void 0;
|
|
190
|
+
process.env.NODE_ENV !== "production" ? ChartsItemTooltipContent.propTypes /* remove-proptypes */ = {
|
|
140
191
|
// ----------------------------- Warning --------------------------------
|
|
141
192
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
142
193
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -45,7 +45,7 @@ function ChartsTooltip(props) {
|
|
|
45
45
|
})
|
|
46
46
|
}));
|
|
47
47
|
}
|
|
48
|
-
process.env.NODE_ENV !== "production" ? ChartsTooltip.propTypes = {
|
|
48
|
+
process.env.NODE_ENV !== "production" ? ChartsTooltip.propTypes /* remove-proptypes */ = {
|
|
49
49
|
// ----------------------------- Warning --------------------------------
|
|
50
50
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
51
51
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -54,7 +54,7 @@ process.env.NODE_ENV !== "production" ? ChartsTooltip.propTypes = {
|
|
|
54
54
|
* Determine if the tooltip should be placed on the pointer location or on the node.
|
|
55
55
|
* @default 'pointer'
|
|
56
56
|
*/
|
|
57
|
-
anchor: _propTypes.default.oneOf(['node', 'pointer']),
|
|
57
|
+
anchor: _propTypes.default.oneOf(['chart', 'node', 'pointer']),
|
|
58
58
|
/**
|
|
59
59
|
* An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),
|
|
60
60
|
* or a function that returns either.
|
|
@@ -71,25 +71,6 @@ process.env.NODE_ENV !== "production" ? ChartsTooltip.propTypes = {
|
|
|
71
71
|
* Either a string to use a HTML element or a component.
|
|
72
72
|
*/
|
|
73
73
|
component: _propTypes.default.elementType,
|
|
74
|
-
/**
|
|
75
|
-
* The components used for each slot inside the Popper.
|
|
76
|
-
* Either a string to use a HTML element or a component.
|
|
77
|
-
*
|
|
78
|
-
* @deprecated use the `slots` prop instead. This prop will be removed in a future major release. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
|
|
79
|
-
* @default {}
|
|
80
|
-
*/
|
|
81
|
-
components: _propTypes.default.shape({
|
|
82
|
-
Root: _propTypes.default.elementType
|
|
83
|
-
}),
|
|
84
|
-
/**
|
|
85
|
-
* The props used for each slot inside the Popper.
|
|
86
|
-
*
|
|
87
|
-
* @deprecated use the `slotProps` prop instead. This prop will be removed in a future major release. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
|
|
88
|
-
* @default {}
|
|
89
|
-
*/
|
|
90
|
-
componentsProps: _propTypes.default.shape({
|
|
91
|
-
root: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object])
|
|
92
|
-
}),
|
|
93
74
|
/**
|
|
94
75
|
* An HTML element or function that returns one.
|
|
95
76
|
* The `container` will have the portal children appended to it.
|
|
@@ -102,10 +83,10 @@ process.env.NODE_ENV !== "production" ? ChartsTooltip.propTypes = {
|
|
|
102
83
|
*/
|
|
103
84
|
container: _propTypes.default.oneOfType([(props, propName) => {
|
|
104
85
|
if (props[propName] == null) {
|
|
105
|
-
return new Error(process.env.NODE_ENV !== "production" ? `
|
|
86
|
+
return new Error(process.env.NODE_ENV !== "production" ? `Prop '${propName}' is required but wasn't specified` : (0, _formatErrorMessage2.default)(6, propName));
|
|
106
87
|
}
|
|
107
88
|
if (typeof props[propName] !== 'object' || props[propName].nodeType !== 1) {
|
|
108
|
-
return new Error(process.env.NODE_ENV !== "production" ? `
|
|
89
|
+
return new Error(process.env.NODE_ENV !== "production" ? `Expected prop '${propName}' to be of type Element` : (0, _formatErrorMessage2.default)(49, propName));
|
|
109
90
|
}
|
|
110
91
|
return null;
|
|
111
92
|
}, _propTypes.default.func]),
|
|
@@ -145,13 +126,6 @@ process.env.NODE_ENV !== "production" ? ChartsTooltip.propTypes = {
|
|
|
145
126
|
* If `true`, the component is shown.
|
|
146
127
|
*/
|
|
147
128
|
open: _propTypes.default.bool,
|
|
148
|
-
/**
|
|
149
|
-
* The sort in which series items are displayed in the axis tooltip.
|
|
150
|
-
* When set to `none`, series are sorted as they are provided in the series property. Otherwise they are sorted by their value.
|
|
151
|
-
* Only applies when `trigger='axis'`.
|
|
152
|
-
* @default 'none'
|
|
153
|
-
*/
|
|
154
|
-
sort: _propTypes.default.oneOf(['none', 'asc', 'desc']),
|
|
155
129
|
/**
|
|
156
130
|
* Popper placement.
|
|
157
131
|
* @default 'bottom'
|
|
@@ -196,16 +170,22 @@ process.env.NODE_ENV !== "production" ? ChartsTooltip.propTypes = {
|
|
|
196
170
|
*/
|
|
197
171
|
position: _propTypes.default.oneOf(['bottom', 'left', 'right', 'top']),
|
|
198
172
|
/**
|
|
199
|
-
* The props used for each slot
|
|
173
|
+
* The props used for each component slot.
|
|
200
174
|
* @default {}
|
|
201
175
|
*/
|
|
202
176
|
slotProps: _propTypes.default.object,
|
|
203
177
|
/**
|
|
204
|
-
*
|
|
205
|
-
* Either a string to use a HTML element or a component.
|
|
178
|
+
* Overridable component slots.
|
|
206
179
|
* @default {}
|
|
207
180
|
*/
|
|
208
181
|
slots: _propTypes.default.object,
|
|
182
|
+
/**
|
|
183
|
+
* Defines the sort order in which series items are displayed in the axis tooltip.
|
|
184
|
+
* When set to `none`, series are displayed in the same order they are provided in the series property. Otherwise they are sorted by their value.
|
|
185
|
+
* Only applies when `trigger='axis'`.
|
|
186
|
+
* @default 'none'
|
|
187
|
+
*/
|
|
188
|
+
sort: _propTypes.default.oneOf(['asc', 'desc', 'none']),
|
|
209
189
|
/**
|
|
210
190
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
211
191
|
*/
|
|
@@ -39,7 +39,7 @@ function ChartsTooltip(props) {
|
|
|
39
39
|
})
|
|
40
40
|
}));
|
|
41
41
|
}
|
|
42
|
-
process.env.NODE_ENV !== "production" ? ChartsTooltip.propTypes = {
|
|
42
|
+
process.env.NODE_ENV !== "production" ? ChartsTooltip.propTypes /* remove-proptypes */ = {
|
|
43
43
|
// ----------------------------- Warning --------------------------------
|
|
44
44
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
45
45
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -48,7 +48,7 @@ process.env.NODE_ENV !== "production" ? ChartsTooltip.propTypes = {
|
|
|
48
48
|
* Determine if the tooltip should be placed on the pointer location or on the node.
|
|
49
49
|
* @default 'pointer'
|
|
50
50
|
*/
|
|
51
|
-
anchor: PropTypes.oneOf(['node', 'pointer']),
|
|
51
|
+
anchor: PropTypes.oneOf(['chart', 'node', 'pointer']),
|
|
52
52
|
/**
|
|
53
53
|
* An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),
|
|
54
54
|
* or a function that returns either.
|
|
@@ -65,25 +65,6 @@ process.env.NODE_ENV !== "production" ? ChartsTooltip.propTypes = {
|
|
|
65
65
|
* Either a string to use a HTML element or a component.
|
|
66
66
|
*/
|
|
67
67
|
component: PropTypes.elementType,
|
|
68
|
-
/**
|
|
69
|
-
* The components used for each slot inside the Popper.
|
|
70
|
-
* Either a string to use a HTML element or a component.
|
|
71
|
-
*
|
|
72
|
-
* @deprecated use the `slots` prop instead. This prop will be removed in a future major release. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
|
|
73
|
-
* @default {}
|
|
74
|
-
*/
|
|
75
|
-
components: PropTypes.shape({
|
|
76
|
-
Root: PropTypes.elementType
|
|
77
|
-
}),
|
|
78
|
-
/**
|
|
79
|
-
* The props used for each slot inside the Popper.
|
|
80
|
-
*
|
|
81
|
-
* @deprecated use the `slotProps` prop instead. This prop will be removed in a future major release. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
|
|
82
|
-
* @default {}
|
|
83
|
-
*/
|
|
84
|
-
componentsProps: PropTypes.shape({
|
|
85
|
-
root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
86
|
-
}),
|
|
87
68
|
/**
|
|
88
69
|
* An HTML element or function that returns one.
|
|
89
70
|
* The `container` will have the portal children appended to it.
|
|
@@ -96,10 +77,10 @@ process.env.NODE_ENV !== "production" ? ChartsTooltip.propTypes = {
|
|
|
96
77
|
*/
|
|
97
78
|
container: PropTypes.oneOfType([(props, propName) => {
|
|
98
79
|
if (props[propName] == null) {
|
|
99
|
-
return new Error(process.env.NODE_ENV !== "production" ? `
|
|
80
|
+
return new Error(process.env.NODE_ENV !== "production" ? `Prop '${propName}' is required but wasn't specified` : _formatErrorMessage(6, propName));
|
|
100
81
|
}
|
|
101
82
|
if (typeof props[propName] !== 'object' || props[propName].nodeType !== 1) {
|
|
102
|
-
return new Error(process.env.NODE_ENV !== "production" ? `
|
|
83
|
+
return new Error(process.env.NODE_ENV !== "production" ? `Expected prop '${propName}' to be of type Element` : _formatErrorMessage(49, propName));
|
|
103
84
|
}
|
|
104
85
|
return null;
|
|
105
86
|
}, PropTypes.func]),
|
|
@@ -139,13 +120,6 @@ process.env.NODE_ENV !== "production" ? ChartsTooltip.propTypes = {
|
|
|
139
120
|
* If `true`, the component is shown.
|
|
140
121
|
*/
|
|
141
122
|
open: PropTypes.bool,
|
|
142
|
-
/**
|
|
143
|
-
* The sort in which series items are displayed in the axis tooltip.
|
|
144
|
-
* When set to `none`, series are sorted as they are provided in the series property. Otherwise they are sorted by their value.
|
|
145
|
-
* Only applies when `trigger='axis'`.
|
|
146
|
-
* @default 'none'
|
|
147
|
-
*/
|
|
148
|
-
sort: PropTypes.oneOf(['none', 'asc', 'desc']),
|
|
149
123
|
/**
|
|
150
124
|
* Popper placement.
|
|
151
125
|
* @default 'bottom'
|
|
@@ -190,16 +164,22 @@ process.env.NODE_ENV !== "production" ? ChartsTooltip.propTypes = {
|
|
|
190
164
|
*/
|
|
191
165
|
position: PropTypes.oneOf(['bottom', 'left', 'right', 'top']),
|
|
192
166
|
/**
|
|
193
|
-
* The props used for each slot
|
|
167
|
+
* The props used for each component slot.
|
|
194
168
|
* @default {}
|
|
195
169
|
*/
|
|
196
170
|
slotProps: PropTypes.object,
|
|
197
171
|
/**
|
|
198
|
-
*
|
|
199
|
-
* Either a string to use a HTML element or a component.
|
|
172
|
+
* Overridable component slots.
|
|
200
173
|
* @default {}
|
|
201
174
|
*/
|
|
202
175
|
slots: PropTypes.object,
|
|
176
|
+
/**
|
|
177
|
+
* Defines the sort order in which series items are displayed in the axis tooltip.
|
|
178
|
+
* When set to `none`, series are displayed in the same order they are provided in the series property. Otherwise they are sorted by their value.
|
|
179
|
+
* Only applies when `trigger='axis'`.
|
|
180
|
+
* @default 'none'
|
|
181
|
+
*/
|
|
182
|
+
sort: PropTypes.oneOf(['asc', 'desc', 'none']),
|
|
203
183
|
/**
|
|
204
184
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
205
185
|
*/
|
|
@@ -236,7 +236,7 @@ function ChartsTooltipContainer(inProps) {
|
|
|
236
236
|
})]
|
|
237
237
|
});
|
|
238
238
|
}
|
|
239
|
-
process.env.NODE_ENV !== "production" ? ChartsTooltipContainer.propTypes = {
|
|
239
|
+
process.env.NODE_ENV !== "production" ? ChartsTooltipContainer.propTypes /* remove-proptypes */ = {
|
|
240
240
|
// ----------------------------- Warning --------------------------------
|
|
241
241
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
242
242
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -245,7 +245,7 @@ process.env.NODE_ENV !== "production" ? ChartsTooltipContainer.propTypes = {
|
|
|
245
245
|
* Determine if the tooltip should be placed on the pointer location or on the node.
|
|
246
246
|
* @default 'pointer'
|
|
247
247
|
*/
|
|
248
|
-
anchor: _propTypes.default.oneOf(['node', 'pointer']),
|
|
248
|
+
anchor: _propTypes.default.oneOf(['chart', 'node', 'pointer']),
|
|
249
249
|
/**
|
|
250
250
|
* An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),
|
|
251
251
|
* or a function that returns either.
|
|
@@ -266,25 +266,6 @@ process.env.NODE_ENV !== "production" ? ChartsTooltipContainer.propTypes = {
|
|
|
266
266
|
* Either a string to use a HTML element or a component.
|
|
267
267
|
*/
|
|
268
268
|
component: _propTypes.default.elementType,
|
|
269
|
-
/**
|
|
270
|
-
* The components used for each slot inside the Popper.
|
|
271
|
-
* Either a string to use a HTML element or a component.
|
|
272
|
-
*
|
|
273
|
-
* @deprecated use the `slots` prop instead. This prop will be removed in a future major release. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
|
|
274
|
-
* @default {}
|
|
275
|
-
*/
|
|
276
|
-
components: _propTypes.default.shape({
|
|
277
|
-
Root: _propTypes.default.elementType
|
|
278
|
-
}),
|
|
279
|
-
/**
|
|
280
|
-
* The props used for each slot inside the Popper.
|
|
281
|
-
*
|
|
282
|
-
* @deprecated use the `slotProps` prop instead. This prop will be removed in a future major release. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
|
|
283
|
-
* @default {}
|
|
284
|
-
*/
|
|
285
|
-
componentsProps: _propTypes.default.shape({
|
|
286
|
-
root: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object])
|
|
287
|
-
}),
|
|
288
269
|
/**
|
|
289
270
|
* An HTML element or function that returns one.
|
|
290
271
|
* The `container` will have the portal children appended to it.
|
|
@@ -297,10 +278,10 @@ process.env.NODE_ENV !== "production" ? ChartsTooltipContainer.propTypes = {
|
|
|
297
278
|
*/
|
|
298
279
|
container: _propTypes.default.oneOfType([(props, propName) => {
|
|
299
280
|
if (props[propName] == null) {
|
|
300
|
-
return new Error(process.env.NODE_ENV !== "production" ? `
|
|
281
|
+
return new Error(process.env.NODE_ENV !== "production" ? `Prop '${propName}' is required but wasn't specified` : (0, _formatErrorMessage2.default)(6, propName));
|
|
301
282
|
}
|
|
302
283
|
if (typeof props[propName] !== 'object' || props[propName].nodeType !== 1) {
|
|
303
|
-
return new Error(process.env.NODE_ENV !== "production" ? `
|
|
284
|
+
return new Error(process.env.NODE_ENV !== "production" ? `Expected prop '${propName}' to be of type Element` : (0, _formatErrorMessage2.default)(49, propName));
|
|
304
285
|
}
|
|
305
286
|
return null;
|
|
306
287
|
}, _propTypes.default.func]),
|
|
@@ -384,13 +365,12 @@ process.env.NODE_ENV !== "production" ? ChartsTooltipContainer.propTypes = {
|
|
|
384
365
|
*/
|
|
385
366
|
position: _propTypes.default.oneOf(['bottom', 'left', 'right', 'top']),
|
|
386
367
|
/**
|
|
387
|
-
* The props used for each slot
|
|
368
|
+
* The props used for each component slot.
|
|
388
369
|
* @default {}
|
|
389
370
|
*/
|
|
390
371
|
slotProps: _propTypes.default.object,
|
|
391
372
|
/**
|
|
392
|
-
*
|
|
393
|
-
* Either a string to use a HTML element or a component.
|
|
373
|
+
* Overridable component slots.
|
|
394
374
|
* @default {}
|
|
395
375
|
*/
|
|
396
376
|
slots: _propTypes.default.object,
|
|
@@ -229,7 +229,7 @@ function ChartsTooltipContainer(inProps) {
|
|
|
229
229
|
})]
|
|
230
230
|
});
|
|
231
231
|
}
|
|
232
|
-
process.env.NODE_ENV !== "production" ? ChartsTooltipContainer.propTypes = {
|
|
232
|
+
process.env.NODE_ENV !== "production" ? ChartsTooltipContainer.propTypes /* remove-proptypes */ = {
|
|
233
233
|
// ----------------------------- Warning --------------------------------
|
|
234
234
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
235
235
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -238,7 +238,7 @@ process.env.NODE_ENV !== "production" ? ChartsTooltipContainer.propTypes = {
|
|
|
238
238
|
* Determine if the tooltip should be placed on the pointer location or on the node.
|
|
239
239
|
* @default 'pointer'
|
|
240
240
|
*/
|
|
241
|
-
anchor: PropTypes.oneOf(['node', 'pointer']),
|
|
241
|
+
anchor: PropTypes.oneOf(['chart', 'node', 'pointer']),
|
|
242
242
|
/**
|
|
243
243
|
* An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),
|
|
244
244
|
* or a function that returns either.
|
|
@@ -259,25 +259,6 @@ process.env.NODE_ENV !== "production" ? ChartsTooltipContainer.propTypes = {
|
|
|
259
259
|
* Either a string to use a HTML element or a component.
|
|
260
260
|
*/
|
|
261
261
|
component: PropTypes.elementType,
|
|
262
|
-
/**
|
|
263
|
-
* The components used for each slot inside the Popper.
|
|
264
|
-
* Either a string to use a HTML element or a component.
|
|
265
|
-
*
|
|
266
|
-
* @deprecated use the `slots` prop instead. This prop will be removed in a future major release. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
|
|
267
|
-
* @default {}
|
|
268
|
-
*/
|
|
269
|
-
components: PropTypes.shape({
|
|
270
|
-
Root: PropTypes.elementType
|
|
271
|
-
}),
|
|
272
|
-
/**
|
|
273
|
-
* The props used for each slot inside the Popper.
|
|
274
|
-
*
|
|
275
|
-
* @deprecated use the `slotProps` prop instead. This prop will be removed in a future major release. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
|
|
276
|
-
* @default {}
|
|
277
|
-
*/
|
|
278
|
-
componentsProps: PropTypes.shape({
|
|
279
|
-
root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
280
|
-
}),
|
|
281
262
|
/**
|
|
282
263
|
* An HTML element or function that returns one.
|
|
283
264
|
* The `container` will have the portal children appended to it.
|
|
@@ -290,10 +271,10 @@ process.env.NODE_ENV !== "production" ? ChartsTooltipContainer.propTypes = {
|
|
|
290
271
|
*/
|
|
291
272
|
container: PropTypes.oneOfType([(props, propName) => {
|
|
292
273
|
if (props[propName] == null) {
|
|
293
|
-
return new Error(process.env.NODE_ENV !== "production" ? `
|
|
274
|
+
return new Error(process.env.NODE_ENV !== "production" ? `Prop '${propName}' is required but wasn't specified` : _formatErrorMessage(6, propName));
|
|
294
275
|
}
|
|
295
276
|
if (typeof props[propName] !== 'object' || props[propName].nodeType !== 1) {
|
|
296
|
-
return new Error(process.env.NODE_ENV !== "production" ? `
|
|
277
|
+
return new Error(process.env.NODE_ENV !== "production" ? `Expected prop '${propName}' to be of type Element` : _formatErrorMessage(49, propName));
|
|
297
278
|
}
|
|
298
279
|
return null;
|
|
299
280
|
}, PropTypes.func]),
|
|
@@ -377,13 +358,12 @@ process.env.NODE_ENV !== "production" ? ChartsTooltipContainer.propTypes = {
|
|
|
377
358
|
*/
|
|
378
359
|
position: PropTypes.oneOf(['bottom', 'left', 'right', 'top']),
|
|
379
360
|
/**
|
|
380
|
-
* The props used for each slot
|
|
361
|
+
* The props used for each component slot.
|
|
381
362
|
* @default {}
|
|
382
363
|
*/
|
|
383
364
|
slotProps: PropTypes.object,
|
|
384
365
|
/**
|
|
385
|
-
*
|
|
386
|
-
* Either a string to use a HTML element or a component.
|
|
366
|
+
* Overridable component slots.
|
|
387
367
|
* @default {}
|
|
388
368
|
*/
|
|
389
369
|
slots: PropTypes.object,
|
|
@@ -152,7 +152,7 @@ const ChartsWrapper = exports.ChartsWrapper = /*#__PURE__*/React.forwardRef(func
|
|
|
152
152
|
}));
|
|
153
153
|
});
|
|
154
154
|
if (process.env.NODE_ENV !== "production") ChartsWrapper.displayName = "ChartsWrapper";
|
|
155
|
-
process.env.NODE_ENV !== "production" ? ChartsWrapper.propTypes = {
|
|
155
|
+
process.env.NODE_ENV !== "production" ? ChartsWrapper.propTypes /* remove-proptypes */ = {
|
|
156
156
|
// ----------------------------- Warning --------------------------------
|
|
157
157
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
158
158
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -145,7 +145,7 @@ const ChartsWrapper = /*#__PURE__*/React.forwardRef(function ChartsWrapper(props
|
|
|
145
145
|
}));
|
|
146
146
|
});
|
|
147
147
|
if (process.env.NODE_ENV !== "production") ChartsWrapper.displayName = "ChartsWrapper";
|
|
148
|
-
process.env.NODE_ENV !== "production" ? ChartsWrapper.propTypes = {
|
|
148
|
+
process.env.NODE_ENV !== "production" ? ChartsWrapper.propTypes /* remove-proptypes */ = {
|
|
149
149
|
// ----------------------------- Warning --------------------------------
|
|
150
150
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
151
151
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -10,7 +10,7 @@ exports.ChartsSingleXAxisTicks = ChartsSingleXAxisTicks;
|
|
|
10
10
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
11
|
var React = _interopRequireWildcard(require("react"));
|
|
12
12
|
var _RtlProvider = require("@mui/system/RtlProvider");
|
|
13
|
-
var _useIsHydrated = require("
|
|
13
|
+
var _useIsHydrated = require("@mui/x-internals/useIsHydrated");
|
|
14
14
|
var _useTicks = require("../hooks/useTicks");
|
|
15
15
|
var _useMounted = require("../hooks/useMounted");
|
|
16
16
|
var _useDrawingArea = require("../hooks/useDrawingArea");
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { useRtl } from '@mui/system/RtlProvider';
|
|
6
|
-
import { useIsHydrated } from
|
|
6
|
+
import { useIsHydrated } from '@mui/x-internals/useIsHydrated';
|
|
7
7
|
import { useTicks } from "../hooks/useTicks.mjs";
|
|
8
8
|
import { useMounted } from "../hooks/useMounted.mjs";
|
|
9
9
|
import { useDrawingArea } from "../hooks/useDrawingArea.mjs";
|
|
@@ -37,7 +37,7 @@ function ChartsXAxis(inProps) {
|
|
|
37
37
|
axis: axis
|
|
38
38
|
}));
|
|
39
39
|
}
|
|
40
|
-
process.env.NODE_ENV !== "production" ? ChartsXAxis.propTypes = {
|
|
40
|
+
process.env.NODE_ENV !== "production" ? ChartsXAxis.propTypes /* remove-proptypes */ = {
|
|
41
41
|
// ----------------------------- Warning --------------------------------
|
|
42
42
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
43
43
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -52,6 +52,10 @@ process.env.NODE_ENV !== "production" ? ChartsXAxis.propTypes = {
|
|
|
52
52
|
* Override or extend the styles applied to the component.
|
|
53
53
|
*/
|
|
54
54
|
classes: _propTypes.default.object,
|
|
55
|
+
/**
|
|
56
|
+
* A CSS class name applied to the root element.
|
|
57
|
+
*/
|
|
58
|
+
className: _propTypes.default.string,
|
|
55
59
|
/**
|
|
56
60
|
* If true, the axis line is disabled.
|
|
57
61
|
* @default false
|
|
@@ -141,5 +145,10 @@ process.env.NODE_ENV !== "production" ? ChartsXAxis.propTypes = {
|
|
|
141
145
|
* The size of the ticks.
|
|
142
146
|
* @default 6
|
|
143
147
|
*/
|
|
144
|
-
tickSize: _propTypes.default.number
|
|
148
|
+
tickSize: _propTypes.default.number,
|
|
149
|
+
/**
|
|
150
|
+
* The minimum space between ticks when using an ordinal scale. It defines the minimum distance in pixels between two ticks.
|
|
151
|
+
* @default 0
|
|
152
|
+
*/
|
|
153
|
+
tickSpacing: _propTypes.default.number
|
|
145
154
|
} : void 0;
|
|
@@ -31,7 +31,7 @@ function ChartsXAxis(inProps) {
|
|
|
31
31
|
axis: axis
|
|
32
32
|
}));
|
|
33
33
|
}
|
|
34
|
-
process.env.NODE_ENV !== "production" ? ChartsXAxis.propTypes = {
|
|
34
|
+
process.env.NODE_ENV !== "production" ? ChartsXAxis.propTypes /* remove-proptypes */ = {
|
|
35
35
|
// ----------------------------- Warning --------------------------------
|
|
36
36
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
37
37
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -46,6 +46,10 @@ process.env.NODE_ENV !== "production" ? ChartsXAxis.propTypes = {
|
|
|
46
46
|
* Override or extend the styles applied to the component.
|
|
47
47
|
*/
|
|
48
48
|
classes: PropTypes.object,
|
|
49
|
+
/**
|
|
50
|
+
* A CSS class name applied to the root element.
|
|
51
|
+
*/
|
|
52
|
+
className: PropTypes.string,
|
|
49
53
|
/**
|
|
50
54
|
* If true, the axis line is disabled.
|
|
51
55
|
* @default false
|
|
@@ -135,6 +139,11 @@ process.env.NODE_ENV !== "production" ? ChartsXAxis.propTypes = {
|
|
|
135
139
|
* The size of the ticks.
|
|
136
140
|
* @default 6
|
|
137
141
|
*/
|
|
138
|
-
tickSize: PropTypes.number
|
|
142
|
+
tickSize: PropTypes.number,
|
|
143
|
+
/**
|
|
144
|
+
* The minimum space between ticks when using an ordinal scale. It defines the minimum distance in pixels between two ticks.
|
|
145
|
+
* @default 0
|
|
146
|
+
*/
|
|
147
|
+
tickSpacing: PropTypes.number
|
|
139
148
|
} : void 0;
|
|
140
149
|
export { ChartsXAxis };
|
|
@@ -10,7 +10,7 @@ exports.ChartsSingleYAxisTicks = ChartsSingleYAxisTicks;
|
|
|
10
10
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
11
|
var React = _interopRequireWildcard(require("react"));
|
|
12
12
|
var _RtlProvider = require("@mui/system/RtlProvider");
|
|
13
|
-
var _useIsHydrated = require("
|
|
13
|
+
var _useIsHydrated = require("@mui/x-internals/useIsHydrated");
|
|
14
14
|
var _useTicks = require("../hooks/useTicks");
|
|
15
15
|
var _useDrawingArea = require("../hooks/useDrawingArea");
|
|
16
16
|
var _ChartsProvider = require("../context/ChartsProvider");
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { useRtl } from '@mui/system/RtlProvider';
|
|
6
|
-
import { useIsHydrated } from
|
|
6
|
+
import { useIsHydrated } from '@mui/x-internals/useIsHydrated';
|
|
7
7
|
import { useTicks } from "../hooks/useTicks.mjs";
|
|
8
8
|
import { useDrawingArea } from "../hooks/useDrawingArea.mjs";
|
|
9
9
|
import { useChartsContext } from "../context/ChartsProvider/index.mjs";
|
|
@@ -37,7 +37,7 @@ function ChartsYAxis(inProps) {
|
|
|
37
37
|
axis: axis
|
|
38
38
|
}));
|
|
39
39
|
}
|
|
40
|
-
process.env.NODE_ENV !== "production" ? ChartsYAxis.propTypes = {
|
|
40
|
+
process.env.NODE_ENV !== "production" ? ChartsYAxis.propTypes /* remove-proptypes */ = {
|
|
41
41
|
// ----------------------------- Warning --------------------------------
|
|
42
42
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
43
43
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -52,6 +52,10 @@ process.env.NODE_ENV !== "production" ? ChartsYAxis.propTypes = {
|
|
|
52
52
|
* Override or extend the styles applied to the component.
|
|
53
53
|
*/
|
|
54
54
|
classes: _propTypes.default.object,
|
|
55
|
+
/**
|
|
56
|
+
* A CSS class name applied to the root element.
|
|
57
|
+
*/
|
|
58
|
+
className: _propTypes.default.string,
|
|
55
59
|
/**
|
|
56
60
|
* If true, the axis line is disabled.
|
|
57
61
|
* @default false
|
|
@@ -135,5 +139,10 @@ process.env.NODE_ENV !== "production" ? ChartsYAxis.propTypes = {
|
|
|
135
139
|
* The size of the ticks.
|
|
136
140
|
* @default 6
|
|
137
141
|
*/
|
|
138
|
-
tickSize: _propTypes.default.number
|
|
142
|
+
tickSize: _propTypes.default.number,
|
|
143
|
+
/**
|
|
144
|
+
* The minimum space between ticks when using an ordinal scale. It defines the minimum distance in pixels between two ticks.
|
|
145
|
+
* @default 0
|
|
146
|
+
*/
|
|
147
|
+
tickSpacing: _propTypes.default.number
|
|
139
148
|
} : void 0;
|
|
@@ -31,7 +31,7 @@ function ChartsYAxis(inProps) {
|
|
|
31
31
|
axis: axis
|
|
32
32
|
}));
|
|
33
33
|
}
|
|
34
|
-
process.env.NODE_ENV !== "production" ? ChartsYAxis.propTypes = {
|
|
34
|
+
process.env.NODE_ENV !== "production" ? ChartsYAxis.propTypes /* remove-proptypes */ = {
|
|
35
35
|
// ----------------------------- Warning --------------------------------
|
|
36
36
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
37
37
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -46,6 +46,10 @@ process.env.NODE_ENV !== "production" ? ChartsYAxis.propTypes = {
|
|
|
46
46
|
* Override or extend the styles applied to the component.
|
|
47
47
|
*/
|
|
48
48
|
classes: PropTypes.object,
|
|
49
|
+
/**
|
|
50
|
+
* A CSS class name applied to the root element.
|
|
51
|
+
*/
|
|
52
|
+
className: PropTypes.string,
|
|
49
53
|
/**
|
|
50
54
|
* If true, the axis line is disabled.
|
|
51
55
|
* @default false
|
|
@@ -129,6 +133,11 @@ process.env.NODE_ENV !== "production" ? ChartsYAxis.propTypes = {
|
|
|
129
133
|
* The size of the ticks.
|
|
130
134
|
* @default 6
|
|
131
135
|
*/
|
|
132
|
-
tickSize: PropTypes.number
|
|
136
|
+
tickSize: PropTypes.number,
|
|
137
|
+
/**
|
|
138
|
+
* The minimum space between ticks when using an ordinal scale. It defines the minimum distance in pixels between two ticks.
|
|
139
|
+
* @default 0
|
|
140
|
+
*/
|
|
141
|
+
tickSpacing: PropTypes.number
|
|
133
142
|
} : void 0;
|
|
134
143
|
export { ChartsYAxis };
|
|
@@ -13,13 +13,13 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
13
13
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
14
14
|
var _useSlotProps = _interopRequireDefault(require("@mui/utils/useSlotProps"));
|
|
15
15
|
var _styles = require("@mui/material/styles");
|
|
16
|
+
var _useIsHydrated = require("@mui/x-internals/useIsHydrated");
|
|
16
17
|
var _ChartsSingleYAxisTicks = require("./ChartsSingleYAxisTicks");
|
|
17
18
|
var _ChartsGroupedYAxisTicks = require("./ChartsGroupedYAxisTicks");
|
|
18
19
|
var _ChartsText = require("../ChartsText");
|
|
19
20
|
var _utilities = require("./utilities");
|
|
20
21
|
var _isInfinity = require("../internals/isInfinity");
|
|
21
22
|
var _useDrawingArea = require("../hooks/useDrawingArea");
|
|
22
|
-
var _useIsHydrated = require("../hooks/useIsHydrated");
|
|
23
23
|
var _scaleGuards = require("../internals/scaleGuards");
|
|
24
24
|
var _domUtils = require("../internals/domUtils");
|
|
25
25
|
var _AxisSharedComponents = require("../internals/components/AxisSharedComponents");
|
|
@@ -8,13 +8,13 @@ import * as React from 'react';
|
|
|
8
8
|
import clsx from 'clsx';
|
|
9
9
|
import useSlotProps from '@mui/utils/useSlotProps';
|
|
10
10
|
import { useThemeProps, useTheme, styled } from '@mui/material/styles';
|
|
11
|
+
import { useIsHydrated } from '@mui/x-internals/useIsHydrated';
|
|
11
12
|
import { ChartsSingleYAxisTicks } from "./ChartsSingleYAxisTicks.mjs";
|
|
12
13
|
import { ChartsGroupedYAxisTicks } from "./ChartsGroupedYAxisTicks.mjs";
|
|
13
14
|
import { ChartsText } from "../ChartsText/index.mjs";
|
|
14
15
|
import { defaultProps, useUtilityClasses } from "./utilities.mjs";
|
|
15
16
|
import { isInfinity } from "../internals/isInfinity.mjs";
|
|
16
17
|
import { useDrawingArea } from "../hooks/useDrawingArea.mjs";
|
|
17
|
-
import { useIsHydrated } from "../hooks/useIsHydrated.mjs";
|
|
18
18
|
import { isOrdinalScale } from "../internals/scaleGuards.mjs";
|
|
19
19
|
import { getStringSize } from "../internals/domUtils.mjs";
|
|
20
20
|
import { AxisRoot } from "../internals/components/AxisSharedComponents.mjs";
|
package/Gauge/Gauge.js
CHANGED
|
@@ -49,7 +49,7 @@ const Gauge = exports.Gauge = /*#__PURE__*/React.forwardRef(function Gauge(props
|
|
|
49
49
|
}));
|
|
50
50
|
});
|
|
51
51
|
if (process.env.NODE_ENV !== "production") Gauge.displayName = "Gauge";
|
|
52
|
-
process.env.NODE_ENV !== "production" ? Gauge.propTypes = {
|
|
52
|
+
process.env.NODE_ENV !== "production" ? Gauge.propTypes /* remove-proptypes */ = {
|
|
53
53
|
// ----------------------------- Warning --------------------------------
|
|
54
54
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
55
55
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
package/Gauge/Gauge.mjs
CHANGED
|
@@ -42,7 +42,7 @@ const Gauge = /*#__PURE__*/React.forwardRef(function Gauge(props, ref) {
|
|
|
42
42
|
}));
|
|
43
43
|
});
|
|
44
44
|
if (process.env.NODE_ENV !== "production") Gauge.displayName = "Gauge";
|
|
45
|
-
process.env.NODE_ENV !== "production" ? Gauge.propTypes = {
|
|
45
|
+
process.env.NODE_ENV !== "production" ? Gauge.propTypes /* remove-proptypes */ = {
|
|
46
46
|
// ----------------------------- Warning --------------------------------
|
|
47
47
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
48
48
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|