@sitecore/sc-contenthub-blok 1.0.28 → 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/esm/BlokTheme.js +23 -17
- package/esm/BlokTheme.js.map +1 -1
- 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
|
@@ -10,21 +10,23 @@ exports.default = void 0;
|
|
|
10
10
|
exports.setTranslateValue = setTranslateValue;
|
|
11
11
|
var React = _interopRequireWildcard(require("react"));
|
|
12
12
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
|
-
var _reactTransitionGroup = require("react-transition-group");
|
|
14
13
|
var _chainPropTypes = _interopRequireDefault(require("@mui/utils/chainPropTypes"));
|
|
15
14
|
var _HTMLElementType = _interopRequireDefault(require("@mui/utils/HTMLElementType"));
|
|
16
15
|
var _elementAcceptingRef = _interopRequireDefault(require("@mui/utils/elementAcceptingRef"));
|
|
17
16
|
var _getReactElementRef = _interopRequireDefault(require("@mui/utils/getReactElementRef"));
|
|
17
|
+
var _Transition = _interopRequireDefault(require("../internal/Transition"));
|
|
18
18
|
var _isLayoutSupported = _interopRequireDefault(require("../utils/isLayoutSupported"));
|
|
19
19
|
var _debounce = _interopRequireDefault(require("../utils/debounce"));
|
|
20
20
|
var _useForkRef = _interopRequireDefault(require("../utils/useForkRef"));
|
|
21
21
|
var _zeroStyled = require("../zero-styled");
|
|
22
|
+
var _useReducedMotion = _interopRequireDefault(require("../transitions/useReducedMotion"));
|
|
22
23
|
var _utils = require("../transitions/utils");
|
|
23
24
|
var _utils2 = require("../utils");
|
|
24
25
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
25
26
|
const hiddenStyles = {
|
|
26
27
|
visibility: 'hidden'
|
|
27
28
|
};
|
|
29
|
+
const DEFAULT_TRANSLATE_OPTIONS = {};
|
|
28
30
|
|
|
29
31
|
/**
|
|
30
32
|
* Detects SwipeableDrawer's active-swipe `translate(x, y)` transform.
|
|
@@ -34,9 +36,8 @@ function isGestureTranslate(transform) {
|
|
|
34
36
|
return typeof transform === 'string' && /^translate\(.+,\s*.+\)$/.test(transform);
|
|
35
37
|
}
|
|
36
38
|
|
|
37
|
-
//
|
|
38
|
-
|
|
39
|
-
function getTranslateValue(direction, node, resolvedContainer, options = {}) {
|
|
39
|
+
// Move the node off-screen. Later we reset transform to `none` to slide it in.
|
|
40
|
+
function getTranslateValue(direction, node, resolvedContainer, options = DEFAULT_TRANSLATE_OPTIONS) {
|
|
40
41
|
const {
|
|
41
42
|
resetInlineTransform = true
|
|
42
43
|
} = options;
|
|
@@ -45,9 +46,9 @@ function getTranslateValue(direction, node, resolvedContainer, options = {}) {
|
|
|
45
46
|
let rect;
|
|
46
47
|
let transform;
|
|
47
48
|
if (resetInlineTransform) {
|
|
48
|
-
//
|
|
49
|
-
//
|
|
50
|
-
//
|
|
49
|
+
// Read layout from the element's natural position, not from a previous
|
|
50
|
+
// off-screen transform. Clear transition too, or the browser may report an
|
|
51
|
+
// in-between animated value during exit.
|
|
51
52
|
const previousTransform = node.style.transform;
|
|
52
53
|
const previousTransition = node.style.transition;
|
|
53
54
|
node.style.transition = '';
|
|
@@ -104,7 +105,6 @@ function setTranslateValue(direction, node, containerProp, options) {
|
|
|
104
105
|
|
|
105
106
|
/**
|
|
106
107
|
* The Slide transition is used by the [Drawer](/material-ui/react-drawer/) component.
|
|
107
|
-
* It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.
|
|
108
108
|
*/
|
|
109
109
|
const Slide = /*#__PURE__*/React.forwardRef(function Slide(props, ref) {
|
|
110
110
|
const theme = (0, _zeroStyled.useTheme)();
|
|
@@ -121,6 +121,7 @@ const Slide = /*#__PURE__*/React.forwardRef(function Slide(props, ref) {
|
|
|
121
121
|
appear = true,
|
|
122
122
|
children,
|
|
123
123
|
container: containerProp,
|
|
124
|
+
disablePrefersReducedMotion = false,
|
|
124
125
|
direction = 'down',
|
|
125
126
|
easing: easingProp = defaultEasing,
|
|
126
127
|
in: inProp,
|
|
@@ -134,12 +135,15 @@ const Slide = /*#__PURE__*/React.forwardRef(function Slide(props, ref) {
|
|
|
134
135
|
timeout = defaultTimeout,
|
|
135
136
|
...other
|
|
136
137
|
} = props;
|
|
138
|
+
const reducedMotion = (0, _useReducedMotion.default)(theme.motion.reducedMotion, disablePrefersReducedMotion);
|
|
137
139
|
const childrenRef = React.useRef(null);
|
|
138
140
|
const preserveInlineTransformRef = React.useRef(false);
|
|
139
141
|
const handleRef = (0, _useForkRef.default)((0, _getReactElementRef.default)(children), childrenRef, ref);
|
|
140
142
|
const handleEnter = (0, _utils.normalizedTransitionCallback)(childrenRef, (node, isAppearing) => {
|
|
141
143
|
setTranslateValue(direction, node, containerProp);
|
|
142
|
-
(
|
|
144
|
+
if (!reducedMotion.shouldReduceMotion) {
|
|
145
|
+
(0, _utils.reflow)(node);
|
|
146
|
+
}
|
|
143
147
|
if (onEnter) {
|
|
144
148
|
onEnter(node, isAppearing);
|
|
145
149
|
}
|
|
@@ -152,7 +156,15 @@ const Slide = /*#__PURE__*/React.forwardRef(function Slide(props, ref) {
|
|
|
152
156
|
}, {
|
|
153
157
|
mode: 'enter'
|
|
154
158
|
});
|
|
155
|
-
|
|
159
|
+
const transitionTiming = reducedMotion.getTransitionTiming({
|
|
160
|
+
duration: transitionProps.duration,
|
|
161
|
+
delay: transitionProps.delay
|
|
162
|
+
});
|
|
163
|
+
node.style.transition = theme.transitions.create('transform', {
|
|
164
|
+
duration: transitionTiming.duration,
|
|
165
|
+
easing: transitionProps.easing,
|
|
166
|
+
delay: transitionTiming.delay
|
|
167
|
+
});
|
|
156
168
|
node.style.transform = 'none';
|
|
157
169
|
if (onEntering) {
|
|
158
170
|
onEntering(node, isAppearing);
|
|
@@ -168,7 +180,15 @@ const Slide = /*#__PURE__*/React.forwardRef(function Slide(props, ref) {
|
|
|
168
180
|
}, {
|
|
169
181
|
mode: 'exit'
|
|
170
182
|
});
|
|
171
|
-
|
|
183
|
+
const transitionTiming = reducedMotion.getTransitionTiming({
|
|
184
|
+
duration: transitionProps.duration,
|
|
185
|
+
delay: transitionProps.delay
|
|
186
|
+
});
|
|
187
|
+
node.style.transition = theme.transitions.create('transform', {
|
|
188
|
+
duration: transitionTiming.duration,
|
|
189
|
+
easing: transitionProps.easing,
|
|
190
|
+
delay: transitionTiming.delay
|
|
191
|
+
});
|
|
172
192
|
const preserveInlineTransform = isGestureTranslate(node.style.transform);
|
|
173
193
|
preserveInlineTransformRef.current = preserveInlineTransform;
|
|
174
194
|
|
|
@@ -183,25 +203,22 @@ const Slide = /*#__PURE__*/React.forwardRef(function Slide(props, ref) {
|
|
|
183
203
|
});
|
|
184
204
|
const handleExited = (0, _utils.normalizedTransitionCallback)(childrenRef, node => {
|
|
185
205
|
preserveInlineTransformRef.current = false;
|
|
186
|
-
//
|
|
206
|
+
// Hidden nodes stay off-screen without animating.
|
|
187
207
|
node.style.transition = '';
|
|
188
208
|
if (onExited) {
|
|
189
209
|
onExited(node);
|
|
190
210
|
}
|
|
191
211
|
});
|
|
192
|
-
const handleAddEndListener = next => {
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
addEndListener(childrenRef.current, next);
|
|
196
|
-
}
|
|
197
|
-
};
|
|
212
|
+
const handleAddEndListener = addEndListener ? next => {
|
|
213
|
+
addEndListener(childrenRef.current, next);
|
|
214
|
+
} : undefined;
|
|
198
215
|
const updatePosition = React.useCallback(() => {
|
|
199
216
|
if (childrenRef.current) {
|
|
200
217
|
setTranslateValue(direction, childrenRef.current, containerProp);
|
|
201
218
|
}
|
|
202
219
|
}, [direction, containerProp]);
|
|
203
220
|
React.useEffect(() => {
|
|
204
|
-
// Skip
|
|
221
|
+
// Skip resize listeners when the off-screen position does not depend on screen size.
|
|
205
222
|
if (inProp || direction === 'down' || direction === 'right') {
|
|
206
223
|
return undefined;
|
|
207
224
|
}
|
|
@@ -219,12 +236,12 @@ const Slide = /*#__PURE__*/React.forwardRef(function Slide(props, ref) {
|
|
|
219
236
|
}, [direction, inProp, containerProp]);
|
|
220
237
|
React.useEffect(() => {
|
|
221
238
|
if (!inProp && !preserveInlineTransformRef.current) {
|
|
222
|
-
//
|
|
223
|
-
//
|
|
239
|
+
// While hidden, keep the child at the correct off-screen position if
|
|
240
|
+
// direction or container changes.
|
|
224
241
|
updatePosition();
|
|
225
242
|
}
|
|
226
243
|
}, [inProp, updatePosition]);
|
|
227
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
244
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Transition.default, {
|
|
228
245
|
nodeRef: childrenRef,
|
|
229
246
|
onEnter: handleEnter,
|
|
230
247
|
onEntered: handleEntered,
|
|
@@ -235,12 +252,15 @@ const Slide = /*#__PURE__*/React.forwardRef(function Slide(props, ref) {
|
|
|
235
252
|
addEndListener: handleAddEndListener,
|
|
236
253
|
appear: appear,
|
|
237
254
|
in: inProp,
|
|
255
|
+
reduceMotion: reducedMotion.shouldReduceMotion,
|
|
238
256
|
timeout: timeout,
|
|
239
257
|
...other,
|
|
240
258
|
children: (state, {
|
|
241
259
|
ownerState,
|
|
242
260
|
...restChildProps
|
|
243
261
|
}) => {
|
|
262
|
+
// Do not pass ownerState to a DOM child. ownerState is only for
|
|
263
|
+
// Material UI styling, and React would treat it as an invalid DOM attribute.
|
|
244
264
|
let childStyle;
|
|
245
265
|
if (state === 'exited' && !inProp) {
|
|
246
266
|
childStyle = style || children.props.style ? {
|
|
@@ -270,9 +290,12 @@ process.env.NODE_ENV !== "production" ? Slide.propTypes /* remove-proptypes */ =
|
|
|
270
290
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
271
291
|
// └─────────────────────────────────────────────────────────────────────┘
|
|
272
292
|
/**
|
|
273
|
-
* Add a custom transition end trigger.
|
|
274
|
-
*
|
|
275
|
-
*
|
|
293
|
+
* Add a custom transition end trigger.
|
|
294
|
+
* Use it when you need custom logic to decide when the transition has ended.
|
|
295
|
+
* Note: Timeouts are still used as a fallback if provided.
|
|
296
|
+
*
|
|
297
|
+
* @param {HTMLElement} node The transitioning DOM node.
|
|
298
|
+
* @param {Function} done Call this when the transition has finished.
|
|
276
299
|
*/
|
|
277
300
|
addEndListener: _propTypes.default.func,
|
|
278
301
|
/**
|
|
@@ -310,6 +333,11 @@ process.env.NODE_ENV !== "production" ? Slide.propTypes /* remove-proptypes */ =
|
|
|
310
333
|
* @default 'down'
|
|
311
334
|
*/
|
|
312
335
|
direction: _propTypes.default.oneOf(['down', 'left', 'right', 'up']),
|
|
336
|
+
/**
|
|
337
|
+
* If `true`, the transition ignores `theme.motion.reducedMotion` and keeps its normal timing.
|
|
338
|
+
* @default false
|
|
339
|
+
*/
|
|
340
|
+
disablePrefersReducedMotion: _propTypes.default.bool,
|
|
313
341
|
/**
|
|
314
342
|
* The transition timing function.
|
|
315
343
|
* You may specify a single easing or a object containing enter and exit values.
|
|
@@ -2,21 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
|
-
import { Transition } from 'react-transition-group';
|
|
6
5
|
import chainPropTypes from '@mui/utils/chainPropTypes';
|
|
7
6
|
import HTMLElementType from '@mui/utils/HTMLElementType';
|
|
8
7
|
import elementAcceptingRef from '@mui/utils/elementAcceptingRef';
|
|
9
8
|
import getReactElementRef from '@mui/utils/getReactElementRef';
|
|
9
|
+
import Transition from "../internal/Transition.mjs";
|
|
10
10
|
import isLayoutSupported from "../utils/isLayoutSupported.mjs";
|
|
11
11
|
import debounce from "../utils/debounce.mjs";
|
|
12
12
|
import useForkRef from "../utils/useForkRef.mjs";
|
|
13
13
|
import { useTheme } from "../zero-styled/index.mjs";
|
|
14
|
+
import useReducedMotion from "../transitions/useReducedMotion.mjs";
|
|
14
15
|
import { normalizedTransitionCallback, reflow, getTransitionProps, getTranslateOffsets } from "../transitions/utils.mjs";
|
|
15
16
|
import { ownerWindow } from "../utils/index.mjs";
|
|
16
17
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
18
|
const hiddenStyles = {
|
|
18
19
|
visibility: 'hidden'
|
|
19
20
|
};
|
|
21
|
+
const DEFAULT_TRANSLATE_OPTIONS = {};
|
|
20
22
|
|
|
21
23
|
/**
|
|
22
24
|
* Detects SwipeableDrawer's active-swipe `translate(x, y)` transform.
|
|
@@ -26,9 +28,8 @@ function isGestureTranslate(transform) {
|
|
|
26
28
|
return typeof transform === 'string' && /^translate\(.+,\s*.+\)$/.test(transform);
|
|
27
29
|
}
|
|
28
30
|
|
|
29
|
-
//
|
|
30
|
-
|
|
31
|
-
function getTranslateValue(direction, node, resolvedContainer, options = {}) {
|
|
31
|
+
// Move the node off-screen. Later we reset transform to `none` to slide it in.
|
|
32
|
+
function getTranslateValue(direction, node, resolvedContainer, options = DEFAULT_TRANSLATE_OPTIONS) {
|
|
32
33
|
const {
|
|
33
34
|
resetInlineTransform = true
|
|
34
35
|
} = options;
|
|
@@ -37,9 +38,9 @@ function getTranslateValue(direction, node, resolvedContainer, options = {}) {
|
|
|
37
38
|
let rect;
|
|
38
39
|
let transform;
|
|
39
40
|
if (resetInlineTransform) {
|
|
40
|
-
//
|
|
41
|
-
//
|
|
42
|
-
//
|
|
41
|
+
// Read layout from the element's natural position, not from a previous
|
|
42
|
+
// off-screen transform. Clear transition too, or the browser may report an
|
|
43
|
+
// in-between animated value during exit.
|
|
43
44
|
const previousTransform = node.style.transform;
|
|
44
45
|
const previousTransition = node.style.transition;
|
|
45
46
|
node.style.transition = '';
|
|
@@ -96,7 +97,6 @@ export function setTranslateValue(direction, node, containerProp, options) {
|
|
|
96
97
|
|
|
97
98
|
/**
|
|
98
99
|
* The Slide transition is used by the [Drawer](/material-ui/react-drawer/) component.
|
|
99
|
-
* It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.
|
|
100
100
|
*/
|
|
101
101
|
const Slide = /*#__PURE__*/React.forwardRef(function Slide(props, ref) {
|
|
102
102
|
const theme = useTheme();
|
|
@@ -113,6 +113,7 @@ const Slide = /*#__PURE__*/React.forwardRef(function Slide(props, ref) {
|
|
|
113
113
|
appear = true,
|
|
114
114
|
children,
|
|
115
115
|
container: containerProp,
|
|
116
|
+
disablePrefersReducedMotion = false,
|
|
116
117
|
direction = 'down',
|
|
117
118
|
easing: easingProp = defaultEasing,
|
|
118
119
|
in: inProp,
|
|
@@ -126,12 +127,15 @@ const Slide = /*#__PURE__*/React.forwardRef(function Slide(props, ref) {
|
|
|
126
127
|
timeout = defaultTimeout,
|
|
127
128
|
...other
|
|
128
129
|
} = props;
|
|
130
|
+
const reducedMotion = useReducedMotion(theme.motion.reducedMotion, disablePrefersReducedMotion);
|
|
129
131
|
const childrenRef = React.useRef(null);
|
|
130
132
|
const preserveInlineTransformRef = React.useRef(false);
|
|
131
133
|
const handleRef = useForkRef(getReactElementRef(children), childrenRef, ref);
|
|
132
134
|
const handleEnter = normalizedTransitionCallback(childrenRef, (node, isAppearing) => {
|
|
133
135
|
setTranslateValue(direction, node, containerProp);
|
|
134
|
-
|
|
136
|
+
if (!reducedMotion.shouldReduceMotion) {
|
|
137
|
+
reflow(node);
|
|
138
|
+
}
|
|
135
139
|
if (onEnter) {
|
|
136
140
|
onEnter(node, isAppearing);
|
|
137
141
|
}
|
|
@@ -144,7 +148,15 @@ const Slide = /*#__PURE__*/React.forwardRef(function Slide(props, ref) {
|
|
|
144
148
|
}, {
|
|
145
149
|
mode: 'enter'
|
|
146
150
|
});
|
|
147
|
-
|
|
151
|
+
const transitionTiming = reducedMotion.getTransitionTiming({
|
|
152
|
+
duration: transitionProps.duration,
|
|
153
|
+
delay: transitionProps.delay
|
|
154
|
+
});
|
|
155
|
+
node.style.transition = theme.transitions.create('transform', {
|
|
156
|
+
duration: transitionTiming.duration,
|
|
157
|
+
easing: transitionProps.easing,
|
|
158
|
+
delay: transitionTiming.delay
|
|
159
|
+
});
|
|
148
160
|
node.style.transform = 'none';
|
|
149
161
|
if (onEntering) {
|
|
150
162
|
onEntering(node, isAppearing);
|
|
@@ -160,7 +172,15 @@ const Slide = /*#__PURE__*/React.forwardRef(function Slide(props, ref) {
|
|
|
160
172
|
}, {
|
|
161
173
|
mode: 'exit'
|
|
162
174
|
});
|
|
163
|
-
|
|
175
|
+
const transitionTiming = reducedMotion.getTransitionTiming({
|
|
176
|
+
duration: transitionProps.duration,
|
|
177
|
+
delay: transitionProps.delay
|
|
178
|
+
});
|
|
179
|
+
node.style.transition = theme.transitions.create('transform', {
|
|
180
|
+
duration: transitionTiming.duration,
|
|
181
|
+
easing: transitionProps.easing,
|
|
182
|
+
delay: transitionTiming.delay
|
|
183
|
+
});
|
|
164
184
|
const preserveInlineTransform = isGestureTranslate(node.style.transform);
|
|
165
185
|
preserveInlineTransformRef.current = preserveInlineTransform;
|
|
166
186
|
|
|
@@ -175,25 +195,22 @@ const Slide = /*#__PURE__*/React.forwardRef(function Slide(props, ref) {
|
|
|
175
195
|
});
|
|
176
196
|
const handleExited = normalizedTransitionCallback(childrenRef, node => {
|
|
177
197
|
preserveInlineTransformRef.current = false;
|
|
178
|
-
//
|
|
198
|
+
// Hidden nodes stay off-screen without animating.
|
|
179
199
|
node.style.transition = '';
|
|
180
200
|
if (onExited) {
|
|
181
201
|
onExited(node);
|
|
182
202
|
}
|
|
183
203
|
});
|
|
184
|
-
const handleAddEndListener = next => {
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
addEndListener(childrenRef.current, next);
|
|
188
|
-
}
|
|
189
|
-
};
|
|
204
|
+
const handleAddEndListener = addEndListener ? next => {
|
|
205
|
+
addEndListener(childrenRef.current, next);
|
|
206
|
+
} : undefined;
|
|
190
207
|
const updatePosition = React.useCallback(() => {
|
|
191
208
|
if (childrenRef.current) {
|
|
192
209
|
setTranslateValue(direction, childrenRef.current, containerProp);
|
|
193
210
|
}
|
|
194
211
|
}, [direction, containerProp]);
|
|
195
212
|
React.useEffect(() => {
|
|
196
|
-
// Skip
|
|
213
|
+
// Skip resize listeners when the off-screen position does not depend on screen size.
|
|
197
214
|
if (inProp || direction === 'down' || direction === 'right') {
|
|
198
215
|
return undefined;
|
|
199
216
|
}
|
|
@@ -211,8 +228,8 @@ const Slide = /*#__PURE__*/React.forwardRef(function Slide(props, ref) {
|
|
|
211
228
|
}, [direction, inProp, containerProp]);
|
|
212
229
|
React.useEffect(() => {
|
|
213
230
|
if (!inProp && !preserveInlineTransformRef.current) {
|
|
214
|
-
//
|
|
215
|
-
//
|
|
231
|
+
// While hidden, keep the child at the correct off-screen position if
|
|
232
|
+
// direction or container changes.
|
|
216
233
|
updatePosition();
|
|
217
234
|
}
|
|
218
235
|
}, [inProp, updatePosition]);
|
|
@@ -227,12 +244,15 @@ const Slide = /*#__PURE__*/React.forwardRef(function Slide(props, ref) {
|
|
|
227
244
|
addEndListener: handleAddEndListener,
|
|
228
245
|
appear: appear,
|
|
229
246
|
in: inProp,
|
|
247
|
+
reduceMotion: reducedMotion.shouldReduceMotion,
|
|
230
248
|
timeout: timeout,
|
|
231
249
|
...other,
|
|
232
250
|
children: (state, {
|
|
233
251
|
ownerState,
|
|
234
252
|
...restChildProps
|
|
235
253
|
}) => {
|
|
254
|
+
// Do not pass ownerState to a DOM child. ownerState is only for
|
|
255
|
+
// Material UI styling, and React would treat it as an invalid DOM attribute.
|
|
236
256
|
let childStyle;
|
|
237
257
|
if (state === 'exited' && !inProp) {
|
|
238
258
|
childStyle = style || children.props.style ? {
|
|
@@ -262,9 +282,12 @@ process.env.NODE_ENV !== "production" ? Slide.propTypes /* remove-proptypes */ =
|
|
|
262
282
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
263
283
|
// └─────────────────────────────────────────────────────────────────────┘
|
|
264
284
|
/**
|
|
265
|
-
* Add a custom transition end trigger.
|
|
266
|
-
*
|
|
267
|
-
*
|
|
285
|
+
* Add a custom transition end trigger.
|
|
286
|
+
* Use it when you need custom logic to decide when the transition has ended.
|
|
287
|
+
* Note: Timeouts are still used as a fallback if provided.
|
|
288
|
+
*
|
|
289
|
+
* @param {HTMLElement} node The transitioning DOM node.
|
|
290
|
+
* @param {Function} done Call this when the transition has finished.
|
|
268
291
|
*/
|
|
269
292
|
addEndListener: PropTypes.func,
|
|
270
293
|
/**
|
|
@@ -302,6 +325,11 @@ process.env.NODE_ENV !== "production" ? Slide.propTypes /* remove-proptypes */ =
|
|
|
302
325
|
* @default 'down'
|
|
303
326
|
*/
|
|
304
327
|
direction: PropTypes.oneOf(['down', 'left', 'right', 'up']),
|
|
328
|
+
/**
|
|
329
|
+
* If `true`, the transition ignores `theme.motion.reducedMotion` and keeps its normal timing.
|
|
330
|
+
* @default false
|
|
331
|
+
*/
|
|
332
|
+
disablePrefersReducedMotion: PropTypes.bool,
|
|
305
333
|
/**
|
|
306
334
|
* The transition timing function.
|
|
307
335
|
* You may specify a single easing or a object containing enter and exit values.
|
|
@@ -24,6 +24,7 @@ var _capitalize = _interopRequireDefault(require("../utils/capitalize"));
|
|
|
24
24
|
var _createSimplePaletteValueFilter = _interopRequireDefault(require("../utils/createSimplePaletteValueFilter"));
|
|
25
25
|
var _SliderValueLabel = _interopRequireDefault(require("./SliderValueLabel"));
|
|
26
26
|
var _sliderClasses = _interopRequireWildcard(require("./sliderClasses"));
|
|
27
|
+
var _utils = require("../transitions/utils");
|
|
27
28
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
28
29
|
function Identity(x) {
|
|
29
30
|
return x;
|
|
@@ -183,7 +184,7 @@ const SliderTrack = exports.SliderTrack = (0, _zeroStyled.styled)('span', {
|
|
|
183
184
|
borderRadius: 'inherit',
|
|
184
185
|
border: '1px solid currentColor',
|
|
185
186
|
backgroundColor: 'currentColor',
|
|
186
|
-
|
|
187
|
+
...(0, _utils.getTransitionStyles)(theme, ['left', 'width', 'bottom', 'height'], {
|
|
187
188
|
duration: theme.transitions.duration.shortest
|
|
188
189
|
}),
|
|
189
190
|
variants: [{
|
|
@@ -259,7 +260,7 @@ const SliderThumb = exports.SliderThumb = (0, _zeroStyled.styled)('span', {
|
|
|
259
260
|
display: 'flex',
|
|
260
261
|
alignItems: 'center',
|
|
261
262
|
justifyContent: 'center',
|
|
262
|
-
|
|
263
|
+
...(0, _utils.getTransitionStyles)(theme, ['box-shadow', 'left', 'bottom'], {
|
|
263
264
|
duration: theme.transitions.duration.shortest
|
|
264
265
|
}),
|
|
265
266
|
'@media (forced-colors: active)': {
|
|
@@ -343,7 +344,7 @@ const SliderValueLabel = exports.SliderValueLabel = (0, _zeroStyled.styled)(_Sli
|
|
|
343
344
|
whiteSpace: 'nowrap',
|
|
344
345
|
...theme.typography.body2,
|
|
345
346
|
fontWeight: 500,
|
|
346
|
-
|
|
347
|
+
...(0, _utils.getTransitionStyles)(theme, ['transform'], {
|
|
347
348
|
duration: theme.transitions.duration.shortest
|
|
348
349
|
}),
|
|
349
350
|
position: 'absolute',
|
|
@@ -17,6 +17,7 @@ import capitalize from "../utils/capitalize.mjs";
|
|
|
17
17
|
import createSimplePaletteValueFilter from "../utils/createSimplePaletteValueFilter.mjs";
|
|
18
18
|
import BaseSliderValueLabel from "./SliderValueLabel.mjs";
|
|
19
19
|
import sliderClasses, { getSliderUtilityClass } from "./sliderClasses.mjs";
|
|
20
|
+
import { getTransitionStyles } from "../transitions/utils.mjs";
|
|
20
21
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
21
22
|
function Identity(x) {
|
|
22
23
|
return x;
|
|
@@ -176,7 +177,7 @@ export const SliderTrack = styled('span', {
|
|
|
176
177
|
borderRadius: 'inherit',
|
|
177
178
|
border: '1px solid currentColor',
|
|
178
179
|
backgroundColor: 'currentColor',
|
|
179
|
-
|
|
180
|
+
...getTransitionStyles(theme, ['left', 'width', 'bottom', 'height'], {
|
|
180
181
|
duration: theme.transitions.duration.shortest
|
|
181
182
|
}),
|
|
182
183
|
variants: [{
|
|
@@ -252,7 +253,7 @@ export const SliderThumb = styled('span', {
|
|
|
252
253
|
display: 'flex',
|
|
253
254
|
alignItems: 'center',
|
|
254
255
|
justifyContent: 'center',
|
|
255
|
-
|
|
256
|
+
...getTransitionStyles(theme, ['box-shadow', 'left', 'bottom'], {
|
|
256
257
|
duration: theme.transitions.duration.shortest
|
|
257
258
|
}),
|
|
258
259
|
'@media (forced-colors: active)': {
|
|
@@ -336,7 +337,7 @@ const SliderValueLabel = styled(BaseSliderValueLabel, {
|
|
|
336
337
|
whiteSpace: 'nowrap',
|
|
337
338
|
...theme.typography.body2,
|
|
338
339
|
fontWeight: 500,
|
|
339
|
-
|
|
340
|
+
...getTransitionStyles(theme, ['transform'], {
|
|
340
341
|
duration: theme.transitions.duration.shortest
|
|
341
342
|
}),
|
|
342
343
|
position: 'absolute',
|
|
@@ -7,7 +7,7 @@ declare function SliderValueLabel(props: SliderValueLabelProps): React.ReactElem
|
|
|
7
7
|
className?: string | undefined;
|
|
8
8
|
children?: React.ReactNode;
|
|
9
9
|
}, string | React.JSXElementConstructor<any>> | null;
|
|
10
|
+
export default SliderValueLabel;
|
|
10
11
|
declare namespace SliderValueLabel {
|
|
11
12
|
var propTypes: any;
|
|
12
|
-
}
|
|
13
|
-
export default SliderValueLabel;
|
|
13
|
+
}
|
|
@@ -7,7 +7,7 @@ declare function SliderValueLabel(props: SliderValueLabelProps): React.ReactElem
|
|
|
7
7
|
className?: string | undefined;
|
|
8
8
|
children?: React.ReactNode;
|
|
9
9
|
}, string | React.JSXElementConstructor<any>> | null;
|
|
10
|
+
export default SliderValueLabel;
|
|
10
11
|
declare namespace SliderValueLabel {
|
|
11
12
|
var propTypes: any;
|
|
12
|
-
}
|
|
13
|
-
export default SliderValueLabel;
|
|
13
|
+
}
|
|
@@ -116,8 +116,8 @@ function focusThumb(sliderRef, activeIndex, setActive, focusVisible) {
|
|
|
116
116
|
preventScroll: true,
|
|
117
117
|
// Prevent pointer-driven focus rings in browsers that support this option.
|
|
118
118
|
// Chrome 144+ supports `focusVisible` in `HTMLElement.focus()` options.
|
|
119
|
-
// @ts-expect-error `focusVisible` is not yet in TypeScript's lib.dom FocusOptions.
|
|
120
119
|
focusVisible
|
|
120
|
+
// Cast can be removed once TypeScript >= 6.0 (added `focusVisible` to lib.dom FocusOptions).
|
|
121
121
|
});
|
|
122
122
|
}
|
|
123
123
|
}
|
|
@@ -107,8 +107,8 @@ function focusThumb(sliderRef, activeIndex, setActive, focusVisible) {
|
|
|
107
107
|
preventScroll: true,
|
|
108
108
|
// Prevent pointer-driven focus rings in browsers that support this option.
|
|
109
109
|
// Chrome 144+ supports `focusVisible` in `HTMLElement.focus()` options.
|
|
110
|
-
// @ts-expect-error `focusVisible` is not yet in TypeScript's lib.dom FocusOptions.
|
|
111
110
|
focusVisible
|
|
111
|
+
// Cast can be removed once TypeScript >= 6.0 (added `focusVisible` to lib.dom FocusOptions).
|
|
112
112
|
});
|
|
113
113
|
}
|
|
114
114
|
}
|
|
@@ -4,7 +4,7 @@ import ClickAwayListener from "../ClickAwayListener/index.mjs";
|
|
|
4
4
|
import { Theme } from "../styles/index.mjs";
|
|
5
5
|
import { InternalStandardProps as StandardProps } from "../internal/index.mjs";
|
|
6
6
|
import { SnackbarContentProps } from "../SnackbarContent/index.mjs";
|
|
7
|
-
import { TransitionProps } from "../transitions/
|
|
7
|
+
import { TransitionProps } from "../transitions/types.mjs";
|
|
8
8
|
import { SnackbarClasses } from "./snackbarClasses.mjs";
|
|
9
9
|
import { CreateSlotsAndSlotProps, SlotComponentProps, SlotProps } from "../utils/types.mjs";
|
|
10
10
|
export interface SnackbarSlots {
|
|
@@ -25,7 +25,7 @@ export interface SnackbarSlots {
|
|
|
25
25
|
clickAwayListener: React.ElementType;
|
|
26
26
|
/**
|
|
27
27
|
* The component that renders the transition.
|
|
28
|
-
* [Follow this guide](/material-ui/transitions/#
|
|
28
|
+
* [Follow this guide](/material-ui/transitions/#transition-slots) to learn more about the requirements for this component.
|
|
29
29
|
* @default Grow
|
|
30
30
|
*/
|
|
31
31
|
transition: React.ElementType;
|
|
@@ -4,7 +4,7 @@ import ClickAwayListener from "../ClickAwayListener/index.js";
|
|
|
4
4
|
import { Theme } from "../styles/index.js";
|
|
5
5
|
import { InternalStandardProps as StandardProps } from "../internal/index.js";
|
|
6
6
|
import { SnackbarContentProps } from "../SnackbarContent/index.js";
|
|
7
|
-
import { TransitionProps } from "../transitions/
|
|
7
|
+
import { TransitionProps } from "../transitions/types.js";
|
|
8
8
|
import { SnackbarClasses } from "./snackbarClasses.js";
|
|
9
9
|
import { CreateSlotsAndSlotProps, SlotComponentProps, SlotProps } from "../utils/types.js";
|
|
10
10
|
export interface SnackbarSlots {
|
|
@@ -25,7 +25,7 @@ export interface SnackbarSlots {
|
|
|
25
25
|
clickAwayListener: React.ElementType;
|
|
26
26
|
/**
|
|
27
27
|
* The component that renders the transition.
|
|
28
|
-
* [Follow this guide](/material-ui/transitions/#
|
|
28
|
+
* [Follow this guide](/material-ui/transitions/#transition-slots) to learn more about the requirements for this component.
|
|
29
29
|
* @default Grow
|
|
30
30
|
*/
|
|
31
31
|
transition: React.ElementType;
|
|
@@ -16,7 +16,7 @@ export interface SpeedDialSlots {
|
|
|
16
16
|
root: React.ElementType;
|
|
17
17
|
/**
|
|
18
18
|
* The component that renders the transition.
|
|
19
|
-
* [Follow this guide](
|
|
19
|
+
* [Follow this guide](/material-ui/transitions/#transition-slots) to learn more about the requirements for this component.
|
|
20
20
|
* @default Zoom
|
|
21
21
|
*/
|
|
22
22
|
transition: React.ElementType;
|
|
@@ -16,7 +16,7 @@ export interface SpeedDialSlots {
|
|
|
16
16
|
root: React.ElementType;
|
|
17
17
|
/**
|
|
18
18
|
* The component that renders the transition.
|
|
19
|
-
* [Follow this guide](
|
|
19
|
+
* [Follow this guide](/material-ui/transitions/#transition-slots) to learn more about the requirements for this component.
|
|
20
20
|
* @default Zoom
|
|
21
21
|
*/
|
|
22
22
|
transition: React.ElementType;
|
|
@@ -19,6 +19,7 @@ var _memoTheme = _interopRequireDefault(require("../utils/memoTheme"));
|
|
|
19
19
|
var _DefaultPropsProvider = require("../DefaultPropsProvider");
|
|
20
20
|
var _Zoom = _interopRequireDefault(require("../Zoom"));
|
|
21
21
|
var _Fab = _interopRequireDefault(require("../Fab"));
|
|
22
|
+
var _utils = require("../transitions/utils");
|
|
22
23
|
var _capitalize = _interopRequireDefault(require("../utils/capitalize"));
|
|
23
24
|
var _isMuiElement = _interopRequireDefault(require("../utils/isMuiElement"));
|
|
24
25
|
var _useForkRef = _interopRequireDefault(require("../utils/useForkRef"));
|
|
@@ -131,7 +132,9 @@ const SpeedDialActions = (0, _zeroStyled.styled)('div', {
|
|
|
131
132
|
} = props;
|
|
132
133
|
return [styles.actions, !ownerState.open && styles.actionsClosed];
|
|
133
134
|
}
|
|
134
|
-
})({
|
|
135
|
+
})((0, _memoTheme.default)(({
|
|
136
|
+
theme
|
|
137
|
+
}) => ({
|
|
135
138
|
display: 'flex',
|
|
136
139
|
pointerEvents: 'auto',
|
|
137
140
|
variants: [{
|
|
@@ -140,10 +143,11 @@ const SpeedDialActions = (0, _zeroStyled.styled)('div', {
|
|
|
140
143
|
}) => !ownerState.open,
|
|
141
144
|
style: {
|
|
142
145
|
transition: 'top 0s linear 0.2s',
|
|
146
|
+
...(0, _utils.getReducedMotionStyles)(theme),
|
|
143
147
|
pointerEvents: 'none'
|
|
144
148
|
}
|
|
145
149
|
}]
|
|
146
|
-
});
|
|
150
|
+
})));
|
|
147
151
|
const SpeedDial = /*#__PURE__*/React.forwardRef(function SpeedDial(inProps, ref) {
|
|
148
152
|
const props = (0, _DefaultPropsProvider.useDefaultProps)({
|
|
149
153
|
props: inProps,
|
|
@@ -12,6 +12,7 @@ import memoTheme from "../utils/memoTheme.mjs";
|
|
|
12
12
|
import { useDefaultProps } from "../DefaultPropsProvider/index.mjs";
|
|
13
13
|
import Zoom from "../Zoom/index.mjs";
|
|
14
14
|
import Fab from "../Fab/index.mjs";
|
|
15
|
+
import { getReducedMotionStyles } from "../transitions/utils.mjs";
|
|
15
16
|
import capitalize from "../utils/capitalize.mjs";
|
|
16
17
|
import isMuiElement from "../utils/isMuiElement.mjs";
|
|
17
18
|
import useForkRef from "../utils/useForkRef.mjs";
|
|
@@ -124,7 +125,9 @@ const SpeedDialActions = styled('div', {
|
|
|
124
125
|
} = props;
|
|
125
126
|
return [styles.actions, !ownerState.open && styles.actionsClosed];
|
|
126
127
|
}
|
|
127
|
-
})({
|
|
128
|
+
})(memoTheme(({
|
|
129
|
+
theme
|
|
130
|
+
}) => ({
|
|
128
131
|
display: 'flex',
|
|
129
132
|
pointerEvents: 'auto',
|
|
130
133
|
variants: [{
|
|
@@ -133,10 +136,11 @@ const SpeedDialActions = styled('div', {
|
|
|
133
136
|
}) => !ownerState.open,
|
|
134
137
|
style: {
|
|
135
138
|
transition: 'top 0s linear 0.2s',
|
|
139
|
+
...getReducedMotionStyles(theme),
|
|
136
140
|
pointerEvents: 'none'
|
|
137
141
|
}
|
|
138
142
|
}]
|
|
139
|
-
});
|
|
143
|
+
})));
|
|
140
144
|
const SpeedDial = /*#__PURE__*/React.forwardRef(function SpeedDial(inProps, ref) {
|
|
141
145
|
const props = useDefaultProps({
|
|
142
146
|
props: inProps,
|