@mui/docs 7.1.0 → 7.1.1

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/Ad/Ad.js CHANGED
@@ -61,11 +61,6 @@ function PleaseDisableAdblock() {
61
61
  }
62
62
  const disableAd = process.env.NODE_ENV !== 'production' && process.env.ENABLE_AD_IN_DEV_MODE !== 'true';
63
63
  const inHouseAds = [{
64
- name: 'scaffoldhub',
65
- link: 'https://v2.scaffoldhub.io/scaffolds/react-material-ui?partner=1',
66
- img: '/static/ads-in-house/scaffoldhub.png',
67
- description: '<b>ScaffoldHub</b>. Automate building your full-stack Material UI web-app.'
68
- }, {
69
64
  name: 'templates',
70
65
  link: 'https://mui.com/store/?utm_source=docs&utm_medium=referral&utm_campaign=in-house-templates',
71
66
  img: '/static/ads-in-house/themes-2.jpg',
package/Ad/ad.styles.d.ts CHANGED
@@ -9,7 +9,7 @@ export declare const adBodyImageStyles: (theme: Theme) => {
9
9
  overflow: string;
10
10
  border: string;
11
11
  borderColor: string;
12
- borderRadius: number;
12
+ borderRadius: string | number;
13
13
  padding: number;
14
14
  paddingLeft: number;
15
15
  };
package/CHANGELOG.md CHANGED
@@ -1,5 +1,77 @@
1
1
  # [Versions](https://mui.com/versions/)
2
2
 
3
+ ## 7.1.1
4
+
5
+ <!-- generated comparing v7.1.0..master -->
6
+
7
+ _May 30, 2025_
8
+
9
+ A big thanks to the 15 contributors who made this release possible.
10
+
11
+ ### `@mui/material@7.1.1`
12
+
13
+ - [Autocomplete] Fix label shrink issue when `renderValue` is used with empty array in multiple mode (#46047) @ZeeshanTamboli
14
+ - [Autocomplete] Prevent `renderValue` from being skipped when value is 0 (#46145) @LakshitAgarwal
15
+ - [Autocomplete] Add note in JSDoc for non-TextField components in `renderInput` (#46141) @khllbnomrn
16
+ - [Chip] Add slots and slotProps (#46098) @sai6855
17
+ - [Menu] Remove depreacted `MenuListProps` from demos (#46144) @sai6855
18
+ - [TablePaginationActions] Export TablePaginationActions as new component (#46149) @sai6855
19
+ - [SnackbarContent] Fix `square` prop not working (#46196) @0210shivam
20
+ - [SnackbarContent] Fix error when theme value is CSS variable (#46198) @0210shivam
21
+
22
+ ### `@mui/codemod@7.1.1`
23
+
24
+ - Add package name option (#45977) @siriwatknp
25
+
26
+ ### `@mui/system@7.1.1`
27
+
28
+ - Skip styled component from being transformed (#46129) @siriwatknp
29
+ - Update the type for borderRadius (#46154) @codiini
30
+
31
+ ### `@mui/styled-engine@7.1.1`
32
+
33
+ - Fix variant props callback type to spread `ownerState` (#46187) @siriwatknp
34
+
35
+ ### `@mui/stylis-plugin-rtl@7.1.1`
36
+
37
+ - Fix RTL does not work with CSS layer with a new package (#46230) @siriwatknp
38
+
39
+ ### Docs
40
+
41
+ - [Dialog] Remove deprecated TransitionComponent from demo (#46185) @sai6855
42
+ - [Grid] Remove direction `column` and `column-reverse` from the demo (#46127) @0210shivam
43
+ - [Grid] Update grid migration guide (#46057) @sai6855
44
+ - [templates] Fix rendering of logos in dark mode (#46221) @sai6855
45
+ - [ToggleButtonGroup] Add spacing demo (#46058) @sai6855
46
+ - Fix typo in dark mode docs (#46229) @ZeeshanTamboli
47
+ - Clarify Next.js + Tailwind CSS v3 integration requirements (#46176) @chaitanyasharma1011
48
+ - Fix GridLegacy docs order (#46135) @oliviertassinari
49
+ - Update upgrade guide for resolution of `react-is` (#46002) @siriwatknp
50
+ - Remove oudated scaffoldhub ad (#46090) @oliviertassinari
51
+ - Show how to target global state classes with CSS Modules (#45992) @RubemMazzetto
52
+
53
+ ### Core
54
+
55
+ - [code-infra] Add plugin to check for index file access (#46178) @Janpot
56
+ - [code-infra] Bump eslint to v9 (#46222) @brijeshb42
57
+ - [code-infra] Move packages to mui/mui-public (#46155) @Janpot
58
+ - [code-infra] Move `chai` to peerDep (#46227) @JCQuintas
59
+ - [code-infra] Avoid loading barrel file during type checking (#46177) @Janpot
60
+ - [code-infra] Remove unnecessary ref from `HighlightedCode` component (#46151) @ZeeshanTamboli
61
+ - [code-infra] Import mocha type instead of global (#46108) @JCQuintas
62
+ - [code-infra] Dependabot also create branches (795a481) @oliviertassinari
63
+ - [code-infra] Avoid running continuous release on forks (#46103) @Janpot
64
+ - [code-infra] Remove checkout job altogether (#46100) @Janpot
65
+ - [code-infra] Remove required checkout workflows in circleci (#46099) @Janpot
66
+ - Run pnpm docs:sync-team (c8f1da5) @oliviertassinari
67
+ - Upgrade MUI X packages to v8 (#45990) @KenanYusuf
68
+ - Minor detail to reduce confusion (4c64b72) @oliviertassinari
69
+ - Update security.md (#45839) @DiegoAndai
70
+ - Apply yml convention, blank line only at top level (f273220) @oliviertassinari
71
+ - Add comment that lab should be in alpha (#45999) @oliviertassinari
72
+
73
+ All contributors of this release in alphabetical order: @0210shivam, @brijeshb42, @chaitanyasharma1011, @codiini, @DiegoAndai, @Janpot, @JCQuintas, @KenanYusuf, @khllbnomrn, @LakshitAgarwal, @oliviertassinari, @RubemMazzetto, @sai6855, @siriwatknp, @ZeeshanTamboli
74
+
3
75
  ## 7.1.0
4
76
 
5
77
  <!-- generated comparing v7.0.2..master -->
@@ -11,4 +11,4 @@ export interface HighlightedCodeProps {
11
11
  preComponent?: React.ElementType;
12
12
  sx?: SxProps;
13
13
  }
14
- export declare const HighlightedCode: React.ForwardRefExoticComponent<HighlightedCodeProps & React.RefAttributes<HTMLDivElement>>;
14
+ export declare function HighlightedCode(props: HighlightedCodeProps): React.JSX.Element;
@@ -5,7 +5,7 @@ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWild
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.HighlightedCode = void 0;
8
+ exports.HighlightedCode = HighlightedCode;
9
9
  var React = _interopRequireWildcard(require("react"));
10
10
  var _prism = _interopRequireDefault(require("@mui/internal-markdown/prism"));
11
11
  var _NoSsr = require("@mui/base/NoSsr");
@@ -31,7 +31,7 @@ const Pre = (0, _styles.styled)('pre')(({
31
31
  // https://github.com/necolas/normalize.css/blob/master/normalize.css#L102
32
32
  }
33
33
  }));
34
- const HighlightedCode = exports.HighlightedCode = /*#__PURE__*/React.forwardRef(function HighlightedCode(props, ref) {
34
+ function HighlightedCode(props) {
35
35
  const {
36
36
  code,
37
37
  copyButtonHidden = false,
@@ -46,9 +46,9 @@ const HighlightedCode = exports.HighlightedCode = /*#__PURE__*/React.forwardRef(
46
46
  return (0, _prism.default)(code.trim(), language);
47
47
  }, [code, language]);
48
48
  const handlers = (0, _CodeCopy.useCodeCopy)();
49
+ const componentProps = !plainStyle ? other : undefined;
49
50
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
50
- ref: ref,
51
- ...other,
51
+ ...componentProps,
52
52
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
53
53
  className: "MuiCode-root",
54
54
  ...handlers,
@@ -72,4 +72,4 @@ const HighlightedCode = exports.HighlightedCode = /*#__PURE__*/React.forwardRef(
72
72
  })]
73
73
  })
74
74
  });
75
- });
75
+ }
@@ -1,17 +1,17 @@
1
1
  import * as React from 'react';
2
- export declare const CodeTabList: import("@emotion/styled").StyledComponent<import("@mui/base/TabsList").TabsListOwnProps & Omit<any, keyof import("@mui/base/TabsList").TabsListOwnProps> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
2
+ export declare const CodeTabList: import("@emotion/styled").StyledComponent<import("@mui/base/TabsList").TabsListOwnProps & Omit<any, keyof import("@mui/base/TabsList").TabsListOwnProps> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
3
3
  ownerState: {
4
4
  mounted: boolean;
5
5
  contained?: boolean;
6
6
  };
7
7
  }, {}, {}>;
8
- export declare const CodeTabPanel: import("@emotion/styled").StyledComponent<import("@mui/base/TabPanel").TabPanelOwnProps & Omit<any, keyof import("@mui/base/TabPanel").TabPanelOwnProps> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
8
+ export declare const CodeTabPanel: import("@emotion/styled").StyledComponent<import("@mui/base/TabPanel").TabPanelOwnProps & Omit<any, keyof import("@mui/base/TabPanel").TabPanelOwnProps> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
9
9
  ownerState: {
10
10
  mounted: boolean;
11
11
  contained?: boolean;
12
12
  };
13
13
  }, {}, {}>;
14
- export declare const CodeTab: import("@emotion/styled").StyledComponent<import("@mui/base/Tab").TabOwnProps & Omit<any, keyof import("@mui/base/Tab").TabOwnProps> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
14
+ export declare const CodeTab: import("@emotion/styled").StyledComponent<import("@mui/base/Tab").TabOwnProps & Omit<any, keyof import("@mui/base/Tab").TabOwnProps> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
15
15
  ownerState: {
16
16
  mounted: boolean;
17
17
  contained?: boolean;
package/esm/Ad/Ad.js CHANGED
@@ -52,11 +52,6 @@ function PleaseDisableAdblock() {
52
52
  }
53
53
  const disableAd = process.env.NODE_ENV !== 'production' && process.env.ENABLE_AD_IN_DEV_MODE !== 'true';
54
54
  const inHouseAds = [{
55
- name: 'scaffoldhub',
56
- link: 'https://v2.scaffoldhub.io/scaffolds/react-material-ui?partner=1',
57
- img: '/static/ads-in-house/scaffoldhub.png',
58
- description: '<b>ScaffoldHub</b>. Automate building your full-stack Material UI web-app.'
59
- }, {
60
55
  name: 'templates',
61
56
  link: 'https://mui.com/store/?utm_source=docs&utm_medium=referral&utm_campaign=in-house-templates',
62
57
  img: '/static/ads-in-house/themes-2.jpg',
@@ -9,7 +9,7 @@ export declare const adBodyImageStyles: (theme: Theme) => {
9
9
  overflow: string;
10
10
  border: string;
11
11
  borderColor: string;
12
- borderRadius: number;
12
+ borderRadius: string | number;
13
13
  padding: number;
14
14
  paddingLeft: number;
15
15
  };
@@ -11,4 +11,4 @@ export interface HighlightedCodeProps {
11
11
  preComponent?: React.ElementType;
12
12
  sx?: SxProps;
13
13
  }
14
- export declare const HighlightedCode: React.ForwardRefExoticComponent<HighlightedCodeProps & React.RefAttributes<HTMLDivElement>>;
14
+ export declare function HighlightedCode(props: HighlightedCodeProps): React.JSX.Element;
@@ -23,7 +23,7 @@ const Pre = styled('pre')(({
23
23
  // https://github.com/necolas/normalize.css/blob/master/normalize.css#L102
24
24
  }
25
25
  }));
26
- export const HighlightedCode = /*#__PURE__*/React.forwardRef(function HighlightedCode(props, ref) {
26
+ export function HighlightedCode(props) {
27
27
  const {
28
28
  code,
29
29
  copyButtonHidden = false,
@@ -38,9 +38,9 @@ export const HighlightedCode = /*#__PURE__*/React.forwardRef(function Highlighte
38
38
  return prism(code.trim(), language);
39
39
  }, [code, language]);
40
40
  const handlers = useCodeCopy();
41
+ const componentProps = !plainStyle ? other : undefined;
41
42
  return /*#__PURE__*/_jsx(Component, {
42
- ref: ref,
43
- ...other,
43
+ ...componentProps,
44
44
  children: /*#__PURE__*/_jsxs("div", {
45
45
  className: "MuiCode-root",
46
46
  ...handlers,
@@ -64,4 +64,4 @@ export const HighlightedCode = /*#__PURE__*/React.forwardRef(function Highlighte
64
64
  })]
65
65
  })
66
66
  });
67
- });
67
+ }
@@ -1,17 +1,17 @@
1
1
  import * as React from 'react';
2
- export declare const CodeTabList: import("@emotion/styled").StyledComponent<import("@mui/base/TabsList").TabsListOwnProps & Omit<any, keyof import("@mui/base/TabsList").TabsListOwnProps> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
2
+ export declare const CodeTabList: import("@emotion/styled").StyledComponent<import("@mui/base/TabsList").TabsListOwnProps & Omit<any, keyof import("@mui/base/TabsList").TabsListOwnProps> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
3
3
  ownerState: {
4
4
  mounted: boolean;
5
5
  contained?: boolean;
6
6
  };
7
7
  }, {}, {}>;
8
- export declare const CodeTabPanel: import("@emotion/styled").StyledComponent<import("@mui/base/TabPanel").TabPanelOwnProps & Omit<any, keyof import("@mui/base/TabPanel").TabPanelOwnProps> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
8
+ export declare const CodeTabPanel: import("@emotion/styled").StyledComponent<import("@mui/base/TabPanel").TabPanelOwnProps & Omit<any, keyof import("@mui/base/TabPanel").TabPanelOwnProps> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
9
9
  ownerState: {
10
10
  mounted: boolean;
11
11
  contained?: boolean;
12
12
  };
13
13
  }, {}, {}>;
14
- export declare const CodeTab: import("@emotion/styled").StyledComponent<import("@mui/base/Tab").TabOwnProps & Omit<any, keyof import("@mui/base/Tab").TabOwnProps> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
14
+ export declare const CodeTab: import("@emotion/styled").StyledComponent<import("@mui/base/Tab").TabOwnProps & Omit<any, keyof import("@mui/base/Tab").TabOwnProps> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
15
15
  ownerState: {
16
16
  mounted: boolean;
17
17
  contained?: boolean;
@@ -1,4 +1,4 @@
1
- declare const _default: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
1
+ declare const _default: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material/SvgIcon").SvgIconTypeMap<{}, "svg">> & {
2
2
  muiName: string;
3
3
  };
4
4
  export default _default;
@@ -1,4 +1,4 @@
1
- declare const _default: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
1
+ declare const _default: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material/SvgIcon").SvgIconTypeMap<{}, "svg">> & {
2
2
  muiName: string;
3
3
  };
4
4
  export default _default;
@@ -1,4 +1,4 @@
1
- declare const _default: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
1
+ declare const _default: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material/SvgIcon").SvgIconTypeMap<{}, "svg">> & {
2
2
  muiName: string;
3
3
  };
4
4
  export default _default;
@@ -1,4 +1,4 @@
1
- declare const _default: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
1
+ declare const _default: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material/SvgIcon").SvgIconTypeMap<{}, "svg">> & {
2
2
  muiName: string;
3
3
  };
4
4
  export default _default;
@@ -1,4 +1,4 @@
1
- declare const _default: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
1
+ declare const _default: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material/SvgIcon").SvgIconTypeMap<{}, "svg">> & {
2
2
  muiName: string;
3
3
  };
4
4
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/docs",
3
- "version": "7.1.0",
3
+ "version": "7.1.1",
4
4
  "author": "MUI Team",
5
5
  "description": "MUI Docs - Documentation building blocks.",
6
6
  "main": "./index.js",
@@ -27,7 +27,7 @@
27
27
  "clsx": "^2.1.1",
28
28
  "nprogress": "^0.2.0",
29
29
  "prop-types": "^15.8.1",
30
- "@mui/internal-markdown": "^2.0.5"
30
+ "@mui/internal-markdown": "^2.0.6"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "@mui/base": "*",
@@ -1,4 +1,4 @@
1
- declare const _default: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
1
+ declare const _default: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material/SvgIcon").SvgIconTypeMap<{}, "svg">> & {
2
2
  muiName: string;
3
3
  };
4
4
  export default _default;
@@ -1,4 +1,4 @@
1
- declare const _default: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
1
+ declare const _default: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material/SvgIcon").SvgIconTypeMap<{}, "svg">> & {
2
2
  muiName: string;
3
3
  };
4
4
  export default _default;
@@ -1,4 +1,4 @@
1
- declare const _default: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
1
+ declare const _default: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material/SvgIcon").SvgIconTypeMap<{}, "svg">> & {
2
2
  muiName: string;
3
3
  };
4
4
  export default _default;
@@ -1,4 +1,4 @@
1
- declare const _default: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
1
+ declare const _default: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material/SvgIcon").SvgIconTypeMap<{}, "svg">> & {
2
2
  muiName: string;
3
3
  };
4
4
  export default _default;
@@ -1,4 +1,4 @@
1
- declare const _default: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
1
+ declare const _default: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material/SvgIcon").SvgIconTypeMap<{}, "svg">> & {
2
2
  muiName: string;
3
3
  };
4
4
  export default _default;