@zealicsolutions/web-ui 1.0.87-beta.17 → 1.0.87-beta.19
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/dist/cjs/index.js +1621 -1589
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/_virtual/index10.js +2 -0
- package/dist/esm/_virtual/index10.js.map +1 -0
- package/dist/esm/_virtual/index11.js +2 -0
- package/dist/esm/_virtual/index11.js.map +1 -0
- package/dist/esm/_virtual/index6.js +1 -1
- package/dist/esm/_virtual/index7.js +1 -1
- package/dist/esm/_virtual/index8.js +1 -1
- package/dist/esm/_virtual/index9.js +2 -0
- package/dist/esm/_virtual/index9.js.map +1 -0
- package/dist/esm/_virtual/react-is.development4.js +2 -0
- package/dist/esm/_virtual/react-is.development4.js.map +1 -0
- package/dist/esm/_virtual/react-is.development5.js +2 -0
- package/dist/esm/_virtual/react-is.development5.js.map +1 -0
- package/dist/esm/_virtual/react-is.development6.js +2 -0
- package/dist/esm/_virtual/react-is.development6.js.map +1 -0
- package/dist/esm/_virtual/react-is.production2.js +2 -0
- package/dist/esm/_virtual/react-is.production2.js.map +1 -0
- package/dist/esm/_virtual/react-is.production3.js +2 -0
- package/dist/esm/_virtual/react-is.production3.js.map +1 -0
- package/dist/esm/_virtual/react-is.production4.js +2 -0
- package/dist/esm/_virtual/react-is.production4.js.map +1 -0
- package/dist/esm/containers/utils.js +1 -1
- package/dist/esm/containers/utils.js.map +1 -1
- package/dist/esm/molecules/BaseMolecule.js +1 -1
- package/dist/esm/molecules/BaseMolecule.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Accordion/Accordion.js +1 -1
- package/dist/esm/node_modules/@mui/material/Accordion/Accordion.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Accordion/accordionClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/Accordion/accordionClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/AccordionDetails/AccordionDetails.js +1 -1
- package/dist/esm/node_modules/@mui/material/AccordionDetails/AccordionDetails.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/AccordionDetails/accordionDetailsClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/AccordionDetails/accordionDetailsClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/AccordionSummary/AccordionSummary.js +1 -1
- package/dist/esm/node_modules/@mui/material/AccordionSummary/AccordionSummary.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/AccordionSummary/accordionSummaryClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/AccordionSummary/accordionSummaryClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Alert/Alert.js +1 -1
- package/dist/esm/node_modules/@mui/material/Alert/Alert.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Alert/alertClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/Alert/alertClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/AlertTitle/AlertTitle.js +1 -1
- package/dist/esm/node_modules/@mui/material/AlertTitle/AlertTitle.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/AlertTitle/alertTitleClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/AlertTitle/alertTitleClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Avatar/Avatar.js +1 -1
- package/dist/esm/node_modules/@mui/material/Avatar/Avatar.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Avatar/avatarClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/Avatar/avatarClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Backdrop/Backdrop.js +1 -1
- package/dist/esm/node_modules/@mui/material/Backdrop/Backdrop.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Backdrop/backdropClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/Backdrop/backdropClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Badge/Badge.js +1 -1
- package/dist/esm/node_modules/@mui/material/Badge/Badge.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Badge/badgeClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/Badge/badgeClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Badge/useBadge.js +1 -1
- package/dist/esm/node_modules/@mui/material/Badge/useBadge.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Box/Box.js +1 -1
- package/dist/esm/node_modules/@mui/material/Box/Box.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Box/boxClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/Box/boxClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Button/Button.js +1 -1
- package/dist/esm/node_modules/@mui/material/Button/Button.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Button/buttonClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/Button/buttonClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/ButtonBase/ButtonBase.js +1 -1
- package/dist/esm/node_modules/@mui/material/ButtonBase/ButtonBase.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/ButtonBase/Ripple.js +1 -1
- package/dist/esm/node_modules/@mui/material/ButtonBase/TouchRipple.js +2 -2
- package/dist/esm/node_modules/@mui/material/ButtonBase/TouchRipple.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/ButtonBase/buttonBaseClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/ButtonBase/buttonBaseClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/ButtonBase/touchRippleClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/ButtonBase/touchRippleClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Card/Card.js +1 -1
- package/dist/esm/node_modules/@mui/material/Card/Card.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Card/cardClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/Card/cardClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/CardMedia/CardMedia.js +1 -1
- package/dist/esm/node_modules/@mui/material/CardMedia/CardMedia.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/CardMedia/cardMediaClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/CardMedia/cardMediaClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Checkbox/Checkbox.js +1 -1
- package/dist/esm/node_modules/@mui/material/Checkbox/Checkbox.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Checkbox/checkboxClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/Checkbox/checkboxClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Chip/Chip.js +1 -1
- package/dist/esm/node_modules/@mui/material/Chip/Chip.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Chip/chipClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/Chip/chipClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/CircularProgress/CircularProgress.js +4 -4
- package/dist/esm/node_modules/@mui/material/CircularProgress/CircularProgress.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/CircularProgress/circularProgressClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/CircularProgress/circularProgressClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Collapse/Collapse.js +1 -1
- package/dist/esm/node_modules/@mui/material/Collapse/Collapse.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Collapse/collapseClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/Collapse/collapseClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/CssBaseline/CssBaseline.js +1 -1
- package/dist/esm/node_modules/@mui/material/DefaultPropsProvider/DefaultPropsProvider.js +1 -1
- package/dist/esm/node_modules/@mui/material/Dialog/Dialog.js +1 -1
- package/dist/esm/node_modules/@mui/material/Dialog/Dialog.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Dialog/dialogClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/Dialog/dialogClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/DialogActions/DialogActions.js +1 -1
- package/dist/esm/node_modules/@mui/material/DialogActions/DialogActions.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/DialogActions/dialogActionsClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/DialogActions/dialogActionsClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/DialogContent/DialogContent.js +1 -1
- package/dist/esm/node_modules/@mui/material/DialogContent/DialogContent.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/DialogContent/dialogContentClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/DialogContent/dialogContentClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/DialogTitle/dialogTitleClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/DialogTitle/dialogTitleClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Divider/Divider.js +1 -1
- package/dist/esm/node_modules/@mui/material/Divider/Divider.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Divider/dividerClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/Divider/dividerClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Drawer/Drawer.js +1 -1
- package/dist/esm/node_modules/@mui/material/Drawer/Drawer.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Drawer/drawerClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/Drawer/drawerClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Fab/Fab.js +1 -1
- package/dist/esm/node_modules/@mui/material/Fab/Fab.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Fab/fabClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/Fab/fabClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Fade/Fade.js +1 -1
- package/dist/esm/node_modules/@mui/material/Fade/Fade.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/FilledInput/FilledInput.js +1 -1
- package/dist/esm/node_modules/@mui/material/FilledInput/FilledInput.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/FilledInput/filledInputClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/FilledInput/filledInputClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/FormControl/FormControl.js +1 -1
- package/dist/esm/node_modules/@mui/material/FormControl/FormControl.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/FormControl/formControlClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/FormControl/formControlClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/FormControlLabel/FormControlLabel.js +1 -1
- package/dist/esm/node_modules/@mui/material/FormControlLabel/FormControlLabel.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/FormControlLabel/formControlLabelClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/FormControlLabel/formControlLabelClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/FormGroup/FormGroup.js +1 -1
- package/dist/esm/node_modules/@mui/material/FormGroup/FormGroup.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/FormGroup/formGroupClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/FormGroup/formGroupClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/FormHelperText/FormHelperText.js +1 -1
- package/dist/esm/node_modules/@mui/material/FormHelperText/FormHelperText.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/FormHelperText/formHelperTextClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/FormHelperText/formHelperTextClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/FormLabel/FormLabel.js +1 -1
- package/dist/esm/node_modules/@mui/material/FormLabel/FormLabel.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/FormLabel/formLabelClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/FormLabel/formLabelClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/GlobalStyles/GlobalStyles.js +1 -1
- package/dist/esm/node_modules/@mui/material/GlobalStyles/GlobalStyles.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Grow/Grow.js +1 -1
- package/dist/esm/node_modules/@mui/material/Grow/Grow.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/IconButton/IconButton.js +1 -1
- package/dist/esm/node_modules/@mui/material/IconButton/IconButton.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/IconButton/iconButtonClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/IconButton/iconButtonClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Input/Input.js +1 -1
- package/dist/esm/node_modules/@mui/material/Input/Input.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Input/inputClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/Input/inputClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/InputAdornment/InputAdornment.js +1 -1
- package/dist/esm/node_modules/@mui/material/InputAdornment/InputAdornment.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/InputAdornment/inputAdornmentClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/InputAdornment/inputAdornmentClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/InputBase/InputBase.js +1 -1
- package/dist/esm/node_modules/@mui/material/InputBase/InputBase.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/InputBase/inputBaseClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/InputBase/inputBaseClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/InputLabel/InputLabel.js +1 -1
- package/dist/esm/node_modules/@mui/material/InputLabel/InputLabel.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/InputLabel/inputLabelClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/InputLabel/inputLabelClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Link/Link.js +1 -1
- package/dist/esm/node_modules/@mui/material/Link/Link.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Link/linkClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/Link/linkClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/List/List.js +1 -1
- package/dist/esm/node_modules/@mui/material/List/List.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/List/listClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/List/listClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/ListItem/ListItem.js +1 -1
- package/dist/esm/node_modules/@mui/material/ListItem/ListItem.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/ListItem/listItemClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/ListItem/listItemClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/ListItemButton/ListItemButton.js +1 -1
- package/dist/esm/node_modules/@mui/material/ListItemButton/ListItemButton.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/ListItemButton/listItemButtonClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/ListItemButton/listItemButtonClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/ListItemIcon/listItemIconClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/ListItemIcon/listItemIconClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
- package/dist/esm/node_modules/@mui/material/ListItemSecondaryAction/ListItemSecondaryAction.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/ListItemSecondaryAction/listItemSecondaryActionClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/ListItemSecondaryAction/listItemSecondaryActionClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/ListItemText/ListItemText.js +1 -1
- package/dist/esm/node_modules/@mui/material/ListItemText/ListItemText.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/ListItemText/listItemTextClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/ListItemText/listItemTextClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Menu/Menu.js +1 -1
- package/dist/esm/node_modules/@mui/material/Menu/Menu.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Menu/menuClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/Menu/menuClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/MenuItem/MenuItem.js +1 -1
- package/dist/esm/node_modules/@mui/material/MenuItem/MenuItem.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/MenuItem/menuItemClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/MenuItem/menuItemClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/MenuList/MenuList.js +1 -1
- package/dist/esm/node_modules/@mui/material/MenuList/MenuList.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Modal/Modal.js +1 -1
- package/dist/esm/node_modules/@mui/material/Modal/Modal.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Modal/ModalManager.js +1 -1
- package/dist/esm/node_modules/@mui/material/Modal/ModalManager.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Modal/modalClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/Modal/modalClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Modal/useModal.js +1 -1
- package/dist/esm/node_modules/@mui/material/Modal/useModal.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/NativeSelect/NativeSelectInput.js +1 -1
- package/dist/esm/node_modules/@mui/material/NativeSelect/NativeSelectInput.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/NativeSelect/nativeSelectClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/NativeSelect/nativeSelectClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/OutlinedInput/NotchedOutline.js +1 -1
- package/dist/esm/node_modules/@mui/material/OutlinedInput/OutlinedInput.js +1 -1
- package/dist/esm/node_modules/@mui/material/OutlinedInput/OutlinedInput.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/OutlinedInput/outlinedInputClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/OutlinedInput/outlinedInputClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Paper/Paper.js +1 -1
- package/dist/esm/node_modules/@mui/material/Paper/Paper.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Paper/paperClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/Paper/paperClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Popover/Popover.js +1 -1
- package/dist/esm/node_modules/@mui/material/Popover/Popover.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Popover/popoverClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/Popover/popoverClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Popper/BasePopper.js +1 -1
- package/dist/esm/node_modules/@mui/material/Popper/BasePopper.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Popper/Popper.js +1 -1
- package/dist/esm/node_modules/@mui/material/Popper/Popper.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Popper/popperClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/Popper/popperClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Portal/Portal.js +1 -1
- package/dist/esm/node_modules/@mui/material/Portal/Portal.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Radio/Radio.js +1 -1
- package/dist/esm/node_modules/@mui/material/Radio/Radio.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Radio/RadioButtonIcon.js +1 -1
- package/dist/esm/node_modules/@mui/material/Radio/radioClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/Radio/radioClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/RadioGroup/RadioGroup.js +1 -1
- package/dist/esm/node_modules/@mui/material/RadioGroup/RadioGroup.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/RadioGroup/radioGroupClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/RadioGroup/radioGroupClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Rating/Rating.js +1 -1
- package/dist/esm/node_modules/@mui/material/Rating/Rating.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Rating/ratingClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/Rating/ratingClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Select/Select.js +1 -1
- package/dist/esm/node_modules/@mui/material/Select/Select.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Select/SelectInput.js +1 -1
- package/dist/esm/node_modules/@mui/material/Select/SelectInput.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Select/selectClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/Select/selectClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Slide/Slide.js +1 -1
- package/dist/esm/node_modules/@mui/material/Slide/Slide.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Slider/Slider.js +1 -1
- package/dist/esm/node_modules/@mui/material/Slider/Slider.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Slider/SliderValueLabel.js +1 -1
- package/dist/esm/node_modules/@mui/material/Slider/sliderClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/Slider/sliderClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Slider/useSlider.js +1 -1
- package/dist/esm/node_modules/@mui/material/Slider/useSlider.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/SpeedDial/SpeedDial.js +1 -1
- package/dist/esm/node_modules/@mui/material/SpeedDial/SpeedDial.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/SpeedDial/speedDialClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/SpeedDial/speedDialClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/SpeedDialAction/SpeedDialAction.js +1 -1
- package/dist/esm/node_modules/@mui/material/SpeedDialAction/SpeedDialAction.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/SpeedDialAction/speedDialActionClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/SpeedDialAction/speedDialActionClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon.js +1 -1
- package/dist/esm/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/SpeedDialIcon/speedDialIconClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/SpeedDialIcon/speedDialIconClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Stack/Stack.js +1 -1
- package/dist/esm/node_modules/@mui/material/Stack/Stack.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Step/Step.js +1 -1
- package/dist/esm/node_modules/@mui/material/Step/Step.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Step/stepClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/Step/stepClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/StepConnector/StepConnector.js +1 -1
- package/dist/esm/node_modules/@mui/material/StepConnector/StepConnector.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/StepConnector/stepConnectorClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/StepConnector/stepConnectorClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/StepContent/StepContent.js +1 -1
- package/dist/esm/node_modules/@mui/material/StepContent/StepContent.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/StepContent/stepContentClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/StepContent/stepContentClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/StepIcon/StepIcon.js +1 -1
- package/dist/esm/node_modules/@mui/material/StepIcon/StepIcon.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/StepIcon/stepIconClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/StepIcon/stepIconClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/StepLabel/StepLabel.js +1 -1
- package/dist/esm/node_modules/@mui/material/StepLabel/StepLabel.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/StepLabel/stepLabelClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/StepLabel/stepLabelClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Stepper/Stepper.js +1 -1
- package/dist/esm/node_modules/@mui/material/Stepper/Stepper.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Stepper/stepperClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/Stepper/stepperClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/SvgIcon/SvgIcon.js +1 -1
- package/dist/esm/node_modules/@mui/material/SvgIcon/SvgIcon.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/SvgIcon/svgIconClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/SvgIcon/svgIconClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Switch/Switch.js +1 -1
- package/dist/esm/node_modules/@mui/material/Switch/Switch.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Switch/switchClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/Switch/switchClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Tab/Tab.js +1 -1
- package/dist/esm/node_modules/@mui/material/Tab/Tab.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Tab/tabClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/Tab/tabClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/TabScrollButton/TabScrollButton.js +1 -1
- package/dist/esm/node_modules/@mui/material/TabScrollButton/TabScrollButton.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/TabScrollButton/tabScrollButtonClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/TabScrollButton/tabScrollButtonClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Tabs/ScrollbarSize.js +1 -1
- package/dist/esm/node_modules/@mui/material/Tabs/ScrollbarSize.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Tabs/Tabs.js +1 -1
- package/dist/esm/node_modules/@mui/material/Tabs/Tabs.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Tabs/tabsClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/Tabs/tabsClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/TextField/TextField.js +1 -1
- package/dist/esm/node_modules/@mui/material/TextField/TextField.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/TextField/textFieldClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/TextField/textFieldClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/TextareaAutosize/TextareaAutosize.js +1 -1
- package/dist/esm/node_modules/@mui/material/TextareaAutosize/TextareaAutosize.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Tooltip/Tooltip.js +1 -1
- package/dist/esm/node_modules/@mui/material/Tooltip/Tooltip.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Tooltip/tooltipClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/Tooltip/tooltipClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Typography/Typography.js +1 -1
- package/dist/esm/node_modules/@mui/material/Typography/Typography.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Typography/typographyClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/Typography/typographyClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Unstable_TrapFocus/FocusTrap.js +1 -1
- package/dist/esm/node_modules/@mui/material/Unstable_TrapFocus/FocusTrap.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Zoom/Zoom.js +1 -1
- package/dist/esm/node_modules/@mui/material/Zoom/Zoom.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/internal/SwitchBase.js +1 -1
- package/dist/esm/node_modules/@mui/material/internal/SwitchBase.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/internal/switchBaseClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/internal/switchBaseClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/ClassNameGenerator/ClassNameGenerator.js.map +1 -0
- package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/HTMLElementType/HTMLElementType.js.map +1 -0
- package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/appendOwnerState/appendOwnerState.js.map +1 -0
- package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/capitalize/capitalize.js.map +1 -0
- package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/chainPropTypes/chainPropTypes.js.map +1 -0
- package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/clamp/clamp.js.map +1 -0
- package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/composeClasses/composeClasses.js.map +1 -0
- package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/createChainedFunction/createChainedFunction.js.map +1 -0
- package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/debounce/debounce.js.map +1 -0
- package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/deepmerge/deepmerge.js +2 -0
- package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/deepmerge/deepmerge.js.map +1 -0
- package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/elementAcceptingRef/elementAcceptingRef.js +2 -0
- package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/elementAcceptingRef/elementAcceptingRef.js.map +1 -0
- package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/elementTypeAcceptingRef/elementTypeAcceptingRef.js +2 -0
- package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/elementTypeAcceptingRef/elementTypeAcceptingRef.js.map +1 -0
- package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/exactProp/exactProp.js.map +1 -0
- package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/extractEventHandlers/extractEventHandlers.js.map +1 -0
- package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/formatMuiErrorMessage/formatMuiErrorMessage.js.map +1 -0
- package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/generateUtilityClass/generateUtilityClass.js.map +1 -0
- package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/generateUtilityClasses/generateUtilityClasses.js.map +1 -0
- package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/getReactElementRef/getReactElementRef.js.map +1 -0
- package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/getScrollbarSize/getScrollbarSize.js.map +1 -0
- package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/integerPropType/integerPropType.js.map +1 -0
- package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/isFocusVisible/isFocusVisible.js.map +1 -0
- package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/isHostComponent/isHostComponent.js.map +1 -0
- package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/isMuiElement/isMuiElement.js.map +1 -0
- package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/mergeSlotProps/mergeSlotProps.js +2 -0
- package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/mergeSlotProps/mergeSlotProps.js.map +1 -0
- package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/omitEventHandlers/omitEventHandlers.js.map +1 -0
- package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/ownerDocument/ownerDocument.js.map +1 -0
- package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/ownerWindow/ownerWindow.js.map +1 -0
- package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/ponyfillGlobal/ponyfillGlobal.js.map +1 -0
- package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/refType/refType.js +2 -0
- package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/refType/refType.js.map +1 -0
- package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/resolveComponentProps/resolveComponentProps.js.map +1 -0
- package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/resolveProps/resolveProps.js.map +1 -0
- package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/setRef/setRef.js.map +1 -0
- package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/unsupportedProp/unsupportedProp.js.map +1 -0
- package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/useControlled/useControlled.js.map +1 -0
- package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/useEnhancedEffect/useEnhancedEffect.js.map +1 -0
- package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/useEventCallback/useEventCallback.js.map +1 -0
- package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/useForkRef/useForkRef.js.map +1 -0
- package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/useId/useId.js.map +1 -0
- package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/useLazyRef/useLazyRef.js.map +1 -0
- package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/useOnMount/useOnMount.js.map +1 -0
- package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/usePreviousProps/usePreviousProps.js.map +1 -0
- package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/useSlotProps/useSlotProps.js.map +1 -0
- package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/useTimeout/useTimeout.js.map +1 -0
- package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/visuallyHidden/visuallyHidden.js.map +1 -0
- package/dist/esm/node_modules/@mui/material/node_modules/react-is/cjs/react-is.development.js +1 -1
- package/dist/esm/node_modules/@mui/material/node_modules/react-is/index.js +1 -1
- package/dist/esm/node_modules/@mui/material/styles/ThemeProviderNoVars.js +1 -1
- package/dist/esm/node_modules/@mui/material/styles/ThemeProviderNoVars.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/styles/ThemeProviderWithVars.js +1 -1
- package/dist/esm/node_modules/@mui/material/styles/ThemeProviderWithVars.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/styles/createPalette.js +1 -1
- package/dist/esm/node_modules/@mui/material/styles/createPalette.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/styles/createThemeNoVars.js +1 -1
- package/dist/esm/node_modules/@mui/material/styles/createThemeNoVars.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/styles/createThemeWithVars.js +1 -1
- package/dist/esm/node_modules/@mui/material/styles/createThemeWithVars.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/styles/createTypography.js +1 -1
- package/dist/esm/node_modules/@mui/material/styles/createTypography.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/styles/stringifyTheme.js +1 -1
- package/dist/esm/node_modules/@mui/material/styles/stringifyTheme.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/styles/useTheme.js +1 -1
- package/dist/esm/node_modules/@mui/material/styles/useTheme.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/useLazyRipple/useLazyRipple.js +1 -1
- package/dist/esm/node_modules/@mui/material/useLazyRipple/useLazyRipple.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/utils/capitalize.js +1 -1
- package/dist/esm/node_modules/@mui/material/utils/createChainedFunction.js +1 -1
- package/dist/esm/node_modules/@mui/material/utils/debounce.js +1 -1
- package/dist/esm/node_modules/@mui/material/utils/getScrollbarSize.js +1 -1
- package/dist/esm/node_modules/@mui/material/utils/isMuiElement.js +1 -1
- package/dist/esm/node_modules/@mui/material/utils/memoTheme.js +1 -1
- package/dist/esm/node_modules/@mui/material/utils/memoTheme.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/utils/ownerDocument.js +1 -1
- package/dist/esm/node_modules/@mui/material/utils/ownerWindow.js +1 -1
- package/dist/esm/node_modules/@mui/material/utils/unsupportedProp.js +1 -1
- package/dist/esm/node_modules/@mui/material/utils/useControlled.js +1 -1
- package/dist/esm/node_modules/@mui/material/utils/useEnhancedEffect.js +1 -1
- package/dist/esm/node_modules/@mui/material/utils/useEventCallback.js +1 -1
- package/dist/esm/node_modules/@mui/material/utils/useForkRef.js +1 -1
- package/dist/esm/node_modules/@mui/material/utils/useId.js +1 -1
- package/dist/esm/node_modules/@mui/material/utils/useSlot.js +1 -1
- package/dist/esm/node_modules/@mui/material/utils/useSlot.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/zero-styled/index.js +1 -1
- package/dist/esm/node_modules/@mui/material/zero-styled/index.js.map +1 -1
- package/dist/esm/node_modules/@mui/private-theming/ThemeProvider/ThemeProvider.js +1 -1
- package/dist/esm/node_modules/@mui/private-theming/ThemeProvider/ThemeProvider.js.map +1 -1
- package/dist/esm/node_modules/@mui/private-theming/node_modules/@mui/utils/esm/chainPropTypes/chainPropTypes.js +2 -0
- package/dist/esm/node_modules/@mui/private-theming/node_modules/@mui/utils/esm/chainPropTypes/chainPropTypes.js.map +1 -0
- package/dist/esm/node_modules/@mui/private-theming/node_modules/@mui/utils/esm/elementAcceptingRef/elementAcceptingRef.js +2 -0
- package/dist/esm/node_modules/@mui/private-theming/node_modules/@mui/utils/esm/elementAcceptingRef/elementAcceptingRef.js.map +1 -0
- package/dist/esm/node_modules/@mui/private-theming/node_modules/@mui/utils/esm/elementTypeAcceptingRef/elementTypeAcceptingRef.js +2 -0
- package/dist/esm/node_modules/@mui/private-theming/node_modules/@mui/utils/esm/elementTypeAcceptingRef/elementTypeAcceptingRef.js.map +1 -0
- package/dist/esm/node_modules/@mui/private-theming/node_modules/@mui/utils/esm/exactProp/exactProp.js +2 -0
- package/dist/esm/node_modules/@mui/private-theming/node_modules/@mui/utils/esm/exactProp/exactProp.js.map +1 -0
- package/dist/esm/node_modules/@mui/private-theming/node_modules/@mui/utils/esm/integerPropType/integerPropType.js +2 -0
- package/dist/esm/node_modules/@mui/private-theming/node_modules/@mui/utils/esm/integerPropType/integerPropType.js.map +1 -0
- package/dist/esm/node_modules/@mui/private-theming/node_modules/@mui/utils/esm/ponyfillGlobal/ponyfillGlobal.js +2 -0
- package/dist/esm/node_modules/@mui/private-theming/node_modules/@mui/utils/esm/ponyfillGlobal/ponyfillGlobal.js.map +1 -0
- package/dist/esm/node_modules/@mui/private-theming/node_modules/@mui/utils/esm/refType/refType.js +2 -0
- package/dist/esm/node_modules/@mui/private-theming/node_modules/@mui/utils/esm/refType/refType.js.map +1 -0
- package/dist/esm/node_modules/@mui/private-theming/node_modules/react-is/cjs/react-is.development.js +11 -0
- package/dist/esm/node_modules/@mui/private-theming/node_modules/react-is/cjs/react-is.development.js.map +1 -0
- package/dist/esm/node_modules/@mui/private-theming/node_modules/react-is/cjs/react-is.production.js +11 -0
- package/dist/esm/node_modules/@mui/private-theming/node_modules/react-is/cjs/react-is.production.js.map +1 -0
- package/dist/esm/node_modules/@mui/private-theming/node_modules/react-is/index.js +2 -0
- package/dist/esm/node_modules/@mui/private-theming/node_modules/react-is/index.js.map +1 -0
- package/dist/esm/node_modules/@mui/styled-engine/GlobalStyles/GlobalStyles.js +1 -1
- package/dist/esm/node_modules/@mui/styled-engine/StyledEngineProvider/StyledEngineProvider.js +1 -1
- package/dist/esm/node_modules/@mui/system/esm/Box/Box.js +1 -1
- package/dist/esm/node_modules/@mui/system/esm/Box/Box.js.map +1 -1
- package/dist/esm/node_modules/@mui/system/esm/Box/boxClasses.js +1 -1
- package/dist/esm/node_modules/@mui/system/esm/Box/boxClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/system/esm/Container/Container.js +1 -1
- package/dist/esm/node_modules/@mui/system/esm/Container/containerClasses.js +1 -1
- package/dist/esm/node_modules/@mui/system/esm/Container/containerClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/system/esm/Container/createContainer.js +1 -1
- package/dist/esm/node_modules/@mui/system/esm/Container/createContainer.js.map +1 -1
- package/dist/esm/node_modules/@mui/system/esm/DefaultPropsProvider/DefaultPropsProvider.js +1 -1
- package/dist/esm/node_modules/@mui/system/esm/DefaultPropsProvider/DefaultPropsProvider.js.map +1 -1
- package/dist/esm/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles.js +1 -1
- package/dist/esm/node_modules/@mui/system/esm/Grid/Grid.js +1 -1
- package/dist/esm/node_modules/@mui/system/esm/Grid/createGrid.js +1 -1
- package/dist/esm/node_modules/@mui/system/esm/Grid/createGrid.js.map +1 -1
- package/dist/esm/node_modules/@mui/system/esm/Grid/gridClasses.js +1 -1
- package/dist/esm/node_modules/@mui/system/esm/Grid/gridClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/system/esm/RtlProvider/index.js +1 -1
- package/dist/esm/node_modules/@mui/system/esm/Stack/Stack.js +1 -1
- package/dist/esm/node_modules/@mui/system/esm/Stack/createStack.js +1 -1
- package/dist/esm/node_modules/@mui/system/esm/Stack/createStack.js.map +1 -1
- package/dist/esm/node_modules/@mui/system/esm/Stack/stackClasses.js +1 -1
- package/dist/esm/node_modules/@mui/system/esm/Stack/stackClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/system/esm/ThemeProvider/ThemeProvider.js +1 -1
- package/dist/esm/node_modules/@mui/system/esm/ThemeProvider/ThemeProvider.js.map +1 -1
- package/dist/esm/node_modules/@mui/system/esm/ThemeProvider/useLayerOrder.js +1 -1
- package/dist/esm/node_modules/@mui/system/esm/ThemeProvider/useLayerOrder.js.map +1 -1
- package/dist/esm/node_modules/@mui/system/esm/breakpoints/breakpoints.js +1 -1
- package/dist/esm/node_modules/@mui/system/esm/breakpoints/breakpoints.js.map +1 -1
- package/dist/esm/node_modules/@mui/system/esm/colorManipulator/colorManipulator.js +1 -1
- package/dist/esm/node_modules/@mui/system/esm/colorManipulator/colorManipulator.js.map +1 -1
- package/dist/esm/node_modules/@mui/system/esm/createStyled/createStyled.js +1 -1
- package/dist/esm/node_modules/@mui/system/esm/createStyled/createStyled.js.map +1 -1
- package/dist/esm/node_modules/@mui/system/esm/createTheme/createTheme.js +1 -1
- package/dist/esm/node_modules/@mui/system/esm/createTheme/createTheme.js.map +1 -1
- package/dist/esm/node_modules/@mui/system/esm/cssContainerQueries/cssContainerQueries.js +1 -1
- package/dist/esm/node_modules/@mui/system/esm/cssContainerQueries/cssContainerQueries.js.map +1 -1
- package/dist/esm/node_modules/@mui/system/esm/cssVars/createCssVarsProvider.js +1 -1
- package/dist/esm/node_modules/@mui/system/esm/cssVars/createCssVarsProvider.js.map +1 -1
- package/dist/esm/node_modules/@mui/system/esm/cssVars/prepareCssVars.js +1 -1
- package/dist/esm/node_modules/@mui/system/esm/cssVars/prepareCssVars.js.map +1 -1
- package/dist/esm/node_modules/@mui/system/esm/merge/merge.js +1 -1
- package/dist/esm/node_modules/@mui/system/esm/merge/merge.js.map +1 -1
- package/dist/esm/node_modules/@mui/system/esm/responsivePropType/responsivePropType.js +1 -1
- package/dist/esm/node_modules/@mui/system/esm/style/style.js +1 -1
- package/dist/esm/node_modules/@mui/system/esm/style/style.js.map +1 -1
- package/dist/esm/node_modules/@mui/system/esm/styleFunctionSx/extendSxProp.js +1 -1
- package/dist/esm/node_modules/@mui/system/esm/styleFunctionSx/extendSxProp.js.map +1 -1
- package/dist/esm/node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js +1 -1
- package/dist/esm/node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js.map +1 -1
- package/dist/esm/node_modules/@mui/system/esm/useMediaQuery/useMediaQuery.js +1 -1
- package/dist/esm/node_modules/@mui/system/esm/useMediaQuery/useMediaQuery.js.map +1 -1
- package/dist/esm/node_modules/@mui/system/esm/useThemeProps/getThemeProps.js +1 -1
- package/dist/esm/node_modules/@mui/system/esm/useThemeProps/getThemeProps.js.map +1 -1
- package/dist/esm/node_modules/@mui/system/node_modules/@mui/utils/esm/ClassNameGenerator/ClassNameGenerator.js +2 -0
- package/dist/esm/node_modules/@mui/system/node_modules/@mui/utils/esm/ClassNameGenerator/ClassNameGenerator.js.map +1 -0
- package/dist/esm/node_modules/@mui/system/node_modules/@mui/utils/esm/capitalize/capitalize.js +2 -0
- package/dist/esm/node_modules/@mui/system/node_modules/@mui/utils/esm/capitalize/capitalize.js.map +1 -0
- package/dist/esm/node_modules/@mui/system/node_modules/@mui/utils/esm/clamp/clamp.js +2 -0
- package/dist/esm/node_modules/@mui/system/node_modules/@mui/utils/esm/clamp/clamp.js.map +1 -0
- package/dist/esm/node_modules/@mui/system/node_modules/@mui/utils/esm/composeClasses/composeClasses.js +2 -0
- package/dist/esm/node_modules/@mui/system/node_modules/@mui/utils/esm/composeClasses/composeClasses.js.map +1 -0
- package/dist/esm/node_modules/@mui/system/node_modules/@mui/utils/esm/deepmerge/deepmerge.js +2 -0
- package/dist/esm/node_modules/@mui/system/node_modules/@mui/utils/esm/deepmerge/deepmerge.js.map +1 -0
- package/dist/esm/node_modules/@mui/system/node_modules/@mui/utils/esm/exactProp/exactProp.js +2 -0
- package/dist/esm/node_modules/@mui/system/node_modules/@mui/utils/esm/exactProp/exactProp.js.map +1 -0
- package/dist/esm/node_modules/@mui/system/node_modules/@mui/utils/esm/formatMuiErrorMessage/formatMuiErrorMessage.js +2 -0
- package/dist/esm/node_modules/@mui/system/node_modules/@mui/utils/esm/formatMuiErrorMessage/formatMuiErrorMessage.js.map +1 -0
- package/dist/esm/node_modules/@mui/system/node_modules/@mui/utils/esm/generateUtilityClass/generateUtilityClass.js +2 -0
- package/dist/esm/node_modules/@mui/system/node_modules/@mui/utils/esm/generateUtilityClass/generateUtilityClass.js.map +1 -0
- package/dist/esm/node_modules/@mui/system/node_modules/@mui/utils/esm/generateUtilityClasses/generateUtilityClasses.js +2 -0
- package/dist/esm/node_modules/@mui/system/node_modules/@mui/utils/esm/generateUtilityClasses/generateUtilityClasses.js.map +1 -0
- package/dist/esm/node_modules/@mui/system/node_modules/@mui/utils/esm/getDisplayName/getDisplayName.js +2 -0
- package/dist/esm/node_modules/@mui/system/node_modules/@mui/utils/esm/getDisplayName/getDisplayName.js.map +1 -0
- package/dist/esm/node_modules/@mui/system/node_modules/@mui/utils/esm/isMuiElement/isMuiElement.js +2 -0
- package/dist/esm/node_modules/@mui/system/node_modules/@mui/utils/esm/isMuiElement/isMuiElement.js.map +1 -0
- package/dist/esm/node_modules/@mui/system/node_modules/@mui/utils/esm/resolveProps/resolveProps.js +2 -0
- package/dist/esm/node_modules/@mui/system/node_modules/@mui/utils/esm/resolveProps/resolveProps.js.map +1 -0
- package/dist/esm/node_modules/@mui/system/node_modules/@mui/utils/esm/useEnhancedEffect/useEnhancedEffect.js +2 -0
- package/dist/esm/node_modules/@mui/system/node_modules/@mui/utils/esm/useEnhancedEffect/useEnhancedEffect.js.map +1 -0
- package/dist/esm/node_modules/@mui/system/node_modules/@mui/utils/esm/useId/useId.js +2 -0
- package/dist/esm/node_modules/@mui/system/node_modules/@mui/utils/esm/useId/useId.js.map +1 -0
- package/dist/esm/node_modules/@mui/system/node_modules/react-is/cjs/react-is.development.js +11 -0
- package/dist/esm/node_modules/@mui/system/node_modules/react-is/cjs/react-is.development.js.map +1 -0
- package/dist/esm/node_modules/@mui/system/node_modules/react-is/cjs/react-is.production.js +11 -0
- package/dist/esm/node_modules/@mui/system/node_modules/react-is/cjs/react-is.production.js.map +1 -0
- package/dist/esm/node_modules/@mui/system/node_modules/react-is/index.js +2 -0
- package/dist/esm/node_modules/@mui/system/node_modules/react-is/index.js.map +1 -0
- package/dist/esm/node_modules/@mui/utils/esm/deepmerge/deepmerge.js +1 -1
- package/dist/esm/node_modules/@mui/utils/node_modules/react-is/cjs/react-is.development.js +1 -1
- package/dist/esm/node_modules/@mui/utils/node_modules/react-is/index.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/DateCalendar/DateCalendar.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/DateCalendar/DateCalendar.js.map +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/DateCalendar/DayCalendar.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/DateCalendar/DayCalendar.js.map +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/DateCalendar/PickersFadeTransitionGroup.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/DateCalendar/PickersFadeTransitionGroup.js.map +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/DateCalendar/PickersSlideTransition.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/DateCalendar/PickersSlideTransition.js.map +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/DateCalendar/dateCalendarClasses.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/DateCalendar/dateCalendarClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/DateCalendar/dayCalendarClasses.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/DateCalendar/dayCalendarClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/DateCalendar/pickersFadeTransitionGroupClasses.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/DateCalendar/pickersFadeTransitionGroupClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/DateCalendar/pickersSlideTransitionClasses.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/DateCalendar/pickersSlideTransitionClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/DateCalendar/useCalendarState.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/DateCalendar/useCalendarState.js.map +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/DateField/DateField.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/DateField/DateField.js.map +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/DatePicker/DatePicker.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/DatePicker/DatePicker.js.map +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/DatePicker/DatePickerToolbar.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/DatePicker/DatePickerToolbar.js.map +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/DatePicker/datePickerToolbarClasses.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/DatePicker/datePickerToolbarClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/DesktopDatePicker/DesktopDatePicker.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/DesktopDatePicker/DesktopDatePicker.js.map +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/LocalizationProvider/LocalizationProvider.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/MobileDatePicker/MobileDatePicker.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/MobileDatePicker/MobileDatePicker.js.map +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/MonthCalendar/MonthCalendar.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/MonthCalendar/MonthCalendar.js.map +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/MonthCalendar/PickersMonth.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/MonthCalendar/PickersMonth.js.map +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/MonthCalendar/monthCalendarClasses.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/MonthCalendar/monthCalendarClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/MonthCalendar/pickersMonthClasses.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/MonthCalendar/pickersMonthClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/PickersActionBar/PickersActionBar.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/PickersCalendarHeader/PickersCalendarHeader.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/PickersCalendarHeader/PickersCalendarHeader.js.map +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/PickersCalendarHeader/pickersCalendarHeaderClasses.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/PickersCalendarHeader/pickersCalendarHeaderClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/PickersDay/PickersDay.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/PickersDay/PickersDay.js.map +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/PickersDay/pickersDayClasses.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/PickersDay/pickersDayClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/PickersLayout/PickersLayout.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/PickersLayout/PickersLayout.js.map +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/PickersLayout/pickersLayoutClasses.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/PickersLayout/pickersLayoutClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/PickersLayout/usePickerLayout.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/PickersLayout/usePickerLayout.js.map +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/PickersSectionList/PickersSectionList.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/PickersSectionList/PickersSectionList.js.map +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/PickersSectionList/pickersSectionListClasses.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/PickersSectionList/pickersSectionListClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/PickersShortcuts/PickersShortcuts.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/PickersTextField/PickersFilledInput/PickersFilledInput.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/PickersTextField/PickersFilledInput/PickersFilledInput.js.map +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/PickersTextField/PickersFilledInput/pickersFilledInputClasses.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/PickersTextField/PickersFilledInput/pickersFilledInputClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/PickersTextField/PickersInput/PickersInput.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/PickersTextField/PickersInput/PickersInput.js.map +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/PickersTextField/PickersInput/pickersInputClasses.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/PickersTextField/PickersInput/pickersInputClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/PickersTextField/PickersInputBase/PickersInputBase.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/PickersTextField/PickersInputBase/PickersInputBase.js.map +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/PickersTextField/PickersInputBase/pickersInputBaseClasses.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/PickersTextField/PickersInputBase/pickersInputBaseClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js.map +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/PickersTextField/PickersOutlinedInput/pickersOutlinedInputClasses.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/PickersTextField/PickersOutlinedInput/pickersOutlinedInputClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/PickersTextField/PickersTextField.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/PickersTextField/PickersTextField.js.map +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/PickersTextField/pickersTextFieldClasses.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/PickersTextField/pickersTextFieldClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/YearCalendar/PickersYear.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/YearCalendar/PickersYear.js.map +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/YearCalendar/YearCalendar.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/YearCalendar/YearCalendar.js.map +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/YearCalendar/pickersYearClasses.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/YearCalendar/pickersYearClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/YearCalendar/yearCalendarClasses.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/YearCalendar/yearCalendarClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/hooks/useClearableField.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/hooks/useClearableField.js.map +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/internals/components/PickersArrowSwitcher/PickersArrowSwitcher.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/internals/components/PickersArrowSwitcher/PickersArrowSwitcher.js.map +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/internals/components/PickersArrowSwitcher/pickersArrowSwitcherClasses.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/internals/components/PickersArrowSwitcher/pickersArrowSwitcherClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/internals/components/PickersPopper.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/internals/components/PickersPopper.js.map +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/internals/components/PickersToolbar.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/internals/components/PickersToolbar.js.map +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/internals/components/pickersPopperClasses.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/internals/components/pickersPopperClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/internals/components/pickersToolbarClasses.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/internals/components/pickersToolbarClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/internals/hooks/useDesktopPicker/useDesktopPicker.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/internals/hooks/useDesktopPicker/useDesktopPicker.js.map +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/internals/hooks/useField/useField.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/internals/hooks/useField/useField.js.map +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/internals/hooks/useField/useFieldCharacterEditing.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/internals/hooks/useField/useFieldCharacterEditing.js.map +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/internals/hooks/useField/useFieldState.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/internals/hooks/useField/useFieldState.js.map +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/internals/hooks/useField/useFieldV6TextField.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/internals/hooks/useField/useFieldV6TextField.js.map +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/internals/hooks/useField/useFieldV7TextField.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/internals/hooks/useField/useFieldV7TextField.js.map +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/internals/hooks/useIsLandscape.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/internals/hooks/useIsLandscape.js.map +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/internals/hooks/useMobilePicker/useMobilePicker.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/internals/hooks/useMobilePicker/useMobilePicker.js.map +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/internals/hooks/usePicker/usePickerValue.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/internals/hooks/usePicker/usePickerValue.js.map +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/internals/hooks/usePicker/usePickerViews.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/internals/hooks/usePicker/usePickerViews.js.map +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/internals/hooks/useValueWithTimezone.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/internals/hooks/useValueWithTimezone.js.map +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/internals/hooks/useViews.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/internals/hooks/useViews.js.map +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/ClassNameGenerator/ClassNameGenerator.js +2 -0
- package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/ClassNameGenerator/ClassNameGenerator.js.map +1 -0
- package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/appendOwnerState/appendOwnerState.js +2 -0
- package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/appendOwnerState/appendOwnerState.js.map +1 -0
- package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/capitalize/capitalize.js +2 -0
- package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/capitalize/capitalize.js.map +1 -0
- package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/chainPropTypes/chainPropTypes.js +2 -0
- package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/chainPropTypes/chainPropTypes.js.map +1 -0
- package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/composeClasses/composeClasses.js +2 -0
- package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/composeClasses/composeClasses.js.map +1 -0
- package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/elementAcceptingRef/elementAcceptingRef.js +2 -0
- package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/elementAcceptingRef/elementAcceptingRef.js.map +1 -0
- package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/elementTypeAcceptingRef/elementTypeAcceptingRef.js +2 -0
- package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/elementTypeAcceptingRef/elementTypeAcceptingRef.js.map +1 -0
- package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/extractEventHandlers/extractEventHandlers.js +2 -0
- package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/extractEventHandlers/extractEventHandlers.js.map +1 -0
- package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/formatMuiErrorMessage/formatMuiErrorMessage.js +2 -0
- package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/formatMuiErrorMessage/formatMuiErrorMessage.js.map +1 -0
- package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/generateUtilityClass/generateUtilityClass.js +2 -0
- package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/generateUtilityClass/generateUtilityClass.js.map +1 -0
- package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/generateUtilityClasses/generateUtilityClasses.js +2 -0
- package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/generateUtilityClasses/generateUtilityClasses.js.map +1 -0
- package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/integerPropType/integerPropType.js +2 -0
- package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/integerPropType/integerPropType.js.map +1 -0
- package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/isHostComponent/isHostComponent.js +2 -0
- package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/isHostComponent/isHostComponent.js.map +1 -0
- package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/mergeSlotProps/mergeSlotProps.js +2 -0
- package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/mergeSlotProps/mergeSlotProps.js.map +1 -0
- package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/omitEventHandlers/omitEventHandlers.js +2 -0
- package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/omitEventHandlers/omitEventHandlers.js.map +1 -0
- package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/ownerDocument/ownerDocument.js +2 -0
- package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/ownerDocument/ownerDocument.js.map +1 -0
- package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/ponyfillGlobal/ponyfillGlobal.js +2 -0
- package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/ponyfillGlobal/ponyfillGlobal.js.map +1 -0
- package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/refType/refType.js +2 -0
- package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/refType/refType.js.map +1 -0
- package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/resolveComponentProps/resolveComponentProps.js +2 -0
- package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/resolveComponentProps/resolveComponentProps.js.map +1 -0
- package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/useControlled/useControlled.js +2 -0
- package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/useControlled/useControlled.js.map +1 -0
- package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/useEnhancedEffect/useEnhancedEffect.js +2 -0
- package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/useEnhancedEffect/useEnhancedEffect.js.map +1 -0
- package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/useEventCallback/useEventCallback.js +2 -0
- package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/useEventCallback/useEventCallback.js.map +1 -0
- package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/useForkRef/useForkRef.js +2 -0
- package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/useForkRef/useForkRef.js.map +1 -0
- package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/useId/useId.js +2 -0
- package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/useId/useId.js.map +1 -0
- package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/useSlotProps/useSlotProps.js +2 -0
- package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/useSlotProps/useSlotProps.js.map +1 -0
- package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/visuallyHidden/visuallyHidden.js +2 -0
- package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/visuallyHidden/visuallyHidden.js.map +1 -0
- package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/react-is/cjs/react-is.development.js +11 -0
- package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/react-is/cjs/react-is.development.js.map +1 -0
- package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/react-is/cjs/react-is.production.js +11 -0
- package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/react-is/cjs/react-is.production.js.map +1 -0
- package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/react-is/index.js +2 -0
- package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/react-is/index.js.map +1 -0
- package/dist/esm/node_modules/@mui/x-date-pickers/validation/useValidation.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/validation/useValidation.js.map +1 -1
- package/dist/esm/node_modules/prop-types/index.js +1 -1
- package/dist/esm/node_modules/react-slick/lib/index.js +1 -1
- package/dist/esm/node_modules/react-transition-group/esm/CSSTransition.js +1 -1
- package/dist/esm/node_modules/react-transition-group/esm/ReplaceTransition.js +1 -1
- package/dist/esm/node_modules/react-transition-group/esm/SwitchTransition.js +1 -1
- package/dist/esm/node_modules/react-transition-group/esm/Transition.js +1 -1
- package/dist/esm/node_modules/react-transition-group/esm/TransitionGroup.js +1 -1
- package/dist/esm/node_modules/react-transition-group/esm/utils/PropTypes.js +1 -1
- package/package.json +2 -1
- package/dist/esm/node_modules/@mui/utils/esm/ClassNameGenerator/ClassNameGenerator.js.map +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/HTMLElementType/HTMLElementType.js.map +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/appendOwnerState/appendOwnerState.js.map +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/capitalize/capitalize.js.map +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/chainPropTypes/chainPropTypes.js.map +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/clamp/clamp.js.map +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/composeClasses/composeClasses.js.map +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/createChainedFunction/createChainedFunction.js.map +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/debounce/debounce.js.map +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/elementAcceptingRef/elementAcceptingRef.js +0 -2
- package/dist/esm/node_modules/@mui/utils/esm/elementAcceptingRef/elementAcceptingRef.js.map +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/elementTypeAcceptingRef/elementTypeAcceptingRef.js +0 -2
- package/dist/esm/node_modules/@mui/utils/esm/elementTypeAcceptingRef/elementTypeAcceptingRef.js.map +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/exactProp/exactProp.js.map +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/extractEventHandlers/extractEventHandlers.js.map +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/formatMuiErrorMessage/formatMuiErrorMessage.js.map +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/generateUtilityClass/generateUtilityClass.js.map +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/generateUtilityClasses/generateUtilityClasses.js.map +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/getDisplayName/getDisplayName.js +0 -2
- package/dist/esm/node_modules/@mui/utils/esm/getDisplayName/getDisplayName.js.map +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/getReactElementRef/getReactElementRef.js.map +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/getScrollbarSize/getScrollbarSize.js.map +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/integerPropType/integerPropType.js.map +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/isFocusVisible/isFocusVisible.js.map +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/isHostComponent/isHostComponent.js.map +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/isMuiElement/isMuiElement.js.map +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/mergeSlotProps/mergeSlotProps.js +0 -2
- package/dist/esm/node_modules/@mui/utils/esm/mergeSlotProps/mergeSlotProps.js.map +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/omitEventHandlers/omitEventHandlers.js.map +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/ownerDocument/ownerDocument.js.map +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/ownerWindow/ownerWindow.js.map +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/ponyfillGlobal/ponyfillGlobal.js.map +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/refType/refType.js +0 -2
- package/dist/esm/node_modules/@mui/utils/esm/refType/refType.js.map +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/resolveComponentProps/resolveComponentProps.js.map +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/resolveProps/resolveProps.js.map +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/setRef/setRef.js.map +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/unsupportedProp/unsupportedProp.js.map +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/useControlled/useControlled.js.map +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/useEnhancedEffect/useEnhancedEffect.js.map +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/useEventCallback/useEventCallback.js.map +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/useForkRef/useForkRef.js.map +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/useId/useId.js.map +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/useLazyRef/useLazyRef.js.map +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/useOnMount/useOnMount.js.map +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/usePreviousProps/usePreviousProps.js.map +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/useSlotProps/useSlotProps.js.map +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/useTimeout/useTimeout.js.map +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/visuallyHidden/visuallyHidden.js.map +0 -1
- /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/ClassNameGenerator/ClassNameGenerator.js +0 -0
- /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/HTMLElementType/HTMLElementType.js +0 -0
- /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/appendOwnerState/appendOwnerState.js +0 -0
- /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/capitalize/capitalize.js +0 -0
- /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/chainPropTypes/chainPropTypes.js +0 -0
- /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/clamp/clamp.js +0 -0
- /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/composeClasses/composeClasses.js +0 -0
- /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/createChainedFunction/createChainedFunction.js +0 -0
- /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/debounce/debounce.js +0 -0
- /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/exactProp/exactProp.js +0 -0
- /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/extractEventHandlers/extractEventHandlers.js +0 -0
- /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/formatMuiErrorMessage/formatMuiErrorMessage.js +0 -0
- /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/generateUtilityClass/generateUtilityClass.js +0 -0
- /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/generateUtilityClasses/generateUtilityClasses.js +0 -0
- /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/getReactElementRef/getReactElementRef.js +0 -0
- /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/getScrollbarSize/getScrollbarSize.js +0 -0
- /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/integerPropType/integerPropType.js +0 -0
- /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/isFocusVisible/isFocusVisible.js +0 -0
- /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/isHostComponent/isHostComponent.js +0 -0
- /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/isMuiElement/isMuiElement.js +0 -0
- /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/omitEventHandlers/omitEventHandlers.js +0 -0
- /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/ownerDocument/ownerDocument.js +0 -0
- /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/ownerWindow/ownerWindow.js +0 -0
- /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/ponyfillGlobal/ponyfillGlobal.js +0 -0
- /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/resolveComponentProps/resolveComponentProps.js +0 -0
- /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/resolveProps/resolveProps.js +0 -0
- /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/setRef/setRef.js +0 -0
- /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/unsupportedProp/unsupportedProp.js +0 -0
- /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/useControlled/useControlled.js +0 -0
- /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/useEnhancedEffect/useEnhancedEffect.js +0 -0
- /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/useEventCallback/useEventCallback.js +0 -0
- /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/useForkRef/useForkRef.js +0 -0
- /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/useId/useId.js +0 -0
- /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/useLazyRef/useLazyRef.js +0 -0
- /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/useOnMount/useOnMount.js +0 -0
- /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/usePreviousProps/usePreviousProps.js +0 -0
- /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/useSlotProps/useSlotProps.js +0 -0
- /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/useTimeout/useTimeout.js +0 -0
- /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/visuallyHidden/visuallyHidden.js +0 -0
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"colorManipulator.js","sources":["../../../../../../../node_modules/@mui/system/esm/colorManipulator/colorManipulator.js"],"sourcesContent":["import _formatMuiErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\n/* eslint-disable @typescript-eslint/naming-convention */\nimport clamp from '@mui/utils/clamp';\n\n/**\n * Returns a number whose value is limited to the given range.\n * @param {number} value The value to be clamped\n * @param {number} min The lower boundary of the output range\n * @param {number} max The upper boundary of the output range\n * @returns {number} A number in the range [min, max]\n */\nfunction clampWrapper(value, min = 0, max = 1) {\n if (process.env.NODE_ENV !== 'production') {\n if (value < min || value > max) {\n console.error(`MUI: The value provided ${value} is out of range [${min}, ${max}].`);\n }\n }\n return clamp(value, min, max);\n}\n\n/**\n * Converts a color from CSS hex format to CSS rgb format.\n * @param {string} color - Hex color, i.e. #nnn or #nnnnnn\n * @returns {string} A CSS rgb color string\n */\nexport function hexToRgb(color) {\n color = color.slice(1);\n const re = new RegExp(`.{1,${color.length >= 6 ? 2 : 1}}`, 'g');\n let colors = color.match(re);\n if (colors && colors[0].length === 1) {\n colors = colors.map(n => n + n);\n }\n if (process.env.NODE_ENV !== 'production') {\n if (color.length !== color.trim().length) {\n console.error(`MUI: The color: \"${color}\" is invalid. Make sure the color input doesn't contain leading/trailing space.`);\n }\n }\n return colors ? `rgb${colors.length === 4 ? 'a' : ''}(${colors.map((n, index) => {\n return index < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1000) / 1000;\n }).join(', ')})` : '';\n}\nfunction intToHex(int) {\n const hex = int.toString(16);\n return hex.length === 1 ? `0${hex}` : hex;\n}\n\n/**\n * Returns an object with the type and values of a color.\n *\n * Note: Does not support rgb % values.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @returns {object} - A MUI color object: {type: string, values: number[]}\n */\nexport function decomposeColor(color) {\n // Idempotent\n if (color.type) {\n return color;\n }\n if (color.charAt(0) === '#') {\n return decomposeColor(hexToRgb(color));\n }\n const marker = color.indexOf('(');\n const type = color.substring(0, marker);\n if (!['rgb', 'rgba', 'hsl', 'hsla', 'color'].includes(type)) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: Unsupported \\`${color}\\` color.\\n` + 'The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().' : _formatMuiErrorMessage(9, color));\n }\n let values = color.substring(marker + 1, color.length - 1);\n let colorSpace;\n if (type === 'color') {\n values = values.split(' ');\n colorSpace = values.shift();\n if (values.length === 4 && values[3].charAt(0) === '/') {\n values[3] = values[3].slice(1);\n }\n if (!['srgb', 'display-p3', 'a98-rgb', 'prophoto-rgb', 'rec-2020'].includes(colorSpace)) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: unsupported \\`${colorSpace}\\` color space.\\n` + 'The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.' : _formatMuiErrorMessage(10, colorSpace));\n }\n } else {\n values = values.split(',');\n }\n values = values.map(value => parseFloat(value));\n return {\n type,\n values,\n colorSpace\n };\n}\n\n/**\n * Returns a channel created from the input color.\n *\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @returns {string} - The channel for the color, that can be used in rgba or hsla colors\n */\nexport const colorChannel = color => {\n const decomposedColor = decomposeColor(color);\n return decomposedColor.values.slice(0, 3).map((val, idx) => decomposedColor.type.includes('hsl') && idx !== 0 ? `${val}%` : val).join(' ');\n};\nexport const private_safeColorChannel = (color, warning) => {\n try {\n return colorChannel(color);\n } catch (error) {\n if (warning && process.env.NODE_ENV !== 'production') {\n console.warn(warning);\n }\n return color;\n }\n};\n\n/**\n * Converts a color object with type and values to a string.\n * @param {object} color - Decomposed color\n * @param {string} color.type - One of: 'rgb', 'rgba', 'hsl', 'hsla', 'color'\n * @param {array} color.values - [n,n,n] or [n,n,n,n]\n * @returns {string} A CSS color string\n */\nexport function recomposeColor(color) {\n const {\n type,\n colorSpace\n } = color;\n let {\n values\n } = color;\n if (type.includes('rgb')) {\n // Only convert the first 3 values to int (i.e. not alpha)\n values = values.map((n, i) => i < 3 ? parseInt(n, 10) : n);\n } else if (type.includes('hsl')) {\n values[1] = `${values[1]}%`;\n values[2] = `${values[2]}%`;\n }\n if (type.includes('color')) {\n values = `${colorSpace} ${values.join(' ')}`;\n } else {\n values = `${values.join(', ')}`;\n }\n return `${type}(${values})`;\n}\n\n/**\n * Converts a color from CSS rgb format to CSS hex format.\n * @param {string} color - RGB color, i.e. rgb(n, n, n)\n * @returns {string} A CSS rgb color string, i.e. #nnnnnn\n */\nexport function rgbToHex(color) {\n // Idempotent\n if (color.startsWith('#')) {\n return color;\n }\n const {\n values\n } = decomposeColor(color);\n return `#${values.map((n, i) => intToHex(i === 3 ? Math.round(255 * n) : n)).join('')}`;\n}\n\n/**\n * Converts a color from hsl format to rgb format.\n * @param {string} color - HSL color values\n * @returns {string} rgb color values\n */\nexport function hslToRgb(color) {\n color = decomposeColor(color);\n const {\n values\n } = color;\n const h = values[0];\n const s = values[1] / 100;\n const l = values[2] / 100;\n const a = s * Math.min(l, 1 - l);\n const f = (n, k = (n + h / 30) % 12) => l - a * Math.max(Math.min(k - 3, 9 - k, 1), -1);\n let type = 'rgb';\n const rgb = [Math.round(f(0) * 255), Math.round(f(8) * 255), Math.round(f(4) * 255)];\n if (color.type === 'hsla') {\n type += 'a';\n rgb.push(values[3]);\n }\n return recomposeColor({\n type,\n values: rgb\n });\n}\n/**\n * The relative brightness of any point in a color space,\n * normalized to 0 for darkest black and 1 for lightest white.\n *\n * Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @returns {number} The relative brightness of the color in the range 0 - 1\n */\nexport function getLuminance(color) {\n color = decomposeColor(color);\n let rgb = color.type === 'hsl' || color.type === 'hsla' ? decomposeColor(hslToRgb(color)).values : color.values;\n rgb = rgb.map(val => {\n if (color.type !== 'color') {\n val /= 255; // normalized\n }\n return val <= 0.03928 ? val / 12.92 : ((val + 0.055) / 1.055) ** 2.4;\n });\n\n // Truncate at 3 digits\n return Number((0.2126 * rgb[0] + 0.7152 * rgb[1] + 0.0722 * rgb[2]).toFixed(3));\n}\n\n/**\n * Calculates the contrast ratio between two colors.\n *\n * Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests\n * @param {string} foreground - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()\n * @param {string} background - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()\n * @returns {number} A contrast ratio value in the range 0 - 21.\n */\nexport function getContrastRatio(foreground, background) {\n const lumA = getLuminance(foreground);\n const lumB = getLuminance(background);\n return (Math.max(lumA, lumB) + 0.05) / (Math.min(lumA, lumB) + 0.05);\n}\n\n/**\n * Sets the absolute transparency of a color.\n * Any existing alpha values are overwritten.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @param {number} value - value to set the alpha channel to in the range 0 - 1\n * @returns {string} A CSS color string. Hex input values are returned as rgb\n */\nexport function alpha(color, value) {\n color = decomposeColor(color);\n value = clampWrapper(value);\n if (color.type === 'rgb' || color.type === 'hsl') {\n color.type += 'a';\n }\n if (color.type === 'color') {\n color.values[3] = `/${value}`;\n } else {\n color.values[3] = value;\n }\n return recomposeColor(color);\n}\nexport function private_safeAlpha(color, value, warning) {\n try {\n return alpha(color, value);\n } catch (error) {\n if (warning && process.env.NODE_ENV !== 'production') {\n console.warn(warning);\n }\n return color;\n }\n}\n\n/**\n * Darkens a color.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @param {number} coefficient - multiplier in the range 0 - 1\n * @returns {string} A CSS color string. Hex input values are returned as rgb\n */\nexport function darken(color, coefficient) {\n color = decomposeColor(color);\n coefficient = clampWrapper(coefficient);\n if (color.type.includes('hsl')) {\n color.values[2] *= 1 - coefficient;\n } else if (color.type.includes('rgb') || color.type.includes('color')) {\n for (let i = 0; i < 3; i += 1) {\n color.values[i] *= 1 - coefficient;\n }\n }\n return recomposeColor(color);\n}\nexport function private_safeDarken(color, coefficient, warning) {\n try {\n return darken(color, coefficient);\n } catch (error) {\n if (warning && process.env.NODE_ENV !== 'production') {\n console.warn(warning);\n }\n return color;\n }\n}\n\n/**\n * Lightens a color.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @param {number} coefficient - multiplier in the range 0 - 1\n * @returns {string} A CSS color string. Hex input values are returned as rgb\n */\nexport function lighten(color, coefficient) {\n color = decomposeColor(color);\n coefficient = clampWrapper(coefficient);\n if (color.type.includes('hsl')) {\n color.values[2] += (100 - color.values[2]) * coefficient;\n } else if (color.type.includes('rgb')) {\n for (let i = 0; i < 3; i += 1) {\n color.values[i] += (255 - color.values[i]) * coefficient;\n }\n } else if (color.type.includes('color')) {\n for (let i = 0; i < 3; i += 1) {\n color.values[i] += (1 - color.values[i]) * coefficient;\n }\n }\n return recomposeColor(color);\n}\nexport function private_safeLighten(color, coefficient, warning) {\n try {\n return lighten(color, coefficient);\n } catch (error) {\n if (warning && process.env.NODE_ENV !== 'production') {\n console.warn(warning);\n }\n return color;\n }\n}\n\n/**\n * Darken or lighten a color, depending on its luminance.\n * Light colors are darkened, dark colors are lightened.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @param {number} coefficient=0.15 - multiplier in the range 0 - 1\n * @returns {string} A CSS color string. Hex input values are returned as rgb\n */\nexport function emphasize(color, coefficient = 0.15) {\n return getLuminance(color) > 0.5 ? darken(color, coefficient) : lighten(color, coefficient);\n}\nexport function private_safeEmphasize(color, coefficient, warning) {\n try {\n return emphasize(color, coefficient);\n } catch (error) {\n if (warning && process.env.NODE_ENV !== 'production') {\n console.warn(warning);\n }\n return color;\n }\n}\n\n/**\n * Blend a transparent overlay color with a background color, resulting in a single\n * RGB color.\n * @param {string} background - CSS color\n * @param {string} overlay - CSS color\n * @param {number} opacity - Opacity multiplier in the range 0 - 1\n * @param {number} [gamma=1.0] - Gamma correction factor. For gamma-correct blending, 2.2 is usual.\n */\nexport function blend(background, overlay, opacity, gamma = 1.0) {\n const blendChannel = (b, o) => Math.round((b ** (1 / gamma) * (1 - opacity) + o ** (1 / gamma) * opacity) ** gamma);\n const backgroundColor = decomposeColor(background);\n const overlayColor = decomposeColor(overlay);\n const rgb = [blendChannel(backgroundColor.values[0], overlayColor.values[0]), blendChannel(backgroundColor.values[1], overlayColor.values[1]), blendChannel(backgroundColor.values[2], overlayColor.values[2])];\n return recomposeColor({\n type: 'rgb',\n values: rgb\n });\n}"],"names":["clampWrapper","value","min","max","process","env","NODE_ENV","console","error","clamp","hexToRgb","color","slice","re","RegExp","length","colors","match","map","n","trim","index","parseInt","Math","round","join","decomposeColor","type","charAt","marker","indexOf","substring","includes","Error","_formatMuiErrorMessage","colorSpace","values","split","shift","parseFloat","colorChannel","decomposedColor","val","idx","private_safeColorChannel","warning","warn","recomposeColor","i","hslToRgb","h","s","l","a","f","k","rgb","push","getLuminance","Number","toFixed","getContrastRatio","foreground","background","lumA","lumB","alpha","private_safeAlpha","darken","coefficient","private_safeDarken","lighten","private_safeLighten","emphasize","private_safeEmphasize"],"mappings":"kIAWA,SAASA,EAAaC,EAAOC,EAAM,EAAGC,EAAM,GAM1C,MAL6B,eAAzBC,QAAQC,IAAIC,WACVL,EAAQC,GAAOD,EAAQE,IACzBI,QAAQC,MAAM,2BAA2BP,sBAA0BC,MAAQC,OAGxEM,EAAMR,EAAOC,EAAKC,EAC3B,CAOO,SAASO,EAASC,GACvBA,EAAQA,EAAMC,MAAM,GACpB,MAAMC,EAAK,IAAIC,OAAO,OAAOH,EAAMI,QAAU,EAAI,EAAI,KAAM,KAC3D,IAAIC,EAASL,EAAMM,MAAMJ,GASzB,OARIG,GAA+B,IAArBA,EAAO,GAAGD,SACtBC,EAASA,EAAOE,IAAIC,GAAKA,EAAIA,IAEF,eAAzBf,QAAQC,IAAIC,UACVK,EAAMI,SAAWJ,EAAMS,OAAOL,QAChCR,QAAQC,MAAM,oBAAoBG,oFAG/BK,EAAS,MAAwB,IAAlBA,EAAOD,OAAe,IAAM,MAAMC,EAAOE,IAAI,CAACC,EAAGE,IAC9DA,EAAQ,EAAIC,SAASH,EAAG,IAAMI,KAAKC,MAAMF,SAASH,EAAG,IAAM,IAAM,KAAQ,KAC/EM,KAAK,SAAW,EACrB,CAaO,SAASC,EAAef,GAE7B,GAAIA,EAAMgB,KAC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AAef,GACvB0D,EAAcrE,EAAaqE,GACvB1D,EAAMgB,KAAKK,SAAS,OACtBrB,EAAMyB,OAAO,KAAO,IAAMzB,EAAMyB,OAAO,IAAMiC,OACxC,GAAI1D,EAAMgB,KAAKK,SAAS,OAC7B,IAAK,IAAIgB,EAAI,EAAGA,EAAI,EAAGA,GAAK,EAC1BrC,EAAMyB,OAAOY,KAAO,IAAMrC,EAAMyB,OAAOY,IAAMqB,OAE1C,GAAI1D,EAAMgB,KAAKK,SAAS,SAC7B,IAAK,IAAIgB,EAAI,EAAGA,EAAI,EAAGA,GAAK,EAC1BrC,EAAMyB,OAAOY,KAAO,EAAIrC,EAAMyB,OAAOY,IAAMqB,EAG/C,OAAOtB,EAAepC,EACxB,CACO,SAAS6D,EAAoB7D,EAAO0D,EAAaxB,GACtD,IACE,OAAO0B,EAAQ5D,EAAO0D,EACvB,CAAC,MAAO7D,GAIP,OAHIqC,GAAoC,eAAzBzC,QAAQC,IAAIC,UACzBC,QAAQuC,KAAKD,GAERlC,CACR,CACH,CASO,SAAS8D,EAAU9D,EAAO0D,EAAc,KAC7C,OAAOX,EAAa/C,GAAS,GAAMyD,EAAOzD,EAAO0D,GAAeE,EAAQ5D,EAAO0D,EACjF,CACO,SAASK,EAAsB/D,EAAO0D,EAAaxB,GACxD,IACE,OAAO4B,EAAU9D,EAAO0D,EACzB,CAAC,MAAO7D,GAIP,OAHIqC,GAAoC,eAAzBzC,QAAQC,IAAIC,UACzBC,QAAQuC,KAAKD,GAERlC,CACR,CACH"}
|
1
|
+
{"version":3,"file":"colorManipulator.js","sources":["../../../../../../../node_modules/@mui/system/esm/colorManipulator/colorManipulator.js"],"sourcesContent":["import _formatMuiErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\n/* eslint-disable @typescript-eslint/naming-convention */\nimport clamp from '@mui/utils/clamp';\n\n/**\n * Returns a number whose value is limited to the given range.\n * @param {number} value The value to be clamped\n * @param {number} min The lower boundary of the output range\n * @param {number} max The upper boundary of the output range\n * @returns {number} A number in the range [min, max]\n */\nfunction clampWrapper(value, min = 0, max = 1) {\n if (process.env.NODE_ENV !== 'production') {\n if (value < min || value > max) {\n console.error(`MUI: The value provided ${value} is out of range [${min}, ${max}].`);\n }\n }\n return clamp(value, min, max);\n}\n\n/**\n * Converts a color from CSS hex format to CSS rgb format.\n * @param {string} color - Hex color, i.e. #nnn or #nnnnnn\n * @returns {string} A CSS rgb color string\n */\nexport function hexToRgb(color) {\n color = color.slice(1);\n const re = new RegExp(`.{1,${color.length >= 6 ? 2 : 1}}`, 'g');\n let colors = color.match(re);\n if (colors && colors[0].length === 1) {\n colors = colors.map(n => n + n);\n }\n if (process.env.NODE_ENV !== 'production') {\n if (color.length !== color.trim().length) {\n console.error(`MUI: The color: \"${color}\" is invalid. Make sure the color input doesn't contain leading/trailing space.`);\n }\n }\n return colors ? `rgb${colors.length === 4 ? 'a' : ''}(${colors.map((n, index) => {\n return index < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1000) / 1000;\n }).join(', ')})` : '';\n}\nfunction intToHex(int) {\n const hex = int.toString(16);\n return hex.length === 1 ? `0${hex}` : hex;\n}\n\n/**\n * Returns an object with the type and values of a color.\n *\n * Note: Does not support rgb % values.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @returns {object} - A MUI color object: {type: string, values: number[]}\n */\nexport function decomposeColor(color) {\n // Idempotent\n if (color.type) {\n return color;\n }\n if (color.charAt(0) === '#') {\n return decomposeColor(hexToRgb(color));\n }\n const marker = color.indexOf('(');\n const type = color.substring(0, marker);\n if (!['rgb', 'rgba', 'hsl', 'hsla', 'color'].includes(type)) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: Unsupported \\`${color}\\` color.\\n` + 'The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().' : _formatMuiErrorMessage(9, color));\n }\n let values = color.substring(marker + 1, color.length - 1);\n let colorSpace;\n if (type === 'color') {\n values = values.split(' ');\n colorSpace = values.shift();\n if (values.length === 4 && values[3].charAt(0) === '/') {\n values[3] = values[3].slice(1);\n }\n if (!['srgb', 'display-p3', 'a98-rgb', 'prophoto-rgb', 'rec-2020'].includes(colorSpace)) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: unsupported \\`${colorSpace}\\` color space.\\n` + 'The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.' : _formatMuiErrorMessage(10, colorSpace));\n }\n } else {\n values = values.split(',');\n }\n values = values.map(value => parseFloat(value));\n return {\n type,\n values,\n colorSpace\n };\n}\n\n/**\n * Returns a channel created from the input color.\n *\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @returns {string} - The channel for the color, that can be used in rgba or hsla colors\n */\nexport const colorChannel = color => {\n const decomposedColor = decomposeColor(color);\n return decomposedColor.values.slice(0, 3).map((val, idx) => decomposedColor.type.includes('hsl') && idx !== 0 ? `${val}%` : val).join(' ');\n};\nexport const private_safeColorChannel = (color, warning) => {\n try {\n return colorChannel(color);\n } catch (error) {\n if (warning && process.env.NODE_ENV !== 'production') {\n console.warn(warning);\n }\n return color;\n }\n};\n\n/**\n * Converts a color object with type and values to a string.\n * @param {object} color - Decomposed color\n * @param {string} color.type - One of: 'rgb', 'rgba', 'hsl', 'hsla', 'color'\n * @param {array} color.values - [n,n,n] or [n,n,n,n]\n * @returns {string} A CSS color string\n */\nexport function recomposeColor(color) {\n const {\n type,\n colorSpace\n } = color;\n let {\n values\n } = color;\n if (type.includes('rgb')) {\n // Only convert the first 3 values to int (i.e. not alpha)\n values = values.map((n, i) => i < 3 ? parseInt(n, 10) : n);\n } else if (type.includes('hsl')) {\n values[1] = `${values[1]}%`;\n values[2] = `${values[2]}%`;\n }\n if (type.includes('color')) {\n values = `${colorSpace} ${values.join(' ')}`;\n } else {\n values = `${values.join(', ')}`;\n }\n return `${type}(${values})`;\n}\n\n/**\n * Converts a color from CSS rgb format to CSS hex format.\n * @param {string} color - RGB color, i.e. rgb(n, n, n)\n * @returns {string} A CSS rgb color string, i.e. #nnnnnn\n */\nexport function rgbToHex(color) {\n // Idempotent\n if (color.startsWith('#')) {\n return color;\n }\n const {\n values\n } = decomposeColor(color);\n return `#${values.map((n, i) => intToHex(i === 3 ? Math.round(255 * n) : n)).join('')}`;\n}\n\n/**\n * Converts a color from hsl format to rgb format.\n * @param {string} color - HSL color values\n * @returns {string} rgb color values\n */\nexport function hslToRgb(color) {\n color = decomposeColor(color);\n const {\n values\n } = color;\n const h = values[0];\n const s = values[1] / 100;\n const l = values[2] / 100;\n const a = s * Math.min(l, 1 - l);\n const f = (n, k = (n + h / 30) % 12) => l - a * Math.max(Math.min(k - 3, 9 - k, 1), -1);\n let type = 'rgb';\n const rgb = [Math.round(f(0) * 255), Math.round(f(8) * 255), Math.round(f(4) * 255)];\n if (color.type === 'hsla') {\n type += 'a';\n rgb.push(values[3]);\n }\n return recomposeColor({\n type,\n values: rgb\n });\n}\n/**\n * The relative brightness of any point in a color space,\n * normalized to 0 for darkest black and 1 for lightest white.\n *\n * Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @returns {number} The relative brightness of the color in the range 0 - 1\n */\nexport function getLuminance(color) {\n color = decomposeColor(color);\n let rgb = color.type === 'hsl' || color.type === 'hsla' ? decomposeColor(hslToRgb(color)).values : color.values;\n rgb = rgb.map(val => {\n if (color.type !== 'color') {\n val /= 255; // normalized\n }\n return val <= 0.03928 ? val / 12.92 : ((val + 0.055) / 1.055) ** 2.4;\n });\n\n // Truncate at 3 digits\n return Number((0.2126 * rgb[0] + 0.7152 * rgb[1] + 0.0722 * rgb[2]).toFixed(3));\n}\n\n/**\n * Calculates the contrast ratio between two colors.\n *\n * Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests\n * @param {string} foreground - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()\n * @param {string} background - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()\n * @returns {number} A contrast ratio value in the range 0 - 21.\n */\nexport function getContrastRatio(foreground, background) {\n const lumA = getLuminance(foreground);\n const lumB = getLuminance(background);\n return (Math.max(lumA, lumB) + 0.05) / (Math.min(lumA, lumB) + 0.05);\n}\n\n/**\n * Sets the absolute transparency of a color.\n * Any existing alpha values are overwritten.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @param {number} value - value to set the alpha channel to in the range 0 - 1\n * @returns {string} A CSS color string. Hex input values are returned as rgb\n */\nexport function alpha(color, value) {\n color = decomposeColor(color);\n value = clampWrapper(value);\n if (color.type === 'rgb' || color.type === 'hsl') {\n color.type += 'a';\n }\n if (color.type === 'color') {\n color.values[3] = `/${value}`;\n } else {\n color.values[3] = value;\n }\n return recomposeColor(color);\n}\nexport function private_safeAlpha(color, value, warning) {\n try {\n return alpha(color, value);\n } catch (error) {\n if (warning && process.env.NODE_ENV !== 'production') {\n console.warn(warning);\n }\n return color;\n }\n}\n\n/**\n * Darkens a color.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @param {number} coefficient - multiplier in the range 0 - 1\n * @returns {string} A CSS color string. Hex input values are returned as rgb\n */\nexport function darken(color, coefficient) {\n color = decomposeColor(color);\n coefficient = clampWrapper(coefficient);\n if (color.type.includes('hsl')) {\n color.values[2] *= 1 - coefficient;\n } else if (color.type.includes('rgb') || color.type.includes('color')) {\n for (let i = 0; i < 3; i += 1) {\n color.values[i] *= 1 - coefficient;\n }\n }\n return recomposeColor(color);\n}\nexport function private_safeDarken(color, coefficient, warning) {\n try {\n return darken(color, coefficient);\n } catch (error) {\n if (warning && process.env.NODE_ENV !== 'production') {\n console.warn(warning);\n }\n return color;\n }\n}\n\n/**\n * Lightens a color.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @param {number} coefficient - multiplier in the range 0 - 1\n * @returns {string} A CSS color string. Hex input values are returned as rgb\n */\nexport function lighten(color, coefficient) {\n color = decomposeColor(color);\n coefficient = clampWrapper(coefficient);\n if (color.type.includes('hsl')) {\n color.values[2] += (100 - color.values[2]) * coefficient;\n } else if (color.type.includes('rgb')) {\n for (let i = 0; i < 3; i += 1) {\n color.values[i] += (255 - color.values[i]) * coefficient;\n }\n } else if (color.type.includes('color')) {\n for (let i = 0; i < 3; i += 1) {\n color.values[i] += (1 - color.values[i]) * coefficient;\n }\n }\n return recomposeColor(color);\n}\nexport function private_safeLighten(color, coefficient, warning) {\n try {\n return lighten(color, coefficient);\n } catch (error) {\n if (warning && process.env.NODE_ENV !== 'production') {\n console.warn(warning);\n }\n return color;\n }\n}\n\n/**\n * Darken or lighten a color, depending on its luminance.\n * Light colors are darkened, dark colors are lightened.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @param {number} coefficient=0.15 - multiplier in the range 0 - 1\n * @returns {string} A CSS color string. Hex input values are returned as rgb\n */\nexport function emphasize(color, coefficient = 0.15) {\n return getLuminance(color) > 0.5 ? darken(color, coefficient) : lighten(color, coefficient);\n}\nexport function private_safeEmphasize(color, coefficient, warning) {\n try {\n return emphasize(color, coefficient);\n } catch (error) {\n if (warning && process.env.NODE_ENV !== 'production') {\n console.warn(warning);\n }\n return color;\n }\n}\n\n/**\n * Blend a transparent overlay color with a background color, resulting in a single\n * RGB color.\n * @param {string} background - CSS color\n * @param {string} overlay - CSS color\n * @param {number} opacity - Opacity multiplier in the range 0 - 1\n * @param {number} [gamma=1.0] - Gamma correction factor. For gamma-correct blending, 2.2 is usual.\n */\nexport function blend(background, overlay, opacity, gamma = 1.0) {\n const blendChannel = (b, o) => Math.round((b ** (1 / gamma) * (1 - opacity) + o ** (1 / gamma) * opacity) ** gamma);\n const backgroundColor = decomposeColor(background);\n const overlayColor = decomposeColor(overlay);\n const rgb = [blendChannel(backgroundColor.values[0], overlayColor.values[0]), blendChannel(backgroundColor.values[1], overlayColor.values[1]), blendChannel(backgroundColor.values[2], overlayColor.values[2])];\n return recomposeColor({\n type: 'rgb',\n values: rgb\n });\n}"],"names":["clampWrapper","value","min","max","process","env","NODE_ENV","console","error","clamp","hexToRgb","color","slice","re","RegExp","length","colors","match","map","n","trim","index","parseInt","Math","round","join","decomposeColor","type","charAt","marker","indexOf","substring","includes","Error","_formatMuiErrorMessage","colorSpace","values","split","shift","parseFloat","colorChannel","decomposedColor","val","idx","private_safeColorChannel","warning","warn","recomposeColor","i","hslToRgb","h","s","l","a","f","k","rgb","push","getLuminance","Number","toFixed","getContrastRatio","foreground","background","lumA","lumB","alpha","private_safeAlpha","darken","coefficient","private_safeDarken","lighten","private_safeLighten","emphasize","private_safeEmphasize"],"mappings":"gKAWA,SAASA,EAAaC,EAAOC,EAAM,EAAGC,EAAM,GAM1C,MAL6B,eAAzBC,QAAQC,IAAIC,WACVL,EAAQC,GAAOD,EAAQE,IACzBI,QAAQC,MAAM,2BAA2BP,sBAA0BC,MAAQC,OAGxEM,EAAMR,EAAOC,EAAKC,EAC3B,CAOO,SAASO,EAASC,GACvBA,EAAQA,EAAMC,MAAM,GACpB,MAAMC,EAAK,IAAIC,OAAO,OAAOH,EAAMI,QAAU,EAAI,EAAI,KAAM,KAC3D,IAAIC,EAASL,EAAMM,MAAMJ,GASzB,OARIG,GAA+B,IAArBA,EAAO,GAAGD,SACtBC,EAASA,EAAOE,IAAIC,GAAKA,EAAIA,IAEF,eAAzBf,QAAQC,IAAIC,UACVK,EAAMI,SAAWJ,EAAMS,OAAOL,QAChCR,QAAQC,MAAM,oBAAoBG,oFAG/BK,EAAS,MAAwB,IAAlBA,EAAOD,OAAe,IAAM,MAAMC,EAAOE,IAAI,CAACC,EA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EACtB,CAAC,MAAO7D,GAIP,OAHIqC,GAAoC,eAAzBzC,QAAQC,IAAIC,UACzBC,QAAQuC,KAAKD,GAERlC,CACR,CACH,CAQO,SAAS4D,EAAQ5D,EAAO0D,GAG7B,GAFA1D,EAAQe,EAAef,GACvB0D,EAAcrE,EAAaqE,GACvB1D,EAAMgB,KAAKK,SAAS,OACtBrB,EAAMyB,OAAO,KAAO,IAAMzB,EAAMyB,OAAO,IAAMiC,OACxC,GAAI1D,EAAMgB,KAAKK,SAAS,OAC7B,IAAK,IAAIgB,EAAI,EAAGA,EAAI,EAAGA,GAAK,EAC1BrC,EAAMyB,OAAOY,KAAO,IAAMrC,EAAMyB,OAAOY,IAAMqB,OAE1C,GAAI1D,EAAMgB,KAAKK,SAAS,SAC7B,IAAK,IAAIgB,EAAI,EAAGA,EAAI,EAAGA,GAAK,EAC1BrC,EAAMyB,OAAOY,KAAO,EAAIrC,EAAMyB,OAAOY,IAAMqB,EAG/C,OAAOtB,EAAepC,EACxB,CACO,SAAS6D,EAAoB7D,EAAO0D,EAAaxB,GACtD,IACE,OAAO0B,EAAQ5D,EAAO0D,EACvB,CAAC,MAAO7D,GAIP,OAHIqC,GAAoC,eAAzBzC,QAAQC,IAAIC,UACzBC,QAAQuC,KAAKD,GAERlC,CACR,CACH,CASO,SAAS8D,EAAU9D,EAAO0D,EAAc,KAC7C,OAAOX,EAAa/C,GAAS,GAAMyD,EAAOzD,EAAO0D,GAAeE,EAAQ5D,EAAO0D,EACjF,CACO,SAASK,EAAsB/D,EAAO0D,EAAaxB,GACxD,IACE,OAAO4B,EAAU9D,EAAO0D,EACzB,CAAC,MAAO7D,GAIP,OAHIqC,GAAoC,eAAzBzC,QAAQC,IAAIC,UACzBC,QAAQuC,KAAKD,GAERlC,CACR,CACH"}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import
|
1
|
+
import e,{internal_mutateStyles as t,internal_serializeStyles as r}from"../../../styled-engine/index.js";import{isPlainObject as o}from"../../node_modules/@mui/utils/esm/deepmerge/deepmerge.js";import n from"../../node_modules/@mui/utils/esm/capitalize/capitalize.js";import s from"../../node_modules/@mui/utils/esm/getDisplayName/getDisplayName.js";import i from"../createTheme/createTheme.js";import u from"../styleFunctionSx/styleFunctionSx.js";import"../styleFunctionSx/defaultSxConfig.js";import l from"../preprocessStyles.js";const a=i();function m(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function f(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function c(e){return e?(t,r)=>r[e]:null}function p(e,t,o){const n="function"==typeof t?t(e):t;if(Array.isArray(n))return n.flatMap(t=>p(e,t,o));if(Array.isArray(n?.variants)){let t;if(n.isProcessed)t=o?f(n.style,o):n.style;else{const{variants:e,...s}=n;t=o?f(r(s),o):s}return y(e,n.variants,[t],o)}return n?.isProcessed?o?f(r(n.style),o):n.style:o?f(r(n),o):n}function y(e,t,o=[],n=void 0){let s;e:for(let i=0;i<t.length;i+=1){const u=t[i];if("function"==typeof u.props){if(s??={...e,...e.ownerState,ownerState:e.ownerState},!u.props(s))continue}else for(const t in u.props)if(e[t]!==u.props[t]&&e.ownerState?.[t]!==u.props[t])continue e;"function"==typeof u.style?(s??={...e,...e.ownerState,ownerState:e.ownerState},o.push(n?f(r(u.style(s)),n):u.style(s))):o.push(n?f(r(u.style),n):u.style)}return o}function d(r={}){const{themeId:i,defaultTheme:d=a,rootShouldForwardProp:v=m,slotShouldForwardProp:S=m}=r;function g(e){!function(e,t,r){e.theme=function(e){for(const t in e)return!1;return!0}(e.theme)?r:e.theme[t]||e.theme}(e,i,d)}return(r,i={})=>{t(r,e=>e.filter(e=>e!==u));const{name:a,slot:d,skipVariantsResolver:C,skipSx:A,overridesResolver:N=c(w(d)),...j}=i,x=a&&a.startsWith("Mui")||d?"components":"custom",_=void 0!==C?C:d&&"Root"!==d&&"root"!==d||!1,$=A||!1;let F=m;"Root"===d||"root"===d?F=v:d?F=S:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(r)&&(F=void 0);const L=e(r,{shouldForwardProp:F,label:h(a,d),...j}),P=e=>{if(e.__emotion_real===e)return e;if("function"==typeof e)return function(t){return p(t,e,t.theme.modularCssLayers?x:void 0)};if(o(e)){const t=l(e);return function(e){return t.variants?p(e,t,e.theme.modularCssLayers?x:void 0):e.theme.modularCssLayers?f(t.style,x):t.style}}return e},R=(...e)=>{const t=[],o=e.map(P),i=[];if(t.push(g),a&&N&&i.push(function(e){const t=e.theme,r=t.components?.[a]?.styleOverrides;if(!r)return null;const o={};for(const t in r)o[t]=p(e,r[t],e.theme.modularCssLayers?"theme":void 0);return N(e,o)}),a&&!_&&i.push(function(e){const t=e.theme,r=t?.components?.[a]?.variants;return r?y(e,r,[],e.theme.modularCssLayers?"theme":void 0):null}),$||i.push(u),Array.isArray(o[0])){const e=o.shift(),r=new Array(t.length).fill(""),n=new Array(i.length).fill("");let s;s=[...r,...e,...n],s.raw=[...r,...e.raw,...n],t.unshift(s)}const l=[...t,...o,...i],m=L(...l);return r.muiName&&(m.muiName=r.muiName),"production"!==process.env.NODE_ENV&&(m.displayName=function(e,t,r){if(e)return`${e}${n(t||"")}`;return`Styled(${s(r)})`}(a,d,r)),m};return L.withConfig&&(R.withConfig=L.withConfig),R}}function h(e,t){let r;return"production"!==process.env.NODE_ENV&&e&&(r=`${e}-${w(t||"Root")}`),r}function w(e){return e?e.charAt(0).toLowerCase()+e.slice(1):e}export{d as default,m as shouldForwardProp,a as systemDefaultTheme};
|
2
2
|
//# sourceMappingURL=createStyled.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"createStyled.js","sources":["../../../../../../../node_modules/@mui/system/esm/createStyled/createStyled.js"],"sourcesContent":["import styledEngineStyled, { internal_mutateStyles as mutateStyles, internal_serializeStyles as serializeStyles } from '@mui/styled-engine';\nimport { isPlainObject } from '@mui/utils/deepmerge';\nimport capitalize from '@mui/utils/capitalize';\nimport getDisplayName from '@mui/utils/getDisplayName';\nimport createTheme from \"../createTheme/index.js\";\nimport styleFunctionSx from \"../styleFunctionSx/index.js\";\nimport preprocessStyles from \"../preprocessStyles.js\";\n\n/* eslint-disable no-underscore-dangle */\n/* eslint-disable no-labels */\n/* eslint-disable no-lone-blocks */\n\nexport const systemDefaultTheme = createTheme();\n\n// Update /system/styled/#api in case if this changes\nexport function shouldForwardProp(prop) {\n return prop !== 'ownerState' && prop !== 'theme' && prop !== 'sx' && prop !== 'as';\n}\nfunction shallowLayer(serialized, layerName) {\n if (layerName && serialized && typeof serialized === 'object' && serialized.styles && !serialized.styles.startsWith('@layer') // only add the layer if it is not already there.\n ) {\n serialized.styles = `@layer ${layerName}{${String(serialized.styles)}}`;\n }\n return serialized;\n}\nfunction defaultOverridesResolver(slot) {\n if (!slot) {\n return null;\n }\n return (_props, styles) => styles[slot];\n}\nfunction attachTheme(props, themeId, defaultTheme) {\n props.theme = isObjectEmpty(props.theme) ? defaultTheme : props.theme[themeId] || props.theme;\n}\nfunction processStyle(props, style, layerName) {\n /*\n * Style types:\n * - null/undefined\n * - string\n * - CSS style object: { [cssKey]: [cssValue], variants }\n * - Processed style object: { style, variants, isProcessed: true }\n * - Array of any of the above\n */\n\n const resolvedStyle = typeof style === 'function' ? style(props) : style;\n if (Array.isArray(resolvedStyle)) {\n return resolvedStyle.flatMap(subStyle => processStyle(props, subStyle, layerName));\n }\n if (Array.isArray(resolvedStyle?.variants)) {\n let rootStyle;\n if (resolvedStyle.isProcessed) {\n rootStyle = layerName ? shallowLayer(resolvedStyle.style, layerName) : resolvedStyle.style;\n } else {\n const {\n variants,\n ...otherStyles\n } = resolvedStyle;\n rootStyle = layerName ? shallowLayer(serializeStyles(otherStyles), layerName) : otherStyles;\n }\n return processStyleVariants(props, resolvedStyle.variants, [rootStyle], layerName);\n }\n if (resolvedStyle?.isProcessed) {\n return layerName ? shallowLayer(serializeStyles(resolvedStyle.style), layerName) : resolvedStyle.style;\n }\n return layerName ? shallowLayer(serializeStyles(resolvedStyle), layerName) : resolvedStyle;\n}\nfunction processStyleVariants(props, variants, results = [], layerName = undefined) {\n let mergedState; // We might not need it, initialized lazily\n\n variantLoop: for (let i = 0; i < variants.length; i += 1) {\n const variant = variants[i];\n if (typeof variant.props === 'function') {\n mergedState ??= {\n ...props,\n ...props.ownerState,\n ownerState: props.ownerState\n };\n if (!variant.props(mergedState)) {\n continue;\n }\n } else {\n for (const key in variant.props) {\n if (props[key] !== variant.props[key] && props.ownerState?.[key] !== variant.props[key]) {\n continue variantLoop;\n }\n }\n }\n if (typeof variant.style === 'function') {\n mergedState ??= {\n ...props,\n ...props.ownerState,\n ownerState: props.ownerState\n };\n results.push(layerName ? shallowLayer(serializeStyles(variant.style(mergedState)), layerName) : variant.style(mergedState));\n } else {\n results.push(layerName ? shallowLayer(serializeStyles(variant.style), layerName) : variant.style);\n }\n }\n return results;\n}\nexport default function createStyled(input = {}) {\n const {\n themeId,\n defaultTheme = systemDefaultTheme,\n rootShouldForwardProp = shouldForwardProp,\n slotShouldForwardProp = shouldForwardProp\n } = input;\n function styleAttachTheme(props) {\n attachTheme(props, themeId, defaultTheme);\n }\n const styled = (tag, inputOptions = {}) => {\n // If `tag` is already a styled component, filter out the `sx` style function\n // to prevent unnecessary styles generated by the composite components.\n mutateStyles(tag, styles => styles.filter(style => style !== styleFunctionSx));\n const {\n name: componentName,\n slot: componentSlot,\n skipVariantsResolver: inputSkipVariantsResolver,\n skipSx: inputSkipSx,\n // TODO v6: remove `lowercaseFirstLetter()` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n overridesResolver = defaultOverridesResolver(lowercaseFirstLetter(componentSlot)),\n ...options\n } = inputOptions;\n const layerName = componentName && componentName.startsWith('Mui') || !!componentSlot ? 'components' : 'custom';\n\n // if skipVariantsResolver option is defined, take the value, otherwise, true for root and false for other slots.\n const skipVariantsResolver = inputSkipVariantsResolver !== undefined ? inputSkipVariantsResolver :\n // TODO v6: remove `Root` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n componentSlot && componentSlot !== 'Root' && componentSlot !== 'root' || false;\n const skipSx = inputSkipSx || false;\n let shouldForwardPropOption = shouldForwardProp;\n\n // TODO v6: remove `Root` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n if (componentSlot === 'Root' || componentSlot === 'root') {\n shouldForwardPropOption = rootShouldForwardProp;\n } else if (componentSlot) {\n // any other slot specified\n shouldForwardPropOption = slotShouldForwardProp;\n } else if (isStringTag(tag)) {\n // for string (html) tag, preserve the behavior in emotion & styled-components.\n shouldForwardPropOption = undefined;\n }\n const defaultStyledResolver = styledEngineStyled(tag, {\n shouldForwardProp: shouldForwardPropOption,\n label: generateStyledLabel(componentName, componentSlot),\n ...options\n });\n const transformStyle = style => {\n // - On the server Emotion doesn't use React.forwardRef for creating components, so the created\n // component stays as a function. This condition makes sure that we do not interpolate functions\n // which are basically components used as a selectors.\n // - `style` could be a styled component from a babel plugin for component selectors, This condition\n // makes sure that we do not interpolate them.\n if (style.__emotion_real === style) {\n return style;\n }\n if (typeof style === 'function') {\n return function styleFunctionProcessor(props) {\n return processStyle(props, style, props.theme.modularCssLayers ? layerName : undefined);\n };\n }\n if (isPlainObject(style)) {\n const serialized = preprocessStyles(style);\n return function styleObjectProcessor(props) {\n if (!serialized.variants) {\n return props.theme.modularCssLayers ? shallowLayer(serialized.style, layerName) : serialized.style;\n }\n return processStyle(props, serialized, props.theme.modularCssLayers ? layerName : undefined);\n };\n }\n return style;\n };\n const muiStyledResolver = (...expressionsInput) => {\n const expressionsHead = [];\n const expressionsBody = expressionsInput.map(transformStyle);\n const expressionsTail = [];\n\n // Preprocess `props` to set the scoped theme value.\n // This must run before any other expression.\n expressionsHead.push(styleAttachTheme);\n if (componentName && overridesResolver) {\n expressionsTail.push(function styleThemeOverrides(props) {\n const theme = props.theme;\n const styleOverrides = theme.components?.[componentName]?.styleOverrides;\n if (!styleOverrides) {\n return null;\n }\n const resolvedStyleOverrides = {};\n\n // TODO: v7 remove iteration and use `resolveStyleArg(styleOverrides[slot])` directly\n // eslint-disable-next-line guard-for-in\n for (const slotKey in styleOverrides) {\n resolvedStyleOverrides[slotKey] = processStyle(props, styleOverrides[slotKey], props.theme.modularCssLayers ? 'theme' : undefined);\n }\n return overridesResolver(props, resolvedStyleOverrides);\n });\n }\n if (componentName && !skipVariantsResolver) {\n expressionsTail.push(function styleThemeVariants(props) {\n const theme = props.theme;\n const themeVariants = theme?.components?.[componentName]?.variants;\n if (!themeVariants) {\n return null;\n }\n return processStyleVariants(props, themeVariants, [], props.theme.modularCssLayers ? 'theme' : undefined);\n });\n }\n if (!skipSx) {\n expressionsTail.push(styleFunctionSx);\n }\n\n // This function can be called as a tagged template, so the first argument would contain\n // CSS `string[]` values.\n if (Array.isArray(expressionsBody[0])) {\n const inputStrings = expressionsBody.shift();\n\n // We need to add placeholders in the tagged template for the custom functions we have\n // possibly added (attachTheme, overrides, variants, and sx).\n const placeholdersHead = new Array(expressionsHead.length).fill('');\n const placeholdersTail = new Array(expressionsTail.length).fill('');\n let outputStrings;\n // prettier-ignore\n {\n outputStrings = [...placeholdersHead, ...inputStrings, ...placeholdersTail];\n outputStrings.raw = [...placeholdersHead, ...inputStrings.raw, ...placeholdersTail];\n }\n\n // The only case where we put something before `attachTheme`\n expressionsHead.unshift(outputStrings);\n }\n const expressions = [...expressionsHead, ...expressionsBody, ...expressionsTail];\n const Component = defaultStyledResolver(...expressions);\n if (tag.muiName) {\n Component.muiName = tag.muiName;\n }\n if (process.env.NODE_ENV !== 'production') {\n Component.displayName = generateDisplayName(componentName, componentSlot, tag);\n }\n return Component;\n };\n if (defaultStyledResolver.withConfig) {\n muiStyledResolver.withConfig = defaultStyledResolver.withConfig;\n }\n return muiStyledResolver;\n };\n return styled;\n}\nfunction generateDisplayName(componentName, componentSlot, tag) {\n if (componentName) {\n return `${componentName}${capitalize(componentSlot || '')}`;\n }\n return `Styled(${getDisplayName(tag)})`;\n}\nfunction generateStyledLabel(componentName, componentSlot) {\n let label;\n if (process.env.NODE_ENV !== 'production') {\n if (componentName) {\n // TODO v6: remove `lowercaseFirstLetter()` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n label = `${componentName}-${lowercaseFirstLetter(componentSlot || 'Root')}`;\n }\n }\n return label;\n}\nfunction isObjectEmpty(object) {\n // eslint-disable-next-line\n for (const _ in object) {\n return false;\n }\n return true;\n}\n\n// https://github.com/emotion-js/emotion/blob/26ded6109fcd8ca9875cc2ce4564fee678a3f3c5/packages/styled/src/utils.js#L40\nfunction isStringTag(tag) {\n return typeof tag === 'string' &&\n // 96 is one less than the char code\n // for \"a\" so this is checking that\n // it's a lowercase character\n tag.charCodeAt(0) > 96;\n}\nfunction lowercaseFirstLetter(string) {\n if (!string) {\n return string;\n }\n return string.charAt(0).toLowerCase() + string.slice(1);\n}"],"names":["systemDefaultTheme","createTheme","shouldForwardProp","prop","shallowLayer","serialized","layerName","styles","startsWith","String","defaultOverridesResolver","slot","_props","processStyle","props","style","resolvedStyle","Array","isArray","flatMap","subStyle","variants","rootStyle","isProcessed","otherStyles","serializeStyles","processStyleVariants","results","undefined","mergedState","variantLoop","i","length","variant","ownerState","key","push","createStyled","input","themeId","defaultTheme","rootShouldForwardProp","slotShouldForwardProp","styleAttachTheme","theme","object","_","isObjectEmpty","attachTheme","tag","inputOptions","mutateStyles","filter","styleFunctionSx","name","componentName","componentSlot","skipVariantsResolver","inputSkipVariantsResolver","skipSx","inputSkipSx","overridesResolver","lowercaseFirstLetter","options","shouldForwardPropOption","charCodeAt","isStringTag","defaultStyledResolver","styledEngineStyled","label","generateStyledLabel","transformStyle","__emotion_real","modularCssLayers","isPlainObject","preprocessStyles","muiStyledResolver","expressionsInput","expressionsHead","expressionsBody","map","expressionsTail","styleOverrides","components","resolvedStyleOverrides","slotKey","themeVariants","inputStrings","shift","placeholdersHead","fill","placeholdersTail","outputStrings","raw","unshift","expressions","Component","muiName","process","env","NODE_ENV","displayName","capitalize","getDisplayName","generateD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1
|
+
{"version":3,"file":"createStyled.js","sources":["../../../../../../../node_modules/@mui/system/esm/createStyled/createStyled.js"],"sourcesContent":["import styledEngineStyled, { internal_mutateStyles as mutateStyles, internal_serializeStyles as serializeStyles } from '@mui/styled-engine';\nimport { isPlainObject } from '@mui/utils/deepmerge';\nimport capitalize from '@mui/utils/capitalize';\nimport getDisplayName from '@mui/utils/getDisplayName';\nimport createTheme from \"../createTheme/index.js\";\nimport styleFunctionSx from \"../styleFunctionSx/index.js\";\nimport preprocessStyles from \"../preprocessStyles.js\";\n\n/* eslint-disable no-underscore-dangle */\n/* eslint-disable no-labels */\n/* eslint-disable no-lone-blocks */\n\nexport const systemDefaultTheme = createTheme();\n\n// Update /system/styled/#api in case if this changes\nexport function shouldForwardProp(prop) {\n return prop !== 'ownerState' && prop !== 'theme' && prop !== 'sx' && prop !== 'as';\n}\nfunction shallowLayer(serialized, layerName) {\n if (layerName && serialized && typeof serialized === 'object' && serialized.styles && !serialized.styles.startsWith('@layer') // only add the layer if it is not already there.\n ) {\n serialized.styles = `@layer ${layerName}{${String(serialized.styles)}}`;\n }\n return serialized;\n}\nfunction defaultOverridesResolver(slot) {\n if (!slot) {\n return null;\n }\n return (_props, styles) => styles[slot];\n}\nfunction attachTheme(props, themeId, defaultTheme) {\n props.theme = isObjectEmpty(props.theme) ? defaultTheme : props.theme[themeId] || props.theme;\n}\nfunction processStyle(props, style, layerName) {\n /*\n * Style types:\n * - null/undefined\n * - string\n * - CSS style object: { [cssKey]: [cssValue], variants }\n * - Processed style object: { style, variants, isProcessed: true }\n * - Array of any of the above\n */\n\n const resolvedStyle = typeof style === 'function' ? style(props) : style;\n if (Array.isArray(resolvedStyle)) {\n return resolvedStyle.flatMap(subStyle => processStyle(props, subStyle, layerName));\n }\n if (Array.isArray(resolvedStyle?.variants)) {\n let rootStyle;\n if (resolvedStyle.isProcessed) {\n rootStyle = layerName ? shallowLayer(resolvedStyle.style, layerName) : resolvedStyle.style;\n } else {\n const {\n variants,\n ...otherStyles\n } = resolvedStyle;\n rootStyle = layerName ? shallowLayer(serializeStyles(otherStyles), layerName) : otherStyles;\n }\n return processStyleVariants(props, resolvedStyle.variants, [rootStyle], layerName);\n }\n if (resolvedStyle?.isProcessed) {\n return layerName ? shallowLayer(serializeStyles(resolvedStyle.style), layerName) : resolvedStyle.style;\n }\n return layerName ? shallowLayer(serializeStyles(resolvedStyle), layerName) : resolvedStyle;\n}\nfunction processStyleVariants(props, variants, results = [], layerName = undefined) {\n let mergedState; // We might not need it, initialized lazily\n\n variantLoop: for (let i = 0; i < variants.length; i += 1) {\n const variant = variants[i];\n if (typeof variant.props === 'function') {\n mergedState ??= {\n ...props,\n ...props.ownerState,\n ownerState: props.ownerState\n };\n if (!variant.props(mergedState)) {\n continue;\n }\n } else {\n for (const key in variant.props) {\n if (props[key] !== variant.props[key] && props.ownerState?.[key] !== variant.props[key]) {\n continue variantLoop;\n }\n }\n }\n if (typeof variant.style === 'function') {\n mergedState ??= {\n ...props,\n ...props.ownerState,\n ownerState: props.ownerState\n };\n results.push(layerName ? shallowLayer(serializeStyles(variant.style(mergedState)), layerName) : variant.style(mergedState));\n } else {\n results.push(layerName ? shallowLayer(serializeStyles(variant.style), layerName) : variant.style);\n }\n }\n return results;\n}\nexport default function createStyled(input = {}) {\n const {\n themeId,\n defaultTheme = systemDefaultTheme,\n rootShouldForwardProp = shouldForwardProp,\n slotShouldForwardProp = shouldForwardProp\n } = input;\n function styleAttachTheme(props) {\n attachTheme(props, themeId, defaultTheme);\n }\n const styled = (tag, inputOptions = {}) => {\n // If `tag` is already a styled component, filter out the `sx` style function\n // to prevent unnecessary styles generated by the composite components.\n mutateStyles(tag, styles => styles.filter(style => style !== styleFunctionSx));\n const {\n name: componentName,\n slot: componentSlot,\n skipVariantsResolver: inputSkipVariantsResolver,\n skipSx: inputSkipSx,\n // TODO v6: remove `lowercaseFirstLetter()` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n overridesResolver = defaultOverridesResolver(lowercaseFirstLetter(componentSlot)),\n ...options\n } = inputOptions;\n const layerName = componentName && componentName.startsWith('Mui') || !!componentSlot ? 'components' : 'custom';\n\n // if skipVariantsResolver option is defined, take the value, otherwise, true for root and false for other slots.\n const skipVariantsResolver = inputSkipVariantsResolver !== undefined ? inputSkipVariantsResolver :\n // TODO v6: remove `Root` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n componentSlot && componentSlot !== 'Root' && componentSlot !== 'root' || false;\n const skipSx = inputSkipSx || false;\n let shouldForwardPropOption = shouldForwardProp;\n\n // TODO v6: remove `Root` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n if (componentSlot === 'Root' || componentSlot === 'root') {\n shouldForwardPropOption = rootShouldForwardProp;\n } else if (componentSlot) {\n // any other slot specified\n shouldForwardPropOption = slotShouldForwardProp;\n } else if (isStringTag(tag)) {\n // for string (html) tag, preserve the behavior in emotion & styled-components.\n shouldForwardPropOption = undefined;\n }\n const defaultStyledResolver = styledEngineStyled(tag, {\n shouldForwardProp: shouldForwardPropOption,\n label: generateStyledLabel(componentName, componentSlot),\n ...options\n });\n const transformStyle = style => {\n // - On the server Emotion doesn't use React.forwardRef for creating components, so the created\n // component stays as a function. This condition makes sure that we do not interpolate functions\n // which are basically components used as a selectors.\n // - `style` could be a styled component from a babel plugin for component selectors, This condition\n // makes sure that we do not interpolate them.\n if (style.__emotion_real === style) {\n return style;\n }\n if (typeof style === 'function') {\n return function styleFunctionProcessor(props) {\n return processStyle(props, style, props.theme.modularCssLayers ? layerName : undefined);\n };\n }\n if (isPlainObject(style)) {\n const serialized = preprocessStyles(style);\n return function styleObjectProcessor(props) {\n if (!serialized.variants) {\n return props.theme.modularCssLayers ? shallowLayer(serialized.style, layerName) : serialized.style;\n }\n return processStyle(props, serialized, props.theme.modularCssLayers ? layerName : undefined);\n };\n }\n return style;\n };\n const muiStyledResolver = (...expressionsInput) => {\n const expressionsHead = [];\n const expressionsBody = expressionsInput.map(transformStyle);\n const expressionsTail = [];\n\n // Preprocess `props` to set the scoped theme value.\n // This must run before any other expression.\n expressionsHead.push(styleAttachTheme);\n if (componentName && overridesResolver) {\n expressionsTail.push(function styleThemeOverrides(props) {\n const theme = props.theme;\n const styleOverrides = theme.components?.[componentName]?.styleOverrides;\n if (!styleOverrides) {\n return null;\n }\n const resolvedStyleOverrides = {};\n\n // TODO: v7 remove iteration and use `resolveStyleArg(styleOverrides[slot])` directly\n // eslint-disable-next-line guard-for-in\n for (const slotKey in styleOverrides) {\n resolvedStyleOverrides[slotKey] = processStyle(props, styleOverrides[slotKey], props.theme.modularCssLayers ? 'theme' : undefined);\n }\n return overridesResolver(props, resolvedStyleOverrides);\n });\n }\n if (componentName && !skipVariantsResolver) {\n expressionsTail.push(function styleThemeVariants(props) {\n const theme = props.theme;\n const themeVariants = theme?.components?.[componentName]?.variants;\n if (!themeVariants) {\n return null;\n }\n return processStyleVariants(props, themeVariants, [], props.theme.modularCssLayers ? 'theme' : undefined);\n });\n }\n if (!skipSx) {\n expressionsTail.push(styleFunctionSx);\n }\n\n // This function can be called as a tagged template, so the first argument would contain\n // CSS `string[]` values.\n if (Array.isArray(expressionsBody[0])) {\n const inputStrings = expressionsBody.shift();\n\n // We need to add placeholders in the tagged template for the custom functions we have\n // possibly added (attachTheme, overrides, variants, and sx).\n const placeholdersHead = new Array(expressionsHead.length).fill('');\n const placeholdersTail = new Array(expressionsTail.length).fill('');\n let outputStrings;\n // prettier-ignore\n {\n outputStrings = [...placeholdersHead, ...inputStrings, ...placeholdersTail];\n outputStrings.raw = [...placeholdersHead, ...inputStrings.raw, ...placeholdersTail];\n }\n\n // The only case where we put something before `attachTheme`\n expressionsHead.unshift(outputStrings);\n }\n const expressions = [...expressionsHead, ...expressionsBody, ...expressionsTail];\n const Component = defaultStyledResolver(...expressions);\n if (tag.muiName) {\n Component.muiName = tag.muiName;\n }\n if (process.env.NODE_ENV !== 'production') {\n Component.displayName = generateDisplayName(componentName, componentSlot, tag);\n }\n return Component;\n };\n if (defaultStyledResolver.withConfig) {\n muiStyledResolver.withConfig = defaultStyledResolver.withConfig;\n }\n return muiStyledResolver;\n };\n return styled;\n}\nfunction generateDisplayName(componentName, componentSlot, tag) {\n if (componentName) {\n return `${componentName}${capitalize(componentSlot || '')}`;\n }\n return `Styled(${getDisplayName(tag)})`;\n}\nfunction generateStyledLabel(componentName, componentSlot) {\n let label;\n if (process.env.NODE_ENV !== 'production') {\n if (componentName) {\n // TODO v6: remove `lowercaseFirstLetter()` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n label = `${componentName}-${lowercaseFirstLetter(componentSlot || 'Root')}`;\n }\n }\n return label;\n}\nfunction isObjectEmpty(object) {\n // eslint-disable-next-line\n for (const _ in object) {\n return false;\n }\n return true;\n}\n\n// https://github.com/emotion-js/emotion/blob/26ded6109fcd8ca9875cc2ce4564fee678a3f3c5/packages/styled/src/utils.js#L40\nfunction isStringTag(tag) {\n return typeof tag === 'string' &&\n // 96 is one less than the char code\n // for \"a\" so this is checking that\n // it's a lowercase character\n tag.charCodeAt(0) > 96;\n}\nfunction lowercaseFirstLetter(string) {\n if (!string) {\n return string;\n }\n return string.charAt(0).toLowerCase() + string.slice(1);\n}"],"names":["systemDefaultTheme","createTheme","shouldForwardProp","prop","shallowLayer","serialized","layerName","styles","startsWith","String","defaultOverridesResolver","slot","_props","processStyle","props","style","resolvedStyle","Array","isArray","flatMap","subStyle","variants","rootStyle","isProcessed","otherStyles","serializeStyles","processStyleVariants","results","undefined","mergedState","variantLoop","i","length","variant","ownerState","key","push","createStyled","input","themeId","defaultTheme","rootShouldForwardProp","slotShouldForwardProp","styleAttachTheme","theme","object","_","isObjectEmpty","attachTheme","tag","inputOptions","mutateStyles","filter","styleFunctionSx","name","componentName","componentSlot","skipVariantsResolver","inputSkipVariantsResolver","skipSx","inputSkipSx","overridesResolver","lowercaseFirstLetter","options","shouldForwardPropOption","charCodeAt","isStringTag","defaultStyledResolver","styledEngineStyled","label","generateStyledLabel","transformStyle","__emotion_real","modularCssLayers","isPlainObject","preprocessStyles","muiStyledResolver","expressionsInput","expressionsHead","expressionsBody","map","expressionsTail","styleOverrides","components","resolvedStyleOverrides","slotKey","themeVariants","inputStrings","shift","placeholdersHead","fill","placeholdersTail","outputStrings","raw","unshift","expressions","Component","muiName","process","env","NODE_ENV","displayName","capitalize","getDisplayName","generateDisplayName","withConfig","string","charAt","toLowerCase","slice"],"mappings":"ohBAYY,MAACA,EAAqBC,IAG3B,SAASC,EAAkBC,GAChC,MAAgB,eAATA,GAAkC,UAATA,GAA6B,OAATA,GAA0B,OAATA,CACvE,CACA,SAASC,EAAaC,EAAYC,GAKhC,OAJIA,GAAaD,GAAoC,iBAAfA,GAA2BA,EAAWE,SAAWF,EAAWE,OAAOC,WAAW,YAElHH,EAAWE,OAAS,UAAUD,KAAaG,OAAOJ,EAAWE,YAExDF,CACT,CACA,SAASK,EAAyBC,GAChC,OAAKA,EAGE,CAACC,EAAQL,IAAWA,EAAOI,GAFzB,IAGX,CAIA,SAASE,EAAaC,EAAOC,EAAOT,GAUlC,MAAMU,EAAiC,mBAAVD,EAAuBA,EAAMD,GAASC,EACnE,GAAIE,MAAMC,QAAQF,GAChB,OAAOA,EAAcG,QAAQC,GAAYP,EAAaC,EAAOM,EAAUd,IAEzE,GAAIW,MAAMC,QAAQF,GAAeK,UAAW,CAC1C,IAAIC,EACJ,GAAIN,EAAcO,YAChBD,EAAYhB,EAAYF,EAAaY,EAAcD,MAAOT,GAAaU,EAAcD,UAChF,CACL,MAAMM,SACJA,KACGG,GACDR,EACJM,EAAYhB,EAAYF,EAAaqB,EAAgBD,GAAclB,GAAakB,CACjF,CACD,OAAOE,EAAqBZ,EAAOE,EAAcK,SAAU,CAACC,GAAYhB,EACzE,CACD,OAAIU,GAAeO,YACVjB,EAAYF,EAAaqB,EAAgBT,EAAcD,OAAQT,GAAaU,EAAcD,MAE5FT,EAAYF,EAAaqB,EAAgBT,GAAgBV,GAAaU,CAC/E,CACA,SAASU,EAAqBZ,EA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AIa,EAQJ,MAP6B,eAAzB6B,QAAQC,IAAIC,UACV7C,IAGFc,EAAQ,GAAGd,KAAiBO,EAAqBN,GAAiB,WAG/Da,CACT,CAiBA,SAASP,EAAqB4C,GAC5B,OAAKA,EAGEA,EAAOC,OAAO,GAAGC,cAAgBF,EAAOG,MAAM,GAF5CH,CAGX"}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import e from"
|
1
|
+
import e from"../../node_modules/@mui/utils/esm/deepmerge/deepmerge.js";import t from"../createBreakpoints/createBreakpoints.js";import s from"../cssContainerQueries/cssContainerQueries.js";import o from"./shape.js";import r from"./createSpacing.js";import n from"../styleFunctionSx/styleFunctionSx.js";import i from"../styleFunctionSx/defaultSxConfig.js";import p from"./applyStyles.js";function a(a={},...m){const{breakpoints:l={},palette:u={},spacing:c,shape:f={},...d}=a,g=t(l),x=r(c);let j=e({breakpoints:g,direction:"ltr",components:{},palette:{mode:"light",...u},spacing:x,shape:{...o,...f}},d);return j=s(j),j.applyStyles=p,j=m.reduce((t,s)=>e(t,s),j),j.unstable_sxConfig={...i,...d?.unstable_sxConfig},j.unstable_sx=function(e){return n({sx:e,theme:this})},j}export{a as default};
|
2
2
|
//# sourceMappingURL=createTheme.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"createTheme.js","sources":["../../../../../../../node_modules/@mui/system/esm/createTheme/createTheme.js"],"sourcesContent":["import deepmerge from '@mui/utils/deepmerge';\nimport createBreakpoints from \"../createBreakpoints/createBreakpoints.js\";\nimport cssContainerQueries from \"../cssContainerQueries/index.js\";\nimport shape from \"./shape.js\";\nimport createSpacing from \"./createSpacing.js\";\nimport styleFunctionSx from \"../styleFunctionSx/styleFunctionSx.js\";\nimport defaultSxConfig from \"../styleFunctionSx/defaultSxConfig.js\";\nimport applyStyles from \"./applyStyles.js\";\nfunction createTheme(options = {}, ...args) {\n const {\n breakpoints: breakpointsInput = {},\n palette: paletteInput = {},\n spacing: spacingInput,\n shape: shapeInput = {},\n ...other\n } = options;\n const breakpoints = createBreakpoints(breakpointsInput);\n const spacing = createSpacing(spacingInput);\n let muiTheme = deepmerge({\n breakpoints,\n direction: 'ltr',\n components: {},\n // Inject component definitions.\n palette: {\n mode: 'light',\n ...paletteInput\n },\n spacing,\n shape: {\n ...shape,\n ...shapeInput\n }\n }, other);\n muiTheme = cssContainerQueries(muiTheme);\n muiTheme.applyStyles = applyStyles;\n muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme);\n muiTheme.unstable_sxConfig = {\n ...defaultSxConfig,\n ...other?.unstable_sxConfig\n };\n muiTheme.unstable_sx = function sx(props) {\n return styleFunctionSx({\n sx: props,\n theme: this\n });\n };\n return muiTheme;\n}\nexport default createTheme;"],"names":["createTheme","options","args","breakpoints","breakpointsInput","palette","paletteInput","spacing","spacingInput","shape","shapeInput","other","createBreakpoints","createSpacing","muiTheme","deepmerge","direction","components","mode","cssContainerQueries","applyStyles","reduce","acc","argument","unstable_sxConfig","defaultSxConfig","unstable_sx","props","styleFunctionSx","sx","theme","this"],"mappings":"
|
1
|
+
{"version":3,"file":"createTheme.js","sources":["../../../../../../../node_modules/@mui/system/esm/createTheme/createTheme.js"],"sourcesContent":["import deepmerge from '@mui/utils/deepmerge';\nimport createBreakpoints from \"../createBreakpoints/createBreakpoints.js\";\nimport cssContainerQueries from \"../cssContainerQueries/index.js\";\nimport shape from \"./shape.js\";\nimport createSpacing from \"./createSpacing.js\";\nimport styleFunctionSx from \"../styleFunctionSx/styleFunctionSx.js\";\nimport defaultSxConfig from \"../styleFunctionSx/defaultSxConfig.js\";\nimport applyStyles from \"./applyStyles.js\";\nfunction createTheme(options = {}, ...args) {\n const {\n breakpoints: breakpointsInput = {},\n palette: paletteInput = {},\n spacing: spacingInput,\n shape: shapeInput = {},\n ...other\n } = options;\n const breakpoints = createBreakpoints(breakpointsInput);\n const spacing = createSpacing(spacingInput);\n let muiTheme = deepmerge({\n breakpoints,\n direction: 'ltr',\n components: {},\n // Inject component definitions.\n palette: {\n mode: 'light',\n ...paletteInput\n },\n spacing,\n shape: {\n ...shape,\n ...shapeInput\n }\n }, other);\n muiTheme = cssContainerQueries(muiTheme);\n muiTheme.applyStyles = applyStyles;\n muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme);\n muiTheme.unstable_sxConfig = {\n ...defaultSxConfig,\n ...other?.unstable_sxConfig\n };\n muiTheme.unstable_sx = function sx(props) {\n return styleFunctionSx({\n sx: props,\n theme: this\n });\n };\n return muiTheme;\n}\nexport default createTheme;"],"names":["createTheme","options","args","breakpoints","breakpointsInput","palette","paletteInput","spacing","spacingInput","shape","shapeInput","other","createBreakpoints","createSpacing","muiTheme","deepmerge","direction","components","mode","cssContainerQueries","applyStyles","reduce","acc","argument","unstable_sxConfig","defaultSxConfig","unstable_sx","props","styleFunctionSx","sx","theme","this"],"mappings":"oYAQA,SAASA,EAAYC,EAAU,MAAOC,GACpC,MACEC,YAAaC,EAAmB,CAAE,EAClCC,QAASC,EAAe,CAAE,EAC1BC,QAASC,EACTC,MAAOC,EAAa,CAAE,KACnBC,GACDV,EACEE,EAAcS,EAAkBR,GAChCG,EAAUM,EAAcL,GAC9B,IAAIM,EAAWC,EAAU,CACvBZ,cACAa,UAAW,MACXC,WAAY,CAAE,EAEdZ,QAAS,CACPa,KAAM,WACHZ,GAELC,UACAE,MAAO,IACFA,KACAC,IAEJC,GAcH,OAbAG,EAAWK,EAAoBL,GAC/BA,EAASM,YAAcA,EACvBN,EAAWZ,EAAKmB,OAAO,CAACC,EAAKC,IAAaR,EAAUO,EAAKC,GAAWT,GACpEA,EAASU,kBAAoB,IACxBC,KACAd,GAAOa,mBAEZV,EAASY,YAAc,SAAYC,GACjC,OAAOC,EAAgB,CACrBC,GAAIF,EACJG,MAAOC,MAEb,EACSjB,CACT"}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import e from"
|
1
|
+
import e from"../../node_modules/@mui/utils/esm/formatMuiErrorMessage/formatMuiErrorMessage.js";function r(e,r){if(!e.containerQueries)return r;const n=Object.keys(r).filter(e=>e.startsWith("@container")).sort((e,r)=>{const n=/min-width:\s*([0-9.]+)/;return+(e.match(n)?.[1]||0)-+(r.match(n)?.[1]||0)});return n.length?n.reduce((e,n)=>{const t=r[n];return delete e[n],e[n]=t,e},{...r}):r}function n(e,r){return"@"===r||r.startsWith("@")&&(e.some(e=>r.startsWith(`@${e}`))||!!r.match(/^@\d/))}function t(r,n){const t=n.match(/^@([^/]+)?\/?(.+)?$/);if(!t){if("production"!==process.env.NODE_ENV)throw new Error("production"!==process.env.NODE_ENV?`MUI: The provided shorthand (${n}) is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.\nFor example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:e(18,`(${n})`));return null}const[,o,i]=t,s=Number.isNaN(+o)?o||0:+o;return r.containerQueries(i).up(s)}function o(e){const r=(e,r)=>e.replace("@media",r?`@container ${r}`:"@container");function n(n,t){n.up=(...n)=>r(e.breakpoints.up(...n),t),n.down=(...n)=>r(e.breakpoints.down(...n),t),n.between=(...n)=>r(e.breakpoints.between(...n),t),n.only=(...n)=>r(e.breakpoints.only(...n),t),n.not=(...n)=>{const o=r(e.breakpoints.not(...n),t);return o.includes("not all and")?o.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):o}}const t={},o=e=>(n(t,e),t);return n(o),{...e,containerQueries:o}}export{o as default,t as getContainerQuery,n as isCqShorthand,r as sortContainerQueries};
|
2
2
|
//# sourceMappingURL=cssContainerQueries.js.map
|
package/dist/esm/node_modules/@mui/system/esm/cssContainerQueries/cssContainerQueries.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"cssContainerQueries.js","sources":["../../../../../../../node_modules/@mui/system/esm/cssContainerQueries/cssContainerQueries.js"],"sourcesContent":["import _formatMuiErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\n/**\n * For using in `sx` prop to sort the breakpoint from low to high.\n * Note: this function does not work and will not support multiple units.\n * e.g. input: { '@container (min-width:300px)': '1rem', '@container (min-width:40rem)': '2rem' }\n * output: { '@container (min-width:40rem)': '2rem', '@container (min-width:300px)': '1rem' } // since 40 < 300 eventhough 40rem > 300px\n */\nexport function sortContainerQueries(theme, css) {\n if (!theme.containerQueries) {\n return css;\n }\n const sorted = Object.keys(css).filter(key => key.startsWith('@container')).sort((a, b) => {\n const regex = /min-width:\\s*([0-9.]+)/;\n return +(a.match(regex)?.[1] || 0) - +(b.match(regex)?.[1] || 0);\n });\n if (!sorted.length) {\n return css;\n }\n return sorted.reduce((acc, key) => {\n const value = css[key];\n delete acc[key];\n acc[key] = value;\n return acc;\n }, {\n ...css\n });\n}\nexport function isCqShorthand(breakpointKeys, value) {\n return value === '@' || value.startsWith('@') && (breakpointKeys.some(key => value.startsWith(`@${key}`)) || !!value.match(/^@\\d/));\n}\nexport function getContainerQuery(theme, shorthand) {\n const matches = shorthand.match(/^@([^/]+)?\\/?(.+)?$/);\n if (!matches) {\n if (process.env.NODE_ENV !== 'production') {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: The provided shorthand ${`(${shorthand})`} is invalid. The format should be \\`@<breakpoint | number>\\` or \\`@<breakpoint | number>/<container>\\`.\\n` + 'For example, `@sm` or `@600` or `@40rem/sidebar`.' : _formatMuiErrorMessage(18, `(${shorthand})`));\n }\n return null;\n }\n const [, containerQuery, containerName] = matches;\n const value = Number.isNaN(+containerQuery) ? containerQuery || 0 : +containerQuery;\n return theme.containerQueries(containerName).up(value);\n}\nexport default function cssContainerQueries(themeInput) {\n const toContainerQuery = (mediaQuery, name) => mediaQuery.replace('@media', name ? `@container ${name}` : '@container');\n function attachCq(node, name) {\n node.up = (...args) => toContainerQuery(themeInput.breakpoints.up(...args), name);\n node.down = (...args) => toContainerQuery(themeInput.breakpoints.down(...args), name);\n node.between = (...args) => toContainerQuery(themeInput.breakpoints.between(...args), name);\n node.only = (...args) => toContainerQuery(themeInput.breakpoints.only(...args), name);\n node.not = (...args) => {\n const result = toContainerQuery(themeInput.breakpoints.not(...args), name);\n if (result.includes('not all and')) {\n // `@container` does not work with `not all and`, so need to invert the logic\n return result.replace('not all and ', '').replace('min-width:', 'width<').replace('max-width:', 'width>').replace('and', 'or');\n }\n return result;\n };\n }\n const node = {};\n const containerQueries = name => {\n attachCq(node, name);\n return node;\n };\n attachCq(containerQueries);\n return {\n ...themeInput,\n containerQueries\n };\n}"],"names":["sortContainerQueries","theme","css","containerQueries","sorted","Object","keys","filter","key","startsWith","sort","a","b","regex","match","length","reduce","acc","value","isCqShorthand","breakpointKeys","some","getContainerQuery","shorthand","matches","process","env","NODE_ENV","Error","_formatMuiErrorMessage","containerQuery","containerName","Number","isNaN","up","cssContainerQueries","themeInput","toContainerQuery","mediaQuery","name","replace","attachCq","node","args","breakpoints","down","between","only","not","result","includes"],"mappings":"
|
1
|
+
{"version":3,"file":"cssContainerQueries.js","sources":["../../../../../../../node_modules/@mui/system/esm/cssContainerQueries/cssContainerQueries.js"],"sourcesContent":["import _formatMuiErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\n/**\n * For using in `sx` prop to sort the breakpoint from low to high.\n * Note: this function does not work and will not support multiple units.\n * e.g. input: { '@container (min-width:300px)': '1rem', '@container (min-width:40rem)': '2rem' }\n * output: { '@container (min-width:40rem)': '2rem', '@container (min-width:300px)': '1rem' } // since 40 < 300 eventhough 40rem > 300px\n */\nexport function sortContainerQueries(theme, css) {\n if (!theme.containerQueries) {\n return css;\n }\n const sorted = Object.keys(css).filter(key => key.startsWith('@container')).sort((a, b) => {\n const regex = /min-width:\\s*([0-9.]+)/;\n return +(a.match(regex)?.[1] || 0) - +(b.match(regex)?.[1] || 0);\n });\n if (!sorted.length) {\n return css;\n }\n return sorted.reduce((acc, key) => {\n const value = css[key];\n delete acc[key];\n acc[key] = value;\n return acc;\n }, {\n ...css\n });\n}\nexport function isCqShorthand(breakpointKeys, value) {\n return value === '@' || value.startsWith('@') && (breakpointKeys.some(key => value.startsWith(`@${key}`)) || !!value.match(/^@\\d/));\n}\nexport function getContainerQuery(theme, shorthand) {\n const matches = shorthand.match(/^@([^/]+)?\\/?(.+)?$/);\n if (!matches) {\n if (process.env.NODE_ENV !== 'production') {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: The provided shorthand ${`(${shorthand})`} is invalid. The format should be \\`@<breakpoint | number>\\` or \\`@<breakpoint | number>/<container>\\`.\\n` + 'For example, `@sm` or `@600` or `@40rem/sidebar`.' : _formatMuiErrorMessage(18, `(${shorthand})`));\n }\n return null;\n }\n const [, containerQuery, containerName] = matches;\n const value = Number.isNaN(+containerQuery) ? containerQuery || 0 : +containerQuery;\n return theme.containerQueries(containerName).up(value);\n}\nexport default function cssContainerQueries(themeInput) {\n const toContainerQuery = (mediaQuery, name) => mediaQuery.replace('@media', name ? `@container ${name}` : '@container');\n function attachCq(node, name) {\n node.up = (...args) => toContainerQuery(themeInput.breakpoints.up(...args), name);\n node.down = (...args) => toContainerQuery(themeInput.breakpoints.down(...args), name);\n node.between = (...args) => toContainerQuery(themeInput.breakpoints.between(...args), name);\n node.only = (...args) => toContainerQuery(themeInput.breakpoints.only(...args), name);\n node.not = (...args) => {\n const result = toContainerQuery(themeInput.breakpoints.not(...args), name);\n if (result.includes('not all and')) {\n // `@container` does not work with `not all and`, so need to invert the logic\n return result.replace('not all and ', '').replace('min-width:', 'width<').replace('max-width:', 'width>').replace('and', 'or');\n }\n return result;\n };\n }\n const node = {};\n const containerQueries = name => {\n attachCq(node, name);\n return node;\n };\n attachCq(containerQueries);\n return {\n ...themeInput,\n containerQueries\n };\n}"],"names":["sortContainerQueries","theme","css","containerQueries","sorted","Object","keys","filter","key","startsWith","sort","a","b","regex","match","length","reduce","acc","value","isCqShorthand","breakpointKeys","some","getContainerQuery","shorthand","matches","process","env","NODE_ENV","Error","_formatMuiErrorMessage","containerQuery","containerName","Number","isNaN","up","cssContainerQueries","themeInput","toContainerQuery","mediaQuery","name","replace","attachCq","node","args","breakpoints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I,QAAU,IAAIH,IAASN,EAAiBD,EAAWQ,YAAYE,WAAWH,GAAOJ,GACtFG,EAAKK,KAAO,IAAIJ,IAASN,EAAiBD,EAAWQ,YAAYG,QAAQJ,GAAOJ,GAChFG,EAAKM,IAAM,IAAIL,KACb,MAAMM,EAASZ,EAAiBD,EAAWQ,YAAYI,OAAOL,GAAOJ,GACrE,OAAIU,EAAOC,SAAS,eAEXD,EAAOT,QAAQ,eAAgB,IAAIA,QAAQ,aAAc,UAAUA,QAAQ,aAAc,UAAUA,QAAQ,MAAO,MAEpHS,EAEV,CACD,MAAMP,EAAO,CAAA,EACPvC,EAAmBoC,IACvBE,EAASC,EAAMH,GACRG,GAGT,OADAD,EAAStC,GACF,IACFiC,EACHjC,mBAEJ"}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import*as e from"react";import"../../../../prop-types/index.js";import o from"
|
1
|
+
import*as e from"react";import"../../../../prop-types/index.js";import o from"../../node_modules/@mui/utils/esm/useEnhancedEffect/useEnhancedEffect.js";import t from"../ThemeProvider/ThemeProvider.js";import r,{DEFAULT_MODE_STORAGE_KEY as s,DEFAULT_COLOR_SCHEME_STORAGE_KEY as n}from"../InitColorSchemeScript/InitColorSchemeScript.js";import i from"./useCurrentColorScheme.js";import{jsxs as a,jsx as c}from"react/jsx-runtime";import l from"../../../private-theming/useTheme/useTheme.js";import m from"../../../styled-engine/GlobalStyles/GlobalStyles.js";import{p as d}from"../../../../../_virtual/index8.js";const h="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function p(p){const{themeId:u,theme:S={},modeStorageKey:f=s,colorSchemeStorageKey:g=n,disableTransitionOnChange:y=!1,defaultColorScheme:C,resolveTheme:v}=p,b={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},x=e.createContext(void 0);"production"!==process.env.NODE_ENV&&(x.displayName="ColorSchemeContext");const M={},j={};function E(r){const{children:s,theme:n,modeStorageKey:d=f,colorSchemeStorageKey:p=g,disableTransitionOnChange:b=y,storageManager:E,storageWindow:T=("undefined"==typeof window?void 0:window),documentNode:N=("undefined"==typeof document?void 0:document),colorSchemeNode:k=("undefined"==typeof document?void 0:document.documentElement),disableNestedContext:w=!1,disableStyleSheetGeneration:K=!1,defaultMode:V="system",noSsr:O}=r,P=e.useRef(!1),I=l(),D=e.useContext(x),W=!!D&&!w,_=e.useMemo(()=>n||("function"==typeof S?S():S),[n]),G=_[u],L=G||_,{colorSchemes:A=M,components:z=j,cssVarPrefix:F}=L,R=Object.keys(A).filter(e=>!!A[e]).join(","),U=e.useMemo(()=>R.split(","),[R]),$="string"==typeof C?C:C.light,q="string"==typeof C?C:C.dark,B=A[$]&&A[q]?V:A[L.defaultColorScheme]?.palette?.mode||L.palette?.mode,{mode:H,setMode:J,systemMode:Q,lightColorScheme:X,darkColorScheme:Y,colorScheme:Z,setColorScheme:ee}=i({supportedColorSchemes:U,defaultLightColorScheme:$,defaultDarkColorScheme:q,modeStorageKey:d,colorSchemeStorageKey:p,defaultMode:B,storageManager:E,storageWindow:T,noSsr:O});let oe=H,te=Z;W&&(oe=D.mode,te=D.colorScheme);const re=e.useMemo(()=>{const e=te||L.defaultColorScheme,o=L.generateThemeVars?.()||L.vars,t={...L,components:z,colorSchemes:A,cssVarPrefix:F,vars:o};if("function"==typeof t.generateSpacing&&(t.spacing=t.generateSpacing()),e){const o=A[e];o&&"object"==typeof o&&Object.keys(o).forEach(e=>{o[e]&&"object"==typeof o[e]?t[e]={...t[e],...o[e]}:t[e]=o[e]})}return v?v(t):t},[L,te,z,A,F]),se=L.colorSchemeSelector;o(()=>{if(te&&k&&se&&"media"!==se){const e=se;let o=se;if("class"===e&&(o=".%s"),"data"===e&&(o="[data-%s]"),e?.startsWith("data-")&&!e.includes("%s")&&(o=`[${e}="%s"]`),o.startsWith("."))k.classList.remove(...U.map(e=>o.substring(1).replace("%s",e))),k.classList.add(o.substring(1).replace("%s",te));else{const e=o.replace("%s",te).match(/\[([^\]]+)\]/);if(e){const[o,t]=e[1].split("=");t||U.forEach(e=>{k.removeAttribute(o.replace(te,e))}),k.setAttribute(o,t?t.replace(/"|'/g,""):"")}else k.setAttribute(o,te)}}},[te,se,k,U]),e.useEffect(()=>{let e;if(b&&P.current&&N){const o=N.createElement("style");o.appendChild(N.createTextNode(h)),N.head.appendChild(o),window.getComputedStyle(N.body),e=setTimeout(()=>{N.head.removeChild(o)},1)}return()=>{clearTimeout(e)}},[te,b,N]),e.useEffect(()=>(P.current=!0,()=>{P.current=!1}),[]);const ne=e.useMemo(()=>({allColorSchemes:U,colorScheme:te,darkColorScheme:Y,lightColorScheme:X,mode:oe,setColorScheme:ee,setMode:"production"===process.env.NODE_ENV?J:e=>{"media"===re.colorSchemeSelector&&console.error(["MUI: The `setMode` function has no effect if `colorSchemeSelector` is `media` (`media` is the default value).","To toggle the mode manually, please configure `colorSchemeSelector` to use a class or data attribute.","To learn more, visit https://mui.com/material-ui/customization/css-theme-variables/configuration/#toggling-dark-mode-manually"].join("\n")),J(e)},systemMode:Q}),[U,te,Y,X,oe,ee,J,Q,re.colorSchemeSelector]);let ie=!0;(K||!1===L.cssVariables||W&&I?.cssVarPrefix===F)&&(ie=!1);const ae=a(e.Fragment,{children:[c(t,{themeId:G?u:void 0,theme:re,children:s}),ie&&c(m,{styles:re.generateStyleSheets?.()||[]})]});return W?ae:c(x.Provider,{value:ne,children:ae})}"production"!==process.env.NODE_ENV&&(E.propTypes={children:d.exports.node,colorSchemeNode:d.exports.any,colorSchemeStorageKey:d.exports.string,defaultMode:d.exports.string,disableNestedContext:d.exports.bool,disableStyleSheetGeneration:d.exports.bool,disableTransitionOnChange:d.exports.bool,documentNode:d.exports.any,modeStorageKey:d.exports.string,noSsr:d.exports.bool,storageManager:d.exports.func,storageWindow:d.exports.any,theme:d.exports.object});const T="string"==typeof C?C:C.light,N="string"==typeof C?C:C.dark;return{CssVarsProvider:E,useColorScheme:()=>e.useContext(x)||b,getInitColorSchemeScript:e=>r({colorSchemeStorageKey:g,defaultLightColorScheme:T,defaultDarkColorScheme:N,modeStorageKey:f,...e})}}export{h as DISABLE_CSS_TRANSITION,p as default};
|
2
2
|
//# sourceMappingURL=createCssVarsProvider.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"createCssVarsProvider.js","sources":["../../../../../../../node_modules/@mui/system/esm/cssVars/createCssVarsProvider.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { GlobalStyles } from '@mui/styled-engine';\nimport { useTheme as muiUseTheme } from '@mui/private-theming';\nimport useEnhancedEffect from '@mui/utils/useEnhancedEffect';\nimport ThemeProvider from \"../ThemeProvider/index.js\";\nimport InitColorSchemeScript, { DEFAULT_COLOR_SCHEME_STORAGE_KEY, DEFAULT_MODE_STORAGE_KEY } from \"../InitColorSchemeScript/InitColorSchemeScript.js\";\nimport useCurrentColorScheme from \"./useCurrentColorScheme.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport const DISABLE_CSS_TRANSITION = '*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}';\nexport default function createCssVarsProvider(options) {\n const {\n themeId,\n /**\n * This `theme` object needs to follow a certain structure to\n * be used correctly by the finel `CssVarsProvider`. It should have a\n * `colorSchemes` key with the light and dark (and any other) palette.\n * It should also ideally have a vars object created using `prepareCssVars`.\n */\n theme: defaultTheme = {},\n modeStorageKey: defaultModeStorageKey = DEFAULT_MODE_STORAGE_KEY,\n colorSchemeStorageKey: defaultColorSchemeStorageKey = DEFAULT_COLOR_SCHEME_STORAGE_KEY,\n disableTransitionOnChange: designSystemTransitionOnChange = false,\n defaultColorScheme,\n resolveTheme\n } = options;\n const defaultContext = {\n allColorSchemes: [],\n colorScheme: undefined,\n darkColorScheme: undefined,\n lightColorScheme: undefined,\n mode: undefined,\n setColorScheme: () => {},\n setMode: () => {},\n systemMode: undefined\n };\n const ColorSchemeContext = /*#__PURE__*/React.createContext(undefined);\n if (process.env.NODE_ENV !== 'production') {\n ColorSchemeContext.displayName = 'ColorSchemeContext';\n }\n const useColorScheme = () => React.useContext(ColorSchemeContext) || defaultContext;\n const defaultColorSchemes = {};\n const defaultComponents = {};\n function CssVarsProvider(props) {\n const {\n children,\n theme: themeProp,\n modeStorageKey = defaultModeStorageKey,\n colorSchemeStorageKey = defaultColorSchemeStorageKey,\n disableTransitionOnChange = designSystemTransitionOnChange,\n storageManager,\n storageWindow = typeof window === 'undefined' ? undefined : window,\n documentNode = typeof document === 'undefined' ? undefined : document,\n colorSchemeNode = typeof document === 'undefined' ? undefined : document.documentElement,\n disableNestedContext = false,\n disableStyleSheetGeneration = false,\n defaultMode: initialMode = 'system',\n noSsr\n } = props;\n const hasMounted = React.useRef(false);\n const upperTheme = muiUseTheme();\n const ctx = React.useContext(ColorSchemeContext);\n const nested = !!ctx && !disableNestedContext;\n const initialTheme = React.useMemo(() => {\n if (themeProp) {\n return themeProp;\n }\n return typeof defaultTheme === 'function' ? defaultTheme() : defaultTheme;\n }, [themeProp]);\n const scopedTheme = initialTheme[themeId];\n const restThemeProp = scopedTheme || initialTheme;\n const {\n colorSchemes = defaultColorSchemes,\n components = defaultComponents,\n cssVarPrefix\n } = restThemeProp;\n const joinedColorSchemes = Object.keys(colorSchemes).filter(k => !!colorSchemes[k]).join(',');\n const allColorSchemes = React.useMemo(() => joinedColorSchemes.split(','), [joinedColorSchemes]);\n const defaultLightColorScheme = typeof defaultColorScheme === 'string' ? defaultColorScheme : defaultColorScheme.light;\n const defaultDarkColorScheme = typeof defaultColorScheme === 'string' ? defaultColorScheme : defaultColorScheme.dark;\n const defaultMode = colorSchemes[defaultLightColorScheme] && colorSchemes[defaultDarkColorScheme] ? initialMode : colorSchemes[restThemeProp.defaultColorScheme]?.palette?.mode || restThemeProp.palette?.mode;\n\n // 1. Get the data about the `mode`, `colorScheme`, and setter functions.\n const {\n mode: stateMode,\n setMode,\n systemMode,\n lightColorScheme,\n darkColorScheme,\n colorScheme: stateColorScheme,\n setColorScheme\n } = useCurrentColorScheme({\n supportedColorSchemes: allColorSchemes,\n defaultLightColorScheme,\n defaultDarkColorScheme,\n modeStorageKey,\n colorSchemeStorageKey,\n defaultMode,\n storageManager,\n storageWindow,\n noSsr\n });\n let mode = stateMode;\n let colorScheme = stateColorScheme;\n if (nested) {\n mode = ctx.mode;\n colorScheme = ctx.colorScheme;\n }\n const memoTheme = React.useMemo(() => {\n // `colorScheme` is undefined on the server and hydration phase\n const calculatedColorScheme = colorScheme || restThemeProp.defaultColorScheme;\n\n // 2. get the `vars` object that refers to the CSS custom properties\n const themeVars = restThemeProp.generateThemeVars?.() || restThemeProp.vars;\n\n // 3. Start composing the theme object\n const theme = {\n ...restThemeProp,\n components,\n colorSchemes,\n cssVarPrefix,\n vars: themeVars\n };\n if (typeof theme.generateSpacing === 'function') {\n theme.spacing = theme.generateSpacing();\n }\n\n // 4. Resolve the color scheme and merge it to the theme\n if (calculatedColorScheme) {\n const scheme = colorSchemes[calculatedColorScheme];\n if (scheme && typeof scheme === 'object') {\n // 4.1 Merge the selected color scheme to the theme\n Object.keys(scheme).forEach(schemeKey => {\n if (scheme[schemeKey] && typeof scheme[schemeKey] === 'object') {\n // shallow merge the 1st level structure of the theme.\n theme[schemeKey] = {\n ...theme[schemeKey],\n ...scheme[schemeKey]\n };\n } else {\n theme[schemeKey] = scheme[schemeKey];\n }\n });\n }\n }\n return resolveTheme ? resolveTheme(theme) : theme;\n }, [restThemeProp, colorScheme, components, colorSchemes, cssVarPrefix]);\n\n // 5. Declaring effects\n // 5.1 Updates the selector value to use the current color scheme which tells CSS to use the proper stylesheet.\n const colorSchemeSelector = restThemeProp.colorSchemeSelector;\n useEnhancedEffect(() => {\n if (colorScheme && colorSchemeNode && colorSchemeSelector && colorSchemeSelector !== 'media') {\n const selector = colorSchemeSelector;\n let rule = colorSchemeSelector;\n if (selector === 'class') {\n rule = `.%s`;\n }\n if (selector === 'data') {\n rule = `[data-%s]`;\n }\n if (selector?.startsWith('data-') && !selector.includes('%s')) {\n // 'data-mui-color-scheme' -> '[data-mui-color-scheme=\"%s\"]'\n rule = `[${selector}=\"%s\"]`;\n }\n if (rule.startsWith('.')) {\n colorSchemeNode.classList.remove(...allColorSchemes.map(scheme => rule.substring(1).replace('%s', scheme)));\n colorSchemeNode.classList.add(rule.substring(1).replace('%s', colorScheme));\n } else {\n const matches = rule.replace('%s', colorScheme).match(/\\[([^\\]]+)\\]/);\n if (matches) {\n const [attr, value] = matches[1].split('=');\n if (!value) {\n // for attributes like `data-theme-dark`, `data-theme-light`\n // remove all the existing data attributes before setting the new one\n allColorSchemes.forEach(scheme => {\n colorSchemeNode.removeAttribute(attr.replace(colorScheme, scheme));\n });\n }\n colorSchemeNode.setAttribute(attr, value ? value.replace(/\"|'/g, '') : '');\n } else {\n colorSchemeNode.setAttribute(rule, colorScheme);\n }\n }\n }\n }, [colorScheme, colorSchemeSelector, colorSchemeNode, allColorSchemes]);\n\n // 5.2 Remove the CSS transition when color scheme changes to create instant experience.\n // credit: https://github.com/pacocoursey/next-themes/blob/b5c2bad50de2d61ad7b52a9c5cdc801a78507d7a/index.tsx#L313\n React.useEffect(() => {\n let timer;\n if (disableTransitionOnChange && hasMounted.current && documentNode) {\n const css = documentNode.createElement('style');\n css.appendChild(documentNode.createTextNode(DISABLE_CSS_TRANSITION));\n documentNode.head.appendChild(css);\n\n // Force browser repaint\n (() => window.getComputedStyle(documentNode.body))();\n timer = setTimeout(() => {\n documentNode.head.removeChild(css);\n }, 1);\n }\n return () => {\n clearTimeout(timer);\n };\n }, [colorScheme, disableTransitionOnChange, documentNode]);\n React.useEffect(() => {\n hasMounted.current = true;\n return () => {\n hasMounted.current = false;\n };\n }, []);\n const contextValue = React.useMemo(() => ({\n allColorSchemes,\n colorScheme,\n darkColorScheme,\n lightColorScheme,\n mode,\n setColorScheme,\n setMode: process.env.NODE_ENV === 'production' ? setMode : newMode => {\n if (memoTheme.colorSchemeSelector === 'media') {\n console.error(['MUI: The `setMode` function has no effect if `colorSchemeSelector` is `media` (`media` is the default value).', 'To toggle the mode manually, please configure `colorSchemeSelector` to use a class or data attribute.', 'To learn more, visit https://mui.com/material-ui/customization/css-theme-variables/configuration/#toggling-dark-mode-manually'].join('\\n'));\n }\n setMode(newMode);\n },\n systemMode\n }), [allColorSchemes, colorScheme, darkColorScheme, lightColorScheme, mode, setColorScheme, setMode, systemMode, memoTheme.colorSchemeSelector]);\n let shouldGenerateStyleSheet = true;\n if (disableStyleSheetGeneration || restThemeProp.cssVariables === false || nested && upperTheme?.cssVarPrefix === cssVarPrefix) {\n shouldGenerateStyleSheet = false;\n }\n const element = /*#__PURE__*/_jsxs(React.Fragment, {\n children: [/*#__PURE__*/_jsx(ThemeProvider, {\n themeId: scopedTheme ? themeId : undefined,\n theme: memoTheme,\n children: children\n }), shouldGenerateStyleSheet && /*#__PURE__*/_jsx(GlobalStyles, {\n styles: memoTheme.generateStyleSheets?.() || []\n })]\n });\n if (nested) {\n return element;\n }\n return /*#__PURE__*/_jsx(ColorSchemeContext.Provider, {\n value: contextValue,\n children: element\n });\n }\n process.env.NODE_ENV !== \"production\" ? CssVarsProvider.propTypes = {\n /**\n * The component tree.\n */\n children: PropTypes.node,\n /**\n * The node used to attach the color-scheme attribute\n */\n colorSchemeNode: PropTypes.any,\n /**\n * localStorage key used to store `colorScheme`\n */\n colorSchemeStorageKey: PropTypes.string,\n /**\n * The default mode when the storage is empty,\n * require the theme to have `colorSchemes` with light and dark.\n */\n defaultMode: PropTypes.string,\n /**\n * If `true`, the provider creates its own context and generate stylesheet as if it is a root `CssVarsProvider`.\n */\n disableNestedContext: PropTypes.bool,\n /**\n * If `true`, the style sheet won't be generated.\n *\n * This is useful for controlling nested CssVarsProvider behavior.\n */\n disableStyleSheetGeneration: PropTypes.bool,\n /**\n * Disable CSS transitions when switching between modes or color schemes.\n */\n disableTransitionOnChange: PropTypes.bool,\n /**\n * The document to attach the attribute to.\n */\n documentNode: PropTypes.any,\n /**\n * The key in the local storage used to store current color scheme.\n */\n modeStorageKey: PropTypes.string,\n /**\n * If `true`, the mode will be the same value as the storage without an extra rerendering after the hydration.\n * You should use this option in conjuction with `InitColorSchemeScript` component.\n */\n noSsr: PropTypes.bool,\n /**\n * The storage manager to be used for storing the mode and color scheme\n * @default using `window.localStorage`\n */\n storageManager: PropTypes.func,\n /**\n * The window that attaches the 'storage' event listener.\n * @default window\n */\n storageWindow: PropTypes.any,\n /**\n * The calculated theme object that will be passed through context.\n */\n theme: PropTypes.object\n } : void 0;\n const defaultLightColorScheme = typeof defaultColorScheme === 'string' ? defaultColorScheme : defaultColorScheme.light;\n const defaultDarkColorScheme = typeof defaultColorScheme === 'string' ? defaultColorScheme : defaultColorScheme.dark;\n const getInitColorSchemeScript = params => InitColorSchemeScript({\n colorSchemeStorageKey: defaultColorSchemeStorageKey,\n defaultLightColorScheme,\n defaultDarkColorScheme,\n modeStorageKey: defaultModeStorageKey,\n ...params\n });\n return {\n CssVarsProvider,\n useColorScheme,\n getInitColorSchemeScript\n };\n}"],"names":["DISABLE_CSS_TRANSITION","createCssVarsProvider","options","themeId","theme","defaultTheme","modeStorageKey","defaultModeStorageKey","DEFAULT_MODE_STORAGE_KEY","colorSchemeStorageKey","defaultColorSchemeStorageKey","DEFAULT_COLOR_SCHEME_STORAGE_KEY","disableTransitionOnChange","designSystemTransitionOnChange","defaultColorScheme","resolveTheme","defaultContext","allColorSchemes","colorScheme","undefined","darkColorScheme","lightColorScheme","mode","setColorScheme","setMode","systemMode","ColorSchemeContext","React","createContext","process","env","NODE_ENV","displayName","defaultColorSchemes","defaultComponents","CssVarsProvider","props","children","themeProp","storageManager","storageWindow","window","documentNode","document","colorSchemeNode","documentElement","disableNestedContext","disableStyleSheetGeneration","defaultMode","initialMode","noSsr","hasMounted","useRef","upperTheme","muiUseTheme","ctx","useContext","nested","initialTheme","useMemo","scopedTheme","restThemeProp","colorSchemes","components","cssVarPrefix","joinedColorSchemes","Object","keys","filter","k","join","split","defaultLightColorScheme","light","defaultDarkColorScheme","dark","palette","stateMode","stateColorScheme","useCurrentColorScheme","supportedColorSchemes","memoTheme","calculatedColorScheme","themeVars","generateThemeVars","vars","generateSpacing","spacing","scheme","forEach","schemeKey","colorSchemeSelector","useEnhancedEffect","selector","rule","startsWith","includes","classList","remove","map","substring","replace","add","matches","match","attr","value","removeAttribute","setAttribute","useEffect","timer","current","css","createElement","appendChild","createTextNode","head","getComputedStyle","body","setTimeout","removeChild","clearTimeout","contextValue","newMode","console","error","shouldGenerateStyleSheet","cssVariables","element","_jsxs","Fragment","_jsx","ThemeProvider","GlobalStyles","styles","generateStyleSheets","Provider","propTypes","PropTypes","exports","node","any","string","bool","func","object","useColorScheme","getInitColorSchemeScript","params","InitColorSchemeScript"],"mappings":"klBAWY,MAACA,EAAyB,2JACvB,SAASC,EAAsBC,GAC5C,MAAMC,QACJA,EAOAC,MAAOC,EAAe,CAAE,EACxBC,eAAgBC,EAAwBC,EACxCC,sBAAuBC,EAA+BC,EACtDC,0BAA2BC,GAAiC,EAAKC,mBACjEA,EAAkBC,aAClBA,GACEb,EACEc,EAAiB,CACrBC,gBAAiB,GACjBC,iBAAaC,EACbC,qBAAiBD,EACjBE,sBAAkBF,EAClBG,UAAMH,EACNI,eAAgB,OAChBC,QAAS,OACTC,gBAAYN,GAERO,EAAkCC,EAAMC,mBAAcT,GAC/B,eAAzBU,QAAQC,IAAIC,WACdL,EAAmBM,YAAc,sBAEnC,MACMC,EAAsB,CAAA,EACtBC,EAAoB,CAAA,EAC1B,SAASC,EAAgBC,GACvB,MAAMC,SACJA,EACAjC,MAAOkC,EAAShC,eAChBA,EAAiBC,EAAqBE,sBACtCA,EAAwBC,EAA4BE,0BACpDA,EAA4BC,EAA8B0B,eAC1DA,EAAcC,cACdA,GAAkC,oBAAXC,YAAyBtB,EAAYsB,QAAMC,aAClEA,GAAmC,oBAAbC,cAA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UAAY,CAIlEpG,SAAUqG,EAASC,QAACC,KAIpBhG,gBAAiB8F,EAASC,QAACE,IAI3BpI,sBAAuBiI,EAASC,QAACG,OAKjC9F,YAAa0F,EAASC,QAACG,OAIvBhG,qBAAsB4F,EAASC,QAACI,KAMhChG,4BAA6B2F,EAASC,QAACI,KAIvCnI,0BAA2B8H,EAASC,QAACI,KAIrCrG,aAAcgG,EAASC,QAACE,IAIxBvI,eAAgBoI,EAASC,QAACG,OAK1B5F,MAAOwF,EAASC,QAACI,KAKjBxG,eAAgBmG,EAASC,QAACK,KAK1BxG,cAAekG,EAASC,QAACE,IAIzBzI,MAAOsI,EAASC,QAACM,SAEnB,MAAMzE,EAAwD,iBAAvB1D,EAAkCA,EAAqBA,EAAmB2D,MAC3GC,EAAuD,iBAAvB5D,EAAkCA,EAAqBA,EAAmB6D,KAQhH,MAAO,CACLxC,kBACA+G,eAvRqB,IAAMvH,EAAM6B,WAAW9B,IAAuBV,EAwRnEmI,yBAV+BC,GAAUC,EAAsB,CAC/D5I,sBAAuBC,EACvB8D,0BACAE,yBACApE,eAAgBC,KACb6I,IAOP"}
|
1
|
+
{"version":3,"file":"createCssVarsProvider.js","sources":["../../../../../../../node_modules/@mui/system/esm/cssVars/createCssVarsProvider.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { GlobalStyles } from '@mui/styled-engine';\nimport { useTheme as muiUseTheme } from '@mui/private-theming';\nimport useEnhancedEffect from '@mui/utils/useEnhancedEffect';\nimport ThemeProvider from \"../ThemeProvider/index.js\";\nimport InitColorSchemeScript, { DEFAULT_COLOR_SCHEME_STORAGE_KEY, DEFAULT_MODE_STORAGE_KEY } from \"../InitColorSchemeScript/InitColorSchemeScript.js\";\nimport useCurrentColorScheme from \"./useCurrentColorScheme.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport const DISABLE_CSS_TRANSITION = '*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}';\nexport default function createCssVarsProvider(options) {\n const {\n themeId,\n /**\n * This `theme` object needs to follow a certain structure to\n * be used correctly by the finel `CssVarsProvider`. It should have a\n * `colorSchemes` key with the light and dark (and any other) palette.\n * It should also ideally have a vars object created using `prepareCssVars`.\n */\n theme: defaultTheme = {},\n modeStorageKey: defaultModeStorageKey = DEFAULT_MODE_STORAGE_KEY,\n colorSchemeStorageKey: defaultColorSchemeStorageKey = DEFAULT_COLOR_SCHEME_STORAGE_KEY,\n disableTransitionOnChange: designSystemTransitionOnChange = false,\n defaultColorScheme,\n resolveTheme\n } = options;\n const defaultContext = {\n allColorSchemes: [],\n colorScheme: undefined,\n darkColorScheme: undefined,\n lightColorScheme: undefined,\n mode: undefined,\n setColorScheme: () => {},\n setMode: () => {},\n systemMode: undefined\n };\n const ColorSchemeContext = /*#__PURE__*/React.createContext(undefined);\n if (process.env.NODE_ENV !== 'production') {\n ColorSchemeContext.displayName = 'ColorSchemeContext';\n }\n const useColorScheme = () => React.useContext(ColorSchemeContext) || defaultContext;\n const defaultColorSchemes = {};\n const defaultComponents = {};\n function CssVarsProvider(props) {\n const {\n children,\n theme: themeProp,\n modeStorageKey = defaultModeStorageKey,\n colorSchemeStorageKey = defaultColorSchemeStorageKey,\n disableTransitionOnChange = designSystemTransitionOnChange,\n storageManager,\n storageWindow = typeof window === 'undefined' ? undefined : window,\n documentNode = typeof document === 'undefined' ? undefined : document,\n colorSchemeNode = typeof document === 'undefined' ? undefined : document.documentElement,\n disableNestedContext = false,\n disableStyleSheetGeneration = false,\n defaultMode: initialMode = 'system',\n noSsr\n } = props;\n const hasMounted = React.useRef(false);\n const upperTheme = muiUseTheme();\n const ctx = React.useContext(ColorSchemeContext);\n const nested = !!ctx && !disableNestedContext;\n const initialTheme = React.useMemo(() => {\n if (themeProp) {\n return themeProp;\n }\n return typeof defaultTheme === 'function' ? defaultTheme() : defaultTheme;\n }, [themeProp]);\n const scopedTheme = initialTheme[themeId];\n const restThemeProp = scopedTheme || initialTheme;\n const {\n colorSchemes = defaultColorSchemes,\n components = defaultComponents,\n cssVarPrefix\n } = restThemeProp;\n const joinedColorSchemes = Object.keys(colorSchemes).filter(k => !!colorSchemes[k]).join(',');\n const allColorSchemes = React.useMemo(() => joinedColorSchemes.split(','), [joinedColorSchemes]);\n const defaultLightColorScheme = typeof defaultColorScheme === 'string' ? defaultColorScheme : defaultColorScheme.light;\n const defaultDarkColorScheme = typeof defaultColorScheme === 'string' ? defaultColorScheme : defaultColorScheme.dark;\n const defaultMode = colorSchemes[defaultLightColorScheme] && colorSchemes[defaultDarkColorScheme] ? initialMode : colorSchemes[restThemeProp.defaultColorScheme]?.palette?.mode || restThemeProp.palette?.mode;\n\n // 1. Get the data about the `mode`, `colorScheme`, and setter functions.\n const {\n mode: stateMode,\n setMode,\n systemMode,\n lightColorScheme,\n darkColorScheme,\n colorScheme: stateColorScheme,\n setColorScheme\n } = useCurrentColorScheme({\n supportedColorSchemes: allColorSchemes,\n defaultLightColorScheme,\n defaultDarkColorScheme,\n modeStorageKey,\n colorSchemeStorageKey,\n defaultMode,\n storageManager,\n storageWindow,\n noSsr\n });\n let mode = stateMode;\n let colorScheme = stateColorScheme;\n if (nested) {\n mode = ctx.mode;\n colorScheme = ctx.colorScheme;\n }\n const memoTheme = React.useMemo(() => {\n // `colorScheme` is undefined on the server and hydration phase\n const calculatedColorScheme = colorScheme || restThemeProp.defaultColorScheme;\n\n // 2. get the `vars` object that refers to the CSS custom properties\n const themeVars = restThemeProp.generateThemeVars?.() || restThemeProp.vars;\n\n // 3. Start composing the theme object\n const theme = {\n ...restThemeProp,\n components,\n colorSchemes,\n cssVarPrefix,\n vars: themeVars\n };\n if (typeof theme.generateSpacing === 'function') {\n theme.spacing = theme.generateSpacing();\n }\n\n // 4. Resolve the color scheme and merge it to the theme\n if (calculatedColorScheme) {\n const scheme = colorSchemes[calculatedColorScheme];\n if (scheme && typeof scheme === 'object') {\n // 4.1 Merge the selected color scheme to the theme\n Object.keys(scheme).forEach(schemeKey => {\n if (scheme[schemeKey] && typeof scheme[schemeKey] === 'object') {\n // shallow merge the 1st level structure of the theme.\n theme[schemeKey] = {\n ...theme[schemeKey],\n ...scheme[schemeKey]\n };\n } else {\n theme[schemeKey] = scheme[schemeKey];\n }\n });\n }\n }\n return resolveTheme ? resolveTheme(theme) : theme;\n }, [restThemeProp, colorScheme, components, colorSchemes, cssVarPrefix]);\n\n // 5. Declaring effects\n // 5.1 Updates the selector value to use the current color scheme which tells CSS to use the proper stylesheet.\n const colorSchemeSelector = restThemeProp.colorSchemeSelector;\n useEnhancedEffect(() => {\n if (colorScheme && colorSchemeNode && colorSchemeSelector && colorSchemeSelector !== 'media') {\n const selector = colorSchemeSelector;\n let rule = colorSchemeSelector;\n if (selector === 'class') {\n rule = `.%s`;\n }\n if (selector === 'data') {\n rule = `[data-%s]`;\n }\n if (selector?.startsWith('data-') && !selector.includes('%s')) {\n // 'data-mui-color-scheme' -> '[data-mui-color-scheme=\"%s\"]'\n rule = `[${selector}=\"%s\"]`;\n }\n if (rule.startsWith('.')) {\n colorSchemeNode.classList.remove(...allColorSchemes.map(scheme => rule.substring(1).replace('%s', scheme)));\n colorSchemeNode.classList.add(rule.substring(1).replace('%s', colorScheme));\n } else {\n const matches = rule.replace('%s', colorScheme).match(/\\[([^\\]]+)\\]/);\n if (matches) {\n const [attr, value] = matches[1].split('=');\n if (!value) {\n // for attributes like `data-theme-dark`, `data-theme-light`\n // remove all the existing data attributes before setting the new one\n allColorSchemes.forEach(scheme => {\n colorSchemeNode.removeAttribute(attr.replace(colorScheme, scheme));\n });\n }\n colorSchemeNode.setAttribute(attr, value ? value.replace(/\"|'/g, '') : '');\n } else {\n colorSchemeNode.setAttribute(rule, colorScheme);\n }\n }\n }\n }, [colorScheme, colorSchemeSelector, colorSchemeNode, allColorSchemes]);\n\n // 5.2 Remove the CSS transition when color scheme changes to create instant experience.\n // credit: https://github.com/pacocoursey/next-themes/blob/b5c2bad50de2d61ad7b52a9c5cdc801a78507d7a/index.tsx#L313\n React.useEffect(() => {\n let timer;\n if (disableTransitionOnChange && hasMounted.current && documentNode) {\n const css = documentNode.createElement('style');\n css.appendChild(documentNode.createTextNode(DISABLE_CSS_TRANSITION));\n documentNode.head.appendChild(css);\n\n // Force browser repaint\n (() => window.getComputedStyle(documentNode.body))();\n timer = setTimeout(() => {\n documentNode.head.removeChild(css);\n }, 1);\n }\n return () => {\n clearTimeout(timer);\n };\n }, [colorScheme, disableTransitionOnChange, documentNode]);\n React.useEffect(() => {\n hasMounted.current = true;\n return () => {\n hasMounted.current = false;\n };\n }, []);\n const contextValue = React.useMemo(() => ({\n allColorSchemes,\n colorScheme,\n darkColorScheme,\n lightColorScheme,\n mode,\n setColorScheme,\n setMode: process.env.NODE_ENV === 'production' ? setMode : newMode => {\n if (memoTheme.colorSchemeSelector === 'media') {\n console.error(['MUI: The `setMode` function has no effect if `colorSchemeSelector` is `media` (`media` is the default value).', 'To toggle the mode manually, please configure `colorSchemeSelector` to use a class or data attribute.', 'To learn more, visit https://mui.com/material-ui/customization/css-theme-variables/configuration/#toggling-dark-mode-manually'].join('\\n'));\n }\n setMode(newMode);\n },\n systemMode\n }), [allColorSchemes, colorScheme, darkColorScheme, lightColorScheme, mode, setColorScheme, setMode, systemMode, memoTheme.colorSchemeSelector]);\n let shouldGenerateStyleSheet = true;\n if (disableStyleSheetGeneration || restThemeProp.cssVariables === false || nested && upperTheme?.cssVarPrefix === cssVarPrefix) {\n shouldGenerateStyleSheet = false;\n }\n const element = /*#__PURE__*/_jsxs(React.Fragment, {\n children: [/*#__PURE__*/_jsx(ThemeProvider, {\n themeId: scopedTheme ? themeId : undefined,\n theme: memoTheme,\n children: children\n }), shouldGenerateStyleSheet && /*#__PURE__*/_jsx(GlobalStyles, {\n styles: memoTheme.generateStyleSheets?.() || []\n })]\n });\n if (nested) {\n return element;\n }\n return /*#__PURE__*/_jsx(ColorSchemeContext.Provider, {\n value: contextValue,\n children: element\n });\n }\n process.env.NODE_ENV !== \"production\" ? CssVarsProvider.propTypes = {\n /**\n * The component tree.\n */\n children: PropTypes.node,\n /**\n * The node used to attach the color-scheme attribute\n */\n colorSchemeNode: PropTypes.any,\n /**\n * localStorage key used to store `colorScheme`\n */\n colorSchemeStorageKey: PropTypes.string,\n /**\n * The default mode when the storage is empty,\n * require the theme to have `colorSchemes` with light and dark.\n */\n defaultMode: PropTypes.string,\n /**\n * If `true`, the provider creates its own context and generate stylesheet as if it is a root `CssVarsProvider`.\n */\n disableNestedContext: PropTypes.bool,\n /**\n * If `true`, the style sheet won't be generated.\n *\n * This is useful for controlling nested CssVarsProvider behavior.\n */\n disableStyleSheetGeneration: PropTypes.bool,\n /**\n * Disable CSS transitions when switching between modes or color schemes.\n */\n disableTransitionOnChange: PropTypes.bool,\n /**\n * The document to attach the attribute to.\n */\n documentNode: PropTypes.any,\n /**\n * The key in the local storage used to store current color scheme.\n */\n modeStorageKey: PropTypes.string,\n /**\n * If `true`, the mode will be the same value as the storage without an extra rerendering after the hydration.\n * You should use this option in conjuction with `InitColorSchemeScript` component.\n */\n noSsr: PropTypes.bool,\n /**\n * The storage manager to be used for storing the mode and color scheme\n * @default using `window.localStorage`\n */\n storageManager: PropTypes.func,\n /**\n * The window that attaches the 'storage' event listener.\n * @default window\n */\n storageWindow: PropTypes.any,\n /**\n * The calculated theme object that will be passed through context.\n */\n theme: PropTypes.object\n } : void 0;\n const defaultLightColorScheme = typeof defaultColorScheme === 'string' ? defaultColorScheme : defaultColorScheme.light;\n const defaultDarkColorScheme = typeof defaultColorScheme === 'string' ? defaultColorScheme : defaultColorScheme.dark;\n const getInitColorSchemeScript = params => InitColorSchemeScript({\n colorSchemeStorageKey: defaultColorSchemeStorageKey,\n defaultLightColorScheme,\n defaultDarkColorScheme,\n modeStorageKey: defaultModeStorageKey,\n ...params\n });\n return {\n CssVarsProvider,\n useColorScheme,\n getInitColorSchemeScript\n };\n}"],"names":["DISABLE_CSS_TRANSITION","createCssVarsProvider","options","themeId","theme","defaultTheme","modeStorageKey","defaultModeStorageKey","DEFAULT_MODE_STORAGE_KEY","colorSchemeStorageKey","defaultColorSchemeStorageKey","DEFAULT_COLOR_SCHEME_STORAGE_KEY","disableTransitionOnChange","designSystemTransitionOnChange","defaultColorScheme","resolveTheme","defaultContext","allColorSchemes","colorScheme","undefined","darkColorScheme","lightColorScheme","mode","setColorScheme","setMode","systemMode","ColorSchemeContext","React","createContext","process","env","NODE_ENV","displayName","defaultColorSchemes","defaultComponents","CssVarsProvider","props","children","themeProp","storageManager","storageWindow","window","documentNode","document","colorSchemeNode","documentElement","disableNestedContext","disableStyleSheetGeneration","defaultMode","initialMode","noSsr","hasMounted","useRef","upperTheme","muiUseTheme","ctx","useContext","nested","initialTheme","useMemo","scopedTheme","restThemeProp","colorSchemes","components","cssVarPrefix","joinedColorSchemes","Object","keys","filter","k","join","split","defaultLightColorScheme","light","defaultDarkColorScheme","dark","palette","stateMode","stateColorScheme","useCurrentColorScheme","supportedColorSchemes","memoTheme","calculatedColorScheme","themeVars","generateThemeVars","vars","generateSpacing","spacing","scheme","forEach","schemeKey","colorSchemeSelector","useEnhancedEffect","selector","rule","startsWith","includes","classList","remove","map","substring","replace","add","matches","match","attr","value","removeAttribute","setAttribute","useEffect","timer","current","css","createElement","appendChild","createTextNode","head","getComputedStyle","body","setTimeout","removeChild","clearTimeout","contextValue","newMode","console","error","shouldGenerateStyleSheet","cssVariables","element","_jsxs","Fragment","_jsx","ThemeProvider","GlobalStyles","styles","generateStyleSheets","Provider","propTypes","PropTypes","exports","node","any","string","bool","func","object","useColorScheme","getInitColorSchemeScript","params","InitColorSchemeScript"],"mappings":"imBAWY,MAACA,EAAyB,2JACvB,SAASC,EAAsBC,GAC5C,MAAMC,QACJA,EAOAC,MAAOC,EAAe,CAAE,EACxBC,eAAgBC,EAAwBC,EACxCC,sBAAuBC,EAA+BC,EACtDC,0BAA2BC,GAAiC,EAAKC,mBACjEA,EAAkBC,aAClBA,GACEb,E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import e from"../../node_modules/@mui/utils/esm/deepmerge/deepmerge.js";import t from"./cssVarsParser.js";function s(s,r={}){const{getSelector:o=v,disableCssColorScheme:c,colorSchemeSelector:a}=r,{colorSchemes:l={},components:n,defaultColorScheme:i="light",...m}=s,{vars:f,css:h,varsWithDefaults:u}=t(m,r);let d=u;const S={},{[i]:p,...g}=l;if(Object.entries(g||{}).forEach(([s,o])=>{const{vars:c,css:a,varsWithDefaults:l}=t(o,r);d=e(d,l),S[s]={css:a,vars:c}}),p){const{css:s,vars:o,varsWithDefaults:c}=t(p,r);d=e(d,c),S[i]={css:s,vars:o}}function v(e,t){let r=a;if("class"===a&&(r=".%s"),"data"===a&&(r="[data-%s]"),a?.startsWith("data-")&&!a.includes("%s")&&(r=`[${a}="%s"]`),e){if("media"===r){if(s.defaultColorScheme===e)return":root";const r=l[e]?.palette?.mode||e;return{[`@media (prefers-color-scheme: ${r})`]:{":root":t}}}if(r)return s.defaultColorScheme===e?`:root, ${r.replace("%s",String(e))}`:r.replace("%s",String(e))}return":root"}return{vars:d,generateThemeVars:()=>{let t={...f};return Object.entries(S).forEach(([,{vars:s}])=>{t=e(t,s)}),t},generateStyleSheets:()=>{const e=[],t=s.defaultColorScheme||"light";function r(t,s){Object.keys(s).length&&e.push("string"==typeof t?{[t]:{...s}}:t)}r(o(void 0,{...h}),h);const{[t]:a,...n}=S;if(a){const{css:e}=a,s=l[t]?.palette?.mode,n=!c&&s?{colorScheme:s,...e}:{...e};r(o(t,{...n}),n)}return Object.entries(n).forEach(([e,{css:t}])=>{const s=l[e]?.palette?.mode,a=!c&&s?{colorScheme:s,...t}:{...t};r(o(e,{...a}),a)}),e}}}export{s as default};
|
2
2
|
//# sourceMappingURL=prepareCssVars.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"prepareCssVars.js","sources":["../../../../../../../node_modules/@mui/system/esm/cssVars/prepareCssVars.js"],"sourcesContent":["import deepmerge from '@mui/utils/deepmerge';\nimport cssVarsParser from \"./cssVarsParser.js\";\nfunction prepareCssVars(theme, parserConfig = {}) {\n const {\n getSelector = defaultGetSelector,\n disableCssColorScheme,\n colorSchemeSelector: selector\n } = parserConfig;\n // @ts-ignore - ignore components do not exist\n const {\n colorSchemes = {},\n components,\n defaultColorScheme = 'light',\n ...otherTheme\n } = theme;\n const {\n vars: rootVars,\n css: rootCss,\n varsWithDefaults: rootVarsWithDefaults\n } = cssVarsParser(otherTheme, parserConfig);\n let themeVars = rootVarsWithDefaults;\n const colorSchemesMap = {};\n const {\n [defaultColorScheme]: defaultScheme,\n ...otherColorSchemes\n } = colorSchemes;\n Object.entries(otherColorSchemes || {}).forEach(([key, scheme]) => {\n const {\n vars,\n css,\n varsWithDefaults\n } = cssVarsParser(scheme, parserConfig);\n themeVars = deepmerge(themeVars, varsWithDefaults);\n colorSchemesMap[key] = {\n css,\n vars\n };\n });\n if (defaultScheme) {\n // default color scheme vars should be merged last to set as default\n const {\n css,\n vars,\n varsWithDefaults\n } = cssVarsParser(defaultScheme, parserConfig);\n themeVars = deepmerge(themeVars, varsWithDefaults);\n colorSchemesMap[defaultColorScheme] = {\n css,\n vars\n };\n }\n function defaultGetSelector(colorScheme, cssObject) {\n let rule = selector;\n if (selector === 'class') {\n rule = '.%s';\n }\n if (selector === 'data') {\n rule = '[data-%s]';\n }\n if (selector?.startsWith('data-') && !selector.includes('%s')) {\n // 'data-joy-color-scheme' -> '[data-joy-color-scheme=\"%s\"]'\n rule = `[${selector}=\"%s\"]`;\n }\n if (colorScheme) {\n if (rule === 'media') {\n if (theme.defaultColorScheme === colorScheme) {\n return ':root';\n }\n const mode = colorSchemes[colorScheme]?.palette?.mode || colorScheme;\n return {\n [`@media (prefers-color-scheme: ${mode})`]: {\n ':root': cssObject\n }\n };\n }\n if (rule) {\n if (theme.defaultColorScheme === colorScheme) {\n return `:root, ${rule.replace('%s', String(colorScheme))}`;\n }\n return rule.replace('%s', String(colorScheme));\n }\n }\n return ':root';\n }\n const generateThemeVars = () => {\n let vars = {\n ...rootVars\n };\n Object.entries(colorSchemesMap).forEach(([, {\n vars: schemeVars\n }]) => {\n vars = deepmerge(vars, schemeVars);\n });\n return vars;\n };\n const generateStyleSheets = () => {\n const stylesheets = [];\n const colorScheme = theme.defaultColorScheme || 'light';\n function insertStyleSheet(key, css) {\n if (Object.keys(css).length) {\n stylesheets.push(typeof key === 'string' ? {\n [key]: {\n ...css\n }\n } : key);\n }\n }\n insertStyleSheet(getSelector(undefined, {\n ...rootCss\n }), rootCss);\n const {\n [colorScheme]: defaultSchemeVal,\n ...other\n } = colorSchemesMap;\n if (defaultSchemeVal) {\n // default color scheme has to come before other color schemes\n const {\n css\n } = defaultSchemeVal;\n const cssColorSheme = colorSchemes[colorScheme]?.palette?.mode;\n const finalCss = !disableCssColorScheme && cssColorSheme ? {\n colorScheme: cssColorSheme,\n ...css\n } : {\n ...css\n };\n insertStyleSheet(getSelector(colorScheme, {\n ...finalCss\n }), finalCss);\n }\n Object.entries(other).forEach(([key, {\n css\n }]) => {\n const cssColorSheme = colorSchemes[key]?.palette?.mode;\n const finalCss = !disableCssColorScheme && cssColorSheme ? {\n colorScheme: cssColorSheme,\n ...css\n } : {\n ...css\n };\n insertStyleSheet(getSelector(key, {\n ...finalCss\n }), finalCss);\n });\n return stylesheets;\n };\n return {\n vars: themeVars,\n generateThemeVars,\n generateStyleSheets\n };\n}\nexport default prepareCssVars;"],"names":["prepareCssVars","theme","parserConfig","getSelector","defaultGetSelector","disableCssColorScheme","colorSchemeSelector","selector","colorSchemes","components","defaultColorScheme","otherTheme","vars","rootVars","css","rootCss","varsWithDefaults","rootVarsWithDefaults","cssVarsParser","themeVars","colorSchemesMap","defaultScheme","otherColorSchemes","Object","entries","forEach","key","scheme","deepmerge","colorScheme","cssObject","rule","startsWith","includes","mode","palette","replace","String","generateThemeVars","schemeVars","generateStyleSheets","stylesheets","insertStyleSheet","keys","length","push","undefined","defaultSchemeVal","other","cssColorSheme","finalCss"],"mappings":"
|
1
|
+
{"version":3,"file":"prepareCssVars.js","sources":["../../../../../../../node_modules/@mui/system/esm/cssVars/prepareCssVars.js"],"sourcesContent":["import deepmerge from '@mui/utils/deepmerge';\nimport cssVarsParser from \"./cssVarsParser.js\";\nfunction prepareCssVars(theme, parserConfig = {}) {\n const {\n getSelector = defaultGetSelector,\n disableCssColorScheme,\n colorSchemeSelector: selector\n } = parserConfig;\n // @ts-ignore - ignore components do not exist\n const {\n colorSchemes = {},\n components,\n defaultColorScheme = 'light',\n ...otherTheme\n } = theme;\n const {\n vars: rootVars,\n css: rootCss,\n varsWithDefaults: rootVarsWithDefaults\n } = cssVarsParser(otherTheme, parserConfig);\n let themeVars = rootVarsWithDefaults;\n const colorSchemesMap = {};\n const {\n [defaultColorScheme]: defaultScheme,\n ...otherColorSchemes\n } = colorSchemes;\n Object.entries(otherColorSchemes || {}).forEach(([key, scheme]) => {\n const {\n vars,\n css,\n varsWithDefaults\n } = cssVarsParser(scheme, parserConfig);\n themeVars = deepmerge(themeVars, varsWithDefaults);\n colorSchemesMap[key] = {\n css,\n vars\n };\n });\n if (defaultScheme) {\n // default color scheme vars should be merged last to set as default\n const {\n css,\n vars,\n varsWithDefaults\n } = cssVarsParser(defaultScheme, parserConfig);\n themeVars = deepmerge(themeVars, varsWithDefaults);\n colorSchemesMap[defaultColorScheme] = {\n css,\n vars\n };\n }\n function defaultGetSelector(colorScheme, cssObject) {\n let rule = selector;\n if (selector === 'class') {\n rule = '.%s';\n }\n if (selector === 'data') {\n rule = '[data-%s]';\n }\n if (selector?.startsWith('data-') && !selector.includes('%s')) {\n // 'data-joy-color-scheme' -> '[data-joy-color-scheme=\"%s\"]'\n rule = `[${selector}=\"%s\"]`;\n }\n if (colorScheme) {\n if (rule === 'media') {\n if (theme.defaultColorScheme === colorScheme) {\n return ':root';\n }\n const mode = colorSchemes[colorScheme]?.palette?.mode || colorScheme;\n return {\n [`@media (prefers-color-scheme: ${mode})`]: {\n ':root': cssObject\n }\n };\n }\n if (rule) {\n if (theme.defaultColorScheme === colorScheme) {\n return `:root, ${rule.replace('%s', String(colorScheme))}`;\n }\n return rule.replace('%s', String(colorScheme));\n }\n }\n return ':root';\n }\n const generateThemeVars = () => {\n let vars = {\n ...rootVars\n };\n Object.entries(colorSchemesMap).forEach(([, {\n vars: schemeVars\n }]) => {\n vars = deepmerge(vars, schemeVars);\n });\n return vars;\n };\n const generateStyleSheets = () => {\n const stylesheets = [];\n const colorScheme = theme.defaultColorScheme || 'light';\n function insertStyleSheet(key, css) {\n if (Object.keys(css).length) {\n stylesheets.push(typeof key === 'string' ? {\n [key]: {\n ...css\n }\n } : key);\n }\n }\n insertStyleSheet(getSelector(undefined, {\n ...rootCss\n }), rootCss);\n const {\n [colorScheme]: defaultSchemeVal,\n ...other\n } = colorSchemesMap;\n if (defaultSchemeVal) {\n // default color scheme has to come before other color schemes\n const {\n css\n } = defaultSchemeVal;\n const cssColorSheme = colorSchemes[colorScheme]?.palette?.mode;\n const finalCss = !disableCssColorScheme && cssColorSheme ? {\n colorScheme: cssColorSheme,\n ...css\n } : {\n ...css\n };\n insertStyleSheet(getSelector(colorScheme, {\n ...finalCss\n }), finalCss);\n }\n Object.entries(other).forEach(([key, {\n css\n }]) => {\n const cssColorSheme = colorSchemes[key]?.palette?.mode;\n const finalCss = !disableCssColorScheme && cssColorSheme ? {\n colorScheme: cssColorSheme,\n ...css\n } : {\n ...css\n };\n insertStyleSheet(getSelector(key, {\n ...finalCss\n }), finalCss);\n });\n return stylesheets;\n };\n return {\n vars: themeVars,\n generateThemeVars,\n generateStyleSheets\n };\n}\nexport default prepareCssVars;"],"names":["prepareCssVars","theme","parserConfig","getSelector","defaultGetSelector","disableCssColorScheme","colorSchemeSelector","selector","colorSchemes","components","defaultColorScheme","otherTheme","vars","rootVars","css","rootCss","varsWithDefaults","rootVarsWithDefaults","cssVarsParser","themeVars","colorSchemesMap","defaultScheme","otherColorSchemes","Object","entries","forEach","key","scheme","deepmerge","colorScheme","cssObject","rule","startsWith","includes","mode","palette","replace","String","generateThemeVars","schemeVars","generateStyleSheets","stylesheets","insertStyleSheet","keys","length","push","undefined","defaultSchemeVal","other","cssColorSheme","finalCss"],"mappings":"0GAEA,SAASA,EAAeC,EAAOC,EAAe,IAC5C,MAAMC,YACJA,EAAcC,EAAkBC,sBAChCA,EACAC,oBAAqBC,GACnBL,GAEEM,aACJA,EAAe,CAAE,EAAAC,WACjBA,EAAUC,mBACVA,EAAqB,WAClBC,GACDV,GAEFW,KAAMC,EACNC,IAAKC,EACLC,iBAAkBC,GAChBC,EAAcP,EAAYT,GAC9B,IAAIiB,EAAYF,EAChB,MAAMG,EAAkB,CAAA,GAEtBV,CAACA,GAAqBW,KACnBC,GACDd,EAaJ,GAZAe,OAAOC,QAAQF,GAAqB,CAAE,GAAEG,QAAQ,EAAEC,EAAKC,MACrD,MAAMf,KACJA,EAAIE,IACJA,EAAGE,iBACHA,GACEE,EAAcS,EAAQzB,GAC1BiB,EAAYS,EAAUT,EAAWH,GACjCI,EAAgBM,GAAO,CACrBZ,MACAF,UAGAS,EAAe,CAEjB,MAAMP,IACJA,EAAGF,KACHA,EAAII,iBACJA,GACEE,EAAcG,EAAenB,GACjCiB,EAAYS,EAAUT,EAAWH,GACjCI,EAAgBV,GAAsB,CACpCI,MACAF,OAEH,CACD,SAASR,EAAmByB,EAAaC,GACvC,IAAIC,EAAOxB,EAWX,GAViB,UAAbA,IACFwB,EAAO,OAEQ,SAAbxB,IACFwB,EAAO,aAELxB,GAAUyB,WAAW,WAAazB,EAAS0B,SAAS,QAEtDF,EAAO,IAAIxB,WAETsB,EAAa,CACf,GAAa,UAATE,EAAkB,CACpB,GAAI9B,EAAMS,qBAAuBmB,EAC/B,MAAO,QAET,MAAMK,EAAO1B,EAAaqB,IAAcM,SAASD,MAAQL,EACzD,MAAO,CACL,CAAC,iCAAiCK,MAAU,CAC1C,QAASJ,GAGd,CACD,GAAIC,EACF,OAAI9B,EAAMS,qBAAuBmB,EACxB,UAAUE,EAAKK,QAAQ,KAAMC,OAAOR,MAEtCE,EAAKK,QAAQ,KAAMC,OAAOR,GAEpC,CACD,MAAO,OACR,CA+DD,MAAO,CACLjB,KAAMO,EACNmB,kBAhEwB,KACxB,IAAI1B,EAAO,IACNC,GAOL,OALAU,OAAOC,QAAQJ,GAAiBK,QAAQ,EAAI,EAC1Cb,KAAM2B,OAEN3B,EAAOgB,EAAUhB,EAAM2B,KAElB3B,GAwDP4B,oBAtD0B,KAC1B,MAAMC,EAAc,GACdZ,EAAc5B,EAAMS,oBAAsB,QAChD,SAASgC,EAAiBhB,EAAKZ,GACzBS,OAAOoB,KAAK7B,GAAK8B,QACnBH,EAAYI,KAAoB,iBAARnB,EAAmB,CACzCA,CAACA,GAAM,IACFZ,IAEHY,EAEP,CACDgB,EAAiBvC,OAAY2C,EAAW,IACnC/B,IACDA,GACJ,MACEc,CAACA,GAAckB,KACZC,GACD5B,EACJ,GAAI2B,EAAkB,CAEpB,MAAMjC,IACJA,GACEiC,EACEE,EAAgBzC,EAAaqB,IAAcM,SAASD,KACpDgB,GAAY7C,GAAyB4C,EAAgB,CACzDpB,YAAaoB,KACVnC,GACD,IACCA,GAEL4B,EAAiBvC,EAAY0B,EAAa,IACrCqB,IACDA,EACL,CAeD,OAdA3B,OAAOC,QAAQwB,GAAOvB,QAAQ,EAAEC,GAC9BZ,WAEA,MAAMmC,EAAgBzC,EAAakB,IAAMS,SAASD,KAC5CgB,GAAY7C,GAAyB4C,EAAgB,CACzDpB,YAAaoB,KACVnC,GACD,IACCA,GAEL4B,EAAiBvC,EAAYuB,EAAK,IAC7BwB,IACDA,KAECT,GAOX"}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import e from"
|
1
|
+
import e from"../../node_modules/@mui/utils/esm/deepmerge/deepmerge.js";function m(m,o){return o?e(m,o,{clone:!1}):m}export{m as default};
|
2
2
|
//# sourceMappingURL=merge.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"merge.js","sources":["../../../../../../../node_modules/@mui/system/esm/merge/merge.js"],"sourcesContent":["import deepmerge from '@mui/utils/deepmerge';\nfunction merge(acc, item) {\n if (!item) {\n return acc;\n }\n return deepmerge(acc, item, {\n clone: false // No need to clone deep, it's way faster.\n });\n}\nexport default merge;"],"names":["merge","acc","item","deepmerge","clone"],"mappings":"
|
1
|
+
{"version":3,"file":"merge.js","sources":["../../../../../../../node_modules/@mui/system/esm/merge/merge.js"],"sourcesContent":["import deepmerge from '@mui/utils/deepmerge';\nfunction merge(acc, item) {\n if (!item) {\n return acc;\n }\n return deepmerge(acc, item, {\n clone: false // No need to clone deep, it's way faster.\n });\n}\nexport default merge;"],"names":["merge","acc","item","deepmerge","clone"],"mappings":"wEACA,SAASA,EAAMC,EAAKC,GAClB,OAAKA,EAGEC,EAAUF,EAAKC,EAAM,CAC1BE,OAAO,IAHAH,CAKX"}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import"../../../../prop-types/index.js";import{p as r}from"../../../../../_virtual/
|
1
|
+
import"../../../../prop-types/index.js";import{p as r}from"../../../../../_virtual/index8.js";const e="production"!==process.env.NODE_ENV?r.exports.oneOfType([r.exports.number,r.exports.string,r.exports.object,r.exports.array]):{};export{e as default};
|
2
2
|
//# sourceMappingURL=responsivePropType.js.map
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import r from"
|
1
|
+
import r from"../../node_modules/@mui/utils/esm/capitalize/capitalize.js";import e from"../responsivePropType/responsivePropType.js";import{handleBreakpoints as t}from"../breakpoints/breakpoints.js";function n(r,e,t=!0){if(!e||"string"!=typeof e)return null;if(r&&r.vars&&t){const t=`vars.${e}`.split(".").reduce((r,e)=>r&&r[e]?r[e]:null,r);if(null!=t)return t}return e.split(".").reduce((r,e)=>r&&null!=r[e]?r[e]:null,r)}function o(r,e,t,o=t){let p;return p="function"==typeof r?r(t):Array.isArray(r)?r[t]||o:n(r,t)||o,e&&(p=e(p,o,r)),p}function p(p){const{prop:s,cssProperty:i=p.prop,themeKey:u,transform:l}=p,f=e=>{if(null==e[s])return null;const p=e[s],f=n(e.theme,u)||{};return t(e,p,e=>{let t=o(f,l,e);return e===t&&"string"==typeof e&&(t=o(f,l,`${s}${"default"===e?"":r(e)}`,e)),!1===i?t:{[i]:t}})};return f.propTypes="production"!==process.env.NODE_ENV?{[s]:e}:{},f.filterProps=[s],f}export{p as default,n as getPath,o as getStyleValue};
|
2
2
|
//# sourceMappingURL=style.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"style.js","sources":["../../../../../../../node_modules/@mui/system/esm/style/style.js"],"sourcesContent":["import capitalize from '@mui/utils/capitalize';\nimport responsivePropType from \"../responsivePropType/index.js\";\nimport { handleBreakpoints } from \"../breakpoints/index.js\";\nexport function getPath(obj, path, checkVars = true) {\n if (!path || typeof path !== 'string') {\n return null;\n }\n\n // Check if CSS variables are used\n if (obj && obj.vars && checkVars) {\n const val = `vars.${path}`.split('.').reduce((acc, item) => acc && acc[item] ? acc[item] : null, obj);\n if (val != null) {\n return val;\n }\n }\n return path.split('.').reduce((acc, item) => {\n if (acc && acc[item] != null) {\n return acc[item];\n }\n return null;\n }, obj);\n}\nexport function getStyleValue(themeMapping, transform, propValueFinal, userValue = propValueFinal) {\n let value;\n if (typeof themeMapping === 'function') {\n value = themeMapping(propValueFinal);\n } else if (Array.isArray(themeMapping)) {\n value = themeMapping[propValueFinal] || userValue;\n } else {\n value = getPath(themeMapping, propValueFinal) || userValue;\n }\n if (transform) {\n value = transform(value, userValue, themeMapping);\n }\n return value;\n}\nfunction style(options) {\n const {\n prop,\n cssProperty = options.prop,\n themeKey,\n transform\n } = options;\n\n // false positive\n // eslint-disable-next-line react/function-component-definition\n const fn = props => {\n if (props[prop] == null) {\n return null;\n }\n const propValue = props[prop];\n const theme = props.theme;\n const themeMapping = getPath(theme, themeKey) || {};\n const styleFromPropValue = propValueFinal => {\n let value = getStyleValue(themeMapping, transform, propValueFinal);\n if (propValueFinal === value && typeof propValueFinal === 'string') {\n // Haven't found value\n value = getStyleValue(themeMapping, transform, `${prop}${propValueFinal === 'default' ? '' : capitalize(propValueFinal)}`, propValueFinal);\n }\n if (cssProperty === false) {\n return value;\n }\n return {\n [cssProperty]: value\n };\n };\n return handleBreakpoints(props, propValue, styleFromPropValue);\n };\n fn.propTypes = process.env.NODE_ENV !== 'production' ? {\n [prop]: responsivePropType\n } : {};\n fn.filterProps = [prop];\n return fn;\n}\nexport default style;"],"names":["getPath","obj","path","checkVars","vars","val","split","reduce","acc","item","getStyleValue","themeMapping","transform","propValueFinal","userValue","value","Array","isArray","style","options","prop","cssProperty","themeKey","fn","props","propValue","theme","handleBreakpoints","capitalize","propTypes","process","env","NODE_ENV","responsivePropType","filterProps"],"mappings":"
|
1
|
+
{"version":3,"file":"style.js","sources":["../../../../../../../node_modules/@mui/system/esm/style/style.js"],"sourcesContent":["import capitalize from '@mui/utils/capitalize';\nimport responsivePropType from \"../responsivePropType/index.js\";\nimport { handleBreakpoints } from \"../breakpoints/index.js\";\nexport function getPath(obj, path, checkVars = true) {\n if (!path || typeof path !== 'string') {\n return null;\n }\n\n // Check if CSS variables are used\n if (obj && obj.vars && checkVars) {\n const val = `vars.${path}`.split('.').reduce((acc, item) => acc && acc[item] ? acc[item] : null, obj);\n if (val != null) {\n return val;\n }\n }\n return path.split('.').reduce((acc, item) => {\n if (acc && acc[item] != null) {\n return acc[item];\n }\n return null;\n }, obj);\n}\nexport function getStyleValue(themeMapping, transform, propValueFinal, userValue = propValueFinal) {\n let value;\n if (typeof themeMapping === 'function') {\n value = themeMapping(propValueFinal);\n } else if (Array.isArray(themeMapping)) {\n value = themeMapping[propValueFinal] || userValue;\n } else {\n value = getPath(themeMapping, propValueFinal) || userValue;\n }\n if (transform) {\n value = transform(value, userValue, themeMapping);\n }\n return value;\n}\nfunction style(options) {\n const {\n prop,\n cssProperty = options.prop,\n themeKey,\n transform\n } = options;\n\n // false positive\n // eslint-disable-next-line react/function-component-definition\n const fn = props => {\n if (props[prop] == null) {\n return null;\n }\n const propValue = props[prop];\n const theme = props.theme;\n const themeMapping = getPath(theme, themeKey) || {};\n const styleFromPropValue = propValueFinal => {\n let value = getStyleValue(themeMapping, transform, propValueFinal);\n if (propValueFinal === value && typeof propValueFinal === 'string') {\n // Haven't found value\n value = getStyleValue(themeMapping, transform, `${prop}${propValueFinal === 'default' ? '' : capitalize(propValueFinal)}`, propValueFinal);\n }\n if (cssProperty === false) {\n return value;\n }\n return {\n [cssProperty]: value\n };\n };\n return handleBreakpoints(props, propValue, styleFromPropValue);\n };\n fn.propTypes = process.env.NODE_ENV !== 'production' ? {\n [prop]: responsivePropType\n } : {};\n fn.filterProps = [prop];\n return fn;\n}\nexport default style;"],"names":["getPath","obj","path","checkVars","vars","val","split","reduce","acc","item","getStyleValue","themeMapping","transform","propValueFinal","userValue","value","Array","isArray","style","options","prop","cssProperty","themeKey","fn","props","propValue","theme","handleBreakpoints","capitalize","propTypes","process","env","NODE_ENV","responsivePropType","filterProps"],"mappings":"uMAGO,SAASA,EAAQC,EAAKC,EAAMC,GAAY,GAC7C,IAAKD,GAAwB,iBAATA,EAClB,OAAO,KAIT,GAAID,GAAOA,EAAIG,MAAQD,EAAW,CAChC,MAAME,EAAM,QAAQH,IAAOI,MAAM,KAAKC,OAAO,CAACC,EAAKC,IAASD,GAAOA,EAAIC,GAAQD,EAAIC,GAAQ,KAAMR,GACjG,GAAW,MAAPI,EACF,OAAOA,CAEV,CACD,OAAOH,EAAKI,MAAM,KAAKC,OAAO,CAACC,EAAKC,IAC9BD,GAAoB,MAAbA,EAAIC,GACND,EAAIC,GAEN,KACNR,EACL,CACO,SAASS,EAAcC,EAAcC,EAAWC,EAAgBC,EAAYD,GACjF,IAAIE,EAWJ,OATEA,EAD0B,mBAAjBJ,EACDA,EAAaE,GACZG,MAAMC,QAAQN,GACfA,EAAaE,IAAmBC,EAEhCd,EAAQW,EAAcE,IAAmBC,EAE/CF,IACFG,EAAQH,EAAUG,EAAOD,EAAWH,IAE/BI,CACT,CACA,SAASG,EAAMC,GACb,MAAMC,KACJA,EAAIC,YACJA,EAAcF,EAAQC,KAAIE,SAC1BA,EAAQV,UACRA,GACEO,EAIEI,EAAKC,IACT,GAAmB,MAAfA,EAAMJ,GACR,OAAO,KAET,MAAMK,EAAYD,EAAMJ,GAElBT,EAAeX,EADPwB,EAAME,MACgBJ,IAAa,CAAA,EAcjD,OAAOK,EAAkBH,EAAOC,EAbLZ,IACzB,IAAIE,EAAQL,EAAcC,EAAcC,EAAWC,GAKnD,OAJIA,IAAmBE,GAAmC,iBAAnBF,IAErCE,EAAQL,EAAcC,EAAcC,EAAW,GAAGQ,IAA0B,YAAnBP,EAA+B,GAAKe,EAAWf,KAAmBA,KAEzG,IAAhBQ,EACKN,EAEF,CACLM,CAACA,GAAcN,MASrB,OAJAQ,EAAGM,UAAqC,eAAzBC,QAAQC,IAAIC,SAA4B,CACrDZ,CAACA,GAAOa,GACN,GACJV,EAAGW,YAAc,CAACd,GACXG,CACT"}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import{isPlainObject as e}from"
|
1
|
+
import{isPlainObject as e}from"../../node_modules/@mui/utils/esm/deepmerge/deepmerge.js";import r from"./defaultSxConfig.js";function s(s){const{sx:o,...t}=s,{systemProps:n,otherProps:m}=(e=>{const s={systemProps:{},otherProps:{}},o=e?.theme?.unstable_sxConfig??r;return Object.keys(e).forEach(r=>{o[r]?s.systemProps[r]=e[r]:s.otherProps[r]=e[r]}),s})(t);let p;return p=Array.isArray(o)?[n,...o]:"function"==typeof o?(...r)=>{const s=o(...r);return e(s)?{...n,...s}:n}:{...n,...o},{...m,sx:p}}export{s as default};
|
2
2
|
//# sourceMappingURL=extendSxProp.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"extendSxProp.js","sources":["../../../../../../../node_modules/@mui/system/esm/styleFunctionSx/extendSxProp.js"],"sourcesContent":["import { isPlainObject } from '@mui/utils/deepmerge';\nimport defaultSxConfig from \"./defaultSxConfig.js\";\nconst splitProps = props => {\n const result = {\n systemProps: {},\n otherProps: {}\n };\n const config = props?.theme?.unstable_sxConfig ?? defaultSxConfig;\n Object.keys(props).forEach(prop => {\n if (config[prop]) {\n result.systemProps[prop] = props[prop];\n } else {\n result.otherProps[prop] = props[prop];\n }\n });\n return result;\n};\nexport default function extendSxProp(props) {\n const {\n sx: inSx,\n ...other\n } = props;\n const {\n systemProps,\n otherProps\n } = splitProps(other);\n let finalSx;\n if (Array.isArray(inSx)) {\n finalSx = [systemProps, ...inSx];\n } else if (typeof inSx === 'function') {\n finalSx = (...args) => {\n const result = inSx(...args);\n if (!isPlainObject(result)) {\n return systemProps;\n }\n return {\n ...systemProps,\n ...result\n };\n };\n } else {\n finalSx = {\n ...systemProps,\n ...inSx\n };\n }\n return {\n ...otherProps,\n sx: finalSx\n };\n}"],"names":["extendSxProp","props","sx","inSx","other","systemProps","otherProps","result","config","theme","unstable_sxConfig","defaultSxConfig","Object","keys","forEach","prop","splitProps","finalSx","Array","isArray","args","isPlainObject"],"mappings":"
|
1
|
+
{"version":3,"file":"extendSxProp.js","sources":["../../../../../../../node_modules/@mui/system/esm/styleFunctionSx/extendSxProp.js"],"sourcesContent":["import { isPlainObject } from '@mui/utils/deepmerge';\nimport defaultSxConfig from \"./defaultSxConfig.js\";\nconst splitProps = props => {\n const result = {\n systemProps: {},\n otherProps: {}\n };\n const config = props?.theme?.unstable_sxConfig ?? defaultSxConfig;\n Object.keys(props).forEach(prop => {\n if (config[prop]) {\n result.systemProps[prop] = props[prop];\n } else {\n result.otherProps[prop] = props[prop];\n }\n });\n return result;\n};\nexport default function extendSxProp(props) {\n const {\n sx: inSx,\n ...other\n } = props;\n const {\n systemProps,\n otherProps\n } = splitProps(other);\n let finalSx;\n if (Array.isArray(inSx)) {\n finalSx = [systemProps, ...inSx];\n } else if (typeof inSx === 'function') {\n finalSx = (...args) => {\n const result = inSx(...args);\n if (!isPlainObject(result)) {\n return systemProps;\n }\n return {\n ...systemProps,\n ...result\n };\n };\n } else {\n finalSx = {\n ...systemProps,\n ...inSx\n };\n }\n return {\n ...otherProps,\n sx: finalSx\n };\n}"],"names":["extendSxProp","props","sx","inSx","other","systemProps","otherProps","result","config","theme","unstable_sxConfig","defaultSxConfig","Object","keys","forEach","prop","splitProps","finalSx","Array","isArray","args","isPlainObject"],"mappings":"6HAiBe,SAASA,EAAaC,GACnC,MACEC,GAAIC,KACDC,GACDH,GACEI,YACJA,EAAWC,WACXA,GAtBeL,KACjB,MAAMM,EAAS,CACbF,YAAa,CAAE,EACfC,WAAY,CAAE,GAEVE,EAASP,GAAOQ,OAAOC,mBAAqBC,EAQlD,OAPAC,OAAOC,KAAKZ,GAAOa,QAAQC,IACrBP,EAAOO,GACTR,EAAOF,YAAYU,GAAQd,EAAMc,GAEjCR,EAAOD,WAAWS,GAAQd,EAAMc,KAG7BR,GAUHS,CAAWZ,GACf,IAAIa,EAoBJ,OAlBEA,EADEC,MAAMC,QAAQhB,GACN,CAACE,KAAgBF,GACF,mBAATA,EACN,IAAIiB,KACZ,MAAMb,EAASJ,KAAQiB,GACvB,OAAKC,EAAcd,GAGZ,IACFF,KACAE,GAJIF,GAQD,IACLA,KACAF,GAGA,IACFG,EACHJ,GAAIe,EAER"}
|