@mui/material 7.0.0-beta.2 → 7.0.0-beta.3

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/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # [Versions](https://mui.com/versions/)
2
2
 
3
+ ## 7.0.0-beta.3
4
+
5
+ <!-- generated comparing v7.0.0-beta.2..master -->
6
+
7
+ _Mar 5, 2025_
8
+
9
+ A big thanks to the 3 contributors who made this release possible.
10
+
11
+ ### `@mui/material@7.0.0-beta.3`
12
+
13
+ - Fix moduleResolution:node for icons (#45444) @Janpot
14
+ - [ThemeProvider] Add `storageManager` prop to `ThemeProvider` (#45136) @siriwatknp
15
+ - [Radio] Fix `inputProps` not forwarded (#45471) @siriwatknp
16
+
17
+ ### `@mui/codemod@7.0.0-beta.3`
18
+
19
+ - [codemod] Fix codemods not found (#45473) @DiegoAndai
20
+
21
+ All contributors of this release in alphabetical order: @DiegoAndai, @Janpot, @siriwatknp
22
+
3
23
  ## 7.0.0-beta.2
4
24
 
5
25
  <!-- generated comparing v7.0.0-beta.1..master -->
package/Radio/Radio.js CHANGED
@@ -135,6 +135,7 @@ const Radio = /*#__PURE__*/React.forwardRef(function Radio(inProps, ref) {
135
135
  disableRipple = false,
136
136
  slots = {},
137
137
  slotProps = {},
138
+ inputProps,
138
139
  ...other
139
140
  } = props;
140
141
  const muiFormControl = (0, _useFormControl.default)();
@@ -165,6 +166,7 @@ const Radio = /*#__PURE__*/React.forwardRef(function Radio(inProps, ref) {
165
166
  name = radioGroup.name;
166
167
  }
167
168
  }
169
+ const externalInputProps = slotProps.input ?? inputProps;
168
170
  const [RootSlot, rootSlotProps] = (0, _useSlot.default)('root', {
169
171
  ref,
170
172
  elementType: RadioRoot,
@@ -197,7 +199,7 @@ const Radio = /*#__PURE__*/React.forwardRef(function Radio(inProps, ref) {
197
199
  slots,
198
200
  slotProps: {
199
201
  // Do not forward `slotProps.root` again because it's already handled by the `RootSlot` in this file.
200
- input: typeof slotProps.input === 'function' ? slotProps.input(ownerState) : slotProps.input
202
+ input: typeof externalInputProps === 'function' ? externalInputProps(ownerState) : externalInputProps
201
203
  }
202
204
  }
203
205
  });
@@ -128,6 +128,7 @@ const Radio = /*#__PURE__*/React.forwardRef(function Radio(inProps, ref) {
128
128
  disableRipple = false,
129
129
  slots = {},
130
130
  slotProps = {},
131
+ inputProps,
131
132
  ...other
132
133
  } = props;
133
134
  const muiFormControl = useFormControl();
@@ -158,6 +159,7 @@ const Radio = /*#__PURE__*/React.forwardRef(function Radio(inProps, ref) {
158
159
  name = radioGroup.name;
159
160
  }
160
161
  }
162
+ const externalInputProps = slotProps.input ?? inputProps;
161
163
  const [RootSlot, rootSlotProps] = useSlot('root', {
162
164
  ref,
163
165
  elementType: RadioRoot,
@@ -190,7 +192,7 @@ const Radio = /*#__PURE__*/React.forwardRef(function Radio(inProps, ref) {
190
192
  slots,
191
193
  slotProps: {
192
194
  // Do not forward `slotProps.root` again because it's already handled by the `RootSlot` in this file.
193
- input: typeof slotProps.input === 'function' ? slotProps.input(ownerState) : slotProps.input
195
+ input: typeof externalInputProps === 'function' ? externalInputProps(ownerState) : externalInputProps
194
196
  }
195
197
  }
196
198
  });
package/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/material v7.0.0-beta.2
2
+ * @mui/material v7.0.0-beta.3
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -1,5 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { DefaultTheme } from '@mui/system';
3
+ import { StorageManager } from '@mui/system/cssVars';
3
4
  import { CssThemeVariables } from "./createThemeNoVars.js";
4
5
  type ThemeProviderCssVariablesProps = CssThemeVariables extends {
5
6
  enabled: true;
@@ -40,6 +41,11 @@ export interface ThemeProviderProps<Theme = DefaultTheme> extends ThemeProviderC
40
41
  * @default window
41
42
  */
42
43
  storageWindow?: Window | null;
44
+ /**
45
+ * The storage manager to be used for storing the mode and color scheme
46
+ * @default using `window.localStorage`
47
+ */
48
+ storageManager?: StorageManager | null;
43
49
  /**
44
50
  * localStorage key used to store application `mode`
45
51
  * @default 'mui-mode'
@@ -43,6 +43,7 @@ export declare const CssVarsProvider: (props: React.PropsWithChildren<Partial<im
43
43
  defaultMode?: "light" | "dark" | "system";
44
44
  documentNode?: Document | null;
45
45
  colorSchemeNode?: Element | null;
46
+ storageManager?: import("@mui/system").StorageManager | null;
46
47
  storageWindow?: Window | null;
47
48
  disableNestedContext?: boolean;
48
49
  disableStyleSheetGeneration?: boolean;
@@ -38,6 +38,7 @@ export { default as makeStyles } from "./makeStyles.js";
38
38
  export { default as withStyles } from "./withStyles.js";
39
39
  export { default as withTheme } from "./withTheme.js";
40
40
  export * from "./ThemeProviderWithVars.js";
41
+ export type { StorageManager } from '@mui/system/cssVars';
41
42
  export { default as extendTheme } from "./createThemeWithVars.js";
42
43
  export type { ColorSchemeOverrides, SupportedColorScheme, ColorSystem, CssVarsPalette, Opacity, Overlays, PaletteAlert, PaletteActionChannel, PaletteAppBar, PaletteAvatar, PaletteChip, PaletteColorChannel, PaletteCommonChannel, PaletteFilledInput, PaletteLinearProgress, PaletteSkeleton, PaletteSlider, PaletteSnackbarContent, PaletteSpeedDialAction, PaletteStepConnector, PaletteStepContent, PaletteSwitch, PaletteTableCell, PaletteTextChannel, PaletteTooltip, CssVarsThemeOptions, CssVarsTheme, ThemeVars, ThemeCssVar, ThemeCssVarOverrides, ColorSystemOptions } from "./createThemeWithVars.js";
43
44
  export { default as getOverlayAlpha } from "./getOverlayAlpha.js";
@@ -1,6 +1,6 @@
1
- export const version = "7.0.0-beta.2";
1
+ export const version = "7.0.0-beta.3";
2
2
  export const major = Number("7");
3
3
  export const minor = Number("0");
4
4
  export const patch = Number("0");
5
- export const prerelease = "beta.2";
5
+ export const prerelease = "beta.3";
6
6
  export default version;
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/material v7.0.0-beta.2
2
+ * @mui/material v7.0.0-beta.3
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -128,6 +128,7 @@ const Radio = /*#__PURE__*/React.forwardRef(function Radio(inProps, ref) {
128
128
  disableRipple = false,
129
129
  slots = {},
130
130
  slotProps = {},
131
+ inputProps,
131
132
  ...other
132
133
  } = props;
133
134
  const muiFormControl = useFormControl();
@@ -158,6 +159,7 @@ const Radio = /*#__PURE__*/React.forwardRef(function Radio(inProps, ref) {
158
159
  name = radioGroup.name;
159
160
  }
160
161
  }
162
+ const externalInputProps = slotProps.input ?? inputProps;
161
163
  const [RootSlot, rootSlotProps] = useSlot('root', {
162
164
  ref,
163
165
  elementType: RadioRoot,
@@ -190,7 +192,7 @@ const Radio = /*#__PURE__*/React.forwardRef(function Radio(inProps, ref) {
190
192
  slots,
191
193
  slotProps: {
192
194
  // Do not forward `slotProps.root` again because it's already handled by the `RootSlot` in this file.
193
- input: typeof slotProps.input === 'function' ? slotProps.input(ownerState) : slotProps.input
195
+ input: typeof externalInputProps === 'function' ? externalInputProps(ownerState) : externalInputProps
194
196
  }
195
197
  }
196
198
  });
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/material v7.0.0-beta.2
2
+ * @mui/material v7.0.0-beta.3
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -1,5 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { DefaultTheme } from '@mui/system';
3
+ import { StorageManager } from '@mui/system/cssVars';
3
4
  import { CssThemeVariables } from "./createThemeNoVars.js";
4
5
  type ThemeProviderCssVariablesProps = CssThemeVariables extends {
5
6
  enabled: true;
@@ -40,6 +41,11 @@ export interface ThemeProviderProps<Theme = DefaultTheme> extends ThemeProviderC
40
41
  * @default window
41
42
  */
42
43
  storageWindow?: Window | null;
44
+ /**
45
+ * The storage manager to be used for storing the mode and color scheme
46
+ * @default using `window.localStorage`
47
+ */
48
+ storageManager?: StorageManager | null;
43
49
  /**
44
50
  * localStorage key used to store application `mode`
45
51
  * @default 'mui-mode'
@@ -43,6 +43,7 @@ export declare const CssVarsProvider: (props: React.PropsWithChildren<Partial<im
43
43
  defaultMode?: "light" | "dark" | "system";
44
44
  documentNode?: Document | null;
45
45
  colorSchemeNode?: Element | null;
46
+ storageManager?: import("@mui/system").StorageManager | null;
46
47
  storageWindow?: Window | null;
47
48
  disableNestedContext?: boolean;
48
49
  disableStyleSheetGeneration?: boolean;
@@ -38,6 +38,7 @@ export { default as makeStyles } from "./makeStyles.js";
38
38
  export { default as withStyles } from "./withStyles.js";
39
39
  export { default as withTheme } from "./withTheme.js";
40
40
  export * from "./ThemeProviderWithVars.js";
41
+ export type { StorageManager } from '@mui/system/cssVars';
41
42
  export { default as extendTheme } from "./createThemeWithVars.js";
42
43
  export type { ColorSchemeOverrides, SupportedColorScheme, ColorSystem, CssVarsPalette, Opacity, Overlays, PaletteAlert, PaletteActionChannel, PaletteAppBar, PaletteAvatar, PaletteChip, PaletteColorChannel, PaletteCommonChannel, PaletteFilledInput, PaletteLinearProgress, PaletteSkeleton, PaletteSlider, PaletteSnackbarContent, PaletteSpeedDialAction, PaletteStepConnector, PaletteStepContent, PaletteSwitch, PaletteTableCell, PaletteTextChannel, PaletteTooltip, CssVarsThemeOptions, CssVarsTheme, ThemeVars, ThemeCssVar, ThemeCssVarOverrides, ColorSystemOptions } from "./createThemeWithVars.js";
43
44
  export { default as getOverlayAlpha } from "./getOverlayAlpha.js";
@@ -1,6 +1,6 @@
1
- export const version = "7.0.0-beta.2";
1
+ export const version = "7.0.0-beta.3";
2
2
  export const major = Number("7");
3
3
  export const minor = Number("0");
4
4
  export const patch = Number("0");
5
- export const prerelease = "beta.2";
5
+ export const prerelease = "beta.3";
6
6
  export default version;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/material",
3
- "version": "7.0.0-beta.2",
3
+ "version": "7.0.0-beta.3",
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": "^19.0.0",
37
37
  "react-transition-group": "^4.4.5",
38
- "@mui/core-downloads-tracker": "^7.0.0-beta.2",
39
- "@mui/system": "7.0.0-beta.2",
40
- "@mui/types": "^7.2.22",
41
- "@mui/utils": "7.0.0-beta.2"
38
+ "@mui/system": "7.0.0-beta.3",
39
+ "@mui/types": "^7.2.23",
40
+ "@mui/utils": "7.0.0-beta.3",
41
+ "@mui/core-downloads-tracker": "^7.0.0-beta.3"
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": "7.0.0-beta.2"
49
+ "@mui/material-pigment-css": "7.0.0-beta.3"
50
50
  },
51
51
  "peerDependenciesMeta": {
52
52
  "@types/react": {
@@ -1,5 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { DefaultTheme } from '@mui/system';
3
+ import { StorageManager } from '@mui/system/cssVars';
3
4
  import { CssThemeVariables } from "./createThemeNoVars.js";
4
5
  type ThemeProviderCssVariablesProps = CssThemeVariables extends {
5
6
  enabled: true;
@@ -40,6 +41,11 @@ export interface ThemeProviderProps<Theme = DefaultTheme> extends ThemeProviderC
40
41
  * @default window
41
42
  */
42
43
  storageWindow?: Window | null;
44
+ /**
45
+ * The storage manager to be used for storing the mode and color scheme
46
+ * @default using `window.localStorage`
47
+ */
48
+ storageManager?: StorageManager | null;
43
49
  /**
44
50
  * localStorage key used to store application `mode`
45
51
  * @default 'mui-mode'
@@ -43,6 +43,7 @@ export declare const CssVarsProvider: (props: React.PropsWithChildren<Partial<im
43
43
  defaultMode?: "light" | "dark" | "system";
44
44
  documentNode?: Document | null;
45
45
  colorSchemeNode?: Element | null;
46
+ storageManager?: import("@mui/system").StorageManager | null;
46
47
  storageWindow?: Window | null;
47
48
  disableNestedContext?: boolean;
48
49
  disableStyleSheetGeneration?: boolean;
package/styles/index.d.ts CHANGED
@@ -38,6 +38,7 @@ export { default as makeStyles } from "./makeStyles.js";
38
38
  export { default as withStyles } from "./withStyles.js";
39
39
  export { default as withTheme } from "./withTheme.js";
40
40
  export * from "./ThemeProviderWithVars.js";
41
+ export type { StorageManager } from '@mui/system/cssVars';
41
42
  export { default as extendTheme } from "./createThemeWithVars.js";
42
43
  export type { ColorSchemeOverrides, SupportedColorScheme, ColorSystem, CssVarsPalette, Opacity, Overlays, PaletteAlert, PaletteActionChannel, PaletteAppBar, PaletteAvatar, PaletteChip, PaletteColorChannel, PaletteCommonChannel, PaletteFilledInput, PaletteLinearProgress, PaletteSkeleton, PaletteSlider, PaletteSnackbarContent, PaletteSpeedDialAction, PaletteStepConnector, PaletteStepContent, PaletteSwitch, PaletteTableCell, PaletteTextChannel, PaletteTooltip, CssVarsThemeOptions, CssVarsTheme, ThemeVars, ThemeCssVar, ThemeCssVarOverrides, ColorSystemOptions } from "./createThemeWithVars.js";
43
44
  export { default as getOverlayAlpha } from "./getOverlayAlpha.js";