@sitecore/sc-contenthub-blok 1.0.32 → 2.0.1
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/@babel/code-frame/package.json +2 -2
- package/node_modules/@babel/generator/lib/buffer.js +11 -8
- package/node_modules/@babel/generator/lib/buffer.js.map +1 -1
- package/node_modules/@babel/generator/lib/node/index.js +22 -8
- package/node_modules/@babel/generator/lib/node/index.js.map +1 -1
- package/node_modules/@babel/generator/lib/printer.js +2 -1
- package/node_modules/@babel/generator/lib/printer.js.map +1 -1
- package/node_modules/@babel/generator/lib/source-map.js +3 -1
- package/node_modules/@babel/generator/lib/source-map.js.map +1 -1
- package/node_modules/@babel/generator/package.json +6 -6
- package/node_modules/@babel/helper-globals/package.json +1 -1
- package/node_modules/@babel/helper-module-imports/package.json +4 -4
- package/node_modules/@babel/helper-string-parser/package.json +1 -1
- package/node_modules/@babel/helper-validator-identifier/package.json +1 -1
- package/node_modules/@babel/parser/lib/index.js +19 -7
- package/node_modules/@babel/parser/lib/index.js.map +1 -1
- package/node_modules/@babel/parser/package.json +7 -7
- package/node_modules/@babel/parser/typings/babel-parser.d.ts +1 -1
- package/node_modules/@babel/runtime/package.json +1 -1
- package/node_modules/@babel/template/package.json +4 -4
- package/node_modules/@babel/traverse/lib/path/family.js.map +1 -1
- package/node_modules/@babel/traverse/lib/visitors.js +1 -1
- package/node_modules/@babel/traverse/package.json +9 -9
- package/node_modules/@babel/types/lib/ast-types/generated/index.js.map +1 -1
- package/node_modules/@babel/types/lib/builders/generated/lowercase.js +2 -1
- package/node_modules/@babel/types/lib/builders/generated/lowercase.js.map +1 -1
- package/node_modules/@babel/types/lib/definitions/core.js +11 -1
- package/node_modules/@babel/types/lib/definitions/core.js.map +1 -1
- package/node_modules/@babel/types/lib/index-legacy.d.ts +4 -5
- package/node_modules/@babel/types/lib/index.d.ts +5 -6
- package/node_modules/@babel/types/lib/index.js.flow +4 -5
- package/node_modules/@babel/types/package.json +6 -6
- package/node_modules/@mui/core-downloads-tracker/LICENSE +1 -1
- package/node_modules/@mui/core-downloads-tracker/package.json +1 -1
- package/node_modules/@mui/material/Accordion/Accordion.d.mts +2 -2
- package/node_modules/@mui/material/Accordion/Accordion.d.ts +2 -2
- package/node_modules/@mui/material/Accordion/Accordion.js +3 -2
- package/node_modules/@mui/material/Accordion/Accordion.mjs +3 -2
- package/node_modules/@mui/material/AccordionSummary/AccordionSummary.js +27 -29
- package/node_modules/@mui/material/AccordionSummary/AccordionSummary.mjs +27 -29
- package/node_modules/@mui/material/Autocomplete/Autocomplete.d.mts +12 -1
- package/node_modules/@mui/material/Autocomplete/Autocomplete.d.ts +12 -1
- package/node_modules/@mui/material/Autocomplete/Autocomplete.js +48 -22
- package/node_modules/@mui/material/Autocomplete/Autocomplete.mjs +48 -22
- package/node_modules/@mui/material/Autocomplete/autocompleteClasses.d.mts +2 -0
- package/node_modules/@mui/material/Autocomplete/autocompleteClasses.d.ts +2 -0
- package/node_modules/@mui/material/Autocomplete/autocompleteClasses.js +1 -1
- package/node_modules/@mui/material/Autocomplete/autocompleteClasses.mjs +1 -1
- package/node_modules/@mui/material/Avatar/Avatar.js +2 -0
- package/node_modules/@mui/material/Avatar/Avatar.mjs +2 -0
- package/node_modules/@mui/material/Backdrop/Backdrop.d.mts +2 -2
- package/node_modules/@mui/material/Backdrop/Backdrop.d.ts +2 -2
- package/node_modules/@mui/material/Badge/Badge.js +28 -24
- package/node_modules/@mui/material/Badge/Badge.mjs +28 -24
- package/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction.js +6 -2
- package/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction.mjs +6 -2
- package/node_modules/@mui/material/Button/Button.js +11 -15
- package/node_modules/@mui/material/Button/Button.mjs +11 -15
- package/node_modules/@mui/material/ButtonBase/ButtonBase.js +1 -1
- package/node_modules/@mui/material/ButtonBase/ButtonBase.mjs +1 -1
- package/node_modules/@mui/material/ButtonBase/Ripple.js +21 -11
- package/node_modules/@mui/material/ButtonBase/Ripple.mjs +21 -11
- package/node_modules/@mui/material/ButtonBase/TouchRipple.js +252 -108
- package/node_modules/@mui/material/ButtonBase/TouchRipple.mjs +253 -109
- package/node_modules/@mui/material/ButtonGroup/ButtonGroup.js +3 -3
- package/node_modules/@mui/material/ButtonGroup/ButtonGroup.mjs +3 -3
- package/node_modules/@mui/material/CHANGELOG.md +286 -0
- package/node_modules/@mui/material/CardActionArea/CardActionArea.js +2 -1
- package/node_modules/@mui/material/CardActionArea/CardActionArea.mjs +2 -1
- package/node_modules/@mui/material/Checkbox/Checkbox.js +3 -1
- package/node_modules/@mui/material/Checkbox/Checkbox.mjs +3 -1
- package/node_modules/@mui/material/Chip/Chip.js +2 -1
- package/node_modules/@mui/material/Chip/Chip.mjs +2 -1
- package/node_modules/@mui/material/CircularProgress/CircularProgress.js +85 -55
- package/node_modules/@mui/material/CircularProgress/CircularProgress.mjs +84 -55
- package/node_modules/@mui/material/ClickAwayListener/ClickAwayListener.js +1 -1
- package/node_modules/@mui/material/ClickAwayListener/ClickAwayListener.mjs +1 -1
- package/node_modules/@mui/material/Collapse/Collapse.d.mts +15 -3
- package/node_modules/@mui/material/Collapse/Collapse.d.ts +15 -3
- package/node_modules/@mui/material/Collapse/Collapse.js +44 -31
- package/node_modules/@mui/material/Collapse/Collapse.mjs +43 -30
- package/node_modules/@mui/material/DefaultPropsProvider/DefaultPropsProvider.d.mts +1 -1
- package/node_modules/@mui/material/DefaultPropsProvider/DefaultPropsProvider.d.ts +1 -1
- package/node_modules/@mui/material/Dialog/Dialog.d.mts +2 -2
- package/node_modules/@mui/material/Dialog/Dialog.d.ts +2 -2
- package/node_modules/@mui/material/Dialog/Dialog.js +2 -0
- package/node_modules/@mui/material/Dialog/Dialog.mjs +2 -0
- package/node_modules/@mui/material/Drawer/Drawer.d.mts +2 -2
- package/node_modules/@mui/material/Drawer/Drawer.d.ts +2 -2
- package/node_modules/@mui/material/Fab/Fab.js +2 -1
- package/node_modules/@mui/material/Fab/Fab.mjs +2 -1
- package/node_modules/@mui/material/Fade/Fade.d.mts +15 -2
- package/node_modules/@mui/material/Fade/Fade.d.ts +15 -2
- package/node_modules/@mui/material/Fade/Fade.js +46 -19
- package/node_modules/@mui/material/Fade/Fade.mjs +45 -18
- package/node_modules/@mui/material/FilledInput/FilledInput.js +11 -4
- package/node_modules/@mui/material/FilledInput/FilledInput.mjs +11 -4
- package/node_modules/@mui/material/FormControlLabel/formControlLabelClasses.d.mts +2 -0
- package/node_modules/@mui/material/FormControlLabel/formControlLabelClasses.d.ts +2 -0
- package/node_modules/@mui/material/FormControlLabel/formControlLabelClasses.js +1 -1
- package/node_modules/@mui/material/FormControlLabel/formControlLabelClasses.mjs +1 -1
- package/node_modules/@mui/material/Grow/Grow.d.mts +15 -2
- package/node_modules/@mui/material/Grow/Grow.d.ts +15 -2
- package/node_modules/@mui/material/Grow/Grow.js +45 -28
- package/node_modules/@mui/material/Grow/Grow.mjs +44 -27
- package/node_modules/@mui/material/IconButton/IconButton.js +2 -1
- package/node_modules/@mui/material/IconButton/IconButton.mjs +2 -1
- package/node_modules/@mui/material/InitColorSchemeScript/InitColorSchemeScript.d.mts +6 -6
- package/node_modules/@mui/material/InitColorSchemeScript/InitColorSchemeScript.d.ts +6 -6
- package/node_modules/@mui/material/Input/Input.js +3 -2
- package/node_modules/@mui/material/Input/Input.mjs +3 -2
- package/node_modules/@mui/material/InputBase/InputBase.js +3 -1
- package/node_modules/@mui/material/InputBase/InputBase.mjs +3 -1
- package/node_modules/@mui/material/InputLabel/InputLabel.js +2 -1
- package/node_modules/@mui/material/InputLabel/InputLabel.mjs +2 -1
- package/node_modules/@mui/material/LICENSE +1 -1
- package/node_modules/@mui/material/LinearProgress/LinearProgress.js +187 -120
- package/node_modules/@mui/material/LinearProgress/LinearProgress.mjs +186 -120
- package/node_modules/@mui/material/ListItem/ListItem.d.mts +2 -1
- package/node_modules/@mui/material/ListItem/ListItem.d.ts +2 -1
- package/node_modules/@mui/material/ListItem/ListItem.js +3 -2
- package/node_modules/@mui/material/ListItem/ListItem.mjs +3 -2
- package/node_modules/@mui/material/ListItemButton/ListItemButton.d.mts +1 -1
- package/node_modules/@mui/material/ListItemButton/ListItemButton.d.ts +1 -1
- package/node_modules/@mui/material/ListItemButton/ListItemButton.js +2 -1
- package/node_modules/@mui/material/ListItemButton/ListItemButton.mjs +2 -1
- package/node_modules/@mui/material/Menu/Menu.d.mts +1 -1
- package/node_modules/@mui/material/Menu/Menu.d.ts +1 -1
- package/node_modules/@mui/material/MenuItem/MenuItem.d.mts +1 -0
- package/node_modules/@mui/material/MenuItem/MenuItem.d.ts +1 -0
- package/node_modules/@mui/material/MenuItem/MenuItem.js +7 -0
- package/node_modules/@mui/material/MenuItem/MenuItem.mjs +7 -0
- package/node_modules/@mui/material/MenuList/MenuList.js +6 -2
- package/node_modules/@mui/material/MenuList/MenuList.mjs +6 -2
- package/node_modules/@mui/material/MobileStepper/MobileStepper.js +2 -1
- package/node_modules/@mui/material/MobileStepper/MobileStepper.mjs +2 -1
- package/node_modules/@mui/material/Modal/Modal.js +2 -1
- package/node_modules/@mui/material/Modal/Modal.mjs +2 -1
- package/node_modules/@mui/material/Modal/ModalManager.js +19 -30
- package/node_modules/@mui/material/Modal/ModalManager.mjs +19 -30
- package/node_modules/@mui/material/Modal/useModal.js +7 -0
- package/node_modules/@mui/material/Modal/useModal.mjs +7 -0
- package/node_modules/@mui/material/Modal/useModal.types.d.mts +5 -0
- package/node_modules/@mui/material/Modal/useModal.types.d.ts +5 -0
- package/node_modules/@mui/material/NativeSelect/NativeSelectInput.js +32 -3
- package/node_modules/@mui/material/NativeSelect/NativeSelectInput.mjs +32 -3
- package/node_modules/@mui/material/NoSsr/NoSsr.js +1 -0
- package/node_modules/@mui/material/NoSsr/NoSsr.mjs +1 -0
- package/node_modules/@mui/material/OutlinedInput/NotchedOutline.js +4 -3
- package/node_modules/@mui/material/OutlinedInput/NotchedOutline.mjs +4 -3
- package/node_modules/@mui/material/OutlinedInput/OutlinedInput.js +7 -1
- package/node_modules/@mui/material/OutlinedInput/OutlinedInput.mjs +7 -1
- package/node_modules/@mui/material/PaginationItem/PaginationItem.js +2 -1
- package/node_modules/@mui/material/PaginationItem/PaginationItem.mjs +2 -1
- package/node_modules/@mui/material/Paper/Paper.js +2 -1
- package/node_modules/@mui/material/Paper/Paper.mjs +2 -1
- package/node_modules/@mui/material/Popover/Popover.d.mts +1 -1
- package/node_modules/@mui/material/Popover/Popover.d.ts +1 -1
- package/node_modules/@mui/material/Popper/BasePopper.js +1 -6
- package/node_modules/@mui/material/Popper/BasePopper.mjs +1 -6
- package/node_modules/@mui/material/README.md +3 -2
- package/node_modules/@mui/material/Radio/Radio.js +3 -0
- package/node_modules/@mui/material/Radio/Radio.mjs +3 -0
- package/node_modules/@mui/material/Radio/RadioButtonIcon.js +3 -2
- package/node_modules/@mui/material/Radio/RadioButtonIcon.mjs +3 -2
- package/node_modules/@mui/material/Rating/Rating.js +4 -3
- package/node_modules/@mui/material/Rating/Rating.mjs +4 -3
- package/node_modules/@mui/material/Select/SelectInput.js +118 -25
- package/node_modules/@mui/material/Select/SelectInput.mjs +118 -25
- package/node_modules/@mui/material/Select/utils/SelectFocusSourceContext.d.mts +2 -2
- package/node_modules/@mui/material/Select/utils/SelectFocusSourceContext.d.ts +2 -2
- package/node_modules/@mui/material/Select/utils/closedTypeahead.js +73 -0
- package/node_modules/@mui/material/Select/utils/closedTypeahead.mjs +63 -0
- package/node_modules/@mui/material/Skeleton/Skeleton.js +22 -2
- package/node_modules/@mui/material/Skeleton/Skeleton.mjs +22 -2
- package/node_modules/@mui/material/Slide/Slide.d.mts +15 -2
- package/node_modules/@mui/material/Slide/Slide.d.ts +15 -2
- package/node_modules/@mui/material/Slide/Slide.js +53 -25
- package/node_modules/@mui/material/Slide/Slide.mjs +52 -24
- package/node_modules/@mui/material/Slider/Slider.js +4 -3
- package/node_modules/@mui/material/Slider/Slider.mjs +4 -3
- package/node_modules/@mui/material/Slider/SliderValueLabel.d.mts +2 -2
- package/node_modules/@mui/material/Slider/SliderValueLabel.d.ts +2 -2
- package/node_modules/@mui/material/Slider/useSlider.js +1 -1
- package/node_modules/@mui/material/Slider/useSlider.mjs +1 -1
- package/node_modules/@mui/material/Snackbar/Snackbar.d.mts +2 -2
- package/node_modules/@mui/material/Snackbar/Snackbar.d.ts +2 -2
- package/node_modules/@mui/material/SpeedDial/SpeedDial.d.mts +1 -1
- package/node_modules/@mui/material/SpeedDial/SpeedDial.d.ts +1 -1
- package/node_modules/@mui/material/SpeedDial/SpeedDial.js +6 -2
- package/node_modules/@mui/material/SpeedDial/SpeedDial.mjs +6 -2
- package/node_modules/@mui/material/SpeedDialAction/SpeedDialAction.js +11 -2
- package/node_modules/@mui/material/SpeedDialAction/SpeedDialAction.mjs +12 -3
- package/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon.js +40 -37
- package/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon.mjs +40 -37
- package/node_modules/@mui/material/Stack/Stack.d.mts +1 -1
- package/node_modules/@mui/material/Stack/Stack.d.ts +1 -1
- package/node_modules/@mui/material/Stack/Stack.js +1 -1
- package/node_modules/@mui/material/Stack/Stack.mjs +1 -1
- package/node_modules/@mui/material/Step/Step.js +47 -15
- package/node_modules/@mui/material/Step/Step.mjs +47 -15
- package/node_modules/@mui/material/Step/StepContext.d.mts +1 -1
- package/node_modules/@mui/material/Step/StepContext.d.ts +1 -1
- package/node_modules/@mui/material/StepButton/StepButton.js +9 -3
- package/node_modules/@mui/material/StepButton/StepButton.mjs +9 -3
- package/node_modules/@mui/material/StepConnector/StepConnector.js +10 -0
- package/node_modules/@mui/material/StepConnector/StepConnector.mjs +10 -0
- package/node_modules/@mui/material/StepContent/StepContent.d.mts +2 -2
- package/node_modules/@mui/material/StepContent/StepContent.d.ts +2 -2
- package/node_modules/@mui/material/StepContent/StepContent.js +26 -2
- package/node_modules/@mui/material/StepContent/StepContent.mjs +26 -2
- package/node_modules/@mui/material/StepIcon/StepIcon.js +2 -1
- package/node_modules/@mui/material/StepIcon/StepIcon.mjs +2 -1
- package/node_modules/@mui/material/StepLabel/StepLabel.js +52 -7
- package/node_modules/@mui/material/StepLabel/StepLabel.mjs +52 -7
- package/node_modules/@mui/material/Stepper/Stepper.d.mts +2 -0
- package/node_modules/@mui/material/Stepper/Stepper.d.ts +2 -0
- package/node_modules/@mui/material/Stepper/Stepper.js +20 -2
- package/node_modules/@mui/material/Stepper/Stepper.mjs +20 -2
- package/node_modules/@mui/material/Stepper/StepperContext.d.mts +1 -1
- package/node_modules/@mui/material/Stepper/StepperContext.d.ts +1 -1
- package/node_modules/@mui/material/SvgIcon/SvgIcon.js +2 -1
- package/node_modules/@mui/material/SvgIcon/SvgIcon.mjs +2 -1
- package/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer.js +14 -3
- package/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer.mjs +14 -3
- package/node_modules/@mui/material/Switch/Switch.js +3 -2
- package/node_modules/@mui/material/Switch/Switch.mjs +3 -2
- package/node_modules/@mui/material/TablePagination/TablePagination.js +10 -3
- package/node_modules/@mui/material/TablePagination/TablePagination.mjs +9 -2
- package/node_modules/@mui/material/TableSortLabel/TableSortLabel.js +2 -1
- package/node_modules/@mui/material/TableSortLabel/TableSortLabel.mjs +2 -1
- package/node_modules/@mui/material/Tabs/Tabs.js +15 -3
- package/node_modules/@mui/material/Tabs/Tabs.mjs +15 -3
- package/node_modules/@mui/material/ToggleButton/RovingToggleButton.d.mts +13 -0
- package/node_modules/@mui/material/ToggleButton/RovingToggleButton.d.ts +13 -0
- package/node_modules/@mui/material/ToggleButton/RovingToggleButton.js +37 -0
- package/node_modules/@mui/material/ToggleButton/RovingToggleButton.mjs +31 -0
- package/node_modules/@mui/material/ToggleButton/ToggleButton.js +14 -2
- package/node_modules/@mui/material/ToggleButton/ToggleButton.mjs +14 -2
- package/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroup.js +33 -13
- package/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroup.mjs +33 -13
- package/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroupContext.d.mts +1 -0
- package/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroupContext.d.ts +1 -0
- package/node_modules/@mui/material/Tooltip/Tooltip.d.mts +2 -2
- package/node_modules/@mui/material/Tooltip/Tooltip.d.ts +2 -2
- package/node_modules/@mui/material/Tooltip/Tooltip.js +5 -2
- package/node_modules/@mui/material/Tooltip/Tooltip.mjs +5 -2
- package/node_modules/@mui/material/Unstable_TrapFocus/FocusTrap.js +42 -8
- package/node_modules/@mui/material/Unstable_TrapFocus/FocusTrap.mjs +42 -8
- package/node_modules/@mui/material/Zoom/Zoom.d.mts +15 -2
- package/node_modules/@mui/material/Zoom/Zoom.d.ts +15 -2
- package/node_modules/@mui/material/Zoom/Zoom.js +43 -16
- package/node_modules/@mui/material/Zoom/Zoom.mjs +42 -15
- package/node_modules/@mui/material/index.js +1 -1
- package/node_modules/@mui/material/index.mjs +1 -1
- package/node_modules/@mui/material/internal/SwitchBase.js +1 -1
- package/node_modules/@mui/material/internal/SwitchBase.mjs +1 -1
- package/node_modules/@mui/material/internal/Transition.d.mts +34 -0
- package/node_modules/@mui/material/internal/Transition.d.ts +34 -0
- package/node_modules/@mui/material/internal/Transition.js +463 -0
- package/node_modules/@mui/material/internal/Transition.mjs +455 -0
- package/node_modules/@mui/material/internal/react-transition-group.d.mts +16 -0
- package/node_modules/@mui/material/internal/react-transition-group.d.ts +16 -0
- package/node_modules/@mui/material/locale/zhCN.js +21 -0
- package/node_modules/@mui/material/locale/zhCN.mjs +21 -0
- package/node_modules/@mui/material/package.json +11 -8
- package/node_modules/@mui/material/styles/ThemeProvider.d.mts +1 -1
- package/node_modules/@mui/material/styles/ThemeProvider.d.ts +1 -1
- package/node_modules/@mui/material/styles/ThemeProviderWithVars.d.mts +8 -8
- package/node_modules/@mui/material/styles/ThemeProviderWithVars.d.ts +8 -8
- package/node_modules/@mui/material/styles/createGetSelector.d.mts +5 -5
- package/node_modules/@mui/material/styles/createGetSelector.d.ts +5 -5
- package/node_modules/@mui/material/styles/createMotion.d.mts +8 -0
- package/node_modules/@mui/material/styles/createMotion.d.ts +8 -0
- package/node_modules/@mui/material/styles/createMotion.js +13 -0
- package/node_modules/@mui/material/styles/createMotion.mjs +7 -0
- package/node_modules/@mui/material/styles/createThemeFoundation.d.mts +2 -0
- package/node_modules/@mui/material/styles/createThemeFoundation.d.ts +2 -0
- package/node_modules/@mui/material/styles/createThemeNoVars.d.mts +3 -0
- package/node_modules/@mui/material/styles/createThemeNoVars.d.ts +3 -0
- package/node_modules/@mui/material/styles/createThemeNoVars.js +5 -0
- package/node_modules/@mui/material/styles/createThemeNoVars.mjs +5 -0
- package/node_modules/@mui/material/styles/createTransitions.d.mts +6 -2
- package/node_modules/@mui/material/styles/createTransitions.d.ts +6 -2
- package/node_modules/@mui/material/styles/createTransitions.js +12 -4
- package/node_modules/@mui/material/styles/createTransitions.mjs +12 -4
- package/node_modules/@mui/material/styles/enhanceHighContrast.d.mts +70 -0
- package/node_modules/@mui/material/styles/enhanceHighContrast.d.ts +70 -0
- package/node_modules/@mui/material/styles/enhanceHighContrast.js +502 -0
- package/node_modules/@mui/material/styles/enhanceHighContrast.mjs +495 -0
- package/node_modules/@mui/material/styles/identifier.d.mts +1 -1
- package/node_modules/@mui/material/styles/identifier.d.ts +1 -1
- package/node_modules/@mui/material/styles/index.d.mts +2 -0
- package/node_modules/@mui/material/styles/index.d.ts +2 -0
- package/node_modules/@mui/material/styles/index.js +8 -0
- package/node_modules/@mui/material/styles/index.mjs +1 -0
- package/node_modules/@mui/material/styles/reducedMotion.d.mts +7 -0
- package/node_modules/@mui/material/styles/reducedMotion.d.ts +7 -0
- package/node_modules/@mui/material/styles/reducedMotion.js +21 -0
- package/node_modules/@mui/material/styles/reducedMotion.mjs +14 -0
- package/node_modules/@mui/material/styles/shouldSkipGeneratingVar.js +1 -1
- package/node_modules/@mui/material/styles/shouldSkipGeneratingVar.mjs +1 -1
- package/node_modules/@mui/material/styles/stringifyTheme.js +1 -0
- package/node_modules/@mui/material/styles/stringifyTheme.mjs +1 -0
- package/node_modules/@mui/material/transitions/index.d.mts +1 -1
- package/node_modules/@mui/material/transitions/index.d.ts +1 -1
- package/node_modules/@mui/material/transitions/index.js +0 -11
- package/node_modules/@mui/material/transitions/index.mjs +1 -1
- package/node_modules/@mui/material/transitions/transition.d.mts +1 -12
- package/node_modules/@mui/material/transitions/transition.d.ts +1 -12
- package/node_modules/@mui/material/transitions/types.d.mts +73 -0
- package/node_modules/@mui/material/transitions/types.d.ts +73 -0
- package/node_modules/@mui/material/transitions/useReducedMotion.d.mts +14 -0
- package/node_modules/@mui/material/transitions/useReducedMotion.d.ts +14 -0
- package/node_modules/@mui/material/transitions/useReducedMotion.js +117 -0
- package/node_modules/@mui/material/transitions/useReducedMotion.mjs +110 -0
- package/node_modules/@mui/material/transitions/utils.d.mts +34 -2
- package/node_modules/@mui/material/transitions/utils.d.ts +34 -2
- package/node_modules/@mui/material/transitions/utils.js +33 -4
- package/node_modules/@mui/material/transitions/utils.mjs +31 -4
- package/node_modules/@mui/material/useAutocomplete/useAutocomplete.d.mts +8 -1
- package/node_modules/@mui/material/useAutocomplete/useAutocomplete.d.ts +8 -1
- package/node_modules/@mui/material/useAutocomplete/useAutocomplete.js +76 -13
- package/node_modules/@mui/material/useAutocomplete/useAutocomplete.mjs +76 -13
- package/node_modules/@mui/material/useScrollTrigger/useScrollTrigger.js +2 -1
- package/node_modules/@mui/material/useScrollTrigger/useScrollTrigger.mjs +2 -1
- package/node_modules/@mui/material/utils/memoTheme.d.mts +1 -1
- package/node_modules/@mui/material/utils/memoTheme.d.ts +1 -1
- package/node_modules/@mui/material/utils/types.d.mts +1 -1
- package/node_modules/@mui/material/utils/types.d.ts +1 -1
- package/node_modules/@mui/material/utils/useSlot.d.mts +1 -1
- package/node_modules/@mui/material/utils/useSlot.d.ts +1 -1
- package/node_modules/@mui/material/version/index.js +2 -2
- package/node_modules/@mui/material/version/index.mjs +2 -2
- package/node_modules/@mui/material/zero-styled/index.d.mts +1 -1
- package/node_modules/@mui/material/zero-styled/index.d.ts +1 -1
- package/node_modules/@mui/private-theming/CHANGELOG.md +263 -0
- package/node_modules/@mui/private-theming/LICENSE +1 -1
- package/node_modules/@mui/private-theming/ThemeProvider/ThemeProvider.d.mts +9 -2
- package/node_modules/@mui/private-theming/ThemeProvider/ThemeProvider.d.ts +9 -2
- package/node_modules/@mui/private-theming/ThemeProvider/ThemeProvider.js +2 -2
- package/node_modules/@mui/private-theming/ThemeProvider/ThemeProvider.mjs +3 -4
- package/node_modules/@mui/private-theming/ThemeProvider/index.d.mts +1 -1
- package/node_modules/@mui/private-theming/ThemeProvider/index.d.ts +1 -1
- package/node_modules/@mui/private-theming/ThemeProvider/index.mjs +1 -0
- package/node_modules/@mui/private-theming/ThemeProvider/nested.d.mts +2 -0
- package/node_modules/@mui/private-theming/ThemeProvider/nested.d.ts +2 -0
- package/node_modules/@mui/private-theming/index.d.mts +1 -2
- package/node_modules/@mui/private-theming/index.d.ts +1 -2
- package/node_modules/@mui/private-theming/index.js +1 -1
- package/node_modules/@mui/private-theming/index.mjs +1 -1
- package/node_modules/@mui/private-theming/package.json +3 -3
- package/node_modules/@mui/private-theming/useTheme/ThemeContext.d.mts +3 -0
- package/node_modules/@mui/private-theming/useTheme/ThemeContext.d.ts +3 -0
- package/node_modules/@mui/private-theming/useTheme/index.d.mts +1 -2
- package/node_modules/@mui/private-theming/useTheme/index.d.ts +1 -2
- package/node_modules/@mui/private-theming/useTheme/useTheme.d.mts +1 -1
- package/node_modules/@mui/private-theming/useTheme/useTheme.d.ts +1 -1
- package/node_modules/@mui/styled-engine/CHANGELOG.md +395 -1245
- package/node_modules/@mui/styled-engine/GlobalStyles/GlobalStyles.d.mts +2 -2
- package/node_modules/@mui/styled-engine/GlobalStyles/GlobalStyles.d.ts +2 -2
- package/node_modules/@mui/styled-engine/GlobalStyles/GlobalStyles.js +1 -1
- package/node_modules/@mui/styled-engine/GlobalStyles/GlobalStyles.mjs +1 -1
- package/node_modules/@mui/styled-engine/GlobalStyles/index.d.mts +1 -1
- package/node_modules/@mui/styled-engine/GlobalStyles/index.d.ts +1 -1
- package/node_modules/@mui/styled-engine/LICENSE +1 -1
- package/node_modules/@mui/styled-engine/StyledEngineProvider/StyledEngineProvider.js +10 -2
- package/node_modules/@mui/styled-engine/StyledEngineProvider/StyledEngineProvider.mjs +11 -4
- package/node_modules/@mui/styled-engine/StyledEngineProvider/index.d.mts +1 -1
- package/node_modules/@mui/styled-engine/StyledEngineProvider/index.d.ts +1 -1
- package/node_modules/@mui/styled-engine/index.d.mts +13 -28
- package/node_modules/@mui/styled-engine/index.d.ts +13 -28
- package/node_modules/@mui/styled-engine/index.js +28 -4
- package/node_modules/@mui/styled-engine/index.mjs +30 -3
- package/node_modules/@mui/styled-engine/package.json +2 -2
- package/node_modules/@mui/system/Box/Box.d.mts +15 -19
- package/node_modules/@mui/system/Box/Box.d.ts +15 -19
- package/node_modules/@mui/system/Box/Box.js +16 -1
- package/node_modules/@mui/system/Box/Box.mjs +17 -1
- package/node_modules/@mui/system/Box/index.js +12 -2
- package/node_modules/@mui/system/Box/index.mjs +1 -0
- package/node_modules/@mui/system/CHANGELOG.md +263 -0
- package/node_modules/@mui/system/Container/index.d.mts +1 -1
- package/node_modules/@mui/system/Container/index.d.ts +1 -1
- package/node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.d.mts +1 -1
- package/node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.d.ts +1 -1
- package/node_modules/@mui/system/GlobalStyles/GlobalStyles.d.mts +1 -1
- package/node_modules/@mui/system/GlobalStyles/GlobalStyles.d.ts +1 -1
- package/node_modules/@mui/system/Grid/Grid.js +0 -1
- package/node_modules/@mui/system/Grid/Grid.mjs +0 -1
- package/node_modules/@mui/system/Grid/GridProps.d.mts +0 -1
- package/node_modules/@mui/system/Grid/GridProps.d.ts +0 -1
- package/node_modules/@mui/system/Grid/gridGenerator.d.mts +2 -2
- package/node_modules/@mui/system/Grid/gridGenerator.d.ts +2 -2
- package/node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.d.mts +3 -1
- package/node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.d.ts +3 -1
- package/node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.js +34 -1
- package/node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.mjs +33 -1
- package/node_modules/@mui/system/LICENSE +1 -1
- package/node_modules/@mui/system/Stack/Stack.js +1 -1
- package/node_modules/@mui/system/Stack/Stack.mjs +1 -1
- package/node_modules/@mui/system/Stack/StackProps.d.mts +1 -1
- package/node_modules/@mui/system/Stack/StackProps.d.ts +1 -1
- package/node_modules/@mui/system/ThemeProvider/ThemeProvider.d.mts +9 -6
- package/node_modules/@mui/system/ThemeProvider/ThemeProvider.d.ts +9 -6
- package/node_modules/@mui/system/ThemeProvider/ThemeProvider.js +3 -2
- package/node_modules/@mui/system/ThemeProvider/ThemeProvider.mjs +3 -2
- package/node_modules/@mui/system/ThemeProvider/index.d.mts +1 -1
- package/node_modules/@mui/system/ThemeProvider/index.d.ts +1 -1
- package/node_modules/@mui/system/ThemeProvider/useLayerOrder.d.mts +1 -1
- package/node_modules/@mui/system/ThemeProvider/useLayerOrder.d.ts +1 -1
- package/node_modules/@mui/system/borders/borders.d.mts +14 -12
- package/node_modules/@mui/system/borders/borders.d.ts +14 -12
- package/node_modules/@mui/system/borders/borders.js +2 -4
- package/node_modules/@mui/system/borders/borders.mjs +3 -4
- package/node_modules/@mui/system/breakpoints/breakpoints.d.mts +13 -16
- package/node_modules/@mui/system/breakpoints/breakpoints.d.ts +13 -16
- package/node_modules/@mui/system/breakpoints/breakpoints.js +17 -16
- package/node_modules/@mui/system/breakpoints/breakpoints.mjs +17 -16
- package/node_modules/@mui/system/compose/compose.d.mts +3 -10
- package/node_modules/@mui/system/compose/compose.d.ts +3 -10
- package/node_modules/@mui/system/compose/compose.js +0 -2
- package/node_modules/@mui/system/compose/compose.mjs +0 -2
- package/node_modules/@mui/system/createBox/createBox.d.mts +4 -4
- package/node_modules/@mui/system/createBox/createBox.d.ts +4 -4
- package/node_modules/@mui/system/createBreakpoints/createBreakpoints.d.mts +3 -54
- package/node_modules/@mui/system/createBreakpoints/createBreakpoints.d.ts +3 -54
- package/node_modules/@mui/system/createBreakpoints/createBreakpoints.js +6 -8
- package/node_modules/@mui/system/createBreakpoints/createBreakpoints.mjs +6 -8
- package/node_modules/@mui/system/createBreakpoints/index.d.mts +0 -1
- package/node_modules/@mui/system/createBreakpoints/index.d.ts +0 -1
- package/node_modules/@mui/system/createTheme/createSpacing.d.mts +1 -1
- package/node_modules/@mui/system/createTheme/createSpacing.d.ts +1 -1
- package/node_modules/@mui/system/createTheme/shape.d.mts +2 -2
- package/node_modules/@mui/system/createTheme/shape.d.ts +2 -2
- package/node_modules/@mui/system/cssGrid/cssGrid.d.mts +13 -13
- package/node_modules/@mui/system/cssGrid/cssGrid.d.ts +13 -13
- package/node_modules/@mui/system/cssGrid/cssGrid.js +0 -8
- package/node_modules/@mui/system/cssGrid/cssGrid.mjs +0 -9
- package/node_modules/@mui/system/cssVars/createCssVarsProvider.js +2 -2
- package/node_modules/@mui/system/cssVars/createCssVarsProvider.mjs +2 -2
- package/node_modules/@mui/system/cssVars/cssVarsParser.js +10 -2
- package/node_modules/@mui/system/cssVars/cssVarsParser.mjs +10 -2
- package/node_modules/@mui/system/cssVars/useCurrentColorScheme.js +1 -0
- package/node_modules/@mui/system/cssVars/useCurrentColorScheme.mjs +1 -0
- package/node_modules/@mui/system/display/display.d.mts +49 -1
- package/node_modules/@mui/system/display/display.d.ts +49 -1
- package/node_modules/@mui/system/display/display.js +2 -1
- package/node_modules/@mui/system/display/display.mjs +2 -1
- package/node_modules/@mui/system/flexbox/flexbox.d.mts +14 -14
- package/node_modules/@mui/system/flexbox/flexbox.d.ts +14 -14
- package/node_modules/@mui/system/getThemeValue/getThemeValue.d.mts +2 -1
- package/node_modules/@mui/system/getThemeValue/getThemeValue.d.ts +2 -1
- package/node_modules/@mui/system/getThemeValue/getThemeValue.js +6 -2
- package/node_modules/@mui/system/getThemeValue/getThemeValue.mjs +7 -3
- package/node_modules/@mui/system/index.js +1 -1
- package/node_modules/@mui/system/index.mjs +1 -1
- package/node_modules/@mui/system/memoTheme.d.mts +1 -1
- package/node_modules/@mui/system/memoTheme.d.ts +1 -1
- package/node_modules/@mui/system/memoize/memoize.d.mts +1 -1
- package/node_modules/@mui/system/memoize/memoize.d.ts +1 -1
- package/node_modules/@mui/system/package.json +62 -62
- package/node_modules/@mui/system/palette/palette.d.mts +4 -3
- package/node_modules/@mui/system/palette/palette.d.ts +4 -3
- package/node_modules/@mui/system/palette/palette.js +1 -0
- package/node_modules/@mui/system/palette/palette.mjs +2 -0
- package/node_modules/@mui/system/positions/positions.d.mts +49 -1
- package/node_modules/@mui/system/positions/positions.d.ts +49 -1
- package/node_modules/@mui/system/positions/positions.js +2 -1
- package/node_modules/@mui/system/positions/positions.mjs +2 -1
- package/node_modules/@mui/system/propsToClassKey/propsToClassKey.d.mts +5 -0
- package/node_modules/@mui/system/propsToClassKey/propsToClassKey.d.ts +5 -0
- package/node_modules/@mui/system/propsToClassKey/propsToClassKey.js +1 -1
- package/node_modules/@mui/system/propsToClassKey/propsToClassKey.mjs +1 -1
- package/node_modules/@mui/system/shadows/shadows.d.mts +4 -4
- package/node_modules/@mui/system/shadows/shadows.d.ts +4 -4
- package/node_modules/@mui/system/sizing/sizing.d.mts +10 -10
- package/node_modules/@mui/system/sizing/sizing.d.ts +10 -10
- package/node_modules/@mui/system/sizing/sizing.js +7 -2
- package/node_modules/@mui/system/sizing/sizing.mjs +5 -1
- package/node_modules/@mui/system/spacing/spacing.d.mts +10 -14
- package/node_modules/@mui/system/spacing/spacing.d.ts +10 -14
- package/node_modules/@mui/system/spacing/spacing.js +17 -13
- package/node_modules/@mui/system/spacing/spacing.mjs +16 -9
- package/node_modules/@mui/system/styleFunctionSx/defaultSxConfig.d.mts +1 -1
- package/node_modules/@mui/system/styleFunctionSx/defaultSxConfig.d.ts +1 -1
- package/node_modules/@mui/system/styleFunctionSx/extendSxProp.d.mts +4 -2
- package/node_modules/@mui/system/styleFunctionSx/extendSxProp.d.ts +4 -2
- package/node_modules/@mui/system/styled/styled.d.mts +1 -1
- package/node_modules/@mui/system/styled/styled.d.ts +1 -1
- package/node_modules/@mui/system/typography/typography.d.mts +10 -10
- package/node_modules/@mui/system/typography/typography.d.ts +10 -10
- package/node_modules/@mui/system/useTheme/useTheme.d.mts +4 -2
- package/node_modules/@mui/system/useTheme/useTheme.d.ts +4 -2
- package/node_modules/@mui/system/useThemeProps/getThemeProps.d.mts +2 -2
- package/node_modules/@mui/system/useThemeProps/getThemeProps.d.ts +2 -2
- package/node_modules/@mui/system/useThemeProps/index.d.mts +1 -1
- package/node_modules/@mui/system/useThemeProps/index.d.ts +1 -1
- package/node_modules/@mui/system/useThemeProps/useThemeProps.js +7 -6
- package/node_modules/@mui/system/useThemeProps/useThemeProps.mjs +7 -6
- package/node_modules/@mui/system/useThemeWithoutDefault/useThemeWithoutDefault.d.mts +2 -1
- package/node_modules/@mui/system/useThemeWithoutDefault/useThemeWithoutDefault.d.ts +2 -1
- package/node_modules/@mui/system/useThemeWithoutDefault/useThemeWithoutDefault.js +2 -2
- package/node_modules/@mui/system/useThemeWithoutDefault/useThemeWithoutDefault.mjs +2 -2
- package/node_modules/@mui/system/version/index.js +3 -3
- package/node_modules/@mui/system/version/index.mjs +3 -3
- package/node_modules/@mui/types/CHANGELOG.md +395 -1245
- package/node_modules/@mui/types/LICENSE +1 -1
- package/node_modules/@mui/types/index.d.mts +1 -1
- package/node_modules/@mui/types/index.d.ts +1 -1
- package/node_modules/@mui/types/index.js +1 -1
- package/node_modules/@mui/types/index.mjs +1 -1
- package/node_modules/@mui/types/package.json +2 -2
- package/node_modules/@mui/utils/CHANGELOG.md +263 -0
- package/node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.d.mts +2 -1
- package/node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.d.ts +2 -1
- package/node_modules/@mui/utils/LICENSE +1 -1
- package/node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js +1 -1
- package/node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.mjs +1 -1
- package/node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js +1 -1
- package/node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.mjs +1 -1
- package/node_modules/@mui/utils/fastDeepAssign/fastDeepAssign.js +6 -1
- package/node_modules/@mui/utils/fastDeepAssign/fastDeepAssign.mjs +6 -1
- package/node_modules/@mui/utils/getDisplayName/getDisplayName.d.mts +1 -1
- package/node_modules/@mui/utils/getDisplayName/getDisplayName.d.ts +1 -1
- package/node_modules/@mui/utils/getDisplayName/getDisplayName.js +1 -1
- package/node_modules/@mui/utils/getDisplayName/getDisplayName.mjs +1 -1
- package/node_modules/@mui/utils/index.d.mts +1 -0
- package/node_modules/@mui/utils/index.d.ts +1 -0
- package/node_modules/@mui/utils/index.js +9 -1
- package/node_modules/@mui/utils/index.mjs +2 -1
- package/node_modules/@mui/utils/isHostComponent/isHostComponent.d.mts +1 -1
- package/node_modules/@mui/utils/isHostComponent/isHostComponent.d.ts +1 -1
- package/node_modules/@mui/utils/isMuiElement/isMuiElement.js +1 -1
- package/node_modules/@mui/utils/isMuiElement/isMuiElement.mjs +1 -1
- package/node_modules/@mui/utils/package.json +18 -4
- package/node_modules/@mui/utils/types/DataAttributes.d.mts +45 -0
- package/node_modules/@mui/utils/types/DataAttributes.d.ts +45 -0
- package/node_modules/@mui/utils/types/DataAttributes.js +5 -0
- package/node_modules/@mui/utils/types/DataAttributes.mjs +1 -0
- package/node_modules/@mui/utils/types/index.d.mts +4 -2
- package/node_modules/@mui/utils/types/index.d.ts +4 -2
- package/node_modules/@mui/utils/useEventCallback/useEventCallback.d.mts +1 -1
- package/node_modules/@mui/utils/useEventCallback/useEventCallback.d.ts +1 -1
- package/node_modules/@mui/utils/useEventCallback/useEventCallback.js +1 -1
- package/node_modules/@mui/utils/useEventCallback/useEventCallback.mjs +1 -1
- package/node_modules/@mui/utils/useForkRef/useForkRef.js +2 -2
- package/node_modules/@mui/utils/useForkRef/useForkRef.mjs +2 -2
- package/node_modules/@mui/utils/useId/useId.js +1 -0
- package/node_modules/@mui/utils/useId/useId.mjs +1 -0
- package/node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js +2 -2
- package/node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.mjs +2 -2
- package/node_modules/@mui/utils/useRovingTabIndex/useRovingTabIndex.d.mts +1 -1
- package/node_modules/@mui/utils/useRovingTabIndex/useRovingTabIndex.d.ts +1 -1
- package/node_modules/@mui/utils/useRovingTabIndex/useRovingTabIndex.js +7 -5
- package/node_modules/@mui/utils/useRovingTabIndex/useRovingTabIndex.mjs +7 -5
- package/node_modules/@mui/utils/useValueAsRef/index.d.mts +1 -0
- package/node_modules/@mui/utils/useValueAsRef/index.d.ts +1 -0
- package/node_modules/@mui/utils/useValueAsRef/index.js +13 -0
- package/node_modules/@mui/utils/useValueAsRef/index.mjs +1 -0
- package/node_modules/@mui/utils/useValueAsRef/useValueAsRef.d.mts +14 -0
- package/node_modules/@mui/utils/useValueAsRef/useValueAsRef.d.ts +14 -0
- package/node_modules/@mui/utils/useValueAsRef/useValueAsRef.js +35 -0
- package/node_modules/@mui/utils/useValueAsRef/useValueAsRef.mjs +29 -0
- package/node_modules/react-is/package.json +3 -3
- package/package.json +3 -3
- /package/node_modules/@mui/material/transitions/{transition.js → types.js} +0 -0
- /package/node_modules/@mui/material/transitions/{transition.mjs → types.mjs} +0 -0
|
@@ -2,16 +2,109 @@
|
|
|
2
2
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
|
-
import { TransitionGroup } from 'react-transition-group';
|
|
6
5
|
import clsx from 'clsx';
|
|
6
|
+
import useOnMount from '@mui/utils/useOnMount';
|
|
7
7
|
import useTimeout from '@mui/utils/useTimeout';
|
|
8
|
-
import { keyframes, styled } from "../zero-styled/index.mjs";
|
|
8
|
+
import { keyframes, css, styled, useTheme } from "../zero-styled/index.mjs";
|
|
9
9
|
import { useDefaultProps } from "../DefaultPropsProvider/index.mjs";
|
|
10
10
|
import Ripple from "./Ripple.mjs";
|
|
11
11
|
import touchRippleClasses from "./touchRippleClasses.mjs";
|
|
12
|
+
import useEventCallback from "../utils/useEventCallback.mjs";
|
|
13
|
+
import useReducedMotion from "../transitions/useReducedMotion.mjs";
|
|
12
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
15
|
const DURATION = 550;
|
|
14
16
|
export const DELAY_RIPPLE = 80;
|
|
17
|
+
const EMPTY_OBJ = {};
|
|
18
|
+
const EMPTY_ARRAY = [];
|
|
19
|
+
const NOOP = () => {};
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Keep the same DOM order TouchRipple had when it used react-transition-group:
|
|
23
|
+
* exiting ripples stay in place, and new ripples are inserted before the final
|
|
24
|
+
* group of ripples that are waiting for their exit animation to finish.
|
|
25
|
+
*
|
|
26
|
+
* @param {number[]} prevOrder The previous DOM order, including ripples that may be exiting.
|
|
27
|
+
* @param {number[]} nextActiveKeys The ripples that should still be treated as active.
|
|
28
|
+
* @returns {number[]} The next DOM order, preserving the position of exiting ripples where possible.
|
|
29
|
+
*/
|
|
30
|
+
function mergeRippleOrder(prevOrder, nextActiveKeys) {
|
|
31
|
+
const nextKeySet = new Set(nextActiveKeys);
|
|
32
|
+
const nextKeysPending = new Map();
|
|
33
|
+
let pendingKeys = [];
|
|
34
|
+
for (const prevKey of prevOrder) {
|
|
35
|
+
if (nextKeySet.has(prevKey)) {
|
|
36
|
+
if (pendingKeys.length > 0) {
|
|
37
|
+
nextKeysPending.set(prevKey, pendingKeys);
|
|
38
|
+
pendingKeys = [];
|
|
39
|
+
}
|
|
40
|
+
} else {
|
|
41
|
+
pendingKeys.push(prevKey);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
const nextOrder = [];
|
|
45
|
+
for (const nextKey of nextActiveKeys) {
|
|
46
|
+
const pendingBefore = nextKeysPending.get(nextKey);
|
|
47
|
+
if (pendingBefore) {
|
|
48
|
+
nextOrder.push(...pendingBefore);
|
|
49
|
+
}
|
|
50
|
+
nextOrder.push(nextKey);
|
|
51
|
+
}
|
|
52
|
+
nextOrder.push(...pendingKeys);
|
|
53
|
+
return nextOrder;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Calculate where the ripple should start and how large it must be to cover the host element.
|
|
58
|
+
*
|
|
59
|
+
* @param {object} params
|
|
60
|
+
* @param {object} params.event The mouse or touch event that started the ripple.
|
|
61
|
+
* @param {HTMLElement | null} params.element The host element used for measurements. Tests pass `null`.
|
|
62
|
+
* @param {boolean} params.center If `true`, start the ripple from the center of the host element.
|
|
63
|
+
* @returns {{ rippleX: number, rippleY: number, rippleSize: number }} The ripple position and size.
|
|
64
|
+
*/
|
|
65
|
+
function computeRippleState({
|
|
66
|
+
event,
|
|
67
|
+
element,
|
|
68
|
+
center
|
|
69
|
+
}) {
|
|
70
|
+
const rect = element ? element.getBoundingClientRect() : {
|
|
71
|
+
width: 0,
|
|
72
|
+
height: 0,
|
|
73
|
+
left: 0,
|
|
74
|
+
top: 0
|
|
75
|
+
};
|
|
76
|
+
let rippleX;
|
|
77
|
+
let rippleY;
|
|
78
|
+
if (center || event === undefined || event.clientX === 0 && event.clientY === 0 || !event.clientX && !event.touches) {
|
|
79
|
+
rippleX = Math.round(rect.width / 2);
|
|
80
|
+
rippleY = Math.round(rect.height / 2);
|
|
81
|
+
} else {
|
|
82
|
+
const {
|
|
83
|
+
clientX,
|
|
84
|
+
clientY
|
|
85
|
+
} = event.touches && event.touches.length > 0 ? event.touches[0] : event;
|
|
86
|
+
rippleX = Math.round(clientX - rect.left);
|
|
87
|
+
rippleY = Math.round(clientY - rect.top);
|
|
88
|
+
}
|
|
89
|
+
let rippleSize;
|
|
90
|
+
if (center) {
|
|
91
|
+
rippleSize = Math.sqrt((2 * rect.width ** 2 + rect.height ** 2) / 3);
|
|
92
|
+
|
|
93
|
+
// Mobile Chrome can skip this animation for even pixel sizes.
|
|
94
|
+
if (rippleSize % 2 === 0) {
|
|
95
|
+
rippleSize += 1;
|
|
96
|
+
}
|
|
97
|
+
} else {
|
|
98
|
+
const sizeX = Math.max(Math.abs((element ? element.clientWidth : 0) - rippleX), rippleX) * 2 + 2;
|
|
99
|
+
const sizeY = Math.max(Math.abs((element ? element.clientHeight : 0) - rippleY), rippleY) * 2 + 2;
|
|
100
|
+
rippleSize = Math.sqrt(sizeX ** 2 + sizeY ** 2);
|
|
101
|
+
}
|
|
102
|
+
return {
|
|
103
|
+
rippleX,
|
|
104
|
+
rippleY,
|
|
105
|
+
rippleSize
|
|
106
|
+
};
|
|
107
|
+
}
|
|
15
108
|
const enterKeyframe = keyframes`
|
|
16
109
|
0% {
|
|
17
110
|
transform: scale(0);
|
|
@@ -45,6 +138,44 @@ const pulsateKeyframe = keyframes`
|
|
|
45
138
|
transform: scale(1);
|
|
46
139
|
}
|
|
47
140
|
`;
|
|
141
|
+
function getAnimationStyles(theme) {
|
|
142
|
+
if (theme.motion.reducedMotion === 'always') {
|
|
143
|
+
return null;
|
|
144
|
+
}
|
|
145
|
+
const styles = css`
|
|
146
|
+
&.${touchRippleClasses.rippleVisible} {
|
|
147
|
+
animation-name: ${enterKeyframe};
|
|
148
|
+
animation-duration: ${DURATION}ms;
|
|
149
|
+
animation-timing-function: ${theme.transitions.easing.easeInOut};
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
&.${touchRippleClasses.ripplePulsate} {
|
|
153
|
+
animation-duration: ${theme.transitions.duration.shorter}ms;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
& .${touchRippleClasses.childLeaving} {
|
|
157
|
+
animation-name: ${exitKeyframe};
|
|
158
|
+
animation-duration: ${DURATION}ms;
|
|
159
|
+
animation-timing-function: ${theme.transitions.easing.easeInOut};
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
& .${touchRippleClasses.childPulsate} {
|
|
163
|
+
animation-name: ${pulsateKeyframe};
|
|
164
|
+
animation-duration: 2500ms;
|
|
165
|
+
animation-timing-function: ${theme.transitions.easing.easeInOut};
|
|
166
|
+
animation-iteration-count: infinite;
|
|
167
|
+
animation-delay: 200ms;
|
|
168
|
+
}
|
|
169
|
+
`;
|
|
170
|
+
if (theme.motion.reducedMotion === 'system') {
|
|
171
|
+
return css`
|
|
172
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
173
|
+
${styles}
|
|
174
|
+
}
|
|
175
|
+
`;
|
|
176
|
+
}
|
|
177
|
+
return styles;
|
|
178
|
+
}
|
|
48
179
|
export const TouchRippleRoot = styled('span', {
|
|
49
180
|
name: 'MuiTouchRipple',
|
|
50
181
|
slot: 'Root'
|
|
@@ -60,8 +191,8 @@ export const TouchRippleRoot = styled('span', {
|
|
|
60
191
|
borderRadius: 'inherit'
|
|
61
192
|
});
|
|
62
193
|
|
|
63
|
-
// This `styled()`
|
|
64
|
-
// in
|
|
194
|
+
// This `styled()` call uses keyframes. styled-components only supports keyframes
|
|
195
|
+
// in template strings, so do not convert these styles to a JS object.
|
|
65
196
|
export const TouchRippleRipple = styled(Ripple, {
|
|
66
197
|
name: 'MuiTouchRipple',
|
|
67
198
|
slot: 'Ripple'
|
|
@@ -72,19 +203,16 @@ export const TouchRippleRipple = styled(Ripple, {
|
|
|
72
203
|
&.${touchRippleClasses.rippleVisible} {
|
|
73
204
|
opacity: 0.3;
|
|
74
205
|
transform: scale(1);
|
|
75
|
-
animation-name: ${enterKeyframe};
|
|
76
|
-
animation-duration: ${DURATION}ms;
|
|
77
|
-
animation-timing-function: ${({
|
|
78
|
-
theme
|
|
79
|
-
}) => theme.transitions.easing.easeInOut};
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
&.${touchRippleClasses.ripplePulsate} {
|
|
83
|
-
animation-duration: ${({
|
|
84
|
-
theme
|
|
85
|
-
}) => theme.transitions.duration.shorter}ms;
|
|
86
206
|
}
|
|
87
207
|
|
|
208
|
+
/*
|
|
209
|
+
* Order matters: 'child', 'childLeaving' and 'childPulsate' apply to the same
|
|
210
|
+
* element with equal specificity, so the later rule wins. 'child' must come
|
|
211
|
+
* before 'childLeaving' so the leaving 'opacity: 0' takes precedence. A focus
|
|
212
|
+
* (pulsate) ripple keeps 'pulsateKeyframe' (no opacity animation) on exit, so
|
|
213
|
+
* it relies on this static 'opacity: 0' to disappear on blur instead of
|
|
214
|
+
* lingering until removal.
|
|
215
|
+
*/
|
|
88
216
|
& .${touchRippleClasses.child} {
|
|
89
217
|
opacity: 1;
|
|
90
218
|
display: block;
|
|
@@ -96,11 +224,6 @@ export const TouchRippleRipple = styled(Ripple, {
|
|
|
96
224
|
|
|
97
225
|
& .${touchRippleClasses.childLeaving} {
|
|
98
226
|
opacity: 0;
|
|
99
|
-
animation-name: ${exitKeyframe};
|
|
100
|
-
animation-duration: ${DURATION}ms;
|
|
101
|
-
animation-timing-function: ${({
|
|
102
|
-
theme
|
|
103
|
-
}) => theme.transitions.easing.easeInOut};
|
|
104
227
|
}
|
|
105
228
|
|
|
106
229
|
& .${touchRippleClasses.childPulsate} {
|
|
@@ -108,35 +231,45 @@ export const TouchRippleRipple = styled(Ripple, {
|
|
|
108
231
|
/* @noflip */
|
|
109
232
|
left: 0px;
|
|
110
233
|
top: 0;
|
|
111
|
-
animation-name: ${pulsateKeyframe};
|
|
112
|
-
animation-duration: 2500ms;
|
|
113
|
-
animation-timing-function: ${({
|
|
114
|
-
theme
|
|
115
|
-
}) => theme.transitions.easing.easeInOut};
|
|
116
|
-
animation-iteration-count: infinite;
|
|
117
|
-
animation-delay: 200ms;
|
|
118
234
|
}
|
|
235
|
+
|
|
236
|
+
${({
|
|
237
|
+
theme
|
|
238
|
+
}) => getAnimationStyles(theme)}
|
|
119
239
|
`;
|
|
120
240
|
|
|
121
241
|
/**
|
|
122
242
|
* @ignore - internal component.
|
|
123
|
-
*
|
|
124
|
-
* TODO v5: Make private
|
|
125
243
|
*/
|
|
126
244
|
const TouchRipple = /*#__PURE__*/React.forwardRef(function TouchRipple(inProps, ref) {
|
|
127
245
|
const props = useDefaultProps({
|
|
128
246
|
props: inProps,
|
|
129
247
|
name: 'MuiTouchRipple'
|
|
130
248
|
});
|
|
249
|
+
const theme = useTheme();
|
|
250
|
+
const reducedMotion = useReducedMotion(theme.motion.reducedMotion, false);
|
|
131
251
|
const {
|
|
132
252
|
center: centerProp = false,
|
|
133
|
-
classes =
|
|
253
|
+
classes = EMPTY_OBJ,
|
|
134
254
|
className,
|
|
135
255
|
...other
|
|
136
256
|
} = props;
|
|
137
|
-
|
|
257
|
+
// Store ripples as data so we can keep exiting ripples mounted until their
|
|
258
|
+
// exit animation ends. Ripple calls onExited when it is safe to remove one.
|
|
259
|
+
const [rippleState, setRippleState] = React.useState({
|
|
260
|
+
items: EMPTY_ARRAY,
|
|
261
|
+
order: EMPTY_ARRAY
|
|
262
|
+
});
|
|
263
|
+
const ripples = rippleState.items;
|
|
138
264
|
const nextKey = React.useRef(0);
|
|
139
265
|
const rippleCallback = React.useRef(null);
|
|
266
|
+
const mountedRef = React.useRef(false);
|
|
267
|
+
useOnMount(() => {
|
|
268
|
+
mountedRef.current = true;
|
|
269
|
+
return () => {
|
|
270
|
+
mountedRef.current = false;
|
|
271
|
+
};
|
|
272
|
+
});
|
|
140
273
|
React.useEffect(() => {
|
|
141
274
|
if (rippleCallback.current) {
|
|
142
275
|
rippleCallback.current();
|
|
@@ -150,10 +283,23 @@ const TouchRipple = /*#__PURE__*/React.forwardRef(function TouchRipple(inProps,
|
|
|
150
283
|
// We don't want to display the ripple for touch scroll events.
|
|
151
284
|
const startTimer = useTimeout();
|
|
152
285
|
|
|
153
|
-
//
|
|
286
|
+
// Holds delayed touch-start work until the delay expires or touchend forces it to run.
|
|
154
287
|
const startTimerCommit = React.useRef(null);
|
|
155
288
|
const container = React.useRef(null);
|
|
156
|
-
const
|
|
289
|
+
const handleExited = useEventCallback(key => {
|
|
290
|
+
if (!mountedRef.current) {
|
|
291
|
+
return;
|
|
292
|
+
}
|
|
293
|
+
setRippleState(prevState => {
|
|
294
|
+
const nextItems = prevState.items.filter(ripple => ripple.key !== key);
|
|
295
|
+
const nextOrder = mergeRippleOrder(prevState.order.filter(rippleKey => rippleKey !== key), nextItems.filter(ripple => !ripple.exiting).map(ripple => ripple.key));
|
|
296
|
+
return {
|
|
297
|
+
items: nextItems,
|
|
298
|
+
order: nextOrder
|
|
299
|
+
};
|
|
300
|
+
});
|
|
301
|
+
});
|
|
302
|
+
const startCommit = useEventCallback(params => {
|
|
157
303
|
const {
|
|
158
304
|
pulsate,
|
|
159
305
|
rippleX,
|
|
@@ -161,29 +307,29 @@ const TouchRipple = /*#__PURE__*/React.forwardRef(function TouchRipple(inProps,
|
|
|
161
307
|
rippleSize,
|
|
162
308
|
cb
|
|
163
309
|
} = params;
|
|
164
|
-
|
|
165
|
-
classes: {
|
|
166
|
-
ripple: clsx(classes.ripple, touchRippleClasses.ripple),
|
|
167
|
-
rippleVisible: clsx(classes.rippleVisible, touchRippleClasses.rippleVisible),
|
|
168
|
-
ripplePulsate: clsx(classes.ripplePulsate, touchRippleClasses.ripplePulsate),
|
|
169
|
-
child: clsx(classes.child, touchRippleClasses.child),
|
|
170
|
-
childLeaving: clsx(classes.childLeaving, touchRippleClasses.childLeaving),
|
|
171
|
-
childPulsate: clsx(classes.childPulsate, touchRippleClasses.childPulsate)
|
|
172
|
-
},
|
|
173
|
-
timeout: DURATION,
|
|
174
|
-
pulsate: pulsate,
|
|
175
|
-
rippleX: rippleX,
|
|
176
|
-
rippleY: rippleY,
|
|
177
|
-
rippleSize: rippleSize
|
|
178
|
-
}, nextKey.current)]);
|
|
310
|
+
const key = nextKey.current;
|
|
179
311
|
nextKey.current += 1;
|
|
312
|
+
setRippleState(prevState => {
|
|
313
|
+
const nextItems = [...prevState.items, {
|
|
314
|
+
key,
|
|
315
|
+
pulsate,
|
|
316
|
+
rippleX,
|
|
317
|
+
rippleY,
|
|
318
|
+
rippleSize,
|
|
319
|
+
exiting: false
|
|
320
|
+
}];
|
|
321
|
+
return {
|
|
322
|
+
items: nextItems,
|
|
323
|
+
order: mergeRippleOrder(prevState.order, nextItems.filter(ripple => !ripple.exiting).map(ripple => ripple.key))
|
|
324
|
+
};
|
|
325
|
+
});
|
|
180
326
|
rippleCallback.current = cb;
|
|
181
|
-
}
|
|
182
|
-
const start =
|
|
327
|
+
});
|
|
328
|
+
const start = useEventCallback((event = EMPTY_OBJ, options = EMPTY_OBJ, cb = NOOP) => {
|
|
183
329
|
const {
|
|
184
330
|
pulsate = false,
|
|
185
331
|
center = centerProp || options.pulsate,
|
|
186
|
-
fakeElement = false //
|
|
332
|
+
fakeElement = false // Used only by tests.
|
|
187
333
|
} = options;
|
|
188
334
|
if (event?.type === 'mousedown' && ignoringMouseDown.current) {
|
|
189
335
|
ignoringMouseDown.current = false;
|
|
@@ -193,48 +339,21 @@ const TouchRipple = /*#__PURE__*/React.forwardRef(function TouchRipple(inProps,
|
|
|
193
339
|
ignoringMouseDown.current = true;
|
|
194
340
|
}
|
|
195
341
|
const element = fakeElement ? null : container.current;
|
|
196
|
-
const
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
let rippleY;
|
|
206
|
-
let rippleSize;
|
|
207
|
-
if (center || event === undefined || event.clientX === 0 && event.clientY === 0 || !event.clientX && !event.touches) {
|
|
208
|
-
rippleX = Math.round(rect.width / 2);
|
|
209
|
-
rippleY = Math.round(rect.height / 2);
|
|
210
|
-
} else {
|
|
211
|
-
const {
|
|
212
|
-
clientX,
|
|
213
|
-
clientY
|
|
214
|
-
} = event.touches && event.touches.length > 0 ? event.touches[0] : event;
|
|
215
|
-
rippleX = Math.round(clientX - rect.left);
|
|
216
|
-
rippleY = Math.round(clientY - rect.top);
|
|
217
|
-
}
|
|
218
|
-
if (center) {
|
|
219
|
-
rippleSize = Math.sqrt((2 * rect.width ** 2 + rect.height ** 2) / 3);
|
|
220
|
-
|
|
221
|
-
// For some reason the animation is broken on Mobile Chrome if the size is even.
|
|
222
|
-
if (rippleSize % 2 === 0) {
|
|
223
|
-
rippleSize += 1;
|
|
224
|
-
}
|
|
225
|
-
} else {
|
|
226
|
-
const sizeX = Math.max(Math.abs((element ? element.clientWidth : 0) - rippleX), rippleX) * 2 + 2;
|
|
227
|
-
const sizeY = Math.max(Math.abs((element ? element.clientHeight : 0) - rippleY), rippleY) * 2 + 2;
|
|
228
|
-
rippleSize = Math.sqrt(sizeX ** 2 + sizeY ** 2);
|
|
229
|
-
}
|
|
342
|
+
const {
|
|
343
|
+
rippleX,
|
|
344
|
+
rippleY,
|
|
345
|
+
rippleSize
|
|
346
|
+
} = computeRippleState({
|
|
347
|
+
event,
|
|
348
|
+
element,
|
|
349
|
+
center
|
|
350
|
+
});
|
|
230
351
|
|
|
231
|
-
//
|
|
352
|
+
// Delay touch ripples so scroll gestures do not flash a ripple.
|
|
232
353
|
if (event?.touches) {
|
|
233
|
-
//
|
|
234
|
-
//
|
|
235
|
-
// are running
|
|
354
|
+
// Ignore extra touchstart events from multi-touch. There is only one
|
|
355
|
+
// delayed start callback to clear on unmount.
|
|
236
356
|
if (startTimerCommit.current === null) {
|
|
237
|
-
// Prepare the ripple effect.
|
|
238
357
|
startTimerCommit.current = () => {
|
|
239
358
|
startCommit({
|
|
240
359
|
pulsate,
|
|
@@ -244,8 +363,6 @@ const TouchRipple = /*#__PURE__*/React.forwardRef(function TouchRipple(inProps,
|
|
|
244
363
|
cb
|
|
245
364
|
});
|
|
246
365
|
};
|
|
247
|
-
// Delay the execution of the ripple effect.
|
|
248
|
-
// We have to make a tradeoff with this delay value.
|
|
249
366
|
startTimer.start(DELAY_RIPPLE, () => {
|
|
250
367
|
if (startTimerCommit.current) {
|
|
251
368
|
startTimerCommit.current();
|
|
@@ -262,17 +379,17 @@ const TouchRipple = /*#__PURE__*/React.forwardRef(function TouchRipple(inProps,
|
|
|
262
379
|
cb
|
|
263
380
|
});
|
|
264
381
|
}
|
|
265
|
-
}
|
|
266
|
-
const pulsate =
|
|
267
|
-
start(
|
|
382
|
+
});
|
|
383
|
+
const pulsate = useEventCallback(() => {
|
|
384
|
+
start(EMPTY_OBJ, {
|
|
268
385
|
pulsate: true
|
|
269
386
|
});
|
|
270
|
-
}
|
|
271
|
-
const stop =
|
|
387
|
+
});
|
|
388
|
+
const stop = useEventCallback((event, cb) => {
|
|
272
389
|
startTimer.clear();
|
|
273
390
|
|
|
274
|
-
//
|
|
275
|
-
//
|
|
391
|
+
// If touch ends before the delay finishes, show the ripple now and stop it
|
|
392
|
+
// on the next tick so the user still gets feedback.
|
|
276
393
|
if (event?.type === 'touchend' && startTimerCommit.current) {
|
|
277
394
|
startTimerCommit.current();
|
|
278
395
|
startTimerCommit.current = null;
|
|
@@ -282,28 +399,55 @@ const TouchRipple = /*#__PURE__*/React.forwardRef(function TouchRipple(inProps,
|
|
|
282
399
|
return;
|
|
283
400
|
}
|
|
284
401
|
startTimerCommit.current = null;
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
402
|
+
setRippleState(prevState => {
|
|
403
|
+
const firstActiveIndex = prevState.items.findIndex(ripple => !ripple.exiting);
|
|
404
|
+
if (firstActiveIndex === -1) {
|
|
405
|
+
return prevState;
|
|
288
406
|
}
|
|
289
|
-
|
|
407
|
+
const nextItems = prevState.items.slice();
|
|
408
|
+
nextItems[firstActiveIndex] = {
|
|
409
|
+
...nextItems[firstActiveIndex],
|
|
410
|
+
exiting: true
|
|
411
|
+
};
|
|
412
|
+
return {
|
|
413
|
+
items: nextItems,
|
|
414
|
+
order: mergeRippleOrder(prevState.order, nextItems.filter(ripple => !ripple.exiting).map(ripple => ripple.key))
|
|
415
|
+
};
|
|
290
416
|
});
|
|
291
417
|
rippleCallback.current = cb;
|
|
292
|
-
}
|
|
418
|
+
});
|
|
293
419
|
React.useImperativeHandle(ref, () => ({
|
|
294
420
|
pulsate,
|
|
295
421
|
start,
|
|
296
422
|
stop
|
|
297
423
|
}), [pulsate, start, stop]);
|
|
424
|
+
const rippleByKey = new Map(ripples.map(ripple => [ripple.key, ripple]));
|
|
425
|
+
const orderedRipples = rippleState.order.map(rippleKey => rippleByKey.get(rippleKey)).filter(Boolean);
|
|
426
|
+
|
|
427
|
+
// Keep the old react-transition-group DOM order:
|
|
428
|
+
// exiting ripples stay in place, and new ripples are inserted before the
|
|
429
|
+
// final group waiting for its exit animation to finish.
|
|
298
430
|
return /*#__PURE__*/_jsx(TouchRippleRoot, {
|
|
299
431
|
className: clsx(touchRippleClasses.root, classes.root, className),
|
|
300
432
|
ref: container,
|
|
301
433
|
...other,
|
|
302
|
-
children: /*#__PURE__*/_jsx(
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
434
|
+
children: orderedRipples.map(ripple => /*#__PURE__*/_jsx(TouchRippleRipple, {
|
|
435
|
+
classes: {
|
|
436
|
+
ripple: clsx(classes.ripple, touchRippleClasses.ripple),
|
|
437
|
+
rippleVisible: clsx(classes.rippleVisible, touchRippleClasses.rippleVisible),
|
|
438
|
+
ripplePulsate: clsx(classes.ripplePulsate, touchRippleClasses.ripplePulsate),
|
|
439
|
+
child: clsx(classes.child, touchRippleClasses.child),
|
|
440
|
+
childLeaving: clsx(classes.childLeaving, touchRippleClasses.childLeaving),
|
|
441
|
+
childPulsate: clsx(classes.childPulsate, touchRippleClasses.childPulsate)
|
|
442
|
+
},
|
|
443
|
+
timeout: reducedMotion.shouldReduceMotion ? 0 : DURATION,
|
|
444
|
+
pulsate: ripple.pulsate,
|
|
445
|
+
rippleX: ripple.rippleX,
|
|
446
|
+
rippleY: ripple.rippleY,
|
|
447
|
+
rippleSize: ripple.rippleSize,
|
|
448
|
+
in: !ripple.exiting,
|
|
449
|
+
onExited: () => handleExited(ripple.key)
|
|
450
|
+
}, ripple.key))
|
|
307
451
|
});
|
|
308
452
|
});
|
|
309
453
|
process.env.NODE_ENV !== "production" ? TouchRipple.propTypes /* remove-proptypes */ = {
|
|
@@ -267,12 +267,12 @@ const ButtonGroup = /*#__PURE__*/React.forwardRef(function ButtonGroup(inProps,
|
|
|
267
267
|
color,
|
|
268
268
|
disabled,
|
|
269
269
|
disableElevation,
|
|
270
|
-
disableFocusRipple,
|
|
271
|
-
disableRipple,
|
|
270
|
+
disableFocusRipple: props.disableFocusRipple,
|
|
271
|
+
disableRipple: props.disableRipple,
|
|
272
272
|
fullWidth,
|
|
273
273
|
size,
|
|
274
274
|
variant
|
|
275
|
-
}), [color, disabled, disableElevation, disableFocusRipple, disableRipple, fullWidth, size, variant, classes.grouped]);
|
|
275
|
+
}), [color, disabled, disableElevation, props.disableFocusRipple, props.disableRipple, fullWidth, size, variant, classes.grouped]);
|
|
276
276
|
const validChildren = (0, _getValidReactChildren.default)(children);
|
|
277
277
|
const childrenCount = validChildren.length;
|
|
278
278
|
const getButtonPositionClassName = index => {
|
|
@@ -260,12 +260,12 @@ const ButtonGroup = /*#__PURE__*/React.forwardRef(function ButtonGroup(inProps,
|
|
|
260
260
|
color,
|
|
261
261
|
disabled,
|
|
262
262
|
disableElevation,
|
|
263
|
-
disableFocusRipple,
|
|
264
|
-
disableRipple,
|
|
263
|
+
disableFocusRipple: props.disableFocusRipple,
|
|
264
|
+
disableRipple: props.disableRipple,
|
|
265
265
|
fullWidth,
|
|
266
266
|
size,
|
|
267
267
|
variant
|
|
268
|
-
}), [color, disabled, disableElevation, disableFocusRipple, disableRipple, fullWidth, size, variant, classes.grouped]);
|
|
268
|
+
}), [color, disabled, disableElevation, props.disableFocusRipple, props.disableRipple, fullWidth, size, variant, classes.grouped]);
|
|
269
269
|
const validChildren = getValidReactChildren(children);
|
|
270
270
|
const childrenCount = validChildren.length;
|
|
271
271
|
const getButtonPositionClassName = index => {
|