@sitecore/sc-contenthub-blok 1.0.28 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/BlokTheme.js +23 -17
- package/esm/BlokTheme.js.map +1 -1
- package/node_modules/@babel/code-frame/package.json +2 -2
- package/node_modules/@babel/generator/lib/buffer.js +11 -8
- package/node_modules/@babel/generator/lib/buffer.js.map +1 -1
- package/node_modules/@babel/generator/lib/node/index.js +22 -8
- package/node_modules/@babel/generator/lib/node/index.js.map +1 -1
- package/node_modules/@babel/generator/lib/printer.js +2 -1
- package/node_modules/@babel/generator/lib/printer.js.map +1 -1
- package/node_modules/@babel/generator/lib/source-map.js +3 -1
- package/node_modules/@babel/generator/lib/source-map.js.map +1 -1
- package/node_modules/@babel/generator/package.json +6 -6
- package/node_modules/@babel/helper-globals/package.json +1 -1
- package/node_modules/@babel/helper-module-imports/package.json +4 -4
- package/node_modules/@babel/helper-string-parser/package.json +1 -1
- package/node_modules/@babel/helper-validator-identifier/package.json +1 -1
- package/node_modules/@babel/parser/lib/index.js +19 -7
- package/node_modules/@babel/parser/lib/index.js.map +1 -1
- package/node_modules/@babel/parser/package.json +7 -7
- package/node_modules/@babel/parser/typings/babel-parser.d.ts +1 -1
- package/node_modules/@babel/runtime/package.json +1 -1
- package/node_modules/@babel/template/package.json +4 -4
- package/node_modules/@babel/traverse/lib/path/family.js.map +1 -1
- package/node_modules/@babel/traverse/lib/visitors.js +1 -1
- package/node_modules/@babel/traverse/package.json +9 -9
- package/node_modules/@babel/types/lib/ast-types/generated/index.js.map +1 -1
- package/node_modules/@babel/types/lib/builders/generated/lowercase.js +2 -1
- package/node_modules/@babel/types/lib/builders/generated/lowercase.js.map +1 -1
- package/node_modules/@babel/types/lib/definitions/core.js +11 -1
- package/node_modules/@babel/types/lib/definitions/core.js.map +1 -1
- package/node_modules/@babel/types/lib/index-legacy.d.ts +4 -5
- package/node_modules/@babel/types/lib/index.d.ts +5 -6
- package/node_modules/@babel/types/lib/index.js.flow +4 -5
- package/node_modules/@babel/types/package.json +6 -6
- package/node_modules/@mui/core-downloads-tracker/LICENSE +1 -1
- package/node_modules/@mui/core-downloads-tracker/package.json +1 -1
- package/node_modules/@mui/material/Accordion/Accordion.d.mts +2 -2
- package/node_modules/@mui/material/Accordion/Accordion.d.ts +2 -2
- package/node_modules/@mui/material/Accordion/Accordion.js +3 -2
- package/node_modules/@mui/material/Accordion/Accordion.mjs +3 -2
- package/node_modules/@mui/material/AccordionSummary/AccordionSummary.js +27 -29
- package/node_modules/@mui/material/AccordionSummary/AccordionSummary.mjs +27 -29
- package/node_modules/@mui/material/Autocomplete/Autocomplete.d.mts +12 -1
- package/node_modules/@mui/material/Autocomplete/Autocomplete.d.ts +12 -1
- package/node_modules/@mui/material/Autocomplete/Autocomplete.js +48 -22
- package/node_modules/@mui/material/Autocomplete/Autocomplete.mjs +48 -22
- package/node_modules/@mui/material/Autocomplete/autocompleteClasses.d.mts +2 -0
- package/node_modules/@mui/material/Autocomplete/autocompleteClasses.d.ts +2 -0
- package/node_modules/@mui/material/Autocomplete/autocompleteClasses.js +1 -1
- package/node_modules/@mui/material/Autocomplete/autocompleteClasses.mjs +1 -1
- package/node_modules/@mui/material/Avatar/Avatar.js +2 -0
- package/node_modules/@mui/material/Avatar/Avatar.mjs +2 -0
- package/node_modules/@mui/material/Backdrop/Backdrop.d.mts +2 -2
- package/node_modules/@mui/material/Backdrop/Backdrop.d.ts +2 -2
- package/node_modules/@mui/material/Badge/Badge.js +28 -24
- package/node_modules/@mui/material/Badge/Badge.mjs +28 -24
- package/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction.js +6 -2
- package/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction.mjs +6 -2
- package/node_modules/@mui/material/Button/Button.js +11 -15
- package/node_modules/@mui/material/Button/Button.mjs +11 -15
- package/node_modules/@mui/material/ButtonBase/ButtonBase.js +1 -1
- package/node_modules/@mui/material/ButtonBase/ButtonBase.mjs +1 -1
- package/node_modules/@mui/material/ButtonBase/Ripple.js +21 -11
- package/node_modules/@mui/material/ButtonBase/Ripple.mjs +21 -11
- package/node_modules/@mui/material/ButtonBase/TouchRipple.js +252 -108
- package/node_modules/@mui/material/ButtonBase/TouchRipple.mjs +253 -109
- package/node_modules/@mui/material/ButtonGroup/ButtonGroup.js +3 -3
- package/node_modules/@mui/material/ButtonGroup/ButtonGroup.mjs +3 -3
- package/node_modules/@mui/material/CHANGELOG.md +286 -0
- package/node_modules/@mui/material/CardActionArea/CardActionArea.js +2 -1
- package/node_modules/@mui/material/CardActionArea/CardActionArea.mjs +2 -1
- package/node_modules/@mui/material/Checkbox/Checkbox.js +3 -1
- package/node_modules/@mui/material/Checkbox/Checkbox.mjs +3 -1
- package/node_modules/@mui/material/Chip/Chip.js +2 -1
- package/node_modules/@mui/material/Chip/Chip.mjs +2 -1
- package/node_modules/@mui/material/CircularProgress/CircularProgress.js +85 -55
- package/node_modules/@mui/material/CircularProgress/CircularProgress.mjs +84 -55
- package/node_modules/@mui/material/ClickAwayListener/ClickAwayListener.js +1 -1
- package/node_modules/@mui/material/ClickAwayListener/ClickAwayListener.mjs +1 -1
- package/node_modules/@mui/material/Collapse/Collapse.d.mts +15 -3
- package/node_modules/@mui/material/Collapse/Collapse.d.ts +15 -3
- package/node_modules/@mui/material/Collapse/Collapse.js +44 -31
- package/node_modules/@mui/material/Collapse/Collapse.mjs +43 -30
- package/node_modules/@mui/material/DefaultPropsProvider/DefaultPropsProvider.d.mts +1 -1
- package/node_modules/@mui/material/DefaultPropsProvider/DefaultPropsProvider.d.ts +1 -1
- package/node_modules/@mui/material/Dialog/Dialog.d.mts +2 -2
- package/node_modules/@mui/material/Dialog/Dialog.d.ts +2 -2
- package/node_modules/@mui/material/Dialog/Dialog.js +2 -0
- package/node_modules/@mui/material/Dialog/Dialog.mjs +2 -0
- package/node_modules/@mui/material/Drawer/Drawer.d.mts +2 -2
- package/node_modules/@mui/material/Drawer/Drawer.d.ts +2 -2
- package/node_modules/@mui/material/Fab/Fab.js +2 -1
- package/node_modules/@mui/material/Fab/Fab.mjs +2 -1
- package/node_modules/@mui/material/Fade/Fade.d.mts +15 -2
- package/node_modules/@mui/material/Fade/Fade.d.ts +15 -2
- package/node_modules/@mui/material/Fade/Fade.js +46 -19
- package/node_modules/@mui/material/Fade/Fade.mjs +45 -18
- package/node_modules/@mui/material/FilledInput/FilledInput.js +11 -4
- package/node_modules/@mui/material/FilledInput/FilledInput.mjs +11 -4
- package/node_modules/@mui/material/FormControlLabel/formControlLabelClasses.d.mts +2 -0
- package/node_modules/@mui/material/FormControlLabel/formControlLabelClasses.d.ts +2 -0
- package/node_modules/@mui/material/FormControlLabel/formControlLabelClasses.js +1 -1
- package/node_modules/@mui/material/FormControlLabel/formControlLabelClasses.mjs +1 -1
- package/node_modules/@mui/material/Grow/Grow.d.mts +15 -2
- package/node_modules/@mui/material/Grow/Grow.d.ts +15 -2
- package/node_modules/@mui/material/Grow/Grow.js +45 -28
- package/node_modules/@mui/material/Grow/Grow.mjs +44 -27
- package/node_modules/@mui/material/IconButton/IconButton.js +2 -1
- package/node_modules/@mui/material/IconButton/IconButton.mjs +2 -1
- package/node_modules/@mui/material/InitColorSchemeScript/InitColorSchemeScript.d.mts +6 -6
- package/node_modules/@mui/material/InitColorSchemeScript/InitColorSchemeScript.d.ts +6 -6
- package/node_modules/@mui/material/Input/Input.js +3 -2
- package/node_modules/@mui/material/Input/Input.mjs +3 -2
- package/node_modules/@mui/material/InputBase/InputBase.js +3 -1
- package/node_modules/@mui/material/InputBase/InputBase.mjs +3 -1
- package/node_modules/@mui/material/InputLabel/InputLabel.js +2 -1
- package/node_modules/@mui/material/InputLabel/InputLabel.mjs +2 -1
- package/node_modules/@mui/material/LICENSE +1 -1
- package/node_modules/@mui/material/LinearProgress/LinearProgress.js +187 -120
- package/node_modules/@mui/material/LinearProgress/LinearProgress.mjs +186 -120
- package/node_modules/@mui/material/ListItem/ListItem.d.mts +2 -1
- package/node_modules/@mui/material/ListItem/ListItem.d.ts +2 -1
- package/node_modules/@mui/material/ListItem/ListItem.js +3 -2
- package/node_modules/@mui/material/ListItem/ListItem.mjs +3 -2
- package/node_modules/@mui/material/ListItemButton/ListItemButton.d.mts +1 -1
- package/node_modules/@mui/material/ListItemButton/ListItemButton.d.ts +1 -1
- package/node_modules/@mui/material/ListItemButton/ListItemButton.js +2 -1
- package/node_modules/@mui/material/ListItemButton/ListItemButton.mjs +2 -1
- package/node_modules/@mui/material/Menu/Menu.d.mts +1 -1
- package/node_modules/@mui/material/Menu/Menu.d.ts +1 -1
- package/node_modules/@mui/material/MenuItem/MenuItem.d.mts +1 -0
- package/node_modules/@mui/material/MenuItem/MenuItem.d.ts +1 -0
- package/node_modules/@mui/material/MenuItem/MenuItem.js +7 -0
- package/node_modules/@mui/material/MenuItem/MenuItem.mjs +7 -0
- package/node_modules/@mui/material/MenuList/MenuList.js +6 -2
- package/node_modules/@mui/material/MenuList/MenuList.mjs +6 -2
- package/node_modules/@mui/material/MobileStepper/MobileStepper.js +2 -1
- package/node_modules/@mui/material/MobileStepper/MobileStepper.mjs +2 -1
- package/node_modules/@mui/material/Modal/Modal.js +2 -1
- package/node_modules/@mui/material/Modal/Modal.mjs +2 -1
- package/node_modules/@mui/material/Modal/ModalManager.js +19 -30
- package/node_modules/@mui/material/Modal/ModalManager.mjs +19 -30
- package/node_modules/@mui/material/Modal/useModal.js +7 -0
- package/node_modules/@mui/material/Modal/useModal.mjs +7 -0
- package/node_modules/@mui/material/Modal/useModal.types.d.mts +5 -0
- package/node_modules/@mui/material/Modal/useModal.types.d.ts +5 -0
- package/node_modules/@mui/material/NativeSelect/NativeSelectInput.js +32 -3
- package/node_modules/@mui/material/NativeSelect/NativeSelectInput.mjs +32 -3
- package/node_modules/@mui/material/NoSsr/NoSsr.js +1 -0
- package/node_modules/@mui/material/NoSsr/NoSsr.mjs +1 -0
- package/node_modules/@mui/material/OutlinedInput/NotchedOutline.js +4 -3
- package/node_modules/@mui/material/OutlinedInput/NotchedOutline.mjs +4 -3
- package/node_modules/@mui/material/OutlinedInput/OutlinedInput.js +7 -1
- package/node_modules/@mui/material/OutlinedInput/OutlinedInput.mjs +7 -1
- package/node_modules/@mui/material/PaginationItem/PaginationItem.js +2 -1
- package/node_modules/@mui/material/PaginationItem/PaginationItem.mjs +2 -1
- package/node_modules/@mui/material/Paper/Paper.js +2 -1
- package/node_modules/@mui/material/Paper/Paper.mjs +2 -1
- package/node_modules/@mui/material/Popover/Popover.d.mts +1 -1
- package/node_modules/@mui/material/Popover/Popover.d.ts +1 -1
- package/node_modules/@mui/material/Popper/BasePopper.js +1 -6
- package/node_modules/@mui/material/Popper/BasePopper.mjs +1 -6
- package/node_modules/@mui/material/README.md +3 -2
- package/node_modules/@mui/material/Radio/Radio.js +3 -0
- package/node_modules/@mui/material/Radio/Radio.mjs +3 -0
- package/node_modules/@mui/material/Radio/RadioButtonIcon.js +3 -2
- package/node_modules/@mui/material/Radio/RadioButtonIcon.mjs +3 -2
- package/node_modules/@mui/material/Rating/Rating.js +4 -3
- package/node_modules/@mui/material/Rating/Rating.mjs +4 -3
- package/node_modules/@mui/material/Select/SelectInput.js +118 -25
- package/node_modules/@mui/material/Select/SelectInput.mjs +118 -25
- package/node_modules/@mui/material/Select/utils/SelectFocusSourceContext.d.mts +2 -2
- package/node_modules/@mui/material/Select/utils/SelectFocusSourceContext.d.ts +2 -2
- package/node_modules/@mui/material/Select/utils/closedTypeahead.js +73 -0
- package/node_modules/@mui/material/Select/utils/closedTypeahead.mjs +63 -0
- package/node_modules/@mui/material/Skeleton/Skeleton.js +22 -2
- package/node_modules/@mui/material/Skeleton/Skeleton.mjs +22 -2
- package/node_modules/@mui/material/Slide/Slide.d.mts +15 -2
- package/node_modules/@mui/material/Slide/Slide.d.ts +15 -2
- package/node_modules/@mui/material/Slide/Slide.js +53 -25
- package/node_modules/@mui/material/Slide/Slide.mjs +52 -24
- package/node_modules/@mui/material/Slider/Slider.js +4 -3
- package/node_modules/@mui/material/Slider/Slider.mjs +4 -3
- package/node_modules/@mui/material/Slider/SliderValueLabel.d.mts +2 -2
- package/node_modules/@mui/material/Slider/SliderValueLabel.d.ts +2 -2
- package/node_modules/@mui/material/Slider/useSlider.js +1 -1
- package/node_modules/@mui/material/Slider/useSlider.mjs +1 -1
- package/node_modules/@mui/material/Snackbar/Snackbar.d.mts +2 -2
- package/node_modules/@mui/material/Snackbar/Snackbar.d.ts +2 -2
- package/node_modules/@mui/material/SpeedDial/SpeedDial.d.mts +1 -1
- package/node_modules/@mui/material/SpeedDial/SpeedDial.d.ts +1 -1
- package/node_modules/@mui/material/SpeedDial/SpeedDial.js +6 -2
- package/node_modules/@mui/material/SpeedDial/SpeedDial.mjs +6 -2
- package/node_modules/@mui/material/SpeedDialAction/SpeedDialAction.js +11 -2
- package/node_modules/@mui/material/SpeedDialAction/SpeedDialAction.mjs +12 -3
- package/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon.js +40 -37
- package/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon.mjs +40 -37
- package/node_modules/@mui/material/Stack/Stack.d.mts +1 -1
- package/node_modules/@mui/material/Stack/Stack.d.ts +1 -1
- package/node_modules/@mui/material/Stack/Stack.js +1 -1
- package/node_modules/@mui/material/Stack/Stack.mjs +1 -1
- package/node_modules/@mui/material/Step/Step.js +47 -15
- package/node_modules/@mui/material/Step/Step.mjs +47 -15
- package/node_modules/@mui/material/Step/StepContext.d.mts +1 -1
- package/node_modules/@mui/material/Step/StepContext.d.ts +1 -1
- package/node_modules/@mui/material/StepButton/StepButton.js +9 -3
- package/node_modules/@mui/material/StepButton/StepButton.mjs +9 -3
- package/node_modules/@mui/material/StepConnector/StepConnector.js +10 -0
- package/node_modules/@mui/material/StepConnector/StepConnector.mjs +10 -0
- package/node_modules/@mui/material/StepContent/StepContent.d.mts +2 -2
- package/node_modules/@mui/material/StepContent/StepContent.d.ts +2 -2
- package/node_modules/@mui/material/StepContent/StepContent.js +26 -2
- package/node_modules/@mui/material/StepContent/StepContent.mjs +26 -2
- package/node_modules/@mui/material/StepIcon/StepIcon.js +2 -1
- package/node_modules/@mui/material/StepIcon/StepIcon.mjs +2 -1
- package/node_modules/@mui/material/StepLabel/StepLabel.js +52 -7
- package/node_modules/@mui/material/StepLabel/StepLabel.mjs +52 -7
- package/node_modules/@mui/material/Stepper/Stepper.d.mts +2 -0
- package/node_modules/@mui/material/Stepper/Stepper.d.ts +2 -0
- package/node_modules/@mui/material/Stepper/Stepper.js +20 -2
- package/node_modules/@mui/material/Stepper/Stepper.mjs +20 -2
- package/node_modules/@mui/material/Stepper/StepperContext.d.mts +1 -1
- package/node_modules/@mui/material/Stepper/StepperContext.d.ts +1 -1
- package/node_modules/@mui/material/SvgIcon/SvgIcon.js +2 -1
- package/node_modules/@mui/material/SvgIcon/SvgIcon.mjs +2 -1
- package/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer.js +14 -3
- package/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer.mjs +14 -3
- package/node_modules/@mui/material/Switch/Switch.js +3 -2
- package/node_modules/@mui/material/Switch/Switch.mjs +3 -2
- package/node_modules/@mui/material/TablePagination/TablePagination.js +10 -3
- package/node_modules/@mui/material/TablePagination/TablePagination.mjs +9 -2
- package/node_modules/@mui/material/TableSortLabel/TableSortLabel.js +2 -1
- package/node_modules/@mui/material/TableSortLabel/TableSortLabel.mjs +2 -1
- package/node_modules/@mui/material/Tabs/Tabs.js +15 -3
- package/node_modules/@mui/material/Tabs/Tabs.mjs +15 -3
- package/node_modules/@mui/material/ToggleButton/RovingToggleButton.d.mts +13 -0
- package/node_modules/@mui/material/ToggleButton/RovingToggleButton.d.ts +13 -0
- package/node_modules/@mui/material/ToggleButton/RovingToggleButton.js +37 -0
- package/node_modules/@mui/material/ToggleButton/RovingToggleButton.mjs +31 -0
- package/node_modules/@mui/material/ToggleButton/ToggleButton.js +14 -2
- package/node_modules/@mui/material/ToggleButton/ToggleButton.mjs +14 -2
- package/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroup.js +33 -13
- package/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroup.mjs +33 -13
- package/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroupContext.d.mts +1 -0
- package/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroupContext.d.ts +1 -0
- package/node_modules/@mui/material/Tooltip/Tooltip.d.mts +2 -2
- package/node_modules/@mui/material/Tooltip/Tooltip.d.ts +2 -2
- package/node_modules/@mui/material/Tooltip/Tooltip.js +5 -2
- package/node_modules/@mui/material/Tooltip/Tooltip.mjs +5 -2
- package/node_modules/@mui/material/Unstable_TrapFocus/FocusTrap.js +42 -8
- package/node_modules/@mui/material/Unstable_TrapFocus/FocusTrap.mjs +42 -8
- package/node_modules/@mui/material/Zoom/Zoom.d.mts +15 -2
- package/node_modules/@mui/material/Zoom/Zoom.d.ts +15 -2
- package/node_modules/@mui/material/Zoom/Zoom.js +43 -16
- package/node_modules/@mui/material/Zoom/Zoom.mjs +42 -15
- package/node_modules/@mui/material/index.js +1 -1
- package/node_modules/@mui/material/index.mjs +1 -1
- package/node_modules/@mui/material/internal/SwitchBase.js +1 -1
- package/node_modules/@mui/material/internal/SwitchBase.mjs +1 -1
- package/node_modules/@mui/material/internal/Transition.d.mts +34 -0
- package/node_modules/@mui/material/internal/Transition.d.ts +34 -0
- package/node_modules/@mui/material/internal/Transition.js +463 -0
- package/node_modules/@mui/material/internal/Transition.mjs +455 -0
- package/node_modules/@mui/material/internal/react-transition-group.d.mts +16 -0
- package/node_modules/@mui/material/internal/react-transition-group.d.ts +16 -0
- package/node_modules/@mui/material/locale/zhCN.js +21 -0
- package/node_modules/@mui/material/locale/zhCN.mjs +21 -0
- package/node_modules/@mui/material/package.json +11 -8
- package/node_modules/@mui/material/styles/ThemeProvider.d.mts +1 -1
- package/node_modules/@mui/material/styles/ThemeProvider.d.ts +1 -1
- package/node_modules/@mui/material/styles/ThemeProviderWithVars.d.mts +8 -8
- package/node_modules/@mui/material/styles/ThemeProviderWithVars.d.ts +8 -8
- package/node_modules/@mui/material/styles/createGetSelector.d.mts +5 -5
- package/node_modules/@mui/material/styles/createGetSelector.d.ts +5 -5
- package/node_modules/@mui/material/styles/createMotion.d.mts +8 -0
- package/node_modules/@mui/material/styles/createMotion.d.ts +8 -0
- package/node_modules/@mui/material/styles/createMotion.js +13 -0
- package/node_modules/@mui/material/styles/createMotion.mjs +7 -0
- package/node_modules/@mui/material/styles/createThemeFoundation.d.mts +2 -0
- package/node_modules/@mui/material/styles/createThemeFoundation.d.ts +2 -0
- package/node_modules/@mui/material/styles/createThemeNoVars.d.mts +3 -0
- package/node_modules/@mui/material/styles/createThemeNoVars.d.ts +3 -0
- package/node_modules/@mui/material/styles/createThemeNoVars.js +5 -0
- package/node_modules/@mui/material/styles/createThemeNoVars.mjs +5 -0
- package/node_modules/@mui/material/styles/createTransitions.d.mts +6 -2
- package/node_modules/@mui/material/styles/createTransitions.d.ts +6 -2
- package/node_modules/@mui/material/styles/createTransitions.js +12 -4
- package/node_modules/@mui/material/styles/createTransitions.mjs +12 -4
- package/node_modules/@mui/material/styles/enhanceHighContrast.d.mts +70 -0
- package/node_modules/@mui/material/styles/enhanceHighContrast.d.ts +70 -0
- package/node_modules/@mui/material/styles/enhanceHighContrast.js +502 -0
- package/node_modules/@mui/material/styles/enhanceHighContrast.mjs +495 -0
- package/node_modules/@mui/material/styles/identifier.d.mts +1 -1
- package/node_modules/@mui/material/styles/identifier.d.ts +1 -1
- package/node_modules/@mui/material/styles/index.d.mts +2 -0
- package/node_modules/@mui/material/styles/index.d.ts +2 -0
- package/node_modules/@mui/material/styles/index.js +8 -0
- package/node_modules/@mui/material/styles/index.mjs +1 -0
- package/node_modules/@mui/material/styles/reducedMotion.d.mts +7 -0
- package/node_modules/@mui/material/styles/reducedMotion.d.ts +7 -0
- package/node_modules/@mui/material/styles/reducedMotion.js +21 -0
- package/node_modules/@mui/material/styles/reducedMotion.mjs +14 -0
- package/node_modules/@mui/material/styles/shouldSkipGeneratingVar.js +1 -1
- package/node_modules/@mui/material/styles/shouldSkipGeneratingVar.mjs +1 -1
- package/node_modules/@mui/material/styles/stringifyTheme.js +1 -0
- package/node_modules/@mui/material/styles/stringifyTheme.mjs +1 -0
- package/node_modules/@mui/material/transitions/index.d.mts +1 -1
- package/node_modules/@mui/material/transitions/index.d.ts +1 -1
- package/node_modules/@mui/material/transitions/index.js +0 -11
- package/node_modules/@mui/material/transitions/index.mjs +1 -1
- package/node_modules/@mui/material/transitions/transition.d.mts +1 -12
- package/node_modules/@mui/material/transitions/transition.d.ts +1 -12
- package/node_modules/@mui/material/transitions/types.d.mts +73 -0
- package/node_modules/@mui/material/transitions/types.d.ts +73 -0
- package/node_modules/@mui/material/transitions/useReducedMotion.d.mts +14 -0
- package/node_modules/@mui/material/transitions/useReducedMotion.d.ts +14 -0
- package/node_modules/@mui/material/transitions/useReducedMotion.js +117 -0
- package/node_modules/@mui/material/transitions/useReducedMotion.mjs +110 -0
- package/node_modules/@mui/material/transitions/utils.d.mts +34 -2
- package/node_modules/@mui/material/transitions/utils.d.ts +34 -2
- package/node_modules/@mui/material/transitions/utils.js +33 -4
- package/node_modules/@mui/material/transitions/utils.mjs +31 -4
- package/node_modules/@mui/material/useAutocomplete/useAutocomplete.d.mts +8 -1
- package/node_modules/@mui/material/useAutocomplete/useAutocomplete.d.ts +8 -1
- package/node_modules/@mui/material/useAutocomplete/useAutocomplete.js +76 -13
- package/node_modules/@mui/material/useAutocomplete/useAutocomplete.mjs +76 -13
- package/node_modules/@mui/material/useScrollTrigger/useScrollTrigger.js +2 -1
- package/node_modules/@mui/material/useScrollTrigger/useScrollTrigger.mjs +2 -1
- package/node_modules/@mui/material/utils/memoTheme.d.mts +1 -1
- package/node_modules/@mui/material/utils/memoTheme.d.ts +1 -1
- package/node_modules/@mui/material/utils/types.d.mts +1 -1
- package/node_modules/@mui/material/utils/types.d.ts +1 -1
- package/node_modules/@mui/material/utils/useSlot.d.mts +1 -1
- package/node_modules/@mui/material/utils/useSlot.d.ts +1 -1
- package/node_modules/@mui/material/version/index.js +2 -2
- package/node_modules/@mui/material/version/index.mjs +2 -2
- package/node_modules/@mui/material/zero-styled/index.d.mts +1 -1
- package/node_modules/@mui/material/zero-styled/index.d.ts +1 -1
- package/node_modules/@mui/private-theming/CHANGELOG.md +263 -0
- package/node_modules/@mui/private-theming/LICENSE +1 -1
- package/node_modules/@mui/private-theming/ThemeProvider/ThemeProvider.d.mts +9 -2
- package/node_modules/@mui/private-theming/ThemeProvider/ThemeProvider.d.ts +9 -2
- package/node_modules/@mui/private-theming/ThemeProvider/ThemeProvider.js +2 -2
- package/node_modules/@mui/private-theming/ThemeProvider/ThemeProvider.mjs +3 -4
- package/node_modules/@mui/private-theming/ThemeProvider/index.d.mts +1 -1
- package/node_modules/@mui/private-theming/ThemeProvider/index.d.ts +1 -1
- package/node_modules/@mui/private-theming/ThemeProvider/index.mjs +1 -0
- package/node_modules/@mui/private-theming/ThemeProvider/nested.d.mts +2 -0
- package/node_modules/@mui/private-theming/ThemeProvider/nested.d.ts +2 -0
- package/node_modules/@mui/private-theming/index.d.mts +1 -2
- package/node_modules/@mui/private-theming/index.d.ts +1 -2
- package/node_modules/@mui/private-theming/index.js +1 -1
- package/node_modules/@mui/private-theming/index.mjs +1 -1
- package/node_modules/@mui/private-theming/package.json +3 -3
- package/node_modules/@mui/private-theming/useTheme/ThemeContext.d.mts +3 -0
- package/node_modules/@mui/private-theming/useTheme/ThemeContext.d.ts +3 -0
- package/node_modules/@mui/private-theming/useTheme/index.d.mts +1 -2
- package/node_modules/@mui/private-theming/useTheme/index.d.ts +1 -2
- package/node_modules/@mui/private-theming/useTheme/useTheme.d.mts +1 -1
- package/node_modules/@mui/private-theming/useTheme/useTheme.d.ts +1 -1
- package/node_modules/@mui/styled-engine/CHANGELOG.md +395 -1245
- package/node_modules/@mui/styled-engine/GlobalStyles/GlobalStyles.d.mts +2 -2
- package/node_modules/@mui/styled-engine/GlobalStyles/GlobalStyles.d.ts +2 -2
- package/node_modules/@mui/styled-engine/GlobalStyles/GlobalStyles.js +1 -1
- package/node_modules/@mui/styled-engine/GlobalStyles/GlobalStyles.mjs +1 -1
- package/node_modules/@mui/styled-engine/GlobalStyles/index.d.mts +1 -1
- package/node_modules/@mui/styled-engine/GlobalStyles/index.d.ts +1 -1
- package/node_modules/@mui/styled-engine/LICENSE +1 -1
- package/node_modules/@mui/styled-engine/StyledEngineProvider/StyledEngineProvider.js +10 -2
- package/node_modules/@mui/styled-engine/StyledEngineProvider/StyledEngineProvider.mjs +11 -4
- package/node_modules/@mui/styled-engine/StyledEngineProvider/index.d.mts +1 -1
- package/node_modules/@mui/styled-engine/StyledEngineProvider/index.d.ts +1 -1
- package/node_modules/@mui/styled-engine/index.d.mts +13 -28
- package/node_modules/@mui/styled-engine/index.d.ts +13 -28
- package/node_modules/@mui/styled-engine/index.js +28 -4
- package/node_modules/@mui/styled-engine/index.mjs +30 -3
- package/node_modules/@mui/styled-engine/package.json +2 -2
- package/node_modules/@mui/system/Box/Box.d.mts +15 -19
- package/node_modules/@mui/system/Box/Box.d.ts +15 -19
- package/node_modules/@mui/system/Box/Box.js +16 -1
- package/node_modules/@mui/system/Box/Box.mjs +17 -1
- package/node_modules/@mui/system/Box/index.js +12 -2
- package/node_modules/@mui/system/Box/index.mjs +1 -0
- package/node_modules/@mui/system/CHANGELOG.md +263 -0
- package/node_modules/@mui/system/Container/index.d.mts +1 -1
- package/node_modules/@mui/system/Container/index.d.ts +1 -1
- package/node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.d.mts +1 -1
- package/node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.d.ts +1 -1
- package/node_modules/@mui/system/GlobalStyles/GlobalStyles.d.mts +1 -1
- package/node_modules/@mui/system/GlobalStyles/GlobalStyles.d.ts +1 -1
- package/node_modules/@mui/system/Grid/Grid.js +0 -1
- package/node_modules/@mui/system/Grid/Grid.mjs +0 -1
- package/node_modules/@mui/system/Grid/GridProps.d.mts +0 -1
- package/node_modules/@mui/system/Grid/GridProps.d.ts +0 -1
- package/node_modules/@mui/system/Grid/gridGenerator.d.mts +2 -2
- package/node_modules/@mui/system/Grid/gridGenerator.d.ts +2 -2
- package/node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.d.mts +3 -1
- package/node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.d.ts +3 -1
- package/node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.js +34 -1
- package/node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.mjs +33 -1
- package/node_modules/@mui/system/LICENSE +1 -1
- package/node_modules/@mui/system/Stack/Stack.js +1 -1
- package/node_modules/@mui/system/Stack/Stack.mjs +1 -1
- package/node_modules/@mui/system/Stack/StackProps.d.mts +1 -1
- package/node_modules/@mui/system/Stack/StackProps.d.ts +1 -1
- package/node_modules/@mui/system/ThemeProvider/ThemeProvider.d.mts +9 -6
- package/node_modules/@mui/system/ThemeProvider/ThemeProvider.d.ts +9 -6
- package/node_modules/@mui/system/ThemeProvider/ThemeProvider.js +3 -2
- package/node_modules/@mui/system/ThemeProvider/ThemeProvider.mjs +3 -2
- package/node_modules/@mui/system/ThemeProvider/index.d.mts +1 -1
- package/node_modules/@mui/system/ThemeProvider/index.d.ts +1 -1
- package/node_modules/@mui/system/ThemeProvider/useLayerOrder.d.mts +1 -1
- package/node_modules/@mui/system/ThemeProvider/useLayerOrder.d.ts +1 -1
- package/node_modules/@mui/system/borders/borders.d.mts +14 -12
- package/node_modules/@mui/system/borders/borders.d.ts +14 -12
- package/node_modules/@mui/system/borders/borders.js +2 -4
- package/node_modules/@mui/system/borders/borders.mjs +3 -4
- package/node_modules/@mui/system/breakpoints/breakpoints.d.mts +13 -16
- package/node_modules/@mui/system/breakpoints/breakpoints.d.ts +13 -16
- package/node_modules/@mui/system/breakpoints/breakpoints.js +17 -16
- package/node_modules/@mui/system/breakpoints/breakpoints.mjs +17 -16
- package/node_modules/@mui/system/compose/compose.d.mts +3 -10
- package/node_modules/@mui/system/compose/compose.d.ts +3 -10
- package/node_modules/@mui/system/compose/compose.js +0 -2
- package/node_modules/@mui/system/compose/compose.mjs +0 -2
- package/node_modules/@mui/system/createBox/createBox.d.mts +4 -4
- package/node_modules/@mui/system/createBox/createBox.d.ts +4 -4
- package/node_modules/@mui/system/createBreakpoints/createBreakpoints.d.mts +3 -54
- package/node_modules/@mui/system/createBreakpoints/createBreakpoints.d.ts +3 -54
- package/node_modules/@mui/system/createBreakpoints/createBreakpoints.js +6 -8
- package/node_modules/@mui/system/createBreakpoints/createBreakpoints.mjs +6 -8
- package/node_modules/@mui/system/createBreakpoints/index.d.mts +0 -1
- package/node_modules/@mui/system/createBreakpoints/index.d.ts +0 -1
- package/node_modules/@mui/system/createTheme/createSpacing.d.mts +1 -1
- package/node_modules/@mui/system/createTheme/createSpacing.d.ts +1 -1
- package/node_modules/@mui/system/createTheme/shape.d.mts +2 -2
- package/node_modules/@mui/system/createTheme/shape.d.ts +2 -2
- package/node_modules/@mui/system/cssGrid/cssGrid.d.mts +13 -13
- package/node_modules/@mui/system/cssGrid/cssGrid.d.ts +13 -13
- package/node_modules/@mui/system/cssGrid/cssGrid.js +0 -8
- package/node_modules/@mui/system/cssGrid/cssGrid.mjs +0 -9
- package/node_modules/@mui/system/cssVars/createCssVarsProvider.js +2 -2
- package/node_modules/@mui/system/cssVars/createCssVarsProvider.mjs +2 -2
- package/node_modules/@mui/system/cssVars/cssVarsParser.js +10 -2
- package/node_modules/@mui/system/cssVars/cssVarsParser.mjs +10 -2
- package/node_modules/@mui/system/cssVars/useCurrentColorScheme.js +1 -0
- package/node_modules/@mui/system/cssVars/useCurrentColorScheme.mjs +1 -0
- package/node_modules/@mui/system/display/display.d.mts +49 -1
- package/node_modules/@mui/system/display/display.d.ts +49 -1
- package/node_modules/@mui/system/display/display.js +2 -1
- package/node_modules/@mui/system/display/display.mjs +2 -1
- package/node_modules/@mui/system/flexbox/flexbox.d.mts +14 -14
- package/node_modules/@mui/system/flexbox/flexbox.d.ts +14 -14
- package/node_modules/@mui/system/getThemeValue/getThemeValue.d.mts +2 -1
- package/node_modules/@mui/system/getThemeValue/getThemeValue.d.ts +2 -1
- package/node_modules/@mui/system/getThemeValue/getThemeValue.js +6 -2
- package/node_modules/@mui/system/getThemeValue/getThemeValue.mjs +7 -3
- package/node_modules/@mui/system/index.js +1 -1
- package/node_modules/@mui/system/index.mjs +1 -1
- package/node_modules/@mui/system/memoTheme.d.mts +1 -1
- package/node_modules/@mui/system/memoTheme.d.ts +1 -1
- package/node_modules/@mui/system/memoize/memoize.d.mts +1 -1
- package/node_modules/@mui/system/memoize/memoize.d.ts +1 -1
- package/node_modules/@mui/system/package.json +62 -62
- package/node_modules/@mui/system/palette/palette.d.mts +4 -3
- package/node_modules/@mui/system/palette/palette.d.ts +4 -3
- package/node_modules/@mui/system/palette/palette.js +1 -0
- package/node_modules/@mui/system/palette/palette.mjs +2 -0
- package/node_modules/@mui/system/positions/positions.d.mts +49 -1
- package/node_modules/@mui/system/positions/positions.d.ts +49 -1
- package/node_modules/@mui/system/positions/positions.js +2 -1
- package/node_modules/@mui/system/positions/positions.mjs +2 -1
- package/node_modules/@mui/system/propsToClassKey/propsToClassKey.d.mts +5 -0
- package/node_modules/@mui/system/propsToClassKey/propsToClassKey.d.ts +5 -0
- package/node_modules/@mui/system/propsToClassKey/propsToClassKey.js +1 -1
- package/node_modules/@mui/system/propsToClassKey/propsToClassKey.mjs +1 -1
- package/node_modules/@mui/system/shadows/shadows.d.mts +4 -4
- package/node_modules/@mui/system/shadows/shadows.d.ts +4 -4
- package/node_modules/@mui/system/sizing/sizing.d.mts +10 -10
- package/node_modules/@mui/system/sizing/sizing.d.ts +10 -10
- package/node_modules/@mui/system/sizing/sizing.js +7 -2
- package/node_modules/@mui/system/sizing/sizing.mjs +5 -1
- package/node_modules/@mui/system/spacing/spacing.d.mts +10 -14
- package/node_modules/@mui/system/spacing/spacing.d.ts +10 -14
- package/node_modules/@mui/system/spacing/spacing.js +17 -13
- package/node_modules/@mui/system/spacing/spacing.mjs +16 -9
- package/node_modules/@mui/system/styleFunctionSx/defaultSxConfig.d.mts +1 -1
- package/node_modules/@mui/system/styleFunctionSx/defaultSxConfig.d.ts +1 -1
- package/node_modules/@mui/system/styleFunctionSx/extendSxProp.d.mts +4 -2
- package/node_modules/@mui/system/styleFunctionSx/extendSxProp.d.ts +4 -2
- package/node_modules/@mui/system/styled/styled.d.mts +1 -1
- package/node_modules/@mui/system/styled/styled.d.ts +1 -1
- package/node_modules/@mui/system/typography/typography.d.mts +10 -10
- package/node_modules/@mui/system/typography/typography.d.ts +10 -10
- package/node_modules/@mui/system/useTheme/useTheme.d.mts +4 -2
- package/node_modules/@mui/system/useTheme/useTheme.d.ts +4 -2
- package/node_modules/@mui/system/useThemeProps/getThemeProps.d.mts +2 -2
- package/node_modules/@mui/system/useThemeProps/getThemeProps.d.ts +2 -2
- package/node_modules/@mui/system/useThemeProps/index.d.mts +1 -1
- package/node_modules/@mui/system/useThemeProps/index.d.ts +1 -1
- package/node_modules/@mui/system/useThemeProps/useThemeProps.js +7 -6
- package/node_modules/@mui/system/useThemeProps/useThemeProps.mjs +7 -6
- package/node_modules/@mui/system/useThemeWithoutDefault/useThemeWithoutDefault.d.mts +2 -1
- package/node_modules/@mui/system/useThemeWithoutDefault/useThemeWithoutDefault.d.ts +2 -1
- package/node_modules/@mui/system/useThemeWithoutDefault/useThemeWithoutDefault.js +2 -2
- package/node_modules/@mui/system/useThemeWithoutDefault/useThemeWithoutDefault.mjs +2 -2
- package/node_modules/@mui/system/version/index.js +3 -3
- package/node_modules/@mui/system/version/index.mjs +3 -3
- package/node_modules/@mui/types/CHANGELOG.md +395 -1245
- package/node_modules/@mui/types/LICENSE +1 -1
- package/node_modules/@mui/types/index.d.mts +1 -1
- package/node_modules/@mui/types/index.d.ts +1 -1
- package/node_modules/@mui/types/index.js +1 -1
- package/node_modules/@mui/types/index.mjs +1 -1
- package/node_modules/@mui/types/package.json +2 -2
- package/node_modules/@mui/utils/CHANGELOG.md +263 -0
- package/node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.d.mts +2 -1
- package/node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.d.ts +2 -1
- package/node_modules/@mui/utils/LICENSE +1 -1
- package/node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js +1 -1
- package/node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.mjs +1 -1
- package/node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js +1 -1
- package/node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.mjs +1 -1
- package/node_modules/@mui/utils/fastDeepAssign/fastDeepAssign.js +6 -1
- package/node_modules/@mui/utils/fastDeepAssign/fastDeepAssign.mjs +6 -1
- package/node_modules/@mui/utils/getDisplayName/getDisplayName.d.mts +1 -1
- package/node_modules/@mui/utils/getDisplayName/getDisplayName.d.ts +1 -1
- package/node_modules/@mui/utils/getDisplayName/getDisplayName.js +1 -1
- package/node_modules/@mui/utils/getDisplayName/getDisplayName.mjs +1 -1
- package/node_modules/@mui/utils/index.d.mts +1 -0
- package/node_modules/@mui/utils/index.d.ts +1 -0
- package/node_modules/@mui/utils/index.js +9 -1
- package/node_modules/@mui/utils/index.mjs +2 -1
- package/node_modules/@mui/utils/isHostComponent/isHostComponent.d.mts +1 -1
- package/node_modules/@mui/utils/isHostComponent/isHostComponent.d.ts +1 -1
- package/node_modules/@mui/utils/isMuiElement/isMuiElement.js +1 -1
- package/node_modules/@mui/utils/isMuiElement/isMuiElement.mjs +1 -1
- package/node_modules/@mui/utils/package.json +18 -4
- package/node_modules/@mui/utils/types/DataAttributes.d.mts +45 -0
- package/node_modules/@mui/utils/types/DataAttributes.d.ts +45 -0
- package/node_modules/@mui/utils/types/DataAttributes.js +5 -0
- package/node_modules/@mui/utils/types/DataAttributes.mjs +1 -0
- package/node_modules/@mui/utils/types/index.d.mts +4 -2
- package/node_modules/@mui/utils/types/index.d.ts +4 -2
- package/node_modules/@mui/utils/useEventCallback/useEventCallback.d.mts +1 -1
- package/node_modules/@mui/utils/useEventCallback/useEventCallback.d.ts +1 -1
- package/node_modules/@mui/utils/useEventCallback/useEventCallback.js +1 -1
- package/node_modules/@mui/utils/useEventCallback/useEventCallback.mjs +1 -1
- package/node_modules/@mui/utils/useForkRef/useForkRef.js +2 -2
- package/node_modules/@mui/utils/useForkRef/useForkRef.mjs +2 -2
- package/node_modules/@mui/utils/useId/useId.js +1 -0
- package/node_modules/@mui/utils/useId/useId.mjs +1 -0
- package/node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js +2 -2
- package/node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.mjs +2 -2
- package/node_modules/@mui/utils/useRovingTabIndex/useRovingTabIndex.d.mts +1 -1
- package/node_modules/@mui/utils/useRovingTabIndex/useRovingTabIndex.d.ts +1 -1
- package/node_modules/@mui/utils/useRovingTabIndex/useRovingTabIndex.js +7 -5
- package/node_modules/@mui/utils/useRovingTabIndex/useRovingTabIndex.mjs +7 -5
- package/node_modules/@mui/utils/useValueAsRef/index.d.mts +1 -0
- package/node_modules/@mui/utils/useValueAsRef/index.d.ts +1 -0
- package/node_modules/@mui/utils/useValueAsRef/index.js +13 -0
- package/node_modules/@mui/utils/useValueAsRef/index.mjs +1 -0
- package/node_modules/@mui/utils/useValueAsRef/useValueAsRef.d.mts +14 -0
- package/node_modules/@mui/utils/useValueAsRef/useValueAsRef.d.ts +14 -0
- package/node_modules/@mui/utils/useValueAsRef/useValueAsRef.js +35 -0
- package/node_modules/@mui/utils/useValueAsRef/useValueAsRef.mjs +29 -0
- package/node_modules/react-is/package.json +3 -3
- package/package.json +3 -3
- /package/node_modules/@mui/material/transitions/{transition.js → types.js} +0 -0
- /package/node_modules/@mui/material/transitions/{transition.mjs → types.mjs} +0 -0
|
@@ -1,68 +1,17 @@
|
|
|
1
|
-
import { OverridableStringUnion } from '@mui/types';
|
|
1
|
+
import type { OverridableStringUnion } from '@mui/types';
|
|
2
2
|
export interface BreakpointOverrides {}
|
|
3
3
|
export type Breakpoint = OverridableStringUnion<'xs' | 'sm' | 'md' | 'lg' | 'xl', BreakpointOverrides>;
|
|
4
|
-
export const
|
|
5
|
-
|
|
6
|
-
// Keep in sync with docs/src/pages/customization/breakpoints/breakpoints.md
|
|
7
|
-
// #host-reference
|
|
4
|
+
export declare const breakpointKeys: Breakpoint[];
|
|
8
5
|
export interface Breakpoints {
|
|
9
6
|
keys: Breakpoint[];
|
|
10
|
-
/**
|
|
11
|
-
* Each breakpoint (a key) matches with a fixed screen width (a value).
|
|
12
|
-
* @default {
|
|
13
|
-
* // extra-small
|
|
14
|
-
* xs: 0,
|
|
15
|
-
* // small
|
|
16
|
-
* sm: 600,
|
|
17
|
-
* // medium
|
|
18
|
-
* md: 900,
|
|
19
|
-
* // large
|
|
20
|
-
* lg: 1200,
|
|
21
|
-
* // extra-large
|
|
22
|
-
* xl: 1536,
|
|
23
|
-
* }
|
|
24
|
-
*/
|
|
25
7
|
values: { [key in Breakpoint]: number };
|
|
26
|
-
/**
|
|
27
|
-
* @param key - A breakpoint key (`xs`, `sm`, etc.) or a screen width number in px.
|
|
28
|
-
* @returns A media query string ready to be used with most styling solutions, which matches screen widths greater than the screen size given by the breakpoint key (inclusive).
|
|
29
|
-
* @see [API documentation](https://mui.com/material-ui/customization/breakpoints/#theme-breakpoints-up-key-media-query)
|
|
30
|
-
*/
|
|
31
8
|
up: (key: Breakpoint | number) => string;
|
|
32
|
-
/**
|
|
33
|
-
* @param key - A breakpoint key (`xs`, `sm`, etc.) or a screen width number in px.
|
|
34
|
-
* @returns A media query string ready to be used with most styling solutions, which matches screen widths less than the screen size given by the breakpoint key (exclusive).
|
|
35
|
-
* @see [API documentation](https://mui.com/material-ui/customization/breakpoints/#theme-breakpoints-down-key-media-query)
|
|
36
|
-
*/
|
|
37
9
|
down: (key: Breakpoint | number) => string;
|
|
38
|
-
/**
|
|
39
|
-
* @param start - A breakpoint key (`xs`, `sm`, etc.) or a screen width number in px.
|
|
40
|
-
* @param end - A breakpoint key (`xs`, `sm`, etc.) or a screen width number in px.
|
|
41
|
-
* @returns A media query string ready to be used with most styling solutions, which matches screen widths greater than
|
|
42
|
-
* the screen size given by the breakpoint key in the first argument (inclusive) and less than the screen size given by the breakpoint key in the second argument (exclusive).
|
|
43
|
-
* @see [API documentation](https://mui.com/material-ui/customization/breakpoints/#theme-breakpoints-between-start-end-media-query)
|
|
44
|
-
*/
|
|
45
10
|
between: (start: Breakpoint | number, end: Breakpoint | number) => string;
|
|
46
|
-
/**
|
|
47
|
-
* @param key - A breakpoint key (`xs`, `sm`, etc.) or a screen width number in px.
|
|
48
|
-
* @returns A media query string ready to be used with most styling solutions, which matches screen widths starting from
|
|
49
|
-
* the screen size given by the breakpoint key (inclusive) and stopping at the screen size given by the next breakpoint key (exclusive).
|
|
50
|
-
* @see [API documentation](https://mui.com/material-ui/customization/breakpoints/#theme-breakpoints-only-key-media-query)
|
|
51
|
-
*/
|
|
52
11
|
only: (key: Breakpoint) => string;
|
|
53
|
-
/**
|
|
54
|
-
* @param key - A breakpoint key (`xs`, `sm`, etc.).
|
|
55
|
-
* @returns A media query string ready to be used with most styling solutions, which matches screen widths stopping at
|
|
56
|
-
* the screen size given by the breakpoint key (exclusive) and starting at the screen size given by the next breakpoint key (inclusive).
|
|
57
|
-
*/
|
|
58
12
|
not: (key: Breakpoint) => string;
|
|
59
|
-
/**
|
|
60
|
-
* The unit used for the breakpoint's values.
|
|
61
|
-
* @default 'px'
|
|
62
|
-
*/
|
|
63
13
|
unit?: string | undefined;
|
|
64
14
|
/**
|
|
65
|
-
* Media query keys
|
|
66
15
|
* @ignore - Do not document.
|
|
67
16
|
*/
|
|
68
17
|
internal_mediaKeys: string[];
|
|
@@ -80,4 +29,4 @@ export interface BreakpointsOptions extends Partial<Breakpoints> {
|
|
|
80
29
|
*/
|
|
81
30
|
unit?: string | undefined;
|
|
82
31
|
}
|
|
83
|
-
export default function createBreakpoints(
|
|
32
|
+
export default function createBreakpoints(breakpoints: BreakpointsOptions): Breakpoints;
|
|
@@ -8,6 +8,10 @@ exports.default = createBreakpoints;
|
|
|
8
8
|
// Sorted ASC by size. That's important.
|
|
9
9
|
// It can't be configured as it's used statically for propTypes.
|
|
10
10
|
const breakpointKeys = exports.breakpointKeys = ['xs', 'sm', 'md', 'lg', 'xl'];
|
|
11
|
+
|
|
12
|
+
// Keep in sync with docs/src/pages/customization/breakpoints/breakpoints.md
|
|
13
|
+
// #host-reference
|
|
14
|
+
|
|
11
15
|
const sortBreakpointsValues = values => {
|
|
12
16
|
const breakpointsAsArray = Object.keys(values).map(key => ({
|
|
13
17
|
key,
|
|
@@ -26,18 +30,12 @@ const sortBreakpointsValues = values => {
|
|
|
26
30
|
// Keep in mind that @media is inclusive by the CSS specification.
|
|
27
31
|
function createBreakpoints(breakpoints) {
|
|
28
32
|
const {
|
|
29
|
-
// The breakpoint **start** at this value.
|
|
30
|
-
// For instance with the first breakpoint xs: [xs, sm).
|
|
31
33
|
values = {
|
|
32
34
|
xs: 0,
|
|
33
|
-
// phone
|
|
34
35
|
sm: 600,
|
|
35
|
-
// tablet
|
|
36
36
|
md: 900,
|
|
37
|
-
// small laptop
|
|
38
37
|
lg: 1200,
|
|
39
|
-
|
|
40
|
-
xl: 1536 // large screen
|
|
38
|
+
xl: 1536
|
|
41
39
|
},
|
|
42
40
|
unit = 'px',
|
|
43
41
|
step = 5,
|
|
@@ -79,7 +77,7 @@ function createBreakpoints(breakpoints) {
|
|
|
79
77
|
mediaKeys.push(up(keys[i]));
|
|
80
78
|
}
|
|
81
79
|
return {
|
|
82
|
-
keys,
|
|
80
|
+
keys: keys,
|
|
83
81
|
values: sortedValues,
|
|
84
82
|
up,
|
|
85
83
|
down,
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
// Sorted ASC by size. That's important.
|
|
2
2
|
// It can't be configured as it's used statically for propTypes.
|
|
3
3
|
export const breakpointKeys = ['xs', 'sm', 'md', 'lg', 'xl'];
|
|
4
|
+
|
|
5
|
+
// Keep in sync with docs/src/pages/customization/breakpoints/breakpoints.md
|
|
6
|
+
// #host-reference
|
|
7
|
+
|
|
4
8
|
const sortBreakpointsValues = values => {
|
|
5
9
|
const breakpointsAsArray = Object.keys(values).map(key => ({
|
|
6
10
|
key,
|
|
@@ -19,18 +23,12 @@ const sortBreakpointsValues = values => {
|
|
|
19
23
|
// Keep in mind that @media is inclusive by the CSS specification.
|
|
20
24
|
export default function createBreakpoints(breakpoints) {
|
|
21
25
|
const {
|
|
22
|
-
// The breakpoint **start** at this value.
|
|
23
|
-
// For instance with the first breakpoint xs: [xs, sm).
|
|
24
26
|
values = {
|
|
25
27
|
xs: 0,
|
|
26
|
-
// phone
|
|
27
28
|
sm: 600,
|
|
28
|
-
// tablet
|
|
29
29
|
md: 900,
|
|
30
|
-
// small laptop
|
|
31
30
|
lg: 1200,
|
|
32
|
-
|
|
33
|
-
xl: 1536 // large screen
|
|
31
|
+
xl: 1536
|
|
34
32
|
},
|
|
35
33
|
unit = 'px',
|
|
36
34
|
step = 5,
|
|
@@ -72,7 +70,7 @@ export default function createBreakpoints(breakpoints) {
|
|
|
72
70
|
mediaKeys.push(up(keys[i]));
|
|
73
71
|
}
|
|
74
72
|
return {
|
|
75
|
-
keys,
|
|
73
|
+
keys: keys,
|
|
76
74
|
values: sortedValues,
|
|
77
75
|
up,
|
|
78
76
|
down,
|
|
@@ -7,4 +7,4 @@ export interface Spacing {
|
|
|
7
7
|
(top: SpacingArgument, rightLeft: SpacingArgument, bottom: SpacingArgument): string;
|
|
8
8
|
(top: SpacingArgument, right: SpacingArgument, bottom: SpacingArgument, left: SpacingArgument): string;
|
|
9
9
|
}
|
|
10
|
-
export default function createSpacing(spacingInput?: SpacingOptions, transform?: Spacing | ((
|
|
10
|
+
export default function createSpacing(spacingInput?: SpacingOptions, transform?: Spacing | ((abs: number | string) => number | number) | (() => undefined)): Spacing;
|
|
@@ -7,4 +7,4 @@ export interface Spacing {
|
|
|
7
7
|
(top: SpacingArgument, rightLeft: SpacingArgument, bottom: SpacingArgument): string;
|
|
8
8
|
(top: SpacingArgument, right: SpacingArgument, bottom: SpacingArgument, left: SpacingArgument): string;
|
|
9
9
|
}
|
|
10
|
-
export default function createSpacing(spacingInput?: SpacingOptions, transform?: Spacing | ((
|
|
10
|
+
export default function createSpacing(spacingInput?: SpacingOptions, transform?: Spacing | ((abs: number | string) => number | number) | (() => undefined)): Spacing;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { PropsFor, SimpleStyleFunction } from "../style/index.mjs";
|
|
2
|
-
export const gap: SimpleStyleFunction<'gap'>;
|
|
3
|
-
export const columnGap: SimpleStyleFunction<'columnGap'>;
|
|
4
|
-
export const rowGap: SimpleStyleFunction<'rowGap'>;
|
|
5
|
-
export const gridColumn: SimpleStyleFunction<'gridColumn'>;
|
|
6
|
-
export const gridRow: SimpleStyleFunction<'gridRow'>;
|
|
7
|
-
export const gridAutoFlow: SimpleStyleFunction<'gridAutoFlow'>;
|
|
8
|
-
export const gridAutoColumns: SimpleStyleFunction<'gridAutoColumns'>;
|
|
9
|
-
export const gridAutoRows: SimpleStyleFunction<'gridAutoRows'>;
|
|
10
|
-
export const gridTemplateColumns: SimpleStyleFunction<'gridTemplateColumns'>;
|
|
11
|
-
export const gridTemplateRows: SimpleStyleFunction<'gridTemplateRows'>;
|
|
12
|
-
export const gridTemplateAreas: SimpleStyleFunction<'gridTemplateAreas'>;
|
|
13
|
-
export const gridArea: SimpleStyleFunction<'gridArea'>;
|
|
1
|
+
import type { PropsFor, SimpleStyleFunction } from "../style/index.mjs";
|
|
2
|
+
export declare const gap: SimpleStyleFunction<'gap'>;
|
|
3
|
+
export declare const columnGap: SimpleStyleFunction<'columnGap'>;
|
|
4
|
+
export declare const rowGap: SimpleStyleFunction<'rowGap'>;
|
|
5
|
+
export declare const gridColumn: SimpleStyleFunction<'gridColumn'>;
|
|
6
|
+
export declare const gridRow: SimpleStyleFunction<'gridRow'>;
|
|
7
|
+
export declare const gridAutoFlow: SimpleStyleFunction<'gridAutoFlow'>;
|
|
8
|
+
export declare const gridAutoColumns: SimpleStyleFunction<'gridAutoColumns'>;
|
|
9
|
+
export declare const gridAutoRows: SimpleStyleFunction<'gridAutoRows'>;
|
|
10
|
+
export declare const gridTemplateColumns: SimpleStyleFunction<'gridTemplateColumns'>;
|
|
11
|
+
export declare const gridTemplateRows: SimpleStyleFunction<'gridTemplateRows'>;
|
|
12
|
+
export declare const gridTemplateAreas: SimpleStyleFunction<'gridTemplateAreas'>;
|
|
13
|
+
export declare const gridArea: SimpleStyleFunction<'gridArea'>;
|
|
14
14
|
declare const grid: SimpleStyleFunction<'gap' | 'columnGap' | 'rowGap' | 'gridColumn' | 'gridRow' | 'gridAutoFlow' | 'gridAutoColumns' | 'gridAutoRows' | 'gridTemplateColumns' | 'gridTemplateRows' | 'gridTemplateAreas' | 'gridArea'>;
|
|
15
15
|
export type CssGridProps = PropsFor<typeof grid>;
|
|
16
16
|
export default grid;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { PropsFor, SimpleStyleFunction } from "../style/index.js";
|
|
2
|
-
export const gap: SimpleStyleFunction<'gap'>;
|
|
3
|
-
export const columnGap: SimpleStyleFunction<'columnGap'>;
|
|
4
|
-
export const rowGap: SimpleStyleFunction<'rowGap'>;
|
|
5
|
-
export const gridColumn: SimpleStyleFunction<'gridColumn'>;
|
|
6
|
-
export const gridRow: SimpleStyleFunction<'gridRow'>;
|
|
7
|
-
export const gridAutoFlow: SimpleStyleFunction<'gridAutoFlow'>;
|
|
8
|
-
export const gridAutoColumns: SimpleStyleFunction<'gridAutoColumns'>;
|
|
9
|
-
export const gridAutoRows: SimpleStyleFunction<'gridAutoRows'>;
|
|
10
|
-
export const gridTemplateColumns: SimpleStyleFunction<'gridTemplateColumns'>;
|
|
11
|
-
export const gridTemplateRows: SimpleStyleFunction<'gridTemplateRows'>;
|
|
12
|
-
export const gridTemplateAreas: SimpleStyleFunction<'gridTemplateAreas'>;
|
|
13
|
-
export const gridArea: SimpleStyleFunction<'gridArea'>;
|
|
1
|
+
import type { PropsFor, SimpleStyleFunction } from "../style/index.js";
|
|
2
|
+
export declare const gap: SimpleStyleFunction<'gap'>;
|
|
3
|
+
export declare const columnGap: SimpleStyleFunction<'columnGap'>;
|
|
4
|
+
export declare const rowGap: SimpleStyleFunction<'rowGap'>;
|
|
5
|
+
export declare const gridColumn: SimpleStyleFunction<'gridColumn'>;
|
|
6
|
+
export declare const gridRow: SimpleStyleFunction<'gridRow'>;
|
|
7
|
+
export declare const gridAutoFlow: SimpleStyleFunction<'gridAutoFlow'>;
|
|
8
|
+
export declare const gridAutoColumns: SimpleStyleFunction<'gridAutoColumns'>;
|
|
9
|
+
export declare const gridAutoRows: SimpleStyleFunction<'gridAutoRows'>;
|
|
10
|
+
export declare const gridTemplateColumns: SimpleStyleFunction<'gridTemplateColumns'>;
|
|
11
|
+
export declare const gridTemplateRows: SimpleStyleFunction<'gridTemplateRows'>;
|
|
12
|
+
export declare const gridTemplateAreas: SimpleStyleFunction<'gridTemplateAreas'>;
|
|
13
|
+
export declare const gridArea: SimpleStyleFunction<'gridArea'>;
|
|
14
14
|
declare const grid: SimpleStyleFunction<'gap' | 'columnGap' | 'rowGap' | 'gridColumn' | 'gridRow' | 'gridAutoFlow' | 'gridAutoColumns' | 'gridAutoRows' | 'gridTemplateColumns' | 'gridTemplateRows' | 'gridTemplateAreas' | 'gridArea'>;
|
|
15
15
|
export type CssGridProps = PropsFor<typeof grid>;
|
|
16
16
|
export default grid;
|
|
@@ -10,8 +10,6 @@ var _compose = _interopRequireDefault(require("../compose"));
|
|
|
10
10
|
var _spacing = require("../spacing");
|
|
11
11
|
var _breakpoints = require("../breakpoints");
|
|
12
12
|
var _responsivePropType = _interopRequireDefault(require("../responsivePropType"));
|
|
13
|
-
// false positive
|
|
14
|
-
// eslint-disable-next-line react/function-component-definition
|
|
15
13
|
const gap = props => {
|
|
16
14
|
if (props.gap !== undefined && props.gap !== null) {
|
|
17
15
|
const transformer = (0, _spacing.createUnaryUnit)(props.theme, 'spacing', 8, 'gap');
|
|
@@ -27,9 +25,6 @@ gap.propTypes = process.env.NODE_ENV !== 'production' ? {
|
|
|
27
25
|
gap: _responsivePropType.default
|
|
28
26
|
} : {};
|
|
29
27
|
gap.filterProps = ['gap'];
|
|
30
|
-
|
|
31
|
-
// false positive
|
|
32
|
-
// eslint-disable-next-line react/function-component-definition
|
|
33
28
|
const columnGap = props => {
|
|
34
29
|
if (props.columnGap !== undefined && props.columnGap !== null) {
|
|
35
30
|
const transformer = (0, _spacing.createUnaryUnit)(props.theme, 'spacing', 8, 'columnGap');
|
|
@@ -45,9 +40,6 @@ columnGap.propTypes = process.env.NODE_ENV !== 'production' ? {
|
|
|
45
40
|
columnGap: _responsivePropType.default
|
|
46
41
|
} : {};
|
|
47
42
|
columnGap.filterProps = ['columnGap'];
|
|
48
|
-
|
|
49
|
-
// false positive
|
|
50
|
-
// eslint-disable-next-line react/function-component-definition
|
|
51
43
|
const rowGap = props => {
|
|
52
44
|
if (props.rowGap !== undefined && props.rowGap !== null) {
|
|
53
45
|
const transformer = (0, _spacing.createUnaryUnit)(props.theme, 'spacing', 8, 'rowGap');
|
|
@@ -3,9 +3,6 @@ import compose from "../compose/index.mjs";
|
|
|
3
3
|
import { createUnaryUnit, getValue } from "../spacing/index.mjs";
|
|
4
4
|
import { handleBreakpoints } from "../breakpoints/index.mjs";
|
|
5
5
|
import responsivePropType from "../responsivePropType/index.mjs";
|
|
6
|
-
|
|
7
|
-
// false positive
|
|
8
|
-
// eslint-disable-next-line react/function-component-definition
|
|
9
6
|
export const gap = props => {
|
|
10
7
|
if (props.gap !== undefined && props.gap !== null) {
|
|
11
8
|
const transformer = createUnaryUnit(props.theme, 'spacing', 8, 'gap');
|
|
@@ -20,9 +17,6 @@ gap.propTypes = process.env.NODE_ENV !== 'production' ? {
|
|
|
20
17
|
gap: responsivePropType
|
|
21
18
|
} : {};
|
|
22
19
|
gap.filterProps = ['gap'];
|
|
23
|
-
|
|
24
|
-
// false positive
|
|
25
|
-
// eslint-disable-next-line react/function-component-definition
|
|
26
20
|
export const columnGap = props => {
|
|
27
21
|
if (props.columnGap !== undefined && props.columnGap !== null) {
|
|
28
22
|
const transformer = createUnaryUnit(props.theme, 'spacing', 8, 'columnGap');
|
|
@@ -37,9 +31,6 @@ columnGap.propTypes = process.env.NODE_ENV !== 'production' ? {
|
|
|
37
31
|
columnGap: responsivePropType
|
|
38
32
|
} : {};
|
|
39
33
|
columnGap.filterProps = ['columnGap'];
|
|
40
|
-
|
|
41
|
-
// false positive
|
|
42
|
-
// eslint-disable-next-line react/function-component-definition
|
|
43
34
|
export const rowGap = props => {
|
|
44
35
|
if (props.rowGap !== undefined && props.rowGap !== null) {
|
|
45
36
|
const transformer = createUnaryUnit(props.theme, 'spacing', 8, 'rowGap');
|
|
@@ -14,7 +14,7 @@ var _styledEngine = require("@mui/styled-engine");
|
|
|
14
14
|
var _privateTheming = require("@mui/private-theming");
|
|
15
15
|
var _useEnhancedEffect = _interopRequireDefault(require("@mui/utils/useEnhancedEffect"));
|
|
16
16
|
var _ThemeProvider = _interopRequireDefault(require("../ThemeProvider"));
|
|
17
|
-
var _InitColorSchemeScript =
|
|
17
|
+
var _InitColorSchemeScript = require("../InitColorSchemeScript/InitColorSchemeScript");
|
|
18
18
|
var _useCurrentColorScheme = _interopRequireDefault(require("./useCurrentColorScheme"));
|
|
19
19
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
20
20
|
const DISABLE_CSS_TRANSITION = exports.DISABLE_CSS_TRANSITION = '*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}';
|
|
@@ -332,7 +332,7 @@ function createCssVarsProvider(options) {
|
|
|
332
332
|
} : void 0;
|
|
333
333
|
const defaultLightColorScheme = typeof defaultColorScheme === 'string' ? defaultColorScheme : defaultColorScheme.light;
|
|
334
334
|
const defaultDarkColorScheme = typeof defaultColorScheme === 'string' ? defaultColorScheme : defaultColorScheme.dark;
|
|
335
|
-
const getInitColorSchemeScript = params => (0, _InitColorSchemeScript.
|
|
335
|
+
const getInitColorSchemeScript = params => (0, _InitColorSchemeScript.buildInitColorSchemeScript)({
|
|
336
336
|
colorSchemeStorageKey: defaultColorSchemeStorageKey,
|
|
337
337
|
defaultLightColorScheme,
|
|
338
338
|
defaultDarkColorScheme,
|
|
@@ -6,7 +6,7 @@ import { GlobalStyles } from '@mui/styled-engine';
|
|
|
6
6
|
import { useTheme as muiUseTheme } from '@mui/private-theming';
|
|
7
7
|
import useEnhancedEffect from '@mui/utils/useEnhancedEffect';
|
|
8
8
|
import ThemeProvider from "../ThemeProvider/index.mjs";
|
|
9
|
-
import
|
|
9
|
+
import { buildInitColorSchemeScript, DEFAULT_COLOR_SCHEME_STORAGE_KEY, DEFAULT_MODE_STORAGE_KEY } from "../InitColorSchemeScript/InitColorSchemeScript.mjs";
|
|
10
10
|
import useCurrentColorScheme from "./useCurrentColorScheme.mjs";
|
|
11
11
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
12
|
export const DISABLE_CSS_TRANSITION = '*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}';
|
|
@@ -324,7 +324,7 @@ export default function createCssVarsProvider(options) {
|
|
|
324
324
|
} : void 0;
|
|
325
325
|
const defaultLightColorScheme = typeof defaultColorScheme === 'string' ? defaultColorScheme : defaultColorScheme.light;
|
|
326
326
|
const defaultDarkColorScheme = typeof defaultColorScheme === 'string' ? defaultColorScheme : defaultColorScheme.dark;
|
|
327
|
-
const getInitColorSchemeScript = params =>
|
|
327
|
+
const getInitColorSchemeScript = params => buildInitColorSchemeScript({
|
|
328
328
|
colorSchemeStorageKey: defaultColorSchemeStorageKey,
|
|
329
329
|
defaultLightColorScheme,
|
|
330
330
|
defaultDarkColorScheme,
|
|
@@ -6,6 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.assignNestedKeys = void 0;
|
|
7
7
|
exports.default = cssVarsParser;
|
|
8
8
|
exports.walkObjectDeep = void 0;
|
|
9
|
+
const prototypePollutingKeys = new Set(['__proto__', 'constructor', 'prototype']);
|
|
10
|
+
|
|
9
11
|
/**
|
|
10
12
|
* This function create an object from keys, value and then assign to target
|
|
11
13
|
*
|
|
@@ -25,7 +27,13 @@ exports.walkObjectDeep = void 0;
|
|
|
25
27
|
*/
|
|
26
28
|
const assignNestedKeys = (obj, keys, value, arrayKeys = []) => {
|
|
27
29
|
let temp = obj;
|
|
28
|
-
keys.
|
|
30
|
+
for (let index = 0; index < keys.length; index += 1) {
|
|
31
|
+
const k = keys[index];
|
|
32
|
+
// Prevent prototype pollution: never traverse or write through
|
|
33
|
+
// `__proto__` / `constructor` / `prototype` (e.g. a theme parsed from untrusted JSON).
|
|
34
|
+
if (prototypePollutingKeys.has(k)) {
|
|
35
|
+
break;
|
|
36
|
+
}
|
|
29
37
|
if (index === keys.length - 1) {
|
|
30
38
|
if (Array.isArray(temp)) {
|
|
31
39
|
temp[Number(k)] = value;
|
|
@@ -38,7 +46,7 @@ const assignNestedKeys = (obj, keys, value, arrayKeys = []) => {
|
|
|
38
46
|
}
|
|
39
47
|
temp = temp[k];
|
|
40
48
|
}
|
|
41
|
-
}
|
|
49
|
+
}
|
|
42
50
|
};
|
|
43
51
|
|
|
44
52
|
/**
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
const prototypePollutingKeys = new Set(['__proto__', 'constructor', 'prototype']);
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* This function create an object from keys, value and then assign to target
|
|
3
5
|
*
|
|
@@ -17,7 +19,13 @@
|
|
|
17
19
|
*/
|
|
18
20
|
export const assignNestedKeys = (obj, keys, value, arrayKeys = []) => {
|
|
19
21
|
let temp = obj;
|
|
20
|
-
keys.
|
|
22
|
+
for (let index = 0; index < keys.length; index += 1) {
|
|
23
|
+
const k = keys[index];
|
|
24
|
+
// Prevent prototype pollution: never traverse or write through
|
|
25
|
+
// `__proto__` / `constructor` / `prototype` (e.g. a theme parsed from untrusted JSON).
|
|
26
|
+
if (prototypePollutingKeys.has(k)) {
|
|
27
|
+
break;
|
|
28
|
+
}
|
|
21
29
|
if (index === keys.length - 1) {
|
|
22
30
|
if (Array.isArray(temp)) {
|
|
23
31
|
temp[Number(k)] = value;
|
|
@@ -30,7 +38,7 @@ export const assignNestedKeys = (obj, keys, value, arrayKeys = []) => {
|
|
|
30
38
|
}
|
|
31
39
|
temp = temp[k];
|
|
32
40
|
}
|
|
33
|
-
}
|
|
41
|
+
}
|
|
34
42
|
};
|
|
35
43
|
|
|
36
44
|
/**
|
|
@@ -82,6 +82,7 @@ function useCurrentColorScheme(options) {
|
|
|
82
82
|
});
|
|
83
83
|
const [isClient, setIsClient] = React.useState(noSsr || !isMultiSchemes);
|
|
84
84
|
React.useEffect(() => {
|
|
85
|
+
// eslint-disable-next-line react-hooks/set-state-in-effect
|
|
85
86
|
setIsClient(true); // to rerender the component after hydration
|
|
86
87
|
}, []);
|
|
87
88
|
const colorScheme = getColorScheme(state);
|
|
@@ -73,6 +73,7 @@ export default function useCurrentColorScheme(options) {
|
|
|
73
73
|
});
|
|
74
74
|
const [isClient, setIsClient] = React.useState(noSsr || !isMultiSchemes);
|
|
75
75
|
React.useEffect(() => {
|
|
76
|
+
// eslint-disable-next-line react-hooks/set-state-in-effect
|
|
76
77
|
setIsClient(true); // to rerender the component after hydration
|
|
77
78
|
}, []);
|
|
78
79
|
const colorScheme = getColorScheme(state);
|
|
@@ -1,4 +1,52 @@
|
|
|
1
|
-
import { PropsFor, SimpleStyleFunction } from "../style/index.mjs";
|
|
1
|
+
import type { PropsFor, SimpleStyleFunction } from "../style/index.mjs";
|
|
2
|
+
export declare const displayPrint: import("../index.mjs").StyleFunction<{
|
|
3
|
+
displayPrint?: unknown;
|
|
4
|
+
} & {
|
|
5
|
+
theme?: object | undefined;
|
|
6
|
+
}> & {
|
|
7
|
+
filterProps: string[];
|
|
8
|
+
propTypes: any;
|
|
9
|
+
};
|
|
10
|
+
export declare const displayRaw: import("../index.mjs").StyleFunction<{
|
|
11
|
+
display?: unknown;
|
|
12
|
+
} & {
|
|
13
|
+
theme?: object | undefined;
|
|
14
|
+
}> & {
|
|
15
|
+
filterProps: string[];
|
|
16
|
+
propTypes: any;
|
|
17
|
+
};
|
|
18
|
+
export declare const overflow: import("../index.mjs").StyleFunction<{
|
|
19
|
+
overflow?: unknown;
|
|
20
|
+
} & {
|
|
21
|
+
theme?: object | undefined;
|
|
22
|
+
}> & {
|
|
23
|
+
filterProps: string[];
|
|
24
|
+
propTypes: any;
|
|
25
|
+
};
|
|
26
|
+
export declare const textOverflow: import("../index.mjs").StyleFunction<{
|
|
27
|
+
textOverflow?: unknown;
|
|
28
|
+
} & {
|
|
29
|
+
theme?: object | undefined;
|
|
30
|
+
}> & {
|
|
31
|
+
filterProps: string[];
|
|
32
|
+
propTypes: any;
|
|
33
|
+
};
|
|
34
|
+
export declare const visibility: import("../index.mjs").StyleFunction<{
|
|
35
|
+
visibility?: unknown;
|
|
36
|
+
} & {
|
|
37
|
+
theme?: object | undefined;
|
|
38
|
+
}> & {
|
|
39
|
+
filterProps: string[];
|
|
40
|
+
propTypes: any;
|
|
41
|
+
};
|
|
42
|
+
export declare const whiteSpace: import("../index.mjs").StyleFunction<{
|
|
43
|
+
whiteSpace?: unknown;
|
|
44
|
+
} & {
|
|
45
|
+
theme?: object | undefined;
|
|
46
|
+
}> & {
|
|
47
|
+
filterProps: string[];
|
|
48
|
+
propTypes: any;
|
|
49
|
+
};
|
|
2
50
|
declare const display: SimpleStyleFunction<'display' | 'displayPrint' | 'overflow' | 'textOverflow' | 'visibility' | 'whiteSpace'>;
|
|
3
51
|
export type DisplayProps = PropsFor<typeof display>;
|
|
4
52
|
export default display;
|
|
@@ -1,4 +1,52 @@
|
|
|
1
|
-
import { PropsFor, SimpleStyleFunction } from "../style/index.js";
|
|
1
|
+
import type { PropsFor, SimpleStyleFunction } from "../style/index.js";
|
|
2
|
+
export declare const displayPrint: import("../index.js").StyleFunction<{
|
|
3
|
+
displayPrint?: unknown;
|
|
4
|
+
} & {
|
|
5
|
+
theme?: object | undefined;
|
|
6
|
+
}> & {
|
|
7
|
+
filterProps: string[];
|
|
8
|
+
propTypes: any;
|
|
9
|
+
};
|
|
10
|
+
export declare const displayRaw: import("../index.js").StyleFunction<{
|
|
11
|
+
display?: unknown;
|
|
12
|
+
} & {
|
|
13
|
+
theme?: object | undefined;
|
|
14
|
+
}> & {
|
|
15
|
+
filterProps: string[];
|
|
16
|
+
propTypes: any;
|
|
17
|
+
};
|
|
18
|
+
export declare const overflow: import("../index.js").StyleFunction<{
|
|
19
|
+
overflow?: unknown;
|
|
20
|
+
} & {
|
|
21
|
+
theme?: object | undefined;
|
|
22
|
+
}> & {
|
|
23
|
+
filterProps: string[];
|
|
24
|
+
propTypes: any;
|
|
25
|
+
};
|
|
26
|
+
export declare const textOverflow: import("../index.js").StyleFunction<{
|
|
27
|
+
textOverflow?: unknown;
|
|
28
|
+
} & {
|
|
29
|
+
theme?: object | undefined;
|
|
30
|
+
}> & {
|
|
31
|
+
filterProps: string[];
|
|
32
|
+
propTypes: any;
|
|
33
|
+
};
|
|
34
|
+
export declare const visibility: import("../index.js").StyleFunction<{
|
|
35
|
+
visibility?: unknown;
|
|
36
|
+
} & {
|
|
37
|
+
theme?: object | undefined;
|
|
38
|
+
}> & {
|
|
39
|
+
filterProps: string[];
|
|
40
|
+
propTypes: any;
|
|
41
|
+
};
|
|
42
|
+
export declare const whiteSpace: import("../index.js").StyleFunction<{
|
|
43
|
+
whiteSpace?: unknown;
|
|
44
|
+
} & {
|
|
45
|
+
theme?: object | undefined;
|
|
46
|
+
}> & {
|
|
47
|
+
filterProps: string[];
|
|
48
|
+
propTypes: any;
|
|
49
|
+
};
|
|
2
50
|
declare const display: SimpleStyleFunction<'display' | 'displayPrint' | 'overflow' | 'textOverflow' | 'visibility' | 'whiteSpace'>;
|
|
3
51
|
export type DisplayProps = PropsFor<typeof display>;
|
|
4
52
|
export default display;
|
|
@@ -31,4 +31,5 @@ const visibility = exports.visibility = (0, _style.default)({
|
|
|
31
31
|
const whiteSpace = exports.whiteSpace = (0, _style.default)({
|
|
32
32
|
prop: 'whiteSpace'
|
|
33
33
|
});
|
|
34
|
-
|
|
34
|
+
const display = (0, _compose.default)(displayPrint, displayRaw, overflow, textOverflow, visibility, whiteSpace);
|
|
35
|
+
var _default = exports.default = display;
|
|
@@ -24,4 +24,5 @@ export const visibility = style({
|
|
|
24
24
|
export const whiteSpace = style({
|
|
25
25
|
prop: 'whiteSpace'
|
|
26
26
|
});
|
|
27
|
-
|
|
27
|
+
const display = compose(displayPrint, displayRaw, overflow, textOverflow, visibility, whiteSpace);
|
|
28
|
+
export default display;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { PropsFor, SimpleStyleFunction } from "../style/index.mjs";
|
|
2
|
-
export const flexBasis: SimpleStyleFunction<'flexBasis'>;
|
|
3
|
-
export const flexDirection: SimpleStyleFunction<'flexDirection'>;
|
|
4
|
-
export const flexWrap: SimpleStyleFunction<'flexWrap'>;
|
|
5
|
-
export const justifyContent: SimpleStyleFunction<'justifyContent'>;
|
|
6
|
-
export const alignItems: SimpleStyleFunction<'alignItems'>;
|
|
7
|
-
export const alignContent: SimpleStyleFunction<'alignContent'>;
|
|
8
|
-
export const order: SimpleStyleFunction<'order'>;
|
|
9
|
-
export const flex: SimpleStyleFunction<'flex'>;
|
|
10
|
-
export const flexGrow: SimpleStyleFunction<'flexGrow'>;
|
|
11
|
-
export const flexShrink: SimpleStyleFunction<'flexShrink'>;
|
|
12
|
-
export const alignSelf: SimpleStyleFunction<'alignSelf'>;
|
|
13
|
-
export const justifyItems: SimpleStyleFunction<'justifyItems'>;
|
|
14
|
-
export const justifySelf: SimpleStyleFunction<'justifySelf'>;
|
|
1
|
+
import type { PropsFor, SimpleStyleFunction } from "../style/index.mjs";
|
|
2
|
+
export declare const flexBasis: SimpleStyleFunction<'flexBasis'>;
|
|
3
|
+
export declare const flexDirection: SimpleStyleFunction<'flexDirection'>;
|
|
4
|
+
export declare const flexWrap: SimpleStyleFunction<'flexWrap'>;
|
|
5
|
+
export declare const justifyContent: SimpleStyleFunction<'justifyContent'>;
|
|
6
|
+
export declare const alignItems: SimpleStyleFunction<'alignItems'>;
|
|
7
|
+
export declare const alignContent: SimpleStyleFunction<'alignContent'>;
|
|
8
|
+
export declare const order: SimpleStyleFunction<'order'>;
|
|
9
|
+
export declare const flex: SimpleStyleFunction<'flex'>;
|
|
10
|
+
export declare const flexGrow: SimpleStyleFunction<'flexGrow'>;
|
|
11
|
+
export declare const flexShrink: SimpleStyleFunction<'flexShrink'>;
|
|
12
|
+
export declare const alignSelf: SimpleStyleFunction<'alignSelf'>;
|
|
13
|
+
export declare const justifyItems: SimpleStyleFunction<'justifyItems'>;
|
|
14
|
+
export declare const justifySelf: SimpleStyleFunction<'justifySelf'>;
|
|
15
15
|
declare const flexbox: SimpleStyleFunction<'flexBasis' | 'flexDirection' | 'flexWrap' | 'justifyContent' | 'alignItems' | 'alignContent' | 'order' | 'flex' | 'flexGrow' | 'flexShrink' | 'alignSelf' | 'justifyItems' | 'justifySelf'>;
|
|
16
16
|
export type FlexboxProps = PropsFor<typeof flexbox>;
|
|
17
17
|
export default flexbox;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { PropsFor, SimpleStyleFunction } from "../style/index.js";
|
|
2
|
-
export const flexBasis: SimpleStyleFunction<'flexBasis'>;
|
|
3
|
-
export const flexDirection: SimpleStyleFunction<'flexDirection'>;
|
|
4
|
-
export const flexWrap: SimpleStyleFunction<'flexWrap'>;
|
|
5
|
-
export const justifyContent: SimpleStyleFunction<'justifyContent'>;
|
|
6
|
-
export const alignItems: SimpleStyleFunction<'alignItems'>;
|
|
7
|
-
export const alignContent: SimpleStyleFunction<'alignContent'>;
|
|
8
|
-
export const order: SimpleStyleFunction<'order'>;
|
|
9
|
-
export const flex: SimpleStyleFunction<'flex'>;
|
|
10
|
-
export const flexGrow: SimpleStyleFunction<'flexGrow'>;
|
|
11
|
-
export const flexShrink: SimpleStyleFunction<'flexShrink'>;
|
|
12
|
-
export const alignSelf: SimpleStyleFunction<'alignSelf'>;
|
|
13
|
-
export const justifyItems: SimpleStyleFunction<'justifyItems'>;
|
|
14
|
-
export const justifySelf: SimpleStyleFunction<'justifySelf'>;
|
|
1
|
+
import type { PropsFor, SimpleStyleFunction } from "../style/index.js";
|
|
2
|
+
export declare const flexBasis: SimpleStyleFunction<'flexBasis'>;
|
|
3
|
+
export declare const flexDirection: SimpleStyleFunction<'flexDirection'>;
|
|
4
|
+
export declare const flexWrap: SimpleStyleFunction<'flexWrap'>;
|
|
5
|
+
export declare const justifyContent: SimpleStyleFunction<'justifyContent'>;
|
|
6
|
+
export declare const alignItems: SimpleStyleFunction<'alignItems'>;
|
|
7
|
+
export declare const alignContent: SimpleStyleFunction<'alignContent'>;
|
|
8
|
+
export declare const order: SimpleStyleFunction<'order'>;
|
|
9
|
+
export declare const flex: SimpleStyleFunction<'flex'>;
|
|
10
|
+
export declare const flexGrow: SimpleStyleFunction<'flexGrow'>;
|
|
11
|
+
export declare const flexShrink: SimpleStyleFunction<'flexShrink'>;
|
|
12
|
+
export declare const alignSelf: SimpleStyleFunction<'alignSelf'>;
|
|
13
|
+
export declare const justifyItems: SimpleStyleFunction<'justifyItems'>;
|
|
14
|
+
export declare const justifySelf: SimpleStyleFunction<'justifySelf'>;
|
|
15
15
|
declare const flexbox: SimpleStyleFunction<'flexBasis' | 'flexDirection' | 'flexWrap' | 'justifyContent' | 'alignItems' | 'alignContent' | 'order' | 'flex' | 'flexGrow' | 'flexShrink' | 'alignSelf' | 'justifyItems' | 'justifySelf'>;
|
|
16
16
|
export type FlexboxProps = PropsFor<typeof flexbox>;
|
|
17
17
|
export default flexbox;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
declare function getThemeValue(prop: string, value: any, theme: object): any;
|
|
2
|
+
export default getThemeValue;
|