@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
|
@@ -3,13 +3,13 @@ import { SxProps } from '@mui/system';
|
|
|
3
3
|
import { Theme } from "../styles/index.js";
|
|
4
4
|
import { InternalStandardProps as StandardProps } from "../internal/index.js";
|
|
5
5
|
import { CollapseProps } from "../Collapse/index.js";
|
|
6
|
-
import { TransitionProps } from "../transitions/
|
|
6
|
+
import { TransitionProps } from "../transitions/types.js";
|
|
7
7
|
import { StepContentClasses } from "./stepContentClasses.js";
|
|
8
8
|
import { CreateSlotsAndSlotProps, SlotComponentProps } from "../utils/types.js";
|
|
9
9
|
export interface StepContentSlots {
|
|
10
10
|
/**
|
|
11
11
|
* The component that renders the transition slot.
|
|
12
|
-
* [Follow this guide](
|
|
12
|
+
* [Follow this guide](/material-ui/transitions/#transition-slots) to learn more about the requirements for this component.
|
|
13
13
|
* @default Collapse
|
|
14
14
|
*/
|
|
15
15
|
transition?: React.JSXElementConstructor<TransitionProps & {
|
|
@@ -56,6 +56,28 @@ const StepContentRoot = (0, _zeroStyled.styled)('div', {
|
|
|
56
56
|
style: {
|
|
57
57
|
borderLeft: 'none'
|
|
58
58
|
}
|
|
59
|
+
}, {
|
|
60
|
+
props: {
|
|
61
|
+
alternativeLabel: true
|
|
62
|
+
},
|
|
63
|
+
style: {
|
|
64
|
+
marginLeft: 0,
|
|
65
|
+
marginRight: 12,
|
|
66
|
+
// half icon
|
|
67
|
+
paddingLeft: 8,
|
|
68
|
+
paddingRight: 8 + 12,
|
|
69
|
+
// margin + half icon
|
|
70
|
+
borderLeft: 'none',
|
|
71
|
+
borderRight: theme.vars ? `1px solid ${theme.vars.palette.StepContent.border}` : `1px solid ${theme.palette.mode === 'light' ? theme.palette.grey[400] : theme.palette.grey[600]}`
|
|
72
|
+
}
|
|
73
|
+
}, {
|
|
74
|
+
props: {
|
|
75
|
+
alternativeLabel: true,
|
|
76
|
+
last: true
|
|
77
|
+
},
|
|
78
|
+
style: {
|
|
79
|
+
borderRight: 'none'
|
|
80
|
+
}
|
|
59
81
|
}]
|
|
60
82
|
})));
|
|
61
83
|
const StepContentTransition = (0, _zeroStyled.styled)(_Collapse.default, {
|
|
@@ -76,7 +98,8 @@ const StepContent = /*#__PURE__*/React.forwardRef(function StepContent(inProps,
|
|
|
76
98
|
...other
|
|
77
99
|
} = props;
|
|
78
100
|
const {
|
|
79
|
-
orientation
|
|
101
|
+
orientation,
|
|
102
|
+
alternativeLabel
|
|
80
103
|
} = (0, _StepperContext.useStepperContext)();
|
|
81
104
|
const {
|
|
82
105
|
active,
|
|
@@ -85,7 +108,8 @@ const StepContent = /*#__PURE__*/React.forwardRef(function StepContent(inProps,
|
|
|
85
108
|
} = React.useContext(_StepContext.default);
|
|
86
109
|
const ownerState = {
|
|
87
110
|
...props,
|
|
88
|
-
last
|
|
111
|
+
last,
|
|
112
|
+
alternativeLabel
|
|
89
113
|
};
|
|
90
114
|
const classes = useUtilityClasses(ownerState);
|
|
91
115
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -49,6 +49,28 @@ const StepContentRoot = styled('div', {
|
|
|
49
49
|
style: {
|
|
50
50
|
borderLeft: 'none'
|
|
51
51
|
}
|
|
52
|
+
}, {
|
|
53
|
+
props: {
|
|
54
|
+
alternativeLabel: true
|
|
55
|
+
},
|
|
56
|
+
style: {
|
|
57
|
+
marginLeft: 0,
|
|
58
|
+
marginRight: 12,
|
|
59
|
+
// half icon
|
|
60
|
+
paddingLeft: 8,
|
|
61
|
+
paddingRight: 8 + 12,
|
|
62
|
+
// margin + half icon
|
|
63
|
+
borderLeft: 'none',
|
|
64
|
+
borderRight: theme.vars ? `1px solid ${theme.vars.palette.StepContent.border}` : `1px solid ${theme.palette.mode === 'light' ? theme.palette.grey[400] : theme.palette.grey[600]}`
|
|
65
|
+
}
|
|
66
|
+
}, {
|
|
67
|
+
props: {
|
|
68
|
+
alternativeLabel: true,
|
|
69
|
+
last: true
|
|
70
|
+
},
|
|
71
|
+
style: {
|
|
72
|
+
borderRight: 'none'
|
|
73
|
+
}
|
|
52
74
|
}]
|
|
53
75
|
})));
|
|
54
76
|
const StepContentTransition = styled(Collapse, {
|
|
@@ -69,7 +91,8 @@ const StepContent = /*#__PURE__*/React.forwardRef(function StepContent(inProps,
|
|
|
69
91
|
...other
|
|
70
92
|
} = props;
|
|
71
93
|
const {
|
|
72
|
-
orientation
|
|
94
|
+
orientation,
|
|
95
|
+
alternativeLabel
|
|
73
96
|
} = useStepperContext();
|
|
74
97
|
const {
|
|
75
98
|
active,
|
|
@@ -78,7 +101,8 @@ const StepContent = /*#__PURE__*/React.forwardRef(function StepContent(inProps,
|
|
|
78
101
|
} = React.useContext(StepContext);
|
|
79
102
|
const ownerState = {
|
|
80
103
|
...props,
|
|
81
|
-
last
|
|
104
|
+
last,
|
|
105
|
+
alternativeLabel
|
|
82
106
|
};
|
|
83
107
|
const classes = useUtilityClasses(ownerState);
|
|
84
108
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -18,6 +18,7 @@ var _CheckCircle = _interopRequireDefault(require("../internal/svg-icons/CheckCi
|
|
|
18
18
|
var _Warning = _interopRequireDefault(require("../internal/svg-icons/Warning"));
|
|
19
19
|
var _SvgIcon = _interopRequireDefault(require("../SvgIcon"));
|
|
20
20
|
var _stepIconClasses = _interopRequireWildcard(require("./stepIconClasses"));
|
|
21
|
+
var _utils = require("../transitions/utils");
|
|
21
22
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
22
23
|
var _circle;
|
|
23
24
|
const useUtilityClasses = ownerState => {
|
|
@@ -40,7 +41,7 @@ const StepIconRoot = (0, _zeroStyled.styled)(_SvgIcon.default, {
|
|
|
40
41
|
theme
|
|
41
42
|
}) => ({
|
|
42
43
|
display: 'block',
|
|
43
|
-
|
|
44
|
+
...(0, _utils.getTransitionStyles)(theme, 'color', {
|
|
44
45
|
duration: theme.transitions.duration.shortest
|
|
45
46
|
}),
|
|
46
47
|
color: (theme.vars || theme).palette.text.disabled,
|
|
@@ -12,6 +12,7 @@ import CheckCircle from "../internal/svg-icons/CheckCircle.mjs";
|
|
|
12
12
|
import Warning from "../internal/svg-icons/Warning.mjs";
|
|
13
13
|
import SvgIcon from "../SvgIcon/index.mjs";
|
|
14
14
|
import stepIconClasses, { getStepIconUtilityClass } from "./stepIconClasses.mjs";
|
|
15
|
+
import { getTransitionStyles } from "../transitions/utils.mjs";
|
|
15
16
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
17
|
const useUtilityClasses = ownerState => {
|
|
17
18
|
const {
|
|
@@ -33,7 +34,7 @@ const StepIconRoot = styled(SvgIcon, {
|
|
|
33
34
|
theme
|
|
34
35
|
}) => ({
|
|
35
36
|
display: 'block',
|
|
36
|
-
|
|
37
|
+
...getTransitionStyles(theme, 'color', {
|
|
37
38
|
duration: theme.transitions.duration.shortest
|
|
38
39
|
}),
|
|
39
40
|
color: (theme.vars || theme).palette.text.disabled,
|
|
@@ -19,6 +19,7 @@ var _memoTheme = _interopRequireDefault(require("../utils/memoTheme"));
|
|
|
19
19
|
var _DefaultPropsProvider = require("../DefaultPropsProvider");
|
|
20
20
|
var _stepLabelClasses = _interopRequireWildcard(require("./stepLabelClasses"));
|
|
21
21
|
var _useSlot = _interopRequireDefault(require("../utils/useSlot"));
|
|
22
|
+
var _utils = require("../transitions/utils");
|
|
22
23
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
23
24
|
const useUtilityClasses = ownerState => {
|
|
24
25
|
const {
|
|
@@ -50,9 +51,6 @@ const StepLabelRoot = (0, _zeroStyled.styled)('span', {
|
|
|
50
51
|
})({
|
|
51
52
|
display: 'flex',
|
|
52
53
|
alignItems: 'center',
|
|
53
|
-
[`&.${_stepLabelClasses.default.alternativeLabel}`]: {
|
|
54
|
-
flexDirection: 'column'
|
|
55
|
-
},
|
|
56
54
|
[`&.${_stepLabelClasses.default.disabled}`]: {
|
|
57
55
|
cursor: 'default'
|
|
58
56
|
},
|
|
@@ -64,6 +62,21 @@ const StepLabelRoot = (0, _zeroStyled.styled)('span', {
|
|
|
64
62
|
textAlign: 'left',
|
|
65
63
|
padding: '8px 0'
|
|
66
64
|
}
|
|
65
|
+
}, {
|
|
66
|
+
props: {
|
|
67
|
+
alternativeLabel: true
|
|
68
|
+
},
|
|
69
|
+
style: {
|
|
70
|
+
flexDirection: 'column'
|
|
71
|
+
}
|
|
72
|
+
}, {
|
|
73
|
+
props: {
|
|
74
|
+
orientation: 'vertical',
|
|
75
|
+
alternativeLabel: true
|
|
76
|
+
},
|
|
77
|
+
style: {
|
|
78
|
+
flexDirection: 'row-reverse'
|
|
79
|
+
}
|
|
67
80
|
}]
|
|
68
81
|
});
|
|
69
82
|
const StepLabelLabel = (0, _zeroStyled.styled)('span', {
|
|
@@ -74,7 +87,7 @@ const StepLabelLabel = (0, _zeroStyled.styled)('span', {
|
|
|
74
87
|
}) => ({
|
|
75
88
|
...theme.typography.body2,
|
|
76
89
|
display: 'block',
|
|
77
|
-
|
|
90
|
+
...(0, _utils.getTransitionStyles)(theme, 'color', {
|
|
78
91
|
duration: theme.transitions.duration.shortest
|
|
79
92
|
}),
|
|
80
93
|
[`&.${_stepLabelClasses.default.active}, &.${_stepLabelClasses.default.completed}`]: {
|
|
@@ -86,7 +99,18 @@ const StepLabelLabel = (0, _zeroStyled.styled)('span', {
|
|
|
86
99
|
},
|
|
87
100
|
[`&.${_stepLabelClasses.default.error}`]: {
|
|
88
101
|
color: (theme.vars || theme).palette.error.main
|
|
89
|
-
}
|
|
102
|
+
},
|
|
103
|
+
variants: [{
|
|
104
|
+
props: {
|
|
105
|
+
orientation: 'vertical',
|
|
106
|
+
alternativeLabel: true
|
|
107
|
+
},
|
|
108
|
+
style: {
|
|
109
|
+
[`&.${_stepLabelClasses.default.alternativeLabel}`]: {
|
|
110
|
+
marginTop: 0
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}]
|
|
90
114
|
})));
|
|
91
115
|
const StepLabelIconContainer = (0, _zeroStyled.styled)('span', {
|
|
92
116
|
name: 'MuiStepLabel',
|
|
@@ -97,7 +121,17 @@ const StepLabelIconContainer = (0, _zeroStyled.styled)('span', {
|
|
|
97
121
|
paddingRight: 8,
|
|
98
122
|
[`&.${_stepLabelClasses.default.alternativeLabel}`]: {
|
|
99
123
|
paddingRight: 0
|
|
100
|
-
}
|
|
124
|
+
},
|
|
125
|
+
variants: [{
|
|
126
|
+
props: {
|
|
127
|
+
orientation: 'vertical',
|
|
128
|
+
alternativeLabel: true
|
|
129
|
+
},
|
|
130
|
+
style: {
|
|
131
|
+
paddingRight: 0,
|
|
132
|
+
paddingLeft: 8
|
|
133
|
+
}
|
|
134
|
+
}]
|
|
101
135
|
});
|
|
102
136
|
const StepLabelLabelContainer = (0, _zeroStyled.styled)('span', {
|
|
103
137
|
name: 'MuiStepLabel',
|
|
@@ -109,7 +143,18 @@ const StepLabelLabelContainer = (0, _zeroStyled.styled)('span', {
|
|
|
109
143
|
color: (theme.vars || theme).palette.text.secondary,
|
|
110
144
|
[`&.${_stepLabelClasses.default.alternativeLabel}`]: {
|
|
111
145
|
textAlign: 'center'
|
|
112
|
-
}
|
|
146
|
+
},
|
|
147
|
+
variants: [{
|
|
148
|
+
props: {
|
|
149
|
+
orientation: 'vertical',
|
|
150
|
+
alternativeLabel: true
|
|
151
|
+
},
|
|
152
|
+
style: {
|
|
153
|
+
[`&.${_stepLabelClasses.default.alternativeLabel}`]: {
|
|
154
|
+
textAlign: 'right'
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}]
|
|
113
158
|
})));
|
|
114
159
|
const StepLabel = /*#__PURE__*/React.forwardRef(function StepLabel(inProps, ref) {
|
|
115
160
|
const props = (0, _DefaultPropsProvider.useDefaultProps)({
|
|
@@ -12,6 +12,7 @@ import memoTheme from "../utils/memoTheme.mjs";
|
|
|
12
12
|
import { useDefaultProps } from "../DefaultPropsProvider/index.mjs";
|
|
13
13
|
import stepLabelClasses, { getStepLabelUtilityClass } from "./stepLabelClasses.mjs";
|
|
14
14
|
import useSlot from "../utils/useSlot.mjs";
|
|
15
|
+
import { getTransitionStyles } from "../transitions/utils.mjs";
|
|
15
16
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
17
|
const useUtilityClasses = ownerState => {
|
|
17
18
|
const {
|
|
@@ -43,9 +44,6 @@ const StepLabelRoot = styled('span', {
|
|
|
43
44
|
})({
|
|
44
45
|
display: 'flex',
|
|
45
46
|
alignItems: 'center',
|
|
46
|
-
[`&.${stepLabelClasses.alternativeLabel}`]: {
|
|
47
|
-
flexDirection: 'column'
|
|
48
|
-
},
|
|
49
47
|
[`&.${stepLabelClasses.disabled}`]: {
|
|
50
48
|
cursor: 'default'
|
|
51
49
|
},
|
|
@@ -57,6 +55,21 @@ const StepLabelRoot = styled('span', {
|
|
|
57
55
|
textAlign: 'left',
|
|
58
56
|
padding: '8px 0'
|
|
59
57
|
}
|
|
58
|
+
}, {
|
|
59
|
+
props: {
|
|
60
|
+
alternativeLabel: true
|
|
61
|
+
},
|
|
62
|
+
style: {
|
|
63
|
+
flexDirection: 'column'
|
|
64
|
+
}
|
|
65
|
+
}, {
|
|
66
|
+
props: {
|
|
67
|
+
orientation: 'vertical',
|
|
68
|
+
alternativeLabel: true
|
|
69
|
+
},
|
|
70
|
+
style: {
|
|
71
|
+
flexDirection: 'row-reverse'
|
|
72
|
+
}
|
|
60
73
|
}]
|
|
61
74
|
});
|
|
62
75
|
const StepLabelLabel = styled('span', {
|
|
@@ -67,7 +80,7 @@ const StepLabelLabel = styled('span', {
|
|
|
67
80
|
}) => ({
|
|
68
81
|
...theme.typography.body2,
|
|
69
82
|
display: 'block',
|
|
70
|
-
|
|
83
|
+
...getTransitionStyles(theme, 'color', {
|
|
71
84
|
duration: theme.transitions.duration.shortest
|
|
72
85
|
}),
|
|
73
86
|
[`&.${stepLabelClasses.active}, &.${stepLabelClasses.completed}`]: {
|
|
@@ -79,7 +92,18 @@ const StepLabelLabel = styled('span', {
|
|
|
79
92
|
},
|
|
80
93
|
[`&.${stepLabelClasses.error}`]: {
|
|
81
94
|
color: (theme.vars || theme).palette.error.main
|
|
82
|
-
}
|
|
95
|
+
},
|
|
96
|
+
variants: [{
|
|
97
|
+
props: {
|
|
98
|
+
orientation: 'vertical',
|
|
99
|
+
alternativeLabel: true
|
|
100
|
+
},
|
|
101
|
+
style: {
|
|
102
|
+
[`&.${stepLabelClasses.alternativeLabel}`]: {
|
|
103
|
+
marginTop: 0
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}]
|
|
83
107
|
})));
|
|
84
108
|
const StepLabelIconContainer = styled('span', {
|
|
85
109
|
name: 'MuiStepLabel',
|
|
@@ -90,7 +114,17 @@ const StepLabelIconContainer = styled('span', {
|
|
|
90
114
|
paddingRight: 8,
|
|
91
115
|
[`&.${stepLabelClasses.alternativeLabel}`]: {
|
|
92
116
|
paddingRight: 0
|
|
93
|
-
}
|
|
117
|
+
},
|
|
118
|
+
variants: [{
|
|
119
|
+
props: {
|
|
120
|
+
orientation: 'vertical',
|
|
121
|
+
alternativeLabel: true
|
|
122
|
+
},
|
|
123
|
+
style: {
|
|
124
|
+
paddingRight: 0,
|
|
125
|
+
paddingLeft: 8
|
|
126
|
+
}
|
|
127
|
+
}]
|
|
94
128
|
});
|
|
95
129
|
const StepLabelLabelContainer = styled('span', {
|
|
96
130
|
name: 'MuiStepLabel',
|
|
@@ -102,7 +136,18 @@ const StepLabelLabelContainer = styled('span', {
|
|
|
102
136
|
color: (theme.vars || theme).palette.text.secondary,
|
|
103
137
|
[`&.${stepLabelClasses.alternativeLabel}`]: {
|
|
104
138
|
textAlign: 'center'
|
|
105
|
-
}
|
|
139
|
+
},
|
|
140
|
+
variants: [{
|
|
141
|
+
props: {
|
|
142
|
+
orientation: 'vertical',
|
|
143
|
+
alternativeLabel: true
|
|
144
|
+
},
|
|
145
|
+
style: {
|
|
146
|
+
[`&.${stepLabelClasses.alternativeLabel}`]: {
|
|
147
|
+
textAlign: 'right'
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}]
|
|
106
151
|
})));
|
|
107
152
|
const StepLabel = /*#__PURE__*/React.forwardRef(function StepLabel(inProps, ref) {
|
|
108
153
|
const props = useDefaultProps({
|
|
@@ -15,6 +15,8 @@ export interface StepperOwnProps extends Pick<PaperProps, 'elevation' | 'square'
|
|
|
15
15
|
/**
|
|
16
16
|
* If set to 'true' and orientation is horizontal,
|
|
17
17
|
* then the step label will be positioned under the icon.
|
|
18
|
+
* If set to 'true' and orientation is vertical,
|
|
19
|
+
* it reverses the position of the label and content.
|
|
18
20
|
* @default false
|
|
19
21
|
*/
|
|
20
22
|
alternativeLabel?: boolean | undefined;
|
|
@@ -15,6 +15,8 @@ export interface StepperOwnProps extends Pick<PaperProps, 'elevation' | 'square'
|
|
|
15
15
|
/**
|
|
16
16
|
* If set to 'true' and orientation is horizontal,
|
|
17
17
|
* then the step label will be positioned under the icon.
|
|
18
|
+
* If set to 'true' and orientation is vertical,
|
|
19
|
+
* it reverses the position of the label and content.
|
|
18
20
|
* @default false
|
|
19
21
|
*/
|
|
20
22
|
alternativeLabel?: boolean | undefined;
|
|
@@ -55,6 +55,14 @@ const StepperRoot = (0, _zeroStyled.styled)('ol', {
|
|
|
55
55
|
flexDirection: 'row',
|
|
56
56
|
alignItems: 'center'
|
|
57
57
|
}
|
|
58
|
+
}, {
|
|
59
|
+
props: {
|
|
60
|
+
orientation: 'horizontal',
|
|
61
|
+
alternativeLabel: false
|
|
62
|
+
},
|
|
63
|
+
style: {
|
|
64
|
+
gap: 8
|
|
65
|
+
}
|
|
58
66
|
}, {
|
|
59
67
|
props: {
|
|
60
68
|
orientation: 'vertical'
|
|
@@ -69,6 +77,14 @@ const StepperRoot = (0, _zeroStyled.styled)('ol', {
|
|
|
69
77
|
style: {
|
|
70
78
|
alignItems: 'flex-start'
|
|
71
79
|
}
|
|
80
|
+
}, {
|
|
81
|
+
props: {
|
|
82
|
+
orientation: 'vertical',
|
|
83
|
+
alternativeLabel: true
|
|
84
|
+
},
|
|
85
|
+
style: {
|
|
86
|
+
alignItems: 'flex-end'
|
|
87
|
+
}
|
|
72
88
|
}]
|
|
73
89
|
});
|
|
74
90
|
const defaultConnector = /*#__PURE__*/(0, _jsxRuntime.jsx)(_StepConnector.default, {});
|
|
@@ -88,7 +104,7 @@ function RovingStepper(props) {
|
|
|
88
104
|
orientation,
|
|
89
105
|
isRtl
|
|
90
106
|
});
|
|
91
|
-
const rovingContainerProps = rovingContainer.getContainerProps(forwardedRef);
|
|
107
|
+
const rovingContainerProps = rovingContainer.getContainerProps(forwardedRef, other.onFocus, other.onKeyDown);
|
|
92
108
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_useRovingTabIndex.RovingTabIndexContext.Provider, {
|
|
93
109
|
value: rovingContainer,
|
|
94
110
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(StepperRoot, {
|
|
@@ -97,8 +113,8 @@ function RovingStepper(props) {
|
|
|
97
113
|
className: className,
|
|
98
114
|
role: "tablist",
|
|
99
115
|
"aria-orientation": orientation,
|
|
100
|
-
...rovingContainerProps,
|
|
101
116
|
...other,
|
|
117
|
+
...rovingContainerProps,
|
|
102
118
|
children: children
|
|
103
119
|
})
|
|
104
120
|
});
|
|
@@ -200,6 +216,8 @@ process.env.NODE_ENV !== "production" ? Stepper.propTypes /* remove-proptypes */
|
|
|
200
216
|
/**
|
|
201
217
|
* If set to 'true' and orientation is horizontal,
|
|
202
218
|
* then the step label will be positioned under the icon.
|
|
219
|
+
* If set to 'true' and orientation is vertical,
|
|
220
|
+
* it reverses the position of the label and content.
|
|
203
221
|
* @default false
|
|
204
222
|
*/
|
|
205
223
|
alternativeLabel: _propTypes.default.bool,
|
|
@@ -48,6 +48,14 @@ const StepperRoot = styled('ol', {
|
|
|
48
48
|
flexDirection: 'row',
|
|
49
49
|
alignItems: 'center'
|
|
50
50
|
}
|
|
51
|
+
}, {
|
|
52
|
+
props: {
|
|
53
|
+
orientation: 'horizontal',
|
|
54
|
+
alternativeLabel: false
|
|
55
|
+
},
|
|
56
|
+
style: {
|
|
57
|
+
gap: 8
|
|
58
|
+
}
|
|
51
59
|
}, {
|
|
52
60
|
props: {
|
|
53
61
|
orientation: 'vertical'
|
|
@@ -62,6 +70,14 @@ const StepperRoot = styled('ol', {
|
|
|
62
70
|
style: {
|
|
63
71
|
alignItems: 'flex-start'
|
|
64
72
|
}
|
|
73
|
+
}, {
|
|
74
|
+
props: {
|
|
75
|
+
orientation: 'vertical',
|
|
76
|
+
alternativeLabel: true
|
|
77
|
+
},
|
|
78
|
+
style: {
|
|
79
|
+
alignItems: 'flex-end'
|
|
80
|
+
}
|
|
65
81
|
}]
|
|
66
82
|
});
|
|
67
83
|
const defaultConnector = /*#__PURE__*/_jsx(StepConnector, {});
|
|
@@ -81,7 +97,7 @@ function RovingStepper(props) {
|
|
|
81
97
|
orientation,
|
|
82
98
|
isRtl
|
|
83
99
|
});
|
|
84
|
-
const rovingContainerProps = rovingContainer.getContainerProps(forwardedRef);
|
|
100
|
+
const rovingContainerProps = rovingContainer.getContainerProps(forwardedRef, other.onFocus, other.onKeyDown);
|
|
85
101
|
return /*#__PURE__*/_jsx(RovingTabIndexContext.Provider, {
|
|
86
102
|
value: rovingContainer,
|
|
87
103
|
children: /*#__PURE__*/_jsx(StepperRoot, {
|
|
@@ -90,8 +106,8 @@ function RovingStepper(props) {
|
|
|
90
106
|
className: className,
|
|
91
107
|
role: "tablist",
|
|
92
108
|
"aria-orientation": orientation,
|
|
93
|
-
...rovingContainerProps,
|
|
94
109
|
...other,
|
|
110
|
+
...rovingContainerProps,
|
|
95
111
|
children: children
|
|
96
112
|
})
|
|
97
113
|
});
|
|
@@ -193,6 +209,8 @@ process.env.NODE_ENV !== "production" ? Stepper.propTypes /* remove-proptypes */
|
|
|
193
209
|
/**
|
|
194
210
|
* If set to 'true' and orientation is horizontal,
|
|
195
211
|
* then the step label will be positioned under the icon.
|
|
212
|
+
* If set to 'true' and orientation is vertical,
|
|
213
|
+
* it reverses the position of the label and content.
|
|
196
214
|
* @default false
|
|
197
215
|
*/
|
|
198
216
|
alternativeLabel: PropTypes.bool,
|
|
@@ -11,7 +11,7 @@ export interface StepperContextType {
|
|
|
11
11
|
/**
|
|
12
12
|
* Provides information about the current step in Stepper.
|
|
13
13
|
*/
|
|
14
|
-
declare const StepperContext: React.Context<
|
|
14
|
+
declare const StepperContext: React.Context<StepperContextType | {}>;
|
|
15
15
|
/**
|
|
16
16
|
* Returns the current StepperContext or an empty object if no StepperContext
|
|
17
17
|
* has been defined in the component tree.
|
|
@@ -11,7 +11,7 @@ export interface StepperContextType {
|
|
|
11
11
|
/**
|
|
12
12
|
* Provides information about the current step in Stepper.
|
|
13
13
|
*/
|
|
14
|
-
declare const StepperContext: React.Context<
|
|
14
|
+
declare const StepperContext: React.Context<StepperContextType | {}>;
|
|
15
15
|
/**
|
|
16
16
|
* Returns the current StepperContext or an empty object if no StepperContext
|
|
17
17
|
* has been defined in the component tree.
|
|
@@ -16,6 +16,7 @@ var _zeroStyled = require("../zero-styled");
|
|
|
16
16
|
var _memoTheme = _interopRequireDefault(require("../utils/memoTheme"));
|
|
17
17
|
var _DefaultPropsProvider = require("../DefaultPropsProvider");
|
|
18
18
|
var _svgIconClasses = require("./svgIconClasses");
|
|
19
|
+
var _utils = require("../transitions/utils");
|
|
19
20
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
20
21
|
const useUtilityClasses = ownerState => {
|
|
21
22
|
const {
|
|
@@ -45,7 +46,7 @@ const SvgIconRoot = (0, _zeroStyled.styled)('svg', {
|
|
|
45
46
|
height: '1em',
|
|
46
47
|
display: 'inline-block',
|
|
47
48
|
flexShrink: 0,
|
|
48
|
-
|
|
49
|
+
...(0, _utils.getTransitionStyles)(theme, 'fill', {
|
|
49
50
|
duration: (theme.vars ?? theme).transitions?.duration?.shorter
|
|
50
51
|
}),
|
|
51
52
|
variants: [{
|
|
@@ -9,6 +9,7 @@ import { styled } from "../zero-styled/index.mjs";
|
|
|
9
9
|
import memoTheme from "../utils/memoTheme.mjs";
|
|
10
10
|
import { useDefaultProps } from "../DefaultPropsProvider/index.mjs";
|
|
11
11
|
import { getSvgIconUtilityClass } from "./svgIconClasses.mjs";
|
|
12
|
+
import { getTransitionStyles } from "../transitions/utils.mjs";
|
|
12
13
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
14
|
const useUtilityClasses = ownerState => {
|
|
14
15
|
const {
|
|
@@ -38,7 +39,7 @@ const SvgIconRoot = styled('svg', {
|
|
|
38
39
|
height: '1em',
|
|
39
40
|
display: 'inline-block',
|
|
40
41
|
flexShrink: 0,
|
|
41
|
-
|
|
42
|
+
...getTransitionStyles(theme, 'fill', {
|
|
42
43
|
duration: (theme.vars ?? theme).transitions?.duration?.shorter
|
|
43
44
|
}),
|
|
44
45
|
variants: [{
|
|
@@ -21,6 +21,7 @@ var _useEnhancedEffect = _interopRequireDefault(require("../utils/useEnhancedEff
|
|
|
21
21
|
var _zeroStyled = require("../zero-styled");
|
|
22
22
|
var _DefaultPropsProvider = require("../DefaultPropsProvider");
|
|
23
23
|
var _utils = require("../transitions/utils");
|
|
24
|
+
var _useReducedMotion = _interopRequireDefault(require("../transitions/useReducedMotion"));
|
|
24
25
|
var _utils2 = require("../utils");
|
|
25
26
|
var _useSlot = _interopRequireDefault(require("../utils/useSlot"));
|
|
26
27
|
var _SwipeArea = _interopRequireDefault(require("./SwipeArea"));
|
|
@@ -152,6 +153,7 @@ const SwipeableDrawer = /*#__PURE__*/React.forwardRef(function SwipeableDrawer(i
|
|
|
152
153
|
slotProps = {},
|
|
153
154
|
...other
|
|
154
155
|
} = props;
|
|
156
|
+
const reducedMotion = (0, _useReducedMotion.default)(theme.motion.reducedMotion, false);
|
|
155
157
|
const [maybeSwiping, setMaybeSwiping] = React.useState(false);
|
|
156
158
|
const swipeInstance = React.useRef({
|
|
157
159
|
isSwiping: null
|
|
@@ -184,13 +186,22 @@ const SwipeableDrawer = /*#__PURE__*/React.forwardRef(function SwipeableDrawer(i
|
|
|
184
186
|
drawerStyle.transform = transform;
|
|
185
187
|
let transition = '';
|
|
186
188
|
if (mode) {
|
|
187
|
-
|
|
189
|
+
const transitionProps = (0, _utils.getTransitionProps)({
|
|
188
190
|
easing: undefined,
|
|
189
191
|
style: undefined,
|
|
190
192
|
timeout: transitionDuration
|
|
191
193
|
}, {
|
|
192
194
|
mode
|
|
193
|
-
})
|
|
195
|
+
});
|
|
196
|
+
const transitionTiming = reducedMotion.getTransitionTiming({
|
|
197
|
+
duration: transitionProps.duration,
|
|
198
|
+
delay: transitionProps.delay
|
|
199
|
+
});
|
|
200
|
+
transition = theme.transitions.create('all', {
|
|
201
|
+
...transitionProps,
|
|
202
|
+
duration: transitionTiming.duration,
|
|
203
|
+
delay: transitionTiming.delay
|
|
204
|
+
});
|
|
194
205
|
}
|
|
195
206
|
if (changeTransition) {
|
|
196
207
|
drawerStyle.transition = transition;
|
|
@@ -202,7 +213,7 @@ const SwipeableDrawer = /*#__PURE__*/React.forwardRef(function SwipeableDrawer(i
|
|
|
202
213
|
backdropStyle.transition = transition;
|
|
203
214
|
}
|
|
204
215
|
}
|
|
205
|
-
}, [anchor, disableBackdropTransition, hideBackdrop, theme, transitionDuration]);
|
|
216
|
+
}, [anchor, disableBackdropTransition, hideBackdrop, reducedMotion, theme, transitionDuration]);
|
|
206
217
|
const handleBodyTouchEnd = (0, _useEventCallback.default)(nativeEvent => {
|
|
207
218
|
if (!touchDetected.current) {
|
|
208
219
|
return;
|
|
@@ -13,6 +13,7 @@ import useEnhancedEffect from "../utils/useEnhancedEffect.mjs";
|
|
|
13
13
|
import { useTheme } from "../zero-styled/index.mjs";
|
|
14
14
|
import { useDefaultProps } from "../DefaultPropsProvider/index.mjs";
|
|
15
15
|
import { getTransitionProps } from "../transitions/utils.mjs";
|
|
16
|
+
import useReducedMotion from "../transitions/useReducedMotion.mjs";
|
|
16
17
|
import { mergeSlotProps } from "../utils/index.mjs";
|
|
17
18
|
import useSlot from "../utils/useSlot.mjs";
|
|
18
19
|
import SwipeArea from "./SwipeArea.mjs";
|
|
@@ -145,6 +146,7 @@ const SwipeableDrawer = /*#__PURE__*/React.forwardRef(function SwipeableDrawer(i
|
|
|
145
146
|
slotProps = {},
|
|
146
147
|
...other
|
|
147
148
|
} = props;
|
|
149
|
+
const reducedMotion = useReducedMotion(theme.motion.reducedMotion, false);
|
|
148
150
|
const [maybeSwiping, setMaybeSwiping] = React.useState(false);
|
|
149
151
|
const swipeInstance = React.useRef({
|
|
150
152
|
isSwiping: null
|
|
@@ -177,13 +179,22 @@ const SwipeableDrawer = /*#__PURE__*/React.forwardRef(function SwipeableDrawer(i
|
|
|
177
179
|
drawerStyle.transform = transform;
|
|
178
180
|
let transition = '';
|
|
179
181
|
if (mode) {
|
|
180
|
-
|
|
182
|
+
const transitionProps = getTransitionProps({
|
|
181
183
|
easing: undefined,
|
|
182
184
|
style: undefined,
|
|
183
185
|
timeout: transitionDuration
|
|
184
186
|
}, {
|
|
185
187
|
mode
|
|
186
|
-
})
|
|
188
|
+
});
|
|
189
|
+
const transitionTiming = reducedMotion.getTransitionTiming({
|
|
190
|
+
duration: transitionProps.duration,
|
|
191
|
+
delay: transitionProps.delay
|
|
192
|
+
});
|
|
193
|
+
transition = theme.transitions.create('all', {
|
|
194
|
+
...transitionProps,
|
|
195
|
+
duration: transitionTiming.duration,
|
|
196
|
+
delay: transitionTiming.delay
|
|
197
|
+
});
|
|
187
198
|
}
|
|
188
199
|
if (changeTransition) {
|
|
189
200
|
drawerStyle.transition = transition;
|
|
@@ -195,7 +206,7 @@ const SwipeableDrawer = /*#__PURE__*/React.forwardRef(function SwipeableDrawer(i
|
|
|
195
206
|
backdropStyle.transition = transition;
|
|
196
207
|
}
|
|
197
208
|
}
|
|
198
|
-
}, [anchor, disableBackdropTransition, hideBackdrop, theme, transitionDuration]);
|
|
209
|
+
}, [anchor, disableBackdropTransition, hideBackdrop, reducedMotion, theme, transitionDuration]);
|
|
199
210
|
const handleBodyTouchEnd = useEventCallback(nativeEvent => {
|
|
200
211
|
if (!touchDetected.current) {
|
|
201
212
|
return;
|
|
@@ -21,6 +21,7 @@ var _DefaultPropsProvider = require("../DefaultPropsProvider");
|
|
|
21
21
|
var _switchClasses = _interopRequireWildcard(require("./switchClasses"));
|
|
22
22
|
var _utils = require("../utils");
|
|
23
23
|
var _useSlot = _interopRequireDefault(require("../utils/useSlot"));
|
|
24
|
+
var _utils2 = require("../transitions/utils");
|
|
24
25
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
25
26
|
const useUtilityClasses = ownerState => {
|
|
26
27
|
const {
|
|
@@ -125,7 +126,7 @@ const SwitchSwitchBase = (0, _zeroStyled.styled)(_SwitchBase.default, {
|
|
|
125
126
|
zIndex: 1,
|
|
126
127
|
// Render above the focus ripple.
|
|
127
128
|
color: theme.vars ? theme.vars.palette.Switch.defaultColor : `${theme.palette.mode === 'light' ? theme.palette.common.white : theme.palette.grey[300]}`,
|
|
128
|
-
|
|
129
|
+
...(0, _utils2.getTransitionStyles)(theme, ['left', 'transform'], {
|
|
129
130
|
duration: theme.transitions.duration.shortest
|
|
130
131
|
}),
|
|
131
132
|
[`&.${_switchClasses.default.checked}`]: {
|
|
@@ -188,7 +189,7 @@ const SwitchTrack = (0, _zeroStyled.styled)('span', {
|
|
|
188
189
|
width: '100%',
|
|
189
190
|
borderRadius: 14 / 2,
|
|
190
191
|
zIndex: -1,
|
|
191
|
-
|
|
192
|
+
...(0, _utils2.getTransitionStyles)(theme, ['opacity', 'background-color'], {
|
|
192
193
|
duration: theme.transitions.duration.shortest
|
|
193
194
|
}),
|
|
194
195
|
'@media (forced-colors: active)': {
|