1
- import { unstable_composeClasses as composeClasses } from '@mui/base' ;
2
- import { css , keyframes } from '@mui/system' ;
3
- import { OverridableComponent } from '@mui/types' ;
4
- import { unstable_capitalize as capitalize } from '@mui/utils' ;
5
- import clsx from 'clsx' ;
6
1
import PropTypes from 'prop-types' ;
7
2
import * as React from 'react' ;
3
+ import clsx from 'clsx' ;
4
+ import { OverridableComponent } from '@mui/types' ;
5
+ import { unstable_capitalize as capitalize } from '@mui/utils' ;
6
+ import { unstable_composeClasses as composeClasses } from '@mui/base' ;
7
+ import { css , keyframes } from '@mui/system' ;
8
8
import styled from '../styles/styled' ;
9
9
import useThemeProps from '../styles/useThemeProps' ;
10
10
import useSlot from '../utils/useSlot' ;
@@ -207,7 +207,6 @@ const CircularProgress = React.forwardRef(function CircularProgress(inProps, ref
207
207
children,
208
208
className,
209
209
color = 'primary' ,
210
- component = 'span' ,
211
210
size = 'md' ,
212
211
variant = 'soft' ,
213
212
thickness,
@@ -219,7 +218,6 @@ const CircularProgress = React.forwardRef(function CircularProgress(inProps, ref
219
218
const ownerState = {
220
219
...props ,
221
220
color,
222
- component,
223
221
size,
224
222
variant,
225
223
thickness,
@@ -229,13 +227,12 @@ const CircularProgress = React.forwardRef(function CircularProgress(inProps, ref
229
227
} ;
230
228
231
229
const classes = useUtilityClasses ( ownerState ) ;
232
- const externalForwardedProps = { ...other , component } ;
233
230
234
231
const [ SlotRoot , rootProps ] = useSlot ( 'root' , {
235
232
ref,
236
233
className : clsx ( classes . root , className ) ,
237
234
elementType : CircularProgressRoot ,
238
- externalForwardedProps,
235
+ externalForwardedProps : other ,
239
236
ownerState,
240
237
additionalProps : {
241
238
role : 'progressbar' ,
@@ -256,21 +253,21 @@ const CircularProgress = React.forwardRef(function CircularProgress(inProps, ref
256
253
const [ SlotSvg , svgProps ] = useSlot ( 'svg' , {
257
254
className : classes . svg ,
258
255
elementType : CircularProgressSvg ,
259
- externalForwardedProps,
256
+ externalForwardedProps : other ,
260
257
ownerState,
261
258
} ) ;
262
259
263
260
const [ SlotTrack , trackProps ] = useSlot ( 'track' , {
264
261
className : classes . track ,
265
262
elementType : CircularProgressTrack ,
266
- externalForwardedProps,
263
+ externalForwardedProps : other ,
267
264
ownerState,
268
265
} ) ;
269
266
270
267
const [ SlotProgress , progressProps ] = useSlot ( 'progress' , {
271
268
className : classes . progress ,
272
269
elementType : CircularProgressProgress ,
273
- externalForwardedProps,
270
+ externalForwardedProps : other ,
274
271
ownerState,
275
272
} ) ;
276
273
@@ -306,11 +303,6 @@ CircularProgress.propTypes /* remove-proptypes */ = {
306
303
PropTypes . oneOf ( [ 'danger' , 'info' , 'neutral' , 'primary' , 'success' , 'warning' ] ) ,
307
304
PropTypes . string ,
308
305
] ) ,
309
- /**
310
- * The component used for the root node.
311
- * Either a string to use a HTML element or a component.
312
- */
313
- component : PropTypes . elementType ,
314
306
/**
315
307
* The boolean to select a variant.
316
308
* Use indeterminate when there is no progress value.
0 commit comments