Skip to content

Commit bcf5074

Browse files
[docs] Fix more references of MUI Base
1 parent 894dd47 commit bcf5074

File tree

7 files changed

+20
-20
lines changed

7 files changed

+20
-20
lines changed

docs/data/base/components/autocomplete/autocomplete.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ title: React Autocomplete hook
44
hooks: useAutocomplete
55
githubLabel: 'component: autocomplete'
66
waiAria: https://www.w3.org/WAI/ARIA/apg/patterns/combobox/
7+
newName: Combobox
8+
newUrl: https://base-ui.com/react/components/autocomplete
79
---
810

911
# Autocomplete

docs/data/base/components/snackbar/snackbar.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ title: React Snackbar component and hook
44
components: Snackbar
55
hooks: useSnackbar
66
githubLabel: 'component: snackbar'
7+
newName: Toast
8+
newUrl: https://base-ui.com/react/components/toast
79
---
810

911
# Snackbar

docs/src/components/productBaseUI/MuiBaseDeprecation.tsx

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,15 @@ import * as React from 'react';
22
import Box from '@mui/material/Box';
33
import { MarkdownElement } from '@mui/docs/MarkdownElement';
44

5-
export default function MuiBaseDeprecation(props: {
6-
newComponentName?: string;
7-
newComponentUrl?: string;
8-
}) {
9-
if (props.newComponentUrl && props.newComponentName) {
5+
export default function MuiBaseDeprecation(props: { newName?: string; newUrl?: string }) {
6+
if (props.newUrl && props.newName) {
107
return (
118
<MarkdownElement>
129
<Box component="aside" className="MuiCallout-root MuiCallout-error">
1310
<Icon />
1411
<Box className="MuiCallout-content">
15-
@mui/base has been deprecated and has been replaced by Base UI. We strongly recommend
16-
using the Base UI <a href={props.newComponentUrl}>{props.newComponentName} component</a>{' '}
12+
MUI Base (@mui/base) has been deprecated. Base UI is its successor. We strongly
13+
recommend using the new <a href={props.newUrl}>Base UI {props.newName} component</a>{' '}
1714
instead.
1815
</Box>
1916
</Box>
@@ -25,9 +22,8 @@ export default function MuiBaseDeprecation(props: {
2522
<Box component="aside" className="MuiCallout-root MuiCallout-error">
2623
<Icon />
2724
<Box className="MuiCallout-content">
28-
@mui/base has been deprecated and has been replaced by{' '}
29-
<a href="https://base-ui.com">Base UI</a>. We strongly recommend using the new package
30-
instead.
25+
MUI Base (@mui/base) has been deprecated. <a href="https://base-ui.com">Base UI</a> is its
26+
successor. We strongly recommend using the new package instead.
3127
</Box>
3228
</Box>
3329
</MarkdownElement>

docs/src/modules/components/MarkdownDocs.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ export default function MarkdownDocs(props) {
7878
{isJoy && <JoyModeObserver mode={theme.palette.mode} />}
7979
{isBase && (
8080
<MuiBaseDeprecation
81-
newComponentUrl={localizedDoc.headers.newUrl}
82-
newComponentName={localizedDoc.headers.newName}
81+
newUrl={localizedDoc.headers.newUrl}
82+
newName={localizedDoc.headers.newName}
8383
/>
8484
)}
8585
{localizedDoc.rendered.map((renderedMarkdownOrDemo, index) => (

docs/src/modules/components/MarkdownDocsV2.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,8 @@ export default function MarkdownDocsV2(props) {
276276
{isJoy && <JoyModeObserver mode={theme.palette.mode} />}
277277
{isBase && (
278278
<MuiBaseDeprecation
279-
newComponentUrl={localizedDoc.headers.newUrl}
280-
newComponentName={localizedDoc.headers.newName}
279+
newUrl={localizedDoc.headers.newUrl}
280+
newName={localizedDoc.headers.newName}
281281
/>
282282
)}
283283
{commonElements}

packages/mui-base/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<!-- markdownlint-disable-next-line -->
22
<p align="center">
3-
<a href="https://mui.com/base-ui/" rel="noopener" target="_blank"><img width="150" height="133" src="https://mui.com/static/logo.svg" alt="Base UI logo"></a>
3+
<a href="https://mui.com/base-ui/" rel="noopener" target="_blank"><img width="150" height="133" src="https://mui.com/static/logo.svg" alt="MUI Base logo"></a>
44
</p>
55

6-
<h1 align="center">Base UI</h1>
6+
<h1 align="center">MUI Base</h1>
77

8-
Base UI is a library of headless ("unstyled") React components and low-level hooks. You gain complete control over your app's CSS and accessibility features.
8+
MUI Base is a library of headless ("unstyled") React components and low-level hooks. You gain complete control over your app's CSS and accessibility features.
99

1010
## Installation
1111

@@ -19,7 +19,7 @@ npm install @mui/base
1919

2020
<!-- #host-reference -->
2121

22-
Visit [https://v6.mui.com/base-ui/](https://v6.mui.com/base-ui/) to view the full documentation.
22+
Visit [https://v6.mui.com/base-ui/getting-started/](https://v6.mui.com/base-ui/getting-started/) to view the full documentation.
2323

2424
## Questions
2525

@@ -28,7 +28,7 @@ Use the "base-ui" tag on Stack Overflow to make it easier for the community to
2828

2929
## Examples
3030

31-
Our documentation features [a collection of example projects using Base UI](https://github.com/mui/material-ui/tree/master/examples).
31+
Our documentation features [a collection of example projects using MUI Base](https://github.com/mui/material-ui/tree/master/examples).
3232

3333
## Contributing
3434

packages/mui-base/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"bugs": {
2222
"url": "https://github.com/mui/material-ui/issues"
2323
},
24-
"homepage": "https://mui.com/base-ui/",
24+
"homepage": "https://v6.mui.com/base-ui/getting-started/",
2525
"funding": {
2626
"type": "opencollective",
2727
"url": "https://opencollective.com/mui-org"

0 commit comments

Comments
 (0)