@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
|
@@ -7,7 +7,6 @@ import clsx from 'clsx';
|
|
|
7
7
|
import integerPropType from '@mui/utils/integerPropType';
|
|
8
8
|
import chainPropTypes from '@mui/utils/chainPropTypes';
|
|
9
9
|
import composeClasses from '@mui/utils/composeClasses';
|
|
10
|
-
import isHostComponent from "../utils/isHostComponent.js";
|
|
11
10
|
import { styled } from "../zero-styled/index.js";
|
|
12
11
|
import memoTheme from "../utils/memoTheme.js";
|
|
13
12
|
import { useDefaultProps } from "../DefaultPropsProvider/index.js";
|
|
@@ -19,6 +18,7 @@ import Toolbar from "../Toolbar/index.js";
|
|
|
19
18
|
import TablePaginationActions from "./TablePaginationActions.js";
|
|
20
19
|
import useId from "../utils/useId.js";
|
|
21
20
|
import tablePaginationClasses, { getTablePaginationUtilityClass } from "./tablePaginationClasses.js";
|
|
21
|
+
import useSlot from "../utils/useSlot.js";
|
|
22
22
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
23
23
|
import { createElement as _createElement } from "react";
|
|
24
24
|
const TablePaginationRoot = styled(TableCell, {
|
|
@@ -154,7 +154,6 @@ const TablePagination = /*#__PURE__*/React.forwardRef(function TablePagination(i
|
|
|
154
154
|
const {
|
|
155
155
|
ActionsComponent = TablePaginationActions,
|
|
156
156
|
backIconButtonProps,
|
|
157
|
-
className,
|
|
158
157
|
colSpan: colSpanProp,
|
|
159
158
|
component = TableCell,
|
|
160
159
|
count,
|
|
@@ -191,22 +190,73 @@ const TablePagination = /*#__PURE__*/React.forwardRef(function TablePagination(i
|
|
|
191
190
|
}
|
|
192
191
|
return rowsPerPage === -1 ? count : Math.min(count, (page + 1) * rowsPerPage);
|
|
193
192
|
};
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
193
|
+
const externalForwardedProps = {
|
|
194
|
+
slots,
|
|
195
|
+
slotProps
|
|
196
|
+
};
|
|
197
|
+
const [RootSlot, rootSlotProps] = useSlot('root', {
|
|
198
|
+
ref,
|
|
199
|
+
className: classes.root,
|
|
200
|
+
elementType: TablePaginationRoot,
|
|
201
|
+
externalForwardedProps: {
|
|
202
|
+
...externalForwardedProps,
|
|
203
|
+
component,
|
|
204
|
+
...other
|
|
205
|
+
},
|
|
206
|
+
ownerState,
|
|
207
|
+
additionalProps: {
|
|
208
|
+
colSpan
|
|
209
|
+
}
|
|
210
|
+
});
|
|
211
|
+
const [ToolbarSlot, toolbarSlotProps] = useSlot('toolbar', {
|
|
212
|
+
className: classes.toolbar,
|
|
213
|
+
elementType: TablePaginationToolbar,
|
|
214
|
+
externalForwardedProps,
|
|
215
|
+
ownerState
|
|
216
|
+
});
|
|
217
|
+
const [SpacerSlot, spacerSlotProps] = useSlot('spacer', {
|
|
218
|
+
className: classes.spacer,
|
|
219
|
+
elementType: TablePaginationSpacer,
|
|
220
|
+
externalForwardedProps,
|
|
221
|
+
ownerState
|
|
222
|
+
});
|
|
223
|
+
const [SelectLabelSlot, selectLabelSlotProps] = useSlot('selectLabel', {
|
|
224
|
+
className: classes.selectLabel,
|
|
225
|
+
elementType: TablePaginationSelectLabel,
|
|
226
|
+
externalForwardedProps,
|
|
227
|
+
ownerState,
|
|
228
|
+
additionalProps: {
|
|
229
|
+
id: labelId
|
|
230
|
+
}
|
|
231
|
+
});
|
|
232
|
+
const [SelectSlot, selectSlotProps] = useSlot('select', {
|
|
233
|
+
className: classes.select,
|
|
234
|
+
elementType: TablePaginationSelect,
|
|
235
|
+
externalForwardedProps,
|
|
236
|
+
ownerState
|
|
237
|
+
});
|
|
238
|
+
const [MenuItemSlot, menuItemSlotProps] = useSlot('menuItem', {
|
|
239
|
+
className: classes.menuItem,
|
|
240
|
+
elementType: MenuItemComponent,
|
|
241
|
+
externalForwardedProps,
|
|
242
|
+
ownerState
|
|
243
|
+
});
|
|
244
|
+
const [DisplayedRows, displayedRowsProps] = useSlot('displayedRows', {
|
|
245
|
+
className: classes.displayedRows,
|
|
246
|
+
elementType: TablePaginationDisplayedRows,
|
|
247
|
+
externalForwardedProps,
|
|
248
|
+
ownerState
|
|
249
|
+
});
|
|
250
|
+
return /*#__PURE__*/_jsx(RootSlot, {
|
|
251
|
+
...rootSlotProps,
|
|
252
|
+
children: /*#__PURE__*/_jsxs(ToolbarSlot, {
|
|
253
|
+
...toolbarSlotProps,
|
|
254
|
+
children: [/*#__PURE__*/_jsx(SpacerSlot, {
|
|
255
|
+
...spacerSlotProps
|
|
256
|
+
}), rowsPerPageOptions.length > 1 && /*#__PURE__*/_jsx(SelectLabelSlot, {
|
|
257
|
+
...selectLabelSlotProps,
|
|
208
258
|
children: labelRowsPerPage
|
|
209
|
-
}), rowsPerPageOptions.length > 1 && /*#__PURE__*/_jsx(
|
|
259
|
+
}), rowsPerPageOptions.length > 1 && /*#__PURE__*/_jsx(SelectSlot, {
|
|
210
260
|
variant: "standard",
|
|
211
261
|
...(!selectProps.variant && {
|
|
212
262
|
input: _InputBase || (_InputBase = /*#__PURE__*/_jsx(InputBase, {}))
|
|
@@ -225,16 +275,14 @@ const TablePagination = /*#__PURE__*/React.forwardRef(function TablePagination(i
|
|
|
225
275
|
icon: clsx(classes.selectIcon, (selectProps.classes || {}).icon)
|
|
226
276
|
},
|
|
227
277
|
disabled: disabled,
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
}),
|
|
232
|
-
className: classes.menuItem,
|
|
278
|
+
...selectSlotProps,
|
|
279
|
+
children: rowsPerPageOptions.map(rowsPerPageOption => /*#__PURE__*/_createElement(MenuItemSlot, {
|
|
280
|
+
...menuItemSlotProps,
|
|
233
281
|
key: rowsPerPageOption.label ? rowsPerPageOption.label : rowsPerPageOption,
|
|
234
282
|
value: rowsPerPageOption.value ? rowsPerPageOption.value : rowsPerPageOption
|
|
235
283
|
}, rowsPerPageOption.label ? rowsPerPageOption.label : rowsPerPageOption))
|
|
236
|
-
}), /*#__PURE__*/_jsx(
|
|
237
|
-
|
|
284
|
+
}), /*#__PURE__*/_jsx(DisplayedRows, {
|
|
285
|
+
...displayedRowsProps,
|
|
238
286
|
children: labelDisplayedRows({
|
|
239
287
|
from: count === 0 ? 0 : page * rowsPerPage + 1,
|
|
240
288
|
to: getLabelDisplayedRowsTo(),
|
|
@@ -281,10 +329,6 @@ process.env.NODE_ENV !== "production" ? TablePagination.propTypes /* remove-prop
|
|
|
281
329
|
* Override or extend the styles applied to the component.
|
|
282
330
|
*/
|
|
283
331
|
classes: PropTypes.object,
|
|
284
|
-
/**
|
|
285
|
-
* @ignore
|
|
286
|
-
*/
|
|
287
|
-
className: PropTypes.string,
|
|
288
332
|
/**
|
|
289
333
|
* @ignore
|
|
290
334
|
*/
|
|
@@ -408,7 +452,7 @@ process.env.NODE_ENV !== "production" ? TablePagination.propTypes /* remove-prop
|
|
|
408
452
|
*/
|
|
409
453
|
showLastButton: PropTypes.bool,
|
|
410
454
|
/**
|
|
411
|
-
* The props used for each slot inside
|
|
455
|
+
* The props used for each slot inside.
|
|
412
456
|
* @default {}
|
|
413
457
|
*/
|
|
414
458
|
slotProps: PropTypes.shape({
|
|
@@ -422,11 +466,16 @@ process.env.NODE_ENV !== "production" ? TablePagination.propTypes /* remove-prop
|
|
|
422
466
|
previousButton: PropTypes.object,
|
|
423
467
|
previousButtonIcon: PropTypes.object
|
|
424
468
|
}),
|
|
425
|
-
|
|
469
|
+
displayedRows: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
470
|
+
menuItem: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
471
|
+
root: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
472
|
+
select: PropTypes.object,
|
|
473
|
+
selectLabel: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
474
|
+
spacer: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
475
|
+
toolbar: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
426
476
|
}),
|
|
427
477
|
/**
|
|
428
|
-
* The components used for each slot inside
|
|
429
|
-
* Either a string to use a HTML element or a component.
|
|
478
|
+
* The components used for each slot inside.
|
|
430
479
|
* @default {}
|
|
431
480
|
*/
|
|
432
481
|
slots: PropTypes.shape({
|
|
@@ -439,7 +488,14 @@ process.env.NODE_ENV !== "production" ? TablePagination.propTypes /* remove-prop
|
|
|
439
488
|
nextButtonIcon: PropTypes.elementType,
|
|
440
489
|
previousButton: PropTypes.elementType,
|
|
441
490
|
previousButtonIcon: PropTypes.elementType
|
|
442
|
-
})
|
|
491
|
+
}),
|
|
492
|
+
displayedRows: PropTypes.elementType,
|
|
493
|
+
menuItem: PropTypes.elementType,
|
|
494
|
+
root: PropTypes.elementType,
|
|
495
|
+
select: PropTypes.elementType,
|
|
496
|
+
selectLabel: PropTypes.elementType,
|
|
497
|
+
spacer: PropTypes.elementType,
|
|
498
|
+
toolbar: PropTypes.elementType
|
|
443
499
|
}),
|
|
444
500
|
/**
|
|
445
501
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
@@ -11,6 +11,7 @@ import memoTheme from "../utils/memoTheme.js";
|
|
|
11
11
|
import { useDefaultProps } from "../DefaultPropsProvider/index.js";
|
|
12
12
|
import capitalize from "../utils/capitalize.js";
|
|
13
13
|
import tableSortLabelClasses, { getTableSortLabelUtilityClass } from "./tableSortLabelClasses.js";
|
|
14
|
+
import useSlot from "../utils/useSlot.js";
|
|
14
15
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
16
|
const useUtilityClasses = ownerState => {
|
|
16
17
|
const {
|
|
@@ -110,6 +111,8 @@ const TableSortLabel = /*#__PURE__*/React.forwardRef(function TableSortLabel(inP
|
|
|
110
111
|
direction = 'asc',
|
|
111
112
|
hideSortIcon = false,
|
|
112
113
|
IconComponent = ArrowDownwardIcon,
|
|
114
|
+
slots = {},
|
|
115
|
+
slotProps = {},
|
|
113
116
|
...other
|
|
114
117
|
} = props;
|
|
115
118
|
const ownerState = {
|
|
@@ -120,17 +123,31 @@ const TableSortLabel = /*#__PURE__*/React.forwardRef(function TableSortLabel(inP
|
|
|
120
123
|
IconComponent
|
|
121
124
|
};
|
|
122
125
|
const classes = useUtilityClasses(ownerState);
|
|
123
|
-
|
|
126
|
+
const externalForwardedProps = {
|
|
127
|
+
slots,
|
|
128
|
+
slotProps
|
|
129
|
+
};
|
|
130
|
+
const [RootSlot, rootProps] = useSlot('root', {
|
|
131
|
+
elementType: TableSortLabelRoot,
|
|
132
|
+
externalForwardedProps,
|
|
133
|
+
ownerState,
|
|
124
134
|
className: clsx(classes.root, className),
|
|
125
|
-
|
|
135
|
+
ref
|
|
136
|
+
});
|
|
137
|
+
const [IconSlot, iconProps] = useSlot('icon', {
|
|
138
|
+
elementType: TableSortLabelIcon,
|
|
139
|
+
externalForwardedProps,
|
|
140
|
+
ownerState,
|
|
141
|
+
className: classes.icon
|
|
142
|
+
});
|
|
143
|
+
return /*#__PURE__*/_jsxs(RootSlot, {
|
|
126
144
|
disableRipple: true,
|
|
127
|
-
|
|
128
|
-
|
|
145
|
+
component: "span",
|
|
146
|
+
...rootProps,
|
|
129
147
|
...other,
|
|
130
|
-
children: [children, hideSortIcon && !active ? null : /*#__PURE__*/_jsx(
|
|
148
|
+
children: [children, hideSortIcon && !active ? null : /*#__PURE__*/_jsx(IconSlot, {
|
|
131
149
|
as: IconComponent,
|
|
132
|
-
|
|
133
|
-
ownerState: ownerState
|
|
150
|
+
...iconProps
|
|
134
151
|
})]
|
|
135
152
|
});
|
|
136
153
|
});
|
|
@@ -171,6 +188,22 @@ process.env.NODE_ENV !== "production" ? TableSortLabel.propTypes /* remove-propt
|
|
|
171
188
|
* @default ArrowDownwardIcon
|
|
172
189
|
*/
|
|
173
190
|
IconComponent: PropTypes.elementType,
|
|
191
|
+
/**
|
|
192
|
+
* The props used for each slot inside.
|
|
193
|
+
* @default {}
|
|
194
|
+
*/
|
|
195
|
+
slotProps: PropTypes.shape({
|
|
196
|
+
icon: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
197
|
+
root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
198
|
+
}),
|
|
199
|
+
/**
|
|
200
|
+
* The components used for each slot inside.
|
|
201
|
+
* @default {}
|
|
202
|
+
*/
|
|
203
|
+
slots: PropTypes.shape({
|
|
204
|
+
icon: PropTypes.elementType,
|
|
205
|
+
root: PropTypes.elementType
|
|
206
|
+
}),
|
|
174
207
|
/**
|
|
175
208
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
176
209
|
*/
|
|
@@ -400,6 +400,7 @@ process.env.NODE_ENV !== "production" ? TextField.propTypes /* remove-proptypes
|
|
|
400
400
|
SelectProps: PropTypes.object,
|
|
401
401
|
/**
|
|
402
402
|
* The size of the component.
|
|
403
|
+
* @default 'medium'
|
|
403
404
|
*/
|
|
404
405
|
size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['medium', 'small']), PropTypes.string]),
|
|
405
406
|
/**
|
|
@@ -379,7 +379,7 @@ const Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(inProps, ref) {
|
|
|
379
379
|
// eslint-disable-next-line react-hooks/rules-of-hooks -- process.env never changes
|
|
380
380
|
React.useEffect(() => {
|
|
381
381
|
if (childNode && childNode.disabled && !isControlled && title !== '' && childNode.tagName.toLowerCase() === 'button') {
|
|
382
|
-
console.
|
|
382
|
+
console.warn(['MUI: You are providing a disabled `button` child to the Tooltip component.', 'A disabled element does not fire events.', "Tooltip needs to listen to the child element's events to display the title.", '', 'Add a simple wrapper element, such as a `span`.'].join('\n'));
|
|
383
383
|
}
|
|
384
384
|
}, [title, childNode, isControlled]);
|
|
385
385
|
}
|
|
@@ -114,7 +114,10 @@ const Zoom = /*#__PURE__*/React.forwardRef(function Zoom(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
|
transform: 'scale(0)',
|
|
@@ -124,7 +127,7 @@ const Zoom = /*#__PURE__*/React.forwardRef(function Zoom(props, ref) {
|
|
|
124
127
|
...children.props.style
|
|
125
128
|
},
|
|
126
129
|
ref: handleRef,
|
|
127
|
-
...
|
|
130
|
+
...restChildProps
|
|
128
131
|
});
|
|
129
132
|
}
|
|
130
133
|
});
|
|
@@ -95,7 +95,7 @@ export default function usePagination(props = {}) {
|
|
|
95
95
|
page: item,
|
|
96
96
|
selected: item === page,
|
|
97
97
|
disabled,
|
|
98
|
-
'aria-current': item === page ? '
|
|
98
|
+
'aria-current': item === page ? 'page' : undefined
|
|
99
99
|
} : {
|
|
100
100
|
onClick: event => {
|
|
101
101
|
handleClick(event, buttonPage(item));
|
|
@@ -18,6 +18,7 @@ export { default as unsupportedProp } from "./unsupportedProp.js";
|
|
|
18
18
|
export { default as useControlled } from "./useControlled.js";
|
|
19
19
|
export { default as useEventCallback } from "./useEventCallback.js";
|
|
20
20
|
export { default as useForkRef } from "./useForkRef.js";
|
|
21
|
+
export { default as mergeSlotProps } from "./mergeSlotProps.js";
|
|
21
22
|
// TODO: remove this export once ClassNameGenerator is stable
|
|
22
23
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
23
24
|
export const unstable_ClassNameGenerator = {
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import clsx from 'clsx';
|
|
2
|
+
export default function mergeSlotProps(externalSlotProps, defaultSlotProps) {
|
|
3
|
+
if (!externalSlotProps) {
|
|
4
|
+
return defaultSlotProps;
|
|
5
|
+
}
|
|
6
|
+
if (typeof externalSlotProps === 'function' || typeof defaultSlotProps === 'function') {
|
|
7
|
+
return ownerState => {
|
|
8
|
+
const defaultSlotPropsValue = typeof defaultSlotProps === 'function' ? defaultSlotProps(ownerState) : defaultSlotProps;
|
|
9
|
+
const externalSlotPropsValue = typeof externalSlotProps === 'function' ? externalSlotProps({
|
|
10
|
+
...ownerState,
|
|
11
|
+
...defaultSlotPropsValue
|
|
12
|
+
}) : externalSlotProps;
|
|
13
|
+
const className = clsx(ownerState?.className, defaultSlotPropsValue?.className, externalSlotPropsValue?.className);
|
|
14
|
+
return {
|
|
15
|
+
...defaultSlotPropsValue,
|
|
16
|
+
...externalSlotPropsValue,
|
|
17
|
+
...(!!className && {
|
|
18
|
+
className
|
|
19
|
+
}),
|
|
20
|
+
...(defaultSlotPropsValue?.style && externalSlotPropsValue?.style && {
|
|
21
|
+
style: {
|
|
22
|
+
...defaultSlotPropsValue.style,
|
|
23
|
+
...externalSlotPropsValue.style
|
|
24
|
+
}
|
|
25
|
+
})
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
const className = clsx(defaultSlotProps?.className, externalSlotProps?.className);
|
|
30
|
+
return {
|
|
31
|
+
...defaultSlotProps,
|
|
32
|
+
...externalSlotProps,
|
|
33
|
+
...(!!className && {
|
|
34
|
+
className
|
|
35
|
+
}),
|
|
36
|
+
...(defaultSlotProps?.style && externalSlotProps?.style && {
|
|
37
|
+
style: {
|
|
38
|
+
...defaultSlotProps.style,
|
|
39
|
+
...externalSlotProps.style
|
|
40
|
+
}
|
|
41
|
+
})
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -32,6 +32,7 @@ name, parameters) {
|
|
|
32
32
|
ownerState,
|
|
33
33
|
externalForwardedProps,
|
|
34
34
|
internalForwardedProps,
|
|
35
|
+
shouldForwardComponentProp = false,
|
|
35
36
|
...useSlotPropsParams
|
|
36
37
|
} = parameters;
|
|
37
38
|
const {
|
|
@@ -67,9 +68,12 @@ name, parameters) {
|
|
|
67
68
|
...(name === 'root' && !rootComponent && !slots[name] && internalForwardedProps),
|
|
68
69
|
...(name !== 'root' && !slots[name] && internalForwardedProps),
|
|
69
70
|
...mergedProps,
|
|
70
|
-
...(LeafComponent && {
|
|
71
|
+
...(LeafComponent && !shouldForwardComponentProp && {
|
|
71
72
|
as: LeafComponent
|
|
72
73
|
}),
|
|
74
|
+
...(LeafComponent && shouldForwardComponentProp && {
|
|
75
|
+
component: LeafComponent
|
|
76
|
+
}),
|
|
73
77
|
ref
|
|
74
78
|
}, ownerState);
|
|
75
79
|
return [elementType, props];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export const version = "6.1
|
|
1
|
+
export const version = "6.4.1";
|
|
2
2
|
export const major = Number("6");
|
|
3
|
-
export const minor = Number("
|
|
4
|
-
export const patch = Number("
|
|
3
|
+
export const minor = Number("4");
|
|
4
|
+
export const patch = Number("1");
|
|
5
5
|
export const prerelease = undefined;
|
|
6
6
|
export default version;
|
|
@@ -45,6 +45,7 @@ const AccordionSummaryRoot = (0, _zeroStyled.styled)(_ButtonBase.default, {
|
|
|
45
45
|
};
|
|
46
46
|
return {
|
|
47
47
|
display: 'flex',
|
|
48
|
+
width: '100%',
|
|
48
49
|
minHeight: 48,
|
|
49
50
|
padding: theme.spacing(0, 2),
|
|
50
51
|
transition: theme.transitions.create(['min-height', 'background-color'], transition),
|
|
@@ -67,7 +68,7 @@ const AccordionSummaryRoot = (0, _zeroStyled.styled)(_ButtonBase.default, {
|
|
|
67
68
|
}]
|
|
68
69
|
};
|
|
69
70
|
}));
|
|
70
|
-
const AccordionSummaryContent = (0, _zeroStyled.styled)('
|
|
71
|
+
const AccordionSummaryContent = (0, _zeroStyled.styled)('span', {
|
|
71
72
|
name: 'MuiAccordionSummary',
|
|
72
73
|
slot: 'Content',
|
|
73
74
|
overridesResolver: (props, styles) => styles.content
|
|
@@ -75,6 +76,7 @@ const AccordionSummaryContent = (0, _zeroStyled.styled)('div', {
|
|
|
75
76
|
theme
|
|
76
77
|
}) => ({
|
|
77
78
|
display: 'flex',
|
|
79
|
+
textAlign: 'start',
|
|
78
80
|
flexGrow: 1,
|
|
79
81
|
margin: '12px 0',
|
|
80
82
|
variants: [{
|
|
@@ -89,7 +91,7 @@ const AccordionSummaryContent = (0, _zeroStyled.styled)('div', {
|
|
|
89
91
|
}
|
|
90
92
|
}]
|
|
91
93
|
})));
|
|
92
|
-
const AccordionSummaryExpandIconWrapper = (0, _zeroStyled.styled)('
|
|
94
|
+
const AccordionSummaryExpandIconWrapper = (0, _zeroStyled.styled)('span', {
|
|
93
95
|
name: 'MuiAccordionSummary',
|
|
94
96
|
slot: 'ExpandIconWrapper',
|
|
95
97
|
overridesResolver: (props, styles) => styles.expandIconWrapper
|
|
@@ -144,7 +146,6 @@ const AccordionSummary = /*#__PURE__*/React.forwardRef(function AccordionSummary
|
|
|
144
146
|
focusRipple: false,
|
|
145
147
|
disableRipple: true,
|
|
146
148
|
disabled: disabled,
|
|
147
|
-
component: "div",
|
|
148
149
|
"aria-expanded": expanded,
|
|
149
150
|
className: (0, _clsx.default)(classes.root, className),
|
|
150
151
|
focusVisibleClassName: (0, _clsx.default)(classes.focusVisible, focusVisibleClassName),
|
|
@@ -194,6 +194,39 @@ const Alert = /*#__PURE__*/React.forwardRef(function Alert(inProps, ref) {
|
|
|
194
194
|
...slotProps
|
|
195
195
|
}
|
|
196
196
|
};
|
|
197
|
+
const [RootSlot, rootSlotProps] = (0, _useSlot.default)('root', {
|
|
198
|
+
ref,
|
|
199
|
+
shouldForwardComponentProp: true,
|
|
200
|
+
className: (0, _clsx.default)(classes.root, className),
|
|
201
|
+
elementType: AlertRoot,
|
|
202
|
+
externalForwardedProps: {
|
|
203
|
+
...externalForwardedProps,
|
|
204
|
+
...other
|
|
205
|
+
},
|
|
206
|
+
ownerState,
|
|
207
|
+
additionalProps: {
|
|
208
|
+
role,
|
|
209
|
+
elevation: 0
|
|
210
|
+
}
|
|
211
|
+
});
|
|
212
|
+
const [IconSlot, iconSlotProps] = (0, _useSlot.default)('icon', {
|
|
213
|
+
className: classes.icon,
|
|
214
|
+
elementType: AlertIcon,
|
|
215
|
+
externalForwardedProps,
|
|
216
|
+
ownerState
|
|
217
|
+
});
|
|
218
|
+
const [MessageSlot, messageSlotProps] = (0, _useSlot.default)('message', {
|
|
219
|
+
className: classes.message,
|
|
220
|
+
elementType: AlertMessage,
|
|
221
|
+
externalForwardedProps,
|
|
222
|
+
ownerState
|
|
223
|
+
});
|
|
224
|
+
const [ActionSlot, actionSlotProps] = (0, _useSlot.default)('action', {
|
|
225
|
+
className: classes.action,
|
|
226
|
+
elementType: AlertAction,
|
|
227
|
+
externalForwardedProps,
|
|
228
|
+
ownerState
|
|
229
|
+
});
|
|
197
230
|
const [CloseButtonSlot, closeButtonProps] = (0, _useSlot.default)('closeButton', {
|
|
198
231
|
elementType: _IconButton.default,
|
|
199
232
|
externalForwardedProps,
|
|
@@ -204,28 +237,19 @@ const Alert = /*#__PURE__*/React.forwardRef(function Alert(inProps, ref) {
|
|
|
204
237
|
externalForwardedProps,
|
|
205
238
|
ownerState
|
|
206
239
|
});
|
|
207
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
className: (0, _clsx.default)(classes.root, className),
|
|
212
|
-
ref: ref,
|
|
213
|
-
...other,
|
|
214
|
-
children: [icon !== false ? /*#__PURE__*/(0, _jsxRuntime.jsx)(AlertIcon, {
|
|
215
|
-
ownerState: ownerState,
|
|
216
|
-
className: classes.icon,
|
|
240
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(RootSlot, {
|
|
241
|
+
...rootSlotProps,
|
|
242
|
+
children: [icon !== false ? /*#__PURE__*/(0, _jsxRuntime.jsx)(IconSlot, {
|
|
243
|
+
...iconSlotProps,
|
|
217
244
|
children: icon || iconMapping[severity] || defaultIconMapping[severity]
|
|
218
|
-
}) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
219
|
-
|
|
220
|
-
className: classes.message,
|
|
245
|
+
}) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(MessageSlot, {
|
|
246
|
+
...messageSlotProps,
|
|
221
247
|
children: children
|
|
222
|
-
}), action != null ? /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
223
|
-
|
|
224
|
-
className: classes.action,
|
|
248
|
+
}), action != null ? /*#__PURE__*/(0, _jsxRuntime.jsx)(ActionSlot, {
|
|
249
|
+
...actionSlotProps,
|
|
225
250
|
children: action
|
|
226
|
-
}) : null, action == null && onClose ? /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
227
|
-
|
|
228
|
-
className: classes.action,
|
|
251
|
+
}) : null, action == null && onClose ? /*#__PURE__*/(0, _jsxRuntime.jsx)(ActionSlot, {
|
|
252
|
+
...actionSlotProps,
|
|
229
253
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(CloseButtonSlot, {
|
|
230
254
|
size: "small",
|
|
231
255
|
"aria-label": closeText,
|
|
@@ -337,16 +361,24 @@ process.env.NODE_ENV !== "production" ? Alert.propTypes /* remove-proptypes */ =
|
|
|
337
361
|
* @default {}
|
|
338
362
|
*/
|
|
339
363
|
slotProps: _propTypes.default.shape({
|
|
364
|
+
action: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object]),
|
|
340
365
|
closeButton: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object]),
|
|
341
|
-
closeIcon: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object])
|
|
366
|
+
closeIcon: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object]),
|
|
367
|
+
icon: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object]),
|
|
368
|
+
message: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object]),
|
|
369
|
+
root: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object])
|
|
342
370
|
}),
|
|
343
371
|
/**
|
|
344
372
|
* The components used for each slot inside.
|
|
345
373
|
* @default {}
|
|
346
374
|
*/
|
|
347
375
|
slots: _propTypes.default.shape({
|
|
376
|
+
action: _propTypes.default.elementType,
|
|
348
377
|
closeButton: _propTypes.default.elementType,
|
|
349
|
-
closeIcon: _propTypes.default.elementType
|
|
378
|
+
closeIcon: _propTypes.default.elementType,
|
|
379
|
+
icon: _propTypes.default.elementType,
|
|
380
|
+
message: _propTypes.default.elementType,
|
|
381
|
+
root: _propTypes.default.elementType
|
|
350
382
|
}),
|
|
351
383
|
/**
|
|
352
384
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
@@ -221,7 +221,7 @@ process.env.NODE_ENV !== "production" ? AppBar.propTypes /* remove-proptypes */
|
|
|
221
221
|
enableColorOnDark: _propTypes.default.bool,
|
|
222
222
|
/**
|
|
223
223
|
* The positioning type. The behavior of the different options is described
|
|
224
|
-
* [in the MDN web docs](https://developer.mozilla.org/en-US/docs/
|
|
224
|
+
* [in the MDN web docs](https://developer.mozilla.org/en-US/docs/Web/CSS/position).
|
|
225
225
|
* Note: `sticky` is not universally supported and will fall back to `static` when unavailable.
|
|
226
226
|
* @default 'fixed'
|
|
227
227
|
*/
|