@sitecore/sc-contenthub-blok 0.0.36 → 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/dist/BlokTheme.js +24 -0
- package/dist/BlokTheme.js.map +1 -1
- package/dist/Components/BlokButton/BlokButton.d.ts +9 -1
- package/dist/Components/BlokButton/BlokButton.js +11 -1
- package/dist/Components/BlokButton/BlokButton.js.map +1 -1
- package/dist/Components/BlokButton/BlokButton.stories.js +1 -0
- package/dist/Components/BlokButton/BlokButton.stories.js.map +1 -1
- package/dist/Components/BlokIconButton/BlokIconButton.stories.js +1 -0
- package/dist/Components/BlokIconButton/BlokIconButton.stories.js.map +1 -1
- package/esm/BlokTheme.js +24 -0
- package/esm/BlokTheme.js.map +1 -1
- package/esm/Components/BlokButton/BlokButton.js +11 -1
- package/esm/Components/BlokButton/BlokButton.js.map +1 -1
- 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
|
@@ -264,12 +264,12 @@ const AutocompleteClearIndicator = (0, _zeroStyled.styled)(_IconButton.default,
|
|
|
264
264
|
const AutocompletePopupIndicator = (0, _zeroStyled.styled)(_IconButton.default, {
|
|
265
265
|
name: 'MuiAutocomplete',
|
|
266
266
|
slot: 'PopupIndicator',
|
|
267
|
-
overridesResolver: ({
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
}
|
|
267
|
+
overridesResolver: (props, styles) => {
|
|
268
|
+
const {
|
|
269
|
+
ownerState
|
|
270
|
+
} = props;
|
|
271
|
+
return [styles.popupIndicator, ownerState.popupOpen && styles.popupIndicatorOpen];
|
|
272
|
+
}
|
|
273
273
|
})({
|
|
274
274
|
padding: 2,
|
|
275
275
|
marginRight: -2,
|
|
@@ -662,53 +662,6 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
|
|
|
662
662
|
};
|
|
663
663
|
const clearIndicatorSlotProps = externalForwardedProps.slotProps.clearIndicator;
|
|
664
664
|
const popupIndicatorSlotProps = externalForwardedProps.slotProps.popupIndicator;
|
|
665
|
-
const renderAutocompletePopperChildren = children => /*#__PURE__*/(0, _jsxRuntime.jsx)(AutocompletePopper, {
|
|
666
|
-
as: PopperSlot,
|
|
667
|
-
...popperProps,
|
|
668
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(AutocompletePaper, {
|
|
669
|
-
as: PaperSlot,
|
|
670
|
-
...paperProps,
|
|
671
|
-
children: children
|
|
672
|
-
})
|
|
673
|
-
});
|
|
674
|
-
let autocompletePopper = null;
|
|
675
|
-
if (groupedOptions.length > 0) {
|
|
676
|
-
autocompletePopper = renderAutocompletePopperChildren(
|
|
677
|
-
/*#__PURE__*/
|
|
678
|
-
// TODO v7: remove `as` prop and move ListboxComponentProp to externalForwardedProps or remove ListboxComponentProp entirely
|
|
679
|
-
// https://github.com/mui/material-ui/pull/43994#issuecomment-2401945800
|
|
680
|
-
(0, _jsxRuntime.jsx)(ListboxSlot, {
|
|
681
|
-
as: ListboxComponentProp,
|
|
682
|
-
...listboxProps,
|
|
683
|
-
children: groupedOptions.map((option, index) => {
|
|
684
|
-
if (groupBy) {
|
|
685
|
-
return renderGroup({
|
|
686
|
-
key: option.key,
|
|
687
|
-
group: option.group,
|
|
688
|
-
children: option.options.map((option2, index2) => renderListOption(option2, option.index + index2))
|
|
689
|
-
});
|
|
690
|
-
}
|
|
691
|
-
return renderListOption(option, index);
|
|
692
|
-
})
|
|
693
|
-
}));
|
|
694
|
-
} else if (loading && groupedOptions.length === 0) {
|
|
695
|
-
autocompletePopper = renderAutocompletePopperChildren(/*#__PURE__*/(0, _jsxRuntime.jsx)(AutocompleteLoading, {
|
|
696
|
-
className: classes.loading,
|
|
697
|
-
ownerState: ownerState,
|
|
698
|
-
children: loadingText
|
|
699
|
-
}));
|
|
700
|
-
} else if (groupedOptions.length === 0 && !freeSolo && !loading) {
|
|
701
|
-
autocompletePopper = renderAutocompletePopperChildren(/*#__PURE__*/(0, _jsxRuntime.jsx)(AutocompleteNoOptions, {
|
|
702
|
-
className: classes.noOptions,
|
|
703
|
-
ownerState: ownerState,
|
|
704
|
-
role: "presentation",
|
|
705
|
-
onMouseDown: event => {
|
|
706
|
-
// Prevent input blur when interacting with the "no options" content
|
|
707
|
-
event.preventDefault();
|
|
708
|
-
},
|
|
709
|
-
children: noOptionsText
|
|
710
|
-
}));
|
|
711
|
-
}
|
|
712
665
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
|
|
713
666
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(AutocompleteRoot, {
|
|
714
667
|
ref: ref,
|
|
@@ -762,7 +715,41 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
|
|
|
762
715
|
...getInputProps()
|
|
763
716
|
}
|
|
764
717
|
})
|
|
765
|
-
}), anchorEl ?
|
|
718
|
+
}), anchorEl ? /*#__PURE__*/(0, _jsxRuntime.jsx)(AutocompletePopper, {
|
|
719
|
+
as: PopperSlot,
|
|
720
|
+
...popperProps,
|
|
721
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(AutocompletePaper, {
|
|
722
|
+
as: PaperSlot,
|
|
723
|
+
...paperProps,
|
|
724
|
+
children: [loading && groupedOptions.length === 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(AutocompleteLoading, {
|
|
725
|
+
className: classes.loading,
|
|
726
|
+
ownerState: ownerState,
|
|
727
|
+
children: loadingText
|
|
728
|
+
}) : null, groupedOptions.length === 0 && !freeSolo && !loading ? /*#__PURE__*/(0, _jsxRuntime.jsx)(AutocompleteNoOptions, {
|
|
729
|
+
className: classes.noOptions,
|
|
730
|
+
ownerState: ownerState,
|
|
731
|
+
role: "presentation",
|
|
732
|
+
onMouseDown: event => {
|
|
733
|
+
// Prevent input blur when interacting with the "no options" content
|
|
734
|
+
event.preventDefault();
|
|
735
|
+
},
|
|
736
|
+
children: noOptionsText
|
|
737
|
+
}) : null, groupedOptions.length > 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(ListboxSlot, {
|
|
738
|
+
as: ListboxComponentProp,
|
|
739
|
+
...listboxProps,
|
|
740
|
+
children: groupedOptions.map((option, index) => {
|
|
741
|
+
if (groupBy) {
|
|
742
|
+
return renderGroup({
|
|
743
|
+
key: option.key,
|
|
744
|
+
group: option.group,
|
|
745
|
+
children: option.options.map((option2, index2) => renderListOption(option2, option.index + index2))
|
|
746
|
+
});
|
|
747
|
+
}
|
|
748
|
+
return renderListOption(option, index);
|
|
749
|
+
})
|
|
750
|
+
}) : null]
|
|
751
|
+
})
|
|
752
|
+
}) : null]
|
|
766
753
|
});
|
|
767
754
|
});
|
|
768
755
|
process.env.NODE_ENV !== "production" ? Autocomplete.propTypes /* remove-proptypes */ = {
|
|
@@ -964,7 +951,7 @@ process.env.NODE_ENV !== "production" ? Autocomplete.propTypes /* remove-proptyp
|
|
|
964
951
|
* If provided, the options will be grouped under the returned string.
|
|
965
952
|
* The groupBy value is also used as the text for group headings when `renderGroup` is not provided.
|
|
966
953
|
*
|
|
967
|
-
* @param {Value}
|
|
954
|
+
* @param {Value} option The Autocomplete option.
|
|
968
955
|
* @returns {string}
|
|
969
956
|
*/
|
|
970
957
|
groupBy: _propTypes.default.func,
|
|
@@ -37,10 +37,11 @@ const useUtilityClasses = ownerState => {
|
|
|
37
37
|
const AvatarGroupRoot = (0, _zeroStyled.styled)('div', {
|
|
38
38
|
name: 'MuiAvatarGroup',
|
|
39
39
|
slot: 'Root',
|
|
40
|
-
overridesResolver: (props, styles) =>
|
|
41
|
-
[
|
|
42
|
-
|
|
43
|
-
|
|
40
|
+
overridesResolver: (props, styles) => {
|
|
41
|
+
return [{
|
|
42
|
+
[`& .${_avatarGroupClasses.default.avatar}`]: styles.avatar
|
|
43
|
+
}, styles.root];
|
|
44
|
+
}
|
|
44
45
|
})((0, _memoTheme.default)(({
|
|
45
46
|
theme
|
|
46
47
|
}) => ({
|
|
@@ -17,13 +17,6 @@ var _useSlot = _interopRequireDefault(require("../utils/useSlot"));
|
|
|
17
17
|
var _Fade = _interopRequireDefault(require("../Fade"));
|
|
18
18
|
var _backdropClasses = require("./backdropClasses");
|
|
19
19
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
20
|
-
const removeOwnerState = props => {
|
|
21
|
-
const {
|
|
22
|
-
ownerState,
|
|
23
|
-
...rest
|
|
24
|
-
} = props;
|
|
25
|
-
return rest;
|
|
26
|
-
};
|
|
27
20
|
const useUtilityClasses = ownerState => {
|
|
28
21
|
const {
|
|
29
22
|
classes,
|
|
@@ -112,12 +105,11 @@ const Backdrop = /*#__PURE__*/React.forwardRef(function Backdrop(inProps, ref) {
|
|
|
112
105
|
externalForwardedProps,
|
|
113
106
|
ownerState
|
|
114
107
|
});
|
|
115
|
-
const transitionPropsRemoved = removeOwnerState(transitionProps);
|
|
116
108
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(TransitionSlot, {
|
|
117
109
|
in: open,
|
|
118
110
|
timeout: transitionDuration,
|
|
119
111
|
...other,
|
|
120
|
-
...
|
|
112
|
+
...transitionProps,
|
|
121
113
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(RootSlot, {
|
|
122
114
|
"aria-hidden": true,
|
|
123
115
|
...rootProps,
|
|
@@ -13,11 +13,13 @@ var _clsx = _interopRequireDefault(require("clsx"));
|
|
|
13
13
|
var _resolveProps = _interopRequireDefault(require("@mui/utils/resolveProps"));
|
|
14
14
|
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
15
15
|
var _colorManipulator = require("@mui/system/colorManipulator");
|
|
16
|
+
var _utils = require("@mui/material/utils");
|
|
16
17
|
var _rootShouldForwardProp = _interopRequireDefault(require("../styles/rootShouldForwardProp"));
|
|
17
18
|
var _zeroStyled = require("../zero-styled");
|
|
18
19
|
var _memoTheme = _interopRequireDefault(require("../utils/memoTheme"));
|
|
19
20
|
var _DefaultPropsProvider = require("../DefaultPropsProvider");
|
|
20
21
|
var _ButtonBase = _interopRequireDefault(require("../ButtonBase"));
|
|
22
|
+
var _CircularProgress = _interopRequireDefault(require("../CircularProgress"));
|
|
21
23
|
var _capitalize = _interopRequireDefault(require("../utils/capitalize"));
|
|
22
24
|
var _createSimplePaletteValueFilter = _interopRequireDefault(require("../utils/createSimplePaletteValueFilter"));
|
|
23
25
|
var _buttonClasses = _interopRequireWildcard(require("./buttonClasses"));
|
|
@@ -31,13 +33,16 @@ const useUtilityClasses = ownerState => {
|
|
|
31
33
|
fullWidth,
|
|
32
34
|
size,
|
|
33
35
|
variant,
|
|
36
|
+
loading,
|
|
37
|
+
loadingPosition,
|
|
34
38
|
classes
|
|
35
39
|
} = ownerState;
|
|
36
40
|
const slots = {
|
|
37
|
-
root: ['root', variant, `${variant}${(0, _capitalize.default)(color)}`, `size${(0, _capitalize.default)(size)}`, `${variant}Size${(0, _capitalize.default)(size)}`, `color${(0, _capitalize.default)(color)}`, disableElevation && 'disableElevation', fullWidth && 'fullWidth'],
|
|
38
|
-
label: ['label'],
|
|
41
|
+
root: ['root', loading && 'loading', variant, `${variant}${(0, _capitalize.default)(color)}`, `size${(0, _capitalize.default)(size)}`, `${variant}Size${(0, _capitalize.default)(size)}`, `color${(0, _capitalize.default)(color)}`, disableElevation && 'disableElevation', fullWidth && 'fullWidth', loading && `loadingPosition${(0, _capitalize.default)(loadingPosition)}`],
|
|
39
42
|
startIcon: ['icon', 'startIcon', `iconSize${(0, _capitalize.default)(size)}`],
|
|
40
|
-
endIcon: ['icon', 'endIcon', `iconSize${(0, _capitalize.default)(size)}`]
|
|
43
|
+
endIcon: ['icon', 'endIcon', `iconSize${(0, _capitalize.default)(size)}`],
|
|
44
|
+
loadingIndicator: ['loadingIndicator'],
|
|
45
|
+
loadingWrapper: ['loadingWrapper']
|
|
41
46
|
};
|
|
42
47
|
const composedClasses = (0, _composeClasses.default)(slots, _buttonClasses.getButtonUtilityClass, classes);
|
|
43
48
|
return {
|
|
@@ -82,7 +87,7 @@ const ButtonRoot = (0, _zeroStyled.styled)(_ButtonBase.default, {
|
|
|
82
87
|
const {
|
|
83
88
|
ownerState
|
|
84
89
|
} = props;
|
|
85
|
-
return [styles.root, styles[ownerState.variant], styles[`${ownerState.variant}${(0, _capitalize.default)(ownerState.color)}`], styles[`size${(0, _capitalize.default)(ownerState.size)}`], styles[`${ownerState.variant}Size${(0, _capitalize.default)(ownerState.size)}`], ownerState.color === 'inherit' && styles.colorInherit, ownerState.disableElevation && styles.disableElevation, ownerState.fullWidth && styles.fullWidth];
|
|
90
|
+
return [styles.root, styles[ownerState.variant], styles[`${ownerState.variant}${(0, _capitalize.default)(ownerState.color)}`], styles[`size${(0, _capitalize.default)(ownerState.size)}`], styles[`${ownerState.variant}Size${(0, _capitalize.default)(ownerState.size)}`], ownerState.color === 'inherit' && styles.colorInherit, ownerState.disableElevation && styles.disableElevation, ownerState.fullWidth && styles.fullWidth, ownerState.loading && styles.loading];
|
|
86
91
|
}
|
|
87
92
|
})((0, _memoTheme.default)(({
|
|
88
93
|
theme
|
|
@@ -269,6 +274,18 @@ const ButtonRoot = (0, _zeroStyled.styled)(_ButtonBase.default, {
|
|
|
269
274
|
style: {
|
|
270
275
|
width: '100%'
|
|
271
276
|
}
|
|
277
|
+
}, {
|
|
278
|
+
props: {
|
|
279
|
+
loadingPosition: 'center'
|
|
280
|
+
},
|
|
281
|
+
style: {
|
|
282
|
+
transition: theme.transitions.create(['background-color', 'box-shadow', 'border-color'], {
|
|
283
|
+
duration: theme.transitions.duration.short
|
|
284
|
+
}),
|
|
285
|
+
[`&.${_buttonClasses.default.loading}`]: {
|
|
286
|
+
color: 'transparent'
|
|
287
|
+
}
|
|
288
|
+
}
|
|
272
289
|
}]
|
|
273
290
|
};
|
|
274
291
|
}));
|
|
@@ -279,9 +296,11 @@ const ButtonStartIcon = (0, _zeroStyled.styled)('span', {
|
|
|
279
296
|
const {
|
|
280
297
|
ownerState
|
|
281
298
|
} = props;
|
|
282
|
-
return [styles.startIcon, styles[`iconSize${(0, _capitalize.default)(ownerState.size)}`]];
|
|
299
|
+
return [styles.startIcon, ownerState.loading && styles.startIconLoadingStart, styles[`iconSize${(0, _capitalize.default)(ownerState.size)}`]];
|
|
283
300
|
}
|
|
284
|
-
})({
|
|
301
|
+
})(({
|
|
302
|
+
theme
|
|
303
|
+
}) => ({
|
|
285
304
|
display: 'inherit',
|
|
286
305
|
marginRight: 8,
|
|
287
306
|
marginLeft: -4,
|
|
@@ -292,8 +311,28 @@ const ButtonStartIcon = (0, _zeroStyled.styled)('span', {
|
|
|
292
311
|
style: {
|
|
293
312
|
marginLeft: -2
|
|
294
313
|
}
|
|
314
|
+
}, {
|
|
315
|
+
props: {
|
|
316
|
+
loadingPosition: 'start',
|
|
317
|
+
loading: true
|
|
318
|
+
},
|
|
319
|
+
style: {
|
|
320
|
+
transition: theme.transitions.create(['opacity'], {
|
|
321
|
+
duration: theme.transitions.duration.short
|
|
322
|
+
}),
|
|
323
|
+
opacity: 0
|
|
324
|
+
}
|
|
325
|
+
}, {
|
|
326
|
+
props: {
|
|
327
|
+
loadingPosition: 'start',
|
|
328
|
+
loading: true,
|
|
329
|
+
fullWidth: true
|
|
330
|
+
},
|
|
331
|
+
style: {
|
|
332
|
+
marginRight: -8
|
|
333
|
+
}
|
|
295
334
|
}, ...commonIconStyles]
|
|
296
|
-
});
|
|
335
|
+
}));
|
|
297
336
|
const ButtonEndIcon = (0, _zeroStyled.styled)('span', {
|
|
298
337
|
name: 'MuiButton',
|
|
299
338
|
slot: 'EndIcon',
|
|
@@ -301,9 +340,11 @@ const ButtonEndIcon = (0, _zeroStyled.styled)('span', {
|
|
|
301
340
|
const {
|
|
302
341
|
ownerState
|
|
303
342
|
} = props;
|
|
304
|
-
return [styles.endIcon, styles[`iconSize${(0, _capitalize.default)(ownerState.size)}`]];
|
|
343
|
+
return [styles.endIcon, ownerState.loading && styles.endIconLoadingEnd, styles[`iconSize${(0, _capitalize.default)(ownerState.size)}`]];
|
|
305
344
|
}
|
|
306
|
-
})({
|
|
345
|
+
})(({
|
|
346
|
+
theme
|
|
347
|
+
}) => ({
|
|
307
348
|
display: 'inherit',
|
|
308
349
|
marginRight: -4,
|
|
309
350
|
marginLeft: 8,
|
|
@@ -314,7 +355,128 @@ const ButtonEndIcon = (0, _zeroStyled.styled)('span', {
|
|
|
314
355
|
style: {
|
|
315
356
|
marginRight: -2
|
|
316
357
|
}
|
|
358
|
+
}, {
|
|
359
|
+
props: {
|
|
360
|
+
loadingPosition: 'end',
|
|
361
|
+
loading: true
|
|
362
|
+
},
|
|
363
|
+
style: {
|
|
364
|
+
transition: theme.transitions.create(['opacity'], {
|
|
365
|
+
duration: theme.transitions.duration.short
|
|
366
|
+
}),
|
|
367
|
+
opacity: 0
|
|
368
|
+
}
|
|
369
|
+
}, {
|
|
370
|
+
props: {
|
|
371
|
+
loadingPosition: 'end',
|
|
372
|
+
loading: true,
|
|
373
|
+
fullWidth: true
|
|
374
|
+
},
|
|
375
|
+
style: {
|
|
376
|
+
marginLeft: -8
|
|
377
|
+
}
|
|
317
378
|
}, ...commonIconStyles]
|
|
379
|
+
}));
|
|
380
|
+
const ButtonLoadingIndicator = (0, _zeroStyled.styled)('span', {
|
|
381
|
+
name: 'MuiButton',
|
|
382
|
+
slot: 'LoadingIndicator',
|
|
383
|
+
overridesResolver: (props, styles) => styles.loadingIndicator
|
|
384
|
+
})(({
|
|
385
|
+
theme
|
|
386
|
+
}) => ({
|
|
387
|
+
display: 'none',
|
|
388
|
+
position: 'absolute',
|
|
389
|
+
visibility: 'visible',
|
|
390
|
+
variants: [{
|
|
391
|
+
props: {
|
|
392
|
+
loading: true
|
|
393
|
+
},
|
|
394
|
+
style: {
|
|
395
|
+
display: 'flex'
|
|
396
|
+
}
|
|
397
|
+
}, {
|
|
398
|
+
props: {
|
|
399
|
+
loadingPosition: 'start'
|
|
400
|
+
},
|
|
401
|
+
style: {
|
|
402
|
+
left: 14
|
|
403
|
+
}
|
|
404
|
+
}, {
|
|
405
|
+
props: {
|
|
406
|
+
loadingPosition: 'start',
|
|
407
|
+
size: 'small'
|
|
408
|
+
},
|
|
409
|
+
style: {
|
|
410
|
+
left: 10
|
|
411
|
+
}
|
|
412
|
+
}, {
|
|
413
|
+
props: {
|
|
414
|
+
variant: 'text',
|
|
415
|
+
loadingPosition: 'start'
|
|
416
|
+
},
|
|
417
|
+
style: {
|
|
418
|
+
left: 6
|
|
419
|
+
}
|
|
420
|
+
}, {
|
|
421
|
+
props: {
|
|
422
|
+
loadingPosition: 'center'
|
|
423
|
+
},
|
|
424
|
+
style: {
|
|
425
|
+
left: '50%',
|
|
426
|
+
transform: 'translate(-50%)',
|
|
427
|
+
color: (theme.vars || theme).palette.action.disabled
|
|
428
|
+
}
|
|
429
|
+
}, {
|
|
430
|
+
props: {
|
|
431
|
+
loadingPosition: 'end'
|
|
432
|
+
},
|
|
433
|
+
style: {
|
|
434
|
+
right: 14
|
|
435
|
+
}
|
|
436
|
+
}, {
|
|
437
|
+
props: {
|
|
438
|
+
loadingPosition: 'end',
|
|
439
|
+
size: 'small'
|
|
440
|
+
},
|
|
441
|
+
style: {
|
|
442
|
+
right: 10
|
|
443
|
+
}
|
|
444
|
+
}, {
|
|
445
|
+
props: {
|
|
446
|
+
variant: 'text',
|
|
447
|
+
loadingPosition: 'end'
|
|
448
|
+
},
|
|
449
|
+
style: {
|
|
450
|
+
right: 6
|
|
451
|
+
}
|
|
452
|
+
}, {
|
|
453
|
+
props: {
|
|
454
|
+
loadingPosition: 'start',
|
|
455
|
+
fullWidth: true
|
|
456
|
+
},
|
|
457
|
+
style: {
|
|
458
|
+
position: 'relative',
|
|
459
|
+
left: -10
|
|
460
|
+
}
|
|
461
|
+
}, {
|
|
462
|
+
props: {
|
|
463
|
+
loadingPosition: 'end',
|
|
464
|
+
fullWidth: true
|
|
465
|
+
},
|
|
466
|
+
style: {
|
|
467
|
+
position: 'relative',
|
|
468
|
+
right: -10
|
|
469
|
+
}
|
|
470
|
+
}]
|
|
471
|
+
}));
|
|
472
|
+
const ButtonLoadingIconPlaceholder = (0, _zeroStyled.styled)('span', {
|
|
473
|
+
name: 'MuiButton',
|
|
474
|
+
slot: 'LoadingIconPlaceholder',
|
|
475
|
+
overridesResolver: (props, styles) => styles.loadingIconPlaceholder
|
|
476
|
+
})({
|
|
477
|
+
display: 'inline-block',
|
|
478
|
+
width: '1em',
|
|
479
|
+
height: '1em'
|
|
318
480
|
});
|
|
319
481
|
const Button = /*#__PURE__*/React.forwardRef(function Button(inProps, ref) {
|
|
320
482
|
// props priority: `inProps` > `contextProps` > `themeDefaultProps`
|
|
@@ -336,12 +498,22 @@ const Button = /*#__PURE__*/React.forwardRef(function Button(inProps, ref) {
|
|
|
336
498
|
endIcon: endIconProp,
|
|
337
499
|
focusVisibleClassName,
|
|
338
500
|
fullWidth = false,
|
|
501
|
+
id: idProp,
|
|
502
|
+
loading = null,
|
|
503
|
+
loadingIndicator: loadingIndicatorProp,
|
|
504
|
+
loadingPosition = 'center',
|
|
339
505
|
size = 'medium',
|
|
340
506
|
startIcon: startIconProp,
|
|
341
507
|
type,
|
|
342
508
|
variant = 'text',
|
|
343
509
|
...other
|
|
344
510
|
} = props;
|
|
511
|
+
const id = (0, _utils.unstable_useId)(idProp);
|
|
512
|
+
const loadingIndicator = loadingIndicatorProp ?? /*#__PURE__*/(0, _jsxRuntime.jsx)(_CircularProgress.default, {
|
|
513
|
+
"aria-labelledby": id,
|
|
514
|
+
color: "inherit",
|
|
515
|
+
size: 16
|
|
516
|
+
});
|
|
345
517
|
const ownerState = {
|
|
346
518
|
...props,
|
|
347
519
|
color,
|
|
@@ -350,34 +522,58 @@ const Button = /*#__PURE__*/React.forwardRef(function Button(inProps, ref) {
|
|
|
350
522
|
disableElevation,
|
|
351
523
|
disableFocusRipple,
|
|
352
524
|
fullWidth,
|
|
525
|
+
loading,
|
|
526
|
+
loadingIndicator,
|
|
527
|
+
loadingPosition,
|
|
353
528
|
size,
|
|
354
529
|
type,
|
|
355
530
|
variant
|
|
356
531
|
};
|
|
357
532
|
const classes = useUtilityClasses(ownerState);
|
|
358
|
-
const startIcon = startIconProp && /*#__PURE__*/(0, _jsxRuntime.jsx)(ButtonStartIcon, {
|
|
533
|
+
const startIcon = (startIconProp || loading && loadingPosition === 'start') && /*#__PURE__*/(0, _jsxRuntime.jsx)(ButtonStartIcon, {
|
|
359
534
|
className: classes.startIcon,
|
|
360
535
|
ownerState: ownerState,
|
|
361
|
-
children: startIconProp
|
|
536
|
+
children: startIconProp || /*#__PURE__*/(0, _jsxRuntime.jsx)(ButtonLoadingIconPlaceholder, {
|
|
537
|
+
className: classes.loadingIconPlaceholder,
|
|
538
|
+
ownerState: ownerState
|
|
539
|
+
})
|
|
362
540
|
});
|
|
363
|
-
const endIcon = endIconProp && /*#__PURE__*/(0, _jsxRuntime.jsx)(ButtonEndIcon, {
|
|
541
|
+
const endIcon = (endIconProp || loading && loadingPosition === 'end') && /*#__PURE__*/(0, _jsxRuntime.jsx)(ButtonEndIcon, {
|
|
364
542
|
className: classes.endIcon,
|
|
365
543
|
ownerState: ownerState,
|
|
366
|
-
children: endIconProp
|
|
544
|
+
children: endIconProp || /*#__PURE__*/(0, _jsxRuntime.jsx)(ButtonLoadingIconPlaceholder, {
|
|
545
|
+
className: classes.loadingIconPlaceholder,
|
|
546
|
+
ownerState: ownerState
|
|
547
|
+
})
|
|
367
548
|
});
|
|
368
549
|
const positionClassName = buttonGroupButtonContextPositionClassName || '';
|
|
550
|
+
const loader = typeof loading === 'boolean' ?
|
|
551
|
+
/*#__PURE__*/
|
|
552
|
+
// use plain HTML span to minimize the runtime overhead
|
|
553
|
+
(0, _jsxRuntime.jsx)("span", {
|
|
554
|
+
className: classes.loadingWrapper,
|
|
555
|
+
style: {
|
|
556
|
+
display: 'contents'
|
|
557
|
+
},
|
|
558
|
+
children: loading && /*#__PURE__*/(0, _jsxRuntime.jsx)(ButtonLoadingIndicator, {
|
|
559
|
+
className: classes.loadingIndicator,
|
|
560
|
+
ownerState: ownerState,
|
|
561
|
+
children: loadingIndicator
|
|
562
|
+
})
|
|
563
|
+
}) : null;
|
|
369
564
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(ButtonRoot, {
|
|
370
565
|
ownerState: ownerState,
|
|
371
566
|
className: (0, _clsx.default)(contextProps.className, classes.root, className, positionClassName),
|
|
372
567
|
component: component,
|
|
373
|
-
disabled: disabled,
|
|
568
|
+
disabled: disabled || loading,
|
|
374
569
|
focusRipple: !disableFocusRipple,
|
|
375
570
|
focusVisibleClassName: (0, _clsx.default)(classes.focusVisible, focusVisibleClassName),
|
|
376
571
|
ref: ref,
|
|
377
572
|
type: type,
|
|
573
|
+
id: id,
|
|
378
574
|
...other,
|
|
379
575
|
classes: classes,
|
|
380
|
-
children: [startIcon, children, endIcon]
|
|
576
|
+
children: [startIcon, loadingPosition !== 'end' && loader, children, loadingPosition === 'end' && loader, endIcon]
|
|
381
577
|
});
|
|
382
578
|
});
|
|
383
579
|
process.env.NODE_ENV !== "production" ? Button.propTypes /* remove-proptypes */ = {
|
|
@@ -450,6 +646,28 @@ process.env.NODE_ENV !== "production" ? Button.propTypes /* remove-proptypes */
|
|
|
450
646
|
* If defined, an `a` element will be used as the root node.
|
|
451
647
|
*/
|
|
452
648
|
href: _propTypes.default.string,
|
|
649
|
+
/**
|
|
650
|
+
* @ignore
|
|
651
|
+
*/
|
|
652
|
+
id: _propTypes.default.string,
|
|
653
|
+
/**
|
|
654
|
+
* If `true`, the loading indicator is visible and the button is disabled.
|
|
655
|
+
* 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).
|
|
656
|
+
* @default null
|
|
657
|
+
*/
|
|
658
|
+
loading: _propTypes.default.bool,
|
|
659
|
+
/**
|
|
660
|
+
* Element placed before the children if the button is in loading state.
|
|
661
|
+
* The node should contain an element with `role="progressbar"` with an accessible name.
|
|
662
|
+
* By default, it renders a `CircularProgress` that is labeled by the button itself.
|
|
663
|
+
* @default <CircularProgress color="inherit" size={16} />
|
|
664
|
+
*/
|
|
665
|
+
loadingIndicator: _propTypes.default.node,
|
|
666
|
+
/**
|
|
667
|
+
* The loading indicator can be positioned on the start, end, or the center of the button.
|
|
668
|
+
* @default 'center'
|
|
669
|
+
*/
|
|
670
|
+
loadingPosition: _propTypes.default.oneOf(['center', 'end', 'start']),
|
|
453
671
|
/**
|
|
454
672
|
* The size of the component.
|
|
455
673
|
* `small` is equivalent to the dense button styling.
|
|
@@ -11,5 +11,5 @@ var _generateUtilityClass = _interopRequireDefault(require("@mui/utils/generateU
|
|
|
11
11
|
function getButtonUtilityClass(slot) {
|
|
12
12
|
return (0, _generateUtilityClass.default)('MuiButton', slot);
|
|
13
13
|
}
|
|
14
|
-
const buttonClasses = (0, _generateUtilityClasses.default)('MuiButton', ['root', 'text', 'textInherit', 'textPrimary', 'textSecondary', 'textSuccess', 'textError', 'textInfo', 'textWarning', 'outlined', 'outlinedInherit', 'outlinedPrimary', 'outlinedSecondary', 'outlinedSuccess', 'outlinedError', 'outlinedInfo', 'outlinedWarning', 'contained', 'containedInherit', 'containedPrimary', 'containedSecondary', 'containedSuccess', 'containedError', 'containedInfo', 'containedWarning', 'disableElevation', 'focusVisible', 'disabled', 'colorInherit', 'colorPrimary', 'colorSecondary', 'colorSuccess', 'colorError', 'colorInfo', 'colorWarning', 'textSizeSmall', 'textSizeMedium', 'textSizeLarge', 'outlinedSizeSmall', 'outlinedSizeMedium', 'outlinedSizeLarge', 'containedSizeSmall', 'containedSizeMedium', 'containedSizeLarge', 'sizeMedium', 'sizeSmall', 'sizeLarge', 'fullWidth', 'startIcon', 'endIcon', 'icon', 'iconSizeSmall', 'iconSizeMedium', 'iconSizeLarge']);
|
|
14
|
+
const buttonClasses = (0, _generateUtilityClasses.default)('MuiButton', ['root', 'text', 'textInherit', 'textPrimary', 'textSecondary', 'textSuccess', 'textError', 'textInfo', 'textWarning', 'outlined', 'outlinedInherit', 'outlinedPrimary', 'outlinedSecondary', 'outlinedSuccess', 'outlinedError', 'outlinedInfo', 'outlinedWarning', 'contained', 'containedInherit', 'containedPrimary', 'containedSecondary', 'containedSuccess', 'containedError', 'containedInfo', 'containedWarning', 'disableElevation', 'focusVisible', 'disabled', 'colorInherit', 'colorPrimary', 'colorSecondary', 'colorSuccess', 'colorError', 'colorInfo', 'colorWarning', 'textSizeSmall', 'textSizeMedium', 'textSizeLarge', 'outlinedSizeSmall', 'outlinedSizeMedium', 'outlinedSizeLarge', 'containedSizeSmall', 'containedSizeMedium', 'containedSizeLarge', 'sizeMedium', 'sizeSmall', 'sizeLarge', 'fullWidth', 'startIcon', 'endIcon', 'icon', 'iconSizeSmall', 'iconSizeMedium', 'iconSizeLarge', 'loading', 'loadingWrapper', 'loadingIconPlaceholder', 'loadingIndicator', 'loadingPositionCenter', 'loadingPositionStart', 'loadingPositionEnd']);
|
|
15
15
|
var _default = exports.default = buttonClasses;
|