@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
|
@@ -1,8 +1,12 @@
|
|
|
1
|
+
import { defaultStyles, resolveReducedMotionStyles } from "../styles/reducedMotion.mjs";
|
|
1
2
|
export const reflow = node => node.scrollTop;
|
|
2
3
|
const DEFAULT_TRANSLATE_OFFSET = {
|
|
3
4
|
offsetX: 0,
|
|
4
5
|
offsetY: 0
|
|
5
6
|
};
|
|
7
|
+
const EMPTY_STYLE = {};
|
|
8
|
+
const DEFAULT_TRANSITION_PROPS = ['all'];
|
|
9
|
+
const EMPTY_OPTIONS = {};
|
|
6
10
|
const transformOffsetIndexes = {
|
|
7
11
|
matrix: [4, 5],
|
|
8
12
|
matrix3d: [12, 13],
|
|
@@ -66,7 +70,7 @@ export function normalizedTransitionCallback(nodeRef, callback) {
|
|
|
66
70
|
return maybeIsAppearing => {
|
|
67
71
|
if (callback) {
|
|
68
72
|
const node = nodeRef.current;
|
|
69
|
-
//
|
|
73
|
+
// Enter callbacks receive isAppearing; exit callbacks do not.
|
|
70
74
|
if (maybeIsAppearing === undefined) {
|
|
71
75
|
callback(node);
|
|
72
76
|
} else {
|
|
@@ -76,8 +80,8 @@ export function normalizedTransitionCallback(nodeRef, callback) {
|
|
|
76
80
|
};
|
|
77
81
|
}
|
|
78
82
|
/**
|
|
79
|
-
*
|
|
80
|
-
*
|
|
83
|
+
* Return the child style for a transition. Reuse predefined style objects when
|
|
84
|
+
* no custom styles are present so memoized children see the same object.
|
|
81
85
|
*/
|
|
82
86
|
export function getTransitionChildStyle(state, inProp, baseStyles, hiddenStyles, styleProp, childStyle) {
|
|
83
87
|
const base = state === 'exited' && !inProp ? hiddenStyles : baseStyles[state] || baseStyles.exited;
|
|
@@ -91,11 +95,34 @@ export function getTransitionProps(props, options) {
|
|
|
91
95
|
const {
|
|
92
96
|
timeout,
|
|
93
97
|
easing,
|
|
94
|
-
style =
|
|
98
|
+
style = EMPTY_STYLE
|
|
95
99
|
} = props;
|
|
96
100
|
return {
|
|
97
101
|
duration: style.transitionDuration ?? (typeof timeout === 'number' ? timeout : timeout[options.mode] || 0),
|
|
98
102
|
easing: style.transitionTimingFunction ?? (typeof easing === 'object' ? easing[options.mode] : easing),
|
|
99
103
|
delay: style.transitionDelay
|
|
100
104
|
};
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Returns CSS that disables component-owned transitions when reduced motion is active.
|
|
109
|
+
* Pass custom styles only when the default `transition: none` reset is not enough.
|
|
110
|
+
*/
|
|
111
|
+
export function getReducedMotionStyles(theme, styles) {
|
|
112
|
+
const resolvedStyles = styles ?? defaultStyles;
|
|
113
|
+
return resolveReducedMotionStyles(theme.motion?.reducedMotion, resolvedStyles);
|
|
114
|
+
}
|
|
115
|
+
export function getTransitionStyles(theme, props = DEFAULT_TRANSITION_PROPS, options = EMPTY_OPTIONS) {
|
|
116
|
+
const transition = theme.transitions?.create?.(props, options);
|
|
117
|
+
const reducedMotionStyles = getReducedMotionStyles(theme);
|
|
118
|
+
if (transition === undefined) {
|
|
119
|
+
return reducedMotionStyles ?? EMPTY_STYLE;
|
|
120
|
+
}
|
|
121
|
+
const transitionStyles = {
|
|
122
|
+
transition
|
|
123
|
+
};
|
|
124
|
+
return reducedMotionStyles ? {
|
|
125
|
+
...transitionStyles,
|
|
126
|
+
...reducedMotionStyles
|
|
127
|
+
} : transitionStyles;
|
|
101
128
|
}
|
|
@@ -260,6 +260,12 @@ export interface UseAutocompleteProps<Value, Multiple extends boolean | undefine
|
|
|
260
260
|
* @default false
|
|
261
261
|
*/
|
|
262
262
|
readOnly?: boolean | undefined;
|
|
263
|
+
/**
|
|
264
|
+
* If `true`, clears an option highlighted by mouse movement when the mouse leaves the listbox.
|
|
265
|
+
* This behavior will be enabled by default in the next major version.
|
|
266
|
+
* @default false
|
|
267
|
+
*/
|
|
268
|
+
resetHighlightOnMouseLeave?: boolean | undefined;
|
|
263
269
|
/**
|
|
264
270
|
* If `true`, the input's text is selected on focus.
|
|
265
271
|
* It helps the user clear the selected value.
|
|
@@ -347,9 +353,10 @@ export interface UseAutocompleteReturnValue<Value, Multiple extends boolean | un
|
|
|
347
353
|
getPopupIndicatorProps: () => React.HTMLAttributes<HTMLButtonElement>;
|
|
348
354
|
/**
|
|
349
355
|
* Resolver for the listbox component's props.
|
|
356
|
+
* @param externalProps props for the listbox component
|
|
350
357
|
* @returns props that should be spread on the listbox component
|
|
351
358
|
*/
|
|
352
|
-
getListboxProps: () => React.HTMLAttributes<HTMLUListElement>;
|
|
359
|
+
getListboxProps: (externalProps?: any) => React.HTMLAttributes<HTMLUListElement>;
|
|
353
360
|
/**
|
|
354
361
|
* Resolver for the rendered option element's props.
|
|
355
362
|
* @param renderedOption option rendered on the Autocomplete
|
|
@@ -260,6 +260,12 @@ export interface UseAutocompleteProps<Value, Multiple extends boolean | undefine
|
|
|
260
260
|
* @default false
|
|
261
261
|
*/
|
|
262
262
|
readOnly?: boolean | undefined;
|
|
263
|
+
/**
|
|
264
|
+
* If `true`, clears an option highlighted by mouse movement when the mouse leaves the listbox.
|
|
265
|
+
* This behavior will be enabled by default in the next major version.
|
|
266
|
+
* @default false
|
|
267
|
+
*/
|
|
268
|
+
resetHighlightOnMouseLeave?: boolean | undefined;
|
|
263
269
|
/**
|
|
264
270
|
* If `true`, the input's text is selected on focus.
|
|
265
271
|
* It helps the user clear the selected value.
|
|
@@ -347,9 +353,10 @@ export interface UseAutocompleteReturnValue<Value, Multiple extends boolean | un
|
|
|
347
353
|
getPopupIndicatorProps: () => React.HTMLAttributes<HTMLButtonElement>;
|
|
348
354
|
/**
|
|
349
355
|
* Resolver for the listbox component's props.
|
|
356
|
+
* @param externalProps props for the listbox component
|
|
350
357
|
* @returns props that should be spread on the listbox component
|
|
351
358
|
*/
|
|
352
|
-
getListboxProps: () => React.HTMLAttributes<HTMLUListElement>;
|
|
359
|
+
getListboxProps: (externalProps?: any) => React.HTMLAttributes<HTMLUListElement>;
|
|
353
360
|
/**
|
|
354
361
|
* Resolver for the rendered option element's props.
|
|
355
362
|
* @param renderedOption option rendered on the Autocomplete
|
|
@@ -116,6 +116,7 @@ function useAutocomplete(props) {
|
|
|
116
116
|
options,
|
|
117
117
|
readOnly = false,
|
|
118
118
|
renderValue,
|
|
119
|
+
resetHighlightOnMouseLeave = false,
|
|
119
120
|
selectOnFocus = !props.freeSolo,
|
|
120
121
|
value: valueProp
|
|
121
122
|
} = props;
|
|
@@ -136,6 +137,9 @@ function useAutocomplete(props) {
|
|
|
136
137
|
const firstFocus = React.useRef(true);
|
|
137
138
|
const inputRef = React.useRef(null);
|
|
138
139
|
const listboxRef = React.useRef(null);
|
|
140
|
+
// VoiceOver synthesises a spurious Backspace on the input after a chip
|
|
141
|
+
// deletion moves DOM focus back to it. This flag suppresses that one event.
|
|
142
|
+
const ignoreNextBackspaceRef = React.useRef(false);
|
|
139
143
|
const windowLostFocus = React.useRef(false);
|
|
140
144
|
const [anchorEl, setAnchorEl] = React.useState(null);
|
|
141
145
|
const [focusedItem, setFocusedItem] = React.useState(-1);
|
|
@@ -243,8 +247,10 @@ function useAutocomplete(props) {
|
|
|
243
247
|
return;
|
|
244
248
|
}
|
|
245
249
|
|
|
246
|
-
//
|
|
247
|
-
|
|
250
|
+
// In freeSolo mode, only reset the input after a real value change.
|
|
251
|
+
// Also prevent the initial default value of `null` from clearing controlled values.
|
|
252
|
+
const shouldSkipFreeSoloReset = freeSolo && (!valueChange || value == null && previousProps.value === undefined);
|
|
253
|
+
if (shouldSkipFreeSoloReset) {
|
|
248
254
|
return;
|
|
249
255
|
}
|
|
250
256
|
resetInputValue(null, value, 'reset');
|
|
@@ -261,6 +267,7 @@ function useAutocomplete(props) {
|
|
|
261
267
|
// Ensure the focusedItem is never inconsistent
|
|
262
268
|
React.useEffect(() => {
|
|
263
269
|
if (multiple && focusedItem > value.length - 1) {
|
|
270
|
+
// eslint-disable-next-line react-hooks/set-state-in-effect
|
|
264
271
|
setFocusedItem(-1);
|
|
265
272
|
focusItem(-1);
|
|
266
273
|
}
|
|
@@ -300,6 +307,12 @@ function useAutocomplete(props) {
|
|
|
300
307
|
reason,
|
|
301
308
|
preserveScroll = false
|
|
302
309
|
}) => {
|
|
310
|
+
// React can clear refs before pending passive effects run during unmount.
|
|
311
|
+
// If both refs are gone, there is no DOM left to sync.
|
|
312
|
+
if (inputRef.current == null && listboxRef.current == null) {
|
|
313
|
+
return;
|
|
314
|
+
}
|
|
315
|
+
|
|
303
316
|
// does the index exist?
|
|
304
317
|
if (index === -1) {
|
|
305
318
|
inputRef.current.removeAttribute('aria-activedescendant');
|
|
@@ -841,13 +854,13 @@ function useAutocomplete(props) {
|
|
|
841
854
|
break;
|
|
842
855
|
case 'Enter':
|
|
843
856
|
{
|
|
844
|
-
// In freeSolo,
|
|
845
|
-
//
|
|
846
|
-
//
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
const
|
|
857
|
+
// In freeSolo, once the user has typed new text, Enter should commit that text instead
|
|
858
|
+
// of treating a programmatic highlight as an intentional selection. Programmatic
|
|
859
|
+
// highlights include autoHighlight and syncHighlightedIndex matching a previous value.
|
|
860
|
+
const hasProgrammaticHighlight = popupOpen && highlightedIndexRef.current !== -1 && highlightReasonRef.current === null;
|
|
861
|
+
const shouldCommitFreeSoloOverProgrammaticHighlight = freeSolo && !inputPristine && hasProgrammaticHighlight;
|
|
862
|
+
const shouldSelectHighlighted = !freeSolo || inputPristine || !hasProgrammaticHighlight;
|
|
863
|
+
const shouldPreventSubmitAfterFreeSoloCommit = shouldCommitFreeSoloOverProgrammaticHighlight && !touchScrolledRef.current;
|
|
851
864
|
if (highlightedIndexRef.current !== -1 && popupOpen && shouldSelectHighlighted &&
|
|
852
865
|
// After a touch-scroll the highlight is stale (the user scrolled
|
|
853
866
|
// past it), so skip selection until the next deliberate interaction.
|
|
@@ -867,8 +880,8 @@ function useAutocomplete(props) {
|
|
|
867
880
|
inputRef.current.setSelectionRange(inputRef.current.value.length, inputRef.current.value.length);
|
|
868
881
|
}
|
|
869
882
|
} else if (freeSolo && inputValue !== '' && inputValueIsSelectedValue === false) {
|
|
870
|
-
if (multiple) {
|
|
871
|
-
// Allow people to
|
|
883
|
+
if (multiple || shouldPreventSubmitAfterFreeSoloCommit) {
|
|
884
|
+
// Allow people to commit the freeSolo value before they submit the form.
|
|
872
885
|
event.preventDefault();
|
|
873
886
|
}
|
|
874
887
|
selectNewValue(event, inputValue, 'createOption', 'freeSolo');
|
|
@@ -898,6 +911,10 @@ function useAutocomplete(props) {
|
|
|
898
911
|
break;
|
|
899
912
|
case 'Backspace':
|
|
900
913
|
// Remove the value on the left of the "cursor"
|
|
914
|
+
if (ignoreNextBackspaceRef.current) {
|
|
915
|
+
ignoreNextBackspaceRef.current = false;
|
|
916
|
+
break;
|
|
917
|
+
}
|
|
901
918
|
if (multiple && !readOnly && inputValue === '' && value.length > 0) {
|
|
902
919
|
const index = focusedItem === -1 ? value.length - 1 : focusedItem;
|
|
903
920
|
const newValue = value.slice();
|
|
@@ -905,6 +922,18 @@ function useAutocomplete(props) {
|
|
|
905
922
|
handleValue(event, newValue, 'removeOption', {
|
|
906
923
|
option: value[index]
|
|
907
924
|
});
|
|
925
|
+
if (focusedItem !== -1) {
|
|
926
|
+
// Suppress the spurious Backspace VoiceOver synthesises on the
|
|
927
|
+
// input after focus returns to it. Clear it shortly after
|
|
928
|
+
// deletion so a later real Backspace is not ignored if the
|
|
929
|
+
// synthetic follow-up event never arrives.
|
|
930
|
+
ignoreNextBackspaceRef.current = true;
|
|
931
|
+
setTimeout(() => {
|
|
932
|
+
if (ignoreNextBackspaceRef.current) {
|
|
933
|
+
ignoreNextBackspaceRef.current = false;
|
|
934
|
+
}
|
|
935
|
+
}, 0);
|
|
936
|
+
}
|
|
908
937
|
}
|
|
909
938
|
if (!multiple && renderValue && !readOnly && inputValue === '') {
|
|
910
939
|
handleValue(event, null, 'removeOption', {
|
|
@@ -1030,6 +1059,17 @@ function useAutocomplete(props) {
|
|
|
1030
1059
|
touchScrolledRef.current = false;
|
|
1031
1060
|
}
|
|
1032
1061
|
};
|
|
1062
|
+
const handleListboxMouseLeave = event => {
|
|
1063
|
+
if (!resetHighlightOnMouseLeave || highlightedIndexRef.current === -1 || highlightReasonRef.current !== 'mouse' || isTouchRef.current) {
|
|
1064
|
+
return;
|
|
1065
|
+
}
|
|
1066
|
+
setHighlightedIndex({
|
|
1067
|
+
event,
|
|
1068
|
+
index: -1,
|
|
1069
|
+
reason: 'mouse',
|
|
1070
|
+
preserveScroll: true
|
|
1071
|
+
});
|
|
1072
|
+
};
|
|
1033
1073
|
const handleOptionTouchStart = event => {
|
|
1034
1074
|
touchScrolledRef.current = false;
|
|
1035
1075
|
setHighlightedIndex({
|
|
@@ -1183,6 +1223,12 @@ function useAutocomplete(props) {
|
|
|
1183
1223
|
}),
|
|
1184
1224
|
'data-item-index': index,
|
|
1185
1225
|
tabIndex: -1,
|
|
1226
|
+
onFocus: () => {
|
|
1227
|
+
// If focus on the item doesn't come from keyboard events, we update the state via onFocus.
|
|
1228
|
+
if (focusedItem !== index) {
|
|
1229
|
+
setFocusedItem(index);
|
|
1230
|
+
}
|
|
1231
|
+
},
|
|
1186
1232
|
...(!readOnly && {
|
|
1187
1233
|
onDelete: multiple ? handleItemDelete(index) : handleSingleItemDelete
|
|
1188
1234
|
})
|
|
@@ -1192,20 +1238,37 @@ function useAutocomplete(props) {
|
|
|
1192
1238
|
type: 'button',
|
|
1193
1239
|
onClick: handlePopupIndicator
|
|
1194
1240
|
}),
|
|
1195
|
-
getListboxProps: () => ({
|
|
1241
|
+
getListboxProps: (other = {}) => ({
|
|
1242
|
+
...other,
|
|
1196
1243
|
role: 'listbox',
|
|
1197
1244
|
id: `${id}-listbox`,
|
|
1198
1245
|
'aria-labelledby': `${id}-label`,
|
|
1199
1246
|
'aria-multiselectable': multiple || undefined,
|
|
1200
1247
|
ref: handleListboxRef,
|
|
1201
1248
|
onMouseDown: event => {
|
|
1249
|
+
other.onMouseDown?.(event);
|
|
1250
|
+
if (event.defaultMuiPrevented) {
|
|
1251
|
+
return;
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1202
1254
|
// Prevent blur
|
|
1203
1255
|
event.preventDefault();
|
|
1204
1256
|
},
|
|
1205
|
-
onScroll:
|
|
1257
|
+
onScroll: event => {
|
|
1258
|
+
other.onScroll?.(event);
|
|
1259
|
+
if (event.defaultMuiPrevented) {
|
|
1260
|
+
return;
|
|
1261
|
+
}
|
|
1206
1262
|
if (isTouchRef.current) {
|
|
1207
1263
|
touchScrolledRef.current = true;
|
|
1208
1264
|
}
|
|
1265
|
+
},
|
|
1266
|
+
onMouseLeave: event => {
|
|
1267
|
+
other.onMouseLeave?.(event);
|
|
1268
|
+
if (event.defaultMuiPrevented) {
|
|
1269
|
+
return;
|
|
1270
|
+
}
|
|
1271
|
+
handleListboxMouseLeave(event);
|
|
1209
1272
|
}
|
|
1210
1273
|
}),
|
|
1211
1274
|
getOptionProps: ({
|
|
@@ -108,6 +108,7 @@ function useAutocomplete(props) {
|
|
|
108
108
|
options,
|
|
109
109
|
readOnly = false,
|
|
110
110
|
renderValue,
|
|
111
|
+
resetHighlightOnMouseLeave = false,
|
|
111
112
|
selectOnFocus = !props.freeSolo,
|
|
112
113
|
value: valueProp
|
|
113
114
|
} = props;
|
|
@@ -128,6 +129,9 @@ function useAutocomplete(props) {
|
|
|
128
129
|
const firstFocus = React.useRef(true);
|
|
129
130
|
const inputRef = React.useRef(null);
|
|
130
131
|
const listboxRef = React.useRef(null);
|
|
132
|
+
// VoiceOver synthesises a spurious Backspace on the input after a chip
|
|
133
|
+
// deletion moves DOM focus back to it. This flag suppresses that one event.
|
|
134
|
+
const ignoreNextBackspaceRef = React.useRef(false);
|
|
131
135
|
const windowLostFocus = React.useRef(false);
|
|
132
136
|
const [anchorEl, setAnchorEl] = React.useState(null);
|
|
133
137
|
const [focusedItem, setFocusedItem] = React.useState(-1);
|
|
@@ -235,8 +239,10 @@ function useAutocomplete(props) {
|
|
|
235
239
|
return;
|
|
236
240
|
}
|
|
237
241
|
|
|
238
|
-
//
|
|
239
|
-
|
|
242
|
+
// In freeSolo mode, only reset the input after a real value change.
|
|
243
|
+
// Also prevent the initial default value of `null` from clearing controlled values.
|
|
244
|
+
const shouldSkipFreeSoloReset = freeSolo && (!valueChange || value == null && previousProps.value === undefined);
|
|
245
|
+
if (shouldSkipFreeSoloReset) {
|
|
240
246
|
return;
|
|
241
247
|
}
|
|
242
248
|
resetInputValue(null, value, 'reset');
|
|
@@ -253,6 +259,7 @@ function useAutocomplete(props) {
|
|
|
253
259
|
// Ensure the focusedItem is never inconsistent
|
|
254
260
|
React.useEffect(() => {
|
|
255
261
|
if (multiple && focusedItem > value.length - 1) {
|
|
262
|
+
// eslint-disable-next-line react-hooks/set-state-in-effect
|
|
256
263
|
setFocusedItem(-1);
|
|
257
264
|
focusItem(-1);
|
|
258
265
|
}
|
|
@@ -292,6 +299,12 @@ function useAutocomplete(props) {
|
|
|
292
299
|
reason,
|
|
293
300
|
preserveScroll = false
|
|
294
301
|
}) => {
|
|
302
|
+
// React can clear refs before pending passive effects run during unmount.
|
|
303
|
+
// If both refs are gone, there is no DOM left to sync.
|
|
304
|
+
if (inputRef.current == null && listboxRef.current == null) {
|
|
305
|
+
return;
|
|
306
|
+
}
|
|
307
|
+
|
|
295
308
|
// does the index exist?
|
|
296
309
|
if (index === -1) {
|
|
297
310
|
inputRef.current.removeAttribute('aria-activedescendant');
|
|
@@ -833,13 +846,13 @@ function useAutocomplete(props) {
|
|
|
833
846
|
break;
|
|
834
847
|
case 'Enter':
|
|
835
848
|
{
|
|
836
|
-
// In freeSolo,
|
|
837
|
-
//
|
|
838
|
-
//
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
const
|
|
849
|
+
// In freeSolo, once the user has typed new text, Enter should commit that text instead
|
|
850
|
+
// of treating a programmatic highlight as an intentional selection. Programmatic
|
|
851
|
+
// highlights include autoHighlight and syncHighlightedIndex matching a previous value.
|
|
852
|
+
const hasProgrammaticHighlight = popupOpen && highlightedIndexRef.current !== -1 && highlightReasonRef.current === null;
|
|
853
|
+
const shouldCommitFreeSoloOverProgrammaticHighlight = freeSolo && !inputPristine && hasProgrammaticHighlight;
|
|
854
|
+
const shouldSelectHighlighted = !freeSolo || inputPristine || !hasProgrammaticHighlight;
|
|
855
|
+
const shouldPreventSubmitAfterFreeSoloCommit = shouldCommitFreeSoloOverProgrammaticHighlight && !touchScrolledRef.current;
|
|
843
856
|
if (highlightedIndexRef.current !== -1 && popupOpen && shouldSelectHighlighted &&
|
|
844
857
|
// After a touch-scroll the highlight is stale (the user scrolled
|
|
845
858
|
// past it), so skip selection until the next deliberate interaction.
|
|
@@ -859,8 +872,8 @@ function useAutocomplete(props) {
|
|
|
859
872
|
inputRef.current.setSelectionRange(inputRef.current.value.length, inputRef.current.value.length);
|
|
860
873
|
}
|
|
861
874
|
} else if (freeSolo && inputValue !== '' && inputValueIsSelectedValue === false) {
|
|
862
|
-
if (multiple) {
|
|
863
|
-
// Allow people to
|
|
875
|
+
if (multiple || shouldPreventSubmitAfterFreeSoloCommit) {
|
|
876
|
+
// Allow people to commit the freeSolo value before they submit the form.
|
|
864
877
|
event.preventDefault();
|
|
865
878
|
}
|
|
866
879
|
selectNewValue(event, inputValue, 'createOption', 'freeSolo');
|
|
@@ -890,6 +903,10 @@ function useAutocomplete(props) {
|
|
|
890
903
|
break;
|
|
891
904
|
case 'Backspace':
|
|
892
905
|
// Remove the value on the left of the "cursor"
|
|
906
|
+
if (ignoreNextBackspaceRef.current) {
|
|
907
|
+
ignoreNextBackspaceRef.current = false;
|
|
908
|
+
break;
|
|
909
|
+
}
|
|
893
910
|
if (multiple && !readOnly && inputValue === '' && value.length > 0) {
|
|
894
911
|
const index = focusedItem === -1 ? value.length - 1 : focusedItem;
|
|
895
912
|
const newValue = value.slice();
|
|
@@ -897,6 +914,18 @@ function useAutocomplete(props) {
|
|
|
897
914
|
handleValue(event, newValue, 'removeOption', {
|
|
898
915
|
option: value[index]
|
|
899
916
|
});
|
|
917
|
+
if (focusedItem !== -1) {
|
|
918
|
+
// Suppress the spurious Backspace VoiceOver synthesises on the
|
|
919
|
+
// input after focus returns to it. Clear it shortly after
|
|
920
|
+
// deletion so a later real Backspace is not ignored if the
|
|
921
|
+
// synthetic follow-up event never arrives.
|
|
922
|
+
ignoreNextBackspaceRef.current = true;
|
|
923
|
+
setTimeout(() => {
|
|
924
|
+
if (ignoreNextBackspaceRef.current) {
|
|
925
|
+
ignoreNextBackspaceRef.current = false;
|
|
926
|
+
}
|
|
927
|
+
}, 0);
|
|
928
|
+
}
|
|
900
929
|
}
|
|
901
930
|
if (!multiple && renderValue && !readOnly && inputValue === '') {
|
|
902
931
|
handleValue(event, null, 'removeOption', {
|
|
@@ -1022,6 +1051,17 @@ function useAutocomplete(props) {
|
|
|
1022
1051
|
touchScrolledRef.current = false;
|
|
1023
1052
|
}
|
|
1024
1053
|
};
|
|
1054
|
+
const handleListboxMouseLeave = event => {
|
|
1055
|
+
if (!resetHighlightOnMouseLeave || highlightedIndexRef.current === -1 || highlightReasonRef.current !== 'mouse' || isTouchRef.current) {
|
|
1056
|
+
return;
|
|
1057
|
+
}
|
|
1058
|
+
setHighlightedIndex({
|
|
1059
|
+
event,
|
|
1060
|
+
index: -1,
|
|
1061
|
+
reason: 'mouse',
|
|
1062
|
+
preserveScroll: true
|
|
1063
|
+
});
|
|
1064
|
+
};
|
|
1025
1065
|
const handleOptionTouchStart = event => {
|
|
1026
1066
|
touchScrolledRef.current = false;
|
|
1027
1067
|
setHighlightedIndex({
|
|
@@ -1175,6 +1215,12 @@ function useAutocomplete(props) {
|
|
|
1175
1215
|
}),
|
|
1176
1216
|
'data-item-index': index,
|
|
1177
1217
|
tabIndex: -1,
|
|
1218
|
+
onFocus: () => {
|
|
1219
|
+
// If focus on the item doesn't come from keyboard events, we update the state via onFocus.
|
|
1220
|
+
if (focusedItem !== index) {
|
|
1221
|
+
setFocusedItem(index);
|
|
1222
|
+
}
|
|
1223
|
+
},
|
|
1178
1224
|
...(!readOnly && {
|
|
1179
1225
|
onDelete: multiple ? handleItemDelete(index) : handleSingleItemDelete
|
|
1180
1226
|
})
|
|
@@ -1184,20 +1230,37 @@ function useAutocomplete(props) {
|
|
|
1184
1230
|
type: 'button',
|
|
1185
1231
|
onClick: handlePopupIndicator
|
|
1186
1232
|
}),
|
|
1187
|
-
getListboxProps: () => ({
|
|
1233
|
+
getListboxProps: (other = {}) => ({
|
|
1234
|
+
...other,
|
|
1188
1235
|
role: 'listbox',
|
|
1189
1236
|
id: `${id}-listbox`,
|
|
1190
1237
|
'aria-labelledby': `${id}-label`,
|
|
1191
1238
|
'aria-multiselectable': multiple || undefined,
|
|
1192
1239
|
ref: handleListboxRef,
|
|
1193
1240
|
onMouseDown: event => {
|
|
1241
|
+
other.onMouseDown?.(event);
|
|
1242
|
+
if (event.defaultMuiPrevented) {
|
|
1243
|
+
return;
|
|
1244
|
+
}
|
|
1245
|
+
|
|
1194
1246
|
// Prevent blur
|
|
1195
1247
|
event.preventDefault();
|
|
1196
1248
|
},
|
|
1197
|
-
onScroll:
|
|
1249
|
+
onScroll: event => {
|
|
1250
|
+
other.onScroll?.(event);
|
|
1251
|
+
if (event.defaultMuiPrevented) {
|
|
1252
|
+
return;
|
|
1253
|
+
}
|
|
1198
1254
|
if (isTouchRef.current) {
|
|
1199
1255
|
touchScrolledRef.current = true;
|
|
1200
1256
|
}
|
|
1257
|
+
},
|
|
1258
|
+
onMouseLeave: event => {
|
|
1259
|
+
other.onMouseLeave?.(event);
|
|
1260
|
+
if (event.defaultMuiPrevented) {
|
|
1261
|
+
return;
|
|
1262
|
+
}
|
|
1263
|
+
handleListboxMouseLeave(event);
|
|
1201
1264
|
}
|
|
1202
1265
|
}),
|
|
1203
1266
|
getOptionProps: ({
|
|
@@ -36,6 +36,7 @@ function useScrollTrigger(options = {}) {
|
|
|
36
36
|
const [trigger, setTrigger] = React.useState(() => getTrigger(store, other));
|
|
37
37
|
React.useEffect(() => {
|
|
38
38
|
if (target === null) {
|
|
39
|
+
// eslint-disable-next-line react-hooks/set-state-in-effect
|
|
39
40
|
return setTrigger(false);
|
|
40
41
|
}
|
|
41
42
|
const handleScroll = () => {
|
|
@@ -53,7 +54,7 @@ function useScrollTrigger(options = {}) {
|
|
|
53
54
|
passive: true
|
|
54
55
|
});
|
|
55
56
|
};
|
|
56
|
-
// See Option 3. https://github.com/
|
|
57
|
+
// See Option 3. https://github.com/react/react/issues/14476#issuecomment-471199055
|
|
57
58
|
// TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler
|
|
58
59
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
59
60
|
}, [target, getTrigger, JSON.stringify(other)]);
|
|
@@ -30,6 +30,7 @@ export default function useScrollTrigger(options = {}) {
|
|
|
30
30
|
const [trigger, setTrigger] = React.useState(() => getTrigger(store, other));
|
|
31
31
|
React.useEffect(() => {
|
|
32
32
|
if (target === null) {
|
|
33
|
+
// eslint-disable-next-line react-hooks/set-state-in-effect
|
|
33
34
|
return setTrigger(false);
|
|
34
35
|
}
|
|
35
36
|
const handleScroll = () => {
|
|
@@ -47,7 +48,7 @@ export default function useScrollTrigger(options = {}) {
|
|
|
47
48
|
passive: true
|
|
48
49
|
});
|
|
49
50
|
};
|
|
50
|
-
// See Option 3. https://github.com/
|
|
51
|
+
// See Option 3. https://github.com/react/react/issues/14476#issuecomment-471199055
|
|
51
52
|
// TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler
|
|
52
53
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
53
54
|
}, [target, getTrigger, JSON.stringify(other)]);
|
|
@@ -3,5 +3,5 @@ declare const memoTheme: (styleFn: (props: {
|
|
|
3
3
|
theme: Theme;
|
|
4
4
|
}) => import("@mui/styled-engine").CSSInterpolation) => (props: {
|
|
5
5
|
theme: Theme;
|
|
6
|
-
}) => string | number | boolean | import("@mui/styled-engine").
|
|
6
|
+
}) => string | number | boolean | import("@mui/styled-engine").ArrayCSSInterpolation | import("@mui/styled-engine").CSSObject | import("@mui/styled-engine").ComponentSelector | import("@mui/styled-engine").SerializedStyles | import("@mui/styled-engine").Keyframes | null;
|
|
7
7
|
export default memoTheme;
|
|
@@ -3,5 +3,5 @@ declare const memoTheme: (styleFn: (props: {
|
|
|
3
3
|
theme: Theme;
|
|
4
4
|
}) => import("@mui/styled-engine").CSSInterpolation) => (props: {
|
|
5
5
|
theme: Theme;
|
|
6
|
-
}) => string | number | boolean | import("@mui/styled-engine").
|
|
6
|
+
}) => string | number | boolean | import("@mui/styled-engine").ArrayCSSInterpolation | import("@mui/styled-engine").CSSObject | import("@mui/styled-engine").ComponentSelector | import("@mui/styled-engine").SerializedStyles | import("@mui/styled-engine").Keyframes | null;
|
|
7
7
|
export default memoTheme;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SxProps } from '@mui/system';
|
|
2
2
|
import { SlotComponentProps } from '@mui/utils/types';
|
|
3
3
|
import { Theme } from "../styles/index.mjs";
|
|
4
|
-
export type { EventHandlers, WithOptionalOwnerState, SlotComponentProps, SlotComponentPropsWithSlotState } from '@mui/utils/types';
|
|
4
|
+
export type { EventHandlers, WithOptionalOwnerState, SlotComponentProps, SlotComponentPropsWithSlotState, DataAttributesOverrides, WithDataAttributes } from '@mui/utils/types';
|
|
5
5
|
export type SlotCommonProps = {
|
|
6
6
|
component?: React.ElementType | undefined;
|
|
7
7
|
sx?: SxProps<Theme> | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SxProps } from '@mui/system';
|
|
2
2
|
import { SlotComponentProps } from '@mui/utils/types';
|
|
3
3
|
import { Theme } from "../styles/index.js";
|
|
4
|
-
export type { EventHandlers, WithOptionalOwnerState, SlotComponentProps, SlotComponentPropsWithSlotState } from '@mui/utils/types';
|
|
4
|
+
export type { EventHandlers, WithOptionalOwnerState, SlotComponentProps, SlotComponentPropsWithSlotState, DataAttributesOverrides, WithDataAttributes } from '@mui/utils/types';
|
|
5
5
|
export type SlotCommonProps = {
|
|
6
6
|
component?: React.ElementType | undefined;
|
|
7
7
|
sx?: SxProps<Theme> | undefined;
|
|
@@ -77,5 +77,5 @@ name: T, parameters: (T extends 'root' ? {
|
|
|
77
77
|
}): [ElementType, {
|
|
78
78
|
className: string;
|
|
79
79
|
ownerState: OwnerState & SlotOwnerState;
|
|
80
|
-
} & AdditionalProps & SlotProps & ExternalSlotProps & ExtractComponentProps<Exclude<Exclude<ExternalForwardedProps[
|
|
80
|
+
} & AdditionalProps & SlotProps & ExternalSlotProps & ExtractComponentProps<Exclude<Exclude<ExternalForwardedProps['slotProps'], undefined>[T], undefined>>];
|
|
81
81
|
export {};
|
|
@@ -77,5 +77,5 @@ name: T, parameters: (T extends 'root' ? {
|
|
|
77
77
|
}): [ElementType, {
|
|
78
78
|
className: string;
|
|
79
79
|
ownerState: OwnerState & SlotOwnerState;
|
|
80
|
-
} & AdditionalProps & SlotProps & ExternalSlotProps & ExtractComponentProps<Exclude<Exclude<ExternalForwardedProps[
|
|
80
|
+
} & AdditionalProps & SlotProps & ExternalSlotProps & ExtractComponentProps<Exclude<Exclude<ExternalForwardedProps['slotProps'], undefined>[T], undefined>>];
|
|
81
81
|
export {};
|
|
@@ -4,9 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.version = exports.prerelease = exports.patch = exports.minor = exports.major = exports.default = void 0;
|
|
7
|
-
const version = exports.version = "9.
|
|
7
|
+
const version = exports.version = "9.3.1";
|
|
8
8
|
const major = exports.major = Number("9");
|
|
9
|
-
const minor = exports.minor = Number("
|
|
9
|
+
const minor = exports.minor = Number("3");
|
|
10
10
|
const patch = exports.patch = Number("1");
|
|
11
11
|
const prerelease = exports.prerelease = undefined;
|
|
12
12
|
var _default = exports.default = version;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export const version = "9.
|
|
1
|
+
export const version = "9.3.1";
|
|
2
2
|
export const major = Number("9");
|
|
3
|
-
export const minor = Number("
|
|
3
|
+
export const minor = Number("3");
|
|
4
4
|
export const patch = Number("1");
|
|
5
5
|
export const prerelease = undefined;
|
|
6
6
|
export default version;
|
|
@@ -6,6 +6,6 @@ export { css, keyframes } from '@mui/system';
|
|
|
6
6
|
export { default as styled } from "../styles/styled.mjs";
|
|
7
7
|
export declare function globalCss(styles: Interpolation<{
|
|
8
8
|
theme: Theme;
|
|
9
|
-
}>): (props: Record<string, any>) => import("react
|
|
9
|
+
}>): (props: Record<string, any>) => import("react").JSX.Element;
|
|
10
10
|
export declare function internal_createExtendSxProp(): typeof extendSxProp;
|
|
11
11
|
export { useTheme };
|
|
@@ -6,6 +6,6 @@ export { css, keyframes } from '@mui/system';
|
|
|
6
6
|
export { default as styled } from "../styles/styled.js";
|
|
7
7
|
export declare function globalCss(styles: Interpolation<{
|
|
8
8
|
theme: Theme;
|
|
9
|
-
}>): (props: Record<string, any>) => import("react
|
|
9
|
+
}>): (props: Record<string, any>) => import("react").JSX.Element;
|
|
10
10
|
export declare function internal_createExtendSxProp(): typeof extendSxProp;
|
|
11
11
|
export { useTheme };
|