Skip to content

Commit f6bdb8c

Browse files
Fix rebase
1 parent d4cae59 commit f6bdb8c

File tree

7 files changed

+0
-227
lines changed

7 files changed

+0
-227
lines changed

packages/x-charts-pro/src/BarChartPro/BarChartPro.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import { useBarChartProps, ChartsWrapper } from '@mui/x-charts/internals';
1414
import { ChartsSurface } from '@mui/x-charts/ChartsSurface';
1515
import { ChartZoomSlider } from '../ChartZoomSlider';
1616
import { ChartsToolbarPro } from '../ChartsToolbarPro';
17-
import { ChartZoomSlider } from '../ChartZoomSlider';
1817
import { ChartContainerProProps } from '../ChartContainerPro';
1918
import { useChartContainerProProps } from '../ChartContainerPro/useChartContainerProProps';
2019
import { ChartDataProviderPro } from '../ChartDataProviderPro';

packages/x-charts-pro/src/ChartsToolbarPro/ChartsToolbarExportButton.tsx

-76
This file was deleted.

packages/x-charts-pro/src/LineChartPro/LineChartPro.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import { ChartsSurface } from '@mui/x-charts/ChartsSurface';
2020
import { useLineChartProps, ChartsWrapper } from '@mui/x-charts/internals';
2121
import { ChartZoomSlider } from '../ChartZoomSlider';
2222
import { ChartsToolbarPro } from '../ChartsToolbarPro';
23-
import { ChartZoomSlider } from '../ChartZoomSlider';
2423
import { ChartContainerProProps } from '../ChartContainerPro';
2524
import { useChartContainerProProps } from '../ChartContainerPro/useChartContainerProProps';
2625
import { ChartDataProviderPro } from '../ChartDataProviderPro';

packages/x-charts-pro/src/ScatterChartPro/ScatterChartPro.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import { ChartsTooltip } from '@mui/x-charts/ChartsTooltip';
1313
import { useScatterChartProps, ChartsWrapper } from '@mui/x-charts/internals';
1414
import { ChartZoomSlider } from '../ChartZoomSlider';
1515
import { ChartsToolbarPro } from '../ChartsToolbarPro';
16-
import { ChartZoomSlider } from '../ChartZoomSlider';
1716
import { useChartContainerProProps } from '../ChartContainerPro/useChartContainerProProps';
1817
import { ChartContainerProProps } from '../ChartContainerPro/ChartContainerPro';
1918
import { ChartDataProviderPro } from '../ChartDataProviderPro';

packages/x-charts-pro/src/index.ts

-2
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,3 @@ export * from './LineChartPro';
4040
export * from './FunnelChart';
4141
export * from './ChartZoomSlider';
4242
export * from './ChartsToolbarPro';
43-
export * from './ChartZoomSlider';
44-
export * from './ChartsToolbarPro';

packages/x-charts-pro/src/internals/plugins/useChartProZoom/useChartProZoom.types.ts

-8
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,6 @@ export interface UseChartProZoomPublicApi {
5656
}
5757

5858
export interface UseChartProZoomInstance extends UseChartProZoomPublicApi {
59-
/**
60-
* Zoom in the chart.
61-
*/
62-
zoomIn: () => void;
63-
/**
64-
* Zoom out the chart.
65-
*/
66-
zoomOut: () => void;
6759
/**
6860
* Translate the zoom range (i.e., both start and end) for a specific axis.
6961
* @param {AxisId} axisId The id of the axis to move the zoom range for.

packages/x-charts/src/Toolbar/ToolbarButton.tsx

-138
Original file line numberDiff line numberDiff line change
@@ -18,146 +18,8 @@ ToolbarButton.propTypes = {
1818
// | These PropTypes are generated from the TypeScript type definitions |
1919
// | To update them edit the TypeScript types and run "pnpm proptypes" |
2020
// ----------------------------------------------------------------------
21-
/**
22-
* A ref for imperative actions.
23-
* It currently only supports `focusVisible()` action.
24-
*/
25-
action: PropTypes.oneOfType([
26-
PropTypes.func,
27-
PropTypes.shape({
28-
current: PropTypes.shape({
29-
focusVisible: PropTypes.func.isRequired,
30-
}),
31-
}),
32-
]),
33-
/**
34-
* If `true`, the ripples are centered.
35-
* They won't start at the cursor interaction position.
36-
* @default false
37-
*/
38-
centerRipple: PropTypes.bool,
3921
className: PropTypes.string,
40-
/**
41-
* The color of the component.
42-
* It supports both default and custom theme colors, which can be added as shown in the
43-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
44-
* @default 'default'
45-
*/
46-
color: PropTypes.oneOf([
47-
'default',
48-
'error',
49-
'info',
50-
'inherit',
51-
'primary',
52-
'secondary',
53-
'success',
54-
'warning',
55-
]),
56-
component: PropTypes.elementType,
57-
/**
58-
* If `true`, the component is disabled.
59-
* @default false
60-
*/
61-
disabled: PropTypes.bool,
62-
/**
63-
* If `true`, the keyboard focus ripple is disabled.
64-
* @default false
65-
*/
66-
disableFocusRipple: PropTypes.bool,
67-
/**
68-
* If `true`, the ripple effect is disabled.
69-
*
70-
* ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
71-
* to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
72-
* @default false
73-
*/
74-
disableRipple: PropTypes.bool,
75-
/**
76-
* If `true`, the touch ripple effect is disabled.
77-
* @default false
78-
*/
79-
disableTouchRipple: PropTypes.bool,
80-
/**
81-
* If given, uses a negative margin to counteract the padding on one
82-
* side (this is often helpful for aligning the left or right
83-
* side of the icon with content above or below, without ruining the border
84-
* size and shape).
85-
* @default false
86-
*/
87-
edge: PropTypes.oneOf(['end', 'start', false]),
88-
/**
89-
* If `true`, the base button will have a keyboard focus ripple.
90-
* @default false
91-
*/
92-
focusRipple: PropTypes.bool,
93-
/**
94-
* This prop can help identify which element has keyboard focus.
95-
* The class name will be applied when the element gains the focus through keyboard interaction.
96-
* It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
97-
* The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
98-
* A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
99-
* if needed.
100-
*/
101-
focusVisibleClassName: PropTypes.string,
102-
/**
103-
* The component used to render a link when the `href` prop is provided.
104-
* @default 'a'
105-
*/
106-
LinkComponent: PropTypes.elementType,
107-
/**
108-
* If `true`, the loading indicator is visible and the button is disabled.
109-
* If `true | false`, the loading wrapper is always rendered before the children to prevent [Google Translation Crash](https://github.com/mui/material-ui/issues/27853).
110-
* @default null
111-
*/
112-
loading: PropTypes.bool,
113-
/**
114-
* Element placed before the children if the button is in loading state.
115-
* The node should contain an element with `role="progressbar"` with an accessible name.
116-
* By default, it renders a `CircularProgress` that is labeled by the button itself.
117-
* @default <CircularProgress color="inherit" size={16} />
118-
*/
119-
loadingIndicator: PropTypes.node,
120-
/**
121-
* Callback fired when the component is focused with a keyboard.
122-
* We trigger a `onFocus` callback too.
123-
*/
124-
onFocusVisible: PropTypes.func,
125-
/**
126-
* The size of the component.
127-
* `small` is equivalent to the dense button styling.
128-
* @default 'medium'
129-
*/
130-
size: PropTypes.oneOf(['large', 'medium', 'small']),
13122
style: PropTypes.object,
132-
/**
133-
* The system prop that allows defining system overrides as well as additional CSS styles.
134-
*/
135-
sx: PropTypes.oneOfType([
136-
PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])),
137-
PropTypes.func,
138-
PropTypes.object,
139-
]),
140-
/**
141-
* @default 0
142-
*/
143-
tabIndex: PropTypes.number,
144-
/**
145-
* Props applied to the `TouchRipple` element.
146-
*/
147-
TouchRippleProps: PropTypes.object,
148-
/**
149-
* A ref that points to the `TouchRipple` element.
150-
*/
151-
touchRippleRef: PropTypes.oneOfType([
152-
PropTypes.func,
153-
PropTypes.shape({
154-
current: PropTypes.shape({
155-
pulsate: PropTypes.func.isRequired,
156-
start: PropTypes.func.isRequired,
157-
stop: PropTypes.func.isRequired,
158-
}),
159-
}),
160-
]),
16123
} as any;
16224

16325
export { ToolbarButton };

0 commit comments

Comments
 (0)