@mui/material 6.0.0-alpha.7 → 6.0.0-alpha.8
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/Accordion/Accordion.js +33 -33
- package/AccordionActions/AccordionActions.js +11 -12
- package/AccordionDetails/AccordionDetails.js +7 -9
- package/AccordionSummary/AccordionSummary.js +14 -16
- package/Alert/Alert.js +56 -51
- package/AlertTitle/AlertTitle.js +7 -9
- package/AppBar/AppBar.js +34 -32
- package/Autocomplete/Autocomplete.js +164 -136
- package/Avatar/Avatar.js +41 -35
- package/AvatarGroup/AvatarGroup.js +31 -31
- package/Backdrop/Backdrop.js +33 -30
- package/Badge/Badge.js +31 -30
- package/BottomNavigation/BottomNavigation.js +15 -17
- package/BottomNavigationAction/BottomNavigationAction.js +15 -18
- package/Breadcrumbs/BreadcrumbCollapsed.js +35 -34
- package/Breadcrumbs/Breadcrumbs.js +19 -21
- package/Button/Button.js +32 -29
- package/ButtonBase/ButtonBase.js +43 -42
- package/ButtonBase/TouchRipple.js +9 -12
- package/ButtonGroup/ButtonGroup.js +23 -25
- package/CHANGELOG.md +37 -2
- package/Card/Card.js +11 -12
- package/CardActionArea/CardActionArea.js +9 -12
- package/CardActions/CardActions.js +11 -12
- package/CardContent/CardContent.js +11 -12
- package/CardHeader/CardHeader.js +30 -31
- package/CardMedia/CardMedia.js +19 -20
- package/Checkbox/Checkbox.js +29 -26
- package/Chip/Chip.js +38 -37
- package/CircularProgress/CircularProgress.js +24 -23
- package/Collapse/Collapse.js +44 -42
- package/CssBaseline/CssBaseline.js +17 -14
- package/Dialog/Dialog.js +41 -42
- package/DialogActions/DialogActions.js +11 -12
- package/DialogContent/DialogContent.js +11 -12
- package/DialogContentText/DialogContentText.js +13 -11
- package/DialogTitle/DialogTitle.js +8 -10
- package/Divider/Divider.js +19 -21
- package/Drawer/Drawer.js +50 -49
- package/Fab/Fab.js +26 -23
- package/Fade/Fade.js +31 -30
- package/FilledInput/FilledInput.js +48 -44
- package/FilledInput/filledInputClasses.js +4 -2
- package/FormControl/FormControl.js +27 -25
- package/FormControlLabel/FormControlLabel.js +32 -26
- package/FormGroup/FormGroup.js +11 -12
- package/FormHelperText/FormHelperText.js +26 -18
- package/FormLabel/FormLabel.js +27 -19
- package/GlobalStyles/GlobalStyles.js +3 -3
- package/Grid/Grid.js +49 -41
- package/Grow/Grow.js +31 -30
- package/Hidden/Hidden.js +21 -22
- package/Hidden/HiddenCss.js +29 -29
- package/Hidden/withWidth.js +19 -19
- package/Icon/Icon.js +15 -16
- package/IconButton/IconButton.js +18 -20
- package/ImageList/ImageList.js +24 -24
- package/ImageListItem/ImageListItem.js +19 -20
- package/ImageListItemBar/ImageListItemBar.js +15 -17
- package/Input/Input.js +21 -20
- package/Input/inputClasses.js +4 -2
- package/InputAdornment/InputAdornment.js +16 -18
- package/InputBase/InputBase.js +90 -73
- package/InputLabel/InputLabel.js +20 -16
- package/LinearProgress/LinearProgress.js +21 -23
- package/Link/Link.js +27 -26
- package/List/List.js +15 -17
- package/ListItem/ListItem.js +58 -49
- package/ListItemAvatar/ListItemAvatar.js +10 -11
- package/ListItemButton/ListItemButton.js +23 -22
- package/ListItemIcon/ListItemIcon.js +10 -11
- package/ListItemSecondaryAction/ListItemSecondaryAction.js +10 -11
- package/ListItemText/ListItemText.js +25 -27
- package/ListSubheader/ListSubheader.js +15 -16
- package/Menu/Menu.js +34 -36
- package/MenuItem/MenuItem.js +28 -26
- package/MenuList/MenuList.js +17 -20
- package/MobileStepper/MobileStepper.js +21 -22
- package/Modal/Modal.js +47 -38
- package/NativeSelect/NativeSelect.js +26 -22
- package/NativeSelect/NativeSelectInput.js +15 -16
- package/OutlinedInput/NotchedOutline.js +14 -14
- package/OutlinedInput/OutlinedInput.js +46 -42
- package/OutlinedInput/outlinedInputClasses.js +4 -2
- package/Pagination/Pagination.js +36 -32
- package/PaginationItem/PaginationItem.js +31 -30
- package/Paper/Paper.js +26 -23
- package/Popover/Popover.js +71 -71
- package/Popper/Popper.js +25 -27
- package/Radio/Radio.js +24 -22
- package/Radio/RadioButtonIcon.js +3 -3
- package/RadioGroup/RadioGroup.js +15 -18
- package/Rating/Rating.js +54 -47
- package/ScopedCssBaseline/ScopedCssBaseline.js +18 -15
- package/Select/Select.js +63 -57
- package/Select/SelectInput.js +64 -59
- package/Skeleton/Skeleton.js +20 -21
- package/Slide/Slide.js +37 -33
- package/Slider/Slider.js +155 -106
- package/Snackbar/Snackbar.js +52 -45
- package/SnackbarContent/SnackbarContent.js +13 -15
- package/SpeedDial/SpeedDial.js +59 -60
- package/SpeedDialAction/SpeedDialAction.js +34 -33
- package/SpeedDialIcon/SpeedDialIcon.js +10 -12
- package/Step/Step.js +18 -20
- package/StepButton/StepButton.js +16 -17
- package/StepConnector/StepConnector.js +10 -12
- package/StepContent/StepContent.js +18 -20
- package/StepIcon/StepIcon.js +22 -22
- package/StepLabel/StepLabel.js +33 -30
- package/Stepper/Stepper.js +21 -22
- package/SvgIcon/SvgIcon.js +21 -21
- package/SwipeableDrawer/SwipeArea.js +15 -16
- package/SwipeableDrawer/SwipeableDrawer.js +49 -43
- package/Switch/Switch.js +23 -20
- package/Tab/Tab.js +32 -33
- package/TabScrollButton/TabScrollButton.js +27 -21
- package/Table/Table.js +17 -17
- package/TableBody/TableBody.js +11 -12
- package/TableCell/TableCell.js +19 -19
- package/TableContainer/TableContainer.js +11 -12
- package/TableFooter/TableFooter.js +11 -12
- package/TableHead/TableHead.js +11 -12
- package/TablePagination/TablePagination.js +56 -52
- package/TablePagination/TablePaginationActions.js +51 -38
- package/TableRow/TableRow.js +13 -14
- package/TableSortLabel/TableSortLabel.js +15 -17
- package/Tabs/ScrollbarSize.js +7 -9
- package/Tabs/Tabs.js +52 -49
- package/TextField/TextField.d.ts +58 -3
- package/TextField/TextField.js +137 -67
- package/ToggleButton/ToggleButton.js +30 -32
- package/ToggleButtonGroup/ToggleButtonGroup.js +19 -21
- package/Toolbar/Toolbar.js +13 -14
- package/Tooltip/Tooltip.js +75 -60
- package/Typography/Typography.js +37 -35
- package/Zoom/Zoom.js +31 -30
- package/index.js +1 -1
- package/internal/SwitchBase.js +37 -37
- package/modern/Accordion/Accordion.js +33 -33
- package/modern/AccordionActions/AccordionActions.js +11 -12
- package/modern/AccordionDetails/AccordionDetails.js +7 -9
- package/modern/AccordionSummary/AccordionSummary.js +14 -16
- package/modern/Alert/Alert.js +56 -51
- package/modern/AlertTitle/AlertTitle.js +7 -9
- package/modern/AppBar/AppBar.js +34 -32
- package/modern/Autocomplete/Autocomplete.js +164 -136
- package/modern/Avatar/Avatar.js +41 -35
- package/modern/AvatarGroup/AvatarGroup.js +31 -31
- package/modern/Backdrop/Backdrop.js +33 -30
- package/modern/Badge/Badge.js +31 -30
- package/modern/BottomNavigation/BottomNavigation.js +15 -17
- package/modern/BottomNavigationAction/BottomNavigationAction.js +15 -18
- package/modern/Breadcrumbs/BreadcrumbCollapsed.js +35 -34
- package/modern/Breadcrumbs/Breadcrumbs.js +19 -21
- package/modern/Button/Button.js +32 -29
- package/modern/ButtonBase/ButtonBase.js +43 -42
- package/modern/ButtonBase/TouchRipple.js +9 -12
- package/modern/ButtonGroup/ButtonGroup.js +23 -25
- package/modern/Card/Card.js +11 -12
- package/modern/CardActionArea/CardActionArea.js +9 -12
- package/modern/CardActions/CardActions.js +11 -12
- package/modern/CardContent/CardContent.js +11 -12
- package/modern/CardHeader/CardHeader.js +30 -31
- package/modern/CardMedia/CardMedia.js +19 -20
- package/modern/Checkbox/Checkbox.js +29 -26
- package/modern/Chip/Chip.js +38 -37
- package/modern/CircularProgress/CircularProgress.js +24 -23
- package/modern/Collapse/Collapse.js +44 -42
- package/modern/CssBaseline/CssBaseline.js +17 -14
- package/modern/Dialog/Dialog.js +41 -42
- package/modern/DialogActions/DialogActions.js +11 -12
- package/modern/DialogContent/DialogContent.js +11 -12
- package/modern/DialogContentText/DialogContentText.js +13 -11
- package/modern/DialogTitle/DialogTitle.js +8 -10
- package/modern/Divider/Divider.js +19 -21
- package/modern/Drawer/Drawer.js +50 -49
- package/modern/Fab/Fab.js +26 -23
- package/modern/Fade/Fade.js +31 -30
- package/modern/FilledInput/FilledInput.js +48 -44
- package/modern/FilledInput/filledInputClasses.js +4 -2
- package/modern/FormControl/FormControl.js +27 -25
- package/modern/FormControlLabel/FormControlLabel.js +32 -26
- package/modern/FormGroup/FormGroup.js +11 -12
- package/modern/FormHelperText/FormHelperText.js +26 -18
- package/modern/FormLabel/FormLabel.js +27 -19
- package/modern/GlobalStyles/GlobalStyles.js +3 -3
- package/modern/Grid/Grid.js +49 -41
- package/modern/Grow/Grow.js +31 -30
- package/modern/Hidden/Hidden.js +21 -22
- package/modern/Hidden/HiddenCss.js +29 -29
- package/modern/Hidden/withWidth.js +19 -19
- package/modern/Icon/Icon.js +15 -16
- package/modern/IconButton/IconButton.js +18 -20
- package/modern/ImageList/ImageList.js +24 -24
- package/modern/ImageListItem/ImageListItem.js +19 -20
- package/modern/ImageListItemBar/ImageListItemBar.js +15 -17
- package/modern/Input/Input.js +21 -20
- package/modern/Input/inputClasses.js +4 -2
- package/modern/InputAdornment/InputAdornment.js +16 -18
- package/modern/InputBase/InputBase.js +90 -73
- package/modern/InputLabel/InputLabel.js +20 -16
- package/modern/LinearProgress/LinearProgress.js +21 -23
- package/modern/Link/Link.js +27 -26
- package/modern/List/List.js +15 -17
- package/modern/ListItem/ListItem.js +58 -49
- package/modern/ListItemAvatar/ListItemAvatar.js +10 -11
- package/modern/ListItemButton/ListItemButton.js +23 -22
- package/modern/ListItemIcon/ListItemIcon.js +10 -11
- package/modern/ListItemSecondaryAction/ListItemSecondaryAction.js +10 -11
- package/modern/ListItemText/ListItemText.js +25 -27
- package/modern/ListSubheader/ListSubheader.js +15 -16
- package/modern/Menu/Menu.js +34 -36
- package/modern/MenuItem/MenuItem.js +28 -26
- package/modern/MenuList/MenuList.js +17 -20
- package/modern/MobileStepper/MobileStepper.js +21 -22
- package/modern/Modal/Modal.js +47 -38
- package/modern/NativeSelect/NativeSelect.js +26 -22
- package/modern/NativeSelect/NativeSelectInput.js +15 -16
- package/modern/OutlinedInput/NotchedOutline.js +14 -14
- package/modern/OutlinedInput/OutlinedInput.js +46 -42
- package/modern/OutlinedInput/outlinedInputClasses.js +4 -2
- package/modern/Pagination/Pagination.js +36 -32
- package/modern/PaginationItem/PaginationItem.js +31 -30
- package/modern/Paper/Paper.js +26 -23
- package/modern/Popover/Popover.js +71 -71
- package/modern/Popper/Popper.js +25 -27
- package/modern/Radio/Radio.js +24 -22
- package/modern/Radio/RadioButtonIcon.js +3 -3
- package/modern/RadioGroup/RadioGroup.js +15 -18
- package/modern/Rating/Rating.js +54 -47
- package/modern/ScopedCssBaseline/ScopedCssBaseline.js +18 -15
- package/modern/Select/Select.js +63 -57
- package/modern/Select/SelectInput.js +64 -59
- package/modern/Skeleton/Skeleton.js +20 -21
- package/modern/Slide/Slide.js +37 -33
- package/modern/Slider/Slider.js +155 -106
- package/modern/Snackbar/Snackbar.js +52 -45
- package/modern/SnackbarContent/SnackbarContent.js +13 -15
- package/modern/SpeedDial/SpeedDial.js +59 -60
- package/modern/SpeedDialAction/SpeedDialAction.js +34 -33
- package/modern/SpeedDialIcon/SpeedDialIcon.js +10 -12
- package/modern/Step/Step.js +18 -20
- package/modern/StepButton/StepButton.js +16 -17
- package/modern/StepConnector/StepConnector.js +10 -12
- package/modern/StepContent/StepContent.js +18 -20
- package/modern/StepIcon/StepIcon.js +22 -22
- package/modern/StepLabel/StepLabel.js +33 -30
- package/modern/Stepper/Stepper.js +21 -22
- package/modern/SvgIcon/SvgIcon.js +21 -21
- package/modern/SwipeableDrawer/SwipeArea.js +15 -16
- package/modern/SwipeableDrawer/SwipeableDrawer.js +49 -43
- package/modern/Switch/Switch.js +23 -20
- package/modern/Tab/Tab.js +32 -33
- package/modern/TabScrollButton/TabScrollButton.js +27 -21
- package/modern/Table/Table.js +17 -17
- package/modern/TableBody/TableBody.js +11 -12
- package/modern/TableCell/TableCell.js +19 -19
- package/modern/TableContainer/TableContainer.js +11 -12
- package/modern/TableFooter/TableFooter.js +11 -12
- package/modern/TableHead/TableHead.js +11 -12
- package/modern/TablePagination/TablePagination.js +56 -52
- package/modern/TablePagination/TablePaginationActions.js +51 -38
- package/modern/TableRow/TableRow.js +13 -14
- package/modern/TableSortLabel/TableSortLabel.js +15 -17
- package/modern/Tabs/ScrollbarSize.js +7 -9
- package/modern/Tabs/Tabs.js +52 -49
- package/modern/TextField/TextField.js +137 -67
- package/modern/ToggleButton/ToggleButton.js +30 -32
- package/modern/ToggleButtonGroup/ToggleButtonGroup.js +19 -21
- package/modern/Toolbar/Toolbar.js +13 -14
- package/modern/Tooltip/Tooltip.js +75 -60
- package/modern/Typography/Typography.js +37 -35
- package/modern/Zoom/Zoom.js +31 -30
- package/modern/index.js +1 -1
- package/modern/internal/SwitchBase.js +37 -37
- package/modern/styles/CssVarsProvider.js +3 -3
- package/modern/styles/ThemeProvider.js +7 -10
- package/modern/styles/adaptV4Theme.js +31 -31
- package/modern/styles/createMixins.js +4 -4
- package/modern/styles/createPalette.js +16 -13
- package/modern/styles/createTheme.js +16 -11
- package/modern/styles/createTransitions.js +17 -14
- package/modern/styles/createTypography.js +31 -29
- package/modern/styles/experimental_extendTheme.js +47 -37
- package/modern/styles/responsiveFontSizes.js +17 -11
- package/modern/usePagination/usePagination.js +18 -20
- package/modern/useScrollTrigger/useScrollTrigger.js +8 -10
- package/modern/utils/createSvgIcon.js +4 -5
- package/modern/utils/useSlot.js +41 -40
- package/node/Accordion/Accordion.js +33 -33
- package/node/AccordionActions/AccordionActions.js +11 -12
- package/node/AccordionDetails/AccordionDetails.js +7 -9
- package/node/AccordionSummary/AccordionSummary.js +14 -16
- package/node/Alert/Alert.js +56 -51
- package/node/AlertTitle/AlertTitle.js +7 -9
- package/node/AppBar/AppBar.js +125 -129
- package/node/Autocomplete/Autocomplete.js +165 -137
- package/node/Avatar/Avatar.js +41 -35
- package/node/AvatarGroup/AvatarGroup.js +31 -31
- package/node/Backdrop/Backdrop.js +33 -30
- package/node/Badge/Badge.js +179 -184
- package/node/BottomNavigation/BottomNavigation.js +15 -17
- package/node/BottomNavigationAction/BottomNavigationAction.js +15 -18
- package/node/Breadcrumbs/BreadcrumbCollapsed.js +35 -34
- package/node/Breadcrumbs/Breadcrumbs.js +19 -21
- package/node/Button/Button.js +32 -29
- package/node/ButtonBase/ButtonBase.js +43 -42
- package/node/ButtonBase/TouchRipple.js +9 -12
- package/node/ButtonGroup/ButtonGroup.js +23 -25
- package/node/Card/Card.js +11 -12
- package/node/CardActionArea/CardActionArea.js +9 -12
- package/node/CardActions/CardActions.js +11 -12
- package/node/CardContent/CardContent.js +11 -12
- package/node/CardHeader/CardHeader.js +30 -31
- package/node/CardMedia/CardMedia.js +19 -20
- package/node/Checkbox/Checkbox.js +29 -26
- package/node/Chip/Chip.js +38 -37
- package/node/CircularProgress/CircularProgress.js +24 -23
- package/node/Collapse/Collapse.js +44 -42
- package/node/CssBaseline/CssBaseline.js +17 -14
- package/node/Dialog/Dialog.js +41 -42
- package/node/DialogActions/DialogActions.js +11 -12
- package/node/DialogContent/DialogContent.js +11 -12
- package/node/DialogContentText/DialogContentText.js +13 -11
- package/node/DialogTitle/DialogTitle.js +8 -10
- package/node/Divider/Divider.js +19 -21
- package/node/Drawer/Drawer.js +50 -49
- package/node/Fab/Fab.js +27 -24
- package/node/Fade/Fade.js +31 -30
- package/node/FilledInput/FilledInput.js +48 -44
- package/node/FilledInput/filledInputClasses.js +4 -2
- package/node/FormControl/FormControl.js +27 -25
- package/node/FormControlLabel/FormControlLabel.js +32 -26
- package/node/FormGroup/FormGroup.js +11 -12
- package/node/FormHelperText/FormHelperText.js +26 -18
- package/node/FormLabel/FormLabel.js +27 -19
- package/node/GlobalStyles/GlobalStyles.js +3 -3
- package/node/Grid/Grid.js +49 -41
- package/node/Grow/Grow.js +31 -30
- package/node/Hidden/Hidden.js +24 -26
- package/node/Hidden/HiddenCss.js +29 -29
- package/node/Hidden/withWidth.js +19 -19
- package/node/Icon/Icon.js +15 -16
- package/node/IconButton/IconButton.js +18 -20
- package/node/ImageList/ImageList.js +24 -24
- package/node/ImageListItem/ImageListItem.js +19 -20
- package/node/ImageListItemBar/ImageListItemBar.js +15 -17
- package/node/Input/Input.js +21 -20
- package/node/Input/inputClasses.js +4 -2
- package/node/InputAdornment/InputAdornment.js +16 -18
- package/node/InputBase/InputBase.js +90 -73
- package/node/InputLabel/InputLabel.js +20 -16
- package/node/LinearProgress/LinearProgress.js +21 -23
- package/node/Link/Link.js +27 -26
- package/node/List/List.js +15 -17
- package/node/ListItem/ListItem.js +58 -49
- package/node/ListItemAvatar/ListItemAvatar.js +10 -11
- package/node/ListItemButton/ListItemButton.js +23 -22
- package/node/ListItemIcon/ListItemIcon.js +10 -11
- package/node/ListItemSecondaryAction/ListItemSecondaryAction.js +10 -11
- package/node/ListItemText/ListItemText.js +25 -27
- package/node/ListSubheader/ListSubheader.js +15 -16
- package/node/Menu/Menu.js +34 -36
- package/node/MenuItem/MenuItem.js +28 -26
- package/node/MenuList/MenuList.js +17 -20
- package/node/MobileStepper/MobileStepper.js +21 -22
- package/node/Modal/Modal.js +47 -38
- package/node/NativeSelect/NativeSelect.js +26 -22
- package/node/NativeSelect/NativeSelectInput.js +15 -16
- package/node/OutlinedInput/NotchedOutline.js +14 -14
- package/node/OutlinedInput/OutlinedInput.js +46 -42
- package/node/OutlinedInput/outlinedInputClasses.js +4 -2
- package/node/Pagination/Pagination.js +36 -32
- package/node/PaginationItem/PaginationItem.js +31 -30
- package/node/Paper/Paper.js +26 -23
- package/node/Popover/Popover.js +71 -71
- package/node/Popper/Popper.js +25 -27
- package/node/Radio/Radio.js +24 -22
- package/node/Radio/RadioButtonIcon.js +3 -3
- package/node/RadioGroup/RadioGroup.js +15 -18
- package/node/Rating/Rating.js +54 -47
- package/node/ScopedCssBaseline/ScopedCssBaseline.js +18 -15
- package/node/Select/Select.js +63 -57
- package/node/Select/SelectInput.js +64 -59
- package/node/Skeleton/Skeleton.js +20 -21
- package/node/Slide/Slide.js +39 -34
- package/node/Slider/Slider.js +298 -265
- package/node/Snackbar/Snackbar.js +52 -45
- package/node/SnackbarContent/SnackbarContent.js +13 -15
- package/node/SpeedDial/SpeedDial.js +59 -60
- package/node/SpeedDialAction/SpeedDialAction.js +34 -33
- package/node/SpeedDialIcon/SpeedDialIcon.js +10 -12
- package/node/Step/Step.js +18 -20
- package/node/StepButton/StepButton.js +16 -17
- package/node/StepConnector/StepConnector.js +10 -12
- package/node/StepContent/StepContent.js +18 -20
- package/node/StepIcon/StepIcon.js +22 -22
- package/node/StepLabel/StepLabel.js +33 -30
- package/node/Stepper/Stepper.js +21 -22
- package/node/SvgIcon/SvgIcon.js +21 -21
- package/node/SwipeableDrawer/SwipeArea.js +15 -16
- package/node/SwipeableDrawer/SwipeableDrawer.js +51 -44
- package/node/Switch/Switch.js +23 -20
- package/node/Tab/Tab.js +32 -33
- package/node/TabScrollButton/TabScrollButton.js +27 -21
- package/node/Table/Table.js +17 -17
- package/node/TableBody/TableBody.js +11 -12
- package/node/TableCell/TableCell.js +19 -19
- package/node/TableContainer/TableContainer.js +11 -12
- package/node/TableFooter/TableFooter.js +11 -12
- package/node/TableHead/TableHead.js +11 -12
- package/node/TablePagination/TablePagination.js +56 -52
- package/node/TablePagination/TablePaginationActions.js +54 -42
- package/node/TableRow/TableRow.js +13 -14
- package/node/TableSortLabel/TableSortLabel.js +15 -17
- package/node/Tabs/ScrollbarSize.js +7 -9
- package/node/Tabs/Tabs.js +52 -49
- package/node/TextField/TextField.js +137 -67
- package/node/ToggleButton/ToggleButton.js +30 -32
- package/node/ToggleButtonGroup/ToggleButtonGroup.js +19 -21
- package/node/Toolbar/Toolbar.js +13 -14
- package/node/Tooltip/Tooltip.js +75 -60
- package/node/Typography/Typography.js +37 -35
- package/node/Zoom/Zoom.js +31 -30
- package/node/index.js +1 -1
- package/node/internal/SwitchBase.js +37 -37
- package/node/styles/CssVarsProvider.js +3 -3
- package/node/styles/ThemeProvider.js +7 -10
- package/node/styles/adaptV4Theme.js +31 -32
- package/node/styles/createMixins.js +4 -5
- package/node/styles/createPalette.js +16 -13
- package/node/styles/createTheme.js +16 -11
- package/node/styles/createTransitions.js +17 -15
- package/node/styles/createTypography.js +31 -29
- package/node/styles/experimental_extendTheme.js +47 -37
- package/node/styles/responsiveFontSizes.js +17 -11
- package/node/usePagination/usePagination.js +18 -20
- package/node/useScrollTrigger/useScrollTrigger.js +8 -11
- package/node/utils/createSvgIcon.js +4 -5
- package/node/utils/useSlot.js +41 -40
- package/package.json +5 -5
- package/styles/CssVarsProvider.js +3 -3
- package/styles/ThemeProvider.js +7 -10
- package/styles/adaptV4Theme.js +31 -31
- package/styles/createMixins.js +4 -4
- package/styles/createPalette.js +16 -13
- package/styles/createTheme.js +16 -11
- package/styles/createTransitions.js +17 -14
- package/styles/createTypography.js +31 -29
- package/styles/experimental_extendTheme.js +47 -37
- package/styles/responsiveFontSizes.js +17 -11
- package/usePagination/usePagination.d.ts +1 -1
- package/usePagination/usePagination.js +18 -20
- package/useScrollTrigger/useScrollTrigger.js +8 -10
- package/utils/createSvgIcon.js +4 -5
- package/utils/useSlot.js +41 -40
- package/umd/material-ui.development.js +0 -54226
- package/umd/material-ui.production.min.js +0 -25
|
@@ -6,8 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.default = exports.StyledSelectSelect = exports.StyledSelectIcon = void 0;
|
|
9
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
|
-
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
11
9
|
var React = _interopRequireWildcard(require("react"));
|
|
12
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
11
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
@@ -18,7 +16,6 @@ var _nativeSelectClasses = _interopRequireWildcard(require("./nativeSelectClasse
|
|
|
18
16
|
var _zeroStyled = require("../zero-styled");
|
|
19
17
|
var _rootShouldForwardProp = _interopRequireDefault(require("../styles/rootShouldForwardProp"));
|
|
20
18
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
|
-
const _excluded = ["className", "disabled", "error", "IconComponent", "inputRef", "variant"];
|
|
22
19
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
23
20
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
24
21
|
const useUtilityClasses = ownerState => {
|
|
@@ -168,27 +165,29 @@ const NativeSelectIcon = (0, _zeroStyled.styled)(StyledSelectIcon, {
|
|
|
168
165
|
*/
|
|
169
166
|
const NativeSelectInput = /*#__PURE__*/React.forwardRef(function NativeSelectInput(props, ref) {
|
|
170
167
|
const {
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
const ownerState =
|
|
168
|
+
className,
|
|
169
|
+
disabled,
|
|
170
|
+
error,
|
|
171
|
+
IconComponent,
|
|
172
|
+
inputRef,
|
|
173
|
+
variant = 'standard',
|
|
174
|
+
...other
|
|
175
|
+
} = props;
|
|
176
|
+
const ownerState = {
|
|
177
|
+
...props,
|
|
180
178
|
disabled,
|
|
181
179
|
variant,
|
|
182
180
|
error
|
|
183
|
-
}
|
|
181
|
+
};
|
|
184
182
|
const classes = useUtilityClasses(ownerState);
|
|
185
183
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
|
|
186
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(NativeSelectSelect,
|
|
184
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(NativeSelectSelect, {
|
|
187
185
|
ownerState: ownerState,
|
|
188
186
|
className: (0, _clsx.default)(classes.select, className),
|
|
189
187
|
disabled: disabled,
|
|
190
|
-
ref: inputRef || ref
|
|
191
|
-
|
|
188
|
+
ref: inputRef || ref,
|
|
189
|
+
...other
|
|
190
|
+
}), props.multiple ? null : /*#__PURE__*/(0, _jsxRuntime.jsx)(NativeSelectIcon, {
|
|
192
191
|
as: IconComponent,
|
|
193
192
|
ownerState: ownerState,
|
|
194
193
|
className: classes.icon
|
|
@@ -6,15 +6,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.default = NotchedOutline;
|
|
9
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
|
-
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
11
9
|
var React = _interopRequireWildcard(require("react"));
|
|
12
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
11
|
var _rootShouldForwardProp = _interopRequireDefault(require("../styles/rootShouldForwardProp"));
|
|
14
12
|
var _zeroStyled = require("../zero-styled");
|
|
15
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
14
|
var _span;
|
|
17
|
-
const _excluded = ["children", "classes", "className", "label", "notched"];
|
|
18
15
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
19
16
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
20
17
|
const NotchedOutlineRoot = (0, _zeroStyled.styled)('fieldset', {
|
|
@@ -105,21 +102,24 @@ const NotchedOutlineLegend = (0, _zeroStyled.styled)('legend', {
|
|
|
105
102
|
*/
|
|
106
103
|
function NotchedOutline(props) {
|
|
107
104
|
const {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
105
|
+
children,
|
|
106
|
+
classes,
|
|
107
|
+
className,
|
|
108
|
+
label,
|
|
109
|
+
notched,
|
|
110
|
+
...other
|
|
111
|
+
} = props;
|
|
113
112
|
const withLabel = label != null && label !== '';
|
|
114
|
-
const ownerState =
|
|
113
|
+
const ownerState = {
|
|
114
|
+
...props,
|
|
115
115
|
notched,
|
|
116
116
|
withLabel
|
|
117
|
-
}
|
|
118
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(NotchedOutlineRoot,
|
|
117
|
+
};
|
|
118
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(NotchedOutlineRoot, {
|
|
119
119
|
"aria-hidden": true,
|
|
120
120
|
className: className,
|
|
121
|
-
ownerState: ownerState
|
|
122
|
-
|
|
121
|
+
ownerState: ownerState,
|
|
122
|
+
...other,
|
|
123
123
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(NotchedOutlineLegend, {
|
|
124
124
|
ownerState: ownerState,
|
|
125
125
|
children: withLabel ? /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
@@ -130,7 +130,7 @@ function NotchedOutline(props) {
|
|
|
130
130
|
children: "\u200B"
|
|
131
131
|
}))
|
|
132
132
|
})
|
|
133
|
-
})
|
|
133
|
+
});
|
|
134
134
|
}
|
|
135
135
|
process.env.NODE_ENV !== "production" ? NotchedOutline.propTypes /* remove-proptypes */ = {
|
|
136
136
|
/**
|
|
@@ -6,8 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
|
-
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
10
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
9
|
var React = _interopRequireWildcard(require("react"));
|
|
12
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
11
|
var _refType = _interopRequireDefault(require("@mui/utils/refType"));
|
|
@@ -20,7 +18,6 @@ var _zeroStyled = require("../zero-styled");
|
|
|
20
18
|
var _outlinedInputClasses = _interopRequireWildcard(require("./outlinedInputClasses"));
|
|
21
19
|
var _InputBase = _interopRequireWildcard(require("../InputBase/InputBase"));
|
|
22
20
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
23
|
-
const _excluded = ["components", "fullWidth", "inputComponent", "label", "multiline", "notched", "slots", "type"];
|
|
24
21
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
25
22
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
26
23
|
const useThemeProps = (0, _zeroStyled.createUseThemeProps)('MuiOutlinedInput');
|
|
@@ -34,7 +31,11 @@ const useUtilityClasses = ownerState => {
|
|
|
34
31
|
input: ['input']
|
|
35
32
|
};
|
|
36
33
|
const composedClasses = (0, _composeClasses.default)(slots, _outlinedInputClasses.getOutlinedInputUtilityClass, classes);
|
|
37
|
-
return
|
|
34
|
+
return {
|
|
35
|
+
...classes,
|
|
36
|
+
// forward classes to the InputBase
|
|
37
|
+
...composedClasses
|
|
38
|
+
};
|
|
38
39
|
};
|
|
39
40
|
const OutlinedInputRoot = (0, _zeroStyled.styled)(_InputBase.InputBaseRoot, {
|
|
40
41
|
shouldForwardProp: prop => (0, _rootShouldForwardProp.default)(prop) || prop === 'classes',
|
|
@@ -54,7 +55,7 @@ const OutlinedInputRoot = (0, _zeroStyled.styled)(_InputBase.InputBaseRoot, {
|
|
|
54
55
|
[`&.${_outlinedInputClasses.default.focused} .${_outlinedInputClasses.default.notchedOutline}`]: {
|
|
55
56
|
borderWidth: 2
|
|
56
57
|
},
|
|
57
|
-
variants: [...Object.entries(theme.palette).filter(([, value]) => value.main).map(([color]) => ({
|
|
58
|
+
variants: [...Object.entries(theme.palette).filter(([, value]) => value && value.main).map(([color]) => ({
|
|
58
59
|
props: {
|
|
59
60
|
color
|
|
60
61
|
},
|
|
@@ -130,27 +131,28 @@ const OutlinedInputInput = (0, _zeroStyled.styled)(_InputBase.InputBaseInput, {
|
|
|
130
131
|
overridesResolver: _InputBase.inputOverridesResolver
|
|
131
132
|
})(({
|
|
132
133
|
theme
|
|
133
|
-
}) => (
|
|
134
|
-
padding: '16.5px 14px'
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
},
|
|
143
|
-
|
|
144
|
-
borderRadius: 'inherit'
|
|
145
|
-
},
|
|
146
|
-
[theme.getColorSchemeSelector('dark')]: {
|
|
134
|
+
}) => ({
|
|
135
|
+
padding: '16.5px 14px',
|
|
136
|
+
...(!theme.vars && {
|
|
137
|
+
'&:-webkit-autofill': {
|
|
138
|
+
WebkitBoxShadow: theme.palette.mode === 'light' ? null : '0 0 0 100px #266798 inset',
|
|
139
|
+
WebkitTextFillColor: theme.palette.mode === 'light' ? null : '#fff',
|
|
140
|
+
caretColor: theme.palette.mode === 'light' ? null : '#fff',
|
|
141
|
+
borderRadius: 'inherit'
|
|
142
|
+
}
|
|
143
|
+
}),
|
|
144
|
+
...(theme.vars && {
|
|
147
145
|
'&:-webkit-autofill': {
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
146
|
+
borderRadius: 'inherit'
|
|
147
|
+
},
|
|
148
|
+
[theme.getColorSchemeSelector('dark')]: {
|
|
149
|
+
'&:-webkit-autofill': {
|
|
150
|
+
WebkitBoxShadow: '0 0 0 100px #266798 inset',
|
|
151
|
+
WebkitTextFillColor: '#fff',
|
|
152
|
+
caretColor: '#fff'
|
|
153
|
+
}
|
|
151
154
|
}
|
|
152
|
-
}
|
|
153
|
-
}, {
|
|
155
|
+
}),
|
|
154
156
|
variants: [{
|
|
155
157
|
props: {
|
|
156
158
|
size: 'small'
|
|
@@ -188,16 +190,16 @@ const OutlinedInput = /*#__PURE__*/React.forwardRef(function OutlinedInput(inPro
|
|
|
188
190
|
name: 'MuiOutlinedInput'
|
|
189
191
|
});
|
|
190
192
|
const {
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
193
|
+
components = {},
|
|
194
|
+
fullWidth = false,
|
|
195
|
+
inputComponent = 'input',
|
|
196
|
+
label,
|
|
197
|
+
multiline = false,
|
|
198
|
+
notched,
|
|
199
|
+
slots = {},
|
|
200
|
+
type = 'text',
|
|
201
|
+
...other
|
|
202
|
+
} = props;
|
|
201
203
|
const classes = useUtilityClasses(props);
|
|
202
204
|
const muiFormControl = (0, _useFormControl.default)();
|
|
203
205
|
const fcs = (0, _formControlState.default)({
|
|
@@ -205,7 +207,8 @@ const OutlinedInput = /*#__PURE__*/React.forwardRef(function OutlinedInput(inPro
|
|
|
205
207
|
muiFormControl,
|
|
206
208
|
states: ['color', 'disabled', 'error', 'focused', 'hiddenLabel', 'size', 'required']
|
|
207
209
|
});
|
|
208
|
-
const ownerState =
|
|
210
|
+
const ownerState = {
|
|
211
|
+
...props,
|
|
209
212
|
color: fcs.color || 'primary',
|
|
210
213
|
disabled: fcs.disabled,
|
|
211
214
|
error: fcs.error,
|
|
@@ -216,10 +219,10 @@ const OutlinedInput = /*#__PURE__*/React.forwardRef(function OutlinedInput(inPro
|
|
|
216
219
|
multiline,
|
|
217
220
|
size: fcs.size,
|
|
218
221
|
type
|
|
219
|
-
}
|
|
222
|
+
};
|
|
220
223
|
const RootSlot = (_ref = (_slots$root = slots.root) != null ? _slots$root : components.Root) != null ? _ref : OutlinedInputRoot;
|
|
221
224
|
const InputSlot = (_ref2 = (_slots$input = slots.input) != null ? _slots$input : components.Input) != null ? _ref2 : OutlinedInputInput;
|
|
222
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_InputBase.default,
|
|
225
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_InputBase.default, {
|
|
223
226
|
slots: {
|
|
224
227
|
root: RootSlot,
|
|
225
228
|
input: InputSlot
|
|
@@ -236,12 +239,13 @@ const OutlinedInput = /*#__PURE__*/React.forwardRef(function OutlinedInput(inPro
|
|
|
236
239
|
inputComponent: inputComponent,
|
|
237
240
|
multiline: multiline,
|
|
238
241
|
ref: ref,
|
|
239
|
-
type: type
|
|
240
|
-
|
|
241
|
-
classes:
|
|
242
|
+
type: type,
|
|
243
|
+
...other,
|
|
244
|
+
classes: {
|
|
245
|
+
...classes,
|
|
242
246
|
notchedOutline: null
|
|
243
|
-
}
|
|
244
|
-
})
|
|
247
|
+
}
|
|
248
|
+
});
|
|
245
249
|
});
|
|
246
250
|
process.env.NODE_ENV !== "production" ? OutlinedInput.propTypes /* remove-proptypes */ = {
|
|
247
251
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
@@ -6,12 +6,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
exports.getOutlinedInputUtilityClass = getOutlinedInputUtilityClass;
|
|
9
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
9
|
var _generateUtilityClasses = _interopRequireDefault(require("@mui/utils/generateUtilityClasses"));
|
|
11
10
|
var _generateUtilityClass = _interopRequireDefault(require("@mui/utils/generateUtilityClass"));
|
|
12
11
|
var _InputBase = require("../InputBase");
|
|
13
12
|
function getOutlinedInputUtilityClass(slot) {
|
|
14
13
|
return (0, _generateUtilityClass.default)('MuiOutlinedInput', slot);
|
|
15
14
|
}
|
|
16
|
-
const outlinedInputClasses =
|
|
15
|
+
const outlinedInputClasses = {
|
|
16
|
+
..._InputBase.inputBaseClasses,
|
|
17
|
+
...(0, _generateUtilityClasses.default)('MuiOutlinedInput', ['root', 'notchedOutline', 'input'])
|
|
18
|
+
};
|
|
17
19
|
var _default = exports.default = outlinedInputClasses;
|
|
@@ -6,8 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
|
-
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
11
9
|
var React = _interopRequireWildcard(require("react"));
|
|
12
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
11
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
@@ -18,7 +16,6 @@ var _usePagination = _interopRequireDefault(require("../usePagination"));
|
|
|
18
16
|
var _PaginationItem = _interopRequireDefault(require("../PaginationItem"));
|
|
19
17
|
var _zeroStyled = require("../zero-styled");
|
|
20
18
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
|
-
const _excluded = ["boundaryCount", "className", "color", "count", "defaultPage", "disabled", "getItemAriaLabel", "hideNextButton", "hidePrevButton", "onChange", "page", "renderItem", "shape", "showFirstButton", "showLastButton", "siblingCount", "size", "variant"];
|
|
22
19
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
23
20
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
24
21
|
const useThemeProps = (0, _zeroStyled.createUseThemeProps)('MuiPagination');
|
|
@@ -67,30 +64,36 @@ const Pagination = /*#__PURE__*/React.forwardRef(function Pagination(inProps, re
|
|
|
67
64
|
name: 'MuiPagination'
|
|
68
65
|
});
|
|
69
66
|
const {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
67
|
+
boundaryCount = 1,
|
|
68
|
+
className,
|
|
69
|
+
color = 'standard',
|
|
70
|
+
count = 1,
|
|
71
|
+
defaultPage = 1,
|
|
72
|
+
disabled = false,
|
|
73
|
+
getItemAriaLabel = defaultGetAriaLabel,
|
|
74
|
+
hideNextButton = false,
|
|
75
|
+
hidePrevButton = false,
|
|
76
|
+
onChange,
|
|
77
|
+
page,
|
|
78
|
+
renderItem = item => /*#__PURE__*/(0, _jsxRuntime.jsx)(_PaginationItem.default, {
|
|
79
|
+
...item
|
|
80
|
+
}),
|
|
81
|
+
shape = 'circular',
|
|
82
|
+
showFirstButton = false,
|
|
83
|
+
showLastButton = false,
|
|
84
|
+
siblingCount = 1,
|
|
85
|
+
size = 'medium',
|
|
86
|
+
variant = 'text',
|
|
87
|
+
...other
|
|
88
|
+
} = props;
|
|
88
89
|
const {
|
|
89
90
|
items
|
|
90
|
-
} = (0, _usePagination.default)(
|
|
91
|
+
} = (0, _usePagination.default)({
|
|
92
|
+
...props,
|
|
91
93
|
componentName: 'Pagination'
|
|
92
|
-
})
|
|
93
|
-
const ownerState =
|
|
94
|
+
});
|
|
95
|
+
const ownerState = {
|
|
96
|
+
...props,
|
|
94
97
|
boundaryCount,
|
|
95
98
|
color,
|
|
96
99
|
count,
|
|
@@ -106,28 +109,29 @@ const Pagination = /*#__PURE__*/React.forwardRef(function Pagination(inProps, re
|
|
|
106
109
|
siblingCount,
|
|
107
110
|
size,
|
|
108
111
|
variant
|
|
109
|
-
}
|
|
112
|
+
};
|
|
110
113
|
const classes = useUtilityClasses(ownerState);
|
|
111
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(PaginationRoot,
|
|
114
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(PaginationRoot, {
|
|
112
115
|
"aria-label": "pagination navigation",
|
|
113
116
|
className: (0, _clsx.default)(classes.root, className),
|
|
114
117
|
ownerState: ownerState,
|
|
115
|
-
ref: ref
|
|
116
|
-
|
|
118
|
+
ref: ref,
|
|
119
|
+
...other,
|
|
117
120
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(PaginationUl, {
|
|
118
121
|
className: classes.ul,
|
|
119
122
|
ownerState: ownerState,
|
|
120
123
|
children: items.map((item, index) => /*#__PURE__*/(0, _jsxRuntime.jsx)("li", {
|
|
121
|
-
children: renderItem(
|
|
124
|
+
children: renderItem({
|
|
125
|
+
...item,
|
|
122
126
|
color,
|
|
123
127
|
'aria-label': getItemAriaLabel(item.type, item.page, item.selected),
|
|
124
128
|
shape,
|
|
125
129
|
size,
|
|
126
130
|
variant
|
|
127
|
-
})
|
|
131
|
+
})
|
|
128
132
|
}, index))
|
|
129
133
|
})
|
|
130
|
-
})
|
|
134
|
+
});
|
|
131
135
|
});
|
|
132
136
|
|
|
133
137
|
// @default tags synced with default values from usePagination
|
|
@@ -201,7 +205,7 @@ process.env.NODE_ENV !== "production" ? Pagination.propTypes /* remove-proptypes
|
|
|
201
205
|
*/
|
|
202
206
|
onChange: _propTypes.default.func,
|
|
203
207
|
/**
|
|
204
|
-
* The current page.
|
|
208
|
+
* The current page. Unlike `TablePagination`, which starts numbering from `0`, this pagination starts from `1`.
|
|
205
209
|
*/
|
|
206
210
|
page: _integerPropType.default,
|
|
207
211
|
/**
|
|
@@ -6,8 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
|
-
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
10
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
9
|
var React = _interopRequireWildcard(require("react"));
|
|
12
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
11
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
@@ -24,7 +22,6 @@ var _NavigateNext = _interopRequireDefault(require("../internal/svg-icons/Naviga
|
|
|
24
22
|
var _useSlot = _interopRequireDefault(require("../utils/useSlot"));
|
|
25
23
|
var _zeroStyled = require("../zero-styled");
|
|
26
24
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
27
|
-
const _excluded = ["className", "color", "component", "components", "disabled", "page", "selected", "shape", "size", "slots", "slotProps", "type", "variant"];
|
|
28
25
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
29
26
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
30
27
|
const useThemeProps = (0, _zeroStyled.createUseThemeProps)('MuiPaginationItem');
|
|
@@ -65,7 +62,8 @@ const PaginationItemEllipsis = (0, _zeroStyled.styled)('div', {
|
|
|
65
62
|
overridesResolver
|
|
66
63
|
})(({
|
|
67
64
|
theme
|
|
68
|
-
}) => (
|
|
65
|
+
}) => ({
|
|
66
|
+
...theme.typography.body2,
|
|
69
67
|
borderRadius: 32 / 2,
|
|
70
68
|
textAlign: 'center',
|
|
71
69
|
boxSizing: 'border-box',
|
|
@@ -105,7 +103,8 @@ const PaginationItemPage = (0, _zeroStyled.styled)(_ButtonBase.default, {
|
|
|
105
103
|
overridesResolver
|
|
106
104
|
})(({
|
|
107
105
|
theme
|
|
108
|
-
}) => (
|
|
106
|
+
}) => ({
|
|
107
|
+
...theme.typography.body2,
|
|
109
108
|
borderRadius: 32 / 2,
|
|
110
109
|
textAlign: 'center',
|
|
111
110
|
boxSizing: 'border-box',
|
|
@@ -201,7 +200,7 @@ const PaginationItemPage = (0, _zeroStyled.styled)(_ButtonBase.default, {
|
|
|
201
200
|
}
|
|
202
201
|
}
|
|
203
202
|
}
|
|
204
|
-
}, ...Object.entries(theme.palette).filter(([, value]) => value.main && value.dark && value.contrastText).map(([color]) => ({
|
|
203
|
+
}, ...Object.entries(theme.palette).filter(([, value]) => value && value.main && value.dark && value.contrastText).map(([color]) => ({
|
|
205
204
|
props: {
|
|
206
205
|
variant: 'text',
|
|
207
206
|
color
|
|
@@ -225,7 +224,7 @@ const PaginationItemPage = (0, _zeroStyled.styled)(_ButtonBase.default, {
|
|
|
225
224
|
}
|
|
226
225
|
}
|
|
227
226
|
}
|
|
228
|
-
})), ...Object.entries(theme.palette).filter(([, value]) => value.main && value.light).map(([color]) => ({
|
|
227
|
+
})), ...Object.entries(theme.palette).filter(([, value]) => value && value.main && value.light).map(([color]) => ({
|
|
229
228
|
props: {
|
|
230
229
|
variant: 'outlined',
|
|
231
230
|
color
|
|
@@ -281,22 +280,23 @@ const PaginationItem = /*#__PURE__*/React.forwardRef(function PaginationItem(inP
|
|
|
281
280
|
name: 'MuiPaginationItem'
|
|
282
281
|
});
|
|
283
282
|
const {
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
const ownerState =
|
|
283
|
+
className,
|
|
284
|
+
color = 'standard',
|
|
285
|
+
component,
|
|
286
|
+
components = {},
|
|
287
|
+
disabled = false,
|
|
288
|
+
page,
|
|
289
|
+
selected = false,
|
|
290
|
+
shape = 'circular',
|
|
291
|
+
size = 'medium',
|
|
292
|
+
slots = {},
|
|
293
|
+
slotProps = {},
|
|
294
|
+
type = 'page',
|
|
295
|
+
variant = 'text',
|
|
296
|
+
...other
|
|
297
|
+
} = props;
|
|
298
|
+
const ownerState = {
|
|
299
|
+
...props,
|
|
300
300
|
color,
|
|
301
301
|
disabled,
|
|
302
302
|
selected,
|
|
@@ -304,7 +304,7 @@ const PaginationItem = /*#__PURE__*/React.forwardRef(function PaginationItem(inP
|
|
|
304
304
|
size,
|
|
305
305
|
type,
|
|
306
306
|
variant
|
|
307
|
-
}
|
|
307
|
+
};
|
|
308
308
|
const isRtl = (0, _RtlProvider.useRtl)();
|
|
309
309
|
const classes = useUtilityClasses(ownerState);
|
|
310
310
|
const externalForwardedProps = {
|
|
@@ -359,18 +359,19 @@ const PaginationItem = /*#__PURE__*/React.forwardRef(function PaginationItem(inP
|
|
|
359
359
|
ownerState: ownerState,
|
|
360
360
|
className: (0, _clsx.default)(classes.root, className),
|
|
361
361
|
children: "\u2026"
|
|
362
|
-
}) : /*#__PURE__*/(0, _jsxRuntime.jsxs)(PaginationItemPage,
|
|
362
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsxs)(PaginationItemPage, {
|
|
363
363
|
ref: ref,
|
|
364
364
|
ownerState: ownerState,
|
|
365
365
|
component: component,
|
|
366
366
|
disabled: disabled,
|
|
367
|
-
className: (0, _clsx.default)(classes.root, className)
|
|
368
|
-
|
|
369
|
-
children: [type === 'page' && page, IconSlot ? /*#__PURE__*/(0, _jsxRuntime.jsx)(PaginationItemPageIcon,
|
|
367
|
+
className: (0, _clsx.default)(classes.root, className),
|
|
368
|
+
...other,
|
|
369
|
+
children: [type === 'page' && page, IconSlot ? /*#__PURE__*/(0, _jsxRuntime.jsx)(PaginationItemPageIcon, {
|
|
370
|
+
...iconSlotProps,
|
|
370
371
|
className: classes.icon,
|
|
371
372
|
as: IconSlot
|
|
372
|
-
})
|
|
373
|
-
})
|
|
373
|
+
}) : null]
|
|
374
|
+
});
|
|
374
375
|
});
|
|
375
376
|
process.env.NODE_ENV !== "production" ? PaginationItem.propTypes /* remove-proptypes */ = {
|
|
376
377
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
package/node/Paper/Paper.js
CHANGED
|
@@ -6,8 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
|
-
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
11
9
|
var React = _interopRequireWildcard(require("react"));
|
|
12
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
11
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
@@ -20,7 +18,6 @@ var _getOverlayAlpha = _interopRequireDefault(require("../styles/getOverlayAlpha
|
|
|
20
18
|
var _useTheme = _interopRequireDefault(require("../styles/useTheme"));
|
|
21
19
|
var _paperClasses = require("./paperClasses");
|
|
22
20
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
23
|
-
const _excluded = ["className", "component", "elevation", "square", "variant"];
|
|
24
21
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
25
22
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
26
23
|
const useThemeProps = (0, _zeroStyled.createUseThemeProps)('MuiPaper');
|
|
@@ -83,39 +80,45 @@ const Paper = /*#__PURE__*/React.forwardRef(function Paper(inProps, ref) {
|
|
|
83
80
|
});
|
|
84
81
|
const theme = (0, _useTheme.default)();
|
|
85
82
|
const {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
const ownerState =
|
|
83
|
+
className,
|
|
84
|
+
component = 'div',
|
|
85
|
+
elevation = 1,
|
|
86
|
+
square = false,
|
|
87
|
+
variant = 'elevation',
|
|
88
|
+
...other
|
|
89
|
+
} = props;
|
|
90
|
+
const ownerState = {
|
|
91
|
+
...props,
|
|
94
92
|
component,
|
|
95
93
|
elevation,
|
|
96
94
|
square,
|
|
97
95
|
variant
|
|
98
|
-
}
|
|
96
|
+
};
|
|
99
97
|
const classes = useUtilityClasses(ownerState);
|
|
100
98
|
if (process.env.NODE_ENV !== 'production') {
|
|
101
99
|
if (theme.shadows[elevation] === undefined) {
|
|
102
100
|
console.error([`MUI: The elevation provided <Paper elevation={${elevation}}> is not available in the theme.`, `Please make sure that \`theme.shadows[${elevation}]\` is defined.`].join('\n'));
|
|
103
101
|
}
|
|
104
102
|
}
|
|
105
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(PaperRoot,
|
|
103
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(PaperRoot, {
|
|
106
104
|
as: component,
|
|
107
105
|
ownerState: ownerState,
|
|
108
106
|
className: (0, _clsx.default)(classes.root, className),
|
|
109
|
-
ref: ref
|
|
110
|
-
|
|
111
|
-
style:
|
|
112
|
-
'
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
107
|
+
ref: ref,
|
|
108
|
+
...other,
|
|
109
|
+
style: {
|
|
110
|
+
...(variant === 'elevation' && {
|
|
111
|
+
'--Paper-shadow': (theme.vars || theme).shadows[elevation],
|
|
112
|
+
...(theme.vars && {
|
|
113
|
+
'--Paper-overlay': (_theme$overlays = theme.overlays) == null ? void 0 : _theme$overlays[elevation]
|
|
114
|
+
}),
|
|
115
|
+
...(!theme.vars && theme.palette.mode === 'dark' && {
|
|
116
|
+
'--Paper-overlay': `linear-gradient(${(0, _colorManipulator.alpha)('#fff', (0, _getOverlayAlpha.default)(elevation))}, ${(0, _colorManipulator.alpha)('#fff', (0, _getOverlayAlpha.default)(elevation))})`
|
|
117
|
+
})
|
|
118
|
+
}),
|
|
119
|
+
...other.style
|
|
120
|
+
}
|
|
121
|
+
});
|
|
119
122
|
});
|
|
120
123
|
process.env.NODE_ENV !== "production" ? Paper.propTypes /* remove-proptypes */ = {
|
|
121
124
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|