@mui/docs 7.0.2 → 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 +1 -6
- package/Ad/ad.styles.d.ts +1 -1
- package/CHANGELOG.md +169 -0
- package/HighlightedCode/HighlightedCode.d.ts +1 -1
- package/HighlightedCode/HighlightedCode.js +5 -5
- package/HighlightedCodeWithTabs/HighlightedCodeWithTabs.d.ts +3 -3
- package/NProgressBar/NProgressBar.js +2 -2
- package/esm/Ad/Ad.js +1 -6
- package/esm/Ad/ad.styles.d.ts +1 -1
- package/esm/HighlightedCode/HighlightedCode.d.ts +1 -1
- package/esm/HighlightedCode/HighlightedCode.js +4 -4
- package/esm/HighlightedCodeWithTabs/HighlightedCodeWithTabs.d.ts +3 -3
- package/esm/NProgressBar/NProgressBar.js +1 -1
- package/esm/i18n/i18n.js +1 -1
- package/esm/svgIcons/BundleSizeIcon.d.ts +1 -1
- package/esm/svgIcons/FigmaIcon.d.ts +1 -1
- package/esm/svgIcons/MaterialDesignIcon.d.ts +1 -1
- package/esm/svgIcons/SketchIcon.d.ts +1 -1
- package/esm/svgIcons/W3CIcon.d.ts +1 -1
- package/i18n/i18n.js +2 -2
- package/package.json +5 -5
- package/svgIcons/BundleSizeIcon.d.ts +1 -1
- package/svgIcons/FigmaIcon.d.ts +1 -1
- package/svgIcons/MaterialDesignIcon.d.ts +1 -1
- package/svgIcons/SketchIcon.d.ts +1 -1
- package/svgIcons/W3CIcon.d.ts +1 -1
- package/modern/Ad/Ad.d.ts +0 -6
- package/modern/Ad/AdCarbon.d.ts +0 -3
- package/modern/Ad/AdDisplay.d.ts +0 -16
- package/modern/Ad/AdGuest.d.ts +0 -10
- package/modern/Ad/AdInHouse.d.ts +0 -5
- package/modern/Ad/AdManager.d.ts +0 -19
- package/modern/Ad/AdProvider.d.ts +0 -15
- package/modern/Ad/ad.styles.d.ts +0 -4329
- package/modern/Ad/index.d.ts +0 -5
- package/modern/CodeCopy/CodeCopy.d.ts +0 -22
- package/modern/CodeCopy/CodeCopyButton.d.ts +0 -5
- package/modern/CodeCopy/index.d.ts +0 -3
- package/modern/CodeCopy/useClipboardCopy.d.ts +0 -4
- package/modern/ComponentLinkHeader/ComponentLinkHeader.d.ts +0 -9
- package/modern/ComponentLinkHeader/index.d.ts +0 -2
- package/modern/DocsProvider/DocsProvider.d.ts +0 -24
- package/modern/DocsProvider/index.d.ts +0 -1
- package/modern/HighlightedCode/HighlightedCode.d.ts +0 -14
- package/modern/HighlightedCode/index.d.ts +0 -1
- package/modern/HighlightedCodeWithTabs/HighlightedCodeWithTabs.d.ts +0 -29
- package/modern/HighlightedCodeWithTabs/index.d.ts +0 -2
- package/modern/InfoCard/InfoCard.d.ts +0 -22
- package/modern/InfoCard/index.d.ts +0 -1
- package/modern/Link/Link.d.ts +0 -25
- package/modern/Link/index.d.ts +0 -1
- package/modern/MarkdownElement/MarkdownElement.d.ts +0 -7
- package/modern/MarkdownElement/index.d.ts +0 -1
- package/modern/NProgressBar/NProgressBar.d.ts +0 -6
- package/modern/NProgressBar/index.d.ts +0 -2
- package/modern/SectionTitle/SectionTitle.d.ts +0 -7
- package/modern/SectionTitle/index.d.ts +0 -1
- package/modern/branding/BrandingProvider.d.ts +0 -9
- package/modern/branding/brandingTheme.d.ts +0 -147
- package/modern/branding/index.d.ts +0 -2
- package/modern/i18n/i18n.d.ts +0 -27
- package/modern/i18n/index.d.ts +0 -1
- package/modern/svgIcons/BundleSizeIcon.d.ts +0 -4
- package/modern/svgIcons/FigmaIcon.d.ts +0 -4
- package/modern/svgIcons/FileDownload.d.ts +0 -7
- package/modern/svgIcons/JavaScript.d.ts +0 -7
- package/modern/svgIcons/MaterialDesignIcon.d.ts +0 -4
- package/modern/svgIcons/SketchIcon.d.ts +0 -4
- package/modern/svgIcons/TypeScript.d.ts +0 -7
- package/modern/svgIcons/W3CIcon.d.ts +0 -4
- package/modern/translations/index.d.ts +0 -3
- package/modern/utils/loadScript.d.ts +0 -1
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',
|
|
@@ -77,7 +72,7 @@ const inHouseAds = [{
|
|
|
77
72
|
description: '<b>Premium Themes</b>. Kickstart your application development with a ready-made theme.'
|
|
78
73
|
}, {
|
|
79
74
|
name: 'tidelift',
|
|
80
|
-
link: 'https://tidelift.com
|
|
75
|
+
link: 'https://tidelift.com/?utm_source=npm-material-ui&utm_medium=referral&utm_campaign=enterprise&utm_content=ad',
|
|
81
76
|
img: '/static/ads-in-house/tidelift.png',
|
|
82
77
|
description: '<b>MUI for enterprise</b>. Save time and reduce risk. Managed open source — backed by maintainers.'
|
|
83
78
|
}, {
|
package/Ad/ad.styles.d.ts
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,174 @@
|
|
|
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
|
+
|
|
75
|
+
## 7.1.0
|
|
76
|
+
|
|
77
|
+
<!-- generated comparing v7.0.2..master -->
|
|
78
|
+
|
|
79
|
+
_May 6, 2025_
|
|
80
|
+
|
|
81
|
+
A big thanks to the 21 contributors who made this release possible. Here are some highlights ✨:
|
|
82
|
+
|
|
83
|
+
- 🎉 Material UI now works with **Tailwind CSS v4**! Check out the [setup guide](https://mui.com/material-ui/integrations/tailwindcss/tailwindcss-v4/).
|
|
84
|
+
|
|
85
|
+
### `@mui/material@7.1.0`
|
|
86
|
+
|
|
87
|
+
- [InputBase] Text cursor jumps several lines up when inserting text fragment with new line at the end (#45246) @yermartee
|
|
88
|
+
- [OutlinedInput] Add missing `notchedOutline` slot (#45917) @siriwatknp
|
|
89
|
+
- [Snackbar] Skip default `onClickAway` behavior when `defaultMuiPrevented` is provided (#45629) @sai6855
|
|
90
|
+
- [Avatar] Fix img slot types and add missing slots (#45483) @siriwatknp
|
|
91
|
+
- [Badge] Replace useSlotProps with useSlot hook (#45871) @sai6855
|
|
92
|
+
- [BottomNavigationAction] Add slots and slotProps (#45776) @sai6855
|
|
93
|
+
- [CardActionArea] Add slots and slotProps (#45866) @sai6855
|
|
94
|
+
- [useMediaQuery] Add warning and docs for using `useMediaQuery('print')` (#44790) @good-jinu
|
|
95
|
+
- Remove unnecessary clsx usages (#46084) @sai6855
|
|
96
|
+
- Corrected generic type definition in `SelectChangeEvent` (#45941) @SuyashShukla0007
|
|
97
|
+
- Fix theme object changes between renders (#45863) @siriwatknp
|
|
98
|
+
|
|
99
|
+
### `@mui/material-nextjs@7.1.0`
|
|
100
|
+
|
|
101
|
+
- Add option to enable CSS layers for pages router (#45596) @siriwatknp
|
|
102
|
+
- Do not wrap `@layer` order rules in App Router (#45864) @Nayeem-XTREME
|
|
103
|
+
|
|
104
|
+
### `@mui/system@7.1.0`
|
|
105
|
+
|
|
106
|
+
- Fix `@mui/system` types organization (#45860) @Janpot
|
|
107
|
+
|
|
108
|
+
### `@mui/styled-engine@7.1.0`
|
|
109
|
+
|
|
110
|
+
- Infer `ownerState` from props in `styled` (#46083) @siriwatknp
|
|
111
|
+
- Fix style overrides variants type (#45478) @siriwatknp
|
|
112
|
+
|
|
113
|
+
### Docs
|
|
114
|
+
|
|
115
|
+
- [Avatar] Add avatar upload demo (#45986) @Demianeen
|
|
116
|
+
- [Dialog] Remove deprecated props usage in demos (#45923) @sai6855
|
|
117
|
+
- [Menu] Update `paper` slot JSDoc default from `Paper` to `PopoverPaper` (#45722) @andreachiera
|
|
118
|
+
- [examples] Remove create-react-app usages (#45426) @CodeLeom
|
|
119
|
+
- Add `AccordionSummary` to the v5 breaking change migration (#45947) @siriwatknp
|
|
120
|
+
- Update CSS variable usage in migration guide for Pigment CSS (#46033) @sai6855
|
|
121
|
+
- Fix docs API dark mode color (#46086) @alexfauquette
|
|
122
|
+
- Add a guide for extending Material UI classes in Tailwind CSS (#46039) @siriwatknp
|
|
123
|
+
- Add `InitColorSchemeScript` docs and API (#45927) @siriwatknp
|
|
124
|
+
- Add Tailwind CSS v4 integration guide (#45906) @siriwatknp
|
|
125
|
+
- Fix 301 links to the system v6 (#45931) @oliviertassinari
|
|
126
|
+
- Add notification for MUI X v8 announcement (#45942) @joserodolfofreitas
|
|
127
|
+
- Fix som 301 redirections (ae84b35) @oliviertassinari
|
|
128
|
+
- Fix some 301 redirections (057384e) @oliviertassinari
|
|
129
|
+
- Fix logo is not centered on small screens (#45920) @crabsim
|
|
130
|
+
- Fix line break typo (a2a62d5) @oliviertassinari
|
|
131
|
+
- Fix markdown typo in templates.md (#45914) @scyzoryck
|
|
132
|
+
- Add Next.js App Router guide for custom classnames (#45852) @siriwatknp
|
|
133
|
+
|
|
134
|
+
### Core
|
|
135
|
+
|
|
136
|
+
- [code-infra] Give a stable name to dev tool app (3889ded) @oliviertassinari
|
|
137
|
+
- [code-infra] Normalize author package in org (8135638) @oliviertassinari
|
|
138
|
+
- [code-infra] Correct some manually curated .d.ts files (#46054) @Janpot
|
|
139
|
+
- [code-infra] Align deps versions (#46048) @Janpot
|
|
140
|
+
- [code-infra] Fix dynamic import in imports resolver (#46046) @Janpot
|
|
141
|
+
- [code-infra] Eliminate `@mui/utils` deep imports (#46004) @Janpot
|
|
142
|
+
- [code-infra] Expand renovate.json for react types (#45935) @Janpot
|
|
143
|
+
- [code-infra] Make Argos upload script reusable (#45883) @Janpot
|
|
144
|
+
- [code-infra] Disallow redundant window prefixes for globals (#45880) @Janpot
|
|
145
|
+
- [code-infra] Remove type generation of modern build (#45912) @Janpot
|
|
146
|
+
- [code-infra] Clean up bundle size checker (#45622) @Janpot
|
|
147
|
+
- [code-infra] Fix `StrictMode` effects not being called twice in React 19 tests (#45812) @bernardobelchior
|
|
148
|
+
- [code-infra] Convert `@mui/utils` to typescript (#45671) @Janpot
|
|
149
|
+
- [docs-infra] Improve export into sandbox package.json (#46044) @oliviertassinari
|
|
150
|
+
- [docs-infra] Update feedback Node.js to v22 (#46064) @oliviertassinari
|
|
151
|
+
- [docs-infra] Normalize netlify.toml in org (b101d5c) @oliviertassinari
|
|
152
|
+
- [docs-infra] Uniformize Vale between repositories (0f79796) @oliviertassinari
|
|
153
|
+
- [docs-infra] Fix Vale no longer working (#46029) @oliviertassinari
|
|
154
|
+
- [docs-infra] Remove demo styling switch (#45926) @Janpot
|
|
155
|
+
- [docs-infra] StackBlitz WebContainer demos (#45924) @Janpot
|
|
156
|
+
- [docs-infra] Fix feedback management (#45872) @alexfauquette
|
|
157
|
+
- [test] Replace `playwright` with `@playwright/test` (#45998) @ZeeshanTamboli
|
|
158
|
+
- Fix internal version duplication (#46051) @oliviertassinari
|
|
159
|
+
- Avoid the need for `@mui/material/themeCssVarsAugmentation` (#46053) @Janpot
|
|
160
|
+
- Add security label to dependabot PRs (0a5c027) @oliviertassinari
|
|
161
|
+
- Remove unecessary versions (#46034) @oliviertassinari
|
|
162
|
+
- Remove redundant overrides resolver (#45970) @romgrk
|
|
163
|
+
- Fix duplicate branch reference (#45915) @oliviertassinari
|
|
164
|
+
- Fix outdated <link rel="shortcut icon" (#45916) @oliviertassinari
|
|
165
|
+
- Fix redirection chains (#45930) @oliviertassinari
|
|
166
|
+
- Run pnpm docs:sync-team (beee09f) @oliviertassinari
|
|
167
|
+
- Add `pkg.pr.new` publishing (#42984) @Aslemammad
|
|
168
|
+
- Remove @mui/base from the master branch (#45857) @mnajdova
|
|
169
|
+
|
|
170
|
+
All contributors of this release in alphabetical order: @alexfauquette, @andreachiera, @Aslemammad, @bernardobelchior, @CodeLeom, @crabsim, @Demianeen, @good-jinu, @Janpot, @joserodolfofreitas, @mnajdova, @Nayeem-XTREME, @oliviertassinari, @renovate[bot], @romgrk, @sai6855, @scyzoryck, @siriwatknp, @SuyashShukla0007, @yermartee, @ZeeshanTamboli
|
|
171
|
+
|
|
3
172
|
## 7.0.2
|
|
4
173
|
|
|
5
174
|
_Apr 9, 2025_
|
|
@@ -11,4 +11,4 @@ export interface HighlightedCodeProps {
|
|
|
11
11
|
preComponent?: React.ElementType;
|
|
12
12
|
sx?: SxProps;
|
|
13
13
|
}
|
|
14
|
-
export declare
|
|
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 =
|
|
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
|
-
|
|
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
|
-
|
|
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;
|
|
@@ -10,7 +10,7 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
10
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
11
|
var _nprogress = _interopRequireDefault(require("nprogress"));
|
|
12
12
|
var _NoSsr = require("@mui/base/NoSsr");
|
|
13
|
-
var
|
|
13
|
+
var _exactProp = _interopRequireDefault(require("@mui/utils/exactProp"));
|
|
14
14
|
var _GlobalStyles = _interopRequireDefault(require("@mui/material/GlobalStyles"));
|
|
15
15
|
var _styles = require("@mui/material/styles");
|
|
16
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -95,6 +95,6 @@ process.env.NODE_ENV !== "production" ? NProgressBar.propTypes = {
|
|
|
95
95
|
children: _propTypes.default.node
|
|
96
96
|
} : void 0;
|
|
97
97
|
if (process.env.NODE_ENV !== 'production') {
|
|
98
|
-
process.env.NODE_ENV !== "production" ? NProgressBar.propTypes = (0,
|
|
98
|
+
process.env.NODE_ENV !== "production" ? NProgressBar.propTypes = (0, _exactProp.default)(NProgressBar.propTypes) : void 0;
|
|
99
99
|
}
|
|
100
100
|
var _default = exports.default = NProgressBar;
|
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',
|
|
@@ -68,7 +63,7 @@ const inHouseAds = [{
|
|
|
68
63
|
description: '<b>Premium Themes</b>. Kickstart your application development with a ready-made theme.'
|
|
69
64
|
}, {
|
|
70
65
|
name: 'tidelift',
|
|
71
|
-
link: 'https://tidelift.com
|
|
66
|
+
link: 'https://tidelift.com/?utm_source=npm-material-ui&utm_medium=referral&utm_campaign=enterprise&utm_content=ad',
|
|
72
67
|
img: '/static/ads-in-house/tidelift.png',
|
|
73
68
|
description: '<b>MUI for enterprise</b>. Save time and reduce risk. Managed open source — backed by maintainers.'
|
|
74
69
|
}, {
|
package/esm/Ad/ad.styles.d.ts
CHANGED
|
@@ -11,4 +11,4 @@ export interface HighlightedCodeProps {
|
|
|
11
11
|
preComponent?: React.ElementType;
|
|
12
12
|
sx?: SxProps;
|
|
13
13
|
}
|
|
14
|
-
export declare
|
|
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
|
|
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
|
-
|
|
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;
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import NProgress from 'nprogress';
|
|
4
4
|
import { NoSsr } from '@mui/base/NoSsr';
|
|
5
|
-
import
|
|
5
|
+
import exactProp from '@mui/utils/exactProp';
|
|
6
6
|
import GlobalStyles from '@mui/material/GlobalStyles';
|
|
7
7
|
import { keyframes } from '@mui/material/styles';
|
|
8
8
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
package/esm/i18n/i18n.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import
|
|
3
|
+
import deepmerge from '@mui/utils/deepmerge';
|
|
4
4
|
import defaultTranslations from "../translations/index.js";
|
|
5
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
6
|
const TranslationsContext = /*#__PURE__*/React.createContext(defaultTranslations);
|
|
@@ -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/i18n/i18n.js
CHANGED
|
@@ -12,7 +12,7 @@ exports.useTranslate = useTranslate;
|
|
|
12
12
|
exports.useUserLanguage = useUserLanguage;
|
|
13
13
|
var React = _interopRequireWildcard(require("react"));
|
|
14
14
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
15
|
-
var
|
|
15
|
+
var _deepmerge = _interopRequireDefault(require("@mui/utils/deepmerge"));
|
|
16
16
|
var _translations = _interopRequireDefault(require("../translations"));
|
|
17
17
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
18
|
const TranslationsContext = /*#__PURE__*/React.createContext(_translations.default);
|
|
@@ -21,7 +21,7 @@ function TranslationsProvider({
|
|
|
21
21
|
children
|
|
22
22
|
}) {
|
|
23
23
|
const currentTranslations = React.useContext(TranslationsContext);
|
|
24
|
-
const mergedTranslations = React.useMemo(() => (0,
|
|
24
|
+
const mergedTranslations = React.useMemo(() => (0, _deepmerge.default)(currentTranslations, translations), [currentTranslations, translations]);
|
|
25
25
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(TranslationsContext.Provider, {
|
|
26
26
|
value: mergedTranslations,
|
|
27
27
|
children: children
|
package/package.json
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/docs",
|
|
3
|
-
"version": "7.
|
|
4
|
-
"private": false,
|
|
3
|
+
"version": "7.1.1",
|
|
5
4
|
"author": "MUI Team",
|
|
6
5
|
"description": "MUI Docs - Documentation building blocks.",
|
|
7
6
|
"main": "./index.js",
|
|
@@ -23,12 +22,12 @@
|
|
|
23
22
|
},
|
|
24
23
|
"homepage": "https://github.com/mui/material-ui/tree/master/packages/mui-docs",
|
|
25
24
|
"dependencies": {
|
|
26
|
-
"@babel/runtime": "^7.27.
|
|
25
|
+
"@babel/runtime": "^7.27.1",
|
|
27
26
|
"clipboard-copy": "^4.0.1",
|
|
28
27
|
"clsx": "^2.1.1",
|
|
29
28
|
"nprogress": "^0.2.0",
|
|
30
29
|
"prop-types": "^15.8.1",
|
|
31
|
-
"@mui/internal-markdown": "^2.0.
|
|
30
|
+
"@mui/internal-markdown": "^2.0.6"
|
|
32
31
|
},
|
|
33
32
|
"peerDependencies": {
|
|
34
33
|
"@mui/base": "*",
|
|
@@ -36,7 +35,7 @@
|
|
|
36
35
|
"@mui/material": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^7.0.0-beta",
|
|
37
36
|
"@mui/system": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^7.0.0-beta",
|
|
38
37
|
"@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
39
|
-
"chai": "^4.
|
|
38
|
+
"chai": "^4.5.0",
|
|
40
39
|
"csstype": "^3.1.3",
|
|
41
40
|
"next": "^13.5.1 || ^14 || ^15.0.0",
|
|
42
41
|
"react": "^17.0.0 || ^18.0.0 || ^19.0.0"
|
|
@@ -53,6 +52,7 @@
|
|
|
53
52
|
"engines": {
|
|
54
53
|
"node": ">=14.0.0"
|
|
55
54
|
},
|
|
55
|
+
"private": false,
|
|
56
56
|
"module": "./esm/index.js",
|
|
57
57
|
"exports": {
|
|
58
58
|
"./package.json": "./package.json",
|
|
@@ -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/svgIcons/FigmaIcon.d.ts
CHANGED
|
@@ -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/svgIcons/SketchIcon.d.ts
CHANGED
|
@@ -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/svgIcons/W3CIcon.d.ts
CHANGED
|
@@ -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/modern/Ad/Ad.d.ts
DELETED
package/modern/Ad/AdCarbon.d.ts
DELETED
package/modern/Ad/AdDisplay.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export interface AdParameters {
|
|
3
|
-
name: string;
|
|
4
|
-
link: string;
|
|
5
|
-
img?: string;
|
|
6
|
-
description: string;
|
|
7
|
-
poweredby: string;
|
|
8
|
-
label: string;
|
|
9
|
-
}
|
|
10
|
-
interface AdDisplayProps {
|
|
11
|
-
ad: AdParameters;
|
|
12
|
-
className?: string;
|
|
13
|
-
shape?: 'auto' | 'inline' | 'image';
|
|
14
|
-
}
|
|
15
|
-
export default function AdDisplay(props: AdDisplayProps): React.JSX.Element;
|
|
16
|
-
export {};
|
package/modern/Ad/AdGuest.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export interface AdGuestProps {
|
|
3
|
-
/**
|
|
4
|
-
* The querySelector use to target the element which will include the ad.
|
|
5
|
-
*/
|
|
6
|
-
classSelector?: string;
|
|
7
|
-
children?: React.ReactNode | undefined;
|
|
8
|
-
}
|
|
9
|
-
declare function AdGuest(props: AdGuestProps): React.JSX.Element | null;
|
|
10
|
-
export { AdGuest };
|
package/modern/Ad/AdInHouse.d.ts
DELETED
package/modern/Ad/AdManager.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
type AdPortal = {
|
|
3
|
-
placement: 'body-top';
|
|
4
|
-
element: Element | null;
|
|
5
|
-
};
|
|
6
|
-
interface AdManagerProps {
|
|
7
|
-
/**
|
|
8
|
-
* The querySelector use to target the element which will include the ad.
|
|
9
|
-
*/
|
|
10
|
-
classSelector?: string;
|
|
11
|
-
children?: React.ReactNode | undefined;
|
|
12
|
-
}
|
|
13
|
-
export declare const AdContext: React.Context<AdPortal>;
|
|
14
|
-
export declare const adShape: string;
|
|
15
|
-
export declare function AdManager({
|
|
16
|
-
classSelector,
|
|
17
|
-
children
|
|
18
|
-
}: AdManagerProps): React.JSX.Element;
|
|
19
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export interface AdConfig {
|
|
3
|
-
/**
|
|
4
|
-
* The ratio of "ad display" event sent to Google Analytics.
|
|
5
|
-
* Used to avoid an exceed on the Google Analytics quotas.
|
|
6
|
-
* @default 0.1
|
|
7
|
-
*/
|
|
8
|
-
GADisplayRatio: number;
|
|
9
|
-
}
|
|
10
|
-
export interface AdProviderProps {
|
|
11
|
-
children: React.ReactNode;
|
|
12
|
-
config?: Partial<AdConfig>;
|
|
13
|
-
}
|
|
14
|
-
export declare function AdProvider(props: AdProviderProps): React.JSX.Element;
|
|
15
|
-
export declare function useAdConfig(): AdConfig;
|