Skip to content

Commit 9b95ba4

Browse files
authored
[docs] Update migration instructions and codemod references for deprecated APIs (#45793)
1 parent a15bad7 commit 9b95ba4

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

docs/data/material/migration/migrating-from-deprecated-apis/migrating-from-deprecated-apis.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1333,7 +1333,7 @@ The Input's prop `componentsProps` was deprecated in favor of `slotProps`:
13331333

13341334
## InputBase
13351335

1336-
Use the [codemod](https://github.com/mui/material-ui/tree/HEAD/packages/mui-codemod#input-base-props) below to migrate the code as described in the following sections:
1336+
Use the [input-base-props-codemod](https://github.com/mui/material-ui/tree/HEAD/packages/mui-codemod#input-base-props) and [input-base-classes-codemod](https://github.com/mui/material-ui/tree/HEAD/packages/mui-codemod#input-base-classes) codemods below to migrate the code as described in the following sections:
13371337

13381338
```bash
13391339
npx @mui/codemod@latest deprecations/input-base-props <path>
@@ -1930,7 +1930,7 @@ The Popper's prop `componentsProps` was deprecated in favor of `slotProps`:
19301930
Use the [codemod](https://github.com/mui/material-ui/tree/HEAD/packages/mui-codemod#rating-props) below to migrate the code as described in the following sections:
19311931

19321932
```bash
1933-
npx @mui/codemod@latest deprecations/step-label-props <path>
1933+
npx @mui/codemod@latest deprecations/rating-props <path>
19341934
```
19351935

19361936
### IconContainerComponent
@@ -1992,7 +1992,7 @@ Here's how to migrate:
19921992

19931993
## Slider
19941994

1995-
Use the [codemod](https://github.com/mui/material-ui/tree/HEAD/packages/mui-codemod#slider-props) below to migrate the code as described in the following sections:
1995+
Use the [slider-props-codemod](https://github.com/mui/material-ui/tree/HEAD/packages/mui-codemod#slider-props) and [slider-classes-codemod](https://github.com/mui/material-ui/tree/HEAD/packages/mui-codemod#slider-classes) codemods below to migrate the code as described in the following sections:
19961996

19971997
```bash
19981998
npx @mui/codemod@latest deprecations/slider-props <path>
@@ -2172,7 +2172,7 @@ Here's how to migrate:
21722172

21732173
## Tabs
21742174

2175-
Use the [codemod](https://github.com/mui/material-ui/tree/HEAD/packages/mui-codemod#tabs-props) below to migrate the code as described in the following sections:
2175+
Use the [tab-props-codemod](https://github.com/mui/material-ui/tree/HEAD/packages/mui-codemod#tabs-props), [tab-classes-codemod](https://github.com/mui/material-ui/tree/HEAD/packages/mui-codemod#tabs-classes) codemods below to migrate the code as described in the following sections:
21762176

21772177
```bash
21782178
npx @mui/codemod@latest deprecations/tabs-classes <path>

packages/mui-codemod/README.md

+18-18
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,10 @@ npx @mui/codemod@latest deprecations/avatar-group-props <path>
393393
/>
394394
```
395395

396+
```bash
397+
npx @mui/codemod@latest deprecations/avatar-props <path>
398+
```
399+
396400
#### `backdrop-props`
397401

398402
```diff
@@ -1609,7 +1613,7 @@ npx @mui/codemod@latest deprecations/outlined-input-props <path>
16091613
#### `rating-props`
16101614

16111615
```diff
1612-
<Snackbar
1616+
<Rating
16131617
- IconContainerComponent={CustomContainer}
16141618
+ slots={{
16151619
+ icon: { component: CustomContainer }
@@ -1618,7 +1622,7 @@ npx @mui/codemod@latest deprecations/outlined-input-props <path>
16181622
```
16191623

16201624
```bash
1621-
npx @mui/codemod deprecations/snackbar-props <path>
1625+
npx @mui/codemod deprecations/rating-props <path>
16221626
```
16231627

16241628
#### `select-classes`
@@ -1861,6 +1865,18 @@ JS transforms:
18611865
},
18621866
```
18631867

1868+
CSS transforms:
1869+
1870+
```diff
1871+
-.MuiStepConnector-lineHorizontal
1872+
+.MuiStepConnector-horizontal > .MuiStepConnector-line
1873+
```
1874+
1875+
```diff
1876+
-.MuiStepConnector-lineVertical
1877+
+.MuiStepConnector-vertical > .MuiStepConnector-line
1878+
```
1879+
18641880
```bash
18651881
npx @mui/codemod deprecations/step-connector-classes <path>
18661882
```
@@ -1972,22 +1988,6 @@ CSS transforms:
19721988
npx @mui/codemod@latest deprecations/toggle-button-group-classes <path>
19731989
```
19741990

1975-
CSS transforms:
1976-
1977-
```diff
1978-
-.MuiStepConnector-lineHorizontal
1979-
+.MuiStepConnector-horizontal > .MuiStepConnector-line
1980-
```
1981-
1982-
```diff
1983-
-.MuiStepConnector-lineVertical
1984-
+.MuiStepConnector-vertical > .MuiStepConnector-line
1985-
```
1986-
1987-
```bash
1988-
npx @mui/codemod@latest deprecations/step-connector-classes <path>
1989-
```
1990-
19911991
#### `tab-classes`
19921992

19931993
JS transforms:

0 commit comments

Comments
 (0)