@sitecore/sc-contenthub-blok 1.0.32 → 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/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
|
@@ -12,6 +12,7 @@ import memoTheme from "../utils/memoTheme.mjs";
|
|
|
12
12
|
import createSimplePaletteValueFilter from "../utils/createSimplePaletteValueFilter.mjs";
|
|
13
13
|
import { useDefaultProps } from "../DefaultPropsProvider/index.mjs";
|
|
14
14
|
import outlinedInputClasses, { getOutlinedInputUtilityClass } from "./outlinedInputClasses.mjs";
|
|
15
|
+
import selectClasses from "../Select/selectClasses.mjs";
|
|
15
16
|
import InputBase, { rootOverridesResolver as inputBaseRootOverridesResolver, inputOverridesResolver as inputBaseInputOverridesResolver, InputBaseRoot, InputBaseInput } from "../InputBase/InputBase.mjs";
|
|
16
17
|
import useSlot from "../utils/useSlot.mjs";
|
|
17
18
|
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -87,7 +88,12 @@ const OutlinedInputRoot = styled(InputBaseRoot, {
|
|
|
87
88
|
ownerState
|
|
88
89
|
}) => ownerState.endAdornment,
|
|
89
90
|
style: {
|
|
90
|
-
|
|
91
|
+
// use CSS variable to keep specificity
|
|
92
|
+
'--_trailingPad': '14px',
|
|
93
|
+
paddingRight: 'var(--_trailingPad)',
|
|
94
|
+
[`&.${selectClasses.root}`]: {
|
|
95
|
+
'--_trailingPad': '0px'
|
|
96
|
+
}
|
|
91
97
|
}
|
|
92
98
|
}, {
|
|
93
99
|
props: ({
|
|
@@ -24,6 +24,7 @@ var _useSlot = _interopRequireDefault(require("../utils/useSlot"));
|
|
|
24
24
|
var _zeroStyled = require("../zero-styled");
|
|
25
25
|
var _memoTheme = _interopRequireDefault(require("../utils/memoTheme"));
|
|
26
26
|
var _DefaultPropsProvider = require("../DefaultPropsProvider");
|
|
27
|
+
var _utils = require("../transitions/utils");
|
|
27
28
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
28
29
|
const overridesResolver = (props, styles) => {
|
|
29
30
|
const {
|
|
@@ -119,7 +120,7 @@ const PaginationItemPage = (0, _zeroStyled.styled)(_ButtonBase.default, {
|
|
|
119
120
|
[`&.${_paginationItemClasses.default.disabled}`]: {
|
|
120
121
|
opacity: (theme.vars || theme).palette.action.disabledOpacity
|
|
121
122
|
},
|
|
122
|
-
|
|
123
|
+
...(0, _utils.getTransitionStyles)(theme, ['color', 'background-color'], {
|
|
123
124
|
duration: theme.transitions.duration.short
|
|
124
125
|
}),
|
|
125
126
|
'&:hover': {
|
|
@@ -17,6 +17,7 @@ import useSlot from "../utils/useSlot.mjs";
|
|
|
17
17
|
import { styled } from "../zero-styled/index.mjs";
|
|
18
18
|
import memoTheme from "../utils/memoTheme.mjs";
|
|
19
19
|
import { useDefaultProps } from "../DefaultPropsProvider/index.mjs";
|
|
20
|
+
import { getTransitionStyles } from "../transitions/utils.mjs";
|
|
20
21
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
21
22
|
const overridesResolver = (props, styles) => {
|
|
22
23
|
const {
|
|
@@ -112,7 +113,7 @@ const PaginationItemPage = styled(ButtonBase, {
|
|
|
112
113
|
[`&.${paginationItemClasses.disabled}`]: {
|
|
113
114
|
opacity: (theme.vars || theme).palette.action.disabledOpacity
|
|
114
115
|
},
|
|
115
|
-
|
|
116
|
+
...getTransitionStyles(theme, ['color', 'background-color'], {
|
|
116
117
|
duration: theme.transitions.duration.short
|
|
117
118
|
}),
|
|
118
119
|
'&:hover': {
|
|
@@ -19,6 +19,7 @@ var _memoTheme = _interopRequireDefault(require("../utils/memoTheme"));
|
|
|
19
19
|
var _DefaultPropsProvider = require("../DefaultPropsProvider");
|
|
20
20
|
var _getOverlayAlpha = _interopRequireDefault(require("../styles/getOverlayAlpha"));
|
|
21
21
|
var _paperClasses = require("./paperClasses");
|
|
22
|
+
var _utils = require("../transitions/utils");
|
|
22
23
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
23
24
|
const useUtilityClasses = ownerState => {
|
|
24
25
|
const {
|
|
@@ -46,7 +47,7 @@ const PaperRoot = (0, _zeroStyled.styled)('div', {
|
|
|
46
47
|
}) => ({
|
|
47
48
|
backgroundColor: (theme.vars || theme).palette.background.paper,
|
|
48
49
|
color: (theme.vars || theme).palette.text.primary,
|
|
49
|
-
|
|
50
|
+
...(0, _utils.getTransitionStyles)(theme, 'box-shadow'),
|
|
50
51
|
variants: [{
|
|
51
52
|
props: ({
|
|
52
53
|
ownerState
|
|
@@ -12,6 +12,7 @@ import memoTheme from "../utils/memoTheme.mjs";
|
|
|
12
12
|
import { useDefaultProps } from "../DefaultPropsProvider/index.mjs";
|
|
13
13
|
import getOverlayAlpha from "../styles/getOverlayAlpha.mjs";
|
|
14
14
|
import { getPaperUtilityClass } from "./paperClasses.mjs";
|
|
15
|
+
import { getTransitionStyles } from "../transitions/utils.mjs";
|
|
15
16
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
17
|
const useUtilityClasses = ownerState => {
|
|
17
18
|
const {
|
|
@@ -39,7 +40,7 @@ const PaperRoot = styled('div', {
|
|
|
39
40
|
}) => ({
|
|
40
41
|
backgroundColor: (theme.vars || theme).palette.background.paper,
|
|
41
42
|
color: (theme.vars || theme).palette.text.primary,
|
|
42
|
-
|
|
43
|
+
...getTransitionStyles(theme, 'box-shadow'),
|
|
43
44
|
variants: [{
|
|
44
45
|
props: ({
|
|
45
46
|
ownerState
|
|
@@ -6,7 +6,7 @@ import { Theme } from "../styles/index.mjs";
|
|
|
6
6
|
import { InternalStandardProps as StandardProps } from "../internal/index.mjs";
|
|
7
7
|
import { PaperProps } from "../Paper/index.mjs";
|
|
8
8
|
import { ModalProps } from "../Modal/index.mjs";
|
|
9
|
-
import { TransitionProps } from "../transitions/
|
|
9
|
+
import { TransitionProps } from "../transitions/types.mjs";
|
|
10
10
|
import { PopoverClasses } from "./popoverClasses.mjs";
|
|
11
11
|
import { CreateSlotsAndSlotProps, SlotProps } from "../utils/types.mjs";
|
|
12
12
|
export interface PopoverSlots {
|
|
@@ -6,7 +6,7 @@ import { Theme } from "../styles/index.js";
|
|
|
6
6
|
import { InternalStandardProps as StandardProps } from "../internal/index.js";
|
|
7
7
|
import { PaperProps } from "../Paper/index.js";
|
|
8
8
|
import { ModalProps } from "../Modal/index.js";
|
|
9
|
-
import { TransitionProps } from "../transitions/
|
|
9
|
+
import { TransitionProps } from "../transitions/types.js";
|
|
10
10
|
import { PopoverClasses } from "./popoverClasses.js";
|
|
11
11
|
import { CreateSlotsAndSlotProps, SlotProps } from "../utils/types.js";
|
|
12
12
|
export interface PopoverSlots {
|
|
@@ -92,17 +92,12 @@ const PopperTooltip = /*#__PURE__*/React.forwardRef(function PopperTooltip(props
|
|
|
92
92
|
* modifiers.flip is essentially a flip for controlled/uncontrolled behavior
|
|
93
93
|
*/
|
|
94
94
|
const [placement, setPlacement] = React.useState(rtlPlacement);
|
|
95
|
-
const
|
|
95
|
+
const resolvedAnchorElement = React.useMemo(() => resolveAnchorEl(anchorEl), [anchorEl]);
|
|
96
96
|
React.useEffect(() => {
|
|
97
97
|
if (popperRef.current) {
|
|
98
98
|
popperRef.current.forceUpdate();
|
|
99
99
|
}
|
|
100
100
|
});
|
|
101
|
-
React.useEffect(() => {
|
|
102
|
-
if (anchorEl) {
|
|
103
|
-
setResolvedAnchorElement(resolveAnchorEl(anchorEl));
|
|
104
|
-
}
|
|
105
|
-
}, [anchorEl]);
|
|
106
101
|
(0, _useEnhancedEffect.default)(() => {
|
|
107
102
|
if (!resolvedAnchorElement || !open) {
|
|
108
103
|
return undefined;
|
|
@@ -85,17 +85,12 @@ const PopperTooltip = /*#__PURE__*/React.forwardRef(function PopperTooltip(props
|
|
|
85
85
|
* modifiers.flip is essentially a flip for controlled/uncontrolled behavior
|
|
86
86
|
*/
|
|
87
87
|
const [placement, setPlacement] = React.useState(rtlPlacement);
|
|
88
|
-
const
|
|
88
|
+
const resolvedAnchorElement = React.useMemo(() => resolveAnchorEl(anchorEl), [anchorEl]);
|
|
89
89
|
React.useEffect(() => {
|
|
90
90
|
if (popperRef.current) {
|
|
91
91
|
popperRef.current.forceUpdate();
|
|
92
92
|
}
|
|
93
93
|
});
|
|
94
|
-
React.useEffect(() => {
|
|
95
|
-
if (anchorEl) {
|
|
96
|
-
setResolvedAnchorElement(resolveAnchorEl(anchorEl));
|
|
97
|
-
}
|
|
98
|
-
}, [anchorEl]);
|
|
99
94
|
useEnhancedEffect(() => {
|
|
100
95
|
if (!resolvedAnchorElement || !open) {
|
|
101
96
|
return undefined;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
<!-- #host-reference -->
|
|
2
|
-
<!--
|
|
2
|
+
<!-- lint disable mui-first-block-heading -->
|
|
3
|
+
|
|
3
4
|
<p align="center">
|
|
4
|
-
<a href="https://mui.com/material-ui/"
|
|
5
|
+
<a href="https://mui.com/material-ui/" target="_blank"><img width="150" height="133" src="https://mui.com/static/logo.svg" alt="Material UI logo"></a>
|
|
5
6
|
</p>
|
|
6
7
|
|
|
7
8
|
<h1 align="center">Material UI</h1>
|
|
@@ -193,6 +193,9 @@ const Radio = /*#__PURE__*/React.forwardRef(function Radio(inProps, ref) {
|
|
|
193
193
|
disabled,
|
|
194
194
|
name,
|
|
195
195
|
checked,
|
|
196
|
+
// Forward the raw prop so an unset value stays `undefined` and ButtonBase resolves its
|
|
197
|
+
// own default — letting a global `MuiButtonBase.defaultProps.disableRipple` apply here.
|
|
198
|
+
disableRipple: props.disableRipple,
|
|
196
199
|
slots,
|
|
197
200
|
slotProps: {
|
|
198
201
|
// Do not forward `slotProps.root` again because it's already handled by the `RootSlot` in this file.
|
|
@@ -186,6 +186,9 @@ const Radio = /*#__PURE__*/React.forwardRef(function Radio(inProps, ref) {
|
|
|
186
186
|
disabled,
|
|
187
187
|
name,
|
|
188
188
|
checked,
|
|
189
|
+
// Forward the raw prop so an unset value stays `undefined` and ButtonBase resolves its
|
|
190
|
+
// own default — letting a global `MuiButtonBase.defaultProps.disableRipple` apply here.
|
|
191
|
+
disableRipple: props.disableRipple,
|
|
189
192
|
slots,
|
|
190
193
|
slotProps: {
|
|
191
194
|
// Do not forward `slotProps.root` again because it's already handled by the `RootSlot` in this file.
|
|
@@ -12,6 +12,7 @@ var _RadioButtonChecked = _interopRequireDefault(require("../internal/svg-icons/
|
|
|
12
12
|
var _rootShouldForwardProp = _interopRequireDefault(require("../styles/rootShouldForwardProp"));
|
|
13
13
|
var _zeroStyled = require("../zero-styled");
|
|
14
14
|
var _memoTheme = _interopRequireDefault(require("../utils/memoTheme"));
|
|
15
|
+
var _utils = require("../transitions/utils");
|
|
15
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
17
|
const RadioButtonIconRoot = (0, _zeroStyled.styled)('span', {
|
|
17
18
|
name: 'MuiRadioButtonIcon',
|
|
@@ -34,7 +35,7 @@ const RadioButtonIconDot = (0, _zeroStyled.styled)(_RadioButtonChecked.default,
|
|
|
34
35
|
left: 0,
|
|
35
36
|
position: 'absolute',
|
|
36
37
|
transform: 'scale(0)',
|
|
37
|
-
|
|
38
|
+
...(0, _utils.getTransitionStyles)(theme, 'transform', {
|
|
38
39
|
easing: theme.transitions.easing.easeIn,
|
|
39
40
|
duration: theme.transitions.duration.shortest
|
|
40
41
|
}),
|
|
@@ -44,7 +45,7 @@ const RadioButtonIconDot = (0, _zeroStyled.styled)(_RadioButtonChecked.default,
|
|
|
44
45
|
},
|
|
45
46
|
style: {
|
|
46
47
|
transform: 'scale(1)',
|
|
47
|
-
|
|
48
|
+
...(0, _utils.getTransitionStyles)(theme, 'transform', {
|
|
48
49
|
easing: theme.transitions.easing.easeOut,
|
|
49
50
|
duration: theme.transitions.duration.shortest
|
|
50
51
|
})
|
|
@@ -6,6 +6,7 @@ import RadioButtonCheckedIcon from "../internal/svg-icons/RadioButtonChecked.mjs
|
|
|
6
6
|
import rootShouldForwardProp from "../styles/rootShouldForwardProp.mjs";
|
|
7
7
|
import { styled } from "../zero-styled/index.mjs";
|
|
8
8
|
import memoTheme from "../utils/memoTheme.mjs";
|
|
9
|
+
import { getTransitionStyles } from "../transitions/utils.mjs";
|
|
9
10
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
11
|
const RadioButtonIconRoot = styled('span', {
|
|
11
12
|
name: 'MuiRadioButtonIcon',
|
|
@@ -28,7 +29,7 @@ const RadioButtonIconDot = styled(RadioButtonCheckedIcon, {
|
|
|
28
29
|
left: 0,
|
|
29
30
|
position: 'absolute',
|
|
30
31
|
transform: 'scale(0)',
|
|
31
|
-
|
|
32
|
+
...getTransitionStyles(theme, 'transform', {
|
|
32
33
|
easing: theme.transitions.easing.easeIn,
|
|
33
34
|
duration: theme.transitions.duration.shortest
|
|
34
35
|
}),
|
|
@@ -38,7 +39,7 @@ const RadioButtonIconDot = styled(RadioButtonCheckedIcon, {
|
|
|
38
39
|
},
|
|
39
40
|
style: {
|
|
40
41
|
transform: 'scale(1)',
|
|
41
|
-
|
|
42
|
+
...getTransitionStyles(theme, 'transform', {
|
|
42
43
|
easing: theme.transitions.easing.easeOut,
|
|
43
44
|
duration: theme.transitions.duration.shortest
|
|
44
45
|
})
|
|
@@ -26,6 +26,7 @@ var _DefaultPropsProvider = require("../DefaultPropsProvider");
|
|
|
26
26
|
var _slotShouldForwardProp = _interopRequireDefault(require("../styles/slotShouldForwardProp"));
|
|
27
27
|
var _ratingClasses = _interopRequireWildcard(require("./ratingClasses"));
|
|
28
28
|
var _useSlot = _interopRequireDefault(require("../utils/useSlot"));
|
|
29
|
+
var _utils2 = require("../transitions/utils");
|
|
29
30
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
30
31
|
function getDecimalPrecision(num) {
|
|
31
32
|
const decimalPart = num.toString().split('.')[1];
|
|
@@ -152,11 +153,11 @@ const RatingIcon = (0, _zeroStyled.styled)('span', {
|
|
|
152
153
|
}) => ({
|
|
153
154
|
// Fit wrapper to actual icon size.
|
|
154
155
|
display: 'flex',
|
|
155
|
-
|
|
156
|
+
...(0, _utils2.getTransitionStyles)(theme, 'transform', {
|
|
156
157
|
duration: theme.transitions.duration.shortest
|
|
157
158
|
}),
|
|
158
159
|
// Fix mouseLeave issue.
|
|
159
|
-
// https://github.com/
|
|
160
|
+
// https://github.com/react/react/issues/4492
|
|
160
161
|
pointerEvents: 'none',
|
|
161
162
|
variants: [{
|
|
162
163
|
props: ({
|
|
@@ -451,7 +452,7 @@ const Rating = /*#__PURE__*/React.forwardRef(function Rating(inProps, ref) {
|
|
|
451
452
|
};
|
|
452
453
|
const handleClear = event => {
|
|
453
454
|
// Ignore keyboard events
|
|
454
|
-
// https://github.com/
|
|
455
|
+
// https://github.com/react/react/issues/7407
|
|
455
456
|
if (event.clientX === 0 && event.clientY === 0) {
|
|
456
457
|
return;
|
|
457
458
|
}
|
|
@@ -18,6 +18,7 @@ import { useDefaultProps } from "../DefaultPropsProvider/index.mjs";
|
|
|
18
18
|
import slotShouldForwardProp from "../styles/slotShouldForwardProp.mjs";
|
|
19
19
|
import ratingClasses, { getRatingUtilityClass } from "./ratingClasses.mjs";
|
|
20
20
|
import useSlot from "../utils/useSlot.mjs";
|
|
21
|
+
import { getTransitionStyles } from "../transitions/utils.mjs";
|
|
21
22
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
22
23
|
import { createElement as _createElement } from "react";
|
|
23
24
|
function getDecimalPrecision(num) {
|
|
@@ -145,11 +146,11 @@ const RatingIcon = styled('span', {
|
|
|
145
146
|
}) => ({
|
|
146
147
|
// Fit wrapper to actual icon size.
|
|
147
148
|
display: 'flex',
|
|
148
|
-
|
|
149
|
+
...getTransitionStyles(theme, 'transform', {
|
|
149
150
|
duration: theme.transitions.duration.shortest
|
|
150
151
|
}),
|
|
151
152
|
// Fix mouseLeave issue.
|
|
152
|
-
// https://github.com/
|
|
153
|
+
// https://github.com/react/react/issues/4492
|
|
153
154
|
pointerEvents: 'none',
|
|
154
155
|
variants: [{
|
|
155
156
|
props: ({
|
|
@@ -444,7 +445,7 @@ const Rating = /*#__PURE__*/React.forwardRef(function Rating(inProps, ref) {
|
|
|
444
445
|
};
|
|
445
446
|
const handleClear = event => {
|
|
446
447
|
// Ignore keyboard events
|
|
447
|
-
// https://github.com/
|
|
448
|
+
// https://github.com/react/react/issues/7407
|
|
448
449
|
if (event.clientX === 0 && event.clientY === 0) {
|
|
449
450
|
return;
|
|
450
451
|
}
|
|
@@ -28,6 +28,7 @@ var _useForkRef = _interopRequireDefault(require("../utils/useForkRef"));
|
|
|
28
28
|
var _useControlled = _interopRequireDefault(require("../utils/useControlled"));
|
|
29
29
|
var _selectClasses = _interopRequireWildcard(require("./selectClasses"));
|
|
30
30
|
var _utils2 = require("./utils");
|
|
31
|
+
var _closedTypeahead = require("./utils/closedTypeahead");
|
|
31
32
|
var _SelectFocusSourceContext = require("./utils/SelectFocusSourceContext");
|
|
32
33
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
33
34
|
var _span;
|
|
@@ -35,6 +36,11 @@ const OPENING_MOUSE_UP_BOUNDARY_OFFSET = 2;
|
|
|
35
36
|
// The initial mouseup may land on an item when the menu opens over the trigger.
|
|
36
37
|
const SELECTED_MOUSE_UP_DELAY = 400;
|
|
37
38
|
const UNSELECTED_MOUSE_UP_DELAY = 200;
|
|
39
|
+
const TYPEAHEAD_RESET_MS = 750;
|
|
40
|
+
const SPACE = ' ';
|
|
41
|
+
const ARROW_UP = 'ArrowUp';
|
|
42
|
+
const ARROW_DOWN = 'ArrowDown';
|
|
43
|
+
const ENTER = 'Enter';
|
|
38
44
|
|
|
39
45
|
/**
|
|
40
46
|
* Returns true when a native mouse event should be treated as happening inside
|
|
@@ -197,8 +203,14 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
|
|
|
197
203
|
allowSelectedMouseUp: false,
|
|
198
204
|
allowUnselectedMouseUp: false
|
|
199
205
|
});
|
|
206
|
+
const closedTypeaheadRef = React.useRef({
|
|
207
|
+
buffer: '',
|
|
208
|
+
previousSearchIndex: null,
|
|
209
|
+
matchedIndex: null
|
|
210
|
+
});
|
|
200
211
|
const selectedMouseUpTimer = (0, _useTimeout.default)();
|
|
201
212
|
const unselectedMouseUpTimer = (0, _useTimeout.default)();
|
|
213
|
+
const typeaheadResetTimer = (0, _useTimeout.default)();
|
|
202
214
|
const [displayNode, setDisplayNode] = React.useState(null);
|
|
203
215
|
const {
|
|
204
216
|
current: isOpenControlled
|
|
@@ -221,9 +233,18 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
|
|
|
221
233
|
value
|
|
222
234
|
}), [value]);
|
|
223
235
|
const open = displayNode !== null && openState;
|
|
236
|
+
const resetClosedTypeahead = React.useCallback(() => {
|
|
237
|
+
typeaheadResetTimer.clear();
|
|
238
|
+
closedTypeaheadRef.current.buffer = '';
|
|
239
|
+
closedTypeaheadRef.current.previousSearchIndex = null;
|
|
240
|
+
closedTypeaheadRef.current.matchedIndex = null;
|
|
241
|
+
}, [typeaheadResetTimer]);
|
|
224
242
|
(0, _useEnhancedEffect.default)(() => {
|
|
225
243
|
openRef.current = open;
|
|
226
|
-
|
|
244
|
+
if (open) {
|
|
245
|
+
resetClosedTypeahead();
|
|
246
|
+
}
|
|
247
|
+
}, [open, resetClosedTypeahead]);
|
|
227
248
|
const clearSelectionTimers = React.useCallback(() => {
|
|
228
249
|
selectedMouseUpTimer.clear();
|
|
229
250
|
unselectedMouseUpTimer.clear();
|
|
@@ -255,8 +276,9 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
|
|
|
255
276
|
return () => {
|
|
256
277
|
resetMouseUpSelection();
|
|
257
278
|
clearOpeningMouseUpListener();
|
|
279
|
+
resetClosedTypeahead();
|
|
258
280
|
};
|
|
259
|
-
}, [resetMouseUpSelection, clearOpeningMouseUpListener]);
|
|
281
|
+
}, [resetMouseUpSelection, clearOpeningMouseUpListener, resetClosedTypeahead]);
|
|
260
282
|
React.useEffect(() => {
|
|
261
283
|
if (!open || !anchorElement || autoWidth) {
|
|
262
284
|
return undefined;
|
|
@@ -313,6 +335,7 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
|
|
|
313
335
|
clearOpeningMouseUpListener();
|
|
314
336
|
}
|
|
315
337
|
if (openParam) {
|
|
338
|
+
resetClosedTypeahead();
|
|
316
339
|
setOpenInteractionType((0, _utils2.getOpenInteractionType)(event));
|
|
317
340
|
if (onOpen) {
|
|
318
341
|
onOpen(event);
|
|
@@ -360,6 +383,9 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
|
|
|
360
383
|
}
|
|
361
384
|
// Hijack the default focus behavior.
|
|
362
385
|
event.preventDefault();
|
|
386
|
+
if (!displayRef.current) {
|
|
387
|
+
return;
|
|
388
|
+
}
|
|
363
389
|
displayRef.current.focus();
|
|
364
390
|
const doc = (0, _ownerDocument.default)(event.currentTarget);
|
|
365
391
|
scheduleMouseUpSelection();
|
|
@@ -402,6 +428,25 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
|
|
|
402
428
|
onChange(event, child);
|
|
403
429
|
}
|
|
404
430
|
};
|
|
431
|
+
const handleValueChange = (event, child, newValue) => {
|
|
432
|
+
setValueState(newValue);
|
|
433
|
+
if (onChange) {
|
|
434
|
+
// Redefine target to allow name and value to be read.
|
|
435
|
+
// This allows seamless integration with the most popular form libraries.
|
|
436
|
+
// https://github.com/mui/material-ui/issues/13485#issuecomment-676048492
|
|
437
|
+
// Clone the event to not override `target` of the original event.
|
|
438
|
+
const nativeEvent = event.nativeEvent || event;
|
|
439
|
+
const clonedEvent = new nativeEvent.constructor(nativeEvent.type, nativeEvent);
|
|
440
|
+
Object.defineProperty(clonedEvent, 'target', {
|
|
441
|
+
writable: true,
|
|
442
|
+
value: {
|
|
443
|
+
value: newValue,
|
|
444
|
+
name
|
|
445
|
+
}
|
|
446
|
+
});
|
|
447
|
+
onChange(clonedEvent, child);
|
|
448
|
+
}
|
|
449
|
+
};
|
|
405
450
|
const handleItemClick = child => event => {
|
|
406
451
|
didPointerDownOnItemRef.current = false;
|
|
407
452
|
let newValue;
|
|
@@ -425,23 +470,7 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
|
|
|
425
470
|
child.props.onClick(event);
|
|
426
471
|
}
|
|
427
472
|
if (value !== newValue) {
|
|
428
|
-
|
|
429
|
-
if (onChange) {
|
|
430
|
-
// Redefine target to allow name and value to be read.
|
|
431
|
-
// This allows seamless integration with the most popular form libraries.
|
|
432
|
-
// https://github.com/mui/material-ui/issues/13485#issuecomment-676048492
|
|
433
|
-
// Clone the event to not override `target` of the original event.
|
|
434
|
-
const nativeEvent = event.nativeEvent || event;
|
|
435
|
-
const clonedEvent = new nativeEvent.constructor(nativeEvent.type, nativeEvent);
|
|
436
|
-
Object.defineProperty(clonedEvent, 'target', {
|
|
437
|
-
writable: true,
|
|
438
|
-
value: {
|
|
439
|
-
value: newValue,
|
|
440
|
-
name
|
|
441
|
-
}
|
|
442
|
-
});
|
|
443
|
-
onChange(clonedEvent, child);
|
|
444
|
-
}
|
|
473
|
+
handleValueChange(event, child, newValue);
|
|
445
474
|
}
|
|
446
475
|
if (!multiple) {
|
|
447
476
|
update(false, event);
|
|
@@ -460,13 +489,57 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
|
|
|
460
489
|
}
|
|
461
490
|
event.currentTarget.click();
|
|
462
491
|
};
|
|
492
|
+
const handleClosedTypeahead = event => {
|
|
493
|
+
const state = closedTypeaheadRef.current;
|
|
494
|
+
const hasActiveBuffer = state.buffer !== '';
|
|
495
|
+
if (open || multiple || disabled || event.defaultPrevented || event.nativeEvent?.isComposing || event.key.length !== 1 || event.ctrlKey || event.metaKey || event.altKey || event.key === SPACE && !hasActiveBuffer) {
|
|
496
|
+
return false;
|
|
497
|
+
}
|
|
498
|
+
if (event.key === SPACE) {
|
|
499
|
+
event.preventDefault();
|
|
500
|
+
}
|
|
501
|
+
const isNewSession = state.buffer === '';
|
|
502
|
+
const {
|
|
503
|
+
options: searchableOptions,
|
|
504
|
+
selectedIndex
|
|
505
|
+
} = (0, _closedTypeahead.getTypeaheadOptions)(childrenArray, value);
|
|
506
|
+
if (searchableOptions.length === 0) {
|
|
507
|
+
if (event.key !== SPACE) {
|
|
508
|
+
resetClosedTypeahead();
|
|
509
|
+
}
|
|
510
|
+
return true;
|
|
511
|
+
}
|
|
512
|
+
if (isNewSession) {
|
|
513
|
+
state.previousSearchIndex = selectedIndex;
|
|
514
|
+
}
|
|
515
|
+
const key = event.key.toLowerCase();
|
|
516
|
+
if (state.buffer === key && (0, _closedTypeahead.canCycleRepeatedCharacter)(searchableOptions, key)) {
|
|
517
|
+
state.buffer = '';
|
|
518
|
+
state.previousSearchIndex = state.matchedIndex;
|
|
519
|
+
}
|
|
520
|
+
state.buffer += key;
|
|
521
|
+
typeaheadResetTimer.start(TYPEAHEAD_RESET_MS, resetClosedTypeahead);
|
|
522
|
+
const matchingIndex = (0, _closedTypeahead.getMatchingOptionIndex)(searchableOptions, state.buffer, (state.previousSearchIndex ?? -1) + 1);
|
|
523
|
+
if (matchingIndex !== -1) {
|
|
524
|
+
const matchedOption = searchableOptions[matchingIndex];
|
|
525
|
+
state.matchedIndex = matchingIndex;
|
|
526
|
+
if (!(0, _utils2.areEqualValues)(value, matchedOption.value)) {
|
|
527
|
+
handleValueChange(event, matchedOption.child, matchedOption.value);
|
|
528
|
+
}
|
|
529
|
+
return true;
|
|
530
|
+
}
|
|
531
|
+
if (event.key !== SPACE) {
|
|
532
|
+
resetClosedTypeahead();
|
|
533
|
+
}
|
|
534
|
+
return true;
|
|
535
|
+
};
|
|
463
536
|
const handleKeyDown = event => {
|
|
464
537
|
if (!readOnly) {
|
|
465
|
-
const
|
|
466
|
-
// The native select doesn't respond to
|
|
538
|
+
const isClosedTypeaheadHandled = handleClosedTypeahead(event);
|
|
539
|
+
// The native select doesn't respond to Enter on macOS, but it's recommended by
|
|
467
540
|
// https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-select-only/
|
|
468
|
-
|
|
469
|
-
if (
|
|
541
|
+
const isOpenKey = event.key === SPACE || event.key === ARROW_UP || event.key === ARROW_DOWN || event.key === ENTER;
|
|
542
|
+
if (!isClosedTypeaheadHandled && isOpenKey) {
|
|
470
543
|
event.preventDefault();
|
|
471
544
|
update(true, event);
|
|
472
545
|
}
|
|
@@ -474,6 +547,7 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
|
|
|
474
547
|
}
|
|
475
548
|
};
|
|
476
549
|
const handleBlur = event => {
|
|
550
|
+
resetClosedTypeahead();
|
|
477
551
|
// if open event.stopImmediatePropagation
|
|
478
552
|
if (!open && onBlur) {
|
|
479
553
|
// Preact support, target is read only property on a native event.
|
|
@@ -487,6 +561,19 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
|
|
|
487
561
|
onBlur(event);
|
|
488
562
|
}
|
|
489
563
|
};
|
|
564
|
+
const handleItemKeyDown = child => event => {
|
|
565
|
+
child?.props?.onKeyDown?.(event);
|
|
566
|
+
if (event.key === SPACE && event.target === event.currentTarget && !event.defaultPrevented) {
|
|
567
|
+
// Prevent the browser from scrolling the page
|
|
568
|
+
event.preventDefault();
|
|
569
|
+
// Ignore auto-repeated keydowns to avoid toggling multiple times
|
|
570
|
+
if (!event.repeat) {
|
|
571
|
+
// Trigger via click so that onClick receives a click event,
|
|
572
|
+
// consistent with Enter and pointer interactions.
|
|
573
|
+
event.currentTarget.click();
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
};
|
|
490
577
|
delete other['aria-invalid'];
|
|
491
578
|
let display;
|
|
492
579
|
let displaySingle;
|
|
@@ -544,7 +631,7 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
|
|
|
544
631
|
onClick: handleItemClick(child),
|
|
545
632
|
onMouseUp: handleItemMouseUp(child, selected),
|
|
546
633
|
onKeyUp: event => {
|
|
547
|
-
if (event.key ===
|
|
634
|
+
if (event.key === SPACE) {
|
|
548
635
|
// otherwise our MenuItems dispatches a click event
|
|
549
636
|
// it's not behavior of the native <option> and causes
|
|
550
637
|
// the select to close immediately since we open on space keydown
|
|
@@ -554,6 +641,7 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
|
|
|
554
641
|
child.props.onKeyUp(event);
|
|
555
642
|
}
|
|
556
643
|
},
|
|
644
|
+
onKeyDown: handleItemKeyDown(child),
|
|
557
645
|
role: 'option',
|
|
558
646
|
selected,
|
|
559
647
|
value: undefined,
|
|
@@ -565,7 +653,10 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
|
|
|
565
653
|
// Keep the opening mouseup guard current without mutating refs during render.
|
|
566
654
|
(0, _useEnhancedEffect.default)(() => {
|
|
567
655
|
hasSelectedItemInListRef.current = foundMatch;
|
|
568
|
-
|
|
656
|
+
if (!open && !multiple && !foundMatch) {
|
|
657
|
+
resetClosedTypeahead();
|
|
658
|
+
}
|
|
659
|
+
}, [foundMatch, multiple, open, resetClosedTypeahead]);
|
|
569
660
|
if (process.env.NODE_ENV !== 'production') {
|
|
570
661
|
// TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler
|
|
571
662
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
@@ -629,6 +720,7 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
|
|
|
629
720
|
"aria-disabled": disabled ? 'true' : undefined,
|
|
630
721
|
"aria-expanded": open ? 'true' : 'false',
|
|
631
722
|
"aria-haspopup": "listbox",
|
|
723
|
+
"aria-readonly": readOnly ? 'true' : undefined,
|
|
632
724
|
"aria-label": ariaLabel,
|
|
633
725
|
"aria-labelledby": labelId,
|
|
634
726
|
"aria-describedby": ariaDescribedby,
|
|
@@ -659,6 +751,7 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
|
|
|
659
751
|
onChange: handleChange,
|
|
660
752
|
tabIndex: -1,
|
|
661
753
|
disabled: disabled,
|
|
754
|
+
readOnly: readOnly,
|
|
662
755
|
className: classes.nativeInput,
|
|
663
756
|
autoFocus: autoFocus,
|
|
664
757
|
required: required,
|