@mui/docs 7.0.0-rc.0 → 7.0.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/Ad/ad.styles.js CHANGED
@@ -10,8 +10,8 @@ const adBodyImageStyles = theme => ({
10
10
  display: 'block',
11
11
  overflow: 'hidden',
12
12
  border: '1px dashed',
13
- borderColor: theme.palette.divider,
14
- borderRadius: theme.shape.borderRadius,
13
+ borderColor: (theme.vars || theme).palette.divider,
14
+ borderRadius: (theme.vars || theme).shape.borderRadius,
15
15
  padding: 8,
16
16
  paddingLeft: 8 + 130,
17
17
  [theme.breakpoints.up('sm')]: {
@@ -29,7 +29,7 @@ const adBodyImageStyles = theme => ({
29
29
  verticalAlign: 'middle'
30
30
  },
31
31
  a: {
32
- color: theme.palette.text.primary,
32
+ color: (theme.vars || theme).palette.text.primary,
33
33
  textDecoration: 'none'
34
34
  },
35
35
  description: {
@@ -43,7 +43,7 @@ const adBodyImageStyles = theme => ({
43
43
  poweredby: {
44
44
  ...theme.typography.caption,
45
45
  marginLeft: theme.spacing(1.5),
46
- color: theme.palette.text.secondary,
46
+ color: (theme.vars || theme).palette.text.secondary,
47
47
  display: 'block',
48
48
  marginTop: theme.spacing(0.5),
49
49
  fontWeight: theme.typography.fontWeightRegular
@@ -78,11 +78,11 @@ const adBodyInlineStyles = theme => {
78
78
  marginLeft: 4,
79
79
  content: '"Get started"',
80
80
  // Style taken from the Link component & MarkdownElement.
81
- color: theme.palette.primary[600],
81
+ color: (theme.vars || theme).palette.primary[600],
82
82
  textDecoration: 'underline',
83
83
  textDecorationColor: (0, _styles.alpha)(theme.palette.primary.main, 0.4),
84
84
  ...theme.applyStyles('dark', {
85
- color: theme.palette.primary[300]
85
+ color: (theme.vars || theme).palette.primary[300]
86
86
  })
87
87
  }
88
88
  },
package/CHANGELOG.md CHANGED
@@ -1,5 +1,58 @@
1
1
  # [Versions](https://mui.com/versions/)
2
2
 
3
+ ## 7.0.0
4
+
5
+ <!-- generated comparing v7.0.0-rc.0..master -->
6
+
7
+ _Mar 26, 2025_
8
+
9
+ 🎉 We're happy to announce the stable release of v7.
10
+
11
+ - Read the [blog post](https://mui.com/blog/material-ui-v7-is-here/) about the announcement.
12
+ - Check out the [v7 upgrade guide](https://mui.com/material-ui/migration/upgrade-to-v7/).
13
+
14
+ ### `@mui/material@7.0.0`
15
+
16
+ - [Autocomplete] Fix when `onHighlightChange` is called (#45438) @ZeeshanTamboli
17
+ - [Tabs] Fix modifier keys + Left/Right Arrow key from being consumed by tab navigation (#45345) @mushfiqbh
18
+ - Update minimum TypeScript support to 4.9 (#45535) @siriwatknp
19
+
20
+ ### `@mui/system@7.0.0`
21
+
22
+ - [system] Fix palette mode does not change when not using CSS vars (#45660) @siriwatknp
23
+
24
+ ### `@mui/lab@7.0.0-beta.9`
25
+
26
+ - [lab] Remove @mui/base dependency (#45602) @mnajdova
27
+
28
+ ### Docs
29
+
30
+ - [docs] Fix unnecessary redirects for v7 (#45677) @Janpot
31
+ - [docs] Fix new React project link, CRA deprecated (#45362) @oliviertassinari
32
+ - [docs] Prepare the v7 upgrade guide for stable release (#45624) @DiegoAndai
33
+ - [docs] Fix grammatical errors in support.md (#45631) @letianpailove
34
+ - [docs] Update nextjs font optimization guide (#45600) @IshfaqAhmedProg
35
+ - [docs] Deprecate Toolpad Studio (#45613) @Janpot
36
+ - [docs] Sync the mode from page to demos #45661 @siriwatknp
37
+
38
+ ### Core
39
+
40
+ - [blog] v7 stable release (#45623) @DiegoAndai
41
+ - [code-infra] Disable flaky masonry screenshot (#45678) @Janpot
42
+ - [code-infra] Migrate regression tests to vite (#44964) @Janpot
43
+ - [code-infra] Update rollup (#45666) @Janpot
44
+ - [code-infra] Support `React.ComponentType` in proptypes generation (#45664) @Janpot
45
+ - [code-infra] Ensure `translations.json` is present in all `@mui/docs` package builds (#45626) @LukasTy
46
+ - [code-infra] Improve Argos script debuggability (#45619) @Janpot
47
+ - [code-infra] Reconfigure `react-remove-properties` babel plugin (#45218) @Janpot
48
+ - [core] Prepare master for v7 stable (#45674) @DiegoAndai
49
+ - [core] Improve instructions on changing domain (#45637) @mnajdova
50
+ - [core] Deprecate `ponyfillGlobal` (#45606) @Janpot
51
+ - [docs-infra] Restructure docs theme context to CSS variables (#45386) @siriwatknp
52
+ - [styles] Remove code & docs (#45633) @mnajdova
53
+
54
+ All contributors of this release in alphabetical order: @DiegoAndai, @IshfaqAhmedProg, @Janpot, @letianpailove, @LukasTy, @mnajdova, @mushfiqbh, @oliviertassinari, @siriwatknp, @ZeeshanTamboli
55
+
3
56
  ## 7.0.0-rc.0
4
57
 
5
58
  <!-- generated comparing v7.0.0-beta.4..master -->
package/README.md CHANGED
@@ -9,7 +9,7 @@ Install the package in your project directory with:
9
9
  <!-- #npm-tag-reference -->
10
10
 
11
11
  ```bash
12
- npm install @mui/docs@next
12
+ npm install @mui/docs
13
13
  ```
14
14
 
15
15
  The docs has a peer dependency on the core components.
@@ -18,7 +18,7 @@ If you are not already using Material UI in your project, you can add it with:
18
18
  <!-- #npm-tag-reference -->
19
19
 
20
20
  ```bash
21
- npm install @mui/material@next
21
+ npm install @mui/material
22
22
  ```
23
23
 
24
24
  ## Documentation
@@ -1350,7 +1350,7 @@ function getThemedComponents() {
1350
1350
  }) => [{
1351
1351
  textTransform: 'none',
1352
1352
  fontWeight: theme.typography.fontWeightMedium,
1353
- color: theme.palette.text.secondary,
1353
+ color: (theme.vars || theme).palette.text.secondary,
1354
1354
  borderColor: theme.palette.grey[200],
1355
1355
  ...(ownerState.size === 'small' && {
1356
1356
  padding: '0.375rem 0.75rem'
@@ -4,8 +4,8 @@ export const adBodyImageStyles = theme => ({
4
4
  display: 'block',
5
5
  overflow: 'hidden',
6
6
  border: '1px dashed',
7
- borderColor: theme.palette.divider,
8
- borderRadius: theme.shape.borderRadius,
7
+ borderColor: (theme.vars || theme).palette.divider,
8
+ borderRadius: (theme.vars || theme).shape.borderRadius,
9
9
  padding: 8,
10
10
  paddingLeft: 8 + 130,
11
11
  [theme.breakpoints.up('sm')]: {
@@ -23,7 +23,7 @@ export const adBodyImageStyles = theme => ({
23
23
  verticalAlign: 'middle'
24
24
  },
25
25
  a: {
26
- color: theme.palette.text.primary,
26
+ color: (theme.vars || theme).palette.text.primary,
27
27
  textDecoration: 'none'
28
28
  },
29
29
  description: {
@@ -37,7 +37,7 @@ export const adBodyImageStyles = theme => ({
37
37
  poweredby: {
38
38
  ...theme.typography.caption,
39
39
  marginLeft: theme.spacing(1.5),
40
- color: theme.palette.text.secondary,
40
+ color: (theme.vars || theme).palette.text.secondary,
41
41
  display: 'block',
42
42
  marginTop: theme.spacing(0.5),
43
43
  fontWeight: theme.typography.fontWeightRegular
@@ -71,11 +71,11 @@ export const adBodyInlineStyles = theme => {
71
71
  marginLeft: 4,
72
72
  content: '"Get started"',
73
73
  // Style taken from the Link component & MarkdownElement.
74
- color: theme.palette.primary[600],
74
+ color: (theme.vars || theme).palette.primary[600],
75
75
  textDecoration: 'underline',
76
76
  textDecorationColor: alpha(theme.palette.primary.main, 0.4),
77
77
  ...theme.applyStyles('dark', {
78
- color: theme.palette.primary[300]
78
+ color: (theme.vars || theme).palette.primary[300]
79
79
  })
80
80
  }
81
81
  },
@@ -1339,7 +1339,7 @@ export function getThemedComponents() {
1339
1339
  }) => [{
1340
1340
  textTransform: 'none',
1341
1341
  fontWeight: theme.typography.fontWeightMedium,
1342
- color: theme.palette.text.secondary,
1342
+ color: (theme.vars || theme).palette.text.secondary,
1343
1343
  borderColor: theme.palette.grey[200],
1344
1344
  ...(ownerState.size === 'small' && {
1345
1345
  padding: '0.375rem 0.75rem'
@@ -0,0 +1,219 @@
1
+ {
2
+ "adblock": "If you don't mind tech-related ads (no tracking or remarketing), and want to keep us running, please whitelist us in your blocker.",
3
+ "adPublisher": "ad by {{publisher}}",
4
+ "api-docs": {
5
+ "componentName": "Component name",
6
+ "componentsApi": "Components API",
7
+ "themeDefaultProps": "Theme default props",
8
+ "themeDefaultPropsDescription": "You can use <code>{{muiName}}</code> to change the default props of this component <a href={{defaultPropsLink}}>with the theme</a>.",
9
+ "classes": "CSS classes",
10
+ "classesDescription": "These class names are useful for styling with CSS. They are applied to the component's slots when specific states are triggered.",
11
+ "className": "Class name",
12
+ "cssDescription": "The following class names are useful for styling with CSS (the <a href=\"/material-ui/customization/how-to-customize/#state-classes\">state classes</a> are marked). <br /> To learn more, visit the <a href=\"/material-ui/customization/theme-components/\">component customization</a> page.",
13
+ "css": "CSS",
14
+ "cssComponent": "As a CSS utility, the {{name}} component also supports all <a href=\"/system/properties/\"><code>system</code></a> properties. You can use them as props directly on the component.",
15
+ "default": "Default",
16
+ "defaultComponent": "Default component",
17
+ "defaultValue": "Default value",
18
+ "defaultHTMLTag": "Default HTML tag",
19
+ "defaultDeprecationMessage": "This API is deprecated.",
20
+ "demos": "Demos",
21
+ "deprecated": "Deprecated",
22
+ "description": "Description",
23
+ "globalClass": "Global class",
24
+ "defaultClass": "Default class",
25
+ "hookName": "Hook name",
26
+ "hooksApi": "Hooks API",
27
+ "hooksNoParameters": "This hook does not accept any input parameters.",
28
+ "hooksPageDescription": "API reference docs for the {{name}} hook. Learn about the input parameters and other APIs of this exported module.",
29
+ "import": "Import",
30
+ "importDifference": "Learn about the difference by <a href=\"/material-ui/guides/minimizing-bundle-size/\">reading this guide on minimizing bundle size</a>.",
31
+ "inheritance": "Inheritance",
32
+ "inheritanceDescription": "While not explicitly documented above, the props of the <a href=\"{{pathname}}\">{{component}}</a> component{{suffix}} are also available in {{name}}. You can take advantage of this to <a href=\"/material-ui/guides/api/#spread\">target nested components</a>.",
33
+ "inheritanceSuffixTransition": " from react-transition-group",
34
+ "name": "Name",
35
+ "nativeElement": "native",
36
+ "overrideStyles": "You can override the style of the component using one of these customization options:\n",
37
+ "overrideStylesStyledComponent": "<ul>\n<li>With a <a href=\"/material-ui/integrations/interoperability/#global-css\">global class name</a>.</li>\n<li>With a rule name as part of the component's <a href=\"{{styleOverridesLink}}\"><code>styleOverrides</code> property</a> in a custom theme.</li>\n</ul>",
38
+ "pageDescription": "API reference docs for the React {{name}} component. Learn about the props, CSS, and other APIs of this exported module.",
39
+ "props": "Props",
40
+ "properties": "Properties",
41
+ "parameters": "Parameters",
42
+ "requires-ref": "This <a href=\"/material-ui/guides/composition/#caveat-with-refs\">needs to be able to hold a ref</a>.",
43
+ "returns": "Returns: ",
44
+ "returnValue": "Return value",
45
+ "refNotHeld": "The component cannot hold a ref.",
46
+ "refRootElement": "The <code>ref</code> is forwarded to the root element.",
47
+ "ruleName": "Rule name",
48
+ "seeSourceCode": "If you did not find the information in this page, consider having a look at the <a href=\"{{href}}\">implementation of the component</a> for more detail.",
49
+ "signature": "Signature",
50
+ "slots": "Slots",
51
+ "spreadHint": "Props of the {{spreadHintElement}} component are also available.",
52
+ "state": "STATE",
53
+ "styleOverrides": "The name <code>{{componentStyles.name}}</code> can be used when providing <a href={{defaultPropsLink}}>default props</a> or <a href={{styleOverridesLink}}>style overrides</a> in the theme.",
54
+ "slotDescription": "To learn how to customize the slot, check out the <a href={{slotGuideLink}}>Overriding component structure</a> guide.",
55
+ "slotName": "Slot name",
56
+ "source-code": "Source code",
57
+ "type": "Type",
58
+ "required": "Required",
59
+ "optional": "Optional",
60
+ "additional-info": {
61
+ "cssApi": "See <a href='#classes'>CSS classes API</a> below for more details.",
62
+ "sx": "See the <a href='/system/getting-started/the-sx-prop/'>`sx` page</a> for more details.",
63
+ "slotsApi": "See <a href='#slots'>Slots API</a> below for more details.",
64
+ "joy-size": "To learn how to add custom sizes to the component, check out <a href='/joy-ui/customization/themed-components/#extend-sizes'>Themed components—Extend sizes</a>.",
65
+ "joy-color": "To learn how to add your own colors, check out <a href='/joy-ui/customization/themed-components/#extend-colors'>Themed components—Extend colors</a>.",
66
+ "joy-variant": "To learn how to add your own variants, check out <a href='/joy-ui/customization/themed-components/#extend-variants'>Themed components—Extend variants</a>."
67
+ }
68
+ },
69
+ "marketingPageDescr": "A responsive marketing page layout with sections for product features, testimonials, pricing, and FAQs.",
70
+ "marketingPageTitle": "Marketing page",
71
+ "searchButton": "Search…",
72
+ "algoliaSearch": "What are you looking for?",
73
+ "appFrame": {
74
+ "changeLanguage": "Change language",
75
+ "github": "GitHub repository",
76
+ "helpToTranslate": "Help to translate",
77
+ "openDrawer": "Open main navigation",
78
+ "skipToContent": "Skip to content",
79
+ "toggleSettings": "Toggle settings drawer"
80
+ },
81
+ "backToTop": "Scroll back to top",
82
+ "backToOpenRoles": "Back to open roles",
83
+ "blogDescr": "A sleek, modern blog homepage layout with Markdown support via markdown-to-jsx.",
84
+ "blogTitle": "Blog",
85
+ "bundleSize": "Bundle size",
86
+ "bundleSizeTooltip": "Scroll down to 'Exports Analysis' for a more detailed report.",
87
+ "cancel": "Cancel",
88
+ "cdn": "or use a CDN.",
89
+ "checkoutDescr": "A sophisticated checkout flow with fully customizable steps.",
90
+ "checkoutTitle": "Checkout",
91
+ "clickToCopy": "Click to copy",
92
+ "close": "Close",
93
+ "codesandbox": "Edit in CodeSandbox",
94
+ "copied": "Copied",
95
+ "copiedSource": "The source code has been copied to your clipboard.",
96
+ "copiedSourceLink": "Link to the source code has been copied to your clipboard.",
97
+ "copySource": "Copy the source",
98
+ "copySourceLinkJS": "Copy link to JavaScript source",
99
+ "copySourceLinkTS": "Copy link to TypeScript source",
100
+ "dashboardDescr": "A complex data visualization dashboard featuring the MUI X Data Grid and Charts.",
101
+ "dashboardTitle": "Dashboard",
102
+ "decreaseSpacing": "decrease spacing",
103
+ "demoToolbarLabel": "demo source",
104
+ "demoStylingSelectSystem": "MUI System",
105
+ "demoStylingSelectTailwind": "Tailwind CSS",
106
+ "demoStylingSelectCSS": "Plain CSS",
107
+ "diamondSponsors": "Diamond sponsors",
108
+ "becomeADiamondSponsor": "Become a Diamond sponsor",
109
+ "diamondSponsorVacancies": "One spot left!",
110
+ "editorHint": "Press <kbd>Enter</kbd> to start editing",
111
+ "editPage": "Edit this page",
112
+ "emojiLove": "Love",
113
+ "emojiWarning": "Warning",
114
+ "expandAll": "Expand all",
115
+ "feedbackCommentLabel": "Comment",
116
+ "feedbackFailed": "Couldn't submit feedback. Please try again later.",
117
+ "feedbackMessage": "Was this page helpful?",
118
+ "feedbackMessageDown": "How can we improve this page? (optional)",
119
+ "feedbackMessageUp": "What did you like about this page? (optional)",
120
+ "feedbackSectionSpecific": "How can we improve the <strong>{{sectionName}}</strong> section? (optional)",
121
+ "feedbackMessageToGitHub": {
122
+ "usecases": "If something is broken or if you need a reply to a problem you've encountered, please",
123
+ "reasonWhy": "Otherwise, the team won't be able to answer back or ask for more information.",
124
+ "callToAction": {
125
+ "link": "open an issue instead."
126
+ }
127
+ },
128
+ "feedbackNo": "No",
129
+ "feedbackSubmitted": "Feedback submitted",
130
+ "feedbackYes": "Yes",
131
+ "footerCompany": "Company",
132
+ "goToHome": "go to homepage",
133
+ "getProfessionalSupport": "Get Professional Support",
134
+ "getStarted": "Get Started",
135
+ "githubLabel": "Feedback",
136
+ "headTitle": "MUI: A popular React UI framework",
137
+ "hideFullSource": "Collapse code",
138
+ "hideSource": "Hide code",
139
+ "homeQuickWord": "A quick word from our sponsors:",
140
+ "increaseSpacing": "increase spacing",
141
+ "initialFocusLabel": "A generic container that is programmatically focused to test keyboard navigation of our components.",
142
+ "installation": "Installation",
143
+ "installButton": "Read installation docs",
144
+ "installDescr": "Install MUI's source files via npm. We take care of injecting the CSS needed.",
145
+ "joinThese": "Join these and other great organizations!",
146
+ "JS": "JavaScript",
147
+ "letUsKnow": "Let us know!",
148
+ "likeMui": "Help us keep running",
149
+ "loadFont": "Load the default Roboto font.",
150
+ "mainNavigation": "documentation",
151
+ "newest": "Newest",
152
+ "openDrawer": "Open documentation navigation",
153
+ "or": "or",
154
+ "pageTOC": "Page table of contents",
155
+ "praise": "Praise for MUI",
156
+ "praiseDescr": "Here's what some of our users are saying.",
157
+ "pricingDescr": "Quickly build an effective pricing table for your potential customers.",
158
+ "pricingTitle": "Pricing",
159
+ "resetDemo": "Reset demo",
160
+ "resetDensity": "Reset density",
161
+ "resetFocus": "Reset focus to test keyboard navigation",
162
+ "searchIcons": {
163
+ "learnMore": "Learn more about the import"
164
+ },
165
+ "seeMore": "See more",
166
+ "settings": {
167
+ "color": "Color",
168
+ "dark": "Dark",
169
+ "direction": "Direction",
170
+ "editDocsColors": "Edit documentation colors",
171
+ "light": "Light",
172
+ "ltr": "Left to right",
173
+ "mode": "Mode",
174
+ "rtl": "Right to left",
175
+ "settings": "Settings",
176
+ "system": "System",
177
+ "language": "Language"
178
+ },
179
+ "showFullSource": "Expand code",
180
+ "showJSSource": "Show JavaScript source",
181
+ "showSource": "Show code",
182
+ "showTSSource": "Show TypeScript source",
183
+ "signInDescr": "A clean and efficient sign-in page, ready for your favorite auth provider.",
184
+ "signInSideDescr": "A responsive, two-column sign-in page for adding content alongside the form.",
185
+ "signInSideTitle": "Sign-in side",
186
+ "signInTitle": "Sign-in",
187
+ "signUpDescr": "A clean and efficient sign-up page, perfect for pairing with a sign-in template.",
188
+ "signUpTitle": "Sign-up",
189
+ "sourceCode": "Source code",
190
+ "spacingUnit": "Spacing unit",
191
+ "stackblitz": "Edit in StackBlitz",
192
+ "stars": "GitHub stars",
193
+ "stickyFooterDescr": "Attach a footer to the bottom of the viewport when page content is short.",
194
+ "stickyFooterTitle": "Sticky footer",
195
+ "strapline": "MUI provides a simple, customizable, and accessible library of React components. Follow your own design system, or start with Material Design.",
196
+ "submit": "Submit",
197
+ "tableOfContents": "Contents",
198
+ "thanks": "Thank you!",
199
+ "themes": "Premium themes",
200
+ "themesButton": "Browse themes",
201
+ "themesDescr": "Take your project to the next level with premium themes from our store – all built on MUI.",
202
+ "toggleNotifications": "Toggle notifications panel",
203
+ "toggleRTL": "Toggle right-to-left/left-to-right",
204
+ "traffic": "Traffic",
205
+ "TS": "TypeScript",
206
+ "v5IsOut": "🎉 v5 release candidate is out! Head to the",
207
+ "v5docsLink": "v5 documentation",
208
+ "v5startAdoption": "to get started.",
209
+ "unreadNotifications": "unread notifications",
210
+ "usage": "Usage",
211
+ "usageButton": "Explore the docs",
212
+ "usageDescr": "MUI components work without any additional setup, and don't pollute the global scope.",
213
+ "useDarkTheme": "Use dark theme",
214
+ "useHighDensity": "Apply higher density via props",
215
+ "usingMui": "Are you using MUI?",
216
+ "viewGitHub": "View the source on GitHub",
217
+ "visit": "Visit the website",
218
+ "whosUsing": "Who's using MUI?"
219
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/docs",
3
- "version": "7.0.0-rc.0",
3
+ "version": "7.0.0",
4
4
  "private": false,
5
5
  "author": "MUI Team",
6
6
  "description": "MUI Docs - Documentation building blocks.",
@@ -28,7 +28,7 @@
28
28
  "clsx": "^2.1.1",
29
29
  "nprogress": "^0.2.0",
30
30
  "prop-types": "^15.8.1",
31
- "@mui/internal-markdown": "^2.0.2"
31
+ "@mui/internal-markdown": "^2.0.3"
32
32
  },
33
33
  "peerDependencies": {
34
34
  "@mui/base": "*",