@mui/material 6.0.0-alpha.1 → 6.0.0-alpha.3
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/AppBar/AppBar.js +0 -1
- package/Avatar/Avatar.js +1 -1
- package/CHANGELOG.md +114 -2
- package/CardMedia/CardMedia.js +0 -1
- package/CircularProgress/CircularProgress.js +66 -30
- package/Dialog/Dialog.js +10 -1
- package/Fab/Fab.js +83 -43
- package/LinearProgress/LinearProgress.js +180 -75
- package/PaginationItem/PaginationItem.js +137 -76
- package/Select/Select.d.ts +9 -6
- package/StepConnector/stepConnectorClasses.d.ts +6 -2
- package/StepLabel/StepLabel.d.ts +7 -0
- package/StepLabel/StepLabel.js +17 -6
- package/ToggleButton/ToggleButton.js +74 -45
- package/ToggleButtonGroup/ToggleButtonGroup.js +63 -51
- package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +8 -2
- package/ToggleButtonGroup/toggleButtonGroupClasses.js +1 -1
- package/Tooltip/Tooltip.js +1 -2
- package/Typography/Typography.js +3 -1
- package/index.js +1 -1
- package/locale/index.js +1 -1
- package/modern/AppBar/AppBar.js +0 -1
- package/modern/Avatar/Avatar.js +1 -1
- package/modern/CardMedia/CardMedia.js +0 -1
- package/modern/CircularProgress/CircularProgress.js +66 -30
- package/modern/Dialog/Dialog.js +10 -1
- package/modern/Fab/Fab.js +83 -43
- package/modern/LinearProgress/LinearProgress.js +180 -75
- package/modern/PaginationItem/PaginationItem.js +137 -76
- package/modern/StepLabel/StepLabel.js +17 -6
- package/modern/ToggleButton/ToggleButton.js +74 -45
- package/modern/ToggleButtonGroup/ToggleButtonGroup.js +63 -51
- package/modern/ToggleButtonGroup/toggleButtonGroupClasses.js +1 -1
- package/modern/Tooltip/Tooltip.js +1 -2
- package/modern/Typography/Typography.js +3 -1
- package/modern/index.js +1 -1
- package/modern/locale/index.js +1 -1
- package/modern/styles/createTransitions.js +1 -3
- package/modern/zero-styled/index.js +1 -1
- package/node/AppBar/AppBar.js +0 -1
- package/node/Avatar/Avatar.js +1 -1
- package/node/CardMedia/CardMedia.js +0 -1
- package/node/CircularProgress/CircularProgress.js +72 -36
- package/node/Dialog/Dialog.js +10 -1
- package/node/Fab/Fab.js +85 -45
- package/node/LinearProgress/LinearProgress.js +188 -83
- package/node/PaginationItem/PaginationItem.js +141 -80
- package/node/StepLabel/StepLabel.js +17 -6
- package/node/ToggleButton/ToggleButton.js +76 -47
- package/node/ToggleButtonGroup/ToggleButtonGroup.js +65 -53
- package/node/ToggleButtonGroup/toggleButtonGroupClasses.js +1 -1
- package/node/Tooltip/Tooltip.js +1 -2
- package/node/Typography/Typography.js +3 -1
- package/node/index.js +1 -1
- package/node/locale/index.js +1 -1
- package/node/styles/createTransitions.js +1 -3
- package/node/zero-styled/index.js +6 -0
- package/package.json +5 -5
- package/styles/createTransitions.js +1 -3
- package/umd/material-ui.development.js +973 -509
- package/umd/material-ui.production.min.js +4 -4
- package/zero-styled/index.d.ts +1 -1
- package/zero-styled/index.js +1 -1
- package/legacy/Accordion/Accordion.js +0 -306
- package/legacy/Accordion/AccordionContext.js +0 -13
- package/legacy/Accordion/accordionClasses.js +0 -7
- package/legacy/Accordion/index.js +0 -3
- package/legacy/AccordionActions/AccordionActions.js +0 -90
- package/legacy/AccordionActions/accordionActionsClasses.js +0 -7
- package/legacy/AccordionActions/index.js +0 -3
- package/legacy/AccordionDetails/AccordionDetails.js +0 -69
- package/legacy/AccordionDetails/accordionDetailsClasses.js +0 -7
- package/legacy/AccordionDetails/index.js +0 -3
- package/legacy/AccordionSummary/AccordionSummary.js +0 -198
- package/legacy/AccordionSummary/accordionSummaryClasses.js +0 -7
- package/legacy/AccordionSummary/index.js +0 -3
- package/legacy/Alert/Alert.js +0 -385
- package/legacy/Alert/alertClasses.js +0 -7
- package/legacy/Alert/index.js +0 -5
- package/legacy/AlertTitle/AlertTitle.js +0 -73
- package/legacy/AlertTitle/alertTitleClasses.js +0 -7
- package/legacy/AlertTitle/index.js +0 -5
- package/legacy/AppBar/AppBar.js +0 -235
- package/legacy/AppBar/appBarClasses.js +0 -7
- package/legacy/AppBar/index.js +0 -5
- package/legacy/Autocomplete/Autocomplete.js +0 -1127
- package/legacy/Autocomplete/autocompleteClasses.js +0 -7
- package/legacy/Autocomplete/index.js +0 -5
- package/legacy/Avatar/Avatar.js +0 -296
- package/legacy/Avatar/avatarClasses.js +0 -7
- package/legacy/Avatar/index.js +0 -5
- package/legacy/AvatarGroup/AvatarGroup.js +0 -205
- package/legacy/AvatarGroup/avatarGroupClasses.js +0 -7
- package/legacy/AvatarGroup/index.js +0 -5
- package/legacy/Backdrop/Backdrop.js +0 -211
- package/legacy/Backdrop/backdropClasses.js +0 -7
- package/legacy/Backdrop/index.js +0 -5
- package/legacy/Badge/Badge.js +0 -439
- package/legacy/Badge/badgeClasses.js +0 -9
- package/legacy/Badge/index.js +0 -5
- package/legacy/BottomNavigation/BottomNavigation.js +0 -124
- package/legacy/BottomNavigation/bottomNavigationClasses.js +0 -7
- package/legacy/BottomNavigation/index.js +0 -5
- package/legacy/BottomNavigationAction/BottomNavigationAction.js +0 -185
- package/legacy/BottomNavigationAction/bottomNavigationActionClasses.js +0 -7
- package/legacy/BottomNavigationAction/index.js +0 -5
- package/legacy/Box/Box.js +0 -35
- package/legacy/Box/boxClasses.js +0 -3
- package/legacy/Box/index.js +0 -5
- package/legacy/Breadcrumbs/BreadcrumbCollapsed.js +0 -88
- package/legacy/Breadcrumbs/Breadcrumbs.js +0 -253
- package/legacy/Breadcrumbs/breadcrumbsClasses.js +0 -7
- package/legacy/Breadcrumbs/index.js +0 -5
- package/legacy/Button/Button.js +0 -472
- package/legacy/Button/buttonClasses.js +0 -7
- package/legacy/Button/index.js +0 -5
- package/legacy/ButtonBase/ButtonBase.js +0 -487
- package/legacy/ButtonBase/Ripple.js +0 -89
- package/legacy/ButtonBase/TouchRipple.js +0 -267
- package/legacy/ButtonBase/buttonBaseClasses.js +0 -7
- package/legacy/ButtonBase/index.js +0 -7
- package/legacy/ButtonBase/touchRippleClasses.js +0 -7
- package/legacy/ButtonGroup/ButtonGroup.js +0 -371
- package/legacy/ButtonGroup/ButtonGroupButtonContext.js +0 -9
- package/legacy/ButtonGroup/ButtonGroupContext.js +0 -9
- package/legacy/ButtonGroup/buttonGroupClasses.js +0 -7
- package/legacy/ButtonGroup/index.js +0 -7
- package/legacy/Card/Card.js +0 -83
- package/legacy/Card/cardClasses.js +0 -7
- package/legacy/Card/index.js +0 -5
- package/legacy/CardActionArea/CardActionArea.js +0 -119
- package/legacy/CardActionArea/cardActionAreaClasses.js +0 -7
- package/legacy/CardActionArea/index.js +0 -5
- package/legacy/CardActions/CardActions.js +0 -89
- package/legacy/CardActions/cardActionsClasses.js +0 -7
- package/legacy/CardActions/index.js +0 -5
- package/legacy/CardContent/CardContent.js +0 -79
- package/legacy/CardContent/cardContentClasses.js +0 -7
- package/legacy/CardContent/index.js +0 -5
- package/legacy/CardHeader/CardHeader.js +0 -198
- package/legacy/CardHeader/cardHeaderClasses.js +0 -7
- package/legacy/CardHeader/index.js +0 -5
- package/legacy/CardMedia/CardMedia.js +0 -139
- package/legacy/CardMedia/cardMediaClasses.js +0 -7
- package/legacy/CardMedia/index.js +0 -5
- package/legacy/Checkbox/Checkbox.js +0 -212
- package/legacy/Checkbox/checkboxClasses.js +0 -7
- package/legacy/Checkbox/index.js +0 -5
- package/legacy/Chip/Chip.js +0 -547
- package/legacy/Chip/chipClasses.js +0 -7
- package/legacy/Chip/index.js +0 -5
- package/legacy/CircularProgress/CircularProgress.js +0 -224
- package/legacy/CircularProgress/circularProgressClasses.js +0 -7
- package/legacy/CircularProgress/index.js +0 -5
- package/legacy/ClickAwayListener/index.js +0 -1
- package/legacy/Collapse/Collapse.js +0 -383
- package/legacy/Collapse/collapseClasses.js +0 -7
- package/legacy/Collapse/index.js +0 -5
- package/legacy/Container/Container.js +0 -67
- package/legacy/Container/containerClasses.js +0 -7
- package/legacy/Container/index.js +0 -5
- package/legacy/CssBaseline/CssBaseline.js +0 -113
- package/legacy/CssBaseline/index.js +0 -3
- package/legacy/Dialog/Dialog.js +0 -392
- package/legacy/Dialog/DialogContext.js +0 -6
- package/legacy/Dialog/dialogClasses.js +0 -7
- package/legacy/Dialog/index.js +0 -5
- package/legacy/DialogActions/DialogActions.js +0 -88
- package/legacy/DialogActions/dialogActionsClasses.js +0 -7
- package/legacy/DialogActions/index.js +0 -5
- package/legacy/DialogContent/DialogContent.js +0 -93
- package/legacy/DialogContent/dialogContentClasses.js +0 -7
- package/legacy/DialogContent/index.js +0 -5
- package/legacy/DialogContentText/DialogContentText.js +0 -74
- package/legacy/DialogContentText/dialogContentTextClasses.js +0 -7
- package/legacy/DialogContentText/index.js +0 -5
- package/legacy/DialogTitle/DialogTitle.js +0 -80
- package/legacy/DialogTitle/dialogTitleClasses.js +0 -7
- package/legacy/DialogTitle/index.js +0 -5
- package/legacy/Divider/Divider.js +0 -316
- package/legacy/Divider/dividerClasses.js +0 -7
- package/legacy/Divider/index.js +0 -5
- package/legacy/Drawer/Drawer.js +0 -316
- package/legacy/Drawer/drawerClasses.js +0 -7
- package/legacy/Drawer/index.js +0 -5
- package/legacy/Fab/Fab.js +0 -229
- package/legacy/Fab/fabClasses.js +0 -7
- package/legacy/Fab/index.js +0 -5
- package/legacy/Fade/Fade.js +0 -206
- package/legacy/Fade/index.js +0 -3
- package/legacy/FilledInput/FilledInput.js +0 -425
- package/legacy/FilledInput/filledInputClasses.js +0 -9
- package/legacy/FilledInput/index.js +0 -5
- package/legacy/FormControl/FormControl.js +0 -315
- package/legacy/FormControl/FormControlContext.js +0 -9
- package/legacy/FormControl/formControlClasses.js +0 -7
- package/legacy/FormControl/formControlState.js +0 -14
- package/legacy/FormControl/index.js +0 -6
- package/legacy/FormControl/useFormControl.js +0 -7
- package/legacy/FormControlLabel/FormControlLabel.js +0 -258
- package/legacy/FormControlLabel/formControlLabelClasses.js +0 -7
- package/legacy/FormControlLabel/index.js +0 -5
- package/legacy/FormGroup/FormGroup.js +0 -103
- package/legacy/FormGroup/formGroupClasses.js +0 -7
- package/legacy/FormGroup/index.js +0 -5
- package/legacy/FormHelperText/FormHelperText.js +0 -167
- package/legacy/FormHelperText/formHelperTextClasses.js +0 -7
- package/legacy/FormHelperText/index.js +0 -5
- package/legacy/FormLabel/FormLabel.js +0 -166
- package/legacy/FormLabel/formLabelClasses.js +0 -7
- package/legacy/FormLabel/index.js +0 -6
- package/legacy/GlobalStyles/GlobalStyles.js +0 -26
- package/legacy/GlobalStyles/index.js +0 -1
- package/legacy/Grid/Grid.js +0 -561
- package/legacy/Grid/GridContext.js +0 -12
- package/legacy/Grid/gridClasses.js +0 -28
- package/legacy/Grid/index.js +0 -5
- package/legacy/Grow/Grow.js +0 -253
- package/legacy/Grow/index.js +0 -3
- package/legacy/Hidden/Hidden.js +0 -147
- package/legacy/Hidden/HiddenCss.js +0 -168
- package/legacy/Hidden/HiddenJs.js +0 -123
- package/legacy/Hidden/hiddenCssClasses.js +0 -7
- package/legacy/Hidden/index.js +0 -3
- package/legacy/Hidden/withWidth.js +0 -110
- package/legacy/Icon/Icon.js +0 -144
- package/legacy/Icon/iconClasses.js +0 -7
- package/legacy/Icon/index.js +0 -5
- package/legacy/IconButton/IconButton.js +0 -204
- package/legacy/IconButton/iconButtonClasses.js +0 -7
- package/legacy/IconButton/index.js +0 -5
- package/legacy/ImageList/ImageList.js +0 -155
- package/legacy/ImageList/ImageListContext.js +0 -13
- package/legacy/ImageList/imageListClasses.js +0 -7
- package/legacy/ImageList/index.js +0 -5
- package/legacy/ImageListItem/ImageListItem.js +0 -168
- package/legacy/ImageListItem/imageListItemClasses.js +0 -7
- package/legacy/ImageListItem/index.js +0 -5
- package/legacy/ImageListItemBar/ImageListItemBar.js +0 -211
- package/legacy/ImageListItemBar/imageListItemBarClasses.js +0 -7
- package/legacy/ImageListItemBar/index.js +0 -5
- package/legacy/Input/Input.js +0 -339
- package/legacy/Input/index.js +0 -5
- package/legacy/Input/inputClasses.js +0 -9
- package/legacy/InputAdornment/InputAdornment.js +0 -167
- package/legacy/InputAdornment/index.js +0 -5
- package/legacy/InputAdornment/inputAdornmentClasses.js +0 -7
- package/legacy/InputBase/InputBase.js +0 -713
- package/legacy/InputBase/index.js +0 -5
- package/legacy/InputBase/inputBaseClasses.js +0 -7
- package/legacy/InputBase/utils.js +0 -31
- package/legacy/InputLabel/InputLabel.js +0 -214
- package/legacy/InputLabel/index.js +0 -5
- package/legacy/InputLabel/inputLabelClasses.js +0 -7
- package/legacy/LinearProgress/LinearProgress.js +0 -285
- package/legacy/LinearProgress/index.js +0 -5
- package/legacy/LinearProgress/linearProgressClasses.js +0 -7
- package/legacy/Link/Link.js +0 -209
- package/legacy/Link/getTextDecoration.js +0 -24
- package/legacy/Link/index.js +0 -5
- package/legacy/Link/linkClasses.js +0 -7
- package/legacy/List/List.js +0 -126
- package/legacy/List/ListContext.js +0 -12
- package/legacy/List/index.js +0 -5
- package/legacy/List/listClasses.js +0 -7
- package/legacy/ListItem/ListItem.js +0 -425
- package/legacy/ListItem/index.js +0 -5
- package/legacy/ListItem/listItemClasses.js +0 -7
- package/legacy/ListItemAvatar/ListItemAvatar.js +0 -82
- package/legacy/ListItemAvatar/index.js +0 -5
- package/legacy/ListItemAvatar/listItemAvatarClasses.js +0 -7
- package/legacy/ListItemButton/ListItemButton.js +0 -242
- package/legacy/ListItemButton/index.js +0 -5
- package/legacy/ListItemButton/listItemButtonClasses.js +0 -7
- package/legacy/ListItemIcon/ListItemIcon.js +0 -86
- package/legacy/ListItemIcon/index.js +0 -5
- package/legacy/ListItemIcon/listItemIconClasses.js +0 -7
- package/legacy/ListItemSecondaryAction/ListItemSecondaryAction.js +0 -85
- package/legacy/ListItemSecondaryAction/index.js +0 -5
- package/legacy/ListItemSecondaryAction/listItemSecondaryActionClasses.js +0 -7
- package/legacy/ListItemText/ListItemText.js +0 -160
- package/legacy/ListItemText/index.js +0 -5
- package/legacy/ListItemText/listItemTextClasses.js +0 -7
- package/legacy/ListSubheader/ListSubheader.js +0 -139
- package/legacy/ListSubheader/index.js +0 -5
- package/legacy/ListSubheader/listSubheaderClasses.js +0 -7
- package/legacy/Menu/Menu.js +0 -317
- package/legacy/Menu/index.js +0 -5
- package/legacy/Menu/menuClasses.js +0 -7
- package/legacy/MenuItem/MenuItem.js +0 -251
- package/legacy/MenuItem/index.js +0 -5
- package/legacy/MenuItem/menuItemClasses.js +0 -7
- package/legacy/MenuList/MenuList.js +0 -285
- package/legacy/MenuList/index.js +0 -3
- package/legacy/MobileStepper/MobileStepper.js +0 -254
- package/legacy/MobileStepper/index.js +0 -5
- package/legacy/MobileStepper/mobileStepperClasses.js +0 -7
- package/legacy/Modal/Modal.js +0 -398
- package/legacy/Modal/index.js +0 -6
- package/legacy/Modal/modalClasses.js +0 -7
- package/legacy/NativeSelect/NativeSelect.js +0 -128
- package/legacy/NativeSelect/NativeSelectInput.js +0 -203
- package/legacy/NativeSelect/index.js +0 -5
- package/legacy/NativeSelect/nativeSelectClasses.js +0 -7
- package/legacy/NoSsr/index.js +0 -1
- package/legacy/OutlinedInput/NotchedOutline.js +0 -135
- package/legacy/OutlinedInput/OutlinedInput.js +0 -347
- package/legacy/OutlinedInput/index.js +0 -5
- package/legacy/OutlinedInput/outlinedInputClasses.js +0 -9
- package/legacy/Pagination/Pagination.js +0 -256
- package/legacy/Pagination/index.js +0 -5
- package/legacy/Pagination/paginationClasses.js +0 -7
- package/legacy/PaginationItem/PaginationItem.js +0 -356
- package/legacy/PaginationItem/index.js +0 -5
- package/legacy/PaginationItem/paginationItemClasses.js +0 -7
- package/legacy/Paper/Paper.js +0 -141
- package/legacy/Paper/index.js +0 -5
- package/legacy/Paper/paperClasses.js +0 -7
- package/legacy/Popover/Popover.js +0 -548
- package/legacy/Popover/index.js +0 -6
- package/legacy/Popover/popoverClasses.js +0 -7
- package/legacy/Popper/Popper.js +0 -207
- package/legacy/Popper/index.js +0 -3
- package/legacy/Portal/index.js +0 -1
- package/legacy/Radio/Radio.js +0 -212
- package/legacy/Radio/RadioButtonIcon.js +0 -81
- package/legacy/Radio/index.js +0 -5
- package/legacy/Radio/radioClasses.js +0 -7
- package/legacy/RadioGroup/RadioGroup.js +0 -118
- package/legacy/RadioGroup/RadioGroupContext.js +0 -9
- package/legacy/RadioGroup/index.js +0 -6
- package/legacy/RadioGroup/radioGroupClasses.js +0 -7
- package/legacy/RadioGroup/useRadioGroup.js +0 -7
- package/legacy/Rating/Rating.js +0 -657
- package/legacy/Rating/index.js +0 -3
- package/legacy/Rating/ratingClasses.js +0 -7
- package/legacy/ScopedCssBaseline/ScopedCssBaseline.js +0 -106
- package/legacy/ScopedCssBaseline/index.js +0 -5
- package/legacy/ScopedCssBaseline/scopedCssBaselineClasses.js +0 -7
- package/legacy/Select/Select.js +0 -290
- package/legacy/Select/SelectInput.js +0 -667
- package/legacy/Select/index.js +0 -5
- package/legacy/Select/selectClasses.js +0 -7
- package/legacy/Skeleton/Skeleton.js +0 -166
- package/legacy/Skeleton/index.js +0 -5
- package/legacy/Skeleton/skeletonClasses.js +0 -7
- package/legacy/Slide/Slide.js +0 -333
- package/legacy/Slide/index.js +0 -3
- package/legacy/Slider/Slider.js +0 -1063
- package/legacy/Slider/SliderValueLabel.js +0 -49
- package/legacy/Slider/SliderValueLabel.types.js +0 -1
- package/legacy/Slider/index.js +0 -6
- package/legacy/Slider/sliderClasses.js +0 -7
- package/legacy/Snackbar/Snackbar.js +0 -312
- package/legacy/Snackbar/index.js +0 -5
- package/legacy/Snackbar/snackbarClasses.js +0 -7
- package/legacy/SnackbarContent/SnackbarContent.js +0 -134
- package/legacy/SnackbarContent/index.js +0 -5
- package/legacy/SnackbarContent/snackbarContentClasses.js +0 -7
- package/legacy/SpeedDial/SpeedDial.js +0 -491
- package/legacy/SpeedDial/index.js +0 -5
- package/legacy/SpeedDial/speedDialClasses.js +0 -7
- package/legacy/SpeedDialAction/SpeedDialAction.js +0 -247
- package/legacy/SpeedDialAction/index.js +0 -5
- package/legacy/SpeedDialAction/speedDialActionClasses.js +0 -7
- package/legacy/SpeedDialIcon/SpeedDialIcon.js +0 -120
- package/legacy/SpeedDialIcon/index.js +0 -5
- package/legacy/SpeedDialIcon/speedDialIconClasses.js +0 -7
- package/legacy/Stack/Stack.js +0 -66
- package/legacy/Stack/index.js +0 -4
- package/legacy/Stack/stackClasses.js +0 -7
- package/legacy/Step/Step.js +0 -179
- package/legacy/Step/StepContext.js +0 -17
- package/legacy/Step/index.js +0 -7
- package/legacy/Step/stepClasses.js +0 -7
- package/legacy/StepButton/StepButton.js +0 -122
- package/legacy/StepButton/index.js +0 -5
- package/legacy/StepButton/stepButtonClasses.js +0 -7
- package/legacy/StepConnector/StepConnector.js +0 -142
- package/legacy/StepConnector/index.js +0 -5
- package/legacy/StepConnector/stepConnectorClasses.js +0 -7
- package/legacy/StepContent/StepContent.js +0 -152
- package/legacy/StepContent/index.js +0 -5
- package/legacy/StepContent/stepContentClasses.js +0 -7
- package/legacy/StepIcon/StepIcon.js +0 -162
- package/legacy/StepIcon/index.js +0 -5
- package/legacy/StepIcon/stepIconClasses.js +0 -7
- package/legacy/StepLabel/StepLabel.js +0 -258
- package/legacy/StepLabel/index.js +0 -5
- package/legacy/StepLabel/stepLabelClasses.js +0 -7
- package/legacy/Stepper/Stepper.js +0 -167
- package/legacy/Stepper/StepperContext.js +0 -17
- package/legacy/Stepper/index.js +0 -7
- package/legacy/Stepper/stepperClasses.js +0 -7
- package/legacy/StyledEngineProvider/index.js +0 -1
- package/legacy/SvgIcon/SvgIcon.js +0 -183
- package/legacy/SvgIcon/index.js +0 -5
- package/legacy/SvgIcon/svgIconClasses.js +0 -7
- package/legacy/SwipeableDrawer/SwipeArea.js +0 -81
- package/legacy/SwipeableDrawer/SwipeableDrawer.js +0 -621
- package/legacy/SwipeableDrawer/index.js +0 -3
- package/legacy/Switch/Switch.js +0 -337
- package/legacy/Switch/index.js +0 -5
- package/legacy/Switch/switchClasses.js +0 -7
- package/legacy/Tab/Tab.js +0 -249
- package/legacy/Tab/index.js +0 -5
- package/legacy/Tab/tabClasses.js +0 -7
- package/legacy/TabScrollButton/TabScrollButton.js +0 -153
- package/legacy/TabScrollButton/index.js +0 -5
- package/legacy/TabScrollButton/tabScrollButtonClasses.js +0 -7
- package/legacy/Table/Table.js +0 -130
- package/legacy/Table/TableContext.js +0 -12
- package/legacy/Table/Tablelvl2Context.js +0 -10
- package/legacy/Table/index.js +0 -5
- package/legacy/Table/tableClasses.js +0 -7
- package/legacy/TableBody/TableBody.js +0 -85
- package/legacy/TableBody/index.js +0 -5
- package/legacy/TableBody/tableBodyClasses.js +0 -7
- package/legacy/TableCell/TableCell.js +0 -208
- package/legacy/TableCell/index.js +0 -5
- package/legacy/TableCell/tableCellClasses.js +0 -7
- package/legacy/TableContainer/TableContainer.js +0 -77
- package/legacy/TableContainer/index.js +0 -5
- package/legacy/TableContainer/tableContainerClasses.js +0 -7
- package/legacy/TableFooter/TableFooter.js +0 -85
- package/legacy/TableFooter/index.js +0 -5
- package/legacy/TableFooter/tableFooterClasses.js +0 -7
- package/legacy/TableHead/TableHead.js +0 -85
- package/legacy/TableHead/index.js +0 -5
- package/legacy/TableHead/tableHeadClasses.js +0 -7
- package/legacy/TablePagination/TablePagination.js +0 -461
- package/legacy/TablePagination/TablePaginationActions.js +0 -182
- package/legacy/TablePagination/index.js +0 -5
- package/legacy/TablePagination/tablePaginationClasses.js +0 -7
- package/legacy/TableRow/TableRow.js +0 -123
- package/legacy/TableRow/index.js +0 -5
- package/legacy/TableRow/tableRowClasses.js +0 -7
- package/legacy/TableSortLabel/TableSortLabel.js +0 -165
- package/legacy/TableSortLabel/index.js +0 -5
- package/legacy/TableSortLabel/tableSortLabelClasses.js +0 -7
- package/legacy/Tabs/ScrollbarSize.js +0 -57
- package/legacy/Tabs/Tabs.js +0 -849
- package/legacy/Tabs/index.js +0 -5
- package/legacy/Tabs/tabsClasses.js +0 -7
- package/legacy/TextField/TextField.js +0 -381
- package/legacy/TextField/index.js +0 -5
- package/legacy/TextField/textFieldClasses.js +0 -7
- package/legacy/TextareaAutosize/index.js +0 -1
- package/legacy/ToggleButton/ToggleButton.js +0 -230
- package/legacy/ToggleButton/index.js +0 -5
- package/legacy/ToggleButton/toggleButtonClasses.js +0 -7
- package/legacy/ToggleButtonGroup/ToggleButtonGroup.js +0 -247
- package/legacy/ToggleButtonGroup/ToggleButtonGroupButtonContext.js +0 -9
- package/legacy/ToggleButtonGroup/ToggleButtonGroupContext.js +0 -9
- package/legacy/ToggleButtonGroup/index.js +0 -5
- package/legacy/ToggleButtonGroup/isValueSelected.js +0 -11
- package/legacy/ToggleButtonGroup/toggleButtonGroupClasses.js +0 -7
- package/legacy/Toolbar/Toolbar.js +0 -115
- package/legacy/Toolbar/index.js +0 -3
- package/legacy/Toolbar/toolbarClasses.js +0 -7
- package/legacy/Tooltip/Tooltip.js +0 -788
- package/legacy/Tooltip/index.js +0 -5
- package/legacy/Tooltip/tooltipClasses.js +0 -7
- package/legacy/Typography/Typography.js +0 -198
- package/legacy/Typography/index.js +0 -5
- package/legacy/Typography/typographyClasses.js +0 -7
- package/legacy/Unstable_Grid2/Grid2.js +0 -36
- package/legacy/Unstable_Grid2/Grid2Props.js +0 -1
- package/legacy/Unstable_Grid2/grid2Classes.js +0 -28
- package/legacy/Unstable_Grid2/index.js +0 -6
- package/legacy/Unstable_TrapFocus/index.js +0 -1
- package/legacy/Zoom/Zoom.js +0 -206
- package/legacy/Zoom/index.js +0 -3
- package/legacy/className/index.js +0 -2
- package/legacy/colors/amber.js +0 -17
- package/legacy/colors/blue.js +0 -17
- package/legacy/colors/blueGrey.js +0 -17
- package/legacy/colors/brown.js +0 -17
- package/legacy/colors/common.js +0 -5
- package/legacy/colors/cyan.js +0 -17
- package/legacy/colors/deepOrange.js +0 -17
- package/legacy/colors/deepPurple.js +0 -17
- package/legacy/colors/green.js +0 -17
- package/legacy/colors/grey.js +0 -17
- package/legacy/colors/index.js +0 -20
- package/legacy/colors/indigo.js +0 -17
- package/legacy/colors/lightBlue.js +0 -17
- package/legacy/colors/lightGreen.js +0 -17
- package/legacy/colors/lime.js +0 -17
- package/legacy/colors/orange.js +0 -17
- package/legacy/colors/pink.js +0 -17
- package/legacy/colors/purple.js +0 -17
- package/legacy/colors/red.js +0 -17
- package/legacy/colors/teal.js +0 -17
- package/legacy/colors/yellow.js +0 -17
- package/legacy/darkScrollbar/index.js +0 -33
- package/legacy/generateUtilityClass/index.js +0 -1
- package/legacy/generateUtilityClasses/index.js +0 -1
- package/legacy/index.js +0 -288
- package/legacy/internal/SwitchBase.js +0 -275
- package/legacy/internal/animate.js +0 -41
- package/legacy/internal/svg-icons/Add.js +0 -12
- package/legacy/internal/svg-icons/ArrowDownward.js +0 -12
- package/legacy/internal/svg-icons/ArrowDropDown.js +0 -12
- package/legacy/internal/svg-icons/Cancel.js +0 -12
- package/legacy/internal/svg-icons/CheckBox.js +0 -12
- package/legacy/internal/svg-icons/CheckBoxOutlineBlank.js +0 -12
- package/legacy/internal/svg-icons/CheckCircle.js +0 -12
- package/legacy/internal/svg-icons/Close.js +0 -14
- package/legacy/internal/svg-icons/ErrorOutline.js +0 -12
- package/legacy/internal/svg-icons/FirstPage.js +0 -12
- package/legacy/internal/svg-icons/IndeterminateCheckBox.js +0 -12
- package/legacy/internal/svg-icons/InfoOutlined.js +0 -12
- package/legacy/internal/svg-icons/KeyboardArrowLeft.js +0 -12
- package/legacy/internal/svg-icons/KeyboardArrowRight.js +0 -12
- package/legacy/internal/svg-icons/LastPage.js +0 -12
- package/legacy/internal/svg-icons/MoreHoriz.js +0 -12
- package/legacy/internal/svg-icons/NavigateBefore.js +0 -12
- package/legacy/internal/svg-icons/NavigateNext.js +0 -12
- package/legacy/internal/svg-icons/Person.js +0 -12
- package/legacy/internal/svg-icons/RadioButtonChecked.js +0 -12
- package/legacy/internal/svg-icons/RadioButtonUnchecked.js +0 -12
- package/legacy/internal/svg-icons/ReportProblemOutlined.js +0 -12
- package/legacy/internal/svg-icons/Star.js +0 -12
- package/legacy/internal/svg-icons/StarBorder.js +0 -12
- package/legacy/internal/svg-icons/SuccessOutlined.js +0 -12
- package/legacy/internal/svg-icons/Warning.js +0 -12
- package/legacy/internal/switchBaseClasses.js +0 -7
- package/legacy/locale/index.js +0 -4389
- package/legacy/styles/CssVarsProvider.js +0 -39
- package/legacy/styles/ThemeProvider.js +0 -28
- package/legacy/styles/adaptV4Theme.js +0 -81
- package/legacy/styles/createGetSelector.js +0 -21
- package/legacy/styles/createMixins.js +0 -15
- package/legacy/styles/createMuiStrictModeTheme.js +0 -10
- package/legacy/styles/createPalette.js +0 -299
- package/legacy/styles/createStyles.js +0 -10
- package/legacy/styles/createTheme.js +0 -97
- package/legacy/styles/createTransitions.js +0 -97
- package/legacy/styles/createTypography.js +0 -93
- package/legacy/styles/cssUtils.js +0 -122
- package/legacy/styles/defaultTheme.js +0 -5
- package/legacy/styles/excludeVariablesFromRoot.js +0 -10
- package/legacy/styles/experimental_extendTheme.js +0 -377
- package/legacy/styles/getOverlayAlpha.js +0 -11
- package/legacy/styles/identifier.js +0 -1
- package/legacy/styles/index.js +0 -37
- package/legacy/styles/makeStyles.js +0 -4
- package/legacy/styles/responsiveFontSizes.js +0 -63
- package/legacy/styles/rootShouldForwardProp.js +0 -5
- package/legacy/styles/shadows.js +0 -10
- package/legacy/styles/shouldSkipGeneratingVar.js +0 -6
- package/legacy/styles/slotShouldForwardProp.js +0 -5
- package/legacy/styles/styled.js +0 -14
- package/legacy/styles/useTheme.js +0 -14
- package/legacy/styles/useThemeProps.js +0 -15
- package/legacy/styles/withStyles.js +0 -4
- package/legacy/styles/withTheme.js +0 -4
- package/legacy/styles/zIndex.js +0 -13
- package/legacy/transitions/index.js +0 -1
- package/legacy/transitions/transition.js +0 -1
- package/legacy/transitions/utils.js +0 -16
- package/legacy/types/OverridableComponentAugmentation.js +0 -1
- package/legacy/useAutocomplete/index.js +0 -3
- package/legacy/useAutocomplete/useAutocomplete.js +0 -4
- package/legacy/useMediaQuery/index.js +0 -1
- package/legacy/useMediaQuery/useMediaQueryTheme.js +0 -8
- package/legacy/usePagination/index.js +0 -3
- package/legacy/usePagination/usePagination.js +0 -122
- package/legacy/useScrollTrigger/index.js +0 -3
- package/legacy/useScrollTrigger/useScrollTrigger.js +0 -57
- package/legacy/useTouchRipple/index.js +0 -3
- package/legacy/useTouchRipple/useTouchRipple.js +0 -102
- package/legacy/utils/capitalize.js +0 -2
- package/legacy/utils/createChainedFunction.js +0 -2
- package/legacy/utils/createSvgIcon.js +0 -27
- package/legacy/utils/debounce.js +0 -2
- package/legacy/utils/deprecatedPropType.js +0 -2
- package/legacy/utils/getScrollbarSize.js +0 -2
- package/legacy/utils/index.js +0 -30
- package/legacy/utils/isMuiElement.js +0 -2
- package/legacy/utils/ownerDocument.js +0 -2
- package/legacy/utils/ownerWindow.js +0 -2
- package/legacy/utils/requirePropFactory.js +0 -2
- package/legacy/utils/scrollLeft.js +0 -1
- package/legacy/utils/setRef.js +0 -2
- package/legacy/utils/shouldSpreadAdditionalProps.js +0 -5
- package/legacy/utils/types.js +0 -1
- package/legacy/utils/unsupportedProp.js +0 -2
- package/legacy/utils/useControlled.js +0 -4
- package/legacy/utils/useEnhancedEffect.js +0 -4
- package/legacy/utils/useEventCallback.js +0 -4
- package/legacy/utils/useForkRef.js +0 -4
- package/legacy/utils/useId.js +0 -4
- package/legacy/utils/useIsFocusVisible.js +0 -4
- package/legacy/utils/useSlot.js +0 -71
- package/legacy/zero-styled/index.js +0 -8
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
4
3
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
5
5
|
const _excluded = ["className", "color", "value", "valueBuffer", "variant"];
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import clsx from 'clsx';
|
|
9
9
|
import composeClasses from '@mui/utils/composeClasses';
|
|
10
|
-
import { keyframes, css } from '@mui/system';
|
|
11
10
|
import { darken, lighten } from '@mui/system/colorManipulator';
|
|
12
11
|
import { useRtl } from '@mui/system/RtlProvider';
|
|
12
|
+
import { keyframes, css, styled, createUseThemeProps } from '../zero-styled';
|
|
13
13
|
import capitalize from '../utils/capitalize';
|
|
14
|
-
import styled from '../styles/styled';
|
|
15
|
-
import useThemeProps from '../styles/useThemeProps';
|
|
16
14
|
import { getLinearProgressUtilityClass } from './linearProgressClasses';
|
|
17
15
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
|
+
const useThemeProps = createUseThemeProps('MuiLinearProgress');
|
|
18
17
|
const TRANSITION_DURATION = 4; // seconds
|
|
19
18
|
const indeterminate1Keyframe = keyframes`
|
|
20
19
|
0% {
|
|
@@ -32,6 +31,13 @@ const indeterminate1Keyframe = keyframes`
|
|
|
32
31
|
right: -90%;
|
|
33
32
|
}
|
|
34
33
|
`;
|
|
34
|
+
|
|
35
|
+
// This implementation is for supporting both Styled-components v4+ and Pigment CSS.
|
|
36
|
+
// A global animation has to be created here for Styled-components v4+ (https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#12).
|
|
37
|
+
// which can be done by checking typeof indeterminate1Keyframe !== 'string' (at runtime, Pigment CSS transform keyframes`` to a string).
|
|
38
|
+
const indeterminate1Animation = typeof indeterminate1Keyframe !== 'string' ? css`
|
|
39
|
+
animation: ${indeterminate1Keyframe} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
|
|
40
|
+
` : null;
|
|
35
41
|
const indeterminate2Keyframe = keyframes`
|
|
36
42
|
0% {
|
|
37
43
|
left: -200%;
|
|
@@ -48,6 +54,9 @@ const indeterminate2Keyframe = keyframes`
|
|
|
48
54
|
right: -8%;
|
|
49
55
|
}
|
|
50
56
|
`;
|
|
57
|
+
const indeterminate2Animation = typeof indeterminate2Keyframe !== 'string' ? css`
|
|
58
|
+
animation: ${indeterminate2Keyframe} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
|
|
59
|
+
` : null;
|
|
51
60
|
const bufferKeyframe = keyframes`
|
|
52
61
|
0% {
|
|
53
62
|
opacity: 1;
|
|
@@ -64,6 +73,9 @@ const bufferKeyframe = keyframes`
|
|
|
64
73
|
background-position: -200px -23px;
|
|
65
74
|
}
|
|
66
75
|
`;
|
|
76
|
+
const bufferAnimation = typeof bufferKeyframe !== 'string' ? css`
|
|
77
|
+
animation: ${bufferKeyframe} 3s infinite linear;
|
|
78
|
+
` : null;
|
|
67
79
|
const useUtilityClasses = ownerState => {
|
|
68
80
|
const {
|
|
69
81
|
classes,
|
|
@@ -79,9 +91,6 @@ const useUtilityClasses = ownerState => {
|
|
|
79
91
|
return composeClasses(slots, getLinearProgressUtilityClass, classes);
|
|
80
92
|
};
|
|
81
93
|
const getColorShade = (theme, color) => {
|
|
82
|
-
if (color === 'inherit') {
|
|
83
|
-
return 'currentColor';
|
|
84
|
-
}
|
|
85
94
|
if (theme.vars) {
|
|
86
95
|
return theme.vars.palette.LinearProgress[`${color}Bg`];
|
|
87
96
|
}
|
|
@@ -97,35 +106,55 @@ const LinearProgressRoot = styled('span', {
|
|
|
97
106
|
return [styles.root, styles[`color${capitalize(ownerState.color)}`], styles[ownerState.variant]];
|
|
98
107
|
}
|
|
99
108
|
})(({
|
|
100
|
-
ownerState,
|
|
101
109
|
theme
|
|
102
|
-
}) =>
|
|
110
|
+
}) => ({
|
|
103
111
|
position: 'relative',
|
|
104
112
|
overflow: 'hidden',
|
|
105
113
|
display: 'block',
|
|
106
114
|
height: 4,
|
|
107
|
-
zIndex: 0,
|
|
108
115
|
// Fix Safari's bug during composition of different paint.
|
|
116
|
+
zIndex: 0,
|
|
109
117
|
'@media print': {
|
|
110
118
|
colorAdjust: 'exact'
|
|
111
119
|
},
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
120
|
+
variants: [...Object.entries(theme.palette).filter(([, value]) => value.main).map(([color]) => ({
|
|
121
|
+
props: {
|
|
122
|
+
color
|
|
123
|
+
},
|
|
124
|
+
style: {
|
|
125
|
+
backgroundColor: getColorShade(theme, color)
|
|
126
|
+
}
|
|
127
|
+
})), {
|
|
128
|
+
props: ({
|
|
129
|
+
ownerState
|
|
130
|
+
}) => ownerState.color === 'inherit' && ownerState.variant !== 'buffer',
|
|
131
|
+
style: {
|
|
132
|
+
'&::before': {
|
|
133
|
+
content: '""',
|
|
134
|
+
position: 'absolute',
|
|
135
|
+
left: 0,
|
|
136
|
+
top: 0,
|
|
137
|
+
right: 0,
|
|
138
|
+
bottom: 0,
|
|
139
|
+
backgroundColor: 'currentColor',
|
|
140
|
+
opacity: 0.3
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}, {
|
|
144
|
+
props: {
|
|
145
|
+
variant: 'buffer'
|
|
146
|
+
},
|
|
147
|
+
style: {
|
|
148
|
+
backgroundColor: 'transparent'
|
|
149
|
+
}
|
|
150
|
+
}, {
|
|
151
|
+
props: {
|
|
152
|
+
variant: 'query'
|
|
153
|
+
},
|
|
154
|
+
style: {
|
|
155
|
+
transform: 'rotate(180deg)'
|
|
156
|
+
}
|
|
157
|
+
}]
|
|
129
158
|
}));
|
|
130
159
|
const LinearProgressDashed = styled('span', {
|
|
131
160
|
name: 'MuiLinearProgress',
|
|
@@ -137,25 +166,37 @@ const LinearProgressDashed = styled('span', {
|
|
|
137
166
|
return [styles.dashed, styles[`dashedColor${capitalize(ownerState.color)}`]];
|
|
138
167
|
}
|
|
139
168
|
})(({
|
|
140
|
-
ownerState,
|
|
141
169
|
theme
|
|
142
|
-
}) => {
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
|
|
170
|
+
}) => ({
|
|
171
|
+
position: 'absolute',
|
|
172
|
+
marginTop: 0,
|
|
173
|
+
height: '100%',
|
|
174
|
+
width: '100%',
|
|
175
|
+
backgroundSize: '10px 10px',
|
|
176
|
+
backgroundPosition: '0 -23px',
|
|
177
|
+
variants: [{
|
|
178
|
+
props: {
|
|
179
|
+
color: 'inherit'
|
|
180
|
+
},
|
|
181
|
+
style: {
|
|
182
|
+
opacity: 0.3,
|
|
183
|
+
backgroundImage: `radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)`
|
|
184
|
+
}
|
|
185
|
+
}, ...Object.entries(theme.palette).filter(([, value]) => value.main).map(([color]) => {
|
|
186
|
+
const backgroundColor = getColorShade(theme, color);
|
|
187
|
+
return {
|
|
188
|
+
props: {
|
|
189
|
+
color
|
|
190
|
+
},
|
|
191
|
+
style: {
|
|
192
|
+
backgroundImage: `radial-gradient(${backgroundColor} 0%, ${backgroundColor} 16%, transparent 42%)`
|
|
193
|
+
}
|
|
194
|
+
};
|
|
195
|
+
})]
|
|
196
|
+
}), bufferAnimation || {
|
|
197
|
+
// At runtime for Pigment CSS, `bufferAnimation` will be null and the generated keyframe will be used.
|
|
198
|
+
animation: `${bufferKeyframe} 3s infinite linear`
|
|
199
|
+
});
|
|
159
200
|
const LinearProgressBar1 = styled('span', {
|
|
160
201
|
name: 'MuiLinearProgress',
|
|
161
202
|
slot: 'Bar1',
|
|
@@ -166,9 +207,8 @@ const LinearProgressBar1 = styled('span', {
|
|
|
166
207
|
return [styles.bar, styles[`barColor${capitalize(ownerState.color)}`], (ownerState.variant === 'indeterminate' || ownerState.variant === 'query') && styles.bar1Indeterminate, ownerState.variant === 'determinate' && styles.bar1Determinate, ownerState.variant === 'buffer' && styles.bar1Buffer];
|
|
167
208
|
}
|
|
168
209
|
})(({
|
|
169
|
-
ownerState,
|
|
170
210
|
theme
|
|
171
|
-
}) =>
|
|
211
|
+
}) => ({
|
|
172
212
|
width: '100%',
|
|
173
213
|
position: 'absolute',
|
|
174
214
|
left: 0,
|
|
@@ -176,18 +216,51 @@ const LinearProgressBar1 = styled('span', {
|
|
|
176
216
|
top: 0,
|
|
177
217
|
transition: 'transform 0.2s linear',
|
|
178
218
|
transformOrigin: 'left',
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
},
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
219
|
+
variants: [{
|
|
220
|
+
props: {
|
|
221
|
+
color: 'inherit'
|
|
222
|
+
},
|
|
223
|
+
style: {
|
|
224
|
+
backgroundColor: 'currentColor'
|
|
225
|
+
}
|
|
226
|
+
}, ...Object.entries(theme.palette).filter(([, value]) => value.main).map(([color]) => ({
|
|
227
|
+
props: {
|
|
228
|
+
color
|
|
229
|
+
},
|
|
230
|
+
style: {
|
|
231
|
+
backgroundColor: (theme.vars || theme).palette[color].main
|
|
232
|
+
}
|
|
233
|
+
})), {
|
|
234
|
+
props: {
|
|
235
|
+
variant: 'determinate'
|
|
236
|
+
},
|
|
237
|
+
style: {
|
|
238
|
+
transition: `transform .${TRANSITION_DURATION}s linear`
|
|
239
|
+
}
|
|
240
|
+
}, {
|
|
241
|
+
props: {
|
|
242
|
+
variant: 'buffer'
|
|
243
|
+
},
|
|
244
|
+
style: {
|
|
245
|
+
zIndex: 1,
|
|
246
|
+
transition: `transform .${TRANSITION_DURATION}s linear`
|
|
247
|
+
}
|
|
248
|
+
}, {
|
|
249
|
+
props: ({
|
|
250
|
+
ownerState
|
|
251
|
+
}) => ownerState.variant === 'indeterminate' || ownerState.variant === 'query',
|
|
252
|
+
style: {
|
|
253
|
+
width: 'auto'
|
|
254
|
+
}
|
|
255
|
+
}, {
|
|
256
|
+
props: ({
|
|
257
|
+
ownerState
|
|
258
|
+
}) => ownerState.variant === 'indeterminate' || ownerState.variant === 'query',
|
|
259
|
+
style: indeterminate1Animation || {
|
|
260
|
+
animation: `${indeterminate1Keyframe} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`
|
|
261
|
+
}
|
|
262
|
+
}]
|
|
263
|
+
}));
|
|
191
264
|
const LinearProgressBar2 = styled('span', {
|
|
192
265
|
name: 'MuiLinearProgress',
|
|
193
266
|
slot: 'Bar2',
|
|
@@ -198,29 +271,61 @@ const LinearProgressBar2 = styled('span', {
|
|
|
198
271
|
return [styles.bar, styles[`barColor${capitalize(ownerState.color)}`], (ownerState.variant === 'indeterminate' || ownerState.variant === 'query') && styles.bar2Indeterminate, ownerState.variant === 'buffer' && styles.bar2Buffer];
|
|
199
272
|
}
|
|
200
273
|
})(({
|
|
201
|
-
ownerState,
|
|
202
274
|
theme
|
|
203
|
-
}) =>
|
|
275
|
+
}) => ({
|
|
204
276
|
width: '100%',
|
|
205
277
|
position: 'absolute',
|
|
206
278
|
left: 0,
|
|
207
279
|
bottom: 0,
|
|
208
280
|
top: 0,
|
|
209
281
|
transition: 'transform 0.2s linear',
|
|
210
|
-
transformOrigin: 'left'
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
}),
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
282
|
+
transformOrigin: 'left',
|
|
283
|
+
variants: [...Object.entries(theme.palette).filter(([, value]) => value.main).map(([color]) => ({
|
|
284
|
+
props: {
|
|
285
|
+
color
|
|
286
|
+
},
|
|
287
|
+
style: {
|
|
288
|
+
'--LinearProgressBar2-barColor': (theme.vars || theme).palette[color].main
|
|
289
|
+
}
|
|
290
|
+
})), {
|
|
291
|
+
props: ({
|
|
292
|
+
ownerState
|
|
293
|
+
}) => ownerState.variant !== 'buffer' && ownerState.color !== 'inherit',
|
|
294
|
+
style: {
|
|
295
|
+
backgroundColor: 'var(--LinearProgressBar2-barColor, currentColor)'
|
|
296
|
+
}
|
|
297
|
+
}, {
|
|
298
|
+
props: {
|
|
299
|
+
color: 'inherit'
|
|
300
|
+
},
|
|
301
|
+
style: {
|
|
302
|
+
opacity: 0.3
|
|
303
|
+
}
|
|
304
|
+
}, ...Object.entries(theme.palette).filter(([, value]) => value.main).map(([color]) => ({
|
|
305
|
+
props: {
|
|
306
|
+
color,
|
|
307
|
+
variant: 'buffer'
|
|
308
|
+
},
|
|
309
|
+
style: {
|
|
310
|
+
backgroundColor: getColorShade(theme, color),
|
|
311
|
+
transition: `transform .${TRANSITION_DURATION}s linear`
|
|
312
|
+
}
|
|
313
|
+
})), {
|
|
314
|
+
props: ({
|
|
315
|
+
ownerState
|
|
316
|
+
}) => ownerState.variant === 'indeterminate' || ownerState.variant === 'query',
|
|
317
|
+
style: {
|
|
318
|
+
width: 'auto'
|
|
319
|
+
}
|
|
320
|
+
}, {
|
|
321
|
+
props: ({
|
|
322
|
+
ownerState
|
|
323
|
+
}) => ownerState.variant === 'indeterminate' || ownerState.variant === 'query',
|
|
324
|
+
style: indeterminate2Animation || {
|
|
325
|
+
animation: `${indeterminate2Keyframe} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`
|
|
326
|
+
}
|
|
327
|
+
}]
|
|
328
|
+
}));
|
|
224
329
|
|
|
225
330
|
/**
|
|
226
331
|
* ## ARIA
|
|
@@ -9,7 +9,6 @@ import clsx from 'clsx';
|
|
|
9
9
|
import composeClasses from '@mui/utils/composeClasses';
|
|
10
10
|
import { alpha } from '@mui/system/colorManipulator';
|
|
11
11
|
import { useRtl } from '@mui/system/RtlProvider';
|
|
12
|
-
import useThemeProps from '../styles/useThemeProps';
|
|
13
12
|
import paginationItemClasses, { getPaginationItemUtilityClass } from './paginationItemClasses';
|
|
14
13
|
import ButtonBase from '../ButtonBase';
|
|
15
14
|
import capitalize from '../utils/capitalize';
|
|
@@ -17,8 +16,9 @@ import FirstPageIcon from '../internal/svg-icons/FirstPage';
|
|
|
17
16
|
import LastPageIcon from '../internal/svg-icons/LastPage';
|
|
18
17
|
import NavigateBeforeIcon from '../internal/svg-icons/NavigateBefore';
|
|
19
18
|
import NavigateNextIcon from '../internal/svg-icons/NavigateNext';
|
|
20
|
-
import styled from '../
|
|
19
|
+
import { styled, createUseThemeProps } from '../zero-styled';
|
|
21
20
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
21
|
+
const useThemeProps = createUseThemeProps('MuiPaginationItem');
|
|
22
22
|
const overridesResolver = (props, styles) => {
|
|
23
23
|
const {
|
|
24
24
|
ownerState
|
|
@@ -55,8 +55,7 @@ const PaginationItemEllipsis = styled('div', {
|
|
|
55
55
|
slot: 'Root',
|
|
56
56
|
overridesResolver
|
|
57
57
|
})(({
|
|
58
|
-
theme
|
|
59
|
-
ownerState
|
|
58
|
+
theme
|
|
60
59
|
}) => _extends({}, theme.typography.body2, {
|
|
61
60
|
borderRadius: 32 / 2,
|
|
62
61
|
textAlign: 'center',
|
|
@@ -68,25 +67,35 @@ const PaginationItemEllipsis = styled('div', {
|
|
|
68
67
|
height: 'auto',
|
|
69
68
|
[`&.${paginationItemClasses.disabled}`]: {
|
|
70
69
|
opacity: (theme.vars || theme).palette.action.disabledOpacity
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
70
|
+
},
|
|
71
|
+
variants: [{
|
|
72
|
+
props: {
|
|
73
|
+
size: 'small'
|
|
74
|
+
},
|
|
75
|
+
style: {
|
|
76
|
+
minWidth: 26,
|
|
77
|
+
borderRadius: 26 / 2,
|
|
78
|
+
margin: '0 1px',
|
|
79
|
+
padding: '0 4px'
|
|
80
|
+
}
|
|
81
|
+
}, {
|
|
82
|
+
props: {
|
|
83
|
+
size: 'large'
|
|
84
|
+
},
|
|
85
|
+
style: {
|
|
86
|
+
minWidth: 40,
|
|
87
|
+
borderRadius: 40 / 2,
|
|
88
|
+
padding: '0 10px',
|
|
89
|
+
fontSize: theme.typography.pxToRem(15)
|
|
90
|
+
}
|
|
91
|
+
}]
|
|
82
92
|
}));
|
|
83
93
|
const PaginationItemPage = styled(ButtonBase, {
|
|
84
94
|
name: 'MuiPaginationItem',
|
|
85
95
|
slot: 'Root',
|
|
86
96
|
overridesResolver
|
|
87
97
|
})(({
|
|
88
|
-
theme
|
|
89
|
-
ownerState
|
|
98
|
+
theme
|
|
90
99
|
}) => _extends({}, theme.typography.body2, {
|
|
91
100
|
borderRadius: 32 / 2,
|
|
92
101
|
textAlign: 'center',
|
|
@@ -129,80 +138,132 @@ const PaginationItemPage = styled(ButtonBase, {
|
|
|
129
138
|
color: (theme.vars || theme).palette.action.disabled,
|
|
130
139
|
backgroundColor: (theme.vars || theme).palette.action.selected
|
|
131
140
|
}
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
borderRadius: 26 / 2,
|
|
137
|
-
margin: '0 1px',
|
|
138
|
-
padding: '0 4px'
|
|
139
|
-
}, ownerState.size === 'large' && {
|
|
140
|
-
minWidth: 40,
|
|
141
|
-
height: 40,
|
|
142
|
-
borderRadius: 40 / 2,
|
|
143
|
-
padding: '0 10px',
|
|
144
|
-
fontSize: theme.typography.pxToRem(15)
|
|
145
|
-
}, ownerState.shape === 'rounded' && {
|
|
146
|
-
borderRadius: (theme.vars || theme).shape.borderRadius
|
|
147
|
-
}), ({
|
|
148
|
-
theme,
|
|
149
|
-
ownerState
|
|
150
|
-
}) => _extends({}, ownerState.variant === 'text' && {
|
|
151
|
-
[`&.${paginationItemClasses.selected}`]: _extends({}, ownerState.color !== 'standard' && {
|
|
152
|
-
color: (theme.vars || theme).palette[ownerState.color].contrastText,
|
|
153
|
-
backgroundColor: (theme.vars || theme).palette[ownerState.color].main,
|
|
154
|
-
'&:hover': {
|
|
155
|
-
backgroundColor: (theme.vars || theme).palette[ownerState.color].dark,
|
|
156
|
-
// Reset on touch devices, it doesn't add specificity
|
|
157
|
-
'@media (hover: none)': {
|
|
158
|
-
backgroundColor: (theme.vars || theme).palette[ownerState.color].main
|
|
159
|
-
}
|
|
141
|
+
},
|
|
142
|
+
variants: [{
|
|
143
|
+
props: {
|
|
144
|
+
size: 'small'
|
|
160
145
|
},
|
|
161
|
-
|
|
162
|
-
|
|
146
|
+
style: {
|
|
147
|
+
minWidth: 26,
|
|
148
|
+
height: 26,
|
|
149
|
+
borderRadius: 26 / 2,
|
|
150
|
+
margin: '0 1px',
|
|
151
|
+
padding: '0 4px'
|
|
163
152
|
}
|
|
164
153
|
}, {
|
|
165
|
-
|
|
166
|
-
|
|
154
|
+
props: {
|
|
155
|
+
size: 'large'
|
|
156
|
+
},
|
|
157
|
+
style: {
|
|
158
|
+
minWidth: 40,
|
|
159
|
+
height: 40,
|
|
160
|
+
borderRadius: 40 / 2,
|
|
161
|
+
padding: '0 10px',
|
|
162
|
+
fontSize: theme.typography.pxToRem(15)
|
|
167
163
|
}
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
[`&.${paginationItemClasses.selected}`]: _extends({}, ownerState.color !== 'standard' && {
|
|
172
|
-
color: (theme.vars || theme).palette[ownerState.color].main,
|
|
173
|
-
border: `1px solid ${theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / 0.5)` : alpha(theme.palette[ownerState.color].main, 0.5)}`,
|
|
174
|
-
backgroundColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / ${theme.vars.palette.action.activatedOpacity})` : alpha(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity),
|
|
175
|
-
'&:hover': {
|
|
176
|
-
backgroundColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / calc(${theme.vars.palette.action.activatedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : alpha(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity + theme.palette.action.focusOpacity),
|
|
177
|
-
// Reset on touch devices, it doesn't add specificity
|
|
178
|
-
'@media (hover: none)': {
|
|
179
|
-
backgroundColor: 'transparent'
|
|
180
|
-
}
|
|
164
|
+
}, {
|
|
165
|
+
props: {
|
|
166
|
+
shape: 'rounded'
|
|
181
167
|
},
|
|
182
|
-
|
|
183
|
-
|
|
168
|
+
style: {
|
|
169
|
+
borderRadius: (theme.vars || theme).shape.borderRadius
|
|
184
170
|
}
|
|
185
171
|
}, {
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
172
|
+
props: {
|
|
173
|
+
variant: 'outlined'
|
|
174
|
+
},
|
|
175
|
+
style: {
|
|
176
|
+
border: theme.vars ? `1px solid rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`,
|
|
177
|
+
[`&.${paginationItemClasses.selected}`]: {
|
|
178
|
+
[`&.${paginationItemClasses.disabled}`]: {
|
|
179
|
+
borderColor: (theme.vars || theme).palette.action.disabledBackground,
|
|
180
|
+
color: (theme.vars || theme).palette.action.disabled
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}, {
|
|
185
|
+
props: {
|
|
186
|
+
variant: 'text'
|
|
187
|
+
},
|
|
188
|
+
style: {
|
|
189
|
+
[`&.${paginationItemClasses.selected}`]: {
|
|
190
|
+
[`&.${paginationItemClasses.disabled}`]: {
|
|
191
|
+
color: (theme.vars || theme).palette.action.disabled
|
|
192
|
+
}
|
|
193
|
+
}
|
|
189
194
|
}
|
|
190
|
-
})
|
|
195
|
+
}, ...Object.entries(theme.palette).filter(([, value]) => value.main && value.dark && value.contrastText).map(([color]) => ({
|
|
196
|
+
props: {
|
|
197
|
+
variant: 'text',
|
|
198
|
+
color
|
|
199
|
+
},
|
|
200
|
+
style: {
|
|
201
|
+
[`&.${paginationItemClasses.selected}`]: {
|
|
202
|
+
color: (theme.vars || theme).palette[color].contrastText,
|
|
203
|
+
backgroundColor: (theme.vars || theme).palette[color].main,
|
|
204
|
+
'&:hover': {
|
|
205
|
+
backgroundColor: (theme.vars || theme).palette[color].dark,
|
|
206
|
+
// Reset on touch devices, it doesn't add specificity
|
|
207
|
+
'@media (hover: none)': {
|
|
208
|
+
backgroundColor: (theme.vars || theme).palette[color].main
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
[`&.${paginationItemClasses.focusVisible}`]: {
|
|
212
|
+
backgroundColor: (theme.vars || theme).palette[color].dark
|
|
213
|
+
},
|
|
214
|
+
[`&.${paginationItemClasses.disabled}`]: {
|
|
215
|
+
color: (theme.vars || theme).palette.action.disabled
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
})), ...Object.entries(theme.palette).filter(([, value]) => value.main && value.light).map(([color]) => ({
|
|
220
|
+
props: {
|
|
221
|
+
variant: 'outlined',
|
|
222
|
+
color
|
|
223
|
+
},
|
|
224
|
+
style: {
|
|
225
|
+
[`&.${paginationItemClasses.selected}`]: {
|
|
226
|
+
color: (theme.vars || theme).palette[color].main,
|
|
227
|
+
border: `1px solid ${theme.vars ? `rgba(${theme.vars.palette[color].mainChannel} / 0.5)` : alpha(theme.palette[color].main, 0.5)}`,
|
|
228
|
+
backgroundColor: theme.vars ? `rgba(${theme.vars.palette[color].mainChannel} / ${theme.vars.palette.action.activatedOpacity})` : alpha(theme.palette[color].main, theme.palette.action.activatedOpacity),
|
|
229
|
+
'&:hover': {
|
|
230
|
+
backgroundColor: theme.vars ? `rgba(${theme.vars.palette[color].mainChannel} / calc(${theme.vars.palette.action.activatedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : alpha(theme.palette[color].main, theme.palette.action.activatedOpacity + theme.palette.action.focusOpacity),
|
|
231
|
+
// Reset on touch devices, it doesn't add specificity
|
|
232
|
+
'@media (hover: none)': {
|
|
233
|
+
backgroundColor: 'transparent'
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
[`&.${paginationItemClasses.focusVisible}`]: {
|
|
237
|
+
backgroundColor: theme.vars ? `rgba(${theme.vars.palette[color].mainChannel} / calc(${theme.vars.palette.action.activatedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : alpha(theme.palette[color].main, theme.palette.action.activatedOpacity + theme.palette.action.focusOpacity)
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}))]
|
|
191
242
|
}));
|
|
192
243
|
const PaginationItemPageIcon = styled('div', {
|
|
193
244
|
name: 'MuiPaginationItem',
|
|
194
245
|
slot: 'Icon',
|
|
195
246
|
overridesResolver: (props, styles) => styles.icon
|
|
196
247
|
})(({
|
|
197
|
-
theme
|
|
198
|
-
|
|
199
|
-
}) => _extends({
|
|
248
|
+
theme
|
|
249
|
+
}) => ({
|
|
200
250
|
fontSize: theme.typography.pxToRem(20),
|
|
201
|
-
margin: '0 -8px'
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
251
|
+
margin: '0 -8px',
|
|
252
|
+
variants: [{
|
|
253
|
+
props: {
|
|
254
|
+
size: 'small'
|
|
255
|
+
},
|
|
256
|
+
style: {
|
|
257
|
+
fontSize: theme.typography.pxToRem(18)
|
|
258
|
+
}
|
|
259
|
+
}, {
|
|
260
|
+
props: {
|
|
261
|
+
size: 'large'
|
|
262
|
+
},
|
|
263
|
+
style: {
|
|
264
|
+
fontSize: theme.typography.pxToRem(22)
|
|
265
|
+
}
|
|
266
|
+
}]
|
|
206
267
|
}));
|
|
207
268
|
const PaginationItem = /*#__PURE__*/React.forwardRef(function PaginationItem(inProps, ref) {
|
|
208
269
|
const props = useThemeProps({
|
package/Select/Select.d.ts
CHANGED
|
@@ -151,7 +151,8 @@ export interface BaseSelectProps<Value = unknown>
|
|
|
151
151
|
variant?: SelectVariants;
|
|
152
152
|
}
|
|
153
153
|
|
|
154
|
-
export interface FilledSelectProps
|
|
154
|
+
export interface FilledSelectProps
|
|
155
|
+
extends Omit<FilledInputProps, 'value' | 'onChange' | 'id' | 'classes' | 'inputProps'> {
|
|
155
156
|
/**
|
|
156
157
|
* The variant to use.
|
|
157
158
|
* @default 'outlined'
|
|
@@ -159,7 +160,8 @@ export interface FilledSelectProps extends Omit<FilledInputProps, 'value' | 'onC
|
|
|
159
160
|
variant: 'filled';
|
|
160
161
|
}
|
|
161
162
|
|
|
162
|
-
export interface StandardSelectProps
|
|
163
|
+
export interface StandardSelectProps
|
|
164
|
+
extends Omit<InputProps, 'value' | 'onChange' | 'id' | 'classes' | 'inputProps'> {
|
|
163
165
|
/**
|
|
164
166
|
* The variant to use.
|
|
165
167
|
* @default 'outlined'
|
|
@@ -167,7 +169,8 @@ export interface StandardSelectProps extends Omit<InputProps, 'value' | 'onChang
|
|
|
167
169
|
variant: 'standard';
|
|
168
170
|
}
|
|
169
171
|
|
|
170
|
-
export interface OutlinedSelectProps
|
|
172
|
+
export interface OutlinedSelectProps
|
|
173
|
+
extends Omit<OutlinedInputProps, 'value' | 'onChange' | 'id' | 'classes' | 'inputProps'> {
|
|
171
174
|
/**
|
|
172
175
|
* The variant to use.
|
|
173
176
|
* @default 'outlined'
|
|
@@ -193,8 +196,8 @@ export type SelectProps<Value = unknown> =
|
|
|
193
196
|
* - [Select API](https://mui.com/material-ui/api/select/)
|
|
194
197
|
* - inherits [OutlinedInput API](https://mui.com/material-ui/api/outlined-input/)
|
|
195
198
|
*/
|
|
196
|
-
|
|
197
|
-
props: SelectProps<Value>,
|
|
198
|
-
): JSX.Element & {
|
|
199
|
+
declare const Select: (<Value = unknown>(props: SelectProps<Value>) => JSX.Element) & {
|
|
199
200
|
muiName: string;
|
|
200
201
|
};
|
|
202
|
+
|
|
203
|
+
export default Select;
|
|
@@ -15,9 +15,13 @@ export interface StepConnectorClasses {
|
|
|
15
15
|
disabled: string;
|
|
16
16
|
/** Styles applied to the line element. */
|
|
17
17
|
line: string;
|
|
18
|
-
/** Styles applied to the
|
|
18
|
+
/** Styles applied to the line element if `orientation="horizontal"`.
|
|
19
|
+
* @deprecated Combine the [.MuiStepConnector-horizontal](/material-ui/api/step-connector/#step-connector-classes-horizontal) and [.MuiStepConnector-line](/material-ui/api/step-connector/#step-connector-classes-line) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
|
|
20
|
+
*/
|
|
19
21
|
lineHorizontal: string;
|
|
20
|
-
/** Styles applied to the
|
|
22
|
+
/** Styles applied to the line element if `orientation="vertical"`.
|
|
23
|
+
* @deprecated Combine the [.MuiStepConnector-vertical](/material-ui/api/step-connector/#step-connector-classes-vertical) and [.MuiStepConnector-line](/material-ui/api/step-connector/#step-connector-classes-line) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
|
|
24
|
+
*/
|
|
21
25
|
lineVertical: string;
|
|
22
26
|
}
|
|
23
27
|
export type StepConnectorClassKey = keyof StepConnectorClasses;
|