@mui/material 6.0.2 → 6.1.1-dev.20240919-130050-82a6448768
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/Accordion/Accordion.d.ts +2 -2
- package/Alert/Alert.d.ts +2 -2
- package/Alert/Alert.js +4 -3
- package/AppBar/AppBar.js +2 -1
- package/Autocomplete/Autocomplete.d.ts +8 -6
- package/Autocomplete/Autocomplete.js +4 -4
- package/Avatar/Avatar.d.ts +1 -1
- package/AvatarGroup/AvatarGroup.d.ts +1 -1
- package/Backdrop/Backdrop.d.ts +2 -2
- package/Backdrop/Backdrop.js +9 -2
- package/Badge/Badge.js +2 -1
- package/Button/Button.js +2 -1
- package/ButtonGroup/ButtonGroup.js +3 -2
- package/CHANGELOG.md +141 -15130
- package/Checkbox/Checkbox.js +3 -2
- package/Chip/Chip.js +6 -5
- package/CircularProgress/CircularProgress.js +2 -1
- package/ClickAwayListener/ClickAwayListener.js +1 -1
- package/Dialog/Dialog.js +1 -0
- package/Fab/Fab.js +2 -1
- package/FilledInput/FilledInput.js +2 -1
- package/FormControl/FormControl.d.ts +4 -4
- package/FormControl/FormControl.js +1 -2
- package/FormControlLabel/FormControlLabel.d.ts +1 -1
- package/FormLabel/FormLabel.js +2 -1
- package/Grid/Grid.d.ts +6 -1
- package/Grid/Grid.js +0 -1
- package/Hidden/withWidth.js +1 -0
- package/Icon/Icon.js +3 -2
- package/IconButton/IconButton.js +3 -2
- package/Input/Input.js +2 -1
- package/InputAdornment/InputAdornment.js +1 -1
- package/InputBase/InputBase.js +3 -1
- package/LinearProgress/LinearProgress.js +6 -5
- package/Link/Link.js +2 -1
- package/Modal/Modal.d.ts +4 -4
- package/Modal/Modal.js +1 -1
- package/Modal/ModalManager.js +4 -4
- package/NoSsr/NoSsr.d.ts +4 -4
- package/NoSsr/NoSsr.js +4 -4
- package/OutlinedInput/OutlinedInput.js +2 -1
- package/PaginationItem/PaginationItem.d.ts +4 -4
- package/PaginationItem/PaginationItem.js +3 -2
- package/Popover/Popover.d.ts +2 -2
- package/Popover/Popover.js +1 -1
- package/Portal/Portal.js +1 -1
- package/Radio/Radio.js +19 -3
- package/Select/SelectInput.js +2 -0
- package/Skeleton/Skeleton.js +5 -3
- package/Slider/Slider.js +4 -3
- package/Slider/useSlider.js +2 -2
- package/SpeedDial/SpeedDial.d.ts +1 -1
- package/SpeedDialIcon/SpeedDialIcon.js +1 -1
- package/StepButton/StepButton.js +1 -1
- package/StepLabel/StepLabel.d.ts +2 -2
- package/SwipeableDrawer/SwipeableDrawer.js +1 -0
- package/Switch/Switch.js +2 -1
- package/TextField/TextField.d.ts +13 -13
- package/ToggleButton/ToggleButton.js +2 -1
- package/ToggleButtonGroup/isValueSelected.js +1 -1
- package/Tooltip/Tooltip.js +6 -3
- package/Typography/Typography.js +2 -1
- package/Unstable_TrapFocus/FocusTrap.js +1 -1
- package/index.d.ts +1 -0
- package/index.js +1 -1
- package/internal/svg-icons/Add.js +1 -1
- package/internal/svg-icons/ArrowDownward.js +1 -1
- package/internal/svg-icons/ArrowDropDown.js +1 -1
- package/internal/svg-icons/Cancel.js +1 -1
- package/internal/svg-icons/CheckBox.js +1 -1
- package/internal/svg-icons/CheckBoxOutlineBlank.js +1 -1
- package/internal/svg-icons/CheckCircle.js +1 -1
- package/internal/svg-icons/Close.js +1 -1
- package/internal/svg-icons/ErrorOutline.js +1 -1
- package/internal/svg-icons/FirstPage.js +1 -1
- package/internal/svg-icons/IndeterminateCheckBox.js +1 -1
- package/internal/svg-icons/InfoOutlined.js +1 -1
- package/internal/svg-icons/KeyboardArrowLeft.js +1 -1
- package/internal/svg-icons/KeyboardArrowRight.js +1 -1
- package/internal/svg-icons/LastPage.js +1 -1
- package/internal/svg-icons/MoreHoriz.js +1 -1
- package/internal/svg-icons/NavigateBefore.js +1 -1
- package/internal/svg-icons/NavigateNext.js +1 -1
- package/internal/svg-icons/Person.js +1 -1
- package/internal/svg-icons/RadioButtonChecked.js +1 -1
- package/internal/svg-icons/RadioButtonUnchecked.js +1 -1
- package/internal/svg-icons/ReportProblemOutlined.js +1 -1
- package/internal/svg-icons/Star.js +1 -1
- package/internal/svg-icons/StarBorder.js +1 -1
- package/internal/svg-icons/SuccessOutlined.js +1 -1
- package/internal/svg-icons/Warning.js +1 -1
- package/modern/Alert/Alert.js +4 -3
- package/modern/AppBar/AppBar.js +2 -1
- package/modern/Autocomplete/Autocomplete.js +4 -4
- package/modern/Backdrop/Backdrop.js +9 -2
- package/modern/Badge/Badge.js +2 -1
- package/modern/Button/Button.js +2 -1
- package/modern/ButtonGroup/ButtonGroup.js +3 -2
- package/modern/Checkbox/Checkbox.js +3 -2
- package/modern/Chip/Chip.js +6 -5
- package/modern/CircularProgress/CircularProgress.js +2 -1
- package/modern/ClickAwayListener/ClickAwayListener.js +1 -1
- package/modern/Dialog/Dialog.js +1 -0
- package/modern/Fab/Fab.js +2 -1
- package/modern/FilledInput/FilledInput.js +2 -1
- package/modern/FormControl/FormControl.js +1 -2
- package/modern/FormLabel/FormLabel.js +2 -1
- package/modern/Grid/Grid.js +0 -1
- package/modern/Hidden/withWidth.js +1 -0
- package/modern/Icon/Icon.js +3 -2
- package/modern/IconButton/IconButton.js +3 -2
- package/modern/Input/Input.js +2 -1
- package/modern/InputAdornment/InputAdornment.js +1 -1
- package/modern/InputBase/InputBase.js +3 -1
- package/modern/LinearProgress/LinearProgress.js +6 -5
- package/modern/Link/Link.js +2 -1
- package/modern/Modal/Modal.js +1 -1
- package/modern/Modal/ModalManager.js +4 -4
- package/modern/NoSsr/NoSsr.js +4 -4
- package/modern/OutlinedInput/OutlinedInput.js +2 -1
- package/modern/PaginationItem/PaginationItem.js +3 -2
- package/modern/Popover/Popover.js +1 -1
- package/modern/Portal/Portal.js +1 -1
- package/modern/Radio/Radio.js +19 -3
- package/modern/Select/SelectInput.js +2 -0
- package/modern/Skeleton/Skeleton.js +5 -3
- package/modern/Slider/Slider.js +4 -3
- package/modern/Slider/useSlider.js +2 -2
- package/modern/SpeedDialIcon/SpeedDialIcon.js +1 -1
- package/modern/StepButton/StepButton.js +1 -1
- package/modern/SwipeableDrawer/SwipeableDrawer.js +1 -0
- package/modern/Switch/Switch.js +2 -1
- package/modern/ToggleButton/ToggleButton.js +2 -1
- package/modern/ToggleButtonGroup/isValueSelected.js +1 -1
- package/modern/Tooltip/Tooltip.js +6 -3
- package/modern/Typography/Typography.js +2 -1
- package/modern/Unstable_TrapFocus/FocusTrap.js +1 -1
- package/modern/index.js +1 -1
- package/modern/internal/svg-icons/Add.js +1 -1
- package/modern/internal/svg-icons/ArrowDownward.js +1 -1
- package/modern/internal/svg-icons/ArrowDropDown.js +1 -1
- package/modern/internal/svg-icons/Cancel.js +1 -1
- package/modern/internal/svg-icons/CheckBox.js +1 -1
- package/modern/internal/svg-icons/CheckBoxOutlineBlank.js +1 -1
- package/modern/internal/svg-icons/CheckCircle.js +1 -1
- package/modern/internal/svg-icons/Close.js +1 -1
- package/modern/internal/svg-icons/ErrorOutline.js +1 -1
- package/modern/internal/svg-icons/FirstPage.js +1 -1
- package/modern/internal/svg-icons/IndeterminateCheckBox.js +1 -1
- package/modern/internal/svg-icons/InfoOutlined.js +1 -1
- package/modern/internal/svg-icons/KeyboardArrowLeft.js +1 -1
- package/modern/internal/svg-icons/KeyboardArrowRight.js +1 -1
- package/modern/internal/svg-icons/LastPage.js +1 -1
- package/modern/internal/svg-icons/MoreHoriz.js +1 -1
- package/modern/internal/svg-icons/NavigateBefore.js +1 -1
- package/modern/internal/svg-icons/NavigateNext.js +1 -1
- package/modern/internal/svg-icons/Person.js +1 -1
- package/modern/internal/svg-icons/RadioButtonChecked.js +1 -1
- package/modern/internal/svg-icons/RadioButtonUnchecked.js +1 -1
- package/modern/internal/svg-icons/ReportProblemOutlined.js +1 -1
- package/modern/internal/svg-icons/Star.js +1 -1
- package/modern/internal/svg-icons/StarBorder.js +1 -1
- package/modern/internal/svg-icons/SuccessOutlined.js +1 -1
- package/modern/internal/svg-icons/Warning.js +1 -1
- package/modern/styles/ThemeProviderWithVars.js +5 -3
- package/modern/styles/createColorScheme.js +1 -1
- package/modern/styles/createGetSelector.js +2 -2
- package/modern/styles/excludeVariablesFromRoot.js +1 -1
- package/modern/styles/useTheme.js +1 -0
- package/modern/useAutocomplete/useAutocomplete.js +2 -2
- package/modern/useScrollTrigger/useScrollTrigger.js +1 -0
- package/modern/utils/createSimplePaletteValueFilter.js +41 -0
- package/modern/utils/createSvgIcon.js +1 -1
- package/modern/version/index.js +4 -5
- package/node/Alert/Alert.js +4 -3
- package/node/AppBar/AppBar.js +2 -1
- package/node/Autocomplete/Autocomplete.js +4 -4
- package/node/Backdrop/Backdrop.js +9 -2
- package/node/Badge/Badge.js +2 -1
- package/node/Button/Button.js +2 -1
- package/node/ButtonGroup/ButtonGroup.js +3 -2
- package/node/Checkbox/Checkbox.js +3 -2
- package/node/Chip/Chip.js +6 -5
- package/node/CircularProgress/CircularProgress.js +2 -1
- package/node/ClickAwayListener/ClickAwayListener.js +1 -1
- package/node/Dialog/Dialog.js +1 -0
- package/node/Fab/Fab.js +2 -1
- package/node/FilledInput/FilledInput.js +2 -1
- package/node/FormControl/FormControl.js +1 -2
- package/node/FormLabel/FormLabel.js +2 -1
- package/node/Grid/Grid.js +0 -1
- package/node/Hidden/withWidth.js +1 -0
- package/node/Icon/Icon.js +3 -2
- package/node/IconButton/IconButton.js +3 -2
- package/node/Input/Input.js +2 -1
- package/node/InputAdornment/InputAdornment.js +1 -1
- package/node/InputBase/InputBase.js +3 -1
- package/node/LinearProgress/LinearProgress.js +6 -5
- package/node/Link/Link.js +2 -1
- package/node/Modal/Modal.js +1 -1
- package/node/Modal/ModalManager.js +4 -4
- package/node/NoSsr/NoSsr.js +4 -4
- package/node/OutlinedInput/OutlinedInput.js +2 -1
- package/node/PaginationItem/PaginationItem.js +3 -2
- package/node/Popover/Popover.js +1 -1
- package/node/Portal/Portal.js +1 -1
- package/node/Radio/Radio.js +19 -3
- package/node/Select/SelectInput.js +2 -0
- package/node/Skeleton/Skeleton.js +5 -3
- package/node/Slider/Slider.js +4 -3
- package/node/Slider/useSlider.js +2 -2
- package/node/SpeedDialIcon/SpeedDialIcon.js +1 -1
- package/node/StepButton/StepButton.js +1 -1
- package/node/SwipeableDrawer/SwipeableDrawer.js +1 -0
- package/node/Switch/Switch.js +2 -1
- package/node/ToggleButton/ToggleButton.js +2 -1
- package/node/ToggleButtonGroup/isValueSelected.js +1 -1
- package/node/Tooltip/Tooltip.js +6 -3
- package/node/Typography/Typography.js +2 -1
- package/node/Unstable_TrapFocus/FocusTrap.js +1 -1
- package/node/index.js +1 -1
- package/node/internal/svg-icons/Add.js +1 -1
- package/node/internal/svg-icons/ArrowDownward.js +1 -1
- package/node/internal/svg-icons/ArrowDropDown.js +1 -1
- package/node/internal/svg-icons/Cancel.js +1 -1
- package/node/internal/svg-icons/CheckBox.js +1 -1
- package/node/internal/svg-icons/CheckBoxOutlineBlank.js +1 -1
- package/node/internal/svg-icons/CheckCircle.js +1 -1
- package/node/internal/svg-icons/Close.js +1 -1
- package/node/internal/svg-icons/ErrorOutline.js +1 -1
- package/node/internal/svg-icons/FirstPage.js +1 -1
- package/node/internal/svg-icons/IndeterminateCheckBox.js +1 -1
- package/node/internal/svg-icons/InfoOutlined.js +1 -1
- package/node/internal/svg-icons/KeyboardArrowLeft.js +1 -1
- package/node/internal/svg-icons/KeyboardArrowRight.js +1 -1
- package/node/internal/svg-icons/LastPage.js +1 -1
- package/node/internal/svg-icons/MoreHoriz.js +1 -1
- package/node/internal/svg-icons/NavigateBefore.js +1 -1
- package/node/internal/svg-icons/NavigateNext.js +1 -1
- package/node/internal/svg-icons/Person.js +1 -1
- package/node/internal/svg-icons/RadioButtonChecked.js +1 -1
- package/node/internal/svg-icons/RadioButtonUnchecked.js +1 -1
- package/node/internal/svg-icons/ReportProblemOutlined.js +1 -1
- package/node/internal/svg-icons/Star.js +1 -1
- package/node/internal/svg-icons/StarBorder.js +1 -1
- package/node/internal/svg-icons/SuccessOutlined.js +1 -1
- package/node/internal/svg-icons/Warning.js +1 -1
- package/node/styles/ThemeProviderWithVars.js +5 -3
- package/node/styles/createColorScheme.js +1 -1
- package/node/styles/excludeVariablesFromRoot.js +1 -1
- package/node/styles/useTheme.js +1 -0
- package/node/useAutocomplete/useAutocomplete.js +2 -2
- package/node/useScrollTrigger/useScrollTrigger.js +1 -0
- package/node/utils/createSimplePaletteValueFilter.js +47 -0
- package/node/utils/createSvgIcon.js +1 -1
- package/node/version/index.js +5 -6
- package/package.json +8 -8
- package/styles/ThemeProviderWithVars.js +5 -3
- package/styles/createColorScheme.d.ts +1 -1
- package/styles/createColorScheme.js +1 -1
- package/styles/createGetSelector.js +2 -2
- package/styles/excludeVariablesFromRoot.js +1 -1
- package/styles/useTheme.js +1 -0
- package/useAutocomplete/useAutocomplete.js +2 -2
- package/useScrollTrigger/useScrollTrigger.js +1 -0
- package/utils/createSimplePaletteValueFilter.d.ts +12 -0
- package/utils/createSimplePaletteValueFilter.js +41 -0
- package/utils/createSvgIcon.js +1 -1
- package/utils/memoTheme.d.ts +1 -1
- package/utils/types.d.ts +1 -1
- package/version/index.d.ts +1 -2
- package/version/index.js +4 -5
|
@@ -13,6 +13,6 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
13
13
|
/**
|
|
14
14
|
* @ignore - internal component.
|
|
15
15
|
*/
|
|
16
|
-
var _default = exports.default = (0, _createSvgIcon.default)(
|
|
16
|
+
var _default = exports.default = (0, _createSvgIcon.default)(/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
17
17
|
d: "M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"
|
|
18
18
|
}), 'FirstPage');
|
|
@@ -13,6 +13,6 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
13
13
|
/**
|
|
14
14
|
* @ignore - internal component.
|
|
15
15
|
*/
|
|
16
|
-
var _default = exports.default = (0, _createSvgIcon.default)(
|
|
16
|
+
var _default = exports.default = (0, _createSvgIcon.default)(/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
17
17
|
d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"
|
|
18
18
|
}), 'IndeterminateCheckBox');
|
|
@@ -13,6 +13,6 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
13
13
|
/**
|
|
14
14
|
* @ignore - internal component.
|
|
15
15
|
*/
|
|
16
|
-
var _default = exports.default = (0, _createSvgIcon.default)(
|
|
16
|
+
var _default = exports.default = (0, _createSvgIcon.default)(/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
17
17
|
d: "M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"
|
|
18
18
|
}), 'InfoOutlined');
|
|
@@ -13,6 +13,6 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
13
13
|
/**
|
|
14
14
|
* @ignore - internal component.
|
|
15
15
|
*/
|
|
16
|
-
var _default = exports.default = (0, _createSvgIcon.default)(
|
|
16
|
+
var _default = exports.default = (0, _createSvgIcon.default)(/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
17
17
|
d: "M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"
|
|
18
18
|
}), 'KeyboardArrowLeft');
|
|
@@ -13,6 +13,6 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
13
13
|
/**
|
|
14
14
|
* @ignore - internal component.
|
|
15
15
|
*/
|
|
16
|
-
var _default = exports.default = (0, _createSvgIcon.default)(
|
|
16
|
+
var _default = exports.default = (0, _createSvgIcon.default)(/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
17
17
|
d: "M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"
|
|
18
18
|
}), 'KeyboardArrowRight');
|
|
@@ -13,6 +13,6 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
13
13
|
/**
|
|
14
14
|
* @ignore - internal component.
|
|
15
15
|
*/
|
|
16
|
-
var _default = exports.default = (0, _createSvgIcon.default)(
|
|
16
|
+
var _default = exports.default = (0, _createSvgIcon.default)(/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
17
17
|
d: "M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"
|
|
18
18
|
}), 'LastPage');
|
|
@@ -13,6 +13,6 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
13
13
|
/**
|
|
14
14
|
* @ignore - internal component.
|
|
15
15
|
*/
|
|
16
|
-
var _default = exports.default = (0, _createSvgIcon.default)(
|
|
16
|
+
var _default = exports.default = (0, _createSvgIcon.default)(/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
17
17
|
d: "M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"
|
|
18
18
|
}), 'MoreHoriz');
|
|
@@ -13,6 +13,6 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
13
13
|
/**
|
|
14
14
|
* @ignore - internal component.
|
|
15
15
|
*/
|
|
16
|
-
var _default = exports.default = (0, _createSvgIcon.default)(
|
|
16
|
+
var _default = exports.default = (0, _createSvgIcon.default)(/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
17
17
|
d: "M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"
|
|
18
18
|
}), 'NavigateBefore');
|
|
@@ -13,6 +13,6 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
13
13
|
/**
|
|
14
14
|
* @ignore - internal component.
|
|
15
15
|
*/
|
|
16
|
-
var _default = exports.default = (0, _createSvgIcon.default)(
|
|
16
|
+
var _default = exports.default = (0, _createSvgIcon.default)(/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
17
17
|
d: "M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"
|
|
18
18
|
}), 'NavigateNext');
|
|
@@ -13,6 +13,6 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
13
13
|
/**
|
|
14
14
|
* @ignore - internal component.
|
|
15
15
|
*/
|
|
16
|
-
var _default = exports.default = (0, _createSvgIcon.default)(
|
|
16
|
+
var _default = exports.default = (0, _createSvgIcon.default)(/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
17
17
|
d: "M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"
|
|
18
18
|
}), 'Person');
|
|
@@ -13,6 +13,6 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
13
13
|
/**
|
|
14
14
|
* @ignore - internal component.
|
|
15
15
|
*/
|
|
16
|
-
var _default = exports.default = (0, _createSvgIcon.default)(
|
|
16
|
+
var _default = exports.default = (0, _createSvgIcon.default)(/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
17
17
|
d: "M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"
|
|
18
18
|
}), 'RadioButtonChecked');
|
|
@@ -13,6 +13,6 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
13
13
|
/**
|
|
14
14
|
* @ignore - internal component.
|
|
15
15
|
*/
|
|
16
|
-
var _default = exports.default = (0, _createSvgIcon.default)(
|
|
16
|
+
var _default = exports.default = (0, _createSvgIcon.default)(/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
17
17
|
d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"
|
|
18
18
|
}), 'RadioButtonUnchecked');
|
|
@@ -13,6 +13,6 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
13
13
|
/**
|
|
14
14
|
* @ignore - internal component.
|
|
15
15
|
*/
|
|
16
|
-
var _default = exports.default = (0, _createSvgIcon.default)(
|
|
16
|
+
var _default = exports.default = (0, _createSvgIcon.default)(/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
17
17
|
d: "M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"
|
|
18
18
|
}), 'ReportProblemOutlined');
|
|
@@ -13,6 +13,6 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
13
13
|
/**
|
|
14
14
|
* @ignore - internal component.
|
|
15
15
|
*/
|
|
16
|
-
var _default = exports.default = (0, _createSvgIcon.default)(
|
|
16
|
+
var _default = exports.default = (0, _createSvgIcon.default)(/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
17
17
|
d: "M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"
|
|
18
18
|
}), 'Star');
|
|
@@ -13,6 +13,6 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
13
13
|
/**
|
|
14
14
|
* @ignore - internal component.
|
|
15
15
|
*/
|
|
16
|
-
var _default = exports.default = (0, _createSvgIcon.default)(
|
|
16
|
+
var _default = exports.default = (0, _createSvgIcon.default)(/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
17
17
|
d: "M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"
|
|
18
18
|
}), 'StarBorder');
|
|
@@ -13,6 +13,6 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
13
13
|
/**
|
|
14
14
|
* @ignore - internal component.
|
|
15
15
|
*/
|
|
16
|
-
var _default = exports.default = (0, _createSvgIcon.default)(
|
|
16
|
+
var _default = exports.default = (0, _createSvgIcon.default)(/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
17
17
|
d: "M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"
|
|
18
18
|
}), 'SuccessOutlined');
|
|
@@ -13,6 +13,6 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
13
13
|
/**
|
|
14
14
|
* @ignore - internal component.
|
|
15
15
|
*/
|
|
16
|
-
var _default = exports.default = (0, _createSvgIcon.default)(
|
|
16
|
+
var _default = exports.default = (0, _createSvgIcon.default)(/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
17
17
|
d: "M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"
|
|
18
18
|
}), 'Warning');
|
|
@@ -53,9 +53,11 @@ let warnedOnce = false;
|
|
|
53
53
|
// TODO: remove in v7
|
|
54
54
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
55
55
|
function Experimental_CssVarsProvider(props) {
|
|
56
|
-
if (
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
57
|
+
if (!warnedOnce) {
|
|
58
|
+
console.warn(['MUI: The Experimental_CssVarsProvider component has been ported into ThemeProvider.', '', "You should use `import { ThemeProvider } from '@mui/material/styles'` instead.", 'For more details, check out https://mui.com/material-ui/customization/css-theme-variables/usage/'].join('\n'));
|
|
59
|
+
warnedOnce = true;
|
|
60
|
+
}
|
|
59
61
|
}
|
|
60
62
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(InternalCssVarsProvider, {
|
|
61
63
|
...props
|
|
@@ -11,7 +11,7 @@ var _createPalette = _interopRequireDefault(require("./createPalette"));
|
|
|
11
11
|
var _getOverlayAlpha = _interopRequireDefault(require("./getOverlayAlpha"));
|
|
12
12
|
const defaultDarkOverlays = [...Array(25)].map((_, index) => {
|
|
13
13
|
if (index === 0) {
|
|
14
|
-
return
|
|
14
|
+
return 'none';
|
|
15
15
|
}
|
|
16
16
|
const overlay = (0, _getOverlayAlpha.default)(index);
|
|
17
17
|
return `linear-gradient(rgba(255 255 255 / ${overlay}), rgba(255 255 255 / ${overlay}))`;
|
|
@@ -7,5 +7,5 @@ exports.default = void 0;
|
|
|
7
7
|
/**
|
|
8
8
|
* @internal These variables should not appear in the :root stylesheet when the `defaultColorScheme="dark"`
|
|
9
9
|
*/
|
|
10
|
-
const excludeVariablesFromRoot = cssVarPrefix => [...[...Array(
|
|
10
|
+
const excludeVariablesFromRoot = cssVarPrefix => [...[...Array(25)].map((_, index) => `--${cssVarPrefix ? `${cssVarPrefix}-` : ''}overlays-${index}`), `--${cssVarPrefix ? `${cssVarPrefix}-` : ''}palette-AppBar-darkBg`, `--${cssVarPrefix ? `${cssVarPrefix}-` : ''}palette-AppBar-darkColor`];
|
|
11
11
|
var _default = exports.default = excludeVariablesFromRoot;
|
package/node/styles/useTheme.js
CHANGED
|
@@ -14,6 +14,7 @@ var _identifier = _interopRequireDefault(require("./identifier"));
|
|
|
14
14
|
function useTheme() {
|
|
15
15
|
const theme = (0, _system.useTheme)(_defaultTheme.default);
|
|
16
16
|
if (process.env.NODE_ENV !== 'production') {
|
|
17
|
+
// TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler
|
|
17
18
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
18
19
|
React.useDebugValue(theme);
|
|
19
20
|
}
|
|
@@ -42,7 +42,7 @@ function createFilterOptions(config = {}) {
|
|
|
42
42
|
if (ignoreAccents) {
|
|
43
43
|
candidate = stripDiacritics(candidate);
|
|
44
44
|
}
|
|
45
|
-
return matchFrom === 'start' ? candidate.
|
|
45
|
+
return matchFrom === 'start' ? candidate.startsWith(input) : candidate.includes(input);
|
|
46
46
|
});
|
|
47
47
|
return typeof limit === 'number' ? filteredOptions.slice(0, limit) : filteredOptions;
|
|
48
48
|
};
|
|
@@ -592,7 +592,7 @@ function useAutocomplete(props) {
|
|
|
592
592
|
if (event.defaultMuiPrevented) {
|
|
593
593
|
return;
|
|
594
594
|
}
|
|
595
|
-
if (focusedTag !== -1 && ['ArrowLeft', 'ArrowRight'].
|
|
595
|
+
if (focusedTag !== -1 && !['ArrowLeft', 'ArrowRight'].includes(event.key)) {
|
|
596
596
|
setFocusedTag(-1);
|
|
597
597
|
focusTag(-1);
|
|
598
598
|
}
|
|
@@ -51,6 +51,7 @@ function useScrollTrigger(options = {}) {
|
|
|
51
51
|
});
|
|
52
52
|
};
|
|
53
53
|
// See Option 3. https://github.com/facebook/react/issues/14476#issuecomment-471199055
|
|
54
|
+
// TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler
|
|
54
55
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
55
56
|
}, [target, getTrigger, JSON.stringify(other)]);
|
|
56
57
|
return trigger;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = createSimplePaletteValueFilter;
|
|
7
|
+
/**
|
|
8
|
+
* Type guard to check if the object has a "main" property of type string.
|
|
9
|
+
*
|
|
10
|
+
* @param obj - the object to check
|
|
11
|
+
* @returns boolean
|
|
12
|
+
*/
|
|
13
|
+
function hasCorrectMainProperty(obj) {
|
|
14
|
+
return typeof obj.main === 'string';
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Checks if the object conforms to the SimplePaletteColorOptions type.
|
|
18
|
+
* The minimum requirement is that the object has a "main" property of type string, this is always checked.
|
|
19
|
+
* Optionally, you can pass additional properties to check.
|
|
20
|
+
*
|
|
21
|
+
* @param obj - The object to check
|
|
22
|
+
* @param additionalPropertiesToCheck - Array containing "light", "dark", and/or "contrastText"
|
|
23
|
+
* @returns boolean
|
|
24
|
+
*/
|
|
25
|
+
function checkSimplePaletteColorValues(obj, additionalPropertiesToCheck = []) {
|
|
26
|
+
if (!hasCorrectMainProperty(obj)) {
|
|
27
|
+
return false;
|
|
28
|
+
}
|
|
29
|
+
for (const value of additionalPropertiesToCheck) {
|
|
30
|
+
if (!obj.hasOwnProperty(value) || typeof obj[value] !== 'string') {
|
|
31
|
+
return false;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Creates a filter function used to filter simple palette color options.
|
|
39
|
+
* The minimum requirement is that the object has a "main" property of type string, this is always checked.
|
|
40
|
+
* Optionally, you can pass additional properties to check.
|
|
41
|
+
*
|
|
42
|
+
* @param additionalPropertiesToCheck - Array containing "light", "dark", and/or "contrastText"
|
|
43
|
+
* @returns ([, value]: [any, PaletteColorOptions]) => boolean
|
|
44
|
+
*/
|
|
45
|
+
function createSimplePaletteValueFilter(additionalPropertiesToCheck = []) {
|
|
46
|
+
return ([, value]) => value && checkSimplePaletteColorValues(value, additionalPropertiesToCheck);
|
|
47
|
+
}
|
|
@@ -27,5 +27,5 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
27
27
|
Component.displayName = `${displayName}Icon`;
|
|
28
28
|
}
|
|
29
29
|
Component.muiName = _SvgIcon.default.muiName;
|
|
30
|
-
return /*#__PURE__*/React.memo(
|
|
30
|
+
return /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(Component));
|
|
31
31
|
}
|
package/node/version/index.js
CHANGED
|
@@ -3,11 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.version = exports.
|
|
7
|
-
const version = exports.version = "6.
|
|
6
|
+
exports.version = exports.prerelease = exports.patch = exports.minor = exports.major = exports.default = void 0;
|
|
7
|
+
const version = exports.version = "6.1.1-dev.20240919-130050-82a6448768";
|
|
8
8
|
const major = exports.major = Number("6");
|
|
9
|
-
const minor = exports.minor = Number("
|
|
10
|
-
const patch = exports.patch = Number("
|
|
11
|
-
const
|
|
12
|
-
const preReleaseNumber = exports.preReleaseNumber = Number(undefined) || null;
|
|
9
|
+
const minor = exports.minor = Number("1");
|
|
10
|
+
const patch = exports.patch = Number("1");
|
|
11
|
+
const prerelease = exports.prerelease = "dev.20240919";
|
|
13
12
|
var _default = exports.default = version;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/material",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.1.1-dev.20240919-130050-82a6448768",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"description": "Material UI is an open-source React component library that implements Google's Material Design. It's comprehensive and can be used in production out of the box.",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
],
|
|
15
15
|
"repository": {
|
|
16
16
|
"type": "git",
|
|
17
|
-
"url": "https://github.com/mui/material-ui.git",
|
|
17
|
+
"url": "git+https://github.com/mui/material-ui.git",
|
|
18
18
|
"directory": "packages/mui-material"
|
|
19
19
|
},
|
|
20
20
|
"license": "MIT",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"url": "https://opencollective.com/mui-org"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@babel/runtime": "^7.25.
|
|
30
|
+
"@babel/runtime": "^7.25.6",
|
|
31
31
|
"@popperjs/core": "^2.11.8",
|
|
32
32
|
"@types/react-transition-group": "^4.4.11",
|
|
33
33
|
"clsx": "^2.1.1",
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
"prop-types": "^15.8.1",
|
|
36
36
|
"react-is": "^18.3.1",
|
|
37
37
|
"react-transition-group": "^4.4.5",
|
|
38
|
-
"@mui/core-downloads-tracker": "^6.
|
|
39
|
-
"@mui/
|
|
40
|
-
"@mui/
|
|
41
|
-
"@mui/
|
|
38
|
+
"@mui/core-downloads-tracker": "^6.1.1",
|
|
39
|
+
"@mui/system": "^6.1.1-dev.20240919-130050-82a6448768",
|
|
40
|
+
"@mui/types": "^7.2.17",
|
|
41
|
+
"@mui/utils": "^6.1.1-dev.20240919-130050-82a6448768"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"@emotion/react": "^11.5.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
47
47
|
"react": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
48
48
|
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
49
|
-
"@mui/material-pigment-css": "^6.
|
|
49
|
+
"@mui/material-pigment-css": "^6.1.1-dev.20240919-130050-82a6448768"
|
|
50
50
|
},
|
|
51
51
|
"peerDependenciesMeta": {
|
|
52
52
|
"@types/react": {
|
|
@@ -43,9 +43,11 @@ let warnedOnce = false;
|
|
|
43
43
|
// TODO: remove in v7
|
|
44
44
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
45
45
|
function Experimental_CssVarsProvider(props) {
|
|
46
|
-
if (
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
47
|
+
if (!warnedOnce) {
|
|
48
|
+
console.warn(['MUI: The Experimental_CssVarsProvider component has been ported into ThemeProvider.', '', "You should use `import { ThemeProvider } from '@mui/material/styles'` instead.", 'For more details, check out https://mui.com/material-ui/customization/css-theme-variables/usage/'].join('\n'));
|
|
49
|
+
warnedOnce = true;
|
|
50
|
+
}
|
|
49
51
|
}
|
|
50
52
|
return /*#__PURE__*/_jsx(InternalCssVarsProvider, {
|
|
51
53
|
...props
|
|
@@ -5,5 +5,5 @@ export declare function getOpacity(mode: 'light' | 'dark'): {
|
|
|
5
5
|
switchTrackDisabled: number;
|
|
6
6
|
switchTrack: number;
|
|
7
7
|
};
|
|
8
|
-
export declare function getOverlays(mode: 'light' | 'dark'):
|
|
8
|
+
export declare function getOverlays(mode: 'light' | 'dark'): string[];
|
|
9
9
|
export default function createColorScheme(options: ColorSystemOptions): ColorSystemOptions;
|
|
@@ -2,7 +2,7 @@ import createPalette from "./createPalette.js";
|
|
|
2
2
|
import getOverlayAlpha from "./getOverlayAlpha.js";
|
|
3
3
|
const defaultDarkOverlays = [...Array(25)].map((_, index) => {
|
|
4
4
|
if (index === 0) {
|
|
5
|
-
return
|
|
5
|
+
return 'none';
|
|
6
6
|
}
|
|
7
7
|
const overlay = getOverlayAlpha(index);
|
|
8
8
|
return `linear-gradient(rgba(255 255 255 / ${overlay}), rgba(255 255 255 / ${overlay}))`;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import excludeVariablesFromRoot from "./excludeVariablesFromRoot.js";
|
|
2
|
-
export default
|
|
2
|
+
export default theme => (colorScheme, css) => {
|
|
3
3
|
const selector = theme.colorSchemeSelector;
|
|
4
4
|
let rule = selector;
|
|
5
5
|
if (selector === 'class') {
|
|
@@ -56,4 +56,4 @@ export default (theme => (colorScheme, css) => {
|
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
return ':root';
|
|
59
|
-
}
|
|
59
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @internal These variables should not appear in the :root stylesheet when the `defaultColorScheme="dark"`
|
|
3
3
|
*/
|
|
4
|
-
const excludeVariablesFromRoot = cssVarPrefix => [...[...Array(
|
|
4
|
+
const excludeVariablesFromRoot = cssVarPrefix => [...[...Array(25)].map((_, index) => `--${cssVarPrefix ? `${cssVarPrefix}-` : ''}overlays-${index}`), `--${cssVarPrefix ? `${cssVarPrefix}-` : ''}palette-AppBar-darkBg`, `--${cssVarPrefix ? `${cssVarPrefix}-` : ''}palette-AppBar-darkColor`];
|
|
5
5
|
export default excludeVariablesFromRoot;
|
package/styles/useTheme.js
CHANGED
|
@@ -7,6 +7,7 @@ import THEME_ID from "./identifier.js";
|
|
|
7
7
|
export default function useTheme() {
|
|
8
8
|
const theme = useThemeSystem(defaultTheme);
|
|
9
9
|
if (process.env.NODE_ENV !== 'production') {
|
|
10
|
+
// TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler
|
|
10
11
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
11
12
|
React.useDebugValue(theme);
|
|
12
13
|
}
|
|
@@ -36,7 +36,7 @@ export function createFilterOptions(config = {}) {
|
|
|
36
36
|
if (ignoreAccents) {
|
|
37
37
|
candidate = stripDiacritics(candidate);
|
|
38
38
|
}
|
|
39
|
-
return matchFrom === 'start' ? candidate.
|
|
39
|
+
return matchFrom === 'start' ? candidate.startsWith(input) : candidate.includes(input);
|
|
40
40
|
});
|
|
41
41
|
return typeof limit === 'number' ? filteredOptions.slice(0, limit) : filteredOptions;
|
|
42
42
|
};
|
|
@@ -586,7 +586,7 @@ function useAutocomplete(props) {
|
|
|
586
586
|
if (event.defaultMuiPrevented) {
|
|
587
587
|
return;
|
|
588
588
|
}
|
|
589
|
-
if (focusedTag !== -1 && ['ArrowLeft', 'ArrowRight'].
|
|
589
|
+
if (focusedTag !== -1 && !['ArrowLeft', 'ArrowRight'].includes(event.key)) {
|
|
590
590
|
setFocusedTag(-1);
|
|
591
591
|
focusTag(-1);
|
|
592
592
|
}
|
|
@@ -45,6 +45,7 @@ export default function useScrollTrigger(options = {}) {
|
|
|
45
45
|
});
|
|
46
46
|
};
|
|
47
47
|
// See Option 3. https://github.com/facebook/react/issues/14476#issuecomment-471199055
|
|
48
|
+
// TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler
|
|
48
49
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
49
50
|
}, [target, getTrigger, JSON.stringify(other)]);
|
|
50
51
|
return trigger;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PaletteColorOptions, SimplePaletteColorOptions } from '../styles/createPalette';
|
|
2
|
+
type AdditionalPropertiesToCheck = (keyof Omit<SimplePaletteColorOptions, 'main'>)[];
|
|
3
|
+
/**
|
|
4
|
+
* Creates a filter function used to filter simple palette color options.
|
|
5
|
+
* The minimum requirement is that the object has a "main" property of type string, this is always checked.
|
|
6
|
+
* Optionally, you can pass additional properties to check.
|
|
7
|
+
*
|
|
8
|
+
* @param additionalPropertiesToCheck - Array containing "light", "dark", and/or "contrastText"
|
|
9
|
+
* @returns ([, value]: [any, PaletteColorOptions]) => boolean
|
|
10
|
+
*/
|
|
11
|
+
export default function createSimplePaletteValueFilter(additionalPropertiesToCheck?: AdditionalPropertiesToCheck): ([, value]: [any, PaletteColorOptions]) => boolean;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Type guard to check if the object has a "main" property of type string.
|
|
3
|
+
*
|
|
4
|
+
* @param obj - the object to check
|
|
5
|
+
* @returns boolean
|
|
6
|
+
*/
|
|
7
|
+
function hasCorrectMainProperty(obj) {
|
|
8
|
+
return typeof obj.main === 'string';
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Checks if the object conforms to the SimplePaletteColorOptions type.
|
|
12
|
+
* The minimum requirement is that the object has a "main" property of type string, this is always checked.
|
|
13
|
+
* Optionally, you can pass additional properties to check.
|
|
14
|
+
*
|
|
15
|
+
* @param obj - The object to check
|
|
16
|
+
* @param additionalPropertiesToCheck - Array containing "light", "dark", and/or "contrastText"
|
|
17
|
+
* @returns boolean
|
|
18
|
+
*/
|
|
19
|
+
function checkSimplePaletteColorValues(obj, additionalPropertiesToCheck = []) {
|
|
20
|
+
if (!hasCorrectMainProperty(obj)) {
|
|
21
|
+
return false;
|
|
22
|
+
}
|
|
23
|
+
for (const value of additionalPropertiesToCheck) {
|
|
24
|
+
if (!obj.hasOwnProperty(value) || typeof obj[value] !== 'string') {
|
|
25
|
+
return false;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Creates a filter function used to filter simple palette color options.
|
|
33
|
+
* The minimum requirement is that the object has a "main" property of type string, this is always checked.
|
|
34
|
+
* Optionally, you can pass additional properties to check.
|
|
35
|
+
*
|
|
36
|
+
* @param additionalPropertiesToCheck - Array containing "light", "dark", and/or "contrastText"
|
|
37
|
+
* @returns ([, value]: [any, PaletteColorOptions]) => boolean
|
|
38
|
+
*/
|
|
39
|
+
export default function createSimplePaletteValueFilter(additionalPropertiesToCheck = []) {
|
|
40
|
+
return ([, value]) => value && checkSimplePaletteColorValues(value, additionalPropertiesToCheck);
|
|
41
|
+
}
|
package/utils/createSvgIcon.js
CHANGED
|
@@ -22,5 +22,5 @@ export default function createSvgIcon(path, displayName) {
|
|
|
22
22
|
Component.displayName = `${displayName}Icon`;
|
|
23
23
|
}
|
|
24
24
|
Component.muiName = SvgIcon.muiName;
|
|
25
|
-
return /*#__PURE__*/React.memo(
|
|
25
|
+
return /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(Component));
|
|
26
26
|
}
|
package/utils/memoTheme.d.ts
CHANGED
package/utils/types.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export type CreateSlotsAndSlotProps<Slots, K extends Record<keyof Slots, any>> =
|
|
|
17
17
|
* The components used for each slot inside.
|
|
18
18
|
* @default {}
|
|
19
19
|
*/
|
|
20
|
-
slots?: Slots
|
|
20
|
+
slots?: Partial<Slots>;
|
|
21
21
|
/**
|
|
22
22
|
* The props used for each slot inside.
|
|
23
23
|
* @default {}
|
package/version/index.d.ts
CHANGED
|
@@ -2,6 +2,5 @@ export declare const version: string | undefined;
|
|
|
2
2
|
export declare const major: number;
|
|
3
3
|
export declare const minor: number;
|
|
4
4
|
export declare const patch: number;
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const preReleaseNumber: number | null;
|
|
5
|
+
export declare const prerelease: string | undefined;
|
|
7
6
|
export default version;
|
package/version/index.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
export const version = "6.
|
|
1
|
+
export const version = "6.1.1-dev.20240919-130050-82a6448768";
|
|
2
2
|
export const major = Number("6");
|
|
3
|
-
export const minor = Number("
|
|
4
|
-
export const patch = Number("
|
|
5
|
-
export const
|
|
6
|
-
export const preReleaseNumber = Number(undefined) || null;
|
|
3
|
+
export const minor = Number("1");
|
|
4
|
+
export const patch = Number("1");
|
|
5
|
+
export const prerelease = "dev.20240919";
|
|
7
6
|
export default version;
|