@mui/material 6.1.8 → 6.1.10
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/Avatar/Avatar.js +7 -6
- package/ButtonBase/ButtonBase.js +21 -22
- package/CHANGELOG.md +95 -2
- package/ClickAwayListener/ClickAwayListener.js +1 -4
- package/FilledInput/FilledInput.js +1 -1
- package/FormHelperText/FormHelperText.js +1 -0
- package/Grid2/Grid2.d.ts +0 -1
- package/Grid2/Grid2.js +9 -2
- package/Grid2/grid2Classes.d.ts +8 -3
- package/Hidden/HiddenJs.js +4 -8
- package/InputAdornment/InputAdornment.js +1 -0
- package/Modal/useModal.js +3 -2
- package/Modal/useModal.types.d.ts +5 -1
- package/NoSsr/NoSsr.js +2 -5
- package/OutlinedInput/NotchedOutline.js +1 -0
- package/Portal/Portal.js +2 -7
- package/Select/Select.d.ts +10 -4
- package/Select/SelectInput.js +1 -0
- package/Slider/SliderValueLabel.d.ts +4 -1
- package/Slider/SliderValueLabel.types.d.ts +4 -1
- package/Tabs/ScrollbarSize.js +2 -2
- package/Unstable_TrapFocus/FocusTrap.types.d.ts +4 -1
- package/index.js +1 -1
- package/modern/Avatar/Avatar.js +7 -6
- package/modern/ButtonBase/ButtonBase.js +21 -22
- package/modern/ClickAwayListener/ClickAwayListener.js +1 -4
- package/modern/FilledInput/FilledInput.js +1 -1
- package/modern/FormHelperText/FormHelperText.js +1 -0
- package/modern/Grid2/Grid2.js +9 -2
- package/modern/Hidden/HiddenJs.js +4 -8
- package/modern/InputAdornment/InputAdornment.js +1 -0
- package/modern/Modal/useModal.js +3 -2
- package/modern/NoSsr/NoSsr.js +2 -5
- package/modern/OutlinedInput/NotchedOutline.js +1 -0
- package/modern/Portal/Portal.js +2 -7
- package/modern/Select/SelectInput.js +1 -0
- package/modern/Tabs/ScrollbarSize.js +2 -2
- package/modern/index.js +1 -1
- package/modern/styles/createThemeWithVars.js +2 -2
- package/modern/utils/useSlot.js +1 -10
- package/modern/version/index.js +2 -2
- package/node/Avatar/Avatar.js +7 -6
- package/node/ButtonBase/ButtonBase.js +21 -22
- package/node/ClickAwayListener/ClickAwayListener.js +1 -4
- package/node/FilledInput/FilledInput.js +1 -1
- package/node/FormHelperText/FormHelperText.js +1 -0
- package/node/Grid2/Grid2.js +9 -2
- package/node/Hidden/HiddenJs.js +7 -10
- package/node/InputAdornment/InputAdornment.js +1 -0
- package/node/Modal/useModal.js +3 -2
- package/node/NoSsr/NoSsr.js +2 -5
- package/node/OutlinedInput/NotchedOutline.js +1 -0
- package/node/Portal/Portal.js +2 -7
- package/node/Select/SelectInput.js +1 -0
- package/node/Tabs/ScrollbarSize.js +2 -2
- package/node/index.js +1 -1
- package/node/styles/createThemeWithVars.js +2 -2
- package/node/utils/useSlot.js +1 -10
- package/node/version/index.js +2 -2
- package/package.json +5 -5
- package/styles/ThemeProvider.d.ts +1 -0
- package/styles/createThemeWithVars.js +2 -2
- package/styles/overrides.d.ts +2 -2
- package/utils/useSlot.d.ts +0 -7
- package/utils/useSlot.js +1 -10
- package/version/index.js +2 -2
package/node/version/index.js
CHANGED
|
@@ -4,9 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.version = exports.prerelease = exports.patch = exports.minor = exports.major = exports.default = void 0;
|
|
7
|
-
const version = exports.version = "6.1.
|
|
7
|
+
const version = exports.version = "6.1.10";
|
|
8
8
|
const major = exports.major = Number("6");
|
|
9
9
|
const minor = exports.minor = Number("1");
|
|
10
|
-
const patch = exports.patch = Number("
|
|
10
|
+
const patch = exports.patch = Number("10");
|
|
11
11
|
const prerelease = exports.prerelease = undefined;
|
|
12
12
|
var _default = exports.default = version;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/material",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.10",
|
|
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.",
|
|
@@ -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/system": "^6.1.
|
|
38
|
+
"@mui/system": "^6.1.10",
|
|
39
39
|
"@mui/types": "^7.2.19",
|
|
40
|
-
"@mui/core-downloads-tracker": "^6.1.
|
|
41
|
-
"@mui/utils": "^6.1.
|
|
40
|
+
"@mui/core-downloads-tracker": "^6.1.10",
|
|
41
|
+
"@mui/utils": "^6.1.10"
|
|
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.1.
|
|
49
|
+
"@mui/material-pigment-css": "^6.1.10"
|
|
50
50
|
},
|
|
51
51
|
"peerDependenciesMeta": {
|
|
52
52
|
"@types/react": {
|
|
@@ -50,6 +50,7 @@ export interface ThemeProviderProps<Theme = DefaultTheme> extends ThemeProviderC
|
|
|
50
50
|
* @default 'mui-color-scheme'
|
|
51
51
|
*/
|
|
52
52
|
colorSchemeStorageKey?: string;
|
|
53
|
+
noSsr?: boolean;
|
|
53
54
|
/**
|
|
54
55
|
* Disable CSS transitions when switching between modes or color schemes
|
|
55
56
|
* @default false
|
|
@@ -23,7 +23,7 @@ function setColor(obj, key, defaultValue) {
|
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
function toRgb(color) {
|
|
26
|
-
if (
|
|
26
|
+
if (typeof color !== 'string' || !color.startsWith('hsl')) {
|
|
27
27
|
return color;
|
|
28
28
|
}
|
|
29
29
|
return hslToRgb(color);
|
|
@@ -315,7 +315,7 @@ export default function createThemeWithVars(options = {}, ...args) {
|
|
|
315
315
|
|
|
316
316
|
// The default palettes (primary, secondary, error, info, success, and warning) errors are handled by the above `createTheme(...)`.
|
|
317
317
|
|
|
318
|
-
if (colors && typeof colors === 'object') {
|
|
318
|
+
if (color !== 'tonalOffset' && colors && typeof colors === 'object') {
|
|
319
319
|
// Silent the error for custom palettes.
|
|
320
320
|
if (colors.main) {
|
|
321
321
|
setColor(palette[color], 'mainChannel', safeColorChannel(toRgb(colors.main)));
|
package/styles/overrides.d.ts
CHANGED
|
@@ -45,7 +45,7 @@ import { FormGroupClassKey } from '../FormGroup';
|
|
|
45
45
|
import { FormHelperTextClassKey } from '../FormHelperText';
|
|
46
46
|
import { FormLabelClassKey } from '../FormLabel';
|
|
47
47
|
import { GridClassKey } from '../Grid';
|
|
48
|
-
import {
|
|
48
|
+
import { Grid2ClassKey } from '../Grid2';
|
|
49
49
|
import { IconButtonClassKey } from '../IconButton';
|
|
50
50
|
import { IconClassKey } from '../Icon';
|
|
51
51
|
import { ImageListClassKey } from '../ImageList';
|
|
@@ -190,7 +190,7 @@ export interface ComponentNameToClassKey {
|
|
|
190
190
|
MuiFormHelperText: FormHelperTextClassKey;
|
|
191
191
|
MuiFormLabel: FormLabelClassKey;
|
|
192
192
|
MuiGrid: GridClassKey;
|
|
193
|
-
MuiGrid2:
|
|
193
|
+
MuiGrid2: Grid2ClassKey;
|
|
194
194
|
MuiIcon: IconClassKey;
|
|
195
195
|
MuiIconButton: IconButtonClassKey;
|
|
196
196
|
MuiImageList: ImageListClassKey;
|
package/utils/useSlot.d.ts
CHANGED
|
@@ -65,13 +65,6 @@ name: T, parameters: (T extends 'root' ? {
|
|
|
65
65
|
externalForwardedProps: ExternalForwardedProps;
|
|
66
66
|
getSlotProps?: (other: EventHandlers) => WithCommonProps<SlotProps>;
|
|
67
67
|
additionalProps?: WithCommonProps<AdditionalProps>;
|
|
68
|
-
/**
|
|
69
|
-
* For overriding the component's ownerState for the slot.
|
|
70
|
-
* This is required for some components that need styling via `ownerState`.
|
|
71
|
-
*
|
|
72
|
-
* It is a function because `slotProps.{slot}` can be a function which has to be resolved first.
|
|
73
|
-
*/
|
|
74
|
-
getSlotOwnerState?: (mergedProps: AdditionalProps & SlotProps & ExternalSlotProps & ExtractComponentProps<Exclude<Exclude<ExternalForwardedProps['slotProps'], undefined>[T], undefined>>) => SlotOwnerState;
|
|
75
68
|
/**
|
|
76
69
|
* props forward to `T` only if the `slotProps.*.component` is not provided.
|
|
77
70
|
* e.g. Autocomplete's listbox uses Popper + StyledComponent
|
package/utils/useSlot.js
CHANGED
|
@@ -31,7 +31,6 @@ name, parameters) {
|
|
|
31
31
|
elementType: initialElementType,
|
|
32
32
|
ownerState,
|
|
33
33
|
externalForwardedProps,
|
|
34
|
-
getSlotOwnerState,
|
|
35
34
|
internalForwardedProps,
|
|
36
35
|
...useSlotPropsParams
|
|
37
36
|
} = parameters;
|
|
@@ -63,11 +62,6 @@ name, parameters) {
|
|
|
63
62
|
externalSlotProps: resolvedComponentsProps
|
|
64
63
|
});
|
|
65
64
|
const ref = useForkRef(internalRef, resolvedComponentsProps?.ref, parameters.ref);
|
|
66
|
-
const slotOwnerState = getSlotOwnerState ? getSlotOwnerState(mergedProps) : {};
|
|
67
|
-
const finalOwnerState = {
|
|
68
|
-
...ownerState,
|
|
69
|
-
...slotOwnerState
|
|
70
|
-
};
|
|
71
65
|
const LeafComponent = name === 'root' ? slotComponent || rootComponent : slotComponent;
|
|
72
66
|
const props = appendOwnerState(elementType, {
|
|
73
67
|
...(name === 'root' && !rootComponent && !slots[name] && internalForwardedProps),
|
|
@@ -77,9 +71,6 @@ name, parameters) {
|
|
|
77
71
|
as: LeafComponent
|
|
78
72
|
}),
|
|
79
73
|
ref
|
|
80
|
-
},
|
|
81
|
-
Object.keys(slotOwnerState).forEach(propName => {
|
|
82
|
-
delete props[propName];
|
|
83
|
-
});
|
|
74
|
+
}, ownerState);
|
|
84
75
|
return [elementType, props];
|
|
85
76
|
}
|
package/version/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export const version = "6.1.
|
|
1
|
+
export const version = "6.1.10";
|
|
2
2
|
export const major = Number("6");
|
|
3
3
|
export const minor = Number("1");
|
|
4
|
-
export const patch = Number("
|
|
4
|
+
export const patch = Number("10");
|
|
5
5
|
export const prerelease = undefined;
|
|
6
6
|
export default version;
|