@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
package/AppBar/AppBar.js
CHANGED
package/Avatar/Avatar.js
CHANGED
|
@@ -88,7 +88,7 @@ const AvatarImg = styled('img', {
|
|
|
88
88
|
width: '100%',
|
|
89
89
|
height: '100%',
|
|
90
90
|
textAlign: 'center',
|
|
91
|
-
// Handle non-square image.
|
|
91
|
+
// Handle non-square image.
|
|
92
92
|
objectFit: 'cover',
|
|
93
93
|
// Hide alt text.
|
|
94
94
|
color: 'transparent',
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,117 @@
|
|
|
1
1
|
# [Versions](https://mui.com/versions/)
|
|
2
2
|
|
|
3
|
+
## v6.0.0-alpha.3
|
|
4
|
+
|
|
5
|
+
<!-- generated comparing v6.0.0-alpha.2..next -->
|
|
6
|
+
|
|
7
|
+
_Apr 17, 2024_
|
|
8
|
+
|
|
9
|
+
A big thanks to the 24 contributors who made this release possible. Here are some highlights ✨:
|
|
10
|
+
|
|
11
|
+
- 🔥 Converted 5 more Material UI components to use Pigment CSS.
|
|
12
|
+
- 🚀 Added container queries utility to the `@mui/system` package (#41674) @siriwatknp.
|
|
13
|
+
|
|
14
|
+
### `@mui/material@6.0.0-alpha.3`
|
|
15
|
+
|
|
16
|
+
- Convert `LinearProgress` to support Pigment CSS (#41816) @siriwatknp
|
|
17
|
+
- [Dialog] Prevent onClick on the root element from being overwritten (#41881) @ryanburr
|
|
18
|
+
- [FloatingActionButton] Convert to support CSS extraction (#41851) @gijsbotje
|
|
19
|
+
- Convert `CircularProgress` to support Pigment CSS (#41776) @siriwatknp
|
|
20
|
+
- [PaginationItem] Convert to support CSS extraction (#41848) @gijsbotje
|
|
21
|
+
- [StepConnector] deprecate composed classes (#41740) @sai6855
|
|
22
|
+
- [StepLabel] Deprecate `StepIconComponent`, `StepIconProps` (#41835) @sai6855
|
|
23
|
+
- [ToggleButton] Convert to support CSS extraction (#41782) @lhilgert9
|
|
24
|
+
- [ToggleButtonGroup] Deprecate composed classes (#41288) @sai6855
|
|
25
|
+
- [Typography] Fix Typography inherit variant styles (#41308) @kealjones-wk
|
|
26
|
+
|
|
27
|
+
### `@mui/system@6.0.0-alpha.3`
|
|
28
|
+
|
|
29
|
+
- Add container queries utility (#41674) @siriwatknp
|
|
30
|
+
|
|
31
|
+
### `@mui/codemod@6.0.0-alpha.3`
|
|
32
|
+
|
|
33
|
+
- Add styled v6 transformation (#41743) @siriwatknp
|
|
34
|
+
|
|
35
|
+
### `@mui/joy@5.0.0-beta.36`
|
|
36
|
+
|
|
37
|
+
- [Button] Disable text highlighting (#41902) @mithun522
|
|
38
|
+
|
|
39
|
+
### `@pigment-css/react@0.0.7`
|
|
40
|
+
|
|
41
|
+
- Patch WyW's WeakRef usage (#41909) @DiegoAndai
|
|
42
|
+
- Implement sx transform for system components (#41861) @brijeshb42
|
|
43
|
+
|
|
44
|
+
### Docs
|
|
45
|
+
|
|
46
|
+
- [material-ui] Add Connect-related content (#40848) @danilo-leal
|
|
47
|
+
- [material-ui] Fix credit comment typo (#41872) @aarongarciah
|
|
48
|
+
- [material-ui] Remove Data Grid v7 beta callout (#41839) @cherniavskii
|
|
49
|
+
- [material-ui] Add stray design tweaks to free templates (#41696) @zanivan
|
|
50
|
+
- [material-ui] Simplify components styling on templates (#41845) @zanivan
|
|
51
|
+
- [material-ui][Button] Add `onChange` event handler to file upload example (#41863) @aarongarciah
|
|
52
|
+
- [material-ui] Fix import statement in migration guide (#41852) @sai6855
|
|
53
|
+
- Fix 301 redirection @oliviertassinari
|
|
54
|
+
- Fix format git diff regression (#41882) @oliviertassinari
|
|
55
|
+
- Fix small SEO issues @oliviertassinari
|
|
56
|
+
- [pigment-css] Fix README typos (#41870) @MohammadShehadeh
|
|
57
|
+
|
|
58
|
+
### Core
|
|
59
|
+
|
|
60
|
+
- Begin removing IE 11-related code (#41709) @iammminzzy
|
|
61
|
+
- [blog] Add post to introduce the Connect plugin (#41763) @danilo-leal
|
|
62
|
+
- [code-infra] Fix require.context with aliases (#41682) @Janpot
|
|
63
|
+
- [code-infra] Allow customizing hooks imports in API docs generator (#41828) @michaldudak
|
|
64
|
+
- [codemod] Add utils for `*Component` and `*Props` props deprecations (#41685) @DiegoAndai
|
|
65
|
+
- Replace bundle size reporter filter (#38979) @Janpot
|
|
66
|
+
- [docs-infra] Make the whole header clickable (#39603) @MoazMirza-13
|
|
67
|
+
- [docs-infra] Improve demo container and related components design (#41827) @danilo-leal
|
|
68
|
+
- [docs-infra] Use edge function for card generation (#41188) (#41836) @alexfauquette
|
|
69
|
+
- [docs-infra] Fix code block layout shift (#41917) @oliviertassinari
|
|
70
|
+
- [docs-infra] Fine-tune the OG card image design (#41862) @danilo-leal
|
|
71
|
+
- [docs-infra] Fix markdown version for material (#41908) @alexfauquette
|
|
72
|
+
- [docs-infra] Support multiple tabs in demos (#40901) @bharatkashyap
|
|
73
|
+
|
|
74
|
+
All contributors of this release in alphabetical order: @aarongarciah, @alexfauquette, @bharatkashyap, @brijeshb42, @cherniavskii, @danilo-leal, @DiegoAndai, @EyaOuenniche, @gijsbotje, @iammminzzy, @Janpot, @kealjones-wk, @lhilgert9, @magnimarels, @michaldudak, @mithun522, @mnajdova, @MoazMirza-13, @MohammadShehadeh, @oliviertassinari, @ryanburr, @sai6855, @siriwatknp, @zanivan
|
|
75
|
+
|
|
76
|
+
## v6.0.0-alpha.2
|
|
77
|
+
|
|
78
|
+
<!-- generated comparing v6.0.0-alpha.1..next -->
|
|
79
|
+
|
|
80
|
+
_Apr 9, 2024_
|
|
81
|
+
|
|
82
|
+
A big thanks to the 5 contributors who made this release possible.
|
|
83
|
+
This release was mostly about 🐛 bug fixes and 📚 documentation improvements.
|
|
84
|
+
|
|
85
|
+
### `@mui/material@6.0.0-alpha.2`
|
|
86
|
+
|
|
87
|
+
- ​<!-- 03 -->[typescript][Select] Fix `muiName` property TypeScript error (#41726) @EyaOuenniche
|
|
88
|
+
- ​<!-- 04 -->[l10n] Fix typo in is-IS locale (#41810) @magnimarels
|
|
89
|
+
|
|
90
|
+
### `@pigment-css/react@0.0.6`
|
|
91
|
+
|
|
92
|
+
- ​<!-- 12 -->[core] Remove `muiName` during eval phase (#41811) @brijeshb42
|
|
93
|
+
|
|
94
|
+
### `@pigment-css/nextjs-plugin@0.0.6`
|
|
95
|
+
|
|
96
|
+
- ​<!-- 02 -->[nextjs] Handle file references passed through imports (#41817) @brijeshb42
|
|
97
|
+
- ​<!-- 01 -->[nextjs] Allow usage of url() CSS function (#41758) @brijeshb42
|
|
98
|
+
|
|
99
|
+
### Docs
|
|
100
|
+
|
|
101
|
+
- ​<!-- 11 -->[docs] Fix 301 links @oliviertassinari
|
|
102
|
+
- ​<!-- 06 -->[pigment-css][docs] Fix README typo (#41808) @aarongarciah
|
|
103
|
+
- ​<!-- 05 -->[pigment-css][docs] Fix output on dynamic styles example (#41805) @aarongarciah
|
|
104
|
+
- ​<!-- 07 -->[material-ui][docs] Fix Material 3 message typo (#41821) @aarongarciah
|
|
105
|
+
- ​<!-- 08 -->[material-ui][docs] Add stray design tweaks to free templates (#41696) @zanivan
|
|
106
|
+
|
|
107
|
+
### Core
|
|
108
|
+
|
|
109
|
+
- ​<!-- 13 -->[core] Remove unused files (#41818) @mnajdova
|
|
110
|
+
- ​<!-- 10 -->[docs-infra] Fix analytics about inline ads (#41474) (#41819) @alexfauquette
|
|
111
|
+
- ​<!-- 08 -->[docs-infra] Fix drawer performances (#41807) @alexfauquette
|
|
112
|
+
|
|
113
|
+
All contributors of this release in alphabetical order: @aarongarciah, @alexfauquette, @brijeshb42, @EyaOuenniche, @oliviertassinari
|
|
114
|
+
|
|
3
115
|
## v6.0.0-alpha.1
|
|
4
116
|
|
|
5
117
|
<!-- generated comparing v6.0.0-alpha.0..next -->
|
|
@@ -8128,7 +8240,7 @@ A big thanks to the 25 contributors who made this release possible. Here are som
|
|
|
8128
8240
|
|
|
8129
8241
|
<a href="https://mui.com/components/tables/#unstyled-table"><img width="800" alt="unstyled table" src="https://user-images.githubusercontent.com/4512430/144862194-584356ef-7d9d-462c-a631-186a7e716193.png"></a>
|
|
8130
8242
|
|
|
8131
|
-
You can follow our progress with unstyled components at https://github.com/mui/
|
|
8243
|
+
You can follow our progress with unstyled components at https://github.com/mui/base-ui/issues/10.
|
|
8132
8244
|
|
|
8133
8245
|
- 🎉 We have added an example of how to use MUI with [Remix](https://remix.run/) (#29952) @mnajdova
|
|
8134
8246
|
|
|
@@ -9598,7 +9710,7 @@ A big thanks to the 17 contributors who made this release possible. Here are som
|
|
|
9598
9710
|
|
|
9599
9711
|
<a href="https://mui.com/components/switches/#unstyled"><img width="832" alt="switch" src="https://user-images.githubusercontent.com/3165635/125192249-236f8a80-e247-11eb-9df9-17d476379a32.png"></a>
|
|
9600
9712
|
|
|
9601
|
-
You can follow our progress at https://github.com/mui/
|
|
9713
|
+
You can follow our progress at https://github.com/mui/base-ui/issues/10.
|
|
9602
9714
|
|
|
9603
9715
|
- 💄 We have updated the default `info` `success` `warning` color to be more accessible (#26817) @siriwatknp.
|
|
9604
9716
|
You can find the new [default values](https://mui.com/material-ui/customization/palette/#default-values) in the documentation.
|
package/CardMedia/CardMedia.js
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
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", "disableShrink", "size", "style", "thickness", "value", "variant"];
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import clsx from 'clsx';
|
|
9
9
|
import chainPropTypes from '@mui/utils/chainPropTypes';
|
|
10
10
|
import composeClasses from '@mui/utils/composeClasses';
|
|
11
|
-
import { keyframes, css } from '
|
|
11
|
+
import { keyframes, css, createUseThemeProps, styled } from '../zero-styled';
|
|
12
12
|
import capitalize from '../utils/capitalize';
|
|
13
|
-
import useThemeProps from '../styles/useThemeProps';
|
|
14
|
-
import styled from '../styles/styled';
|
|
15
13
|
import { getCircularProgressUtilityClass } from './circularProgressClasses';
|
|
16
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
|
+
const useThemeProps = createUseThemeProps('MuiCircularProgress');
|
|
17
16
|
const SIZE = 44;
|
|
18
17
|
const circularRotateKeyframe = keyframes`
|
|
19
18
|
0% {
|
|
@@ -40,6 +39,16 @@ const circularDashKeyframe = keyframes`
|
|
|
40
39
|
stroke-dashoffset: -125px;
|
|
41
40
|
}
|
|
42
41
|
`;
|
|
42
|
+
|
|
43
|
+
// This implementation is for supporting both Styled-components v4+ and Pigment CSS.
|
|
44
|
+
// 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).
|
|
45
|
+
// which can be done by checking typeof indeterminate1Keyframe !== 'string' (at runtime, Pigment CSS transform keyframes`` to a string).
|
|
46
|
+
const rotateAnimation = typeof circularRotateKeyframe !== 'string' ? css`
|
|
47
|
+
animation: ${circularRotateKeyframe} 1.4s linear infinite;
|
|
48
|
+
` : null;
|
|
49
|
+
const dashAnimation = typeof circularDashKeyframe !== 'string' ? css`
|
|
50
|
+
animation: ${circularDashKeyframe} 1.4s ease-in-out infinite;
|
|
51
|
+
` : null;
|
|
43
52
|
const useUtilityClasses = ownerState => {
|
|
44
53
|
const {
|
|
45
54
|
classes,
|
|
@@ -64,19 +73,32 @@ const CircularProgressRoot = styled('span', {
|
|
|
64
73
|
return [styles.root, styles[ownerState.variant], styles[`color${capitalize(ownerState.color)}`]];
|
|
65
74
|
}
|
|
66
75
|
})(({
|
|
67
|
-
ownerState,
|
|
68
76
|
theme
|
|
69
|
-
}) =>
|
|
70
|
-
display: 'inline-block'
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
|
|
77
|
+
}) => ({
|
|
78
|
+
display: 'inline-block',
|
|
79
|
+
variants: [{
|
|
80
|
+
props: {
|
|
81
|
+
variant: 'determinate'
|
|
82
|
+
},
|
|
83
|
+
style: {
|
|
84
|
+
transition: theme.transitions.create('transform')
|
|
85
|
+
}
|
|
86
|
+
}, {
|
|
87
|
+
props: {
|
|
88
|
+
variant: 'indeterminate'
|
|
89
|
+
},
|
|
90
|
+
style: rotateAnimation || {
|
|
91
|
+
animation: `${circularRotateKeyframe} 1.4s linear infinite`
|
|
92
|
+
}
|
|
93
|
+
}, ...Object.entries(theme.palette).filter(([, palette]) => palette.main).map(([color]) => ({
|
|
94
|
+
props: {
|
|
95
|
+
color
|
|
96
|
+
},
|
|
97
|
+
style: {
|
|
98
|
+
color: (theme.vars || theme).palette[color].main
|
|
99
|
+
}
|
|
100
|
+
}))]
|
|
101
|
+
}));
|
|
80
102
|
const CircularProgressSVG = styled('svg', {
|
|
81
103
|
name: 'MuiCircularProgress',
|
|
82
104
|
slot: 'Svg',
|
|
@@ -94,21 +116,35 @@ const CircularProgressCircle = styled('circle', {
|
|
|
94
116
|
return [styles.circle, styles[`circle${capitalize(ownerState.variant)}`], ownerState.disableShrink && styles.circleDisableShrink];
|
|
95
117
|
}
|
|
96
118
|
})(({
|
|
97
|
-
ownerState,
|
|
98
119
|
theme
|
|
99
|
-
}) =>
|
|
100
|
-
stroke: 'currentColor'
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
120
|
+
}) => ({
|
|
121
|
+
stroke: 'currentColor',
|
|
122
|
+
variants: [{
|
|
123
|
+
props: {
|
|
124
|
+
variant: 'determinate'
|
|
125
|
+
},
|
|
126
|
+
style: {
|
|
127
|
+
transition: theme.transitions.create('stroke-dashoffset')
|
|
128
|
+
}
|
|
129
|
+
}, {
|
|
130
|
+
props: {
|
|
131
|
+
variant: 'indeterminate'
|
|
132
|
+
},
|
|
133
|
+
style: {
|
|
134
|
+
// Some default value that looks fine waiting for the animation to kicks in.
|
|
135
|
+
strokeDasharray: '80px, 200px',
|
|
136
|
+
strokeDashoffset: 0 // Add the unit to fix a Edge 16 and below bug.
|
|
137
|
+
}
|
|
138
|
+
}, {
|
|
139
|
+
props: ({
|
|
140
|
+
ownerState
|
|
141
|
+
}) => ownerState.variant === 'indeterminate' && !ownerState.disableShrink,
|
|
142
|
+
style: dashAnimation || {
|
|
143
|
+
// At runtime for Pigment CSS, `bufferAnimation` will be null and the generated keyframe will be used.
|
|
144
|
+
animation: `${circularDashKeyframe} 1.4s ease-in-out infinite`
|
|
145
|
+
}
|
|
146
|
+
}]
|
|
147
|
+
}));
|
|
112
148
|
|
|
113
149
|
/**
|
|
114
150
|
* ## ARIA
|
package/Dialog/Dialog.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
4
4
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
5
|
-
const _excluded = ["aria-describedby", "aria-labelledby", "BackdropComponent", "BackdropProps", "children", "className", "disableEscapeKeyDown", "fullScreen", "fullWidth", "maxWidth", "onBackdropClick", "onClose", "open", "PaperComponent", "PaperProps", "scroll", "TransitionComponent", "transitionDuration", "TransitionProps"];
|
|
5
|
+
const _excluded = ["aria-describedby", "aria-labelledby", "BackdropComponent", "BackdropProps", "children", "className", "disableEscapeKeyDown", "fullScreen", "fullWidth", "maxWidth", "onBackdropClick", "onClick", "onClose", "open", "PaperComponent", "PaperProps", "scroll", "TransitionComponent", "transitionDuration", "TransitionProps"];
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import clsx from 'clsx';
|
|
@@ -171,6 +171,7 @@ const Dialog = /*#__PURE__*/React.forwardRef(function Dialog(inProps, ref) {
|
|
|
171
171
|
fullWidth = false,
|
|
172
172
|
maxWidth = 'sm',
|
|
173
173
|
onBackdropClick,
|
|
174
|
+
onClick,
|
|
174
175
|
onClose,
|
|
175
176
|
open,
|
|
176
177
|
PaperComponent = Paper,
|
|
@@ -196,6 +197,10 @@ const Dialog = /*#__PURE__*/React.forwardRef(function Dialog(inProps, ref) {
|
|
|
196
197
|
backdropClick.current = event.target === event.currentTarget;
|
|
197
198
|
};
|
|
198
199
|
const handleBackdropClick = event => {
|
|
200
|
+
if (onClick) {
|
|
201
|
+
onClick(event);
|
|
202
|
+
}
|
|
203
|
+
|
|
199
204
|
// Ignore the events not coming from the "backdrop".
|
|
200
205
|
if (!backdropClick.current) {
|
|
201
206
|
return;
|
|
@@ -334,6 +339,10 @@ process.env.NODE_ENV !== "production" ? Dialog.propTypes /* remove-proptypes */
|
|
|
334
339
|
* @deprecated Use the `onClose` prop with the `reason` argument to handle the `backdropClick` events.
|
|
335
340
|
*/
|
|
336
341
|
onBackdropClick: PropTypes.func,
|
|
342
|
+
/**
|
|
343
|
+
* @ignore
|
|
344
|
+
*/
|
|
345
|
+
onClick: PropTypes.func,
|
|
337
346
|
/**
|
|
338
347
|
* Callback fired when the component requests to be closed.
|
|
339
348
|
*
|
package/Fab/Fab.js
CHANGED
|
@@ -9,10 +9,11 @@ import clsx from 'clsx';
|
|
|
9
9
|
import composeClasses from '@mui/utils/composeClasses';
|
|
10
10
|
import ButtonBase from '../ButtonBase';
|
|
11
11
|
import capitalize from '../utils/capitalize';
|
|
12
|
-
import useThemeProps from '../styles/useThemeProps';
|
|
13
12
|
import fabClasses, { getFabUtilityClass } from './fabClasses';
|
|
14
|
-
import
|
|
13
|
+
import { rootShouldForwardProp } from '../styles/styled';
|
|
14
|
+
import { styled, createUseThemeProps } from '../zero-styled';
|
|
15
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
|
+
const useThemeProps = createUseThemeProps('MuiFab');
|
|
16
17
|
const useUtilityClasses = ownerState => {
|
|
17
18
|
const {
|
|
18
19
|
color,
|
|
@@ -37,8 +38,7 @@ const FabRoot = styled(ButtonBase, {
|
|
|
37
38
|
return [styles.root, styles[ownerState.variant], styles[`size${capitalize(ownerState.size)}`], ownerState.color === 'inherit' && styles.colorInherit, styles[capitalize(ownerState.size)], styles[ownerState.color]];
|
|
38
39
|
}
|
|
39
40
|
})(({
|
|
40
|
-
theme
|
|
41
|
-
ownerState
|
|
41
|
+
theme
|
|
42
42
|
}) => _extends({}, theme.typography.button, {
|
|
43
43
|
minHeight: 36,
|
|
44
44
|
transition: theme.transitions.create(['background-color', 'box-shadow', 'border-color'], {
|
|
@@ -66,47 +66,87 @@ const FabRoot = styled(ButtonBase, {
|
|
|
66
66
|
},
|
|
67
67
|
[`&.${fabClasses.focusVisible}`]: {
|
|
68
68
|
boxShadow: (theme.vars || theme).shadows[6]
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
},
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
},
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
69
|
+
},
|
|
70
|
+
variants: [{
|
|
71
|
+
props: {
|
|
72
|
+
size: 'small'
|
|
73
|
+
},
|
|
74
|
+
style: {
|
|
75
|
+
width: 40,
|
|
76
|
+
height: 40
|
|
77
|
+
}
|
|
78
|
+
}, {
|
|
79
|
+
props: {
|
|
80
|
+
size: 'medium'
|
|
81
|
+
},
|
|
82
|
+
style: {
|
|
83
|
+
width: 48,
|
|
84
|
+
height: 48
|
|
85
|
+
}
|
|
86
|
+
}, {
|
|
87
|
+
props: {
|
|
88
|
+
variant: 'extended'
|
|
89
|
+
},
|
|
90
|
+
style: {
|
|
91
|
+
borderRadius: 48 / 2,
|
|
92
|
+
padding: '0 16px',
|
|
93
|
+
width: 'auto',
|
|
94
|
+
minHeight: 'auto',
|
|
95
|
+
minWidth: 48,
|
|
96
|
+
height: 48
|
|
97
|
+
}
|
|
98
|
+
}, {
|
|
99
|
+
props: {
|
|
100
|
+
variant: 'extended',
|
|
101
|
+
size: 'small'
|
|
102
|
+
},
|
|
103
|
+
style: {
|
|
104
|
+
width: 'auto',
|
|
105
|
+
padding: '0 8px',
|
|
106
|
+
borderRadius: 34 / 2,
|
|
107
|
+
minWidth: 34,
|
|
108
|
+
height: 34
|
|
109
|
+
}
|
|
110
|
+
}, {
|
|
111
|
+
props: {
|
|
112
|
+
variant: 'extended',
|
|
113
|
+
size: 'medium'
|
|
114
|
+
},
|
|
115
|
+
style: {
|
|
116
|
+
width: 'auto',
|
|
117
|
+
padding: '0 16px',
|
|
118
|
+
borderRadius: 40 / 2,
|
|
119
|
+
minWidth: 40,
|
|
120
|
+
height: 40
|
|
121
|
+
}
|
|
122
|
+
}, {
|
|
123
|
+
props: {
|
|
124
|
+
color: 'inherit'
|
|
125
|
+
},
|
|
126
|
+
style: {
|
|
127
|
+
color: 'inherit'
|
|
128
|
+
}
|
|
129
|
+
}]
|
|
97
130
|
}), ({
|
|
98
|
-
theme
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
backgroundColor: (theme.vars || theme).palette[
|
|
131
|
+
theme
|
|
132
|
+
}) => ({
|
|
133
|
+
variants: [...Object.entries(theme.palette).filter(([, value]) => value.main && value.dark && value.contrastText) // check all the used fields in the style below
|
|
134
|
+
.map(([color]) => ({
|
|
135
|
+
props: {
|
|
136
|
+
color
|
|
137
|
+
},
|
|
138
|
+
style: {
|
|
139
|
+
color: (theme.vars || theme).palette[color].contrastText,
|
|
140
|
+
backgroundColor: (theme.vars || theme).palette[color].main,
|
|
141
|
+
'&:hover': {
|
|
142
|
+
backgroundColor: (theme.vars || theme).palette[color].dark,
|
|
143
|
+
// Reset on touch devices, it doesn't add specificity
|
|
144
|
+
'@media (hover: none)': {
|
|
145
|
+
backgroundColor: (theme.vars || theme).palette[color].main
|
|
146
|
+
}
|
|
147
|
+
}
|
|
108
148
|
}
|
|
109
|
-
}
|
|
149
|
+
}))]
|
|
110
150
|
}), ({
|
|
111
151
|
theme
|
|
112
152
|
}) => ({
|