@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
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
export default _default;
|
|
2
|
+
declare function _default<T extends {
|
|
2
3
|
rootSelector?: string | undefined;
|
|
3
|
-
colorSchemeSelector?:
|
|
4
|
+
colorSchemeSelector?: 'media' | 'class' | 'data' | string | undefined;
|
|
4
5
|
colorSchemes?: Record<string, any> | undefined;
|
|
5
6
|
defaultColorScheme?: string | undefined;
|
|
6
7
|
cssVarPrefix?: string | undefined;
|
|
7
|
-
}>(theme: T)
|
|
8
|
+
}>(theme: T): (colorScheme: keyof T['colorSchemes'] | undefined, css: Record<string, any>) => string | {
|
|
8
9
|
[x: string]: Record<string, any>;
|
|
9
10
|
"@media (prefers-color-scheme: dark)": {
|
|
10
11
|
[x: string]: Record<string, any>;
|
|
@@ -12,5 +13,4 @@ declare const _default: <T extends {
|
|
|
12
13
|
} | {
|
|
13
14
|
[x: string]: Record<string, any>;
|
|
14
15
|
"@media (prefers-color-scheme: dark)"?: undefined;
|
|
15
|
-
};
|
|
16
|
-
export default _default;
|
|
16
|
+
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
export default _default;
|
|
2
|
+
declare function _default<T extends {
|
|
2
3
|
rootSelector?: string | undefined;
|
|
3
|
-
colorSchemeSelector?:
|
|
4
|
+
colorSchemeSelector?: 'media' | 'class' | 'data' | string | undefined;
|
|
4
5
|
colorSchemes?: Record<string, any> | undefined;
|
|
5
6
|
defaultColorScheme?: string | undefined;
|
|
6
7
|
cssVarPrefix?: string | undefined;
|
|
7
|
-
}>(theme: T)
|
|
8
|
+
}>(theme: T): (colorScheme: keyof T['colorSchemes'] | undefined, css: Record<string, any>) => string | {
|
|
8
9
|
[x: string]: Record<string, any>;
|
|
9
10
|
"@media (prefers-color-scheme: dark)": {
|
|
10
11
|
[x: string]: Record<string, any>;
|
|
@@ -12,5 +13,4 @@ declare const _default: <T extends {
|
|
|
12
13
|
} | {
|
|
13
14
|
[x: string]: Record<string, any>;
|
|
14
15
|
"@media (prefers-color-scheme: dark)"?: undefined;
|
|
15
|
-
};
|
|
16
|
-
export default _default;
|
|
16
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type ReducedMotionMode = 'never' | 'system' | 'always';
|
|
2
|
+
export interface Motion {
|
|
3
|
+
reducedMotion: ReducedMotionMode;
|
|
4
|
+
}
|
|
5
|
+
export interface MotionOptions {
|
|
6
|
+
reducedMotion?: ReducedMotionMode | undefined;
|
|
7
|
+
}
|
|
8
|
+
export default function createMotion(inputMotion?: MotionOptions): Motion;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type ReducedMotionMode = 'never' | 'system' | 'always';
|
|
2
|
+
export interface Motion {
|
|
3
|
+
reducedMotion: ReducedMotionMode;
|
|
4
|
+
}
|
|
5
|
+
export interface MotionOptions {
|
|
6
|
+
reducedMotion?: ReducedMotionMode | undefined;
|
|
7
|
+
}
|
|
8
|
+
export default function createMotion(inputMotion?: MotionOptions): Motion;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = createMotion;
|
|
7
|
+
const EMPTY_MOTION = {};
|
|
8
|
+
function createMotion(inputMotion = EMPTY_MOTION) {
|
|
9
|
+
return {
|
|
10
|
+
reducedMotion: 'never',
|
|
11
|
+
...inputMotion
|
|
12
|
+
};
|
|
13
|
+
}
|
|
@@ -3,6 +3,7 @@ import { SxConfig, SxProps, CSSObject, ApplyStyles, Theme as SystemTheme, Shape
|
|
|
3
3
|
import { ExtractTypographyTokens } from '@mui/system/cssVars';
|
|
4
4
|
import { Palette, PaletteOptions } from "./createPalette.mjs";
|
|
5
5
|
import { Shadows } from "./shadows.mjs";
|
|
6
|
+
import { Motion } from "./createMotion.mjs";
|
|
6
7
|
import { Transitions } from "./createTransitions.mjs";
|
|
7
8
|
import { Mixins } from "./createMixins.mjs";
|
|
8
9
|
import { TypographyVariants } from "./createTypography.mjs";
|
|
@@ -260,6 +261,7 @@ export interface CssVarsTheme extends ColorSystem {
|
|
|
260
261
|
breakpoints: SystemTheme['breakpoints'];
|
|
261
262
|
shape: Shape;
|
|
262
263
|
typography: TypographyVariants;
|
|
264
|
+
motion: Motion;
|
|
263
265
|
transitions: Transitions;
|
|
264
266
|
shadows: Shadows;
|
|
265
267
|
mixins: Mixins;
|
|
@@ -3,6 +3,7 @@ import { SxConfig, SxProps, CSSObject, ApplyStyles, Theme as SystemTheme, Shape
|
|
|
3
3
|
import { ExtractTypographyTokens } from '@mui/system/cssVars';
|
|
4
4
|
import { Palette, PaletteOptions } from "./createPalette.js";
|
|
5
5
|
import { Shadows } from "./shadows.js";
|
|
6
|
+
import { Motion } from "./createMotion.js";
|
|
6
7
|
import { Transitions } from "./createTransitions.js";
|
|
7
8
|
import { Mixins } from "./createMixins.js";
|
|
8
9
|
import { TypographyVariants } from "./createTypography.js";
|
|
@@ -260,6 +261,7 @@ export interface CssVarsTheme extends ColorSystem {
|
|
|
260
261
|
breakpoints: SystemTheme['breakpoints'];
|
|
261
262
|
shape: Shape;
|
|
262
263
|
typography: TypographyVariants;
|
|
264
|
+
motion: Motion;
|
|
263
265
|
transitions: Transitions;
|
|
264
266
|
shadows: Shadows;
|
|
265
267
|
mixins: Mixins;
|
|
@@ -3,6 +3,7 @@ import { Mixins, MixinsOptions } from "./createMixins.mjs";
|
|
|
3
3
|
import { Palette, PaletteOptions } from "./createPalette.mjs";
|
|
4
4
|
import { TypographyVariants, TypographyVariantsOptions } from "./createTypography.mjs";
|
|
5
5
|
import { Shadows } from "./shadows.mjs";
|
|
6
|
+
import { Motion, MotionOptions } from "./createMotion.mjs";
|
|
6
7
|
import { Transitions, TransitionsOptions } from "./createTransitions.mjs";
|
|
7
8
|
import { ZIndex, ZIndexOptions } from "./zIndex.mjs";
|
|
8
9
|
import { Components } from "./components.mjs";
|
|
@@ -25,6 +26,7 @@ type CssVarsOptions = CssThemeVariables extends {
|
|
|
25
26
|
export interface ThemeOptions extends Omit<SystemThemeOptions, 'zIndex'>, CssVarsOptions {
|
|
26
27
|
mixins?: MixinsOptions | undefined;
|
|
27
28
|
components?: Components<Omit<Theme, 'components'>> | undefined;
|
|
29
|
+
motion?: MotionOptions | undefined;
|
|
28
30
|
palette?: PaletteOptions | undefined;
|
|
29
31
|
shadows?: Shadows | undefined;
|
|
30
32
|
shape?: ShapeOptions | undefined;
|
|
@@ -37,6 +39,7 @@ export interface ThemeOptions extends Omit<SystemThemeOptions, 'zIndex'>, CssVar
|
|
|
37
39
|
}
|
|
38
40
|
export interface BaseTheme extends SystemTheme {
|
|
39
41
|
mixins: Mixins;
|
|
42
|
+
motion: Motion;
|
|
40
43
|
palette: Palette & (CssThemeVariables extends {
|
|
41
44
|
enabled: true;
|
|
42
45
|
} ? CssVarsPalette : {});
|
|
@@ -3,6 +3,7 @@ import { Mixins, MixinsOptions } from "./createMixins.js";
|
|
|
3
3
|
import { Palette, PaletteOptions } from "./createPalette.js";
|
|
4
4
|
import { TypographyVariants, TypographyVariantsOptions } from "./createTypography.js";
|
|
5
5
|
import { Shadows } from "./shadows.js";
|
|
6
|
+
import { Motion, MotionOptions } from "./createMotion.js";
|
|
6
7
|
import { Transitions, TransitionsOptions } from "./createTransitions.js";
|
|
7
8
|
import { ZIndex, ZIndexOptions } from "./zIndex.js";
|
|
8
9
|
import { Components } from "./components.js";
|
|
@@ -25,6 +26,7 @@ type CssVarsOptions = CssThemeVariables extends {
|
|
|
25
26
|
export interface ThemeOptions extends Omit<SystemThemeOptions, 'zIndex'>, CssVarsOptions {
|
|
26
27
|
mixins?: MixinsOptions | undefined;
|
|
27
28
|
components?: Components<Omit<Theme, 'components'>> | undefined;
|
|
29
|
+
motion?: MotionOptions | undefined;
|
|
28
30
|
palette?: PaletteOptions | undefined;
|
|
29
31
|
shadows?: Shadows | undefined;
|
|
30
32
|
shape?: ShapeOptions | undefined;
|
|
@@ -37,6 +39,7 @@ export interface ThemeOptions extends Omit<SystemThemeOptions, 'zIndex'>, CssVar
|
|
|
37
39
|
}
|
|
38
40
|
export interface BaseTheme extends SystemTheme {
|
|
39
41
|
mixins: Mixins;
|
|
42
|
+
motion: Motion;
|
|
40
43
|
palette: Palette & (CssThemeVariables extends {
|
|
41
44
|
enabled: true;
|
|
42
45
|
} ? CssVarsPalette : {});
|
|
@@ -17,6 +17,7 @@ var _createPalette = _interopRequireDefault(require("./createPalette"));
|
|
|
17
17
|
var _createTypography = _interopRequireDefault(require("./createTypography"));
|
|
18
18
|
var _shadows = _interopRequireDefault(require("./shadows"));
|
|
19
19
|
var _createTransitions = _interopRequireDefault(require("./createTransitions"));
|
|
20
|
+
var _createMotion = _interopRequireDefault(require("./createMotion"));
|
|
20
21
|
var _zIndex = _interopRequireDefault(require("./zIndex"));
|
|
21
22
|
var _stringifyTheme = require("./stringifyTheme");
|
|
22
23
|
function coefficientToPercentage(coefficient) {
|
|
@@ -77,6 +78,7 @@ function createThemeNoVars(options = {}, ...args) {
|
|
|
77
78
|
mixins: mixinsInput = {},
|
|
78
79
|
spacing: spacingInput,
|
|
79
80
|
palette: paletteInput = {},
|
|
81
|
+
motion: motionInput = {},
|
|
80
82
|
transitions: transitionsInput = {},
|
|
81
83
|
typography: typographyInput = {},
|
|
82
84
|
shape: shapeInput,
|
|
@@ -102,6 +104,7 @@ function createThemeNoVars(options = {}, ...args) {
|
|
|
102
104
|
// Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.
|
|
103
105
|
shadows: _shadows.default.slice(),
|
|
104
106
|
typography: (0, _createTypography.default)(palette, typographyInput),
|
|
107
|
+
motion: (0, _createMotion.default)(motionInput),
|
|
105
108
|
transitions: (0, _createTransitions.default)(transitionsInput),
|
|
106
109
|
zIndex: {
|
|
107
110
|
..._zIndex.default
|
|
@@ -109,6 +112,8 @@ function createThemeNoVars(options = {}, ...args) {
|
|
|
109
112
|
});
|
|
110
113
|
muiTheme = (0, _deepmerge.default)(muiTheme, other);
|
|
111
114
|
muiTheme = args.reduce((acc, argument) => (0, _deepmerge.default)(acc, argument), muiTheme);
|
|
115
|
+
// `reducedMotion` is owned by `theme.motion`; remove stale values preserved by systemCreateTheme.
|
|
116
|
+
delete muiTheme.transitions.reducedMotion;
|
|
112
117
|
if (process.env.NODE_ENV !== 'production') {
|
|
113
118
|
// TODO v6: Refactor to use globalStateClassesMapping from @mui/utils once `readOnly` state class is used in Rating component.
|
|
114
119
|
const stateClasses = ['active', 'checked', 'completed', 'disabled', 'error', 'expanded', 'focused', 'focusVisible', 'required', 'selected'];
|
|
@@ -9,6 +9,7 @@ import createPalette from "./createPalette.mjs";
|
|
|
9
9
|
import createTypography from "./createTypography.mjs";
|
|
10
10
|
import shadows from "./shadows.mjs";
|
|
11
11
|
import createTransitions from "./createTransitions.mjs";
|
|
12
|
+
import createMotion from "./createMotion.mjs";
|
|
12
13
|
import zIndex from "./zIndex.mjs";
|
|
13
14
|
import { stringifyTheme } from "./stringifyTheme.mjs";
|
|
14
15
|
function coefficientToPercentage(coefficient) {
|
|
@@ -69,6 +70,7 @@ function createThemeNoVars(options = {}, ...args) {
|
|
|
69
70
|
mixins: mixinsInput = {},
|
|
70
71
|
spacing: spacingInput,
|
|
71
72
|
palette: paletteInput = {},
|
|
73
|
+
motion: motionInput = {},
|
|
72
74
|
transitions: transitionsInput = {},
|
|
73
75
|
typography: typographyInput = {},
|
|
74
76
|
shape: shapeInput,
|
|
@@ -94,6 +96,7 @@ function createThemeNoVars(options = {}, ...args) {
|
|
|
94
96
|
// Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.
|
|
95
97
|
shadows: shadows.slice(),
|
|
96
98
|
typography: createTypography(palette, typographyInput),
|
|
99
|
+
motion: createMotion(motionInput),
|
|
97
100
|
transitions: createTransitions(transitionsInput),
|
|
98
101
|
zIndex: {
|
|
99
102
|
...zIndex
|
|
@@ -101,6 +104,8 @@ function createThemeNoVars(options = {}, ...args) {
|
|
|
101
104
|
});
|
|
102
105
|
muiTheme = deepmerge(muiTheme, other);
|
|
103
106
|
muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme);
|
|
107
|
+
// `reducedMotion` is owned by `theme.motion`; remove stale values preserved by systemCreateTheme.
|
|
108
|
+
delete muiTheme.transitions.reducedMotion;
|
|
104
109
|
if (process.env.NODE_ENV !== 'production') {
|
|
105
110
|
// TODO v6: Refactor to use globalStateClassesMapping from @mui/utils once `readOnly` state class is used in Rating component.
|
|
106
111
|
const stateClasses = ['active', 'checked', 'completed', 'disabled', 'error', 'expanded', 'focused', 'focusVisible', 'required', 'selected'];
|
|
@@ -18,7 +18,11 @@ export const duration: Duration;
|
|
|
18
18
|
export interface TransitionsOptions {
|
|
19
19
|
easing?: Partial<Easing> | undefined;
|
|
20
20
|
duration?: Partial<Duration> | undefined;
|
|
21
|
-
create?: ((props
|
|
21
|
+
create?: ((props?: string | string[], options?: Partial<{
|
|
22
|
+
duration: number | string;
|
|
23
|
+
easing: string;
|
|
24
|
+
delay: number | string;
|
|
25
|
+
}>) => string) | ((props: string | string[], options?: Partial<{
|
|
22
26
|
duration: number | string;
|
|
23
27
|
easing: string;
|
|
24
28
|
delay: number | string;
|
|
@@ -31,7 +35,7 @@ export interface TransitionsOptions {
|
|
|
31
35
|
* @param props
|
|
32
36
|
* @param options
|
|
33
37
|
*/
|
|
34
|
-
export function create(props
|
|
38
|
+
export function create(props?: string | string[], options?: Partial<{
|
|
35
39
|
duration: number | string;
|
|
36
40
|
easing: string;
|
|
37
41
|
delay: number | string;
|
|
@@ -18,7 +18,11 @@ export const duration: Duration;
|
|
|
18
18
|
export interface TransitionsOptions {
|
|
19
19
|
easing?: Partial<Easing> | undefined;
|
|
20
20
|
duration?: Partial<Duration> | undefined;
|
|
21
|
-
create?: ((props
|
|
21
|
+
create?: ((props?: string | string[], options?: Partial<{
|
|
22
|
+
duration: number | string;
|
|
23
|
+
easing: string;
|
|
24
|
+
delay: number | string;
|
|
25
|
+
}>) => string) | ((props: string | string[], options?: Partial<{
|
|
22
26
|
duration: number | string;
|
|
23
27
|
easing: string;
|
|
24
28
|
delay: number | string;
|
|
@@ -31,7 +35,7 @@ export interface TransitionsOptions {
|
|
|
31
35
|
* @param props
|
|
32
36
|
* @param options
|
|
33
37
|
*/
|
|
34
|
-
export function create(props
|
|
38
|
+
export function create(props?: string | string[], options?: Partial<{
|
|
35
39
|
duration: number | string;
|
|
36
40
|
easing: string;
|
|
37
41
|
delay: number | string;
|
|
@@ -5,6 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = createTransitions;
|
|
7
7
|
exports.easing = exports.duration = void 0;
|
|
8
|
+
const DEFAULT_TRANSITION_PROPS = ['all'];
|
|
9
|
+
const EMPTY_OPTIONS = {};
|
|
10
|
+
|
|
8
11
|
// Follow https://material.google.com/motion/duration-easing.html#duration-easing-natural-easing-curves
|
|
9
12
|
// to learn the context in which each easing should be used.
|
|
10
13
|
const easing = exports.easing = {
|
|
@@ -47,15 +50,19 @@ function getAutoHeightDuration(height) {
|
|
|
47
50
|
return Math.min(Math.round((4 + 15 * constant ** 0.25 + constant / 5) * 10), 3000);
|
|
48
51
|
}
|
|
49
52
|
function createTransitions(inputTransitions) {
|
|
53
|
+
const transitions = {
|
|
54
|
+
...inputTransitions
|
|
55
|
+
};
|
|
56
|
+
delete transitions.reducedMotion;
|
|
50
57
|
const mergedEasing = {
|
|
51
58
|
...easing,
|
|
52
|
-
...
|
|
59
|
+
...transitions.easing
|
|
53
60
|
};
|
|
54
61
|
const mergedDuration = {
|
|
55
62
|
...duration,
|
|
56
|
-
...
|
|
63
|
+
...transitions.duration
|
|
57
64
|
};
|
|
58
|
-
const
|
|
65
|
+
const createTransitionValue = (props = DEFAULT_TRANSITION_PROPS, options = EMPTY_OPTIONS) => {
|
|
59
66
|
const {
|
|
60
67
|
duration: durationOption = mergedDuration.standard,
|
|
61
68
|
easing: easingOption = mergedEasing.easeInOut,
|
|
@@ -86,10 +93,11 @@ function createTransitions(inputTransitions) {
|
|
|
86
93
|
}
|
|
87
94
|
return (Array.isArray(props) ? props : [props]).map(animatedProp => `${animatedProp} ${typeof durationOption === 'string' ? durationOption : formatMs(durationOption)} ${easingOption} ${typeof delay === 'string' ? delay : formatMs(delay)}`).join(',');
|
|
88
95
|
};
|
|
96
|
+
const create = transitions.create ?? createTransitionValue;
|
|
89
97
|
return {
|
|
90
98
|
getAutoHeightDuration,
|
|
91
99
|
create,
|
|
92
|
-
...
|
|
100
|
+
...transitions,
|
|
93
101
|
easing: mergedEasing,
|
|
94
102
|
duration: mergedDuration
|
|
95
103
|
};
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
const DEFAULT_TRANSITION_PROPS = ['all'];
|
|
2
|
+
const EMPTY_OPTIONS = {};
|
|
3
|
+
|
|
1
4
|
// Follow https://material.google.com/motion/duration-easing.html#duration-easing-natural-easing-curves
|
|
2
5
|
// to learn the context in which each easing should be used.
|
|
3
6
|
export const easing = {
|
|
@@ -40,15 +43,19 @@ function getAutoHeightDuration(height) {
|
|
|
40
43
|
return Math.min(Math.round((4 + 15 * constant ** 0.25 + constant / 5) * 10), 3000);
|
|
41
44
|
}
|
|
42
45
|
export default function createTransitions(inputTransitions) {
|
|
46
|
+
const transitions = {
|
|
47
|
+
...inputTransitions
|
|
48
|
+
};
|
|
49
|
+
delete transitions.reducedMotion;
|
|
43
50
|
const mergedEasing = {
|
|
44
51
|
...easing,
|
|
45
|
-
...
|
|
52
|
+
...transitions.easing
|
|
46
53
|
};
|
|
47
54
|
const mergedDuration = {
|
|
48
55
|
...duration,
|
|
49
|
-
...
|
|
56
|
+
...transitions.duration
|
|
50
57
|
};
|
|
51
|
-
const
|
|
58
|
+
const createTransitionValue = (props = DEFAULT_TRANSITION_PROPS, options = EMPTY_OPTIONS) => {
|
|
52
59
|
const {
|
|
53
60
|
duration: durationOption = mergedDuration.standard,
|
|
54
61
|
easing: easingOption = mergedEasing.easeInOut,
|
|
@@ -79,10 +86,11 @@ export default function createTransitions(inputTransitions) {
|
|
|
79
86
|
}
|
|
80
87
|
return (Array.isArray(props) ? props : [props]).map(animatedProp => `${animatedProp} ${typeof durationOption === 'string' ? durationOption : formatMs(durationOption)} ${easingOption} ${typeof delay === 'string' ? delay : formatMs(delay)}`).join(',');
|
|
81
88
|
};
|
|
89
|
+
const create = transitions.create ?? createTransitionValue;
|
|
82
90
|
return {
|
|
83
91
|
getAutoHeightDuration,
|
|
84
92
|
create,
|
|
85
|
-
...
|
|
93
|
+
...transitions,
|
|
86
94
|
easing: mergedEasing,
|
|
87
95
|
duration: mergedDuration
|
|
88
96
|
};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { Theme } from "./createTheme.mjs";
|
|
2
|
+
export interface HighContrastTokens {
|
|
3
|
+
/**
|
|
4
|
+
* Color for disabled elements.
|
|
5
|
+
* @default 'GrayText'
|
|
6
|
+
*/
|
|
7
|
+
disabled?: string | undefined;
|
|
8
|
+
/**
|
|
9
|
+
* Color for error states.
|
|
10
|
+
* @default 'ActiveText'
|
|
11
|
+
*/
|
|
12
|
+
error?: string | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* Background color for selected items.
|
|
15
|
+
* @default 'SelectedItem'
|
|
16
|
+
*/
|
|
17
|
+
selectedBackground?: string | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Text color on selected items.
|
|
20
|
+
* @default 'SelectedItemText'
|
|
21
|
+
*/
|
|
22
|
+
selectedText?: string | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Background color for active/toggled controls.
|
|
25
|
+
* @default 'Highlight'
|
|
26
|
+
*/
|
|
27
|
+
activeBackground?: string | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Text color on active/toggled controls.
|
|
30
|
+
* @default 'HighlightText'
|
|
31
|
+
*/
|
|
32
|
+
activeText?: string | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Border color for interactive controls.
|
|
35
|
+
* @default 'ButtonBorder'
|
|
36
|
+
*/
|
|
37
|
+
buttonBorder?: string | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* Text/icon color on buttons.
|
|
40
|
+
* @default 'ButtonText'
|
|
41
|
+
*/
|
|
42
|
+
buttonText?: string | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* Background color for the page/canvas.
|
|
45
|
+
* @default 'Canvas'
|
|
46
|
+
*/
|
|
47
|
+
canvas?: string | undefined;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Enhances a theme with styles for Windows High Contrast Mode (forced-colors).
|
|
51
|
+
*
|
|
52
|
+
* Accepts a fully-created theme, merges in HCM component overrides using arrays
|
|
53
|
+
* so that Emotion emits each entry as a separate CSS rule and the browser
|
|
54
|
+
* cascade (rather than JS object merging) resolves specificity.
|
|
55
|
+
*
|
|
56
|
+
* @param themeInput - The theme to enhance.
|
|
57
|
+
* @param tokens - Override any of the default system color tokens.
|
|
58
|
+
* @returns The enhanced theme (same type as the input).
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* // Use defaults
|
|
62
|
+
* const theme = enhanceHighContrast(createTheme({ palette: { ... } }));
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* // Override specific tokens
|
|
66
|
+
* const theme = enhanceHighContrast(createTheme(), { disabled: 'ButtonText' });
|
|
67
|
+
*/
|
|
68
|
+
export default function enhanceHighContrast<T extends {
|
|
69
|
+
components?: Theme['components'] | undefined;
|
|
70
|
+
}>(themeInput: T, tokens?: HighContrastTokens): T;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { Theme } from "./createTheme.js";
|
|
2
|
+
export interface HighContrastTokens {
|
|
3
|
+
/**
|
|
4
|
+
* Color for disabled elements.
|
|
5
|
+
* @default 'GrayText'
|
|
6
|
+
*/
|
|
7
|
+
disabled?: string | undefined;
|
|
8
|
+
/**
|
|
9
|
+
* Color for error states.
|
|
10
|
+
* @default 'ActiveText'
|
|
11
|
+
*/
|
|
12
|
+
error?: string | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* Background color for selected items.
|
|
15
|
+
* @default 'SelectedItem'
|
|
16
|
+
*/
|
|
17
|
+
selectedBackground?: string | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Text color on selected items.
|
|
20
|
+
* @default 'SelectedItemText'
|
|
21
|
+
*/
|
|
22
|
+
selectedText?: string | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Background color for active/toggled controls.
|
|
25
|
+
* @default 'Highlight'
|
|
26
|
+
*/
|
|
27
|
+
activeBackground?: string | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Text color on active/toggled controls.
|
|
30
|
+
* @default 'HighlightText'
|
|
31
|
+
*/
|
|
32
|
+
activeText?: string | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Border color for interactive controls.
|
|
35
|
+
* @default 'ButtonBorder'
|
|
36
|
+
*/
|
|
37
|
+
buttonBorder?: string | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* Text/icon color on buttons.
|
|
40
|
+
* @default 'ButtonText'
|
|
41
|
+
*/
|
|
42
|
+
buttonText?: string | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* Background color for the page/canvas.
|
|
45
|
+
* @default 'Canvas'
|
|
46
|
+
*/
|
|
47
|
+
canvas?: string | undefined;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Enhances a theme with styles for Windows High Contrast Mode (forced-colors).
|
|
51
|
+
*
|
|
52
|
+
* Accepts a fully-created theme, merges in HCM component overrides using arrays
|
|
53
|
+
* so that Emotion emits each entry as a separate CSS rule and the browser
|
|
54
|
+
* cascade (rather than JS object merging) resolves specificity.
|
|
55
|
+
*
|
|
56
|
+
* @param themeInput - The theme to enhance.
|
|
57
|
+
* @param tokens - Override any of the default system color tokens.
|
|
58
|
+
* @returns The enhanced theme (same type as the input).
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* // Use defaults
|
|
62
|
+
* const theme = enhanceHighContrast(createTheme({ palette: { ... } }));
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* // Override specific tokens
|
|
66
|
+
* const theme = enhanceHighContrast(createTheme(), { disabled: 'ButtonText' });
|
|
67
|
+
*/
|
|
68
|
+
export default function enhanceHighContrast<T extends {
|
|
69
|
+
components?: Theme['components'] | undefined;
|
|
70
|
+
}>(themeInput: T, tokens?: HighContrastTokens): T;
|