@mui/material 6.0.2 → 6.1.0
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/Badge/Badge.js +2 -1
- package/Button/Button.js +2 -1
- package/ButtonGroup/ButtonGroup.js +3 -2
- package/CHANGELOG.md +78 -15130
- package/Checkbox/Checkbox.js +3 -2
- package/Chip/Chip.js +6 -5
- package/CircularProgress/CircularProgress.js +2 -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/FormControlLabel/FormControlLabel.d.ts +1 -1
- package/FormLabel/FormLabel.js +2 -1
- package/Grid/Grid.d.ts +0 -1
- package/Grid/Grid.js +0 -1
- package/Icon/Icon.js +2 -1
- package/IconButton/IconButton.js +3 -2
- package/Input/Input.js +2 -1
- package/InputAdornment/InputAdornment.js +1 -1
- package/InputBase/InputBase.js +1 -1
- package/LinearProgress/LinearProgress.js +6 -5
- package/Link/Link.js +2 -1
- package/Modal/Modal.d.ts +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/Portal/Portal.js +1 -1
- package/Radio/Radio.js +19 -3
- package/Slider/Slider.js +4 -3
- 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/Switch/Switch.js +2 -1
- package/TextField/TextField.d.ts +13 -13
- package/ToggleButton/ToggleButton.js +2 -1
- package/Typography/Typography.js +2 -1
- 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/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/Dialog/Dialog.js +1 -0
- package/modern/Fab/Fab.js +2 -1
- package/modern/FilledInput/FilledInput.js +2 -1
- package/modern/FormLabel/FormLabel.js +2 -1
- package/modern/Grid/Grid.js +0 -1
- package/modern/Icon/Icon.js +2 -1
- 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 +1 -1
- package/modern/LinearProgress/LinearProgress.js +6 -5
- package/modern/Link/Link.js +2 -1
- package/modern/NoSsr/NoSsr.js +4 -4
- package/modern/OutlinedInput/OutlinedInput.js +2 -1
- package/modern/PaginationItem/PaginationItem.js +3 -2
- package/modern/Portal/Portal.js +1 -1
- package/modern/Radio/Radio.js +19 -3
- package/modern/Slider/Slider.js +4 -3
- package/modern/SpeedDialIcon/SpeedDialIcon.js +1 -1
- package/modern/StepButton/StepButton.js +1 -1
- package/modern/Switch/Switch.js +2 -1
- package/modern/ToggleButton/ToggleButton.js +2 -1
- package/modern/Typography/Typography.js +2 -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/createGetSelector.js +2 -2
- 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/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/Dialog/Dialog.js +1 -0
- package/node/Fab/Fab.js +2 -1
- package/node/FilledInput/FilledInput.js +2 -1
- package/node/FormLabel/FormLabel.js +2 -1
- package/node/Grid/Grid.js +0 -1
- package/node/Icon/Icon.js +2 -1
- 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 +1 -1
- package/node/LinearProgress/LinearProgress.js +6 -5
- package/node/Link/Link.js +2 -1
- package/node/NoSsr/NoSsr.js +4 -4
- package/node/OutlinedInput/OutlinedInput.js +2 -1
- package/node/PaginationItem/PaginationItem.js +3 -2
- package/node/Portal/Portal.js +1 -1
- package/node/Radio/Radio.js +19 -3
- package/node/Slider/Slider.js +4 -3
- package/node/SpeedDialIcon/SpeedDialIcon.js +1 -1
- package/node/StepButton/StepButton.js +1 -1
- package/node/Switch/Switch.js +2 -1
- package/node/ToggleButton/ToggleButton.js +2 -1
- package/node/Typography/Typography.js +2 -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/utils/createSimplePaletteValueFilter.js +47 -0
- package/node/utils/createSvgIcon.js +1 -1
- package/node/version/index.js +5 -6
- package/package.json +7 -7
- package/styles/ThemeProviderWithVars.js +5 -3
- package/styles/createGetSelector.js +2 -2
- 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
|
@@ -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.0
|
|
6
|
+
exports.version = exports.prerelease = exports.patch = exports.minor = exports.major = exports.default = void 0;
|
|
7
|
+
const version = exports.version = "6.1.0";
|
|
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("0");
|
|
11
|
+
const prerelease = exports.prerelease = undefined;
|
|
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.0
|
|
3
|
+
"version": "6.1.0",
|
|
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.",
|
|
@@ -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.0
|
|
39
|
-
"@mui/
|
|
40
|
-
"@mui/utils": "^6.0
|
|
41
|
-
"@mui/
|
|
38
|
+
"@mui/core-downloads-tracker": "^6.1.0",
|
|
39
|
+
"@mui/system": "^6.1.0",
|
|
40
|
+
"@mui/utils": "^6.1.0",
|
|
41
|
+
"@mui/types": "^7.2.16"
|
|
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.0
|
|
49
|
+
"@mui/material-pigment-css": "^6.1.0"
|
|
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
|
|
@@ -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
|
+
};
|
|
@@ -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.0
|
|
1
|
+
export const version = "6.1.0";
|
|
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("0");
|
|
5
|
+
export const prerelease = undefined;
|
|
7
6
|
export default version;
|