@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
|
@@ -185,7 +185,7 @@ const MenuList = /*#__PURE__*/React.forwardRef(function MenuList(props, ref) {
|
|
|
185
185
|
return focusInitialTarget(true);
|
|
186
186
|
}
|
|
187
187
|
}), [focusInitialTarget]);
|
|
188
|
-
const rovingContainerProps = getContainerProps();
|
|
188
|
+
const rovingContainerProps = getContainerProps(undefined, other.onFocus);
|
|
189
189
|
const handleRef = useForkRef(listRef, rovingContainerProps.ref, ref);
|
|
190
190
|
const menuListContextValue = React.useMemo(() => ({
|
|
191
191
|
itemsFocusableWhenDisabled: disabledItemsFocusable,
|
|
@@ -235,9 +235,9 @@ const MenuList = /*#__PURE__*/React.forwardRef(function MenuList(props, ref) {
|
|
|
235
235
|
ref: handleRef,
|
|
236
236
|
className: className,
|
|
237
237
|
onKeyDown: handleKeyDown,
|
|
238
|
-
onFocus: rovingContainerProps.onFocus,
|
|
239
238
|
tabIndex: -1,
|
|
240
239
|
...other,
|
|
240
|
+
onFocus: rovingContainerProps.onFocus,
|
|
241
241
|
children: /*#__PURE__*/_jsx(MenuListContext.Provider, {
|
|
242
242
|
value: menuListContextValue,
|
|
243
243
|
children: /*#__PURE__*/_jsx(RovingTabIndexContext.Provider, {
|
|
@@ -281,6 +281,10 @@ process.env.NODE_ENV !== "production" ? MenuList.propTypes /* remove-proptypes *
|
|
|
281
281
|
* @default false
|
|
282
282
|
*/
|
|
283
283
|
disableListWrap: PropTypes.bool,
|
|
284
|
+
/**
|
|
285
|
+
* @ignore
|
|
286
|
+
*/
|
|
287
|
+
onFocus: PropTypes.func,
|
|
284
288
|
/**
|
|
285
289
|
* @ignore
|
|
286
290
|
*/
|
|
@@ -21,6 +21,7 @@ var _DefaultPropsProvider = require("../DefaultPropsProvider");
|
|
|
21
21
|
var _slotShouldForwardProp = _interopRequireDefault(require("../styles/slotShouldForwardProp"));
|
|
22
22
|
var _mobileStepperClasses = require("./mobileStepperClasses");
|
|
23
23
|
var _useSlot = _interopRequireDefault(require("../utils/useSlot"));
|
|
24
|
+
var _utils = require("../transitions/utils");
|
|
24
25
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
25
26
|
const useUtilityClasses = ownerState => {
|
|
26
27
|
const {
|
|
@@ -112,7 +113,7 @@ const MobileStepperDot = (0, _zeroStyled.styled)('div', {
|
|
|
112
113
|
variant: 'dots'
|
|
113
114
|
},
|
|
114
115
|
style: {
|
|
115
|
-
|
|
116
|
+
...(0, _utils.getTransitionStyles)(theme, 'background-color', {
|
|
116
117
|
duration: theme.transitions.duration.shortest
|
|
117
118
|
}),
|
|
118
119
|
backgroundColor: (theme.vars || theme).palette.action.disabled,
|
|
@@ -14,6 +14,7 @@ import { useDefaultProps } from "../DefaultPropsProvider/index.mjs";
|
|
|
14
14
|
import slotShouldForwardProp from "../styles/slotShouldForwardProp.mjs";
|
|
15
15
|
import { getMobileStepperUtilityClass } from "./mobileStepperClasses.mjs";
|
|
16
16
|
import useSlot from "../utils/useSlot.mjs";
|
|
17
|
+
import { getTransitionStyles } from "../transitions/utils.mjs";
|
|
17
18
|
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
18
19
|
const useUtilityClasses = ownerState => {
|
|
19
20
|
const {
|
|
@@ -105,7 +106,7 @@ const MobileStepperDot = styled('div', {
|
|
|
105
106
|
variant: 'dots'
|
|
106
107
|
},
|
|
107
108
|
style: {
|
|
108
|
-
|
|
109
|
+
...getTransitionStyles(theme, 'background-color', {
|
|
109
110
|
duration: theme.transitions.duration.shortest
|
|
110
111
|
}),
|
|
111
112
|
backgroundColor: (theme.vars || theme).palette.action.disabled,
|
|
@@ -127,6 +127,7 @@ const Modal = /*#__PURE__*/React.forwardRef(function Modal(inProps, ref) {
|
|
|
127
127
|
getBackdropProps,
|
|
128
128
|
getTransitionProps,
|
|
129
129
|
portalRef,
|
|
130
|
+
portalContainer,
|
|
130
131
|
isTopModal,
|
|
131
132
|
exited,
|
|
132
133
|
hasTransition
|
|
@@ -191,7 +192,7 @@ const Modal = /*#__PURE__*/React.forwardRef(function Modal(inProps, ref) {
|
|
|
191
192
|
}
|
|
192
193
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Portal.default, {
|
|
193
194
|
ref: portalRef,
|
|
194
|
-
container:
|
|
195
|
+
container: portalContainer,
|
|
195
196
|
disablePortal: disablePortal,
|
|
196
197
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(RootSlot, {
|
|
197
198
|
...rootProps,
|
|
@@ -120,6 +120,7 @@ const Modal = /*#__PURE__*/React.forwardRef(function Modal(inProps, ref) {
|
|
|
120
120
|
getBackdropProps,
|
|
121
121
|
getTransitionProps,
|
|
122
122
|
portalRef,
|
|
123
|
+
portalContainer,
|
|
123
124
|
isTopModal,
|
|
124
125
|
exited,
|
|
125
126
|
hasTransition
|
|
@@ -184,7 +185,7 @@ const Modal = /*#__PURE__*/React.forwardRef(function Modal(inProps, ref) {
|
|
|
184
185
|
}
|
|
185
186
|
return /*#__PURE__*/_jsx(Portal, {
|
|
186
187
|
ref: portalRef,
|
|
187
|
-
container:
|
|
188
|
+
container: portalContainer,
|
|
188
189
|
disablePortal: disablePortal,
|
|
189
190
|
children: /*#__PURE__*/_jsxs(RootSlot, {
|
|
190
191
|
...rootProps,
|
|
@@ -12,7 +12,7 @@ var _getScrollbarSize = _interopRequireDefault(require("@mui/utils/getScrollbarS
|
|
|
12
12
|
// Is a vertical scrollbar displayed?
|
|
13
13
|
function isOverflowing(container) {
|
|
14
14
|
const doc = (0, _ownerDocument.default)(container);
|
|
15
|
-
if (doc.body ===
|
|
15
|
+
if (container === doc.body || container === doc.documentElement) {
|
|
16
16
|
return (0, _ownerWindow.default)(container).innerWidth > doc.documentElement.clientWidth;
|
|
17
17
|
}
|
|
18
18
|
return container.scrollHeight > container.clientHeight;
|
|
@@ -46,31 +46,30 @@ function ariaHiddenSiblings(container, mountElement, currentElement, elementsToE
|
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
|
-
function findIndexOf(items, callback) {
|
|
50
|
-
let idx = -1;
|
|
51
|
-
items.some((item, index) => {
|
|
52
|
-
if (callback(item)) {
|
|
53
|
-
idx = index;
|
|
54
|
-
return true;
|
|
55
|
-
}
|
|
56
|
-
return false;
|
|
57
|
-
});
|
|
58
|
-
return idx;
|
|
59
|
-
}
|
|
60
49
|
function handleContainer(containerInfo, props) {
|
|
61
50
|
const restoreStyle = [];
|
|
62
51
|
const container = containerInfo.container;
|
|
63
52
|
if (!props.disableScrollLock) {
|
|
64
|
-
|
|
53
|
+
let scrollContainer;
|
|
54
|
+
if (container.parentNode instanceof DocumentFragment) {
|
|
55
|
+
scrollContainer = (0, _ownerDocument.default)(container).body;
|
|
56
|
+
} else {
|
|
57
|
+
// Support html overflow-y: auto for scroll stability between pages
|
|
58
|
+
// https://css-tricks.com/snippets/css/force-vertical-scrollbar/
|
|
59
|
+
const parent = container.parentElement;
|
|
60
|
+
const containerWindow = (0, _ownerWindow.default)(container);
|
|
61
|
+
scrollContainer = parent?.nodeName === 'HTML' && containerWindow.getComputedStyle(parent).overflowY === 'scroll' ? parent : container;
|
|
62
|
+
}
|
|
63
|
+
if (isOverflowing(scrollContainer)) {
|
|
65
64
|
// Compute the size before applying overflow hidden to avoid any scroll jumps.
|
|
66
|
-
const scrollbarSize = (0, _getScrollbarSize.default)((0, _ownerWindow.default)(
|
|
65
|
+
const scrollbarSize = (0, _getScrollbarSize.default)((0, _ownerWindow.default)(scrollContainer));
|
|
67
66
|
restoreStyle.push({
|
|
68
|
-
value:
|
|
67
|
+
value: scrollContainer.style.paddingRight,
|
|
69
68
|
property: 'padding-right',
|
|
70
|
-
el:
|
|
69
|
+
el: scrollContainer
|
|
71
70
|
});
|
|
72
71
|
// Use computed style, here to get the real padding to add our scrollbar width.
|
|
73
|
-
|
|
72
|
+
scrollContainer.style.paddingRight = `${getPaddingRight(scrollContainer) + scrollbarSize}px`;
|
|
74
73
|
|
|
75
74
|
// .mui-fixed is a global helper.
|
|
76
75
|
const fixedElements = (0, _ownerDocument.default)(container).querySelectorAll('.mui-fixed');
|
|
@@ -83,16 +82,6 @@ function handleContainer(containerInfo, props) {
|
|
|
83
82
|
element.style.paddingRight = `${getPaddingRight(element) + scrollbarSize}px`;
|
|
84
83
|
});
|
|
85
84
|
}
|
|
86
|
-
let scrollContainer;
|
|
87
|
-
if (container.parentNode instanceof DocumentFragment) {
|
|
88
|
-
scrollContainer = (0, _ownerDocument.default)(container).body;
|
|
89
|
-
} else {
|
|
90
|
-
// Support html overflow-y: auto for scroll stability between pages
|
|
91
|
-
// https://css-tricks.com/snippets/css/force-vertical-scrollbar/
|
|
92
|
-
const parent = container.parentElement;
|
|
93
|
-
const containerWindow = (0, _ownerWindow.default)(container);
|
|
94
|
-
scrollContainer = parent?.nodeName === 'HTML' && containerWindow.getComputedStyle(parent).overflowY === 'scroll' ? parent : container;
|
|
95
|
-
}
|
|
96
85
|
|
|
97
86
|
// Block the scroll even if no scrollbar is visible to account for mobile keyboard
|
|
98
87
|
// screensize shrink.
|
|
@@ -161,7 +150,7 @@ class ModalManager {
|
|
|
161
150
|
}
|
|
162
151
|
const hiddenSiblings = getHiddenSiblings(container);
|
|
163
152
|
ariaHiddenSiblings(container, modal.mount, modal.modalRef, hiddenSiblings, true);
|
|
164
|
-
const containerIndex =
|
|
153
|
+
const containerIndex = this.containers.findIndex(item => item.container === container);
|
|
165
154
|
if (containerIndex !== -1) {
|
|
166
155
|
this.containers[containerIndex].modals.push(modal);
|
|
167
156
|
return modalIndex;
|
|
@@ -175,7 +164,7 @@ class ModalManager {
|
|
|
175
164
|
return modalIndex;
|
|
176
165
|
}
|
|
177
166
|
mount(modal, props) {
|
|
178
|
-
const containerIndex =
|
|
167
|
+
const containerIndex = this.containers.findIndex(item => item.modals.includes(modal));
|
|
179
168
|
const containerInfo = this.containers[containerIndex];
|
|
180
169
|
if (!containerInfo.restore) {
|
|
181
170
|
containerInfo.restore = handleContainer(containerInfo, props);
|
|
@@ -186,7 +175,7 @@ class ModalManager {
|
|
|
186
175
|
if (modalIndex === -1) {
|
|
187
176
|
return modalIndex;
|
|
188
177
|
}
|
|
189
|
-
const containerIndex =
|
|
178
|
+
const containerIndex = this.containers.findIndex(item => item.modals.includes(modal));
|
|
190
179
|
const containerInfo = this.containers[containerIndex];
|
|
191
180
|
containerInfo.modals.splice(containerInfo.modals.indexOf(modal), 1);
|
|
192
181
|
this.modals.splice(modalIndex, 1);
|
|
@@ -4,7 +4,7 @@ import getScrollbarSize from '@mui/utils/getScrollbarSize';
|
|
|
4
4
|
// Is a vertical scrollbar displayed?
|
|
5
5
|
function isOverflowing(container) {
|
|
6
6
|
const doc = ownerDocument(container);
|
|
7
|
-
if (doc.body ===
|
|
7
|
+
if (container === doc.body || container === doc.documentElement) {
|
|
8
8
|
return ownerWindow(container).innerWidth > doc.documentElement.clientWidth;
|
|
9
9
|
}
|
|
10
10
|
return container.scrollHeight > container.clientHeight;
|
|
@@ -38,31 +38,30 @@ function ariaHiddenSiblings(container, mountElement, currentElement, elementsToE
|
|
|
38
38
|
}
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
|
-
function findIndexOf(items, callback) {
|
|
42
|
-
let idx = -1;
|
|
43
|
-
items.some((item, index) => {
|
|
44
|
-
if (callback(item)) {
|
|
45
|
-
idx = index;
|
|
46
|
-
return true;
|
|
47
|
-
}
|
|
48
|
-
return false;
|
|
49
|
-
});
|
|
50
|
-
return idx;
|
|
51
|
-
}
|
|
52
41
|
function handleContainer(containerInfo, props) {
|
|
53
42
|
const restoreStyle = [];
|
|
54
43
|
const container = containerInfo.container;
|
|
55
44
|
if (!props.disableScrollLock) {
|
|
56
|
-
|
|
45
|
+
let scrollContainer;
|
|
46
|
+
if (container.parentNode instanceof DocumentFragment) {
|
|
47
|
+
scrollContainer = ownerDocument(container).body;
|
|
48
|
+
} else {
|
|
49
|
+
// Support html overflow-y: auto for scroll stability between pages
|
|
50
|
+
// https://css-tricks.com/snippets/css/force-vertical-scrollbar/
|
|
51
|
+
const parent = container.parentElement;
|
|
52
|
+
const containerWindow = ownerWindow(container);
|
|
53
|
+
scrollContainer = parent?.nodeName === 'HTML' && containerWindow.getComputedStyle(parent).overflowY === 'scroll' ? parent : container;
|
|
54
|
+
}
|
|
55
|
+
if (isOverflowing(scrollContainer)) {
|
|
57
56
|
// Compute the size before applying overflow hidden to avoid any scroll jumps.
|
|
58
|
-
const scrollbarSize = getScrollbarSize(ownerWindow(
|
|
57
|
+
const scrollbarSize = getScrollbarSize(ownerWindow(scrollContainer));
|
|
59
58
|
restoreStyle.push({
|
|
60
|
-
value:
|
|
59
|
+
value: scrollContainer.style.paddingRight,
|
|
61
60
|
property: 'padding-right',
|
|
62
|
-
el:
|
|
61
|
+
el: scrollContainer
|
|
63
62
|
});
|
|
64
63
|
// Use computed style, here to get the real padding to add our scrollbar width.
|
|
65
|
-
|
|
64
|
+
scrollContainer.style.paddingRight = `${getPaddingRight(scrollContainer) + scrollbarSize}px`;
|
|
66
65
|
|
|
67
66
|
// .mui-fixed is a global helper.
|
|
68
67
|
const fixedElements = ownerDocument(container).querySelectorAll('.mui-fixed');
|
|
@@ -75,16 +74,6 @@ function handleContainer(containerInfo, props) {
|
|
|
75
74
|
element.style.paddingRight = `${getPaddingRight(element) + scrollbarSize}px`;
|
|
76
75
|
});
|
|
77
76
|
}
|
|
78
|
-
let scrollContainer;
|
|
79
|
-
if (container.parentNode instanceof DocumentFragment) {
|
|
80
|
-
scrollContainer = ownerDocument(container).body;
|
|
81
|
-
} else {
|
|
82
|
-
// Support html overflow-y: auto for scroll stability between pages
|
|
83
|
-
// https://css-tricks.com/snippets/css/force-vertical-scrollbar/
|
|
84
|
-
const parent = container.parentElement;
|
|
85
|
-
const containerWindow = ownerWindow(container);
|
|
86
|
-
scrollContainer = parent?.nodeName === 'HTML' && containerWindow.getComputedStyle(parent).overflowY === 'scroll' ? parent : container;
|
|
87
|
-
}
|
|
88
77
|
|
|
89
78
|
// Block the scroll even if no scrollbar is visible to account for mobile keyboard
|
|
90
79
|
// screensize shrink.
|
|
@@ -153,7 +142,7 @@ export class ModalManager {
|
|
|
153
142
|
}
|
|
154
143
|
const hiddenSiblings = getHiddenSiblings(container);
|
|
155
144
|
ariaHiddenSiblings(container, modal.mount, modal.modalRef, hiddenSiblings, true);
|
|
156
|
-
const containerIndex =
|
|
145
|
+
const containerIndex = this.containers.findIndex(item => item.container === container);
|
|
157
146
|
if (containerIndex !== -1) {
|
|
158
147
|
this.containers[containerIndex].modals.push(modal);
|
|
159
148
|
return modalIndex;
|
|
@@ -167,7 +156,7 @@ export class ModalManager {
|
|
|
167
156
|
return modalIndex;
|
|
168
157
|
}
|
|
169
158
|
mount(modal, props) {
|
|
170
|
-
const containerIndex =
|
|
159
|
+
const containerIndex = this.containers.findIndex(item => item.modals.includes(modal));
|
|
171
160
|
const containerInfo = this.containers[containerIndex];
|
|
172
161
|
if (!containerInfo.restore) {
|
|
173
162
|
containerInfo.restore = handleContainer(containerInfo, props);
|
|
@@ -178,7 +167,7 @@ export class ModalManager {
|
|
|
178
167
|
if (modalIndex === -1) {
|
|
179
168
|
return modalIndex;
|
|
180
169
|
}
|
|
181
|
-
const containerIndex =
|
|
170
|
+
const containerIndex = this.containers.findIndex(item => item.modals.includes(modal));
|
|
182
171
|
const containerInfo = this.containers[containerIndex];
|
|
183
172
|
containerInfo.modals.splice(containerInfo.modals.indexOf(modal), 1);
|
|
184
173
|
this.modals.splice(modalIndex, 1);
|
|
@@ -41,6 +41,7 @@ function useModal(parameters) {
|
|
|
41
41
|
// @ts-ignore internal logic
|
|
42
42
|
const modal = React.useRef({});
|
|
43
43
|
const mountNodeRef = React.useRef(null);
|
|
44
|
+
const lastMountNodeRef = React.useRef(null);
|
|
44
45
|
const modalRef = React.useRef(null);
|
|
45
46
|
const handleRef = (0, _useForkRef.default)(modalRef, rootRef);
|
|
46
47
|
const [exited, setExited] = React.useState(!open);
|
|
@@ -80,6 +81,7 @@ function useModal(parameters) {
|
|
|
80
81
|
if (!node) {
|
|
81
82
|
return;
|
|
82
83
|
}
|
|
84
|
+
lastMountNodeRef.current = node;
|
|
83
85
|
if (open && isTopModal()) {
|
|
84
86
|
handleMounted();
|
|
85
87
|
} else if (modalRef.current) {
|
|
@@ -184,12 +186,17 @@ function useModal(parameters) {
|
|
|
184
186
|
onExited: (0, _createChainedFunction.default)(handleExited, children?.props.onExited ?? noop)
|
|
185
187
|
};
|
|
186
188
|
};
|
|
189
|
+
|
|
190
|
+
// Changing a portal's container remounts its children. Keep an exiting transition in its
|
|
191
|
+
// current container so it can finish and notify the modal that it is safe to unmount.
|
|
192
|
+
const portalContainer = !open && hasTransition && !exited ? lastMountNodeRef.current ?? container : container;
|
|
187
193
|
return {
|
|
188
194
|
getRootProps,
|
|
189
195
|
getBackdropProps,
|
|
190
196
|
getTransitionProps,
|
|
191
197
|
rootRef: handleRef,
|
|
192
198
|
portalRef: handlePortalRef,
|
|
199
|
+
portalContainer,
|
|
193
200
|
isTopModal,
|
|
194
201
|
exited,
|
|
195
202
|
hasTransition
|
|
@@ -34,6 +34,7 @@ function useModal(parameters) {
|
|
|
34
34
|
// @ts-ignore internal logic
|
|
35
35
|
const modal = React.useRef({});
|
|
36
36
|
const mountNodeRef = React.useRef(null);
|
|
37
|
+
const lastMountNodeRef = React.useRef(null);
|
|
37
38
|
const modalRef = React.useRef(null);
|
|
38
39
|
const handleRef = useForkRef(modalRef, rootRef);
|
|
39
40
|
const [exited, setExited] = React.useState(!open);
|
|
@@ -73,6 +74,7 @@ function useModal(parameters) {
|
|
|
73
74
|
if (!node) {
|
|
74
75
|
return;
|
|
75
76
|
}
|
|
77
|
+
lastMountNodeRef.current = node;
|
|
76
78
|
if (open && isTopModal()) {
|
|
77
79
|
handleMounted();
|
|
78
80
|
} else if (modalRef.current) {
|
|
@@ -177,12 +179,17 @@ function useModal(parameters) {
|
|
|
177
179
|
onExited: createChainedFunction(handleExited, children?.props.onExited ?? noop)
|
|
178
180
|
};
|
|
179
181
|
};
|
|
182
|
+
|
|
183
|
+
// Changing a portal's container remounts its children. Keep an exiting transition in its
|
|
184
|
+
// current container so it can finish and notify the modal that it is safe to unmount.
|
|
185
|
+
const portalContainer = !open && hasTransition && !exited ? lastMountNodeRef.current ?? container : container;
|
|
180
186
|
return {
|
|
181
187
|
getRootProps,
|
|
182
188
|
getBackdropProps,
|
|
183
189
|
getTransitionProps,
|
|
184
190
|
rootRef: handleRef,
|
|
185
191
|
portalRef: handlePortalRef,
|
|
192
|
+
portalContainer,
|
|
186
193
|
isTopModal,
|
|
187
194
|
exited,
|
|
188
195
|
hasTransition
|
|
@@ -98,6 +98,11 @@ export interface UseModalReturnValue {
|
|
|
98
98
|
* A ref to the component's portal DOM element.
|
|
99
99
|
*/
|
|
100
100
|
portalRef: React.RefCallback<Element> | null;
|
|
101
|
+
/**
|
|
102
|
+
* The container used by the portal. While a transition is exiting, this remains the last
|
|
103
|
+
* resolved mount node so changing containers does not remount the transition.
|
|
104
|
+
*/
|
|
105
|
+
portalContainer: PortalProps['container'];
|
|
101
106
|
/**
|
|
102
107
|
* If `true`, the modal is the top most one.
|
|
103
108
|
*/
|
|
@@ -98,6 +98,11 @@ export interface UseModalReturnValue {
|
|
|
98
98
|
* A ref to the component's portal DOM element.
|
|
99
99
|
*/
|
|
100
100
|
portalRef: React.RefCallback<Element> | null;
|
|
101
|
+
/**
|
|
102
|
+
* The container used by the portal. While a transition is exiting, this remains the last
|
|
103
|
+
* resolved mount node so changing containers does not remount the transition.
|
|
104
|
+
*/
|
|
105
|
+
portalContainer: PortalProps['container'];
|
|
101
106
|
/**
|
|
102
107
|
* If `true`, the modal is the top most one.
|
|
103
108
|
*/
|
|
@@ -14,8 +14,10 @@ var _refType = _interopRequireDefault(require("@mui/utils/refType"));
|
|
|
14
14
|
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
15
15
|
var _capitalize = _interopRequireDefault(require("../utils/capitalize"));
|
|
16
16
|
var _nativeSelectClasses = _interopRequireWildcard(require("./nativeSelectClasses"));
|
|
17
|
+
var _inputBaseClasses = _interopRequireDefault(require("../InputBase/inputBaseClasses"));
|
|
17
18
|
var _zeroStyled = require("../zero-styled");
|
|
18
19
|
var _rootShouldForwardProp = _interopRequireDefault(require("../styles/rootShouldForwardProp"));
|
|
20
|
+
var _inputAdornmentClasses = _interopRequireDefault(require("../InputAdornment/inputAdornmentClasses"));
|
|
19
21
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
20
22
|
const useUtilityClasses = ownerState => {
|
|
21
23
|
const {
|
|
@@ -60,14 +62,29 @@ const StyledSelectSelect = exports.StyledSelectSelect = (0, _zeroStyled.styled)(
|
|
|
60
62
|
'&:not([multiple]) option, &:not([multiple]) optgroup': {
|
|
61
63
|
backgroundColor: (theme.vars || theme).palette.background.paper
|
|
62
64
|
},
|
|
65
|
+
[`& ~ .${_inputAdornmentClasses.default.root}`]: {
|
|
66
|
+
position: 'absolute',
|
|
67
|
+
top: '50%',
|
|
68
|
+
transform: 'translateY(-50%)',
|
|
69
|
+
right: 'calc(var(--_caret, 24px) + (var(--_endAdornment, 28px) - 1.5rem)/2)' // 1.5rem is the default icon size
|
|
70
|
+
},
|
|
71
|
+
[`.${_inputBaseClasses.default.root}:has(> &)`]: {
|
|
72
|
+
'--_endAdornment': '0px'
|
|
73
|
+
},
|
|
63
74
|
variants: [{
|
|
64
75
|
props: ({
|
|
65
76
|
ownerState
|
|
66
77
|
}) => ownerState.variant !== 'filled' && ownerState.variant !== 'outlined',
|
|
67
78
|
style: {
|
|
79
|
+
[`.${_inputBaseClasses.default.root}:has(> &)`]: {
|
|
80
|
+
'--_caret': '24px'
|
|
81
|
+
},
|
|
82
|
+
[`.${_inputBaseClasses.default.root}:has(> & ~ .${_inputAdornmentClasses.default.root})`]: {
|
|
83
|
+
'--_endAdornment': '28px'
|
|
84
|
+
},
|
|
68
85
|
// Bump specificity to allow extending custom inputs
|
|
69
86
|
'&&&': {
|
|
70
|
-
paddingRight:
|
|
87
|
+
paddingRight: 'calc(var(--_caret, 24px) + var(--_endAdornment, 0px))',
|
|
71
88
|
minWidth: 16 // So it doesn't collapse.
|
|
72
89
|
}
|
|
73
90
|
}
|
|
@@ -76,8 +93,14 @@ const StyledSelectSelect = exports.StyledSelectSelect = (0, _zeroStyled.styled)(
|
|
|
76
93
|
variant: 'filled'
|
|
77
94
|
},
|
|
78
95
|
style: {
|
|
96
|
+
[`.${_inputBaseClasses.default.root}:has(> &)`]: {
|
|
97
|
+
'--_caret': '32px'
|
|
98
|
+
},
|
|
99
|
+
[`.${_inputBaseClasses.default.root}:has(> & ~ .${_inputAdornmentClasses.default.root})`]: {
|
|
100
|
+
'--_endAdornment': '28px'
|
|
101
|
+
},
|
|
79
102
|
'&&&': {
|
|
80
|
-
paddingRight:
|
|
103
|
+
paddingRight: 'calc(var(--_caret, 32px) + var(--_endAdornment, 0px))'
|
|
81
104
|
}
|
|
82
105
|
}
|
|
83
106
|
}, {
|
|
@@ -85,12 +108,18 @@ const StyledSelectSelect = exports.StyledSelectSelect = (0, _zeroStyled.styled)(
|
|
|
85
108
|
variant: 'outlined'
|
|
86
109
|
},
|
|
87
110
|
style: {
|
|
111
|
+
[`.${_inputBaseClasses.default.root}:has(> &)`]: {
|
|
112
|
+
'--_caret': '32px'
|
|
113
|
+
},
|
|
114
|
+
[`.${_inputBaseClasses.default.root}:has(> & ~ .${_inputAdornmentClasses.default.root})`]: {
|
|
115
|
+
'--_endAdornment': '28px'
|
|
116
|
+
},
|
|
88
117
|
borderRadius: (theme.vars || theme).shape.borderRadius,
|
|
89
118
|
'&:focus': {
|
|
90
119
|
borderRadius: (theme.vars || theme).shape.borderRadius // Reset the reset for Chrome style
|
|
91
120
|
},
|
|
92
121
|
'&&&': {
|
|
93
|
-
paddingRight:
|
|
122
|
+
paddingRight: 'calc(var(--_caret, 32px) + var(--_endAdornment, 0px))'
|
|
94
123
|
}
|
|
95
124
|
}
|
|
96
125
|
}]
|
|
@@ -7,8 +7,10 @@ import refType from '@mui/utils/refType';
|
|
|
7
7
|
import composeClasses from '@mui/utils/composeClasses';
|
|
8
8
|
import capitalize from "../utils/capitalize.mjs";
|
|
9
9
|
import nativeSelectClasses, { getNativeSelectUtilityClasses } from "./nativeSelectClasses.mjs";
|
|
10
|
+
import inputBaseClasses from "../InputBase/inputBaseClasses.mjs";
|
|
10
11
|
import { styled } from "../zero-styled/index.mjs";
|
|
11
12
|
import rootShouldForwardProp from "../styles/rootShouldForwardProp.mjs";
|
|
13
|
+
import inputAdornmentClasses from "../InputAdornment/inputAdornmentClasses.mjs";
|
|
12
14
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
15
|
const useUtilityClasses = ownerState => {
|
|
14
16
|
const {
|
|
@@ -53,14 +55,29 @@ export const StyledSelectSelect = styled('select', {
|
|
|
53
55
|
'&:not([multiple]) option, &:not([multiple]) optgroup': {
|
|
54
56
|
backgroundColor: (theme.vars || theme).palette.background.paper
|
|
55
57
|
},
|
|
58
|
+
[`& ~ .${inputAdornmentClasses.root}`]: {
|
|
59
|
+
position: 'absolute',
|
|
60
|
+
top: '50%',
|
|
61
|
+
transform: 'translateY(-50%)',
|
|
62
|
+
right: 'calc(var(--_caret, 24px) + (var(--_endAdornment, 28px) - 1.5rem)/2)' // 1.5rem is the default icon size
|
|
63
|
+
},
|
|
64
|
+
[`.${inputBaseClasses.root}:has(> &)`]: {
|
|
65
|
+
'--_endAdornment': '0px'
|
|
66
|
+
},
|
|
56
67
|
variants: [{
|
|
57
68
|
props: ({
|
|
58
69
|
ownerState
|
|
59
70
|
}) => ownerState.variant !== 'filled' && ownerState.variant !== 'outlined',
|
|
60
71
|
style: {
|
|
72
|
+
[`.${inputBaseClasses.root}:has(> &)`]: {
|
|
73
|
+
'--_caret': '24px'
|
|
74
|
+
},
|
|
75
|
+
[`.${inputBaseClasses.root}:has(> & ~ .${inputAdornmentClasses.root})`]: {
|
|
76
|
+
'--_endAdornment': '28px'
|
|
77
|
+
},
|
|
61
78
|
// Bump specificity to allow extending custom inputs
|
|
62
79
|
'&&&': {
|
|
63
|
-
paddingRight:
|
|
80
|
+
paddingRight: 'calc(var(--_caret, 24px) + var(--_endAdornment, 0px))',
|
|
64
81
|
minWidth: 16 // So it doesn't collapse.
|
|
65
82
|
}
|
|
66
83
|
}
|
|
@@ -69,8 +86,14 @@ export const StyledSelectSelect = styled('select', {
|
|
|
69
86
|
variant: 'filled'
|
|
70
87
|
},
|
|
71
88
|
style: {
|
|
89
|
+
[`.${inputBaseClasses.root}:has(> &)`]: {
|
|
90
|
+
'--_caret': '32px'
|
|
91
|
+
},
|
|
92
|
+
[`.${inputBaseClasses.root}:has(> & ~ .${inputAdornmentClasses.root})`]: {
|
|
93
|
+
'--_endAdornment': '28px'
|
|
94
|
+
},
|
|
72
95
|
'&&&': {
|
|
73
|
-
paddingRight:
|
|
96
|
+
paddingRight: 'calc(var(--_caret, 32px) + var(--_endAdornment, 0px))'
|
|
74
97
|
}
|
|
75
98
|
}
|
|
76
99
|
}, {
|
|
@@ -78,12 +101,18 @@ export const StyledSelectSelect = styled('select', {
|
|
|
78
101
|
variant: 'outlined'
|
|
79
102
|
},
|
|
80
103
|
style: {
|
|
104
|
+
[`.${inputBaseClasses.root}:has(> &)`]: {
|
|
105
|
+
'--_caret': '32px'
|
|
106
|
+
},
|
|
107
|
+
[`.${inputBaseClasses.root}:has(> & ~ .${inputAdornmentClasses.root})`]: {
|
|
108
|
+
'--_endAdornment': '28px'
|
|
109
|
+
},
|
|
81
110
|
borderRadius: (theme.vars || theme).shape.borderRadius,
|
|
82
111
|
'&:focus': {
|
|
83
112
|
borderRadius: (theme.vars || theme).shape.borderRadius // Reset the reset for Chrome style
|
|
84
113
|
},
|
|
85
114
|
'&&&': {
|
|
86
|
-
paddingRight:
|
|
115
|
+
paddingRight: 'calc(var(--_caret, 32px) + var(--_endAdornment, 0px))'
|
|
87
116
|
}
|
|
88
117
|
}
|
|
89
118
|
}]
|
|
@@ -10,6 +10,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
10
10
|
var _rootShouldForwardProp = _interopRequireDefault(require("../styles/rootShouldForwardProp"));
|
|
11
11
|
var _zeroStyled = require("../zero-styled");
|
|
12
12
|
var _memoTheme = _interopRequireDefault(require("../utils/memoTheme"));
|
|
13
|
+
var _utils = require("../transitions/utils");
|
|
13
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
15
|
var _span;
|
|
15
16
|
const NotchedOutlineRoot = (0, _zeroStyled.styled)('fieldset', {
|
|
@@ -51,7 +52,7 @@ const NotchedOutlineLegend = (0, _zeroStyled.styled)('legend', {
|
|
|
51
52
|
padding: 0,
|
|
52
53
|
lineHeight: '11px',
|
|
53
54
|
// sync with `height` in `legend` styles
|
|
54
|
-
|
|
55
|
+
...(0, _utils.getTransitionStyles)(theme, 'width', {
|
|
55
56
|
duration: 150,
|
|
56
57
|
easing: theme.transitions.easing.easeOut
|
|
57
58
|
})
|
|
@@ -69,7 +70,7 @@ const NotchedOutlineLegend = (0, _zeroStyled.styled)('legend', {
|
|
|
69
70
|
fontSize: '0.75em',
|
|
70
71
|
visibility: 'hidden',
|
|
71
72
|
maxWidth: 0.01,
|
|
72
|
-
|
|
73
|
+
...(0, _utils.getTransitionStyles)(theme, 'max-width', {
|
|
73
74
|
duration: 50,
|
|
74
75
|
easing: theme.transitions.easing.easeOut
|
|
75
76
|
}),
|
|
@@ -88,7 +89,7 @@ const NotchedOutlineLegend = (0, _zeroStyled.styled)('legend', {
|
|
|
88
89
|
}) => ownerState.withLabel && ownerState.notched,
|
|
89
90
|
style: {
|
|
90
91
|
maxWidth: '100%',
|
|
91
|
-
|
|
92
|
+
...(0, _utils.getTransitionStyles)(theme, 'max-width', {
|
|
92
93
|
duration: 100,
|
|
93
94
|
easing: theme.transitions.easing.easeOut,
|
|
94
95
|
delay: 50
|
|
@@ -5,6 +5,7 @@ import PropTypes from 'prop-types';
|
|
|
5
5
|
import rootShouldForwardProp from "../styles/rootShouldForwardProp.mjs";
|
|
6
6
|
import { styled } from "../zero-styled/index.mjs";
|
|
7
7
|
import memoTheme from "../utils/memoTheme.mjs";
|
|
8
|
+
import { getTransitionStyles } from "../transitions/utils.mjs";
|
|
8
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
10
|
const NotchedOutlineRoot = styled('fieldset', {
|
|
10
11
|
name: 'MuiNotchedOutlined',
|
|
@@ -45,7 +46,7 @@ const NotchedOutlineLegend = styled('legend', {
|
|
|
45
46
|
padding: 0,
|
|
46
47
|
lineHeight: '11px',
|
|
47
48
|
// sync with `height` in `legend` styles
|
|
48
|
-
|
|
49
|
+
...getTransitionStyles(theme, 'width', {
|
|
49
50
|
duration: 150,
|
|
50
51
|
easing: theme.transitions.easing.easeOut
|
|
51
52
|
})
|
|
@@ -63,7 +64,7 @@ const NotchedOutlineLegend = styled('legend', {
|
|
|
63
64
|
fontSize: '0.75em',
|
|
64
65
|
visibility: 'hidden',
|
|
65
66
|
maxWidth: 0.01,
|
|
66
|
-
|
|
67
|
+
...getTransitionStyles(theme, 'max-width', {
|
|
67
68
|
duration: 50,
|
|
68
69
|
easing: theme.transitions.easing.easeOut
|
|
69
70
|
}),
|
|
@@ -82,7 +83,7 @@ const NotchedOutlineLegend = styled('legend', {
|
|
|
82
83
|
}) => ownerState.withLabel && ownerState.notched,
|
|
83
84
|
style: {
|
|
84
85
|
maxWidth: '100%',
|
|
85
|
-
|
|
86
|
+
...getTransitionStyles(theme, 'max-width', {
|
|
86
87
|
duration: 100,
|
|
87
88
|
easing: theme.transitions.easing.easeOut,
|
|
88
89
|
delay: 50
|
|
@@ -19,6 +19,7 @@ var _memoTheme = _interopRequireDefault(require("../utils/memoTheme"));
|
|
|
19
19
|
var _createSimplePaletteValueFilter = _interopRequireDefault(require("../utils/createSimplePaletteValueFilter"));
|
|
20
20
|
var _DefaultPropsProvider = require("../DefaultPropsProvider");
|
|
21
21
|
var _outlinedInputClasses = _interopRequireWildcard(require("./outlinedInputClasses"));
|
|
22
|
+
var _selectClasses = _interopRequireDefault(require("../Select/selectClasses"));
|
|
22
23
|
var _InputBase = _interopRequireWildcard(require("../InputBase/InputBase"));
|
|
23
24
|
var _useSlot = _interopRequireDefault(require("../utils/useSlot"));
|
|
24
25
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -94,7 +95,12 @@ const OutlinedInputRoot = (0, _zeroStyled.styled)(_InputBase.InputBaseRoot, {
|
|
|
94
95
|
ownerState
|
|
95
96
|
}) => ownerState.endAdornment,
|
|
96
97
|
style: {
|
|
97
|
-
|
|
98
|
+
// use CSS variable to keep specificity
|
|
99
|
+
'--_trailingPad': '14px',
|
|
100
|
+
paddingRight: 'var(--_trailingPad)',
|
|
101
|
+
[`&.${_selectClasses.default.root}`]: {
|
|
102
|
+
'--_trailingPad': '0px'
|
|
103
|
+
}
|
|
98
104
|
}
|
|
99
105
|
}, {
|
|
100
106
|
props: ({
|