@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
|
@@ -53,6 +53,7 @@ const useUtilityClasses = ownerState => {
|
|
|
53
53
|
listbox: ['listbox'],
|
|
54
54
|
loading: ['loading'],
|
|
55
55
|
noOptions: ['noOptions'],
|
|
56
|
+
status: ['status'],
|
|
56
57
|
option: ['option'],
|
|
57
58
|
groupLabel: ['groupLabel'],
|
|
58
59
|
groupUl: ['groupUl']
|
|
@@ -309,6 +310,10 @@ const AutocompleteLoading = styled('div', {
|
|
|
309
310
|
color: (theme.vars || theme).palette.text.secondary,
|
|
310
311
|
padding: '14px 16px'
|
|
311
312
|
})));
|
|
313
|
+
const AutocompleteStatus = styled('div', {
|
|
314
|
+
name: 'MuiAutocomplete',
|
|
315
|
+
slot: 'Status'
|
|
316
|
+
})({});
|
|
312
317
|
const AutocompleteNoOptions = styled('div', {
|
|
313
318
|
name: 'MuiAutocomplete',
|
|
314
319
|
slot: 'NoOptions'
|
|
@@ -459,6 +464,7 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
|
|
|
459
464
|
renderInput,
|
|
460
465
|
renderOption: renderOptionProp,
|
|
461
466
|
renderValue,
|
|
467
|
+
resetHighlightOnMouseLeave = false,
|
|
462
468
|
selectOnFocus = !props.freeSolo,
|
|
463
469
|
size = 'medium',
|
|
464
470
|
slots = {},
|
|
@@ -537,10 +543,6 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
|
|
|
537
543
|
const {
|
|
538
544
|
onMouseDown: handleInputMouseDown
|
|
539
545
|
} = getInputProps();
|
|
540
|
-
const {
|
|
541
|
-
ref: listboxRef,
|
|
542
|
-
...otherListboxProps
|
|
543
|
-
} = getListboxProps();
|
|
544
546
|
const defaultGetOptionLabel = option => option.label ?? option;
|
|
545
547
|
const getOptionLabel = getOptionLabelProp || defaultGetOptionLabel;
|
|
546
548
|
|
|
@@ -579,8 +581,7 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
|
|
|
579
581
|
externalForwardedProps,
|
|
580
582
|
ownerState,
|
|
581
583
|
className: classes.listbox,
|
|
582
|
-
|
|
583
|
-
ref: listboxRef
|
|
584
|
+
getSlotProps: getListboxProps
|
|
584
585
|
});
|
|
585
586
|
const [PaperSlot, paperProps] = useSlot('paper', {
|
|
586
587
|
elementType: Paper,
|
|
@@ -588,6 +589,17 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
|
|
|
588
589
|
ownerState,
|
|
589
590
|
className: classes.paper
|
|
590
591
|
});
|
|
592
|
+
const [StatusSlot, statusProps] = useSlot('status', {
|
|
593
|
+
elementType: AutocompleteStatus,
|
|
594
|
+
externalForwardedProps,
|
|
595
|
+
ownerState,
|
|
596
|
+
className: classes.status,
|
|
597
|
+
additionalProps: {
|
|
598
|
+
role: 'status',
|
|
599
|
+
'aria-live': 'polite',
|
|
600
|
+
'aria-atomic': 'true'
|
|
601
|
+
}
|
|
602
|
+
});
|
|
591
603
|
const [PopperSlot, popperProps] = useSlot('popper', {
|
|
592
604
|
elementType: Popper,
|
|
593
605
|
externalForwardedProps,
|
|
@@ -765,20 +777,22 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
|
|
|
765
777
|
children: /*#__PURE__*/_jsxs(AutocompletePaper, {
|
|
766
778
|
as: PaperSlot,
|
|
767
779
|
...paperProps,
|
|
768
|
-
children: [
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
780
|
+
children: [/*#__PURE__*/_jsxs(StatusSlot, {
|
|
781
|
+
...statusProps,
|
|
782
|
+
children: [loading && renderedOptions.length === 0 ? /*#__PURE__*/_jsx(AutocompleteLoading, {
|
|
783
|
+
className: classes.loading,
|
|
784
|
+
ownerState: ownerState,
|
|
785
|
+
children: loadingText
|
|
786
|
+
}) : null, renderedOptions.length === 0 && !freeSolo && !loading ? /*#__PURE__*/_jsx(AutocompleteNoOptions, {
|
|
787
|
+
className: classes.noOptions,
|
|
788
|
+
ownerState: ownerState,
|
|
789
|
+
onMouseDown: event => {
|
|
790
|
+
// Prevent input blur when interacting with the "no options" content
|
|
791
|
+
event.preventDefault();
|
|
792
|
+
},
|
|
793
|
+
children: noOptionsText
|
|
794
|
+
}) : null]
|
|
795
|
+
}), renderedOptions.length > 0 ? /*#__PURE__*/_jsx(ListboxSlot, {
|
|
782
796
|
...listboxProps,
|
|
783
797
|
children: renderedOptions.map((option, index) => {
|
|
784
798
|
if (groupBy) {
|
|
@@ -936,7 +950,11 @@ process.env.NODE_ENV !== "production" ? Autocomplete.propTypes /* remove-proptyp
|
|
|
936
950
|
*/
|
|
937
951
|
freeSolo: PropTypes.bool,
|
|
938
952
|
/**
|
|
939
|
-
* If `true`, the input
|
|
953
|
+
* If `true`, the input takes up the full width of its container.
|
|
954
|
+
*
|
|
955
|
+
* `Autocomplete` treats `undefined` and `false` differently.
|
|
956
|
+
* If `undefined`, the inner input takes up the full width of its container.
|
|
957
|
+
* If `false`, the inner input is restricted to its intrinsic width.
|
|
940
958
|
* @default false
|
|
941
959
|
*/
|
|
942
960
|
fullWidth: PropTypes.bool,
|
|
@@ -1158,6 +1176,12 @@ process.env.NODE_ENV !== "production" ? Autocomplete.propTypes /* remove-proptyp
|
|
|
1158
1176
|
* @returns {ReactNode}
|
|
1159
1177
|
*/
|
|
1160
1178
|
renderValue: PropTypes.func,
|
|
1179
|
+
/**
|
|
1180
|
+
* If `true`, clears an option highlighted by mouse movement when the mouse leaves the listbox.
|
|
1181
|
+
* This behavior will be enabled by default in the next major version.
|
|
1182
|
+
* @default false
|
|
1183
|
+
*/
|
|
1184
|
+
resetHighlightOnMouseLeave: PropTypes.bool,
|
|
1161
1185
|
/**
|
|
1162
1186
|
* If `true`, the input's text is selected on focus.
|
|
1163
1187
|
* It helps the user clear the selected value.
|
|
@@ -1177,6 +1201,7 @@ process.env.NODE_ENV !== "production" ? Autocomplete.propTypes /* remove-proptyp
|
|
|
1177
1201
|
chip: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
1178
1202
|
clearIndicator: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
1179
1203
|
listbox: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
1204
|
+
status: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
1180
1205
|
paper: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
1181
1206
|
popper: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
1182
1207
|
popupIndicator: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
@@ -1192,7 +1217,8 @@ process.env.NODE_ENV !== "production" ? Autocomplete.propTypes /* remove-proptyp
|
|
|
1192
1217
|
paper: PropTypes.elementType,
|
|
1193
1218
|
popper: PropTypes.elementType,
|
|
1194
1219
|
popupIndicator: PropTypes.elementType,
|
|
1195
|
-
root: PropTypes.elementType
|
|
1220
|
+
root: PropTypes.elementType,
|
|
1221
|
+
status: PropTypes.elementType
|
|
1196
1222
|
}),
|
|
1197
1223
|
/**
|
|
1198
1224
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
@@ -45,6 +45,8 @@ export interface AutocompleteClasses {
|
|
|
45
45
|
loading: string;
|
|
46
46
|
/** Styles applied to the no option wrapper. */
|
|
47
47
|
noOptions: string;
|
|
48
|
+
/** Styles applied to the status message container. */
|
|
49
|
+
status: string;
|
|
48
50
|
/** Styles applied to the option elements. */
|
|
49
51
|
option: string;
|
|
50
52
|
/** Styles applied to the group's label elements. */
|
|
@@ -45,6 +45,8 @@ export interface AutocompleteClasses {
|
|
|
45
45
|
loading: string;
|
|
46
46
|
/** Styles applied to the no option wrapper. */
|
|
47
47
|
noOptions: string;
|
|
48
|
+
/** Styles applied to the status message container. */
|
|
49
|
+
status: string;
|
|
48
50
|
/** Styles applied to the option elements. */
|
|
49
51
|
option: string;
|
|
50
52
|
/** Styles applied to the group's label elements. */
|
|
@@ -11,5 +11,5 @@ var _generateUtilityClass = _interopRequireDefault(require("@mui/utils/generateU
|
|
|
11
11
|
function getAutocompleteUtilityClass(slot) {
|
|
12
12
|
return (0, _generateUtilityClass.default)('MuiAutocomplete', slot);
|
|
13
13
|
}
|
|
14
|
-
const autocompleteClasses = (0, _generateUtilityClasses.default)('MuiAutocomplete', ['root', 'expanded', 'fullWidth', 'focused', 'focusVisible', 'tag', 'tagSizeSmall', 'tagSizeMedium', 'hasPopupIcon', 'hasClearIcon', 'inputRoot', 'input', 'inputFocused', 'endAdornment', 'clearIndicator', 'popupIndicator', 'popupIndicatorOpen', 'popper', 'popperDisablePortal', 'paper', 'listbox', 'loading', 'noOptions', 'option', 'groupLabel', 'groupUl']);
|
|
14
|
+
const autocompleteClasses = (0, _generateUtilityClasses.default)('MuiAutocomplete', ['root', 'expanded', 'fullWidth', 'focused', 'focusVisible', 'tag', 'tagSizeSmall', 'tagSizeMedium', 'hasPopupIcon', 'hasClearIcon', 'inputRoot', 'input', 'inputFocused', 'endAdornment', 'clearIndicator', 'popupIndicator', 'popupIndicatorOpen', 'popper', 'popperDisablePortal', 'paper', 'listbox', 'loading', 'noOptions', 'status', 'option', 'groupLabel', 'groupUl']);
|
|
15
15
|
var _default = exports.default = autocompleteClasses;
|
|
@@ -3,5 +3,5 @@ import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
|
|
3
3
|
export function getAutocompleteUtilityClass(slot) {
|
|
4
4
|
return generateUtilityClass('MuiAutocomplete', slot);
|
|
5
5
|
}
|
|
6
|
-
const autocompleteClasses = generateUtilityClasses('MuiAutocomplete', ['root', 'expanded', 'fullWidth', 'focused', 'focusVisible', 'tag', 'tagSizeSmall', 'tagSizeMedium', 'hasPopupIcon', 'hasClearIcon', 'inputRoot', 'input', 'inputFocused', 'endAdornment', 'clearIndicator', 'popupIndicator', 'popupIndicatorOpen', 'popper', 'popperDisablePortal', 'paper', 'listbox', 'loading', 'noOptions', 'option', 'groupLabel', 'groupUl']);
|
|
6
|
+
const autocompleteClasses = generateUtilityClasses('MuiAutocomplete', ['root', 'expanded', 'fullWidth', 'focused', 'focusVisible', 'tag', 'tagSizeSmall', 'tagSizeMedium', 'hasPopupIcon', 'hasClearIcon', 'inputRoot', 'input', 'inputFocused', 'endAdornment', 'clearIndicator', 'popupIndicator', 'popupIndicatorOpen', 'popper', 'popperDisablePortal', 'paper', 'listbox', 'loading', 'noOptions', 'status', 'option', 'groupLabel', 'groupUl']);
|
|
7
7
|
export default autocompleteClasses;
|
|
@@ -118,6 +118,8 @@ function useLoaded(src, srcSet, crossOrigin, referrerPolicy) {
|
|
|
118
118
|
if (!src && !srcSet) {
|
|
119
119
|
return undefined;
|
|
120
120
|
}
|
|
121
|
+
|
|
122
|
+
// eslint-disable-next-line react-hooks/set-state-in-effect
|
|
121
123
|
setLoaded(false);
|
|
122
124
|
let active = true;
|
|
123
125
|
const image = new Image();
|
|
@@ -111,6 +111,8 @@ function useLoaded(src, srcSet, crossOrigin, referrerPolicy) {
|
|
|
111
111
|
if (!src && !srcSet) {
|
|
112
112
|
return undefined;
|
|
113
113
|
}
|
|
114
|
+
|
|
115
|
+
// eslint-disable-next-line react-hooks/set-state-in-effect
|
|
114
116
|
setLoaded(false);
|
|
115
117
|
let active = true;
|
|
116
118
|
const image = new Image();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SxProps } from '@mui/system';
|
|
3
3
|
import { FadeProps } from "../Fade/index.mjs";
|
|
4
|
-
import { TransitionProps } from "../transitions/
|
|
4
|
+
import { TransitionProps } from "../transitions/types.mjs";
|
|
5
5
|
import { Theme } from "../styles/index.mjs";
|
|
6
6
|
import { BackdropClasses } from "./backdropClasses.mjs";
|
|
7
7
|
import { OverridableComponent, OverrideProps } from "../OverridableComponent/index.mjs";
|
|
@@ -14,7 +14,7 @@ export interface BackdropSlots {
|
|
|
14
14
|
root: React.ElementType;
|
|
15
15
|
/**
|
|
16
16
|
* The component that renders the transition.
|
|
17
|
-
* [Follow this guide](
|
|
17
|
+
* [Follow this guide](/material-ui/transitions/#transition-slots) to learn more about the requirements for this component.
|
|
18
18
|
* @default Fade
|
|
19
19
|
*/
|
|
20
20
|
transition: React.ElementType;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SxProps } from '@mui/system';
|
|
3
3
|
import { FadeProps } from "../Fade/index.js";
|
|
4
|
-
import { TransitionProps } from "../transitions/
|
|
4
|
+
import { TransitionProps } from "../transitions/types.js";
|
|
5
5
|
import { Theme } from "../styles/index.js";
|
|
6
6
|
import { BackdropClasses } from "./backdropClasses.js";
|
|
7
7
|
import { OverridableComponent, OverrideProps } from "../OverridableComponent/index.js";
|
|
@@ -14,7 +14,7 @@ export interface BackdropSlots {
|
|
|
14
14
|
root: React.ElementType;
|
|
15
15
|
/**
|
|
16
16
|
* The component that renders the transition.
|
|
17
|
-
* [Follow this guide](
|
|
17
|
+
* [Follow this guide](/material-ui/transitions/#transition-slots) to learn more about the requirements for this component.
|
|
18
18
|
* @default Fade
|
|
19
19
|
*/
|
|
20
20
|
transition: React.ElementType;
|
|
@@ -20,6 +20,7 @@ var _DefaultPropsProvider = require("../DefaultPropsProvider");
|
|
|
20
20
|
var _capitalize = _interopRequireDefault(require("../utils/capitalize"));
|
|
21
21
|
var _badgeClasses = _interopRequireWildcard(require("./badgeClasses"));
|
|
22
22
|
var _useSlot = _interopRequireDefault(require("../utils/useSlot"));
|
|
23
|
+
var _utils = require("../transitions/utils");
|
|
23
24
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
24
25
|
const RADIUS_STANDARD = 10;
|
|
25
26
|
const RADIUS_DOT = 4;
|
|
@@ -81,7 +82,7 @@ const BadgeBadge = (0, _zeroStyled.styled)('span', {
|
|
|
81
82
|
'@media (forced-colors: active)': {
|
|
82
83
|
border: '1px solid ButtonBorder'
|
|
83
84
|
},
|
|
84
|
-
|
|
85
|
+
...(0, _utils.getTransitionStyles)(theme, 'transform', {
|
|
85
86
|
easing: theme.transitions.easing.easeInOut,
|
|
86
87
|
duration: theme.transitions.duration.enteringScreen
|
|
87
88
|
}),
|
|
@@ -108,33 +109,19 @@ const BadgeBadge = (0, _zeroStyled.styled)('span', {
|
|
|
108
109
|
invisible: true
|
|
109
110
|
},
|
|
110
111
|
style: {
|
|
111
|
-
|
|
112
|
+
...(0, _utils.getTransitionStyles)(theme, 'transform', {
|
|
112
113
|
easing: theme.transitions.easing.easeInOut,
|
|
113
114
|
duration: theme.transitions.duration.leavingScreen
|
|
114
115
|
})
|
|
115
116
|
}
|
|
116
117
|
}, {
|
|
117
|
-
style:
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
}
|
|
124
|
-
const offset = ownerState.overlap === 'circular' ? '14%' : 0;
|
|
125
|
-
return {
|
|
126
|
-
'--Badge-translateX': horizontal === 'right' ? '50%' : '-50%',
|
|
127
|
-
'--Badge-translateY': vertical === 'top' ? '-50%' : '50%',
|
|
128
|
-
top: vertical === 'top' ? offset : 'initial',
|
|
129
|
-
bottom: vertical === 'bottom' ? offset : 'initial',
|
|
130
|
-
right: horizontal === 'right' ? offset : 'initial',
|
|
131
|
-
left: horizontal === 'left' ? offset : 'initial',
|
|
132
|
-
transform: 'scale(1) translate(var(--Badge-translateX), var(--Badge-translateY))',
|
|
133
|
-
transformOrigin: `${horizontal === 'right' ? '100%' : '0%'} ${vertical === 'top' ? '0%' : '100%'}`,
|
|
134
|
-
[`&.${_badgeClasses.default.invisible}`]: {
|
|
135
|
-
transform: 'scale(0) translate(var(--Badge-translateX), var(--Badge-translateY))'
|
|
136
|
-
}
|
|
137
|
-
};
|
|
118
|
+
style: {
|
|
119
|
+
inset: 'var(--Badge-inset)',
|
|
120
|
+
transform: 'scale(1) translate(var(--Badge-translate))',
|
|
121
|
+
transformOrigin: 'var(--Badge-origin)',
|
|
122
|
+
[`&.${_badgeClasses.default.invisible}`]: {
|
|
123
|
+
transform: 'scale(0) translate(var(--Badge-translate))'
|
|
124
|
+
}
|
|
138
125
|
}
|
|
139
126
|
}]
|
|
140
127
|
})));
|
|
@@ -223,11 +210,28 @@ const Badge = /*#__PURE__*/React.forwardRef(function Badge(inProps, ref) {
|
|
|
223
210
|
as: component
|
|
224
211
|
}
|
|
225
212
|
});
|
|
213
|
+
const {
|
|
214
|
+
vertical,
|
|
215
|
+
horizontal
|
|
216
|
+
} = anchorOrigin;
|
|
217
|
+
const offset = overlap === 'circular' ? '14%' : '0';
|
|
218
|
+
const top = vertical === 'top' ? offset : 'auto';
|
|
219
|
+
const bottom = vertical === 'bottom' ? offset : 'auto';
|
|
220
|
+
const right = horizontal === 'right' ? offset : 'auto';
|
|
221
|
+
const left = horizontal === 'left' ? offset : 'auto';
|
|
226
222
|
const [BadgeSlot, badgeProps] = (0, _useSlot.default)('badge', {
|
|
227
223
|
elementType: BadgeBadge,
|
|
228
224
|
externalForwardedProps,
|
|
229
225
|
ownerState,
|
|
230
|
-
className: classes.badge
|
|
226
|
+
className: classes.badge,
|
|
227
|
+
additionalProps: {
|
|
228
|
+
'aria-hidden': true,
|
|
229
|
+
style: {
|
|
230
|
+
'--Badge-translate': `${horizontal === 'right' ? '50%' : '-50%'}, ${vertical === 'top' ? '-50%' : '50%'}`,
|
|
231
|
+
'--Badge-inset': `${top} ${right} ${bottom} ${left}`,
|
|
232
|
+
'--Badge-origin': `${horizontal === 'right' ? '100%' : '0%'} ${vertical === 'top' ? '0%' : '100%'}`
|
|
233
|
+
}
|
|
234
|
+
}
|
|
231
235
|
});
|
|
232
236
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(RootSlot, {
|
|
233
237
|
...rootProps,
|
|
@@ -13,6 +13,7 @@ import { useDefaultProps } from "../DefaultPropsProvider/index.mjs";
|
|
|
13
13
|
import capitalize from "../utils/capitalize.mjs";
|
|
14
14
|
import badgeClasses, { getBadgeUtilityClass } from "./badgeClasses.mjs";
|
|
15
15
|
import useSlot from "../utils/useSlot.mjs";
|
|
16
|
+
import { getTransitionStyles } from "../transitions/utils.mjs";
|
|
16
17
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
18
|
const RADIUS_STANDARD = 10;
|
|
18
19
|
const RADIUS_DOT = 4;
|
|
@@ -74,7 +75,7 @@ const BadgeBadge = styled('span', {
|
|
|
74
75
|
'@media (forced-colors: active)': {
|
|
75
76
|
border: '1px solid ButtonBorder'
|
|
76
77
|
},
|
|
77
|
-
|
|
78
|
+
...getTransitionStyles(theme, 'transform', {
|
|
78
79
|
easing: theme.transitions.easing.easeInOut,
|
|
79
80
|
duration: theme.transitions.duration.enteringScreen
|
|
80
81
|
}),
|
|
@@ -101,33 +102,19 @@ const BadgeBadge = styled('span', {
|
|
|
101
102
|
invisible: true
|
|
102
103
|
},
|
|
103
104
|
style: {
|
|
104
|
-
|
|
105
|
+
...getTransitionStyles(theme, 'transform', {
|
|
105
106
|
easing: theme.transitions.easing.easeInOut,
|
|
106
107
|
duration: theme.transitions.duration.leavingScreen
|
|
107
108
|
})
|
|
108
109
|
}
|
|
109
110
|
}, {
|
|
110
|
-
style:
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
}
|
|
117
|
-
const offset = ownerState.overlap === 'circular' ? '14%' : 0;
|
|
118
|
-
return {
|
|
119
|
-
'--Badge-translateX': horizontal === 'right' ? '50%' : '-50%',
|
|
120
|
-
'--Badge-translateY': vertical === 'top' ? '-50%' : '50%',
|
|
121
|
-
top: vertical === 'top' ? offset : 'initial',
|
|
122
|
-
bottom: vertical === 'bottom' ? offset : 'initial',
|
|
123
|
-
right: horizontal === 'right' ? offset : 'initial',
|
|
124
|
-
left: horizontal === 'left' ? offset : 'initial',
|
|
125
|
-
transform: 'scale(1) translate(var(--Badge-translateX), var(--Badge-translateY))',
|
|
126
|
-
transformOrigin: `${horizontal === 'right' ? '100%' : '0%'} ${vertical === 'top' ? '0%' : '100%'}`,
|
|
127
|
-
[`&.${badgeClasses.invisible}`]: {
|
|
128
|
-
transform: 'scale(0) translate(var(--Badge-translateX), var(--Badge-translateY))'
|
|
129
|
-
}
|
|
130
|
-
};
|
|
111
|
+
style: {
|
|
112
|
+
inset: 'var(--Badge-inset)',
|
|
113
|
+
transform: 'scale(1) translate(var(--Badge-translate))',
|
|
114
|
+
transformOrigin: 'var(--Badge-origin)',
|
|
115
|
+
[`&.${badgeClasses.invisible}`]: {
|
|
116
|
+
transform: 'scale(0) translate(var(--Badge-translate))'
|
|
117
|
+
}
|
|
131
118
|
}
|
|
132
119
|
}]
|
|
133
120
|
})));
|
|
@@ -216,11 +203,28 @@ const Badge = /*#__PURE__*/React.forwardRef(function Badge(inProps, ref) {
|
|
|
216
203
|
as: component
|
|
217
204
|
}
|
|
218
205
|
});
|
|
206
|
+
const {
|
|
207
|
+
vertical,
|
|
208
|
+
horizontal
|
|
209
|
+
} = anchorOrigin;
|
|
210
|
+
const offset = overlap === 'circular' ? '14%' : '0';
|
|
211
|
+
const top = vertical === 'top' ? offset : 'auto';
|
|
212
|
+
const bottom = vertical === 'bottom' ? offset : 'auto';
|
|
213
|
+
const right = horizontal === 'right' ? offset : 'auto';
|
|
214
|
+
const left = horizontal === 'left' ? offset : 'auto';
|
|
219
215
|
const [BadgeSlot, badgeProps] = useSlot('badge', {
|
|
220
216
|
elementType: BadgeBadge,
|
|
221
217
|
externalForwardedProps,
|
|
222
218
|
ownerState,
|
|
223
|
-
className: classes.badge
|
|
219
|
+
className: classes.badge,
|
|
220
|
+
additionalProps: {
|
|
221
|
+
'aria-hidden': true,
|
|
222
|
+
style: {
|
|
223
|
+
'--Badge-translate': `${horizontal === 'right' ? '50%' : '-50%'}, ${vertical === 'top' ? '-50%' : '50%'}`,
|
|
224
|
+
'--Badge-inset': `${top} ${right} ${bottom} ${left}`,
|
|
225
|
+
'--Badge-origin': `${horizontal === 'right' ? '100%' : '0%'} ${vertical === 'top' ? '0%' : '100%'}`
|
|
226
|
+
}
|
|
227
|
+
}
|
|
224
228
|
});
|
|
225
229
|
return /*#__PURE__*/_jsxs(RootSlot, {
|
|
226
230
|
...rootProps,
|
|
@@ -16,6 +16,7 @@ var _memoTheme = _interopRequireDefault(require("../utils/memoTheme"));
|
|
|
16
16
|
var _DefaultPropsProvider = require("../DefaultPropsProvider");
|
|
17
17
|
var _ButtonBase = _interopRequireDefault(require("../ButtonBase"));
|
|
18
18
|
var _unsupportedProp = _interopRequireDefault(require("../utils/unsupportedProp"));
|
|
19
|
+
var _utils = require("../transitions/utils");
|
|
19
20
|
var _bottomNavigationActionClasses = _interopRequireWildcard(require("./bottomNavigationActionClasses"));
|
|
20
21
|
var _useSlot = _interopRequireDefault(require("../utils/useSlot"));
|
|
21
22
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -43,7 +44,7 @@ const BottomNavigationActionRoot = (0, _zeroStyled.styled)(_ButtonBase.default,
|
|
|
43
44
|
})((0, _memoTheme.default)(({
|
|
44
45
|
theme
|
|
45
46
|
}) => ({
|
|
46
|
-
|
|
47
|
+
...(0, _utils.getTransitionStyles)(theme, ['color', 'padding-top'], {
|
|
47
48
|
duration: theme.transitions.duration.short
|
|
48
49
|
}),
|
|
49
50
|
padding: '0px 12px',
|
|
@@ -83,7 +84,10 @@ const BottomNavigationActionLabel = (0, _zeroStyled.styled)('span', {
|
|
|
83
84
|
fontFamily: theme.typography.fontFamily,
|
|
84
85
|
fontSize: theme.typography.pxToRem(12),
|
|
85
86
|
opacity: 1,
|
|
86
|
-
|
|
87
|
+
...(0, _utils.getTransitionStyles)(theme, ['font-size', 'opacity'], {
|
|
88
|
+
duration: '0.2s',
|
|
89
|
+
easing: 'ease'
|
|
90
|
+
}),
|
|
87
91
|
transitionDelay: '0.1s',
|
|
88
92
|
[`&.${_bottomNavigationActionClasses.default.selected}`]: {
|
|
89
93
|
fontSize: theme.typography.pxToRem(14)
|
|
@@ -9,6 +9,7 @@ import memoTheme from "../utils/memoTheme.mjs";
|
|
|
9
9
|
import { useDefaultProps } from "../DefaultPropsProvider/index.mjs";
|
|
10
10
|
import ButtonBase from "../ButtonBase/index.mjs";
|
|
11
11
|
import unsupportedProp from "../utils/unsupportedProp.mjs";
|
|
12
|
+
import { getTransitionStyles } from "../transitions/utils.mjs";
|
|
12
13
|
import bottomNavigationActionClasses, { getBottomNavigationActionUtilityClass } from "./bottomNavigationActionClasses.mjs";
|
|
13
14
|
import useSlot from "../utils/useSlot.mjs";
|
|
14
15
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -36,7 +37,7 @@ const BottomNavigationActionRoot = styled(ButtonBase, {
|
|
|
36
37
|
})(memoTheme(({
|
|
37
38
|
theme
|
|
38
39
|
}) => ({
|
|
39
|
-
|
|
40
|
+
...getTransitionStyles(theme, ['color', 'padding-top'], {
|
|
40
41
|
duration: theme.transitions.duration.short
|
|
41
42
|
}),
|
|
42
43
|
padding: '0px 12px',
|
|
@@ -76,7 +77,10 @@ const BottomNavigationActionLabel = styled('span', {
|
|
|
76
77
|
fontFamily: theme.typography.fontFamily,
|
|
77
78
|
fontSize: theme.typography.pxToRem(12),
|
|
78
79
|
opacity: 1,
|
|
79
|
-
|
|
80
|
+
...getTransitionStyles(theme, ['font-size', 'opacity'], {
|
|
81
|
+
duration: '0.2s',
|
|
82
|
+
easing: 'ease'
|
|
83
|
+
}),
|
|
80
84
|
transitionDelay: '0.1s',
|
|
81
85
|
[`&.${bottomNavigationActionClasses.selected}`]: {
|
|
82
86
|
fontSize: theme.typography.pxToRem(14)
|
|
@@ -24,6 +24,7 @@ var _createSimplePaletteValueFilter = _interopRequireDefault(require("../utils/c
|
|
|
24
24
|
var _buttonClasses = _interopRequireWildcard(require("./buttonClasses"));
|
|
25
25
|
var _ButtonGroupContext = _interopRequireDefault(require("../ButtonGroup/ButtonGroupContext"));
|
|
26
26
|
var _ButtonGroupButtonContext = _interopRequireDefault(require("../ButtonGroup/ButtonGroupButtonContext"));
|
|
27
|
+
var _utils2 = require("../transitions/utils");
|
|
27
28
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
28
29
|
const useUtilityClasses = ownerState => {
|
|
29
30
|
const {
|
|
@@ -99,7 +100,7 @@ const ButtonRoot = (0, _zeroStyled.styled)(_ButtonBase.default, {
|
|
|
99
100
|
padding: '6px 16px',
|
|
100
101
|
border: 0,
|
|
101
102
|
borderRadius: (theme.vars || theme).shape.borderRadius,
|
|
102
|
-
|
|
103
|
+
...(0, _utils2.getTransitionStyles)(theme, ['background-color', 'box-shadow', 'border-color', 'color'], {
|
|
103
104
|
duration: theme.transitions.duration.short
|
|
104
105
|
}),
|
|
105
106
|
'&:hover': {
|
|
@@ -109,17 +110,6 @@ const ButtonRoot = (0, _zeroStyled.styled)(_ButtonBase.default, {
|
|
|
109
110
|
color: (theme.vars || theme).palette.action.disabled
|
|
110
111
|
},
|
|
111
112
|
variants: [{
|
|
112
|
-
props: ({
|
|
113
|
-
ownerState
|
|
114
|
-
}) => ownerState.startIcon || ownerState.loading && ownerState.loadingPosition === 'start',
|
|
115
|
-
style: {
|
|
116
|
-
'&::before': {
|
|
117
|
-
content: '"\\200b"',
|
|
118
|
-
width: 0,
|
|
119
|
-
overflow: 'hidden'
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
}, {
|
|
123
113
|
props: {
|
|
124
114
|
variant: 'contained'
|
|
125
115
|
},
|
|
@@ -289,7 +279,7 @@ const ButtonRoot = (0, _zeroStyled.styled)(_ButtonBase.default, {
|
|
|
289
279
|
loadingPosition: 'center'
|
|
290
280
|
},
|
|
291
281
|
style: {
|
|
292
|
-
|
|
282
|
+
...(0, _utils2.getTransitionStyles)(theme, ['background-color', 'box-shadow', 'border-color'], {
|
|
293
283
|
duration: theme.transitions.duration.short
|
|
294
284
|
}),
|
|
295
285
|
[`&.${_buttonClasses.default.loading}`]: {
|
|
@@ -312,8 +302,14 @@ const ButtonStartIcon = (0, _zeroStyled.styled)('span', {
|
|
|
312
302
|
theme
|
|
313
303
|
}) => ({
|
|
314
304
|
display: 'inherit',
|
|
305
|
+
alignItems: 'center',
|
|
315
306
|
marginRight: 8,
|
|
316
307
|
marginLeft: -4,
|
|
308
|
+
'&::before': {
|
|
309
|
+
content: '"\\200b"',
|
|
310
|
+
width: 0,
|
|
311
|
+
overflow: 'hidden'
|
|
312
|
+
},
|
|
317
313
|
variants: [{
|
|
318
314
|
props: {
|
|
319
315
|
size: 'small'
|
|
@@ -327,7 +323,7 @@ const ButtonStartIcon = (0, _zeroStyled.styled)('span', {
|
|
|
327
323
|
loading: true
|
|
328
324
|
},
|
|
329
325
|
style: {
|
|
330
|
-
|
|
326
|
+
...(0, _utils2.getTransitionStyles)(theme, ['opacity'], {
|
|
331
327
|
duration: theme.transitions.duration.short
|
|
332
328
|
}),
|
|
333
329
|
opacity: 0
|
|
@@ -371,7 +367,7 @@ const ButtonEndIcon = (0, _zeroStyled.styled)('span', {
|
|
|
371
367
|
loading: true
|
|
372
368
|
},
|
|
373
369
|
style: {
|
|
374
|
-
|
|
370
|
+
...(0, _utils2.getTransitionStyles)(theme, ['opacity'], {
|
|
375
371
|
duration: theme.transitions.duration.short
|
|
376
372
|
}),
|
|
377
373
|
opacity: 0
|
|
@@ -17,6 +17,7 @@ import createSimplePaletteValueFilter from "../utils/createSimplePaletteValueFil
|
|
|
17
17
|
import buttonClasses, { getButtonUtilityClass } from "./buttonClasses.mjs";
|
|
18
18
|
import ButtonGroupContext from "../ButtonGroup/ButtonGroupContext.mjs";
|
|
19
19
|
import ButtonGroupButtonContext from "../ButtonGroup/ButtonGroupButtonContext.mjs";
|
|
20
|
+
import { getTransitionStyles } from "../transitions/utils.mjs";
|
|
20
21
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
21
22
|
const useUtilityClasses = ownerState => {
|
|
22
23
|
const {
|
|
@@ -92,7 +93,7 @@ const ButtonRoot = styled(ButtonBase, {
|
|
|
92
93
|
padding: '6px 16px',
|
|
93
94
|
border: 0,
|
|
94
95
|
borderRadius: (theme.vars || theme).shape.borderRadius,
|
|
95
|
-
|
|
96
|
+
...getTransitionStyles(theme, ['background-color', 'box-shadow', 'border-color', 'color'], {
|
|
96
97
|
duration: theme.transitions.duration.short
|
|
97
98
|
}),
|
|
98
99
|
'&:hover': {
|
|
@@ -102,17 +103,6 @@ const ButtonRoot = styled(ButtonBase, {
|
|
|
102
103
|
color: (theme.vars || theme).palette.action.disabled
|
|
103
104
|
},
|
|
104
105
|
variants: [{
|
|
105
|
-
props: ({
|
|
106
|
-
ownerState
|
|
107
|
-
}) => ownerState.startIcon || ownerState.loading && ownerState.loadingPosition === 'start',
|
|
108
|
-
style: {
|
|
109
|
-
'&::before': {
|
|
110
|
-
content: '"\\200b"',
|
|
111
|
-
width: 0,
|
|
112
|
-
overflow: 'hidden'
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
}, {
|
|
116
106
|
props: {
|
|
117
107
|
variant: 'contained'
|
|
118
108
|
},
|
|
@@ -282,7 +272,7 @@ const ButtonRoot = styled(ButtonBase, {
|
|
|
282
272
|
loadingPosition: 'center'
|
|
283
273
|
},
|
|
284
274
|
style: {
|
|
285
|
-
|
|
275
|
+
...getTransitionStyles(theme, ['background-color', 'box-shadow', 'border-color'], {
|
|
286
276
|
duration: theme.transitions.duration.short
|
|
287
277
|
}),
|
|
288
278
|
[`&.${buttonClasses.loading}`]: {
|
|
@@ -305,8 +295,14 @@ const ButtonStartIcon = styled('span', {
|
|
|
305
295
|
theme
|
|
306
296
|
}) => ({
|
|
307
297
|
display: 'inherit',
|
|
298
|
+
alignItems: 'center',
|
|
308
299
|
marginRight: 8,
|
|
309
300
|
marginLeft: -4,
|
|
301
|
+
'&::before': {
|
|
302
|
+
content: '"\\200b"',
|
|
303
|
+
width: 0,
|
|
304
|
+
overflow: 'hidden'
|
|
305
|
+
},
|
|
310
306
|
variants: [{
|
|
311
307
|
props: {
|
|
312
308
|
size: 'small'
|
|
@@ -320,7 +316,7 @@ const ButtonStartIcon = styled('span', {
|
|
|
320
316
|
loading: true
|
|
321
317
|
},
|
|
322
318
|
style: {
|
|
323
|
-
|
|
319
|
+
...getTransitionStyles(theme, ['opacity'], {
|
|
324
320
|
duration: theme.transitions.duration.short
|
|
325
321
|
}),
|
|
326
322
|
opacity: 0
|
|
@@ -364,7 +360,7 @@ const ButtonEndIcon = styled('span', {
|
|
|
364
360
|
loading: true
|
|
365
361
|
},
|
|
366
362
|
style: {
|
|
367
|
-
|
|
363
|
+
...getTransitionStyles(theme, ['opacity'], {
|
|
368
364
|
duration: theme.transitions.duration.short
|
|
369
365
|
}),
|
|
370
366
|
opacity: 0
|
|
@@ -227,7 +227,7 @@ const ButtonBase = /*#__PURE__*/React.forwardRef(function ButtonBase(inProps, re
|
|
|
227
227
|
}
|
|
228
228
|
}, false);
|
|
229
229
|
const handleFocus = (0, _useEventCallback.default)(event => {
|
|
230
|
-
// Fix for https://github.com/
|
|
230
|
+
// Fix for https://github.com/react/react/issues/7769
|
|
231
231
|
if (!buttonRef.current) {
|
|
232
232
|
buttonRef.current = event.currentTarget;
|
|
233
233
|
}
|
|
@@ -220,7 +220,7 @@ const ButtonBase = /*#__PURE__*/React.forwardRef(function ButtonBase(inProps, re
|
|
|
220
220
|
}
|
|
221
221
|
}, false);
|
|
222
222
|
const handleFocus = useEventCallback(event => {
|
|
223
|
-
// Fix for https://github.com/
|
|
223
|
+
// Fix for https://github.com/react/react/issues/7769
|
|
224
224
|
if (!buttonRef.current) {
|
|
225
225
|
buttonRef.current = event.currentTarget;
|
|
226
226
|
}
|