@sitecore/sc-contenthub-blok 0.0.37 → 0.0.38
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/node_modules/@mui/core-downloads-tracker/package.json +1 -1
- package/node_modules/@mui/material/AccordionSummary/AccordionSummary.js +4 -3
- package/node_modules/@mui/material/Alert/Alert.d.ts +69 -0
- package/node_modules/@mui/material/Alert/Alert.js +53 -21
- package/node_modules/@mui/material/AppBar/AppBar.d.ts +1 -1
- package/node_modules/@mui/material/AppBar/AppBar.js +1 -1
- package/node_modules/@mui/material/Autocomplete/Autocomplete.d.ts +1 -1
- package/node_modules/@mui/material/Autocomplete/Autocomplete.js +42 -55
- package/node_modules/@mui/material/AvatarGroup/AvatarGroup.js +5 -4
- package/node_modules/@mui/material/Backdrop/Backdrop.js +1 -9
- package/node_modules/@mui/material/Box/Box.d.ts +3 -1
- package/node_modules/@mui/material/Button/Button.d.ts +18 -0
- package/node_modules/@mui/material/Button/Button.js +233 -15
- package/node_modules/@mui/material/Button/buttonClasses.d.ts +14 -0
- package/node_modules/@mui/material/Button/buttonClasses.js +1 -1
- package/node_modules/@mui/material/ButtonBase/ButtonBase.d.ts +2 -0
- package/node_modules/@mui/material/ButtonGroup/ButtonGroupButtonContext.js +2 -0
- package/node_modules/@mui/material/ButtonGroup/ButtonGroupContext.js +2 -0
- package/node_modules/@mui/material/CHANGELOG.md +240 -2
- package/node_modules/@mui/material/CardHeader/CardHeader.d.ts +114 -1
- package/node_modules/@mui/material/CardHeader/CardHeader.js +106 -37
- package/node_modules/@mui/material/CircularProgress/CircularProgress.js +2 -2
- package/node_modules/@mui/material/Collapse/Collapse.js +5 -4
- package/node_modules/@mui/material/Dialog/Dialog.d.ts +85 -1
- package/node_modules/@mui/material/Dialog/Dialog.js +91 -20
- package/node_modules/@mui/material/Dialog/DialogContext.js +2 -0
- package/node_modules/@mui/material/Drawer/Drawer.js +1 -1
- package/node_modules/@mui/material/Drawer/drawerClasses.d.ts +32 -8
- package/node_modules/@mui/material/Drawer/drawerClasses.js +1 -1
- package/node_modules/@mui/material/Fade/Fade.js +5 -2
- package/node_modules/@mui/material/FilledInput/FilledInput.js +1 -3
- package/node_modules/@mui/material/FormControl/FormControl.js +14 -15
- package/node_modules/@mui/material/FormControl/FormControlContext.js +2 -0
- package/node_modules/@mui/material/FormLabel/FormLabel.js +5 -8
- package/node_modules/@mui/material/Grid/Grid.js +2 -2
- package/node_modules/@mui/material/Grow/Grow.js +5 -2
- package/node_modules/@mui/material/Hidden/withWidth.js +2 -0
- package/node_modules/@mui/material/Icon/Icon.js +1 -3
- package/node_modules/@mui/material/IconButton/IconButton.d.ts +13 -0
- package/node_modules/@mui/material/IconButton/IconButton.js +80 -7
- package/node_modules/@mui/material/IconButton/iconButtonClasses.d.ts +6 -0
- package/node_modules/@mui/material/IconButton/iconButtonClasses.js +1 -1
- package/node_modules/@mui/material/Input/Input.js +1 -3
- package/node_modules/@mui/material/LinearProgress/LinearProgress.js +4 -4
- package/node_modules/@mui/material/LinearProgress/linearProgressClasses.d.ts +31 -9
- package/node_modules/@mui/material/LinearProgress/linearProgressClasses.js +1 -1
- package/node_modules/@mui/material/Link/getTextDecoration.js +3 -2
- package/node_modules/@mui/material/ListItemText/ListItemText.d.ts +36 -1
- package/node_modules/@mui/material/ListItemText/ListItemText.js +46 -7
- package/node_modules/@mui/material/OutlinedInput/OutlinedInput.js +1 -3
- package/node_modules/@mui/material/PigmentGrid/PigmentGrid.js +1 -1
- package/node_modules/@mui/material/RadioGroup/RadioGroupContext.js +2 -0
- package/node_modules/@mui/material/Select/Select.js +10 -1
- package/node_modules/@mui/material/Select/SelectInput.js +9 -1
- package/node_modules/@mui/material/Select/selectClasses.d.ts +9 -3
- package/node_modules/@mui/material/Slide/Slide.js +5 -2
- package/node_modules/@mui/material/Slider/useSlider.js +69 -12
- package/node_modules/@mui/material/Step/StepContext.js +2 -0
- package/node_modules/@mui/material/StepContent/StepContent.d.ts +31 -2
- package/node_modules/@mui/material/StepContent/StepContent.js +39 -7
- package/node_modules/@mui/material/StepLabel/StepLabel.d.ts +1 -1
- package/node_modules/@mui/material/StepLabel/StepLabel.js +1 -3
- package/node_modules/@mui/material/Stepper/StepperContext.js +2 -0
- package/node_modules/@mui/material/SvgIcon/SvgIcon.js +1 -3
- package/node_modules/@mui/material/Table/Tablelvl2Context.js +2 -0
- package/node_modules/@mui/material/TablePagination/TablePagination.d.ts +134 -18
- package/node_modules/@mui/material/TablePagination/TablePagination.js +89 -33
- package/node_modules/@mui/material/TableSortLabel/TableSortLabel.d.ts +43 -1
- package/node_modules/@mui/material/TableSortLabel/TableSortLabel.js +40 -7
- package/node_modules/@mui/material/TextField/TextField.d.ts +1 -0
- package/node_modules/@mui/material/TextField/TextField.js +1 -0
- package/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroupButtonContext.js +2 -0
- package/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroupContext.js +2 -0
- package/node_modules/@mui/material/Tooltip/Tooltip.d.ts +1 -1
- package/node_modules/@mui/material/Tooltip/Tooltip.js +1 -1
- package/node_modules/@mui/material/Zoom/Zoom.js +5 -2
- package/node_modules/@mui/material/index.js +1 -1
- package/node_modules/@mui/material/modern/AccordionSummary/AccordionSummary.js +4 -3
- package/node_modules/@mui/material/modern/Alert/Alert.js +53 -21
- package/node_modules/@mui/material/modern/AppBar/AppBar.js +1 -1
- package/node_modules/@mui/material/modern/Autocomplete/Autocomplete.js +42 -55
- package/node_modules/@mui/material/modern/AvatarGroup/AvatarGroup.js +5 -4
- package/node_modules/@mui/material/modern/Backdrop/Backdrop.js +1 -9
- package/node_modules/@mui/material/modern/Button/Button.js +233 -15
- package/node_modules/@mui/material/modern/Button/buttonClasses.js +1 -1
- package/node_modules/@mui/material/modern/ButtonGroup/ButtonGroupButtonContext.js +2 -0
- package/node_modules/@mui/material/modern/ButtonGroup/ButtonGroupContext.js +2 -0
- package/node_modules/@mui/material/modern/CardHeader/CardHeader.js +106 -37
- package/node_modules/@mui/material/modern/CircularProgress/CircularProgress.js +2 -2
- package/node_modules/@mui/material/modern/Collapse/Collapse.js +5 -4
- package/node_modules/@mui/material/modern/Dialog/Dialog.js +91 -20
- package/node_modules/@mui/material/modern/Dialog/DialogContext.js +2 -0
- package/node_modules/@mui/material/modern/Drawer/Drawer.js +1 -1
- package/node_modules/@mui/material/modern/Drawer/drawerClasses.js +1 -1
- package/node_modules/@mui/material/modern/Fade/Fade.js +5 -2
- package/node_modules/@mui/material/modern/FilledInput/FilledInput.js +1 -3
- package/node_modules/@mui/material/modern/FormControl/FormControl.js +14 -15
- package/node_modules/@mui/material/modern/FormControl/FormControlContext.js +2 -0
- package/node_modules/@mui/material/modern/FormLabel/FormLabel.js +5 -8
- package/node_modules/@mui/material/modern/Grid/Grid.js +2 -2
- package/node_modules/@mui/material/modern/Grow/Grow.js +5 -2
- package/node_modules/@mui/material/modern/Hidden/withWidth.js +2 -0
- package/node_modules/@mui/material/modern/Icon/Icon.js +1 -3
- package/node_modules/@mui/material/modern/IconButton/IconButton.js +80 -7
- package/node_modules/@mui/material/modern/IconButton/iconButtonClasses.js +1 -1
- package/node_modules/@mui/material/modern/Input/Input.js +1 -3
- package/node_modules/@mui/material/modern/LinearProgress/LinearProgress.js +4 -4
- package/node_modules/@mui/material/modern/LinearProgress/linearProgressClasses.js +1 -1
- package/node_modules/@mui/material/modern/Link/getTextDecoration.js +3 -2
- package/node_modules/@mui/material/modern/ListItemText/ListItemText.js +46 -7
- package/node_modules/@mui/material/modern/OutlinedInput/OutlinedInput.js +1 -3
- package/node_modules/@mui/material/modern/PigmentGrid/PigmentGrid.js +1 -1
- package/node_modules/@mui/material/modern/RadioGroup/RadioGroupContext.js +2 -0
- package/node_modules/@mui/material/modern/Select/Select.js +10 -1
- package/node_modules/@mui/material/modern/Select/SelectInput.js +9 -1
- package/node_modules/@mui/material/modern/Slide/Slide.js +5 -2
- package/node_modules/@mui/material/modern/Slider/useSlider.js +69 -12
- package/node_modules/@mui/material/modern/Step/StepContext.js +2 -0
- package/node_modules/@mui/material/modern/StepContent/StepContent.js +39 -7
- package/node_modules/@mui/material/modern/StepLabel/StepLabel.js +1 -3
- package/node_modules/@mui/material/modern/Stepper/StepperContext.js +2 -0
- package/node_modules/@mui/material/modern/SvgIcon/SvgIcon.js +1 -3
- package/node_modules/@mui/material/modern/Table/Tablelvl2Context.js +2 -0
- package/node_modules/@mui/material/modern/TablePagination/TablePagination.js +89 -33
- package/node_modules/@mui/material/modern/TableSortLabel/TableSortLabel.js +40 -7
- package/node_modules/@mui/material/modern/TextField/TextField.js +1 -0
- package/node_modules/@mui/material/modern/ToggleButtonGroup/ToggleButtonGroupButtonContext.js +2 -0
- package/node_modules/@mui/material/modern/ToggleButtonGroup/ToggleButtonGroupContext.js +2 -0
- package/node_modules/@mui/material/modern/Tooltip/Tooltip.js +1 -1
- package/node_modules/@mui/material/modern/Zoom/Zoom.js +5 -2
- package/node_modules/@mui/material/modern/index.js +1 -1
- package/node_modules/@mui/material/modern/usePagination/usePagination.js +1 -1
- package/node_modules/@mui/material/modern/utils/index.js +1 -0
- package/node_modules/@mui/material/modern/utils/mergeSlotProps.js +43 -0
- package/node_modules/@mui/material/modern/utils/useSlot.js +5 -1
- package/node_modules/@mui/material/modern/version/index.js +3 -3
- package/node_modules/@mui/material/node/AccordionSummary/AccordionSummary.js +4 -3
- package/node_modules/@mui/material/node/Alert/Alert.js +53 -21
- package/node_modules/@mui/material/node/AppBar/AppBar.js +1 -1
- package/node_modules/@mui/material/node/Autocomplete/Autocomplete.js +42 -55
- package/node_modules/@mui/material/node/AvatarGroup/AvatarGroup.js +5 -4
- package/node_modules/@mui/material/node/Backdrop/Backdrop.js +1 -9
- package/node_modules/@mui/material/node/Button/Button.js +233 -15
- package/node_modules/@mui/material/node/Button/buttonClasses.js +1 -1
- package/node_modules/@mui/material/node/ButtonGroup/ButtonGroupButtonContext.js +1 -0
- package/node_modules/@mui/material/node/ButtonGroup/ButtonGroupContext.js +1 -0
- package/node_modules/@mui/material/node/CardHeader/CardHeader.js +106 -37
- package/node_modules/@mui/material/node/CircularProgress/CircularProgress.js +2 -2
- package/node_modules/@mui/material/node/Collapse/Collapse.js +5 -4
- package/node_modules/@mui/material/node/Dialog/Dialog.js +91 -20
- package/node_modules/@mui/material/node/Dialog/DialogContext.js +1 -0
- package/node_modules/@mui/material/node/Drawer/Drawer.js +1 -1
- package/node_modules/@mui/material/node/Drawer/drawerClasses.js +1 -1
- package/node_modules/@mui/material/node/Fade/Fade.js +5 -2
- package/node_modules/@mui/material/node/FilledInput/FilledInput.js +1 -3
- package/node_modules/@mui/material/node/FormControl/FormControl.js +14 -15
- package/node_modules/@mui/material/node/FormControl/FormControlContext.js +1 -0
- package/node_modules/@mui/material/node/FormLabel/FormLabel.js +5 -8
- package/node_modules/@mui/material/node/Grid/Grid.js +2 -2
- package/node_modules/@mui/material/node/Grow/Grow.js +5 -2
- package/node_modules/@mui/material/node/Hidden/withWidth.js +1 -0
- package/node_modules/@mui/material/node/Icon/Icon.js +1 -3
- package/node_modules/@mui/material/node/IconButton/IconButton.js +79 -6
- package/node_modules/@mui/material/node/IconButton/iconButtonClasses.js +1 -1
- package/node_modules/@mui/material/node/Input/Input.js +1 -3
- package/node_modules/@mui/material/node/LinearProgress/LinearProgress.js +4 -4
- package/node_modules/@mui/material/node/LinearProgress/linearProgressClasses.js +1 -1
- package/node_modules/@mui/material/node/Link/getTextDecoration.js +3 -2
- package/node_modules/@mui/material/node/ListItemText/ListItemText.js +46 -7
- package/node_modules/@mui/material/node/OutlinedInput/OutlinedInput.js +1 -3
- package/node_modules/@mui/material/node/PigmentGrid/PigmentGrid.js +2 -2
- package/node_modules/@mui/material/node/RadioGroup/RadioGroupContext.js +1 -0
- package/node_modules/@mui/material/node/Select/Select.js +10 -1
- package/node_modules/@mui/material/node/Select/SelectInput.js +9 -1
- package/node_modules/@mui/material/node/Slide/Slide.js +5 -2
- package/node_modules/@mui/material/node/Slider/useSlider.js +69 -12
- package/node_modules/@mui/material/node/Step/StepContext.js +1 -0
- package/node_modules/@mui/material/node/StepContent/StepContent.js +39 -7
- package/node_modules/@mui/material/node/StepLabel/StepLabel.js +1 -3
- package/node_modules/@mui/material/node/Stepper/StepperContext.js +1 -0
- package/node_modules/@mui/material/node/SvgIcon/SvgIcon.js +1 -3
- package/node_modules/@mui/material/node/Table/Tablelvl2Context.js +1 -0
- package/node_modules/@mui/material/node/TablePagination/TablePagination.js +89 -33
- package/node_modules/@mui/material/node/TableSortLabel/TableSortLabel.js +40 -7
- package/node_modules/@mui/material/node/TextField/TextField.js +1 -0
- package/node_modules/@mui/material/node/ToggleButtonGroup/ToggleButtonGroupButtonContext.js +1 -0
- package/node_modules/@mui/material/node/ToggleButtonGroup/ToggleButtonGroupContext.js +1 -0
- package/node_modules/@mui/material/node/Tooltip/Tooltip.js +1 -1
- package/node_modules/@mui/material/node/Zoom/Zoom.js +5 -2
- package/node_modules/@mui/material/node/index.js +1 -1
- package/node_modules/@mui/material/node/usePagination/usePagination.js +1 -1
- package/node_modules/@mui/material/node/utils/index.js +7 -0
- package/node_modules/@mui/material/node/utils/mergeSlotProps.js +50 -0
- package/node_modules/@mui/material/node/utils/useSlot.js +5 -1
- package/node_modules/@mui/material/node/version/index.js +3 -3
- package/node_modules/{react-is → @mui/material/node_modules/react-is}/LICENSE +1 -1
- package/node_modules/{react-is → @mui/material/node_modules/react-is}/README.md +0 -1
- package/node_modules/@mui/material/node_modules/react-is/cjs/react-is.development.js +133 -0
- package/node_modules/@mui/material/node_modules/react-is/cjs/react-is.production.js +130 -0
- package/node_modules/{react-is → @mui/material/node_modules/react-is}/index.js +1 -1
- package/node_modules/{react-is → @mui/material/node_modules/react-is}/package.json +4 -4
- package/node_modules/@mui/material/package.json +8 -8
- package/node_modules/@mui/material/styles/useThemeProps.d.ts +27 -0
- package/node_modules/@mui/material/useAutocomplete/useAutocomplete.d.ts +20 -5
- package/node_modules/@mui/material/useLazyRipple/useLazyRipple.d.ts +1 -1
- package/node_modules/@mui/material/usePagination/usePagination.js +1 -1
- package/node_modules/@mui/material/utils/index.d.ts +1 -0
- package/node_modules/@mui/material/utils/index.js +1 -0
- package/node_modules/@mui/material/utils/memoTheme.d.ts +1 -1
- package/node_modules/@mui/material/utils/mergeSlotProps.d.ts +2 -0
- package/node_modules/@mui/material/utils/mergeSlotProps.js +43 -0
- package/node_modules/@mui/material/utils/useSlot.d.ts +8 -0
- package/node_modules/@mui/material/utils/useSlot.js +5 -1
- package/node_modules/@mui/material/version/index.js +3 -3
- package/node_modules/@mui/private-theming/CHANGELOG.md +240 -2
- package/node_modules/@mui/private-theming/index.js +1 -1
- package/node_modules/@mui/private-theming/modern/index.js +1 -1
- package/node_modules/@mui/private-theming/modern/useTheme/ThemeContext.js +2 -0
- package/node_modules/@mui/private-theming/node/index.js +1 -1
- package/node_modules/@mui/private-theming/node/useTheme/ThemeContext.js +1 -0
- package/node_modules/@mui/private-theming/package.json +2 -2
- package/node_modules/@mui/private-theming/useTheme/ThemeContext.js +2 -0
- package/node_modules/@mui/styled-engine/CHANGELOG.md +198 -2
- package/node_modules/@mui/styled-engine/StyledEngineProvider/StyledEngineProvider.js +29 -19
- package/node_modules/@mui/styled-engine/index.js +1 -1
- package/node_modules/@mui/styled-engine/modern/StyledEngineProvider/StyledEngineProvider.js +29 -19
- package/node_modules/@mui/styled-engine/modern/index.js +1 -1
- package/node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js +29 -19
- package/node_modules/@mui/styled-engine/node/index.js +1 -1
- package/node_modules/@mui/styled-engine/package.json +1 -1
- package/node_modules/@mui/system/CHANGELOG.md +240 -2
- package/node_modules/@mui/system/Grid/index.d.ts +1 -0
- package/node_modules/@mui/system/Grid/index.js +24 -2
- package/node_modules/@mui/system/RtlProvider/index.js +1 -0
- package/node_modules/@mui/system/colorManipulator/colorManipulator.js +5 -0
- package/node_modules/@mui/system/createTheme/applyStyles.d.ts +7 -3
- package/node_modules/@mui/system/createTheme/applyStyles.js +7 -3
- package/node_modules/@mui/system/cssVars/createCssVarsProvider.js +3 -1
- package/node_modules/@mui/system/esm/Grid/index.js +2 -1
- package/node_modules/@mui/system/esm/RtlProvider/index.js +2 -0
- package/node_modules/@mui/system/esm/colorManipulator/colorManipulator.js +5 -0
- package/node_modules/@mui/system/esm/createTheme/applyStyles.js +7 -3
- package/node_modules/@mui/system/esm/cssVars/createCssVarsProvider.js +4 -1
- package/node_modules/@mui/system/esm/version/index.js +3 -3
- package/node_modules/@mui/system/index.js +1 -1
- package/node_modules/@mui/system/memoTheme.d.ts +1 -1
- package/node_modules/@mui/system/modern/Grid/index.js +2 -1
- package/node_modules/@mui/system/modern/RtlProvider/index.js +2 -0
- package/node_modules/@mui/system/modern/colorManipulator/colorManipulator.js +5 -0
- package/node_modules/@mui/system/modern/createTheme/applyStyles.js +7 -3
- package/node_modules/@mui/system/modern/cssVars/createCssVarsProvider.js +4 -1
- package/node_modules/@mui/system/modern/index.js +1 -1
- package/node_modules/@mui/system/modern/version/index.js +3 -3
- package/node_modules/@mui/system/package.json +5 -5
- package/node_modules/@mui/system/version/index.js +3 -3
- package/node_modules/@mui/types/package.json +1 -1
- package/node_modules/@mui/utils/CHANGELOG.md +240 -2
- package/node_modules/@mui/utils/composeClasses/composeClasses.d.ts +28 -0
- package/node_modules/@mui/utils/composeClasses/composeClasses.js +28 -0
- package/node_modules/@mui/utils/deepmerge/deepmerge.d.ts +18 -0
- package/node_modules/@mui/utils/deepmerge/deepmerge.js +22 -2
- package/node_modules/@mui/utils/esm/composeClasses/composeClasses.js +28 -0
- package/node_modules/@mui/utils/esm/deepmerge/deepmerge.js +22 -2
- package/node_modules/@mui/utils/index.js +1 -1
- package/node_modules/@mui/utils/modern/composeClasses/composeClasses.js +28 -0
- package/node_modules/@mui/utils/modern/deepmerge/deepmerge.js +22 -2
- package/node_modules/@mui/utils/modern/index.js +1 -1
- package/node_modules/@mui/utils/node_modules/react-is/LICENSE +21 -0
- package/node_modules/@mui/utils/node_modules/react-is/README.md +103 -0
- package/node_modules/@mui/utils/node_modules/react-is/cjs/react-is.development.js +133 -0
- package/node_modules/@mui/utils/node_modules/react-is/cjs/react-is.production.js +130 -0
- package/node_modules/@mui/utils/node_modules/react-is/index.js +7 -0
- package/node_modules/@mui/utils/node_modules/react-is/package.json +26 -0
- package/node_modules/@mui/utils/package.json +4 -4
- package/node_modules/@mui/utils/useLazyRef/useLazyRef.d.ts +1 -1
- package/node_modules/@mui/x-date-pickers/CHANGELOG.md +487 -0
- package/node_modules/@mui/x-date-pickers/DateCalendar/PickersFadeTransitionGroup.d.ts +1 -1
- package/node_modules/@mui/x-date-pickers/DateCalendar/PickersSlideTransition.d.ts +1 -1
- package/node_modules/@mui/x-date-pickers/DateField/useDateField.d.ts +1 -1
- package/node_modules/@mui/x-date-pickers/DateTimeField/useDateTimeField.d.ts +1 -1
- package/node_modules/@mui/x-date-pickers/MultiSectionDigitalClock/MultiSectionDigitalClock.js +3 -0
- package/node_modules/@mui/x-date-pickers/PickersCalendarHeader/PickersCalendarHeader.js +2 -0
- package/node_modules/@mui/x-date-pickers/README.md +1 -1
- package/node_modules/@mui/x-date-pickers/TimeClock/Clock.d.ts +4 -0
- package/node_modules/@mui/x-date-pickers/TimeClock/Clock.js +10 -6
- package/node_modules/@mui/x-date-pickers/TimeClock/TimeClock.js +21 -4
- package/node_modules/@mui/x-date-pickers/TimeField/useTimeField.d.ts +1 -1
- package/node_modules/@mui/x-date-pickers/index.js +1 -1
- package/node_modules/@mui/x-date-pickers/internals/hooks/useField/useField.js +5 -0
- package/node_modules/@mui/x-date-pickers/internals/hooks/useField/useFieldV6TextField.js +5 -2
- package/node_modules/@mui/x-date-pickers/internals/hooks/useField/useFieldV7TextField.js +3 -0
- package/node_modules/@mui/x-date-pickers/internals/hooks/usePicker/usePickerViews.d.ts +1 -1
- package/node_modules/@mui/x-date-pickers/internals/hooks/useStaticPicker/useStaticPicker.js +0 -1
- package/node_modules/@mui/x-date-pickers/internals/hooks/useUtils.js +1 -1
- package/node_modules/@mui/x-date-pickers/locales/index.d.ts +1 -0
- package/node_modules/@mui/x-date-pickers/locales/index.js +1 -0
- package/node_modules/@mui/x-date-pickers/locales/nbNO.js +15 -19
- package/node_modules/@mui/x-date-pickers/locales/roRO.js +15 -18
- package/node_modules/@mui/x-date-pickers/locales/zhTW.d.ts +80 -0
- package/node_modules/@mui/x-date-pickers/locales/zhTW.js +73 -0
- package/node_modules/@mui/x-date-pickers/modern/MultiSectionDigitalClock/MultiSectionDigitalClock.js +3 -0
- package/node_modules/@mui/x-date-pickers/modern/PickersCalendarHeader/PickersCalendarHeader.js +2 -0
- package/node_modules/@mui/x-date-pickers/modern/TimeClock/Clock.js +10 -6
- package/node_modules/@mui/x-date-pickers/modern/TimeClock/TimeClock.js +21 -4
- package/node_modules/@mui/x-date-pickers/modern/index.js +1 -1
- package/node_modules/@mui/x-date-pickers/modern/internals/hooks/useField/useField.js +5 -0
- package/node_modules/@mui/x-date-pickers/modern/internals/hooks/useField/useFieldV6TextField.js +5 -2
- package/node_modules/@mui/x-date-pickers/modern/internals/hooks/useField/useFieldV7TextField.js +3 -0
- package/node_modules/@mui/x-date-pickers/modern/internals/hooks/useStaticPicker/useStaticPicker.js +0 -1
- package/node_modules/@mui/x-date-pickers/modern/internals/hooks/useUtils.js +1 -1
- package/node_modules/@mui/x-date-pickers/modern/locales/index.js +1 -0
- package/node_modules/@mui/x-date-pickers/modern/locales/nbNO.js +15 -19
- package/node_modules/@mui/x-date-pickers/modern/locales/roRO.js +15 -18
- package/node_modules/@mui/x-date-pickers/modern/locales/zhTW.js +73 -0
- package/node_modules/@mui/x-date-pickers/node/MultiSectionDigitalClock/MultiSectionDigitalClock.js +3 -0
- package/node_modules/@mui/x-date-pickers/node/PickersCalendarHeader/PickersCalendarHeader.js +2 -0
- package/node_modules/@mui/x-date-pickers/node/TimeClock/Clock.js +10 -6
- package/node_modules/@mui/x-date-pickers/node/TimeClock/TimeClock.js +21 -4
- package/node_modules/@mui/x-date-pickers/node/index.js +1 -1
- package/node_modules/@mui/x-date-pickers/node/internals/hooks/useField/useField.js +5 -0
- package/node_modules/@mui/x-date-pickers/node/internals/hooks/useField/useFieldV6TextField.js +5 -2
- package/node_modules/@mui/x-date-pickers/node/internals/hooks/useField/useFieldV7TextField.js +3 -0
- package/node_modules/@mui/x-date-pickers/node/internals/hooks/useStaticPicker/useStaticPicker.js +0 -1
- package/node_modules/@mui/x-date-pickers/node/internals/hooks/useUtils.js +1 -1
- package/node_modules/@mui/x-date-pickers/node/locales/index.js +11 -0
- package/node_modules/@mui/x-date-pickers/node/locales/nbNO.js +15 -19
- package/node_modules/@mui/x-date-pickers/node/locales/roRO.js +15 -18
- package/node_modules/@mui/x-date-pickers/node/locales/zhTW.js +79 -0
- package/node_modules/@mui/x-date-pickers/package.json +3 -3
- package/node_modules/@mui/x-internals/CHANGELOG.md +487 -0
- package/node_modules/@mui/x-internals/esm/forwardRef/forwardRef.js +15 -0
- package/node_modules/@mui/x-internals/esm/forwardRef/index.js +1 -0
- package/node_modules/@mui/x-internals/esm/types/RefObject.js +1 -0
- package/node_modules/@mui/x-internals/esm/types/index.js +1 -0
- package/node_modules/@mui/x-internals/forwardRef/forwardRef.d.ts +4 -0
- package/node_modules/@mui/x-internals/forwardRef/forwardRef.js +23 -0
- package/node_modules/@mui/x-internals/forwardRef/index.d.ts +1 -0
- package/node_modules/@mui/x-internals/forwardRef/index.js +16 -0
- package/node_modules/@mui/x-internals/forwardRef/package.json +6 -0
- package/node_modules/@mui/x-internals/modern/forwardRef/forwardRef.js +15 -0
- package/node_modules/@mui/x-internals/modern/forwardRef/index.js +1 -0
- package/node_modules/@mui/x-internals/modern/types/RefObject.js +1 -0
- package/node_modules/@mui/x-internals/modern/types/index.js +1 -0
- package/node_modules/@mui/x-internals/package.json +1 -1
- package/node_modules/@mui/x-internals/types/RefObject.d.ts +8 -0
- package/node_modules/@mui/x-internals/types/RefObject.js +5 -0
- package/node_modules/@mui/x-internals/types/index.d.ts +1 -0
- package/node_modules/@mui/x-internals/types/index.js +16 -0
- package/node_modules/@mui/x-internals/types/package.json +6 -0
- package/node_modules/@mui/x-internals/useResizeObserver/useResizeObserver.d.ts +1 -1
- package/node_modules/@types/prop-types/README.md +1 -1
- package/node_modules/@types/prop-types/index.d.ts +21 -4
- package/node_modules/@types/prop-types/package.json +4 -3
- package/node_modules/@types/react-transition-group/README.md +3 -2
- package/node_modules/@types/react-transition-group/package.json +5 -4
- package/package.json +4 -4
- package/node_modules/@types/react/LICENSE +0 -21
- package/node_modules/@types/react/README.md +0 -15
- package/node_modules/@types/react/canary.d.ts +0 -166
- package/node_modules/@types/react/experimental.d.ts +0 -132
- package/node_modules/@types/react/global.d.ts +0 -160
- package/node_modules/@types/react/index.d.ts +0 -4543
- package/node_modules/@types/react/jsx-dev-runtime.d.ts +0 -45
- package/node_modules/@types/react/jsx-runtime.d.ts +0 -36
- package/node_modules/@types/react/package.json +0 -206
- package/node_modules/@types/react/ts5.0/canary.d.ts +0 -166
- package/node_modules/@types/react/ts5.0/experimental.d.ts +0 -132
- package/node_modules/@types/react/ts5.0/global.d.ts +0 -160
- package/node_modules/@types/react/ts5.0/index.d.ts +0 -4530
- package/node_modules/@types/react/ts5.0/jsx-dev-runtime.d.ts +0 -44
- package/node_modules/@types/react/ts5.0/jsx-runtime.d.ts +0 -35
- package/node_modules/react-is/cjs/react-is.development.js +0 -221
- package/node_modules/react-is/cjs/react-is.production.min.js +0 -14
- package/node_modules/react-is/umd/react-is.development.js +0 -220
- package/node_modules/react-is/umd/react-is.production.min.js +0 -15
|
@@ -15,6 +15,7 @@ import Backdrop from "../Backdrop/index.js";
|
|
|
15
15
|
import { styled, useTheme } from "../zero-styled/index.js";
|
|
16
16
|
import memoTheme from "../utils/memoTheme.js";
|
|
17
17
|
import { useDefaultProps } from "../DefaultPropsProvider/index.js";
|
|
18
|
+
import useSlot from "../utils/useSlot.js";
|
|
18
19
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
19
20
|
const DialogBackdrop = styled(Backdrop, {
|
|
20
21
|
name: 'MuiDialog',
|
|
@@ -218,6 +219,8 @@ const Dialog = /*#__PURE__*/React.forwardRef(function Dialog(inProps, ref) {
|
|
|
218
219
|
PaperComponent = Paper,
|
|
219
220
|
PaperProps = {},
|
|
220
221
|
scroll = 'paper',
|
|
222
|
+
slots = {},
|
|
223
|
+
slotProps = {},
|
|
221
224
|
TransitionComponent = Fade,
|
|
222
225
|
transitionDuration = defaultTransitionDuration,
|
|
223
226
|
TransitionProps,
|
|
@@ -261,46 +264,89 @@ const Dialog = /*#__PURE__*/React.forwardRef(function Dialog(inProps, ref) {
|
|
|
261
264
|
titleId: ariaLabelledby
|
|
262
265
|
};
|
|
263
266
|
}, [ariaLabelledby]);
|
|
264
|
-
|
|
267
|
+
const backwardCompatibleSlots = {
|
|
268
|
+
transition: TransitionComponent,
|
|
269
|
+
...slots
|
|
270
|
+
};
|
|
271
|
+
const backwardCompatibleSlotProps = {
|
|
272
|
+
transition: TransitionProps,
|
|
273
|
+
paper: PaperProps,
|
|
274
|
+
backdrop: BackdropProps,
|
|
275
|
+
...slotProps
|
|
276
|
+
};
|
|
277
|
+
const externalForwardedProps = {
|
|
278
|
+
slots: backwardCompatibleSlots,
|
|
279
|
+
slotProps: backwardCompatibleSlotProps
|
|
280
|
+
};
|
|
281
|
+
const [RootSlot, rootSlotProps] = useSlot('root', {
|
|
282
|
+
elementType: DialogRoot,
|
|
283
|
+
shouldForwardComponentProp: true,
|
|
284
|
+
externalForwardedProps,
|
|
285
|
+
ownerState,
|
|
265
286
|
className: clsx(classes.root, className),
|
|
287
|
+
ref
|
|
288
|
+
});
|
|
289
|
+
const [BackdropSlot, backdropSlotProps] = useSlot('backdrop', {
|
|
290
|
+
elementType: DialogBackdrop,
|
|
291
|
+
shouldForwardComponentProp: true,
|
|
292
|
+
externalForwardedProps,
|
|
293
|
+
ownerState
|
|
294
|
+
});
|
|
295
|
+
const [PaperSlot, paperSlotProps] = useSlot('paper', {
|
|
296
|
+
elementType: DialogPaper,
|
|
297
|
+
shouldForwardComponentProp: true,
|
|
298
|
+
externalForwardedProps,
|
|
299
|
+
ownerState,
|
|
300
|
+
className: clsx(classes.paper, PaperProps.className)
|
|
301
|
+
});
|
|
302
|
+
const [ContainerSlot, containerSlotProps] = useSlot('container', {
|
|
303
|
+
elementType: DialogContainer,
|
|
304
|
+
externalForwardedProps,
|
|
305
|
+
ownerState,
|
|
306
|
+
className: clsx(classes.container)
|
|
307
|
+
});
|
|
308
|
+
const [TransitionSlot, transitionSlotProps] = useSlot('transition', {
|
|
309
|
+
elementType: Fade,
|
|
310
|
+
externalForwardedProps,
|
|
311
|
+
ownerState,
|
|
312
|
+
additionalProps: {
|
|
313
|
+
appear: true,
|
|
314
|
+
in: open,
|
|
315
|
+
timeout: transitionDuration,
|
|
316
|
+
role: 'presentation'
|
|
317
|
+
}
|
|
318
|
+
});
|
|
319
|
+
return /*#__PURE__*/_jsx(RootSlot, {
|
|
266
320
|
closeAfterTransition: true,
|
|
267
|
-
|
|
268
|
-
|
|
321
|
+
slots: {
|
|
322
|
+
backdrop: BackdropSlot
|
|
269
323
|
},
|
|
270
|
-
|
|
324
|
+
slotProps: {
|
|
271
325
|
backdrop: {
|
|
272
326
|
transitionDuration,
|
|
273
327
|
as: BackdropComponent,
|
|
274
|
-
...
|
|
328
|
+
...backdropSlotProps
|
|
275
329
|
}
|
|
276
330
|
},
|
|
277
331
|
disableEscapeKeyDown: disableEscapeKeyDown,
|
|
278
332
|
onClose: onClose,
|
|
279
333
|
open: open,
|
|
280
|
-
ref: ref,
|
|
281
334
|
onClick: handleBackdropClick,
|
|
282
|
-
|
|
335
|
+
...rootSlotProps,
|
|
283
336
|
...other,
|
|
284
|
-
children: /*#__PURE__*/_jsx(
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
timeout: transitionDuration,
|
|
288
|
-
role: "presentation",
|
|
289
|
-
...TransitionProps,
|
|
290
|
-
children: /*#__PURE__*/_jsx(DialogContainer, {
|
|
291
|
-
className: clsx(classes.container),
|
|
337
|
+
children: /*#__PURE__*/_jsx(TransitionSlot, {
|
|
338
|
+
...transitionSlotProps,
|
|
339
|
+
children: /*#__PURE__*/_jsx(ContainerSlot, {
|
|
292
340
|
onMouseDown: handleMouseDown,
|
|
293
|
-
|
|
294
|
-
children: /*#__PURE__*/_jsx(
|
|
341
|
+
...containerSlotProps,
|
|
342
|
+
children: /*#__PURE__*/_jsx(PaperSlot, {
|
|
295
343
|
as: PaperComponent,
|
|
296
344
|
elevation: 24,
|
|
297
345
|
role: "dialog",
|
|
298
346
|
"aria-describedby": ariaDescribedby,
|
|
299
347
|
"aria-labelledby": ariaLabelledby,
|
|
300
348
|
"aria-modal": ariaModal,
|
|
301
|
-
...
|
|
302
|
-
className: clsx(classes.paper, PaperProps.className),
|
|
303
|
-
ownerState: ownerState,
|
|
349
|
+
...paperSlotProps,
|
|
304
350
|
children: /*#__PURE__*/_jsx(DialogContext.Provider, {
|
|
305
351
|
value: dialogContextValue,
|
|
306
352
|
children: children
|
|
@@ -412,6 +458,7 @@ process.env.NODE_ENV !== "production" ? Dialog.propTypes /* remove-proptypes */
|
|
|
412
458
|
/**
|
|
413
459
|
* Props applied to the [`Paper`](https://mui.com/material-ui/api/paper/) element.
|
|
414
460
|
* @default {}
|
|
461
|
+
* @deprecated Use `slotProps.paper` instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
415
462
|
*/
|
|
416
463
|
PaperProps: PropTypes.object,
|
|
417
464
|
/**
|
|
@@ -419,6 +466,28 @@ process.env.NODE_ENV !== "production" ? Dialog.propTypes /* remove-proptypes */
|
|
|
419
466
|
* @default 'paper'
|
|
420
467
|
*/
|
|
421
468
|
scroll: PropTypes.oneOf(['body', 'paper']),
|
|
469
|
+
/**
|
|
470
|
+
* The props used for each slot inside.
|
|
471
|
+
* @default {}
|
|
472
|
+
*/
|
|
473
|
+
slotProps: PropTypes.shape({
|
|
474
|
+
backdrop: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
475
|
+
container: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
476
|
+
paper: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
477
|
+
root: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
478
|
+
transition: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
479
|
+
}),
|
|
480
|
+
/**
|
|
481
|
+
* The components used for each slot inside.
|
|
482
|
+
* @default {}
|
|
483
|
+
*/
|
|
484
|
+
slots: PropTypes.shape({
|
|
485
|
+
backdrop: PropTypes.elementType,
|
|
486
|
+
container: PropTypes.elementType,
|
|
487
|
+
paper: PropTypes.elementType,
|
|
488
|
+
root: PropTypes.elementType,
|
|
489
|
+
transition: PropTypes.elementType
|
|
490
|
+
}),
|
|
422
491
|
/**
|
|
423
492
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
424
493
|
*/
|
|
@@ -427,6 +496,7 @@ process.env.NODE_ENV !== "production" ? Dialog.propTypes /* remove-proptypes */
|
|
|
427
496
|
* The component used for the transition.
|
|
428
497
|
* [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
|
429
498
|
* @default Fade
|
|
499
|
+
* @deprecated Use `slots.transition` instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
430
500
|
*/
|
|
431
501
|
TransitionComponent: PropTypes.elementType,
|
|
432
502
|
/**
|
|
@@ -445,6 +515,7 @@ process.env.NODE_ENV !== "production" ? Dialog.propTypes /* remove-proptypes */
|
|
|
445
515
|
/**
|
|
446
516
|
* Props applied to the transition element.
|
|
447
517
|
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
|
|
518
|
+
* @deprecated Use `slotProps.transition` instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
448
519
|
*/
|
|
449
520
|
TransitionProps: PropTypes.object
|
|
450
521
|
} : void 0;
|
|
@@ -29,7 +29,7 @@ const useUtilityClasses = ownerState => {
|
|
|
29
29
|
variant
|
|
30
30
|
} = ownerState;
|
|
31
31
|
const slots = {
|
|
32
|
-
root: ['root'],
|
|
32
|
+
root: ['root', `anchor${capitalize(anchor)}`],
|
|
33
33
|
docked: [(variant === 'permanent' || variant === 'persistent') && 'docked'],
|
|
34
34
|
modal: ['modal'],
|
|
35
35
|
paper: ['paper', `paperAnchor${capitalize(anchor)}`, variant !== 'temporary' && `paperAnchorDocked${capitalize(anchor)}`]
|
|
@@ -3,5 +3,5 @@ import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
|
|
3
3
|
export function getDrawerUtilityClass(slot) {
|
|
4
4
|
return generateUtilityClass('MuiDrawer', slot);
|
|
5
5
|
}
|
|
6
|
-
const drawerClasses = generateUtilityClasses('MuiDrawer', ['root', 'docked', 'paper', 'paperAnchorLeft', 'paperAnchorRight', 'paperAnchorTop', 'paperAnchorBottom', 'paperAnchorDockedLeft', 'paperAnchorDockedRight', 'paperAnchorDockedTop', 'paperAnchorDockedBottom', 'modal']);
|
|
6
|
+
const drawerClasses = generateUtilityClasses('MuiDrawer', ['root', 'docked', 'paper', 'anchorLeft', 'anchorRight', 'anchorTop', 'anchorBottom', 'paperAnchorLeft', 'paperAnchorRight', 'paperAnchorTop', 'paperAnchorBottom', 'paperAnchorDockedLeft', 'paperAnchorDockedRight', 'paperAnchorDockedTop', 'paperAnchorDockedBottom', 'modal']);
|
|
7
7
|
export default drawerClasses;
|
|
@@ -114,7 +114,10 @@ const Fade = /*#__PURE__*/React.forwardRef(function Fade(props, ref) {
|
|
|
114
114
|
addEndListener: handleAddEndListener,
|
|
115
115
|
timeout: timeout,
|
|
116
116
|
...other,
|
|
117
|
-
children: (state,
|
|
117
|
+
children: (state, {
|
|
118
|
+
ownerState,
|
|
119
|
+
...restChildProps
|
|
120
|
+
}) => {
|
|
118
121
|
return /*#__PURE__*/React.cloneElement(children, {
|
|
119
122
|
style: {
|
|
120
123
|
opacity: 0,
|
|
@@ -124,7 +127,7 @@ const Fade = /*#__PURE__*/React.forwardRef(function Fade(props, ref) {
|
|
|
124
127
|
...children.props.style
|
|
125
128
|
},
|
|
126
129
|
ref: handleRef,
|
|
127
|
-
...
|
|
130
|
+
...restChildProps
|
|
128
131
|
});
|
|
129
132
|
}
|
|
130
133
|
});
|
|
@@ -512,7 +512,5 @@ process.env.NODE_ENV !== "production" ? FilledInput.propTypes /* remove-proptype
|
|
|
512
512
|
*/
|
|
513
513
|
value: PropTypes.any
|
|
514
514
|
} : void 0;
|
|
515
|
-
|
|
516
|
-
FilledInput.muiName = 'Input';
|
|
517
|
-
}
|
|
515
|
+
FilledInput.muiName = 'Input';
|
|
518
516
|
export default FilledInput;
|
|
@@ -26,14 +26,11 @@ const useUtilityClasses = ownerState => {
|
|
|
26
26
|
const FormControlRoot = styled('div', {
|
|
27
27
|
name: 'MuiFormControl',
|
|
28
28
|
slot: 'Root',
|
|
29
|
-
overridesResolver: ({
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
...styles[`margin${capitalize(ownerState.margin)}`],
|
|
35
|
-
...(ownerState.fullWidth && styles.fullWidth)
|
|
36
|
-
};
|
|
29
|
+
overridesResolver: (props, styles) => {
|
|
30
|
+
const {
|
|
31
|
+
ownerState
|
|
32
|
+
} = props;
|
|
33
|
+
return [styles.root, styles[`margin${capitalize(ownerState.margin)}`], ownerState.fullWidth && styles.fullWidth];
|
|
37
34
|
}
|
|
38
35
|
})({
|
|
39
36
|
display: 'inline-flex',
|
|
@@ -182,6 +179,12 @@ const FormControl = /*#__PURE__*/React.forwardRef(function FormControl(inProps,
|
|
|
182
179
|
};
|
|
183
180
|
};
|
|
184
181
|
}
|
|
182
|
+
const onFilled = React.useCallback(() => {
|
|
183
|
+
setFilled(true);
|
|
184
|
+
}, []);
|
|
185
|
+
const onEmpty = React.useCallback(() => {
|
|
186
|
+
setFilled(false);
|
|
187
|
+
}, []);
|
|
185
188
|
const childContext = React.useMemo(() => {
|
|
186
189
|
return {
|
|
187
190
|
adornedStart,
|
|
@@ -197,20 +200,16 @@ const FormControl = /*#__PURE__*/React.forwardRef(function FormControl(inProps,
|
|
|
197
200
|
onBlur: () => {
|
|
198
201
|
setFocused(false);
|
|
199
202
|
},
|
|
200
|
-
onEmpty: () => {
|
|
201
|
-
setFilled(false);
|
|
202
|
-
},
|
|
203
|
-
onFilled: () => {
|
|
204
|
-
setFilled(true);
|
|
205
|
-
},
|
|
206
203
|
onFocus: () => {
|
|
207
204
|
setFocused(true);
|
|
208
205
|
},
|
|
206
|
+
onEmpty,
|
|
207
|
+
onFilled,
|
|
209
208
|
registerEffect,
|
|
210
209
|
required,
|
|
211
210
|
variant
|
|
212
211
|
};
|
|
213
|
-
}, [adornedStart, color, disabled, error, filled, focused, fullWidth, hiddenLabel, registerEffect, required, size, variant]);
|
|
212
|
+
}, [adornedStart, color, disabled, error, filled, focused, fullWidth, hiddenLabel, registerEffect, onEmpty, onFilled, required, size, variant]);
|
|
214
213
|
return /*#__PURE__*/_jsx(FormControlContext.Provider, {
|
|
215
214
|
value: childContext,
|
|
216
215
|
children: /*#__PURE__*/_jsx(FormControlRoot, {
|
|
@@ -32,14 +32,11 @@ const useUtilityClasses = ownerState => {
|
|
|
32
32
|
export const FormLabelRoot = styled('label', {
|
|
33
33
|
name: 'MuiFormLabel',
|
|
34
34
|
slot: 'Root',
|
|
35
|
-
overridesResolver: ({
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
...(ownerState.color === 'secondary' && styles.colorSecondary),
|
|
41
|
-
...(ownerState.filled && styles.filled)
|
|
42
|
-
};
|
|
35
|
+
overridesResolver: (props, styles) => {
|
|
36
|
+
const {
|
|
37
|
+
ownerState
|
|
38
|
+
} = props;
|
|
39
|
+
return [styles.root, ownerState.color === 'secondary' && styles.colorSecondary, ownerState.filled && styles.filled];
|
|
43
40
|
}
|
|
44
41
|
})(memoTheme(({
|
|
45
42
|
theme
|
|
@@ -167,7 +167,7 @@ export function generateRowGap({
|
|
|
167
167
|
const themeSpacing = theme.spacing(propValue);
|
|
168
168
|
if (themeSpacing !== '0px') {
|
|
169
169
|
return {
|
|
170
|
-
marginTop:
|
|
170
|
+
marginTop: `calc(-1 * ${themeSpacing})`,
|
|
171
171
|
[`& > .${gridClasses.item}`]: {
|
|
172
172
|
paddingTop: themeSpacing
|
|
173
173
|
}
|
|
@@ -212,7 +212,7 @@ export function generateColumnGap({
|
|
|
212
212
|
}, columnSpacingValues, (propValue, breakpoint) => {
|
|
213
213
|
const themeSpacing = theme.spacing(propValue);
|
|
214
214
|
if (themeSpacing !== '0px') {
|
|
215
|
-
const negativeValue =
|
|
215
|
+
const negativeValue = `calc(-1 * ${themeSpacing})`;
|
|
216
216
|
return {
|
|
217
217
|
width: `calc(100% + ${themeSpacing})`,
|
|
218
218
|
marginLeft: negativeValue,
|
|
@@ -163,7 +163,10 @@ const Grow = /*#__PURE__*/React.forwardRef(function Grow(props, ref) {
|
|
|
163
163
|
addEndListener: handleAddEndListener,
|
|
164
164
|
timeout: timeout === 'auto' ? null : timeout,
|
|
165
165
|
...other,
|
|
166
|
-
children: (state,
|
|
166
|
+
children: (state, {
|
|
167
|
+
ownerState,
|
|
168
|
+
...restChildProps
|
|
169
|
+
}) => {
|
|
167
170
|
return /*#__PURE__*/React.cloneElement(children, {
|
|
168
171
|
style: {
|
|
169
172
|
opacity: 0,
|
|
@@ -174,7 +177,7 @@ const Grow = /*#__PURE__*/React.forwardRef(function Grow(props, ref) {
|
|
|
174
177
|
...children.props.style
|
|
175
178
|
},
|
|
176
179
|
ref: handleRef,
|
|
177
|
-
...
|
|
180
|
+
...restChildProps
|
|
178
181
|
});
|
|
179
182
|
}
|
|
180
183
|
});
|
|
@@ -181,7 +181,5 @@ process.env.NODE_ENV !== "production" ? Icon.propTypes /* remove-proptypes */ =
|
|
|
181
181
|
*/
|
|
182
182
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
|
183
183
|
} : void 0;
|
|
184
|
-
|
|
185
|
-
Icon.muiName = 'Icon';
|
|
186
|
-
}
|
|
184
|
+
Icon.muiName = 'Icon';
|
|
187
185
|
export default Icon;
|
|
@@ -5,25 +5,30 @@ import PropTypes from 'prop-types';
|
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
import chainPropTypes from '@mui/utils/chainPropTypes';
|
|
7
7
|
import composeClasses from '@mui/utils/composeClasses';
|
|
8
|
+
import { unstable_useId as useId } from '@mui/material/utils';
|
|
8
9
|
import { alpha } from '@mui/system/colorManipulator';
|
|
9
10
|
import { styled } from "../zero-styled/index.js";
|
|
10
11
|
import memoTheme from "../utils/memoTheme.js";
|
|
11
12
|
import createSimplePaletteValueFilter from "../utils/createSimplePaletteValueFilter.js";
|
|
12
13
|
import { useDefaultProps } from "../DefaultPropsProvider/index.js";
|
|
13
14
|
import ButtonBase from "../ButtonBase/index.js";
|
|
15
|
+
import CircularProgress from "../CircularProgress/index.js";
|
|
14
16
|
import capitalize from "../utils/capitalize.js";
|
|
15
17
|
import iconButtonClasses, { getIconButtonUtilityClass } from "./iconButtonClasses.js";
|
|
16
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
18
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
19
|
const useUtilityClasses = ownerState => {
|
|
18
20
|
const {
|
|
19
21
|
classes,
|
|
20
22
|
disabled,
|
|
21
23
|
color,
|
|
22
24
|
edge,
|
|
23
|
-
size
|
|
25
|
+
size,
|
|
26
|
+
loading
|
|
24
27
|
} = ownerState;
|
|
25
28
|
const slots = {
|
|
26
|
-
root: ['root', disabled && 'disabled', color !== 'default' && `color${capitalize(color)}`, edge && `edge${capitalize(edge)}`, `size${capitalize(size)}`]
|
|
29
|
+
root: ['root', loading && 'loading', disabled && 'disabled', color !== 'default' && `color${capitalize(color)}`, edge && `edge${capitalize(edge)}`, `size${capitalize(size)}`],
|
|
30
|
+
loadingIndicator: ['loadingIndicator'],
|
|
31
|
+
loadingWrapper: ['loadingWrapper']
|
|
27
32
|
};
|
|
28
33
|
return composeClasses(slots, getIconButtonUtilityClass, classes);
|
|
29
34
|
};
|
|
@@ -34,7 +39,7 @@ const IconButtonRoot = styled(ButtonBase, {
|
|
|
34
39
|
const {
|
|
35
40
|
ownerState
|
|
36
41
|
} = props;
|
|
37
|
-
return [styles.root, ownerState.color !== 'default' && styles[`color${capitalize(ownerState.color)}`], ownerState.edge && styles[`edge${capitalize(ownerState.edge)}`], styles[`size${capitalize(ownerState.size)}`]];
|
|
42
|
+
return [styles.root, ownerState.loading && styles.loading, ownerState.color !== 'default' && styles[`color${capitalize(ownerState.color)}`], ownerState.edge && styles[`edge${capitalize(ownerState.edge)}`], styles[`size${capitalize(ownerState.size)}`]];
|
|
38
43
|
}
|
|
39
44
|
})(memoTheme(({
|
|
40
45
|
theme
|
|
@@ -137,8 +142,34 @@ const IconButtonRoot = styled(ButtonBase, {
|
|
|
137
142
|
[`&.${iconButtonClasses.disabled}`]: {
|
|
138
143
|
backgroundColor: 'transparent',
|
|
139
144
|
color: (theme.vars || theme).palette.action.disabled
|
|
145
|
+
},
|
|
146
|
+
[`&.${iconButtonClasses.loading}`]: {
|
|
147
|
+
color: 'transparent'
|
|
140
148
|
}
|
|
141
149
|
})));
|
|
150
|
+
const IconButtonLoadingIndicator = styled('span', {
|
|
151
|
+
name: 'MuiIconButton',
|
|
152
|
+
slot: 'LoadingIndicator',
|
|
153
|
+
overridesResolver: (props, styles) => styles.loadingIndicator
|
|
154
|
+
})(({
|
|
155
|
+
theme
|
|
156
|
+
}) => ({
|
|
157
|
+
display: 'none',
|
|
158
|
+
position: 'absolute',
|
|
159
|
+
visibility: 'visible',
|
|
160
|
+
top: '50%',
|
|
161
|
+
left: '50%',
|
|
162
|
+
transform: 'translate(-50%, -50%)',
|
|
163
|
+
color: (theme.vars || theme).palette.action.disabled,
|
|
164
|
+
variants: [{
|
|
165
|
+
props: {
|
|
166
|
+
loading: true
|
|
167
|
+
},
|
|
168
|
+
style: {
|
|
169
|
+
display: 'flex'
|
|
170
|
+
}
|
|
171
|
+
}]
|
|
172
|
+
}));
|
|
142
173
|
|
|
143
174
|
/**
|
|
144
175
|
* Refer to the [Icons](/material-ui/icons/) section of the documentation
|
|
@@ -157,26 +188,51 @@ const IconButton = /*#__PURE__*/React.forwardRef(function IconButton(inProps, re
|
|
|
157
188
|
disabled = false,
|
|
158
189
|
disableFocusRipple = false,
|
|
159
190
|
size = 'medium',
|
|
191
|
+
id: idProp,
|
|
192
|
+
loading = null,
|
|
193
|
+
loadingIndicator: loadingIndicatorProp,
|
|
160
194
|
...other
|
|
161
195
|
} = props;
|
|
196
|
+
const id = useId(idProp);
|
|
197
|
+
const loadingIndicator = loadingIndicatorProp ?? /*#__PURE__*/_jsx(CircularProgress, {
|
|
198
|
+
"aria-labelledby": id,
|
|
199
|
+
color: "inherit",
|
|
200
|
+
size: 16
|
|
201
|
+
});
|
|
162
202
|
const ownerState = {
|
|
163
203
|
...props,
|
|
164
204
|
edge,
|
|
165
205
|
color,
|
|
166
206
|
disabled,
|
|
167
207
|
disableFocusRipple,
|
|
208
|
+
loading,
|
|
209
|
+
loadingIndicator,
|
|
168
210
|
size
|
|
169
211
|
};
|
|
170
212
|
const classes = useUtilityClasses(ownerState);
|
|
171
|
-
return /*#__PURE__*/
|
|
213
|
+
return /*#__PURE__*/_jsxs(IconButtonRoot, {
|
|
214
|
+
id: id,
|
|
172
215
|
className: clsx(classes.root, className),
|
|
173
216
|
centerRipple: true,
|
|
174
217
|
focusRipple: !disableFocusRipple,
|
|
175
|
-
disabled: disabled,
|
|
218
|
+
disabled: disabled || loading,
|
|
176
219
|
ref: ref,
|
|
177
220
|
...other,
|
|
178
221
|
ownerState: ownerState,
|
|
179
|
-
children:
|
|
222
|
+
children: [typeof loading === 'boolean' &&
|
|
223
|
+
/*#__PURE__*/
|
|
224
|
+
// use plain HTML span to minimize the runtime overhead
|
|
225
|
+
_jsx("span", {
|
|
226
|
+
className: classes.loadingWrapper,
|
|
227
|
+
style: {
|
|
228
|
+
display: 'contents'
|
|
229
|
+
},
|
|
230
|
+
children: /*#__PURE__*/_jsx(IconButtonLoadingIndicator, {
|
|
231
|
+
className: classes.loadingIndicator,
|
|
232
|
+
ownerState: ownerState,
|
|
233
|
+
children: loading && loadingIndicator
|
|
234
|
+
})
|
|
235
|
+
}), children]
|
|
180
236
|
});
|
|
181
237
|
});
|
|
182
238
|
process.env.NODE_ENV !== "production" ? IconButton.propTypes /* remove-proptypes */ = {
|
|
@@ -235,6 +291,23 @@ process.env.NODE_ENV !== "production" ? IconButton.propTypes /* remove-proptypes
|
|
|
235
291
|
* @default false
|
|
236
292
|
*/
|
|
237
293
|
edge: PropTypes.oneOf(['end', 'start', false]),
|
|
294
|
+
/**
|
|
295
|
+
* @ignore
|
|
296
|
+
*/
|
|
297
|
+
id: PropTypes.string,
|
|
298
|
+
/**
|
|
299
|
+
* If `true`, the loading indicator is visible and the button is disabled.
|
|
300
|
+
* If `true | false`, the loading wrapper is always rendered before the children to prevent [Google Translation Crash](https://github.com/mui/material-ui/issues/27853).
|
|
301
|
+
* @default null
|
|
302
|
+
*/
|
|
303
|
+
loading: PropTypes.bool,
|
|
304
|
+
/**
|
|
305
|
+
* Element placed before the children if the button is in loading state.
|
|
306
|
+
* The node should contain an element with `role="progressbar"` with an accessible name.
|
|
307
|
+
* By default, it renders a `CircularProgress` that is labeled by the button itself.
|
|
308
|
+
* @default <CircularProgress color="inherit" size={16} />
|
|
309
|
+
*/
|
|
310
|
+
loadingIndicator: PropTypes.node,
|
|
238
311
|
/**
|
|
239
312
|
* The size of the component.
|
|
240
313
|
* `small` is equivalent to the dense button styling.
|
|
@@ -3,5 +3,5 @@ import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
|
|
3
3
|
export function getIconButtonUtilityClass(slot) {
|
|
4
4
|
return generateUtilityClass('MuiIconButton', slot);
|
|
5
5
|
}
|
|
6
|
-
const iconButtonClasses = generateUtilityClasses('MuiIconButton', ['root', 'disabled', 'colorInherit', 'colorPrimary', 'colorSecondary', 'colorError', 'colorInfo', 'colorSuccess', 'colorWarning', 'edgeStart', 'edgeEnd', 'sizeSmall', 'sizeMedium', 'sizeLarge']);
|
|
6
|
+
const iconButtonClasses = generateUtilityClasses('MuiIconButton', ['root', 'disabled', 'colorInherit', 'colorPrimary', 'colorSecondary', 'colorError', 'colorInfo', 'colorSuccess', 'colorWarning', 'edgeStart', 'edgeEnd', 'sizeSmall', 'sizeMedium', 'sizeLarge', 'loading', 'loadingIndicator', 'loadingWrapper']);
|
|
7
7
|
export default iconButtonClasses;
|
|
@@ -84,8 +84,8 @@ const useUtilityClasses = ownerState => {
|
|
|
84
84
|
const slots = {
|
|
85
85
|
root: ['root', `color${capitalize(color)}`, variant],
|
|
86
86
|
dashed: ['dashed', `dashedColor${capitalize(color)}`],
|
|
87
|
-
bar1: ['bar', `barColor${capitalize(color)}`, (variant === 'indeterminate' || variant === 'query') && 'bar1Indeterminate', variant === 'determinate' && 'bar1Determinate', variant === 'buffer' && 'bar1Buffer'],
|
|
88
|
-
bar2: ['bar', variant !== 'buffer' && `barColor${capitalize(color)}`, variant === 'buffer' && `color${capitalize(color)}`, (variant === 'indeterminate' || variant === 'query') && 'bar2Indeterminate', variant === 'buffer' && 'bar2Buffer']
|
|
87
|
+
bar1: ['bar', 'bar1', `barColor${capitalize(color)}`, (variant === 'indeterminate' || variant === 'query') && 'bar1Indeterminate', variant === 'determinate' && 'bar1Determinate', variant === 'buffer' && 'bar1Buffer'],
|
|
88
|
+
bar2: ['bar', 'bar2', variant !== 'buffer' && `barColor${capitalize(color)}`, variant === 'buffer' && `color${capitalize(color)}`, (variant === 'indeterminate' || variant === 'query') && 'bar2Indeterminate', variant === 'buffer' && 'bar2Buffer']
|
|
89
89
|
};
|
|
90
90
|
return composeClasses(slots, getLinearProgressUtilityClass, classes);
|
|
91
91
|
};
|
|
@@ -203,7 +203,7 @@ const LinearProgressBar1 = styled('span', {
|
|
|
203
203
|
const {
|
|
204
204
|
ownerState
|
|
205
205
|
} = props;
|
|
206
|
-
return [styles.bar, styles[`barColor${capitalize(ownerState.color)}`], (ownerState.variant === 'indeterminate' || ownerState.variant === 'query') && styles.bar1Indeterminate, ownerState.variant === 'determinate' && styles.bar1Determinate, ownerState.variant === 'buffer' && styles.bar1Buffer];
|
|
206
|
+
return [styles.bar, styles.bar1, styles[`barColor${capitalize(ownerState.color)}`], (ownerState.variant === 'indeterminate' || ownerState.variant === 'query') && styles.bar1Indeterminate, ownerState.variant === 'determinate' && styles.bar1Determinate, ownerState.variant === 'buffer' && styles.bar1Buffer];
|
|
207
207
|
}
|
|
208
208
|
})(memoTheme(({
|
|
209
209
|
theme
|
|
@@ -267,7 +267,7 @@ const LinearProgressBar2 = styled('span', {
|
|
|
267
267
|
const {
|
|
268
268
|
ownerState
|
|
269
269
|
} = props;
|
|
270
|
-
return [styles.bar, styles[`barColor${capitalize(ownerState.color)}`], (ownerState.variant === 'indeterminate' || ownerState.variant === 'query') && styles.bar2Indeterminate, ownerState.variant === 'buffer' && styles.bar2Buffer];
|
|
270
|
+
return [styles.bar, styles.bar2, styles[`barColor${capitalize(ownerState.color)}`], (ownerState.variant === 'indeterminate' || ownerState.variant === 'query') && styles.bar2Indeterminate, ownerState.variant === 'buffer' && styles.bar2Buffer];
|
|
271
271
|
}
|
|
272
272
|
})(memoTheme(({
|
|
273
273
|
theme
|
|
@@ -3,5 +3,5 @@ import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
|
|
3
3
|
export function getLinearProgressUtilityClass(slot) {
|
|
4
4
|
return generateUtilityClass('MuiLinearProgress', slot);
|
|
5
5
|
}
|
|
6
|
-
const linearProgressClasses = generateUtilityClasses('MuiLinearProgress', ['root', 'colorPrimary', 'colorSecondary', 'determinate', 'indeterminate', 'buffer', 'query', 'dashed', 'dashedColorPrimary', 'dashedColorSecondary', 'bar', 'barColorPrimary', 'barColorSecondary', 'bar1Indeterminate', 'bar1Determinate', 'bar1Buffer', 'bar2Indeterminate', 'bar2Buffer']);
|
|
6
|
+
const linearProgressClasses = generateUtilityClasses('MuiLinearProgress', ['root', 'colorPrimary', 'colorSecondary', 'determinate', 'indeterminate', 'buffer', 'query', 'dashed', 'dashedColorPrimary', 'dashedColorSecondary', 'bar', 'bar1', 'bar2', 'barColorPrimary', 'barColorSecondary', 'bar1Indeterminate', 'bar1Determinate', 'bar1Buffer', 'bar2Indeterminate', 'bar2Buffer']);
|
|
7
7
|
export default linearProgressClasses;
|
|
@@ -5,8 +5,9 @@ const getTextDecoration = ({
|
|
|
5
5
|
ownerState
|
|
6
6
|
}) => {
|
|
7
7
|
const transformedColor = ownerState.color;
|
|
8
|
-
|
|
9
|
-
const
|
|
8
|
+
// check the `main` color first for a custom palette, then fallback to the color itself
|
|
9
|
+
const color = getPath(theme, `palette.${transformedColor}.main`, false) || getPath(theme, `palette.${transformedColor}`, false) || ownerState.color;
|
|
10
|
+
const channelColor = getPath(theme, `palette.${transformedColor}.mainChannel`) || getPath(theme, `palette.${transformedColor}Channel`);
|
|
10
11
|
if ('vars' in theme && channelColor) {
|
|
11
12
|
return `rgba(${channelColor} / 0.4)`;
|
|
12
13
|
}
|